VMRALLOCATIONINFO structure (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The VMRALLOCATIONINFO structure is used in the VMR-7 filter's IVMRSurfaceAllocator::AllocateSurface method.

Syntax

typedef struct tagVMRALLOCATIONINFO {
  DWORD              dwFlags;
  LPBITMAPINFOHEADER lpHdr;
  LPDDPIXELFORMAT    lpPixFmt;
  SIZE               szAspectRatio;
  DWORD              dwMinBuffers;
  DWORD              dwMaxBuffers;
  DWORD              dwInterlaceFlags;
  SIZE               szNativeSize;
} VMRALLOCATIONINFO;

Members

dwFlags

A bitwise OR of flags from the VMRSurfaceAllocationFlags enumeration.

lpHdr

Pointer to the BITMAPINFOHEADER structure associated with the surface.

lpPixFmt

Pointer to the DDPIXELFORMAT structure associated with the surface.

szAspectRatio

A SIZE structure that specifies the aspect ratio of the new surface.

dwMinBuffers

The minimum number of buffers to create for this surface.

dwMaxBuffers

The maximum number of buffers to create for this surface.

dwInterlaceFlags

A bitwise OR of flags that indicate the interlacing. For a list of flags, see the dwInterlaceFlags member of the VIDEOINFOHEADER2 structure.

szNativeSize

The size of the native video rectangle.

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures