ID3D11VideoDevice::CheckVideoDecoderFormat method

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

Syntax

HRESULT CheckVideoDecoderFormat(
  const GUID  *pDecoderProfile,
  DXGI_FORMAT Format,
  BOOL        *pSupported
);

Parameters

pDecoderProfile

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

Format

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

pSupported

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.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See Also

ID3D11VideoDevice