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 |
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
| 16 #include "webrtc/base/checks.h" |
16 #include "webrtc/common_video/libyuv/include/scaler.h" | 17 #include "webrtc/common_video/libyuv/include/scaler.h" |
17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
18 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h" | 19 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h" |
19 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h" | 20 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h" |
20 #include "webrtc/modules/video_coding/codecs/test/stats.h" | 21 #include "webrtc/modules/video_coding/codecs/test/stats.h" |
21 #include "webrtc/system_wrappers/include/tick_util.h" | 22 #include "webrtc/system_wrappers/include/tick_util.h" |
22 #include "webrtc/test/testsupport/frame_reader.h" | 23 #include "webrtc/test/testsupport/frame_reader.h" |
23 #include "webrtc/test/testsupport/frame_writer.h" | 24 #include "webrtc/test/testsupport/frame_writer.h" |
24 #include "webrtc/video_frame.h" | 25 #include "webrtc/video_frame.h" |
25 | 26 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 }; | 242 }; |
242 | 243 |
243 // Callback class required to implement according to the VideoDecoder API. | 244 // Callback class required to implement according to the VideoDecoder API. |
244 class VideoProcessorDecodeCompleteCallback | 245 class VideoProcessorDecodeCompleteCallback |
245 : public webrtc::DecodedImageCallback { | 246 : public webrtc::DecodedImageCallback { |
246 public: | 247 public: |
247 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp) | 248 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp) |
248 : video_processor_(vp) { | 249 : video_processor_(vp) { |
249 } | 250 } |
250 int32_t Decoded(webrtc::VideoFrame& image) override; | 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 } |
251 | 257 |
252 private: | 258 private: |
253 VideoProcessorImpl* video_processor_; | 259 VideoProcessorImpl* video_processor_; |
254 }; | 260 }; |
255 }; | 261 }; |
256 | 262 |
257 } // namespace test | 263 } // namespace test |
258 } // namespace webrtc | 264 } // namespace webrtc |
259 | 265 |
260 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ | 266 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ |
OLD | NEW |