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

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

Issue 1306813009: H.264 video codec support using OpenH264/FFmpeg (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Misc (WebRtcVideoChannel2::...::ConfigureVideoEncoderSettings care about H264 case) Created 5 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 FrameWriter* frame_writer, 161 FrameWriter* frame_writer,
162 PacketManipulator* packet_manipulator, 162 PacketManipulator* packet_manipulator,
163 const TestConfig& config, 163 const TestConfig& config,
164 Stats* stats); 164 Stats* stats);
165 virtual ~VideoProcessorImpl(); 165 virtual ~VideoProcessorImpl();
166 bool Init() override; 166 bool Init() override;
167 bool ProcessFrame(int frame_number) override; 167 bool ProcessFrame(int frame_number) override;
168 168
169 private: 169 private:
170 // Invoked by the callback when a frame has completed encoding. 170 // Invoked by the callback when a frame has completed encoding.
171 void FrameEncoded(const webrtc::EncodedImage& encodedImage); 171 void FrameEncoded(const webrtc::EncodedImage& encodedImage,
172 const webrtc::RTPFragmentationHeader* fragmentation);
172 // Invoked by the callback when a frame has completed decoding. 173 // Invoked by the callback when a frame has completed decoding.
173 void FrameDecoded(const webrtc::VideoFrame& image); 174 void FrameDecoded(const webrtc::VideoFrame& image);
174 // Used for getting a 32-bit integer representing time 175 // Used for getting a 32-bit integer representing time
175 // (checks the size is within signed 32-bit bounds before casting it) 176 // (checks the size is within signed 32-bit bounds before casting it)
176 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start, 177 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start,
177 const webrtc::TickTime& stop); 178 const webrtc::TickTime& stop);
178 // Updates the encoder with the target bit rate and the frame rate. 179 // Updates the encoder with the target bit rate and the frame rate.
179 void SetRates(int bit_rate, int frame_rate) override; 180 void SetRates(int bit_rate, int frame_rate) override;
180 // Return the size of the encoded frame in bytes. 181 // Return the size of the encoded frame in bytes.
181 size_t EncodedFrameSize() override; 182 size_t EncodedFrameSize() override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 246
246 private: 247 private:
247 VideoProcessorImpl* video_processor_; 248 VideoProcessorImpl* video_processor_;
248 }; 249 };
249 }; 250 };
250 251
251 } // namespace test 252 } // namespace test
252 } // namespace webrtc 253 } // namespace webrtc
253 254
254 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 255 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698