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

Unified Diff: webrtc/video/loopback.cc

Issue 1194533002: Add temporal-layers option to video_loopback. (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
« no previous file with comments | « webrtc/video/loopback.h ('k') | webrtc/video/screenshare_loopback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/loopback.cc
diff --git a/webrtc/video/loopback.cc b/webrtc/video/loopback.cc
index 7e5ca078c1e4b5b5bb946add54a0f77a626df833..ef382de33c145ad40338adffd2f811fb79ec4a5e 100644
--- a/webrtc/video/loopback.cc
+++ b/webrtc/video/loopback.cc
@@ -158,6 +158,10 @@ VideoEncoderConfig Loopback::CreateEncoderConfig() {
static_cast<int>(config_.max_bitrate_kbps) * 1000;
stream->max_framerate = config_.fps;
stream->max_qp = 56;
+ if (config_.num_temporal_layers != 0) {
+ stream->temporal_layer_thresholds_bps.resize(config_.num_temporal_layers -
+ 1);
+ }
return encoder_config;
}
« no previous file with comments | « webrtc/video/loopback.h ('k') | webrtc/video/screenshare_loopback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698