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

Unified Diff: remoting/codec/webrtc_video_encoder_vpx.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 | « remoting/codec/webrtc_video_encoder.h ('k') | remoting/codec/webrtc_video_encoder_vpx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/webrtc_video_encoder_vpx.h
diff --git a/remoting/codec/webrtc_video_encoder_vpx.h b/remoting/codec/webrtc_video_encoder_vpx.h
index 185ce7f3bc2883951331c16b5c3649ca9e740ebe..343571895ea881801d69e4384b121f0e60ffe71c 100644
--- a/remoting/codec/webrtc_video_encoder_vpx.h
+++ b/remoting/codec/webrtc_video_encoder_vpx.h
@@ -51,14 +51,17 @@ class WebrtcVideoEncoderVpx : public WebrtcVideoEncoder {
// with the configured lossless color & encoding modes.
void Configure(const webrtc::DesktopSize& size);
- // Updates target bitrate.
- void UpdateTargetBitrate(int new_bitrate_kbps);
+ // Updates codec configuration.
+ void UpdateConfig(const FrameParams& params);
// Prepares |image_| for encoding. Writes updated rectangles into
// |updated_region|.
void PrepareImage(const webrtc::DesktopFrame& frame,
webrtc::DesktopRegion* updated_region);
+ // Clears active map.
+ void ClearActiveMap();
+
// Updates the active map according to |updated_region|. Active map is then
// given to the encoder to speed up encoding.
void SetActiveMapFromRegion(const webrtc::DesktopRegion& updated_region);
@@ -79,7 +82,6 @@ class WebrtcVideoEncoderVpx : public WebrtcVideoEncoder {
ScopedVpxCodec codec_;
vpx_codec_enc_cfg_t config_;
- uint32_t target_bitrate_kbps_;
// Used to generate zero-based frame timestamps.
base::TimeTicks timestamp_base_;
@@ -92,9 +94,6 @@ class WebrtcVideoEncoderVpx : public WebrtcVideoEncoder {
std::unique_ptr<uint8_t[]> active_map_;
webrtc::DesktopSize active_map_size_;
- // True if the codec wants unchanged frames to finish topping-off with.
- bool encode_unchanged_frame_;
-
base::DefaultTickClock default_tick_clock_;
base::TickClock* clock_;
« no previous file with comments | « remoting/codec/webrtc_video_encoder.h ('k') | remoting/codec/webrtc_video_encoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698