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

Unified Diff: media/gpu/dxva_picture_buffer_win.cc

Issue 2503063002: media: Inform VideoBlit/MFTransform of video color information (Closed)
Patch Set: flag controlled, updated dx11 path Created 4 years, 1 month 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/dxva_picture_buffer_win.cc
diff --git a/media/gpu/dxva_picture_buffer_win.cc b/media/gpu/dxva_picture_buffer_win.cc
index e0a37830907230183d5ee9a2de82ad200567ad33..964d63dbd6387c53d039fdccbc693472cf197cd0 100644
--- a/media/gpu/dxva_picture_buffer_win.cc
+++ b/media/gpu/dxva_picture_buffer_win.cc
@@ -224,7 +224,7 @@ bool PbufferPictureBuffer::CopyOutputSampleDataToPictureBuffer(
decoder_dx11_texture_ = dx11_texture;
decoder->CopyTexture(dx11_texture, dx11_decoding_texture_.get(),
dx11_keyed_mutex_, keyed_mutex_value_, id(),
- input_buffer_id);
+ input_buffer_id, color_space_);
return true;
}
D3DSURFACE_DESC surface_desc;
@@ -260,7 +260,8 @@ bool PbufferPictureBuffer::CopyOutputSampleDataToPictureBuffer(
decoder_surface_ = dest_surface;
decoder->CopySurface(decoder_surface_.get(), target_surface_.get(), id(),
- input_buffer_id);
+ input_buffer_id, color_space_);
+ color_space_ = gfx::ColorSpace();
return true;
}
@@ -555,7 +556,7 @@ bool EGLStreamCopyPictureBuffer::CopyOutputSampleDataToPictureBuffer(
dx11_decoding_texture_ = dx11_texture;
decoder->CopyTexture(dx11_texture, decoder_copy_texture_.get(),
dx11_keyed_mutex_, keyed_mutex_value_, id(),
- input_buffer_id);
+ input_buffer_id, color_space_);
// The texture copy will acquire the current keyed mutex value and release
// with the value + 1.
keyed_mutex_value_++;

Powered by Google App Engine
This is Rietveld 408576698