MFVIDEOFORMAT structure (mfobjects.h)

Describes a video format.


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



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


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


Video subtype. See Video Subtype GUIDs.


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


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


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.


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