Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.h

Issue 2695653002: Add support for creating HW codecs in VideoProcessor tests. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 // Callback class required to implement according to the VideoDecoder API. 241 // Callback class required to implement according to the VideoDecoder API.
242 class VideoProcessorDecodeCompleteCallback 242 class VideoProcessorDecodeCompleteCallback
243 : public webrtc::DecodedImageCallback { 243 : public webrtc::DecodedImageCallback {
244 public: 244 public:
245 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp) 245 explicit VideoProcessorDecodeCompleteCallback(VideoProcessorImpl* vp)
246 : video_processor_(vp) {} 246 : video_processor_(vp) {}
247 int32_t Decoded(webrtc::VideoFrame& image) override; 247 int32_t Decoded(webrtc::VideoFrame& image) override;
248 int32_t Decoded(webrtc::VideoFrame& image, 248 int32_t Decoded(webrtc::VideoFrame& image,
249 int64_t decode_time_ms) override { 249 int64_t decode_time_ms) override {
250 RTC_NOTREACHED(); 250 return Decoded(image);
brandtr 2017/02/13 12:40:26 Android HW decoders use this callback.
251 return -1;
252 } 251 }
253 void Decoded(VideoFrame& frame, 252 void Decoded(VideoFrame& frame,
254 rtc::Optional<int32_t> decode_time_ms, 253 rtc::Optional<int32_t> decode_time_ms,
255 rtc::Optional<uint8_t> qp) override { 254 rtc::Optional<uint8_t> qp) override {
256 RTC_NOTREACHED(); 255 RTC_NOTREACHED();
257 } 256 }
258 257
259 private: 258 private:
260 VideoProcessorImpl* const video_processor_; 259 VideoProcessorImpl* const video_processor_;
261 }; 260 };
262 }; 261 };
263 262
264 } // namespace test 263 } // namespace test
265 } // namespace webrtc 264 } // namespace webrtc
266 265
267 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 266 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698