MFVIDEOFORMAT structure (mfobjects.h)

Describes a video format.

Syntax

typedef struct _MFVIDEOFORMAT {
  DWORD                 dwSize;
  MFVideoInfo           videoInfo;
  GUID                  guidFormat;
  MFVideoCompressedInfo compressedInfo;
  MFVideoSurfaceInfo    surfaceInfo;
} MFVIDEOFORMAT;

Members

dwSize

Size of the structure, in bytes. This value includes the size of the palette entries that may appear after the surfaceInfo member.

videoInfo

MFVideoInfo structure. This structure contains information that applies to both compressed and uncompressed formats.

guidFormat

Video subtype. See Video Subtype GUIDs.

compressedInfo

MFVideoCompressedInfo structure. This structure contains information that applies only to compressed formats.

surfaceInfo

MFVideoSurfaceInfo structure. This structure contains information that applies only to uncompressed formats.

Remarks

Applications should avoid using this structure. Instead, it is recommended that applications use attributes to describe the video format. For a list of media type attributes, see Media Type Attributes. With attributes, you can set just the format information that you know, which is easier (and more likely to be accurate) than trying to fill in complete format information for the MFVIDEOFORMAT structure.

To initialize a media type object from an MFVIDEOFORMAT structure, call MFInitMediaTypeFromMFVideoFormat.

You can use the MFVIDEOFORMAT structure as the format block for a DirectShow media type. Set the format GUID to FORMAT_MFVideoFormat.

Requirements

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

See also

Media Foundation Structures

Media Types