IAMVideoAccelerator::GetCompBufferInfo method

The GetCompBufferInfo method gets information about the compressed buffers used for DirectX Video Acceleration (DXVA) decoding.


HRESULT GetCompBufferInfo(
  const GUID               *pGuid,
  const AMVAUncompDataInfo *pamvaUncompDataInfo,
  LPDWORD                  pdwNumTypesCompBuffers,
  LPAMVACompBufferInfo     pamvaCompBufferInfo



Pointer to a GUID that specifies the DXVA profile in use.


Pointer to an AMVAUncompDataInfo structure that specifies the size and pixel format of the uncompressed data.


On input, specifies the number of elements in the pamvaCompBufferInfo array. If pamvaCompBufferInfo is NULL, the value of *pdwNumTypesCompBuffers must be zero.

On output, if pamvaCompBufferInfo is NULL, pdwNumTypesCompBuffers receives the size of array to allocate. Otherwise, pdwNumTypesCompBuffers receives the actual number of elements copied to the pamvaCompBufferInfo array.


Address of an array of AMVACompBufferInfo structures, or NULL. If the value is non-NULL, the method copies a list of AMVACompBufferInfo structures to this array. Each structure corresponds to one type of compressed data buffer used by the video accelerator.

Set all of the array elements to zero before calling this method.

Each array index corresponds to one of the DXVA surface types defined in dxva.h. The video accelerator will return a list of up to DXVA_NUM_TYPES_COMP_BUFFERSarray entries. For details, refer to the DXVA 1.0 specification, section 3.4, "Buffer Description List." If a particular buffer type is not used by the DXVA profile in question, the entry at that index contains zeroes for all values.

Return value

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
Argument is invalid.
Method is not supported.
NULL pointer argument.


The decoder can use this method to get compressed buffer information during the pin connection process. After the pins are connected, the decoder can call IAMVideoAccelerator::GetInternalCompBufferInfo to get this information.

The AMVACompBufferInfo structure contains information that is needed for the IAMVideoAccelerator::GetBuffer method.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header videoacc.h
Library Strmiids.lib

See also

AMVACompBufferInfo Structure

Error and Success Codes

How Decoders Use IAMVideoAccelerator

IAMVideoAccelerator Interface