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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // Configure input filename. | 242 // Configure input filename. |
243 config_.input_filename = test::ResourcePath(process.filename, "yuv"); | 243 config_.input_filename = test::ResourcePath(process.filename, "yuv"); |
244 if (process.verbose_logging) | 244 if (process.verbose_logging) |
245 printf("Filename: %s\n", process.filename.c_str()); | 245 printf("Filename: %s\n", process.filename.c_str()); |
246 // Generate an output filename in a safe way. | 246 // Generate an output filename in a safe way. |
247 config_.output_filename = test::TempFilename( | 247 config_.output_filename = test::TempFilename( |
248 test::OutputPath(), "videoprocessor_integrationtest"); | 248 test::OutputPath(), "videoprocessor_integrationtest"); |
249 | 249 |
250 config_.frame_length_in_bytes = | 250 config_.frame_length_in_bytes = |
251 CalcBufferSize(kI420, process.width, process.height); | 251 CalcBufferSize(VideoType::kI420, process.width, process.height); |
252 config_.verbose = process.verbose_logging; | 252 config_.verbose = process.verbose_logging; |
253 config_.use_single_core = process.use_single_core; | 253 config_.use_single_core = process.use_single_core; |
254 // Key frame interval and packet loss are set for each test. | 254 // Key frame interval and packet loss are set for each test. |
255 config_.keyframe_interval = process.key_frame_interval; | 255 config_.keyframe_interval = process.key_frame_interval; |
256 config_.networking_config.packet_loss_probability = | 256 config_.networking_config.packet_loss_probability = |
257 packet_loss_probability_; | 257 packet_loss_probability_; |
258 | 258 |
259 // Configure codec settings. | 259 // Configure codec settings. |
260 VideoCodingModule::Codec(process.codec_type, &codec_settings_); | 260 VideoCodingModule::Codec(process.codec_type, &codec_settings_); |
261 config_.codec_settings = &codec_settings_; | 261 config_.codec_settings = &codec_settings_; |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 | 817 |
818 // Codec and network settings. | 818 // Codec and network settings. |
819 float packet_loss_probability_; | 819 float packet_loss_probability_; |
820 int num_temporal_layers_; | 820 int num_temporal_layers_; |
821 }; | 821 }; |
822 | 822 |
823 } // namespace test | 823 } // namespace test |
824 } // namespace webrtc | 824 } // namespace webrtc |
825 | 825 |
826 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ | 826 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES
T_H_ |
OLD | NEW |