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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 // Metrics for rate control. | 754 // Metrics for rate control. |
755 RateControlMetrics rc_metrics[1]; | 755 RateControlMetrics rc_metrics[1]; |
756 SetRateControlMetrics(rc_metrics, 0, 0, 40, 20, 10, 20, 0, 1); | 756 SetRateControlMetrics(rc_metrics, 0, 0, 40, 20, 10, 20, 0, 1); |
757 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 757 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
758 rc_metrics); | 758 rc_metrics); |
759 } | 759 } |
760 | 760 |
761 // Run with no packet loss, at low bitrate. | 761 // Run with no packet loss, at low bitrate. |
762 // spatial_resize is on, for this low bitrate expect one resize in sequence. | 762 // spatial_resize is on, for this low bitrate expect one resize in sequence. |
763 // Resize happens on delta frame. Expect only one key frame (first frame). | 763 // Resize happens on delta frame. Expect only one key frame (first frame). |
764 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossSpatialResizeFrameDropVP9) { | 764 TEST_F(VideoProcessorIntegrationTest, |
| 765 DISABLED_ProcessNoLossSpatialResizeFrameDropVP9) { |
765 config_.networking_config.packet_loss_probability = 0; | 766 config_.networking_config.packet_loss_probability = 0; |
766 // Bitrate and frame rate profile. | 767 // Bitrate and frame rate profile. |
767 RateProfile rate_profile; | 768 RateProfile rate_profile; |
768 SetRateProfilePars(&rate_profile, 0, 50, 30, 0); | 769 SetRateProfilePars(&rate_profile, 0, 50, 30, 0); |
769 rate_profile.frame_index_rate_update[1] = kNbrFramesLong + 1; | 770 rate_profile.frame_index_rate_update[1] = kNbrFramesLong + 1; |
770 rate_profile.num_frames = kNbrFramesLong; | 771 rate_profile.num_frames = kNbrFramesLong; |
771 // Codec/network settings. | 772 // Codec/network settings. |
772 CodecConfigPars process_settings; | 773 CodecConfigPars process_settings; |
773 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, 1, false, | 774 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, 1, false, |
774 false, true, true); | 775 false, true, true); |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 QualityMetrics quality_metrics; | 970 QualityMetrics quality_metrics; |
970 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); | 971 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); |
971 // Metrics for rate control. | 972 // Metrics for rate control. |
972 RateControlMetrics rc_metrics[2]; | 973 RateControlMetrics rc_metrics[2]; |
973 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 974 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
974 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 975 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
975 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 976 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
976 rc_metrics); | 977 rc_metrics); |
977 } | 978 } |
978 } // namespace webrtc | 979 } // namespace webrtc |
OLD | NEW |