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

Unified Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.h

Issue 2695653002: Add support for creating HW codecs in VideoProcessor tests. (Closed)
Patch Set: Don't forget the mac! 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/codecs/test/videoprocessor.h
diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.h b/webrtc/modules/video_coding/codecs/test/videoprocessor.h
index 736acc64c030c7eda3906b2ad7fac8bb4c500787..de20020bdc6f08b53b2c191d48b0367356d4baa7 100644
--- a/webrtc/modules/video_coding/codecs/test/videoprocessor.h
+++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.h
@@ -205,13 +205,13 @@ class VideoProcessorImpl : public VideoProcessor {
}
int32_t Decoded(webrtc::VideoFrame& image,
int64_t decode_time_ms) override {
- RTC_NOTREACHED();
- return -1;
+ return Decoded(image);
}
- void Decoded(VideoFrame& frame,
+ void Decoded(webrtc::VideoFrame& image,
rtc::Optional<int32_t> decode_time_ms,
rtc::Optional<uint8_t> qp) override {
- RTC_NOTREACHED();
+ Decoded(image,
+ decode_time_ms ? static_cast<int32_t>(*decode_time_ms) : -1);
}
private:

Powered by Google App Engine
This is Rietveld 408576698