IDirectXVideoDecoder::GetBuffer method (dxva2api.h)
Retrieves a pointer to a DirectX Video Acceleration (DXVA) decoder buffer.
Syntax
HRESULT GetBuffer(
[in] UINT BufferType,
[out] void **ppBuffer,
[out] UINT *pBufferSize
);
Parameters
[in] BufferType
Type of buffer to retrieve. Use one of the following values.
[out] ppBuffer
Receives a pointer to the start of the memory buffer.
[out] pBufferSize
Receives the size of the buffer, in bytes.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | dxva2api.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for