Share via


AM_MEDIA_TYPE

Describes a media sample type.

typedef struct  _MediaType{
GUID      majortype;
GUID      subtype;
BOOL      bFixedSizeSamples;
BOOL      bTemporalCompression;
ULONG     lSampleSize;
GUID      formattype;
IUnknown  *pUnk;
ULONG     cbFormat;
/* [size_is] */ BYTE __RPC_FAR *pbFormat;
} AM_MEDIA_TYPE;

Members

  • majortype
    Major type of the media sample.
  • subtype
    Subtype of the media sample.
  • bFixedSizeSamples
    If TRUE, samples are of a fixed size.
  • bTemporalCompression
    If TRUE, samples are compressed.
  • lSampleSize
    Size of the sample in bytes.
  • formattype
    Registered (GUID) format type.
  • pUnk
    Pointer to the IUnknown interface.
  • cbFormat
    Size of the format section of the media type.
  • pbFormat
    Pointer to the format section of the media type. The layout of this is determined by the format type GUID. Format types include the following:
    Format type Structure pointed to
    FORMAT_MPEGVideo MPEG1VIDEOINFO
    FORMAT_VideoInfo VIDEOINFOHEADER
    FORMAT_WaveFormatEx WAVEFORMATEX
    FORMAT_MPEG2Video MPEG2VIDEOINFO
    FORMAT_VideoInfo2 VIDEOINFOHEADER2

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.