ID3D11VideoContext::GetDecoderBuffer method (d3d11.h)

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

[in] pDecoder

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

[in] Type

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

[out] pBufferSize

Receives the size of the buffer, in bytes.

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

Requirement Value
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