| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // The codec settings to use for the test (target bitrate, video size, | 106 // The codec settings to use for the test (target bitrate, video size, |
| 107 // framerate and so on). This struct should be filled in using the | 107 // framerate and so on). This struct should be filled in using the |
| 108 // VideoCodingModule::Codec() method. | 108 // VideoCodingModule::Codec() method. |
| 109 webrtc::VideoCodec codec_settings; | 109 webrtc::VideoCodec codec_settings; |
| 110 | 110 |
| 111 // If printing of information to stdout shall be performed during processing. | 111 // If printing of information to stdout shall be performed during processing. |
| 112 bool verbose = true; | 112 bool verbose = true; |
| 113 | 113 |
| 114 // If HW or SW codec should be used. | 114 // If HW or SW codec should be used. |
| 115 bool hw_codec = false; | 115 bool hw_codec = false; |
| 116 | |
| 117 // In batch mode, the VideoProcessor is fed all the frames for processing | |
| 118 // before any metrics are calculated. This is useful for pipelining HW codecs, | |
| 119 // for which some calculated metrics otherwise would be incorrect. The | |
| 120 // downside with batch mode is that mid-test rate allocation is not supported. | |
| 121 bool batch_mode = false; | |
| 122 }; | 116 }; |
| 123 | 117 |
| 124 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder | 118 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder |
| 125 // interfaces. This is done in a sequential manner in order to be able to | 119 // interfaces. This is done in a sequential manner in order to be able to |
| 126 // measure times properly. | 120 // measure times properly. |
| 127 // The class processes a frame at the time for the configured input file. | 121 // The class processes a frame at the time for the configured input file. |
| 128 // It maintains state of where in the source input file the processing is at. | 122 // It maintains state of where in the source input file the processing is at. |
| 129 // | 123 // |
| 130 // Regarding packet loss: Note that keyframes are excluded (first or all | 124 // Regarding packet loss: Note that keyframes are excluded (first or all |
| 131 // depending on the ExcludeFrameTypes setting). This is because if key frames | 125 // depending on the ExcludeFrameTypes setting). This is because if key frames |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 338 |
| 345 rtc::SequencedTaskChecker sequence_checker_; | 339 rtc::SequencedTaskChecker sequence_checker_; |
| 346 | 340 |
| 347 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); | 341 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); |
| 348 }; | 342 }; |
| 349 | 343 |
| 350 } // namespace test | 344 } // namespace test |
| 351 } // namespace webrtc | 345 } // namespace webrtc |
| 352 | 346 |
| 353 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 347 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
| OLD | NEW |