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

Unified Diff: remoting/codec/webrtc_video_encoder.h

Issue 2335923002: Add WebrtcCaptureScheduler interface. (Closed)
Patch Set: include <algorithm> Created 4 years, 3 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 | « no previous file | remoting/codec/webrtc_video_encoder_vpx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/webrtc_video_encoder.h
diff --git a/remoting/codec/webrtc_video_encoder.h b/remoting/codec/webrtc_video_encoder.h
index 3b56a455bd95efd822d7d6ccd98723b3e971ed90..be0f988a6b48d83395458bc0fa6efd1ed3d5f0cd 100644
--- a/remoting/codec/webrtc_video_encoder.h
+++ b/remoting/codec/webrtc_video_encoder.h
@@ -23,9 +23,25 @@ namespace remoting {
class WebrtcVideoEncoder {
public:
struct FrameParams {
- int bitrate_kbps;
+ // Target bitrate in kilobits per second.
+ int bitrate_kbps = -1;
+
+ // Frame duration.
base::TimeDelta duration;
- bool key_frame;
+
+ // If set to true then the active map passed to the encoder will only
+ // contain updated_region() from the current frame. Otherwise the active map
+ // is not cleared before adding updated_region(), which means it will
+ // contain union of updated_region() from all frames since this flag was
+ // last set. This flag is used to top-off video quality with VP8.
+ bool clear_active_map = false;
+
+ // Indicates that the encoder should encode this frame as a key frame.
+ bool key_frame = false;
+
+ // Quantization parameters for the encoder.
+ int vpx_min_quantizer = -1;
+ int vpx_max_quantizer = -1;
};
struct EncodedFrame {
« no previous file with comments | « no previous file | remoting/codec/webrtc_video_encoder_vpx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698