summaryrefslogtreecommitdiffstats
path: root/remoting/base/encoder_vp8.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/base/encoder_vp8.h')
-rw-r--r--remoting/base/encoder_vp8.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/remoting/base/encoder_vp8.h b/remoting/base/encoder_vp8.h
index f2869e4..e283d16 100644
--- a/remoting/base/encoder_vp8.h
+++ b/remoting/base/encoder_vp8.h
@@ -34,11 +34,18 @@ class EncoderVp8 : public Encoder {
bool PrepareImage(scoped_refptr<CaptureData> capture_data,
std::vector<gfx::Rect>* updated_rects);
+ // Update the active map according to |updated_rects|. Active map is then
+ // given to the encoder to speed up encoding.
+ void PrepareActiveMap(const std::vector<gfx::Rect>& updated_rects);
+
// True if the encoder is initialized.
bool initialized_;
scoped_ptr<vpx_codec_ctx_t> codec_;
scoped_ptr<vpx_image_t> image_;
+ scoped_array<uint8> active_map_;
+ int active_map_width_;
+ int active_map_height_;
int last_timestamp_;
// Buffer for storing the yuv image.