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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 CodecParams process_settings; | 150 CodecParams process_settings; |
151 SetCodecParams(&process_settings, kVideoCodecVP9, kHwCodec, kUseSingleCore, | 151 SetCodecParams(&process_settings, kVideoCodecVP9, kHwCodec, kUseSingleCore, |
152 0.0f, -1, 1, false, false, true, false); | 152 0.0f, -1, 1, false, false, true, false); |
153 // Thresholds for expected quality. | 153 // Thresholds for expected quality. |
154 QualityThresholds quality_thresholds; | 154 QualityThresholds quality_thresholds; |
155 SetQualityThresholds(&quality_thresholds, 31.5, 18.0, 0.80, 0.43); | 155 SetQualityThresholds(&quality_thresholds, 31.5, 18.0, 0.80, 0.43); |
156 // Thresholds for rate control. | 156 // Thresholds for rate control. |
157 RateControlThresholds rc_thresholds[3]; | 157 RateControlThresholds rc_thresholds[3]; |
158 SetRateControlThresholds(rc_thresholds, 0, 38, 50, 75, 15, 45, 0, 1); | 158 SetRateControlThresholds(rc_thresholds, 0, 38, 50, 75, 15, 45, 0, 1); |
159 SetRateControlThresholds(rc_thresholds, 1, 10, 0, 40, 10, 30, 0, 0); | 159 SetRateControlThresholds(rc_thresholds, 1, 10, 0, 40, 10, 30, 0, 0); |
160 SetRateControlThresholds(rc_thresholds, 2, 5, 0, 30, 5, 20, 0, 0); | 160 SetRateControlThresholds(rc_thresholds, 2, 5, 0, 30, 5, 25, 0, 0); |
161 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, | 161 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, |
162 rc_thresholds, nullptr /* visualization_params */); | 162 rc_thresholds, nullptr /* visualization_params */); |
163 } | 163 } |
164 | 164 |
165 // VP9: Run with no packet loss and denoiser on. One key frame (first frame). | 165 // VP9: Run with no packet loss and denoiser on. One key frame (first frame). |
166 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossDenoiserOnVP9) { | 166 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossDenoiserOnVP9) { |
167 // Bit rate and frame rate profile. | 167 // Bit rate and frame rate profile. |
168 RateProfile rate_profile; | 168 RateProfile rate_profile; |
169 SetRateProfile(&rate_profile, 0, 500, 30, 0); | 169 SetRateProfile(&rate_profile, 0, 500, 30, 0); |
170 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; | 170 rate_profile.frame_index_rate_update[1] = kNumFramesShort + 1; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 SetQualityThresholds(&quality_thresholds, 32.5, 30.0, 0.85, 0.80); | 421 SetQualityThresholds(&quality_thresholds, 32.5, 30.0, 0.85, 0.80); |
422 // Thresholds for rate control. | 422 // Thresholds for rate control. |
423 RateControlThresholds rc_thresholds[2]; | 423 RateControlThresholds rc_thresholds[2]; |
424 SetRateControlThresholds(rc_thresholds, 0, 0, 20, 30, 10, 10, 0, 1); | 424 SetRateControlThresholds(rc_thresholds, 0, 0, 20, 30, 10, 10, 0, 1); |
425 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 30, 15, 10, 0, 0); | 425 SetRateControlThresholds(rc_thresholds, 1, 0, 0, 30, 15, 10, 0, 0); |
426 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, | 426 ProcessFramesAndVerify(quality_thresholds, rate_profile, process_settings, |
427 rc_thresholds, nullptr /* visualization_params */); | 427 rc_thresholds, nullptr /* visualization_params */); |
428 } | 428 } |
429 } // namespace test | 429 } // namespace test |
430 } // namespace webrtc | 430 } // namespace webrtc |
OLD | NEW |