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

Unified Diff: media/gpu/v4l2_video_decode_accelerator.cc

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: comments addressed + compile fixes Created 4 years, 3 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: media/gpu/v4l2_video_decode_accelerator.cc
diff --git a/media/gpu/v4l2_video_decode_accelerator.cc b/media/gpu/v4l2_video_decode_accelerator.cc
index e4fb67e4d3a61736610d61ea343502c0bf96f1d7..b218aa55911a99e33b3b1fa7f41689f312ef26e7 100644
--- a/media/gpu/v4l2_video_decode_accelerator.cc
+++ b/media/gpu/v4l2_video_decode_accelerator.cc
@@ -1234,8 +1234,10 @@ void V4L2VideoDecodeAccelerator::Dequeue() {
} else {
output_record.state = kAtClient;
decoder_frames_at_client_++;
+ // TODO(hubbe): Insert correct color space. http://crbug.com/647725
const Picture picture(output_record.picture_id, bitstream_buffer_id,
- gfx::Rect(visible_size_), false);
+ gfx::Rect(visible_size_), gfx::ColorSpace(),
+ false);
pending_picture_ready_.push(
PictureRecord(output_record.cleared, picture));
SendPictureReady();

Powered by Google App Engine
This is Rietveld 408576698