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