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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 const webrtc::EncodedImage& encoded_image, | 236 const webrtc::EncodedImage& encoded_image, |
237 const webrtc::CodecSpecificInfo* codec_specific_info, | 237 const webrtc::CodecSpecificInfo* codec_specific_info, |
238 const webrtc::RTPFragmentationHeader* fragmentation) override; | 238 const webrtc::RTPFragmentationHeader* fragmentation) override; |
239 | 239 |
240 private: | 240 private: |
241 VideoProcessorImpl* video_processor_; | 241 VideoProcessorImpl* video_processor_; |
242 }; | 242 }; |
243 | 243 |
244 // Callback class required to implement according to the VideoDecoder API. | 244 // Callback class required to implement according to the VideoDecoder API. |
245 class VideoProcessorDecodeCompleteCallback | 245 class VideoProcessorDecodeCompleteCallback |
246 : public webrtc::DecodedImageCallback { | 246 : public webrtc::DecodedImageCallback { |
247 public: | 247 public: |
248 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp) | 248 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp) |
249 : video_processor_(vp) { | 249 : video_processor_(vp) {} |
| 250 int32_t Decoded(webrtc::VideoFrame& image) override; |
| 251 int32_t Decoded(webrtc::VideoFrame& image, |
| 252 int64_t decode_time_ms) override { |
| 253 RTC_NOTREACHED(); |
| 254 return -1; |
250 } | 255 } |
251 int32_t Decoded(webrtc::VideoFrame& image) override; | |
252 int32_t Decoded( | |
253 webrtc::VideoFrame& image, int64_t decode_time_ms) override { | |
254 RTC_NOTREACHED(); | |
255 return -1; | |
256 } | |
257 | 256 |
258 private: | 257 private: |
259 VideoProcessorImpl* video_processor_; | 258 VideoProcessorImpl* video_processor_; |
260 }; | 259 }; |
261 }; | 260 }; |
262 | 261 |
263 } // namespace test | 262 } // namespace test |
264 } // namespace webrtc | 263 } // namespace webrtc |
265 | 264 |
266 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 265 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
OLD | NEW |