Microsoft Windows CE 3.0  

AM_MEDIA_TYPE

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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 IUnknowninterface.
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 typesinclude the following:
Format type Structure pointed to
FORMAT_MPEGVideo MPEG1VIDEOINFO
FORMAT_VideoInfo VIDEOINFOHEADER
FORMAT_WaveFormatEx WAVEFORMATEX
FORMAT_MPEG2Video MPEG2VIDEOINFO
FORMAT_VideoInfo2 VIDEOINFOHEADER2