|Microsoft DirectX 9.0|
The ReleaseBuffer method releases a compressed buffer after processing.
HRESULT ReleaseBuffer( DWORD dwTypeIndex, DWORD dwBufferIndex );
[in] Zero-based index into the surface types supported by the video accelerator driver, or 0xFFFFFFFF.
[in] Buffer index within the type. The valid range is from zero to the value of the dwNumCompBuffers member of the AMVACompBufferInfo structure.
Returns an HRESULT value that depends on the implementation of the interface. HRESULT can include one of the following standard constants, or other values not listed.
|E_INVALIDARG||Argument is invalid.|
|E_NOTIMPL||Method is not supported.|
|E_POINTER||Null pointer argument.|
It is only valid to call this method after the pins are connected. Calling this method unlocks a single buffer. The video decoder calls this method when the buffer is no longer required and after any calls to Execute have been made. Note that the buffer pointer is no longer valid after this call.