Creates a resource view for a video decoder, describing the output sample for the decoding operation.
public:
HRESULT CreateVideoDecoderOutputView(
ID3D11Resource *pResource,
const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
ID3D11VideoDecoderOutputView **ppVDOVView
)
pResource
Type: ID3D11Resource *
[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
Type: D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *
[in] A pointer to a D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC structure that describes the view.
ppVDOVView
Type: ID3D11VideoDecoderOutputView **
[out, optional] 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.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
See Direct3D 11 return codes for possible return values.
Set the ppVDOVView parameter to NULL to test whether a view is supported.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).