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

Unified Diff: webrtc/video/video_quality_test.cc

Issue 3003823003: Fix FrameConfigs used for VP8 with four temporal layers. (Closed)
Patch Set: Fixed int to uint cast in test Created 3 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 | « webrtc/video/replay.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_quality_test.cc
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc
index 7caa6367b001444c14cde8f3f764e609c3abde21..266d99ebc0f4a22ba62f316cf570992494a7e838 100644
--- a/webrtc/video/video_quality_test.cc
+++ b/webrtc/video/video_quality_test.cc
@@ -1297,6 +1297,12 @@ VideoStream VideoQualityTest::DefaultVideoStream(const Params& params) {
} else if (params.video.num_temporal_layers == 3) {
stream.temporal_layer_thresholds_bps.push_back(stream.max_bitrate_bps / 4);
stream.temporal_layer_thresholds_bps.push_back(stream.target_bitrate_bps);
+ } else {
+ RTC_CHECK_LE(params.video.num_temporal_layers, kMaxTemporalStreams);
+ for (int i = 0; i < params.video.num_temporal_layers - 1; ++i) {
+ stream.temporal_layer_thresholds_bps.push_back(static_cast<int>(
+ stream.max_bitrate_bps * kVp8LayerRateAlloction[0][i] + 0.5));
+ }
}
return stream;
}
« no previous file with comments | « webrtc/video/replay.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698