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

Unified Diff: remoting/codec/video_decoder_vpx.h

Issue 2088953004: Fix VideoDecoderVpx to use pixel format the consumer wants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: remoting/codec/video_decoder_vpx.h
diff --git a/remoting/codec/video_decoder_vpx.h b/remoting/codec/video_decoder_vpx.h
index 48bbb908eee71e61b1d0f29769fa75a12c8b0e61..3e77b860d1285f7851fe627b86878cbeb48ba820 100644
--- a/remoting/codec/video_decoder_vpx.h
+++ b/remoting/codec/video_decoder_vpx.h
@@ -26,6 +26,7 @@ class VideoDecoderVpx : public VideoDecoder {
~VideoDecoderVpx() override;
// VideoDecoder interface.
+ void SetPixelFormat(PixelFormat pixel_format) override;
bool DecodePacket(const VideoPacket& packet,
webrtc::DesktopFrame* frame) override;
@@ -33,6 +34,7 @@ class VideoDecoderVpx : public VideoDecoder {
explicit VideoDecoderVpx(vpx_codec_iface_t* codec);
ScopedVpxCodec codec_;
+ PixelFormat pixel_format_ = PixelFormat::BGRA;
DISALLOW_COPY_AND_ASSIGN(VideoDecoderVpx);
};

Powered by Google App Engine
This is Rietveld 408576698