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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 int keyframe_interval = 0; | 86 int keyframe_interval = 0; |
87 | 87 |
88 // The codec settings to use for the test (target bitrate, video size, | 88 // The codec settings to use for the test (target bitrate, video size, |
89 // framerate and so on). This struct should be filled in using the | 89 // framerate and so on). This struct should be filled in using the |
90 // VideoCodingModule::Codec() method. | 90 // VideoCodingModule::Codec() method. |
91 webrtc::VideoCodec codec_settings; | 91 webrtc::VideoCodec codec_settings; |
92 | 92 |
93 // If printing of information to stdout shall be performed during processing. | 93 // If printing of information to stdout shall be performed during processing. |
94 bool verbose = true; | 94 bool verbose = true; |
95 | 95 |
96 // If HW or SW codec should be used. | 96 // Should hardware accelerated codecs be used? |
97 bool hw_codec = false; | 97 bool hw_encoder = false; |
| 98 bool hw_decoder = false; |
| 99 |
| 100 // Should the hardware codecs be wrapped in software fallbacks? |
| 101 bool sw_fallback_encoder = false; |
| 102 // TODO(brandtr): Add support for SW decoder fallbacks, when |
| 103 // webrtc::VideoDecoder's can be wrapped in std::unique_ptr's. |
98 }; | 104 }; |
99 | 105 |
100 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder | 106 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder |
101 // interfaces. This is done in a sequential manner in order to be able to | 107 // interfaces. This is done in a sequential manner in order to be able to |
102 // measure times properly. | 108 // measure times properly. |
103 // The class processes a frame at the time for the configured input file. | 109 // The class processes a frame at the time for the configured input file. |
104 // It maintains state of where in the source input file the processing is at. | 110 // It maintains state of where in the source input file the processing is at. |
105 // | 111 // |
106 // Regarding packet loss: Note that keyframes are excluded (first or all | 112 // Regarding packet loss: Note that keyframes are excluded (first or all |
107 // depending on the ExcludeFrameTypes setting). This is because if key frames | 113 // depending on the ExcludeFrameTypes setting). This is because if key frames |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 316 |
311 rtc::SequencedTaskChecker sequence_checker_; | 317 rtc::SequencedTaskChecker sequence_checker_; |
312 | 318 |
313 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); | 319 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); |
314 }; | 320 }; |
315 | 321 |
316 } // namespace test | 322 } // namespace test |
317 } // namespace webrtc | 323 } // namespace webrtc |
318 | 324 |
319 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 325 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
OLD | NEW |