OLD | NEW |
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 |
(...skipping 276 matching lines...) Loading... |
287 TEST_F(VideoProcessorIntegrationTest, ProcessInBatchMode) { | 287 TEST_F(VideoProcessorIntegrationTest, ProcessInBatchMode) { |
288 // Bit rate and frame rate profile. | 288 // Bit rate and frame rate profile. |
289 RateProfile rate_profile; | 289 RateProfile rate_profile; |
290 SetRateProfile(&rate_profile, 0, 500, 30, 0); | 290 SetRateProfile(&rate_profile, 0, 500, 30, 0); |
291 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; | 291 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; |
292 rate_profile.num_frames = kNumFramesShort; | 292 rate_profile.num_frames = kNumFramesShort; |
293 // Codec/network settings. | 293 // Codec/network settings. |
294 CodecParams process_settings; | 294 CodecParams process_settings; |
295 SetCodecParams(&process_settings, kVideoCodecVP8, kHwCodec, kUseSingleCore, | 295 SetCodecParams(&process_settings, kVideoCodecVP8, kHwCodec, kUseSingleCore, |
296 0.0f, -1, 1, false, true, true, false, 352, 288, "foreman_cif", | 296 0.0f, -1, 1, false, true, true, false, 352, 288, "foreman_cif", |
297 false /* verbose_logging */, true /* batch_mode */); | 297 false /* verbose_logging */, true /* correctness_mode */, |
| 298 true /* batch_mode */); |
298 // Thresholds for expected quality. | 299 // Thresholds for expected quality. |
299 QualityThresholds quality_thresholds; | 300 QualityThresholds quality_thresholds; |
300 SetQualityThresholds(&quality_thresholds, 34.95, 33.0, 0.90, 0.89); | 301 SetQualityThresholds(&quality_thresholds, 34.95, 33.0, 0.90, 0.89); |
301 // Thresholds for rate control. | 302 // Thresholds for rate control. |
302 RateControlThresholds rc_thresholds[1]; | 303 RateControlThresholds rc_thresholds[1]; |
303 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); | 304 SetRateControlThresholds(rc_thresholds, 0, 0, 40, 20, 10, 15, 0, 1); |
304 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, | 305 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, |
305 rc_thresholds, nullptr /* visualization_params */); | 306 rc_thresholds, nullptr /* visualization_params */); |
306 } | 307 } |
307 | 308 |
(...skipping 113 matching lines...) Loading... |
421 SetQualityThresholds(&quality_thresholds, 32.5, 30.0, 0.85, 0.80); | 422 SetQualityThresholds(&quality_thresholds, 32.5, 30.0, 0.85, 0.80); |
422 // Thresholds for rate control. | 423 // Thresholds for rate control. |
423 RateControlThresholds rc_thresholds[2]; | 424 RateControlThresholds rc_thresholds[2]; |
424 SetRateControlThresholds(rc_thresholds, 0, 0, 20, 30, 10, 10, 0, 1); | 425 SetRateControlThresholds(rc_thresholds, 0, 0, 20, 30, 10, 10, 0, 1); |
425 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 30, 15, 10, 0, 0); | 426 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 30, 15, 10, 0, 0); |
426 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, | 427 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, |
427 rc_thresholds, nullptr /* visualization_params */); | 428 rc_thresholds, nullptr /* visualization_params */); |
428 } | 429 } |
429 } // namespace test | 430 } // namespace test |
430 } // namespace webrtc | 431 } // namespace webrtc |
OLD | NEW |