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

Unified Diff: media/gpu/v4l2_video_decode_accelerator.cc

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: compile fix 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 3f0ceeabe5f1160bfbbdfacdb2f9e96b6b3223c4..27fd5caab9e25af50ac52b732084c322645c7648 100644
--- a/media/gpu/v4l2_video_decode_accelerator.cc
+++ b/media/gpu/v4l2_video_decode_accelerator.cc
@@ -1230,8 +1230,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();
@@ -2268,8 +2270,9 @@ void V4L2VideoDecodeAccelerator::FrameProcessed(int32_t bitstream_buffer_id,
output_record.state = kAtClient;
decoder_frames_at_client_++;
image_processor_bitstream_buffer_ids_.pop();
+ // 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();
output_record.cleared = true;

Powered by Google App Engine
This is Rietveld 408576698