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

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

Issue 2509273002: Unify VideoCodecType to/from string functionality (Closed)
Patch Set: Rebase and update unknown string in WebRtcVideoEncoderFactory Created 4 years, 1 month 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // The codec settings to use for the test (target bitrate, video size, 102 // The codec settings to use for the test (target bitrate, video size,
103 // framerate and so on). This struct must be created and filled in using 103 // framerate and so on). This struct must be created and filled in using
104 // the VideoCodingModule::Codec() method. 104 // the VideoCodingModule::Codec() method.
105 webrtc::VideoCodec* codec_settings; 105 webrtc::VideoCodec* codec_settings;
106 106
107 // If printing of information to stdout shall be performed during processing. 107 // If printing of information to stdout shall be performed during processing.
108 bool verbose; 108 bool verbose;
109 }; 109 };
110 110
111 // Returns a string representation of the enum value.
112 const char* VideoCodecTypeToStr(webrtc::VideoCodecType e);
113
114 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder 111 // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder
115 // interfaces. This is done in a sequential manner in order to be able to 112 // interfaces. This is done in a sequential manner in order to be able to
116 // measure times properly. 113 // measure times properly.
117 // The class processes a frame at the time for the configured input file. 114 // The class processes a frame at the time for the configured input file.
118 // It maintains state of where in the source input file the processing is at. 115 // It maintains state of where in the source input file the processing is at.
119 // 116 //
120 // Regarding packet loss: Note that keyframes are excluded (first or all 117 // Regarding packet loss: Note that keyframes are excluded (first or all
121 // depending on the ExcludeFrameTypes setting). This is because if key frames 118 // depending on the ExcludeFrameTypes setting). This is because if key frames
122 // would be altered, all the following delta frames would be pretty much 119 // would be altered, all the following delta frames would be pretty much
123 // worthless. VP8 has an error-resilience feature that makes it able to handle 120 // worthless. VP8 has an error-resilience feature that makes it able to handle
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 254
258 private: 255 private:
259 VideoProcessorImpl* video_processor_; 256 VideoProcessorImpl* video_processor_;
260 }; 257 };
261 }; 258 };
262 259
263 } // namespace test 260 } // namespace test
264 } // namespace webrtc 261 } // namespace webrtc
265 262
266 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698