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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc

Issue 3008543002: Make rate control and quality thresholds optional in VideoProcessorIntegrationTest. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest .h" 11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest .h"
12 12
13 #include <vector>
14
13 namespace webrtc { 15 namespace webrtc {
14 namespace test { 16 namespace test {
15 17
16 namespace { 18 namespace {
17 19
18 // Test settings. 20 // Test settings.
19 // Only allow encoder/decoder to use single core, for predictability. 21 // Only allow encoder/decoder to use single core, for predictability.
20 const bool kUseSingleCore = true; 22 const bool kUseSingleCore = true;
21 const bool kVerboseLogging = false; 23 const bool kVerboseLogging = false;
22 const bool kHwCodec = false; 24 const bool kHwCodec = false;
23 const bool kBatchMode = false; 25 const bool kBatchMode = false;
24 26
25 // Codec settings. 27 // Codec settings.
26 const bool kResilienceOn = true; 28 const bool kResilienceOn = true;
27 29
28 // Default sequence is foreman (CIF): may be better to use VGA for resize test. 30 // Default sequence is foreman (CIF): may be better to use VGA for resize test.
29 const int kCifWidth = 352; 31 const int kCifWidth = 352;
30 const int kCifHeight = 288; 32 const int kCifHeight = 288;
31 const char kForemanCif[] = "foreman_cif"; 33 const char kForemanCif[] = "foreman_cif";
32 #if !defined(WEBRTC_IOS) 34 #if !defined(WEBRTC_IOS)
33 const int kNumFramesShort = 100; 35 const int kNumFramesShort = 100;
34 #endif 36 #endif
35 const int kNumFramesLong = 299; 37 const int kNumFramesLong = 299;
36 38
39 const std::nullptr_t kNoVisualizationParams = nullptr;
40
37 } // namespace 41 } // namespace
38 42
39 #if defined(WEBRTC_USE_H264) 43 #if defined(WEBRTC_USE_H264)
40 44
41 // H264: Run with no packet loss and fixed bitrate. Quality should be very high. 45 // H264: Run with no packet loss and fixed bitrate. Quality should be very high.
42 // Note(hbos): The PacketManipulatorImpl code used to simulate packet loss in 46 // Note(hbos): The PacketManipulatorImpl code used to simulate packet loss in
43 // these unittests appears to drop "packets" in a way that is not compatible 47 // these unittests appears to drop "packets" in a way that is not compatible
44 // with H264. Therefore ProcessXPercentPacketLossH264, X != 0, unittests have 48 // with H264. Therefore ProcessXPercentPacketLossH264, X != 0, unittests have
45 // not been added. 49 // not been added.
46 TEST_F(VideoProcessorIntegrationTest, Process0PercentPacketLossH264) { 50 TEST_F(VideoProcessorIntegrationTest, Process0PercentPacketLossH264) {
47 // Bit rate and frame rate profile. 51 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
52 kVerboseLogging, kBatchMode);
53 SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false,
54 kResilienceOn, kCifWidth, kCifHeight);
55
48 RateProfile rate_profile; 56 RateProfile rate_profile;
49 SetRateProfile(&rate_profile, 0, 500, 30, 0); 57 SetRateProfile(&rate_profile, 0, 500, 30, 0);
50 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 58 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
51 rate_profile.num_frames = kNumFramesShort; 59 rate_profile.num_frames = kNumFramesShort;
52 // Codec/network settings. 60
53 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 61 std::vector<RateControlThresholds> rc_thresholds;
54 kVerboseLogging, kBatchMode); 62 AddRateControlThresholds(2, 60, 20, 10, 20, 0, 1, &rc_thresholds);
55 SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false, 63
56 kResilienceOn, kCifWidth, kCifHeight);
57 // Thresholds for expected quality.
58 QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70); 64 QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70);
59 // Thresholds for rate control. 65
60 RateControlThresholds rc_thresholds[1]; 66 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
61 SetRateControlThresholds(rc_thresholds, 0, 2, 60, 20, 10, 20, 0, 1); 67 kNoVisualizationParams);
62 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
63 nullptr /* visualization_params */);
64 } 68 }
65 69
66 #endif // defined(WEBRTC_USE_H264) 70 #endif // defined(WEBRTC_USE_H264)
67 71
68 // Fails on iOS. See webrtc:4755. 72 // Fails on iOS. See webrtc:4755.
69 #if !defined(WEBRTC_IOS) 73 #if !defined(WEBRTC_IOS)
70 74
71 #if !defined(RTC_DISABLE_VP9) 75 #if !defined(RTC_DISABLE_VP9)
72 // VP9: Run with no packet loss and fixed bitrate. Quality should be very high. 76 // VP9: Run with no packet loss and fixed bitrate. Quality should be very high.
73 // One key frame (first frame only) in sequence. 77 // One key frame (first frame only) in sequence.
74 TEST_F(VideoProcessorIntegrationTest, Process0PercentPacketLossVP9) { 78 TEST_F(VideoProcessorIntegrationTest, Process0PercentPacketLossVP9) {
75 // Bit rate and frame rate profile. 79 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
80 kVerboseLogging, kBatchMode);
81 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false,
82 kResilienceOn, kCifWidth, kCifHeight);
83
76 RateProfile rate_profile; 84 RateProfile rate_profile;
77 SetRateProfile(&rate_profile, 0, 500, 30, 0); 85 SetRateProfile(&rate_profile, 0, 500, 30, 0);
78 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 86 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
79 rate_profile.num_frames = kNumFramesShort; 87 rate_profile.num_frames = kNumFramesShort;
80 // Codec/network settings. 88
81 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 89 std::vector<RateControlThresholds> rc_thresholds;
82 kVerboseLogging, kBatchMode); 90 AddRateControlThresholds(0, 40, 20, 10, 20, 0, 1, &rc_thresholds);
83 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false, 91
84 kResilienceOn, kCifWidth, kCifHeight);
85 // Thresholds for expected quality.
86 QualityThresholds quality_thresholds(37.0, 36.0, 0.93, 0.92); 92 QualityThresholds quality_thresholds(37.0, 36.0, 0.93, 0.92);
87 // Thresholds for rate control. 93
88 RateControlThresholds rc_thresholds[1]; 94 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
89 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 20, 0, 1); 95 kNoVisualizationParams);
90 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
91 nullptr /* visualization_params */);
92 } 96 }
93 97
94 // VP9: Run with 5% packet loss and fixed bitrate. Quality should be a bit 98 // VP9: Run with 5% packet loss and fixed bitrate. Quality should be a bit
95 // lower. One key frame (first frame only) in sequence. 99 // lower. One key frame (first frame only) in sequence.
96 TEST_F(VideoProcessorIntegrationTest, Process5PercentPacketLossVP9) { 100 TEST_F(VideoProcessorIntegrationTest, Process5PercentPacketLossVP9) {
97 // Bit rate and frame rate profile. 101 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.05f, kForemanCif,
102 kVerboseLogging, kBatchMode);
103 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false,
104 kResilienceOn, kCifWidth, kCifHeight);
105
98 RateProfile rate_profile; 106 RateProfile rate_profile;
99 SetRateProfile(&rate_profile, 0, 500, 30, 0); 107 SetRateProfile(&rate_profile, 0, 500, 30, 0);
100 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 108 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
101 rate_profile.num_frames = kNumFramesShort; 109 rate_profile.num_frames = kNumFramesShort;
102 // Codec/network settings. 110
103 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.05f, kForemanCif, 111 std::vector<RateControlThresholds> rc_thresholds;
104 kVerboseLogging, kBatchMode); 112 AddRateControlThresholds(0, 40, 20, 10, 20, 0, 1, &rc_thresholds);
105 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false, 113
106 kResilienceOn, kCifWidth, kCifHeight);
107 // Thresholds for expected quality.
108 QualityThresholds quality_thresholds(17.0, 14.0, 0.45, 0.36); 114 QualityThresholds quality_thresholds(17.0, 14.0, 0.45, 0.36);
109 // Thresholds for rate control. 115
110 RateControlThresholds rc_thresholds[1]; 116 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
111 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 20, 0, 1); 117 kNoVisualizationParams);
112 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
113 nullptr /* visualization_params */);
114 } 118 }
115 119
116 // VP9: Run with no packet loss, with varying bitrate (3 rate updates): 120 // VP9: Run with no packet loss, with varying bitrate (3 rate updates):
117 // low to high to medium. Check that quality and encoder response to the new 121 // low to high to medium. Check that quality and encoder response to the new
118 // target rate/per-frame bandwidth (for each rate update) is within limits. 122 // target rate/per-frame bandwidth (for each rate update) is within limits.
119 // One key frame (first frame only) in sequence. 123 // One key frame (first frame only) in sequence.
120 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossChangeBitRateVP9) { 124 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossChangeBitRateVP9) {
121 // Bit rate and frame rate profile. 125 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
126 kVerboseLogging, kBatchMode);
127 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false,
128 kResilienceOn, kCifWidth, kCifHeight);
129
122 RateProfile rate_profile; 130 RateProfile rate_profile;
123 SetRateProfile(&rate_profile, 0, 200, 30, 0); 131 SetRateProfile(&rate_profile, 0, 200, 30, 0);
124 SetRateProfile(&rate_profile, 1, 700, 30, 100); 132 SetRateProfile(&rate_profile, 1, 700, 30, 100);
125 SetRateProfile(&rate_profile, 2, 500, 30, 200); 133 SetRateProfile(&rate_profile, 2, 500, 30, 200);
126 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1; 134 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1;
127 rate_profile.num_frames = kNumFramesLong; 135 rate_profile.num_frames = kNumFramesLong;
128 // Codec/network settings. 136
129 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 137 std::vector<RateControlThresholds> rc_thresholds;
130 kVerboseLogging, kBatchMode); 138 AddRateControlThresholds(0, 30, 20, 20, 35, 0, 1, &rc_thresholds);
131 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false, 139 AddRateControlThresholds(2, 0, 20, 20, 60, 0, 0, &rc_thresholds);
132 kResilienceOn, kCifWidth, kCifHeight); 140 AddRateControlThresholds(0, 0, 25, 20, 40, 0, 0, &rc_thresholds);
133 // Thresholds for expected quality. 141
134 QualityThresholds quality_thresholds(35.5, 30.0, 0.90, 0.85); 142 QualityThresholds quality_thresholds(35.5, 30.0, 0.90, 0.85);
135 // Thresholds for rate control. 143
136 RateControlThresholds rc_thresholds[3]; 144 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
137 SetRateControlThresholds(rc_thresholds, 0, 0, 30, 20, 20, 35, 0, 1); 145 kNoVisualizationParams);
138 SetRateControlThresholds(rc_thresholds, 1, 2, 0, 20, 20, 60, 0, 0);
139 SetRateControlThresholds(rc_thresholds, 2, 0, 0, 25, 20, 40, 0, 0);
140 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
141 nullptr /* visualization_params */);
142 } 146 }
143 147
144 // VP9: Run with no packet loss, with an update (decrease) in frame rate. 148 // VP9: Run with no packet loss, with an update (decrease) in frame rate.
145 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. 149 // Lower frame rate means higher per-frame-bandwidth, so easier to encode.
146 // At the low bitrate in this test, this means better rate control after the 150 // At the low bitrate in this test, this means better rate control after the
147 // update(s) to lower frame rate. So expect less frame drops, and max values 151 // update(s) to lower frame rate. So expect less frame drops, and max values
148 // for the rate control metrics can be lower. One key frame (first frame only). 152 // for the rate control metrics can be lower. One key frame (first frame only).
149 // Note: quality after update should be higher but we currently compute quality 153 // Note: quality after update should be higher but we currently compute quality
150 // metrics averaged over whole sequence run. 154 // metrics averaged over whole sequence run.
151 TEST_F(VideoProcessorIntegrationTest, 155 TEST_F(VideoProcessorIntegrationTest,
152 ProcessNoLossChangeFrameRateFrameDropVP9) { 156 ProcessNoLossChangeFrameRateFrameDropVP9) {
153 // Bit rate and frame rate profile. 157 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
158 kVerboseLogging, kBatchMode);
159 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false,
160 kResilienceOn, kCifWidth, kCifHeight);
161
154 RateProfile rate_profile; 162 RateProfile rate_profile;
155 SetRateProfile(&rate_profile, 0, 100, 24, 0); 163 SetRateProfile(&rate_profile, 0, 100, 24, 0);
156 SetRateProfile(&rate_profile, 1, 100, 15, 100); 164 SetRateProfile(&rate_profile, 1, 100, 15, 100);
157 SetRateProfile(&rate_profile, 2, 100, 10, 200); 165 SetRateProfile(&rate_profile, 2, 100, 10, 200);
158 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1; 166 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1;
159 rate_profile.num_frames = kNumFramesLong; 167 rate_profile.num_frames = kNumFramesLong;
160 // Codec/network settings. 168
161 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 169 std::vector<RateControlThresholds> rc_thresholds;
162 kVerboseLogging, kBatchMode); 170 AddRateControlThresholds(45, 50, 95, 15, 45, 0, 1, &rc_thresholds);
163 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, false, 171 AddRateControlThresholds(20, 0, 50, 10, 30, 0, 0, &rc_thresholds);
164 kResilienceOn, kCifWidth, kCifHeight); 172 AddRateControlThresholds(5, 0, 30, 5, 25, 0, 0, &rc_thresholds);
165 // Thresholds for expected quality. 173
166 QualityThresholds quality_thresholds(31.5, 18.0, 0.80, 0.43); 174 QualityThresholds quality_thresholds(31.5, 18.0, 0.80, 0.43);
167 // Thresholds for rate control. 175
168 RateControlThresholds rc_thresholds[3]; 176 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
169 SetRateControlThresholds(rc_thresholds, 0, 45, 50, 95, 15, 45, 0, 1); 177 kNoVisualizationParams);
170 SetRateControlThresholds(rc_thresholds, 1, 20, 0, 50, 10, 30, 0, 0);
171 SetRateControlThresholds(rc_thresholds, 2, 5, 0, 30, 5, 25, 0, 0);
172 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
173 nullptr /* visualization_params */);
174 } 178 }
175 179
176 // VP9: Run with no packet loss and denoiser on. One key frame (first frame). 180 // VP9: Run with no packet loss and denoiser on. One key frame (first frame).
177 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossDenoiserOnVP9) { 181 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossDenoiserOnVP9) {
178 // Bit rate and frame rate profile. 182 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
183 kVerboseLogging, kBatchMode);
184 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, true, true, false,
185 kResilienceOn, kCifWidth, kCifHeight);
186
179 RateProfile rate_profile; 187 RateProfile rate_profile;
180 SetRateProfile(&rate_profile, 0, 500, 30, 0); 188 SetRateProfile(&rate_profile, 0, 500, 30, 0);
181 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 189 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
182 rate_profile.num_frames = kNumFramesShort; 190 rate_profile.num_frames = kNumFramesShort;
183 // Codec/network settings. 191
184 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 192 std::vector<RateControlThresholds> rc_thresholds;
185 kVerboseLogging, kBatchMode); 193 AddRateControlThresholds(0, 40, 20, 10, 20, 0, 1, &rc_thresholds);
186 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, true, true, false, 194
187 kResilienceOn, kCifWidth, kCifHeight);
188 // Thresholds for expected quality.
189 QualityThresholds quality_thresholds(36.8, 35.8, 0.92, 0.91); 195 QualityThresholds quality_thresholds(36.8, 35.8, 0.92, 0.91);
190 // Thresholds for rate control. 196
191 RateControlThresholds rc_thresholds[1]; 197 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
192 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 20, 0, 1); 198 kNoVisualizationParams);
193 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
194 nullptr /* visualization_params */);
195 } 199 }
196 200
197 // Run with no packet loss, at low bitrate. 201 // Run with no packet loss, at low bitrate.
198 // spatial_resize is on, for this low bitrate expect one resize in sequence. 202 // spatial_resize is on, for this low bitrate expect one resize in sequence.
199 // Resize happens on delta frame. Expect only one key frame (first frame). 203 // Resize happens on delta frame. Expect only one key frame (first frame).
200 TEST_F(VideoProcessorIntegrationTest, 204 TEST_F(VideoProcessorIntegrationTest,
201 DISABLED_ProcessNoLossSpatialResizeFrameDropVP9) { 205 DISABLED_ProcessNoLossSpatialResizeFrameDropVP9) {
202 // Bit rate and frame rate profile. 206 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
207 kVerboseLogging, kBatchMode);
208 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, true,
209 kResilienceOn, kCifWidth, kCifHeight);
210
203 RateProfile rate_profile; 211 RateProfile rate_profile;
204 SetRateProfile(&rate_profile, 0, 50, 30, 0); 212 SetRateProfile(&rate_profile, 0, 50, 30, 0);
205 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1; 213 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1;
206 rate_profile.num_frames = kNumFramesLong; 214 rate_profile.num_frames = kNumFramesLong;
207 // Codec/network settings. 215
208 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 216 std::vector<RateControlThresholds> rc_thresholds;
209 kVerboseLogging, kBatchMode); 217 AddRateControlThresholds(228, 70, 160, 15, 80, 1, 1, &rc_thresholds);
210 SetCodecSettings(&config_, kVideoCodecVP9, 1, false, false, true, true, 218
211 kResilienceOn, kCifWidth, kCifHeight);
212 // Thresholds for expected quality.
213 QualityThresholds quality_thresholds(24.0, 13.0, 0.65, 0.37); 219 QualityThresholds quality_thresholds(24.0, 13.0, 0.65, 0.37);
214 // Thresholds for rate control. 220
215 RateControlThresholds rc_thresholds[1]; 221 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
216 SetRateControlThresholds(rc_thresholds, 0, 228, 70, 160, 15, 80, 1, 1); 222 kNoVisualizationParams);
217 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
218 nullptr /* visualization_params */);
219 } 223 }
220 224
221 // TODO(marpan): Add temporal layer test for VP9, once changes are in 225 // TODO(marpan): Add temporal layer test for VP9, once changes are in
222 // vp9 wrapper for this. 226 // vp9 wrapper for this.
223 227
224 #endif // !defined(RTC_DISABLE_VP9) 228 #endif // !defined(RTC_DISABLE_VP9)
225 229
226 // VP8: Run with no packet loss and fixed bitrate. Quality should be very high. 230 // VP8: Run with no packet loss and fixed bitrate. Quality should be very high.
227 // One key frame (first frame only) in sequence. Setting |key_frame_interval| 231 // One key frame (first frame only) in sequence. Setting |key_frame_interval|
228 // to -1 below means no periodic key frames in test. 232 // to -1 below means no periodic key frames in test.
229 TEST_F(VideoProcessorIntegrationTest, ProcessZeroPacketLoss) { 233 TEST_F(VideoProcessorIntegrationTest, ProcessZeroPacketLoss) {
230 // Bit rate and frame rate profile. 234 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
235 kVerboseLogging, kBatchMode);
236 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
237 kResilienceOn, kCifWidth, kCifHeight);
238
231 RateProfile rate_profile; 239 RateProfile rate_profile;
232 SetRateProfile(&rate_profile, 0, 500, 30, 0); 240 SetRateProfile(&rate_profile, 0, 500, 30, 0);
233 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 241 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
234 rate_profile.num_frames = kNumFramesShort; 242 rate_profile.num_frames = kNumFramesShort;
235 // Codec/network settings. 243
236 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 244 std::vector<RateControlThresholds> rc_thresholds;
237 kVerboseLogging, kBatchMode); 245 AddRateControlThresholds(0, 40, 20, 10, 15, 0, 1, &rc_thresholds);
238 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 246
239 kResilienceOn, kCifWidth, kCifHeight);
240 // Thresholds for expected quality.
241 QualityThresholds quality_thresholds(34.95, 33.0, 0.90, 0.89); 247 QualityThresholds quality_thresholds(34.95, 33.0, 0.90, 0.89);
242 // Thresholds for rate control. 248
243 RateControlThresholds rc_thresholds[1]; 249 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
244 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); 250 kNoVisualizationParams);
245 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
246 nullptr /* visualization_params */);
247 } 251 }
248 252
249 // VP8: Run with 5% packet loss and fixed bitrate. Quality should be a bit 253 // VP8: Run with 5% packet loss and fixed bitrate. Quality should be a bit
250 // lower. One key frame (first frame only) in sequence. 254 // lower. One key frame (first frame only) in sequence.
251 TEST_F(VideoProcessorIntegrationTest, Process5PercentPacketLoss) { 255 TEST_F(VideoProcessorIntegrationTest, Process5PercentPacketLoss) {
252 // Bit rate and frame rate profile. 256 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.05f, kForemanCif,
257 kVerboseLogging, kBatchMode);
258 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
259 kResilienceOn, kCifWidth, kCifHeight);
260
253 RateProfile rate_profile; 261 RateProfile rate_profile;
254 SetRateProfile(&rate_profile, 0, 500, 30, 0); 262 SetRateProfile(&rate_profile, 0, 500, 30, 0);
255 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 263 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
256 rate_profile.num_frames = kNumFramesShort; 264 rate_profile.num_frames = kNumFramesShort;
257 // Codec/network settings. 265
258 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.05f, kForemanCif, 266 std::vector<RateControlThresholds> rc_thresholds;
259 kVerboseLogging, kBatchMode); 267 AddRateControlThresholds(0, 40, 20, 10, 15, 0, 1, &rc_thresholds);
260 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 268
261 kResilienceOn, kCifWidth, kCifHeight);
262 // Thresholds for expected quality.
263 QualityThresholds quality_thresholds(20.0, 16.0, 0.60, 0.40); 269 QualityThresholds quality_thresholds(20.0, 16.0, 0.60, 0.40);
264 // Thresholds for rate control. 270
265 RateControlThresholds rc_thresholds[1]; 271 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
266 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); 272 kNoVisualizationParams);
267 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
268 nullptr /* visualization_params */);
269 } 273 }
270 274
271 // VP8: Run with 10% packet loss and fixed bitrate. Quality should be lower. 275 // VP8: Run with 10% packet loss and fixed bitrate. Quality should be lower.
272 // One key frame (first frame only) in sequence. 276 // One key frame (first frame only) in sequence.
273 TEST_F(VideoProcessorIntegrationTest, Process10PercentPacketLoss) { 277 TEST_F(VideoProcessorIntegrationTest, Process10PercentPacketLoss) {
274 // Bit rate and frame rate profile. 278 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.1f, kForemanCif,
279 kVerboseLogging, kBatchMode);
280 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
281 kResilienceOn, kCifWidth, kCifHeight);
282
275 RateProfile rate_profile; 283 RateProfile rate_profile;
276 SetRateProfile(&rate_profile, 0, 500, 30, 0); 284 SetRateProfile(&rate_profile, 0, 500, 30, 0);
277 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 285 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
278 rate_profile.num_frames = kNumFramesShort; 286 rate_profile.num_frames = kNumFramesShort;
279 // Codec/network settings. 287
280 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.1f, kForemanCif, 288 std::vector<RateControlThresholds> rc_thresholds;
281 kVerboseLogging, kBatchMode); 289 AddRateControlThresholds(0, 40, 20, 10, 15, 0, 1, &rc_thresholds);
282 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 290
283 kResilienceOn, kCifWidth, kCifHeight);
284 // Thresholds for expected quality.
285 QualityThresholds quality_thresholds(19.0, 16.0, 0.50, 0.35); 291 QualityThresholds quality_thresholds(19.0, 16.0, 0.50, 0.35);
286 // Thresholds for rate control. 292
287 RateControlThresholds rc_thresholds[1]; 293 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
288 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); 294 kNoVisualizationParams);
289 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
290 nullptr /* visualization_params */);
291 } 295 }
292 296
293 // This test is identical to VideoProcessorIntegrationTest.ProcessZeroPacketLoss 297 // This test is identical to VideoProcessorIntegrationTest.ProcessZeroPacketLoss
294 // except that |batch_mode| is turned on. The main point of this test is to see 298 // except that |batch_mode| is turned on. The main point of this test is to see
295 // that the reported stats are not wildly varying between batch mode and the 299 // that the reported stats are not wildly varying between batch mode and the
296 // regular online mode. 300 // regular online mode.
297 TEST_F(VideoProcessorIntegrationTest, ProcessInBatchMode) { 301 TEST_F(VideoProcessorIntegrationTest, ProcessInBatchMode) {
298 // Bit rate and frame rate profile. 302 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
303 kVerboseLogging, true /* batch_mode */);
304 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
305 kResilienceOn, kCifWidth, kCifHeight);
306
299 RateProfile rate_profile; 307 RateProfile rate_profile;
300 SetRateProfile(&rate_profile, 0, 500, 30, 0); 308 SetRateProfile(&rate_profile, 0, 500, 30, 0);
301 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; 309 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1;
302 rate_profile.num_frames = kNumFramesShort; 310 rate_profile.num_frames = kNumFramesShort;
303 // Codec/network settings. 311
304 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 312 std::vector<RateControlThresholds> rc_thresholds;
305 kVerboseLogging, true /* batch_mode */); 313 AddRateControlThresholds(0, 40, 20, 10, 15, 0, 1, &rc_thresholds);
306 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 314
307 kResilienceOn, kCifWidth, kCifHeight);
308 // Thresholds for expected quality.
309 QualityThresholds quality_thresholds(34.95, 33.0, 0.90, 0.89); 315 QualityThresholds quality_thresholds(34.95, 33.0, 0.90, 0.89);
310 // Thresholds for rate control. 316
311 RateControlThresholds rc_thresholds[1]; 317 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
312 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); 318 kNoVisualizationParams);
313 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
314 nullptr /* visualization_params */);
315 } 319 }
316 320
317 #endif // !defined(WEBRTC_IOS) 321 #endif // !defined(WEBRTC_IOS)
318 322
319 // The tests below are currently disabled for Android. For ARM, the encoder 323 // The tests below are currently disabled for Android. For ARM, the encoder
320 // uses |cpu_speed| = 12, as opposed to default |cpu_speed| <= 6 for x86, 324 // uses |cpu_speed| = 12, as opposed to default |cpu_speed| <= 6 for x86,
321 // which leads to significantly different quality. The quality and rate control 325 // which leads to significantly different quality. The quality and rate control
322 // settings in the tests below are defined for encoder speed setting 326 // settings in the tests below are defined for encoder speed setting
323 // |cpu_speed| <= ~6. A number of settings would need to be significantly 327 // |cpu_speed| <= ~6. A number of settings would need to be significantly
324 // modified for the |cpu_speed| = 12 case. For now, keep the tests below 328 // modified for the |cpu_speed| = 12 case. For now, keep the tests below
325 // disabled on Android. Some quality parameter in the above test has been 329 // disabled on Android. Some quality parameter in the above test has been
326 // adjusted to also pass for |cpu_speed| <= 12. 330 // adjusted to also pass for |cpu_speed| <= 12.
327 331
328 // VP8: Run with no packet loss, with varying bitrate (3 rate updates): 332 // VP8: Run with no packet loss, with varying bitrate (3 rate updates):
329 // low to high to medium. Check that quality and encoder response to the new 333 // low to high to medium. Check that quality and encoder response to the new
330 // target rate/per-frame bandwidth (for each rate update) is within limits. 334 // target rate/per-frame bandwidth (for each rate update) is within limits.
331 // One key frame (first frame only) in sequence. 335 // One key frame (first frame only) in sequence.
332 // Too slow to finish before timeout on iOS. See webrtc:4755. 336 // Too slow to finish before timeout on iOS. See webrtc:4755.
333 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) 337 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
334 #define MAYBE_ProcessNoLossChangeBitRateVP8 \ 338 #define MAYBE_ProcessNoLossChangeBitRateVP8 \
335 DISABLED_ProcessNoLossChangeBitRateVP8 339 DISABLED_ProcessNoLossChangeBitRateVP8
336 #else 340 #else
337 #define MAYBE_ProcessNoLossChangeBitRateVP8 ProcessNoLossChangeBitRateVP8 341 #define MAYBE_ProcessNoLossChangeBitRateVP8 ProcessNoLossChangeBitRateVP8
338 #endif 342 #endif
339 TEST_F(VideoProcessorIntegrationTest, MAYBE_ProcessNoLossChangeBitRateVP8) { 343 TEST_F(VideoProcessorIntegrationTest, MAYBE_ProcessNoLossChangeBitRateVP8) {
340 // Bit rate and frame rate profile. 344 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
345 kVerboseLogging, kBatchMode);
346 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
347 kResilienceOn, kCifWidth, kCifHeight);
348
341 RateProfile rate_profile; 349 RateProfile rate_profile;
342 SetRateProfile(&rate_profile, 0, 200, 30, 0); 350 SetRateProfile(&rate_profile, 0, 200, 30, 0);
343 SetRateProfile(&rate_profile, 1, 800, 30, 100); 351 SetRateProfile(&rate_profile, 1, 800, 30, 100);
344 SetRateProfile(&rate_profile, 2, 500, 30, 200); 352 SetRateProfile(&rate_profile, 2, 500, 30, 200);
345 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1; 353 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1;
346 rate_profile.num_frames = kNumFramesLong; 354 rate_profile.num_frames = kNumFramesLong;
347 // Codec/network settings. 355
348 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 356 std::vector<RateControlThresholds> rc_thresholds;
349 kVerboseLogging, kBatchMode); 357 AddRateControlThresholds(0, 45, 20, 10, 15, 0, 1, &rc_thresholds);
350 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 358 AddRateControlThresholds(0, 0, 25, 20, 10, 0, 0, &rc_thresholds);
351 kResilienceOn, kCifWidth, kCifHeight); 359 AddRateControlThresholds(0, 0, 25, 15, 10, 0, 0, &rc_thresholds);
352 // Thresholds for expected quality. 360
353 QualityThresholds quality_thresholds(34.0, 32.0, 0.85, 0.80); 361 QualityThresholds quality_thresholds(34.0, 32.0, 0.85, 0.80);
354 // Thresholds for rate control. 362
355 RateControlThresholds rc_thresholds[3]; 363 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
356 SetRateControlThresholds(rc_thresholds, 0, 0, 45, 20, 10, 15, 0, 1); 364 kNoVisualizationParams);
357 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 25, 20, 10, 0, 0);
358 SetRateControlThresholds(rc_thresholds, 2, 0, 0, 25, 15, 10, 0, 0);
359 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
360 nullptr /* visualization_params */);
361 } 365 }
362 366
363 // VP8: Run with no packet loss, with an update (decrease) in frame rate. 367 // VP8: Run with no packet loss, with an update (decrease) in frame rate.
364 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. 368 // Lower frame rate means higher per-frame-bandwidth, so easier to encode.
365 // At the bitrate in this test, this means better rate control after the 369 // At the bitrate in this test, this means better rate control after the
366 // update(s) to lower frame rate. So expect less frame drops, and max values 370 // update(s) to lower frame rate. So expect less frame drops, and max values
367 // for the rate control metrics can be lower. One key frame (first frame only). 371 // for the rate control metrics can be lower. One key frame (first frame only).
368 // Note: quality after update should be higher but we currently compute quality 372 // Note: quality after update should be higher but we currently compute quality
369 // metrics averaged over whole sequence run. 373 // metrics averaged over whole sequence run.
370 // Too slow to finish before timeout on iOS. See webrtc:4755. 374 // Too slow to finish before timeout on iOS. See webrtc:4755.
371 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) 375 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
372 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8 \ 376 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8 \
373 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP8 377 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP8
374 #else 378 #else
375 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8 \ 379 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8 \
376 ProcessNoLossChangeFrameRateFrameDropVP8 380 ProcessNoLossChangeFrameRateFrameDropVP8
377 #endif 381 #endif
378 TEST_F(VideoProcessorIntegrationTest, 382 TEST_F(VideoProcessorIntegrationTest,
379 MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8) { 383 MAYBE_ProcessNoLossChangeFrameRateFrameDropVP8) {
380 // Bit rate and frame rate profile. 384 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
385 kVerboseLogging, kBatchMode);
386 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false,
387 kResilienceOn, kCifWidth, kCifHeight);
388
381 RateProfile rate_profile; 389 RateProfile rate_profile;
382 SetRateProfile(&rate_profile, 0, 80, 24, 0); 390 SetRateProfile(&rate_profile, 0, 80, 24, 0);
383 SetRateProfile(&rate_profile, 1, 80, 15, 100); 391 SetRateProfile(&rate_profile, 1, 80, 15, 100);
384 SetRateProfile(&rate_profile, 2, 80, 10, 200); 392 SetRateProfile(&rate_profile, 2, 80, 10, 200);
385 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1; 393 rate_profile.frame_index_rate_update[3] = kNumFramesLong + 1;
386 rate_profile.num_frames = kNumFramesLong; 394 rate_profile.num_frames = kNumFramesLong;
387 // Codec/network settings. 395
388 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 396 std::vector<RateControlThresholds> rc_thresholds;
389 kVerboseLogging, kBatchMode); 397 AddRateControlThresholds(40, 20, 75, 15, 60, 0, 1, &rc_thresholds);
390 SetCodecSettings(&config_, kVideoCodecVP8, 1, false, true, true, false, 398 AddRateControlThresholds(10, 0, 25, 10, 35, 0, 0, &rc_thresholds);
391 kResilienceOn, kCifWidth, kCifHeight); 399 AddRateControlThresholds(0, 0, 20, 10, 15, 0, 0, &rc_thresholds);
392 // Thresholds for expected quality. 400
393 QualityThresholds quality_thresholds(31.0, 22.0, 0.80, 0.65); 401 QualityThresholds quality_thresholds(31.0, 22.0, 0.80, 0.65);
394 // Thresholds for rate control. 402
395 RateControlThresholds rc_thresholds[3]; 403 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
396 SetRateControlThresholds(rc_thresholds, 0, 40, 20, 75, 15, 60, 0, 1); 404 kNoVisualizationParams);
397 SetRateControlThresholds(rc_thresholds, 1, 10, 0, 25, 10, 35, 0, 0);
398 SetRateControlThresholds(rc_thresholds, 2, 0, 0, 20, 10, 15, 0, 0);
399 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds,
400 nullptr /* visualization_params */);
401 } 405 }
402 406
403 // VP8: Run with no packet loss, with 3 temporal layers, with a rate update in 407 // VP8: Run with no packet loss, with 3 temporal layers, with a rate update in
404 // the middle of the sequence. The max values for the frame size mismatch and 408 // the middle of the sequence. The max values for the frame size mismatch and
405 // encoding rate mismatch are applied to each layer. 409 // encoding rate mismatch are applied to each layer.
406 // No dropped frames in this test, and internal spatial resizer is off. 410 // No dropped frames in this test, and internal spatial resizer is off.
407 // One key frame (first frame only) in sequence, so no spatial resizing. 411 // One key frame (first frame only) in sequence, so no spatial resizing.
408 // Too slow to finish before timeout on iOS. See webrtc:4755. 412 // Too slow to finish before timeout on iOS. See webrtc:4755.
409 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) 413 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
410 #define MAYBE_ProcessNoLossTemporalLayersVP8 \ 414 #define MAYBE_ProcessNoLossTemporalLayersVP8 \
411 DISABLED_ProcessNoLossTemporalLayersVP8 415 DISABLED_ProcessNoLossTemporalLayersVP8
412 #else 416 #else
413 #define MAYBE_ProcessNoLossTemporalLayersVP8 ProcessNoLossTemporalLayersVP8 417 #define MAYBE_ProcessNoLossTemporalLayersVP8 ProcessNoLossTemporalLayersVP8
414 #endif 418 #endif
415 TEST_F(VideoProcessorIntegrationTest, MAYBE_ProcessNoLossTemporalLayersVP8) { 419 TEST_F(VideoProcessorIntegrationTest, MAYBE_ProcessNoLossTemporalLayersVP8) {
416 // Bit rate and frame rate profile.
417 RateProfile rate_profile; 420 RateProfile rate_profile;
418 SetRateProfile(&rate_profile, 0, 200, 30, 0); 421 SetRateProfile(&rate_profile, 0, 200, 30, 0);
419 SetRateProfile(&rate_profile, 1, 400, 30, 150); 422 SetRateProfile(&rate_profile, 1, 400, 30, 150);
420 rate_profile.frame_index_rate_update[2] = kNumFramesLong + 1; 423 rate_profile.frame_index_rate_update[2] = kNumFramesLong + 1;
421 rate_profile.num_frames = kNumFramesLong; 424 rate_profile.num_frames = kNumFramesLong;
422 // Codec/network settings. 425
423 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif, 426 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
åsapersson 2017/08/25 09:17:05 nit: maybe move up as in other tests
424 kVerboseLogging, kBatchMode); 427 kVerboseLogging, kBatchMode);
425 SetCodecSettings(&config_, kVideoCodecVP8, 3, false, true, true, false, 428 SetCodecSettings(&config_, kVideoCodecVP8, 3, false, true, true, false,
426 kResilienceOn, kCifWidth, kCifHeight); 429 kResilienceOn, kCifWidth, kCifHeight);
427 // Thresholds for expected quality. 430
428 QualityThresholds quality_thresholds(32.5, 30.0, 0.85, 0.80); 431 QualityThresholds quality_thresholds(32.5, 30.0, 0.85, 0.80);
429 // Thresholds for rate control. 432
430 RateControlThresholds rc_thresholds[2]; 433 std::vector<RateControlThresholds> rc_thresholds;
431 SetRateControlThresholds(rc_thresholds, 0, 0, 20, 30, 10, 10, 0, 1); 434 AddRateControlThresholds(0, 20, 30, 10, 10, 0, 1, &rc_thresholds);
432 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 30, 15, 10, 0, 0); 435 AddRateControlThresholds(0, 0, 30, 15, 10, 0, 0, &rc_thresholds);
433 ProcessFramesAndVerify(quality_thresholds, rate_profile, rc_thresholds, 436
434 nullptr /* visualization_params */); 437 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
438 kNoVisualizationParams);
435 } 439 }
436 } // namespace test 440 } // namespace test
437 } // namespace webrtc 441 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698