Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(813)

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc

Issue 2362683002: New helper function test::ReadI420Buffer, refactor FrameReader to use it. (Closed)
Patch Set: Another try to fix the 64-bit windows build. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 config_.codec_settings->codecSpecific.VP9.automaticResizeOn = 219 config_.codec_settings->codecSpecific.VP9.automaticResizeOn =
220 spatial_resize_on_; 220 spatial_resize_on_;
221 config_.codec_settings->codecSpecific.VP9.keyFrameInterval = 221 config_.codec_settings->codecSpecific.VP9.keyFrameInterval =
222 kBaseKeyFrameInterval; 222 kBaseKeyFrameInterval;
223 break; 223 break;
224 default: 224 default:
225 assert(false); 225 assert(false);
226 break; 226 break;
227 } 227 }
228 frame_reader_ = new webrtc::test::FrameReaderImpl( 228 frame_reader_ = new webrtc::test::FrameReaderImpl(
229 config_.input_filename, config_.frame_length_in_bytes); 229 config_.input_filename, config_.codec_settings->width,
230 config_.codec_settings->height);
230 frame_writer_ = new webrtc::test::FrameWriterImpl( 231 frame_writer_ = new webrtc::test::FrameWriterImpl(
231 config_.output_filename, config_.frame_length_in_bytes); 232 config_.output_filename, config_.frame_length_in_bytes);
232 ASSERT_TRUE(frame_reader_->Init()); 233 ASSERT_TRUE(frame_reader_->Init());
233 ASSERT_TRUE(frame_writer_->Init()); 234 ASSERT_TRUE(frame_writer_->Init());
234 235
235 packet_manipulator_ = new webrtc::test::PacketManipulatorImpl( 236 packet_manipulator_ = new webrtc::test::PacketManipulatorImpl(
236 &packet_reader_, config_.networking_config, config_.verbose); 237 &packet_reader_, config_.networking_config, config_.verbose);
237 processor_ = new webrtc::test::VideoProcessorImpl( 238 processor_ = new webrtc::test::VideoProcessorImpl(
238 encoder_, decoder_, frame_reader_, frame_writer_, packet_manipulator_, 239 encoder_, decoder_, frame_reader_, frame_writer_, packet_manipulator_,
239 config_, &stats_); 240 config_, &stats_);
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 QualityMetrics quality_metrics; 1007 QualityMetrics quality_metrics;
1007 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80); 1008 SetQualityMetrics(&quality_metrics, 32.5, 30.0, 0.85, 0.80);
1008 // Metrics for rate control. 1009 // Metrics for rate control.
1009 RateControlMetrics rc_metrics[2]; 1010 RateControlMetrics rc_metrics[2];
1010 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1); 1011 SetRateControlMetrics(rc_metrics, 0, 0, 20, 30, 10, 10, 0, 1);
1011 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0); 1012 SetRateControlMetrics(rc_metrics, 1, 0, 0, 30, 15, 10, 0, 0);
1012 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings, 1013 ProcessFramesAndVerify(quality_metrics, rate_profile, process_settings,
1013 rc_metrics); 1014 rc_metrics);
1014 } 1015 }
1015 } // namespace webrtc 1016 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698