ID3D11VideoContext::GetDecoderBuffer method

Gets a pointer to a decoder buffer.

Syntax

HRESULT GetDecoderBuffer(
  ID3D11VideoDecoder              *pDecoder,
  D3D11_VIDEO_DECODER_BUFFER_TYPE Type,
  UINT                            *pBufferSize,
  void                            **ppBuffer
);

Parameters

pDecoder

A pointer to the ID3D11VideoDecoder interface. To get this pointer, call ID3D11VideoDevice::CreateVideoDecoder.

Type

The type of buffer to retrieve, specified as a member of the D3D11_VIDEO_DECODER_BUFFER_TYPE enumeration.

pBufferSize

Receives the size of the buffer, in bytes.

ppBuffer

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 Direct3Dsurface 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 | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See Also

ID3D11VideoContext