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 double bit_rate_factor_; // multiply frame length with this to get bit rate | 223 double bit_rate_factor_; // multiply frame length with this to get bit rate |
224 int64_t encode_start_ns_; | 224 int64_t encode_start_ns_; |
225 int64_t decode_start_ns_; | 225 int64_t decode_start_ns_; |
226 | 226 |
227 // Callback class required to implement according to the VideoEncoder API. | 227 // Callback class required to implement according to the VideoEncoder API. |
228 class VideoProcessorEncodeCompleteCallback | 228 class VideoProcessorEncodeCompleteCallback |
229 : public webrtc::EncodedImageCallback { | 229 : public webrtc::EncodedImageCallback { |
230 public: | 230 public: |
231 explicit VideoProcessorEncodeCompleteCallback(VideoProcessorImpl* vp) | 231 explicit VideoProcessorEncodeCompleteCallback(VideoProcessorImpl* vp) |
232 : video_processor_(vp) {} | 232 : video_processor_(vp) {} |
233 Result OnEncodedImage( | 233 int32_t Encoded( |
234 const webrtc::EncodedImage& encoded_image, | 234 const webrtc::EncodedImage& encoded_image, |
235 const webrtc::CodecSpecificInfo* codec_specific_info, | 235 const webrtc::CodecSpecificInfo* codec_specific_info, |
236 const webrtc::RTPFragmentationHeader* fragmentation) override; | 236 const webrtc::RTPFragmentationHeader* fragmentation) override; |
237 | 237 |
238 private: | 238 private: |
239 VideoProcessorImpl* video_processor_; | 239 VideoProcessorImpl* video_processor_; |
240 }; | 240 }; |
241 | 241 |
242 // Callback class required to implement according to the VideoDecoder API. | 242 // Callback class required to implement according to the VideoDecoder API. |
243 class VideoProcessorDecodeCompleteCallback | 243 class VideoProcessorDecodeCompleteCallback |
(...skipping 10 matching lines...) Expand all Loading... |
254 | 254 |
255 private: | 255 private: |
256 VideoProcessorImpl* video_processor_; | 256 VideoProcessorImpl* video_processor_; |
257 }; | 257 }; |
258 }; | 258 }; |
259 | 259 |
260 } // namespace test | 260 } // namespace test |
261 } // namespace webrtc | 261 } // namespace webrtc |
262 | 262 |
263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
OLD | NEW |