共用方式為


VMRALLOCATIONINFO Structure

 
Microsoft DirectShow 9.0

VMRALLOCATIONINFO Structure

This topic applies to Windows XP or later.

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

Double word containing 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

Specifies the minimum number of buffers to create for this surface.

dwMaxBuffers

Specifies the maximum number of buffers to create for this surface.

dwInterlaceFlags

These are the same flags that are used in the VIDEOINFOHEADER2 structure.

szNativeSize

Specifies the size of the native video rectangle.

Requirements

Header: Dshow.h. Requires Microsoft® Windows® XP.

See Also