DXVACompBufferInfo structure (dxva9typ.h)

Specifies the requirements for compressed surfaces for DirectX Video Acceleration (DXVA).

To get this information, call IDirect3DVideoDevice9::GetDXVACompressedBufferInfo. Each DXVACompBufferInfo structure gives the requirements for a specific DXVA surface type. The surface type is defined implicitly by the index of the array that is passed into the pBufferInfo parameter.

Syntax

typedef struct _DXVACompBufferInfo {
  DWORD     NumCompBuffers;
  DWORD     WidthToCreate;
  DWORD     HeightToCreate;
  DWORD     BytesToAllocate;
  DWORD     Usage;
  D3DPOOL   Pool;
  D3DFORMAT Format;
} DXVACompBufferInfo;

Members

NumCompBuffers

The number of surfaces of this type to create.

WidthToCreate

The width of the surface, in pixels.

HeightToCreate

The height of the surface, in pixels.

BytesToAllocate

The size of the surface, in bytes.

Usage

A bitwise OR of one or more D3DUSAGE constants.

Pool

The memory pool in which to create the surface, specified as a D3DPOOL value.

Format

The pixel format, specified as a D3DFORMAT value.

Remarks

To create the compressed surfaces, call IDirect3DVideoDevice9::CreateSurface.

Requirements

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

See also

Direct3D Video Structures

IDirect3DVideoDevice9::GetDXVACompressedBufferInfo