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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
704 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. | 704 // Lower frame rate means higher per-frame-bandwidth, so easier to encode. |
705 // At the low bitrate in this test, this means better rate control after the | 705 // At the low bitrate in this test, this means better rate control after the |
706 // update(s) to lower frame rate. So expect less frame drops, and max values | 706 // update(s) to lower frame rate. So expect less frame drops, and max values |
707 // for the rate control metrics can be lower. One key frame (first frame only). | 707 // for the rate control metrics can be lower. One key frame (first frame only). |
708 // Note: quality after update should be higher but we currently compute quality | 708 // Note: quality after update should be higher but we currently compute quality |
709 // metrics averaged over whole sequence run. | 709 // metrics averaged over whole sequence run. |
| 710 |
| 711 #if defined(OS_ANDROID) |
| 712 // Flaky on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=6057. |
| 713 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ |
| 714 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP9 |
| 715 #else |
| 716 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ |
| 717 ProcessNoLossChangeFrameRateFrameDropVP9 |
| 718 #endif |
710 TEST_F(VideoProcessorIntegrationTest, | 719 TEST_F(VideoProcessorIntegrationTest, |
711 ProcessNoLossChangeFrameRateFrameDropVP9) { | 720 MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9) { |
712 config_.networking_config.packet_loss_probability = 0; | 721 config_.networking_config.packet_loss_probability = 0; |
713 // Bitrate and frame rate profile. | 722 // Bitrate and frame rate profile. |
714 RateProfile rate_profile; | 723 RateProfile rate_profile; |
715 SetRateProfilePars(&rate_profile, 0, 100, 24, 0); | 724 SetRateProfilePars(&rate_profile, 0, 100, 24, 0); |
716 SetRateProfilePars(&rate_profile, 1, 100, 15, 100); | 725 SetRateProfilePars(&rate_profile, 1, 100, 15, 100); |
717 SetRateProfilePars(&rate_profile, 2, 100, 10, 200); | 726 SetRateProfilePars(&rate_profile, 2, 100, 10, 200); |
718 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; | 727 rate_profile.frame_index_rate_update[3] = kNbrFramesLong + 1; |
719 rate_profile.num_frames = kNbrFramesLong; | 728 rate_profile.num_frames = kNbrFramesLong; |
720 // Codec/network settings. | 729 // Codec/network settings. |
721 CodecConfigPars process_settings; | 730 CodecConfigPars process_settings; |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 QualityMetrics quality_metrics; | 1006 QualityMetrics quality_metrics; |
998 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); | 1007 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); |
999 // Metrics for rate control. | 1008 // Metrics for rate control. |
1000 RateControlMetrics rc_metrics[2]; | 1009 RateControlMetrics rc_metrics[2]; |
1001 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 1010 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
1002 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 1011 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
1003 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 1012 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
1004 rc_metrics); | 1013 rc_metrics); |
1005 } | 1014 } |
1006 } // namespace webrtc | 1015 } // namespace webrtc |
OLD | NEW |