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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 SetRateProfilePars(&rate_profile, 1, 700, 30, 100); | 683 SetRateProfilePars(&rate_profile, 1, 700, 30, 100); |
684 SetRateProfilePars(&rate_profile, 2, 500, 30, 200); | 684 SetRateProfilePars(&rate_profile, 2, 500, 30, 200); |
685 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; | 685 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; |
686 rate_profile.num_frames = kNbrFramesLong; | 686 rate_profile.num_frames = kNbrFramesLong; |
687 // Codec/network settings. | 687 // Codec/network settings. |
688 CodecConfigPars process_settings; | 688 CodecConfigPars process_settings; |
689 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, 1, false, | 689 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, 1, false, |
690 false, true, false); | 690 false, true, false); |
691 // Metrics for expected quality. | 691 // Metrics for expected quality. |
692 QualityMetrics quality_metrics; | 692 QualityMetrics quality_metrics; |
693 SetQualityMetrics(&quality_metrics, 35.7, 30.0, 0.90, 0.85); | 693 SetQualityMetrics(&quality_metrics, 35.5, 30.0, 0.90, 0.85); |
694 // Metrics for rate control. | 694 // Metrics for rate control. |
695 RateControlMetrics rc_metrics[3]; | 695 RateControlMetrics rc_metrics[3]; |
696 SetRateControlMetrics(rc_metrics, 0, 0, 30, 20, 20, 30, 0, 1); | 696 SetRateControlMetrics(rc_metrics, 0, 0, 30, 20, 20, 30, 0, 1); |
697 SetRateControlMetrics(rc_metrics, 1, 2, 0, 20, 20, 60, 0, 0); | 697 SetRateControlMetrics(rc_metrics, 1, 2, 0, 20, 20, 60, 0, 0); |
698 SetRateControlMetrics(rc_metrics, 2, 0, 0, 25, 20, 40, 0, 0); | 698 SetRateControlMetrics(rc_metrics, 2, 0, 0, 25, 20, 40, 0, 0); |
699 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 699 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
700 rc_metrics); | 700 rc_metrics); |
701 } | 701 } |
702 | 702 |
703 // VP9: Run with no packet loss, with an update (decrease) in frame rate. | 703 // VP9: Run with no packet loss, with an update (decrease) in frame rate. |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 QualityMetrics quality_metrics; | 1006 QualityMetrics quality_metrics; |
1007 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); | 1007 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); |
1008 // Metrics for rate control. | 1008 // Metrics for rate control. |
1009 RateControlMetrics rc_metrics[2]; | 1009 RateControlMetrics rc_metrics[2]; |
1010 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 1010 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
1011 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 1011 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
1012 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 1012 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
1013 rc_metrics); | 1013 rc_metrics); |
1014 } | 1014 } |
1015 } // namespace webrtc | 1015 } // namespace webrtc |
OLD | NEW |