| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 // Invoked by the callback when a frame has completed encoding. | 225 // Invoked by the callback when a frame has completed encoding. |
| 226 void FrameEncoded(webrtc::VideoCodecType codec, | 226 void FrameEncoded(webrtc::VideoCodecType codec, |
| 227 const webrtc::EncodedImage& encodedImage, | 227 const webrtc::EncodedImage& encodedImage, |
| 228 const webrtc::RTPFragmentationHeader* fragmentation); | 228 const webrtc::RTPFragmentationHeader* fragmentation); |
| 229 | 229 |
| 230 // Invoked by the callback when a frame has completed decoding. | 230 // Invoked by the callback when a frame has completed decoding. |
| 231 void FrameDecoded(const webrtc::VideoFrame& image); | 231 void FrameDecoded(const webrtc::VideoFrame& image); |
| 232 | 232 |
| 233 // Used for getting a 32-bit integer representing time | |
| 234 // (checks the size is within signed 32-bit bounds before casting it) | |
| 235 int GetElapsedTimeMicroseconds(int64_t start, int64_t stop); | |
| 236 | |
| 237 // Updates the encoder with the target bit rate and the frame rate. | 233 // Updates the encoder with the target bit rate and the frame rate. |
| 238 void SetRates(int bit_rate, int frame_rate) override; | 234 void SetRates(int bit_rate, int frame_rate) override; |
| 239 | 235 |
| 240 // Return the size of the encoded frame in bytes. | 236 // Return the size of the encoded frame in bytes. |
| 241 size_t EncodedFrameSize() override; | 237 size_t EncodedFrameSize() override; |
| 242 | 238 |
| 243 // Return the encoded frame type (key or delta). | 239 // Return the encoded frame type (key or delta). |
| 244 FrameType EncodedFrameType() override; | 240 FrameType EncodedFrameType() override; |
| 245 | 241 |
| 246 // Return the number of dropped frames. | 242 // Return the number of dropped frames. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 int num_spatial_resizes_; | 292 int num_spatial_resizes_; |
| 297 double bit_rate_factor_; // Multiply frame length with this to get bit rate. | 293 double bit_rate_factor_; // Multiply frame length with this to get bit rate. |
| 298 int64_t encode_start_ns_; | 294 int64_t encode_start_ns_; |
| 299 int64_t decode_start_ns_; | 295 int64_t decode_start_ns_; |
| 300 }; | 296 }; |
| 301 | 297 |
| 302 } // namespace test | 298 } // namespace test |
| 303 } // namespace webrtc | 299 } // namespace webrtc |
| 304 | 300 |
| 305 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 301 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
| OLD | NEW |