ID3D11VideoDevice::CreateVideoDecoderOutputView method

Creates a resource view for a video decoder, describing the output sample for the decoding operation.

Syntax

HRESULT CreateVideoDecoderOutputView(
  ID3D11Resource                             *pResource,
  const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
  ID3D11VideoDecoderOutputView               **ppVDOVView
);

Parameters

pResource

A pointer to the ID3D11Resource interface of the decoder surface. The resource must be created with the D3D11_BIND_DECODER flag. See D3D11_BIND_FLAG.

pDesc

A pointer to a D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC structure that describes the view.

ppVDOVView

Receives a pointer to the ID3D11VideoDecoderOutputView interface. The caller must release the interface. If this parameter is NULL, the method checks whether the view is supported, but does not create the view.

Return Value

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

Remarks

Set the ppVDOVView parameter to NULL to test whether a view is supported.

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