IDirect3DVideoDevice9::GetDXVACompressedBufferInfo method

Gets information about the compressed buffers needed for hardware-accelerated decoding.

Syntax

HRESULT GetDXVACompressedBufferInfo(
   GUID               *pGuid,
   DXVAUncompDataInfo *pUncompData,
   DWORD              *pNumBuffers,
   DXVACompBufferInfo *pBufferInfo
);

Parameters

pGuid

Pointer to a GUID that specifies the DXVA profile. To get a list of supported profiles, call IDirect3DVideoDevice9::GetDXVAGuids.

pUncompData

Pointer to a DXVAUncompDataInfo structure that specifies the size and pixel format of the uncompressed data.

pNumBuffers

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

On output, if pBufferInfo is NULL, pNumBuffers receives the size of array to allocate. Otherwise, pNumBuffers receives the actual number of elements that are copied to the pBufferInfo array.

pBufferInfo

Address of an array of DXVACompBufferInfo structures or NULL. If the value is non-NULL, the method copies a list of DXVACompBufferInfo structures to this array. Each structure corresponds to one type of compressed data buffer that is 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 returns a list of up to DXVA_NUM_TYPES_COMP_BUFFERS array 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, the entry at that index contains zeros for all values.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Dxva.h

See also

IDirect3DVideoDevice9