ID3D11VideoContext::GetDecoderBuffer method
Gets a pointer to a decoder buffer.
Syntax
HRESULT GetDecoderBuffer( [in] ID3D11VideoDecoder *pDecoder, [in] D3D11_VIDEO_DECODER_BUFFER_TYPE Type, [out] UINT *pBufferSize, [out] void **ppBuffer );
Parameters
- pDecoder [in]
-
A pointer to the ID3D11VideoDecoder interface. To get this pointer, call ID3D11VideoDevice::CreateVideoDecoder.
- Type [in]
-
The type of buffer to retrieve, specified as a member of the D3D11_VIDEO_DECODER_BUFFER_TYPE enumeration.
- pBufferSize [out]
-
Receives the size of the buffer, in bytes.
- ppBuffer [out]
-
Receives a pointer to the start of the memory buffer.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The graphics driver allocates the buffers that are used for decoding. This method locks the Microsoft Direct3D surface that contains the buffer. When you are done using the buffer, call ID3D11VideoContext::ReleaseDecoderBuffer to unlock the surface.
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 |
|
See also