Windows Media Format SDK banner art
PreviousNext

WM_MEDIA_TYPE

The WM_MEDIA_TYPE structure describes a media sample type.

Syntax

typedef struct _WMMediaType{
    GUID  majortype;
    GUID  subtype;
    BOOL  bFixedSizeSamples;
    BOOL  bTemporalCompression;
    ULONG  lSampleSize;
    GUID  formattype;
    IUnknown*  pUnk;
    ULONG  cbFormat;
    [size_is(cbFormat)] BYTE  *pbFormat;
} WM_MEDIA_TYPE;

Members

  majortype

Specifies the major type of the media sample.

  subtype

Specifies the subtype of the media sample.

  bFixedSizeSamples

Set to True if the samples are of a fixed size.

  bTemporalCompression

Set to True if the samples are compressed.

  lSampleSize

Long integer containing the size of the sample in bytes.

  formattype

Specifies the GUID of the format type.

  pUnk

Pointer to an IUnknown object.

  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: FORMAT_MPEGVideo (MPEG1VIDEOINFO structure), FORMAT_VideoInfo (VIDEOINFOHEADER structure), FORMAT_WaveFormatEx (WAVEFORMATEX structure), FORMAT_MPEG2Video (MPEG2VIDEOINFO structure), FORMAT_VideoInfo2 (VIDEOINFOHEADER2 structure).

Remarks

This is the same as the DirectShow structure AM_MEDIA_TYPE but is redefined in this SDK to avoid conflict with DirectShow names

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.