ID3D11VideoDevice::CheckVideoDecoderFormat method (d3d11.h)

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

Syntax

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

Parameters

[in] pDecoderProfile

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

[in] Format

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

[out] 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

Requirement Value
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