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

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: Addressed stefan and hta comments Created 5 years, 2 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 FrameWriter* frame_writer, 164 FrameWriter* frame_writer,
165 PacketManipulator* packet_manipulator, 165 PacketManipulator* packet_manipulator,
166 const TestConfig& config, 166 const TestConfig& config,
167 Stats* stats); 167 Stats* stats);
168 virtual ~VideoProcessorImpl(); 168 virtual ~VideoProcessorImpl();
169 bool Init() override; 169 bool Init() override;
170 bool ProcessFrame(int frame_number) override; 170 bool ProcessFrame(int frame_number) override;
171 171
172 private: 172 private:
173 // Invoked by the callback when a frame has completed encoding. 173 // Invoked by the callback when a frame has completed encoding.
174 void FrameEncoded(const webrtc::EncodedImage& encodedImage); 174 void FrameEncoded(const webrtc::EncodedImage& encodedImage,
175 const webrtc::RTPFragmentationHeader* fragmentation);
175 // Invoked by the callback when a frame has completed decoding. 176 // Invoked by the callback when a frame has completed decoding.
176 void FrameDecoded(const webrtc::VideoFrame& image); 177 void FrameDecoded(const webrtc::VideoFrame& image);
177 // Used for getting a 32-bit integer representing time 178 // Used for getting a 32-bit integer representing time
178 // (checks the size is within signed 32-bit bounds before casting it) 179 // (checks the size is within signed 32-bit bounds before casting it)
179 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start, 180 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start,
180 const webrtc::TickTime& stop); 181 const webrtc::TickTime& stop);
181 // Updates the encoder with the target bit rate and the frame rate. 182 // Updates the encoder with the target bit rate and the frame rate.
182 void SetRates(int bit_rate, int frame_rate) override; 183 void SetRates(int bit_rate, int frame_rate) override;
183 // Return the size of the encoded frame in bytes. 184 // Return the size of the encoded frame in bytes.
184 size_t EncodedFrameSize() override; 185 size_t EncodedFrameSize() override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 private: 253 private:
253 VideoProcessorImpl* video_processor_; 254 VideoProcessorImpl* video_processor_;
254 }; 255 };
255 }; 256 };
256 257
257 } // namespace test 258 } // namespace test
258 } // namespace webrtc 259 } // namespace webrtc
259 260
260 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 261 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698