Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: remoting/base/encoder_vp8.h

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/base/encoder_row_based.cc ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_BASE_ENCODER_VP8_H_ 5 #ifndef REMOTING_BASE_ENCODER_VP8_H_
6 #define REMOTING_BASE_ENCODER_VP8_H_ 6 #define REMOTING_BASE_ENCODER_VP8_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "remoting/base/encoder.h" 11 #include "remoting/base/encoder.h"
12 #include "third_party/skia/include/core/SkRect.h" 12 #include "third_party/skia/include/core/SkRect.h"
13 13
14 typedef struct vpx_codec_ctx vpx_codec_ctx_t; 14 typedef struct vpx_codec_ctx vpx_codec_ctx_t;
15 typedef struct vpx_image vpx_image_t; 15 typedef struct vpx_image vpx_image_t;
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 // A class that uses VP8 to perform encoding. 19 // A class that uses VP8 to perform encoding.
20 class EncoderVp8 : public Encoder { 20 class EncoderVp8 : public Encoder {
21 public: 21 public:
22 EncoderVp8(); 22 EncoderVp8();
23 virtual ~EncoderVp8(); 23 virtual ~EncoderVp8();
24 24
25 virtual void Encode(scoped_refptr<CaptureData> capture_data, 25 virtual void Encode(
26 bool key_frame, 26 scoped_refptr<CaptureData> capture_data,
27 DataAvailableCallback* data_available_callback); 27 bool key_frame,
28 const DataAvailableCallback& data_available_callback) OVERRIDE;
28 29
29 private: 30 private:
30 typedef std::vector<SkIRect> RectVector; 31 typedef std::vector<SkIRect> RectVector;
31 32
32 FRIEND_TEST_ALL_PREFIXES(EncoderVp8Test, AlignAndClipRect); 33 FRIEND_TEST_ALL_PREFIXES(EncoderVp8Test, AlignAndClipRect);
33 34
34 // Initialize the encoder. Returns true if successful. 35 // Initialize the encoder. Returns true if successful.
35 bool Init(const SkISize& size); 36 bool Init(const SkISize& size);
36 37
37 // Destroy the encoder. 38 // Destroy the encoder.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 // The current frame size. 71 // The current frame size.
71 SkISize size_; 72 SkISize size_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(EncoderVp8); 74 DISALLOW_COPY_AND_ASSIGN(EncoderVp8);
74 }; 75 };
75 76
76 } // namespace remoting 77 } // namespace remoting
77 78
78 #endif // REMOTING_BASE_ENCODER_VP8_H_ 79 #endif // REMOTING_BASE_ENCODER_VP8_H_
OLDNEW
« no previous file with comments | « remoting/base/encoder_row_based.cc ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698