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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |