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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator_win.h

Issue 1591603002: Attempt to fix a crash in the DXVA decoder in the DXVAVideoDecodeAccelerator::ProcessPendingSamplesā€¦ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 11 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
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698