ID3D11VideoDevice::CreateVideoDecoderOutputView method

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

pResource [in]

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

A pointer to a D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC structure that describes the view.

ppVDOVView [out]

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 | 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: