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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 webrtc::VideoCodingModule::Codec(webrtc::kVideoCodecVP8, | 208 webrtc::VideoCodingModule::Codec(webrtc::kVideoCodecVP8, |
209 config->codec_settings); | 209 config->codec_settings); |
210 | 210 |
211 // Check the temporal layers. | 211 // Check the temporal layers. |
212 if (FLAGS_temporal_layers < 0 || | 212 if (FLAGS_temporal_layers < 0 || |
213 FLAGS_temporal_layers > webrtc::kMaxTemporalStreams) { | 213 FLAGS_temporal_layers > webrtc::kMaxTemporalStreams) { |
214 fprintf(stderr, "Temporal layers number must be 0-4, was: %d\n", | 214 fprintf(stderr, "Temporal layers number must be 0-4, was: %d\n", |
215 FLAGS_temporal_layers); | 215 FLAGS_temporal_layers); |
216 return 13; | 216 return 13; |
217 } | 217 } |
218 config->codec_settings->codecSpecific.VP8.numberOfTemporalLayers = | 218 config->codec_settings->VP8()->numberOfTemporalLayers = FLAGS_temporal_layers; |
219 FLAGS_temporal_layers; | |
220 | 219 |
221 // Check the bit rate. | 220 // Check the bit rate. |
222 if (FLAGS_bitrate <= 0) { | 221 if (FLAGS_bitrate <= 0) { |
223 fprintf(stderr, "Bit rate must be >0 kbps, was: %d\n", FLAGS_bitrate); | 222 fprintf(stderr, "Bit rate must be >0 kbps, was: %d\n", FLAGS_bitrate); |
224 return 5; | 223 return 5; |
225 } | 224 } |
226 config->codec_settings->startBitrate = FLAGS_bitrate; | 225 config->codec_settings->startBitrate = FLAGS_bitrate; |
227 | 226 |
228 // Check the keyframe interval. | 227 // Check the keyframe interval. |
229 if (FLAGS_keyframe_interval < 0) { | 228 if (FLAGS_keyframe_interval < 0) { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 } | 544 } |
546 if (FLAGS_python) { | 545 if (FLAGS_python) { |
547 PrintPythonOutput(config, stats, ssim_result, psnr_result); | 546 PrintPythonOutput(config, stats, ssim_result, psnr_result); |
548 } | 547 } |
549 delete processor; | 548 delete processor; |
550 delete encoder; | 549 delete encoder; |
551 delete decoder; | 550 delete decoder; |
552 Log("Quality test finished!"); | 551 Log("Quality test finished!"); |
553 return 0; | 552 return 0; |
554 } | 553 } |
OLD | NEW |