Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

D3d11.h

See also

ID3D11VideoDevice

 

 

Show:
© 2017 Microsoft