| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(webrtc::VideoCodecType codec, | 175 void FrameEncoded(webrtc::VideoCodecType codec, |
| 176 const webrtc::EncodedImage& encodedImage); | 176 const webrtc::EncodedImage& encodedImage, |
| 177 const webrtc::RTPFragmentationHeader* fragmentation); |
| 177 // Invoked by the callback when a frame has completed decoding. | 178 // Invoked by the callback when a frame has completed decoding. |
| 178 void FrameDecoded(const webrtc::VideoFrame& image); | 179 void FrameDecoded(const webrtc::VideoFrame& image); |
| 179 // Used for getting a 32-bit integer representing time | 180 // Used for getting a 32-bit integer representing time |
| 180 // (checks the size is within signed 32-bit bounds before casting it) | 181 // (checks the size is within signed 32-bit bounds before casting it) |
| 181 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start, | 182 int GetElapsedTimeMicroseconds(const webrtc::TickTime& start, |
| 182 const webrtc::TickTime& stop); | 183 const webrtc::TickTime& stop); |
| 183 // Updates the encoder with the target bit rate and the frame rate. | 184 // Updates the encoder with the target bit rate and the frame rate. |
| 184 void SetRates(int bit_rate, int frame_rate) override; | 185 void SetRates(int bit_rate, int frame_rate) override; |
| 185 // Return the size of the encoded frame in bytes. | 186 // Return the size of the encoded frame in bytes. |
| 186 size_t EncodedFrameSize() override; | 187 size_t EncodedFrameSize() override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 258 |
| 258 private: | 259 private: |
| 259 VideoProcessorImpl* video_processor_; | 260 VideoProcessorImpl* video_processor_; |
| 260 }; | 261 }; |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 } // namespace test | 264 } // namespace test |
| 264 } // namespace webrtc | 265 } // namespace webrtc |
| 265 | 266 |
| 266 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 267 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
| OLD | NEW |