Skip to main content
ID3D11VideoDevice::CheckVideoDecoderFormat method

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

Syntax


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

Parameters

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.

Remarks

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.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

ID3D11VideoDevice