Compartilhar via


IAMVideoAccelerator::ReleaseBuffer

 
Microsoft DirectShow 9.0

IAMVideoAccelerator::ReleaseBuffer

The ReleaseBuffer method releases a compressed buffer after processing.

Syntax

  HRESULT ReleaseBuffer(
  DWORD dwTypeIndex,
  DWORD dwBufferIndex
);

Parameters

dwTypeIndex

[in] Zero-based index into the surface types supported by the video accelerator driver, or 0xFFFFFFFF.

dwBufferIndex

[in] Buffer index within the type. The valid range is from zero to the value of the dwNumCompBuffers member of the AMVACompBufferInfo structure.

Return Values

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.

Return code Description
E_FAIL Failure.
E_INVALIDARG Argument is invalid.
E_NOTIMPL Method is not supported.
E_POINTER Null pointer argument.
S_OK Success.

Remarks

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.

Requirements

Header: Include videoacc.h.

Library: Use Strmiids.lib.

See Also