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

Unified Diff: remoting/codec/video_encoder_vpx.h

Issue 1213323003: Supply empty frames until codec is done with top-off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Loosen top-off frame count tests Created 5 years, 5 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
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_vpx.h
diff --git a/remoting/codec/video_encoder_vpx.h b/remoting/codec/video_encoder_vpx.h
index dbfefeb150b73e2c898e28cf9697303a502e9820..7d80592b0302ef3b7b5be596475c560354474f79 100644
--- a/remoting/codec/video_encoder_vpx.h
+++ b/remoting/codec/video_encoder_vpx.h
@@ -73,12 +73,10 @@ class VideoEncoderVpx : public VideoEncoder {
// Active map used to optimize out processing of un-changed macroblocks.
scoped_ptr<uint8[]> active_map_;
- int active_map_width_ = 0;
- int active_map_height_ = 0;
+ webrtc::DesktopSize active_map_size_;
- // 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;
+ // True if the codec wants unchanged frames to finish topping-off with.
+ bool encode_unchanged_frame_;
// Used to help initialize VideoPackets from DesktopFrames.
VideoEncoderHelper helper_;
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698