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