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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 710 |
711 #if defined(OS_ANDROID) | 711 #if defined(WEBRTC_ANDROID) |
712 // Flaky on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=6057. | 712 // Flaky on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=6057. |
713 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ | 713 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ |
714 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP9 | 714 DISABLED_ProcessNoLossChangeFrameRateFrameDropVP9 |
715 #else | 715 #else |
716 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ | 716 #define MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9 \ |
717 ProcessNoLossChangeFrameRateFrameDropVP9 | 717 ProcessNoLossChangeFrameRateFrameDropVP9 |
718 #endif | 718 #endif |
719 TEST_F(VideoProcessorIntegrationTest, | 719 TEST_F(VideoProcessorIntegrationTest, |
720 MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9) { | 720 MAYBE_ProcessNoLossChangeFrameRateFrameDropVP9) { |
721 config_.networking_config.packet_loss_probability = 0; | 721 config_.networking_config.packet_loss_probability = 0; |
(...skipping 284 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 |