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 712 matching lines...) Loading... |
723 SetRateControlMetrics(rc_metrics, 0, 0, 40, 20, 10, 20, 0, 1); | 723 SetRateControlMetrics(rc_metrics, 0, 0, 40, 20, 10, 20, 0, 1); |
724 ProcessFramesAndVerify(quality_metrics, | 724 ProcessFramesAndVerify(quality_metrics, |
725 rate_profile, | 725 rate_profile, |
726 process_settings, | 726 process_settings, |
727 rc_metrics); | 727 rc_metrics); |
728 } | 728 } |
729 | 729 |
730 // Run with no packet loss, at low bitrate. | 730 // Run with no packet loss, at low bitrate. |
731 // spatial_resize is on, so expect one resize during the sequence, | 731 // spatial_resize is on, so expect one resize during the sequence, |
732 // resize happens on delta frame. Expect only one key frame (first frame). | 732 // resize happens on delta frame. Expect only one key frame (first frame). |
733 /* | 733 TEST_F(VideoProcessorIntegrationTest, |
734 TEST_F(VideoProcessorIntegrationTest, ProcessNoLossSpatialResizeFrameDropVP9) { | 734 DISABLED_ProcessNoLossSpatialResizeFrameDropVP9) { |
735 config_.networking_config.packet_loss_probability = 0; | 735 config_.networking_config.packet_loss_probability = 0; |
736 // Bitrate and frame rate profile. | 736 // Bitrate and frame rate profile. |
737 RateProfile rate_profile; | 737 RateProfile rate_profile; |
738 SetRateProfilePars(&rate_profile, 0, 50, 30, 0); | 738 SetRateProfilePars(&rate_profile, 0, 50, 30, 0); |
739 rate_profile.frame_index_rate_update[1] = kNbrFramesLong + 1; | 739 rate_profile.frame_index_rate_update[1] = kNbrFramesLong + 1; |
740 rate_profile.num_frames = kNbrFramesLong; | 740 rate_profile.num_frames = kNbrFramesLong; |
741 // Codec/network settings. | 741 // Codec/network settings. |
742 CodecConfigPars process_settings; | 742 CodecConfigPars process_settings; |
743 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, | 743 SetCodecParameters(&process_settings, kVideoCodecVP9, 0.0f, -1, |
744 1, false, false, true, true); | 744 1, false, false, true, true); |
745 // Metrics for expected quality. | 745 // Metrics for expected quality. |
746 QualityMetrics quality_metrics; | 746 QualityMetrics quality_metrics; |
747 SetQualityMetrics(&quality_metrics, 25.0, 13.0, 0.70, 0.40); | 747 SetQualityMetrics(&quality_metrics, 25.0, 13.0, 0.70, 0.40); |
748 // Metrics for rate control. | 748 // Metrics for rate control. |
749 RateControlMetrics rc_metrics[1]; | 749 RateControlMetrics rc_metrics[1]; |
750 SetRateControlMetrics(rc_metrics, 0, 170, 70, 120, 10, 80, 1, 1); | 750 SetRateControlMetrics(rc_metrics, 0, 170, 70, 120, 10, 80, 1, 1); |
751 ProcessFramesAndVerify(quality_metrics, | 751 ProcessFramesAndVerify(quality_metrics, |
752 rate_profile, | 752 rate_profile, |
753 process_settings, | 753 process_settings, |
754 rc_metrics); | 754 rc_metrics); |
755 } | 755 } |
756 */ | |
757 | 756 |
758 // TODO(marpan): Add temporal layer test for VP9, once changes are in | 757 // TODO(marpan): Add temporal layer test for VP9, once changes are in |
759 // vp9 wrapper for this. | 758 // vp9 wrapper for this. |
760 | 759 |
761 // VP8: Run with no packet loss and fixed bitrate. Quality should be very high. | 760 // VP8: Run with no packet loss and fixed bitrate. Quality should be very high. |
762 // One key frame (first frame only) in sequence. Setting |key_frame_interval| | 761 // One key frame (first frame only) in sequence. Setting |key_frame_interval| |
763 // to -1 below means no periodic key frames in test. | 762 // to -1 below means no periodic key frames in test. |
764 TEST_F(VideoProcessorIntegrationTest, ProcessZeroPacketLoss) { | 763 TEST_F(VideoProcessorIntegrationTest, ProcessZeroPacketLoss) { |
765 // Bitrate and frame rate profile. | 764 // Bitrate and frame rate profile. |
766 RateProfile rate_profile; | 765 RateProfile rate_profile; |
(...skipping 189 matching lines...) Loading... |
956 // Metrics for rate control. | 955 // Metrics for rate control. |
957 RateControlMetrics rc_metrics[2]; | 956 RateControlMetrics rc_metrics[2]; |
958 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 957 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
959 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 958 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
960 ProcessFramesAndVerify(quality_metrics, | 959 ProcessFramesAndVerify(quality_metrics, |
961 rate_profile, | 960 rate_profile, |
962 process_settings, | 961 process_settings, |
963 rc_metrics); | 962 rc_metrics); |
964 } | 963 } |
965 } // namespace webrtc | 964 } // namespace webrtc |
OLD | NEW |