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

Unified Diff: webrtc/modules/video_coding/main/source/generic_encoder.h

Issue 1193513006: In screenshare mode, suppress VP8 bitrate overshoot and increase quality (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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: webrtc/modules/video_coding/main/source/generic_encoder.h
diff --git a/webrtc/modules/video_coding/main/source/generic_encoder.h b/webrtc/modules/video_coding/main/source/generic_encoder.h
index a72277214e046bdf66cd65e0cc354ab08c06d12c..2f6f283c498ee2335630933c884705348b655bc6 100644
--- a/webrtc/modules/video_coding/main/source/generic_encoder.h
+++ b/webrtc/modules/video_coding/main/source/generic_encoder.h
@@ -55,6 +55,7 @@ public:
void SetInternalSource(bool internalSource) { _internalSource = internalSource; };
void SetRotation(VideoRotation rotation) { _rotation = rotation; }
+ bool GetAndResetFrameProduced();
private:
VCMPacketizationCallback* _sendCallback;
@@ -65,6 +66,8 @@ private:
EncodedImageCallback* post_encode_callback_;
+ bool frame_produced_;
+
#ifdef DEBUG_ENCODER_BIT_STREAM
FILE* _bitStreamAfterEncoder;
#endif
@@ -149,6 +152,7 @@ private:
const bool internal_source_;
mutable rtc::CriticalSection rates_lock_;
VideoRotation rotation_;
+ bool is_screenshare_;
}; // end of VCMGenericEncoder class
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698