ID3D11VideoDevice::CreateVideoDecoderOutputView method (d3d11.h)

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

Syntax

HRESULT CreateVideoDecoderOutputView(
  [in]  ID3D11Resource                             *pResource,
  [in]  const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
  [out] ID3D11VideoDecoderOutputView               **ppVDOVView
);

Parameters

[in] 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.

[in] pDesc

A pointer to a D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC structure that describes the view.

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

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