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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 rc_metrics); | 695 rc_metrics); |
696 } | 696 } |
697 | 697 |
698 // VP9: Run with no packet loss, with an update (decrease) in frame rate. | 698 // VP9: Run with no packet loss, with an update (decrease) in frame rate. |
699 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. | 699 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. |
700 // At the low bitrate in this test, this means better rate control after the | 700 // At the low bitrate in this test, this means better rate control after the |
701 // update(s) to lower frame rate. So expect less frame drops, and max values | 701 // update(s) to lower frame rate. So expect less frame drops, and max values |
702 // for the rate control metrics can be lower. One key frame (first frame only). | 702 // for the rate control metrics can be lower. One key frame (first frame only). |
703 // Note: quality after update should be higher but we currently compute quality | 703 // Note: quality after update should be higher but we currently compute quality |
704 // metrics averaged over whole sequence run. | 704 // metrics averaged over whole sequence run. |
705 | |
706 | |
707 // Flaky https://bugs.chromium.org/p/webrtc/issues/detail?id=6057. | |
708 TEST_F(VideoProcessorIntegrationTest, | 705 TEST_F(VideoProcessorIntegrationTest, |
709 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP9) { | 706 ProcessNoLossChangeFrameRateFrameDropVP9) { |
710 config_.networking_config.packet_loss_probability = 0; | 707 config_.networking_config.packet_loss_probability = 0; |
711 // Bitrate and frame rate profile. | 708 // Bitrate and frame rate profile. |
712 RateProfile rate_profile; | 709 RateProfile rate_profile; |
713 SetRateProfilePars(&rate_profile, 0, 100, 24, 0); | 710 SetRateProfilePars(&rate_profile, 0, 100, 24, 0); |
714 SetRateProfilePars(&rate_profile, 1, 100, 15, 100); | 711 SetRateProfilePars(&rate_profile, 1, 100, 15, 100); |
715 SetRateProfilePars(&rate_profile, 2, 100, 10, 200); | 712 SetRateProfilePars(&rate_profile, 2, 100, 10, 200); |
716 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; | 713 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; |
717 rate_profile.num_frames = kNbrFramesLong; | 714 rate_profile.num_frames = kNbrFramesLong; |
718 // Codec/network settings. | 715 // Codec/network settings. |
719 CodecConfigPars process_settings; | 716 CodecConfigPars process_settings; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 QualityMetrics quality_metrics; | 961 QualityMetrics quality_metrics; |
965 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); | 962 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); |
966 // Metrics for rate control. | 963 // Metrics for rate control. |
967 RateControlMetrics rc_metrics[2]; | 964 RateControlMetrics rc_metrics[2]; |
968 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 965 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
969 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 966 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
970 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 967 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
971 rc_metrics); | 968 rc_metrics); |
972 } | 969 } |
973 } // namespace webrtc | 970 } // namespace webrtc |
OLD | NEW |