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

Unified Diff: webrtc/video_encoder.h

Issue 1328863002: Allow encoders to fall back dynamically to software. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 2 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 | « webrtc/video/video_encoder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_encoder.h
diff --git a/webrtc/video_encoder.h b/webrtc/video_encoder.h
index 0858a71b0948200ec4b65b9a61ada52ee2991449..609c07391f3e555c6abe74b5be0b197332866748 100644
--- a/webrtc/video_encoder.h
+++ b/webrtc/video_encoder.h
@@ -156,6 +156,24 @@ class VideoEncoderSoftwareFallbackWrapper : public VideoEncoder {
bool SupportsNativeHandle() const override;
private:
+ bool InitFallbackEncoder();
+
+ // Settings used in the last InitEncode call and used if a dynamic fallback to
+ // software is required.
+ VideoCodec codec_settings_;
+ int32_t number_of_cores_;
+ size_t max_payload_size_;
+
+ // The last bitrate/framerate set, and a flag for noting they are set.
+ bool rates_set_;
+ uint32_t bitrate_;
+ uint32_t framerate_;
+
+ // The last channel parameters set, and a flag for noting they are set.
+ bool channel_parameters_set_;
+ uint32_t packet_loss_;
+ int64_t rtt_;
+
const EncoderType encoder_type_;
webrtc::VideoEncoder* const encoder_;
« no previous file with comments | « webrtc/video/video_encoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698