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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.h

Issue 3009963002: Add ability to instantiate VideoEncoderSoftwareFallback in VP tests. (Closed)
Patch Set: srte comments 1. Created 3 years, 3 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 304
299 rtc::SequencedTaskChecker sequence_checker_; 305 rtc::SequencedTaskChecker sequence_checker_;
300 306
301 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); 307 RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor);
302 }; 308 };
303 309
304 } // namespace test 310 } // namespace test
305 } // namespace webrtc 311 } // namespace webrtc
306 312
307 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 313 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698