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

Unified Diff: remoting/codec/video_encoder_vpx.h

Issue 1150163002: Update VideoFramePump to pass un-changed frames to encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add basic tests for unchanged frames Created 5 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: remoting/codec/video_encoder_vpx.h
diff --git a/remoting/codec/video_encoder_vpx.h b/remoting/codec/video_encoder_vpx.h
index d8d39ebdd302f3b24489aec3dc9d97305eacafa9..dbfefeb150b73e2c898e28cf9697303a502e9820 100644
--- a/remoting/codec/video_encoder_vpx.h
+++ b/remoting/codec/video_encoder_vpx.h
@@ -58,8 +58,8 @@ class VideoEncoderVpx : public VideoEncoder {
// Options controlling VP9 encode quantization and color space.
// These are always off (false) for VP8.
- bool lossless_encode_;
- bool lossless_color_;
+ bool lossless_encode_ = false;
+ bool lossless_color_ = false;
// Holds the initialized & configured codec.
ScopedVpxCodec codec_;
@@ -73,8 +73,12 @@ class VideoEncoderVpx : public VideoEncoder {
// Active map used to optimize out processing of un-changed macroblocks.
scoped_ptr<uint8[]> active_map_;
- int active_map_width_;
- int active_map_height_;
+ int active_map_width_ = 0;
+ int active_map_height_ = 0;
+
+ // Number of "top-off" frames we've encoded since we were last passed a
+ // frame containing an actual change. Used only when encoding with top-off.
+ int topoff_frame_count_ = 0;
// Used to help initialize VideoPackets from DesktopFrames.
VideoEncoderHelper helper_;

Powered by Google App Engine
This is Rietveld 408576698