Skip to main content
ID3D11VideoDevice::CheckVideoDecoderFormat method

Given aprofile, checks whether the driver supports a specified output format.


HRESULT CheckVideoDecoderFormat(
  [in]   GUID pDecoderProfile,
  [in]   DXGI_FORMAT Format,
  [out]  BOOL *pSupported


pDecoderProfile [in]

A pointer to a GUID that identifies the profile. To get the list of supported profiles, call ID3D11VideoDevice::GetVideoDecoderProfile.

Format [in]

A DXGI_FORMAT value that specifies the output format. Typical values include DXGI_FORMAT_NV12 and DXGI_FORMAT_420_OPAQUE.

pSupported [out]

Receives the value TRUE if the format is supported, or FALSE otherwise.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


If the driver does not support the profile given in pDecoderProfile, the method returns E_INVALIDARG. If the driver supports the profile, but the DXGI format is not compatible with the profile, the method succeeds but returns the value FALSE in pSupported.

Windows Phone 8: This API is supported.


Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]



See also