Retrieves a pointer to a DirectX Video Acceleration (DXVA) decoder buffer.
HRESULT GetBuffer( UINT BufferType, void **ppBuffer, UINT *pBufferSize );
Type of buffer to retrieve. Use one of the following values.
Receives a pointer to the start of the memory buffer.
Receives the size of the buffer, in bytes.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
The method locks the Direct3D surface that contains the buffer. When you are done using the buffer, call IDirectXVideoDecoder::ReleaseBuffer to unlock the surface.
This method might block if too many operations have been queued on the GPU. The method unblocks when a free buffer becomes available.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|