Index: content/common/gpu/media/dxva_video_decode_accelerator_win.h |
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator_win.h b/content/common/gpu/media/dxva_video_decode_accelerator_win.h |
index 7ebd63ad754a37b483aa48e733f70ee2aa569f8b..d3aeda62c9b06f837b0ec01dd0b48e00e25c571a 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator_win.h |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.h |
@@ -246,6 +246,17 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator |
// Returns true on success. |
bool GetVideoFrameDimensions(IMFSample* sample, int* width, int* height); |
+ // Sets the output type on the |transform| to the GUID identified by the |
+ // the |output_type| parameter. The GUID can be MFVideoFormat_RGB32, |
+ // MFVideoFormat_ARGB32, MFVideoFormat_NV12, etc. |
+ // Additionally if the |width| and |height| parameters are non zero, then |
+ // this function also sets the MF_MT_FRAME_SIZE attribute on the type. |
+ // Returns true on success. |
+ bool SetTransformOutputType(IMFTransform* transform, |
+ const GUID& output_type, |
+ int width, |
+ int height); |
+ |
// To expose client callbacks from VideoDecodeAccelerator. |
media::VideoDecodeAccelerator::Client* client_; |