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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 bool error_concealment_on_; | 148 bool error_concealment_on_; |
149 bool denoising_on_; | 149 bool denoising_on_; |
150 bool frame_dropper_on_; | 150 bool frame_dropper_on_; |
151 bool spatial_resize_on_; | 151 bool spatial_resize_on_; |
152 | 152 |
153 VideoProcessorIntegrationTest() {} | 153 VideoProcessorIntegrationTest() {} |
154 virtual ~VideoProcessorIntegrationTest() {} | 154 virtual ~VideoProcessorIntegrationTest() {} |
155 | 155 |
156 void SetUpCodecConfig() { | 156 void SetUpCodecConfig() { |
157 if (codec_type_ == kVideoCodecH264) { | 157 if (codec_type_ == kVideoCodecH264) { |
158 encoder_ = H264Encoder::Create(); | 158 encoder_ = H264Encoder::Create(cricket::VideoCodec("H264")); |
159 decoder_ = H264Decoder::Create(); | 159 decoder_ = H264Decoder::Create(); |
160 VideoCodingModule::Codec(kVideoCodecH264, &codec_settings_); | 160 VideoCodingModule::Codec(kVideoCodecH264, &codec_settings_); |
161 } else if (codec_type_ == kVideoCodecVP8) { | 161 } else if (codec_type_ == kVideoCodecVP8) { |
162 encoder_ = VP8Encoder::Create(); | 162 encoder_ = VP8Encoder::Create(); |
163 decoder_ = VP8Decoder::Create(); | 163 decoder_ = VP8Decoder::Create(); |
164 VideoCodingModule::Codec(kVideoCodecVP8, &codec_settings_); | 164 VideoCodingModule::Codec(kVideoCodecVP8, &codec_settings_); |
165 } else if (codec_type_ == kVideoCodecVP9) { | 165 } else if (codec_type_ == kVideoCodecVP9) { |
166 encoder_ = VP9Encoder::Create(); | 166 encoder_ = VP9Encoder::Create(); |
167 decoder_ = VP9Decoder::Create(); | 167 decoder_ = VP9Decoder::Create(); |
168 VideoCodingModule::Codec(kVideoCodecVP9, &codec_settings_); | 168 VideoCodingModule::Codec(kVideoCodecVP9, &codec_settings_); |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 QualityMetrics quality_metrics; | 1001 QualityMetrics quality_metrics; |
1002 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); | 1002 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); |
1003 // Metrics for rate control. | 1003 // Metrics for rate control. |
1004 RateControlMetrics rc_metrics[2]; | 1004 RateControlMetrics rc_metrics[2]; |
1005 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); | 1005 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); |
1006 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); | 1006 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); |
1007 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, | 1007 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, |
1008 rc_metrics); | 1008 rc_metrics); |
1009 } | 1009 } |
1010 } // namespace webrtc | 1010 } // namespace webrtc |
OLD | NEW |