2007年12月13日 星期四

DirectShow MediaType

AM_MEDIA_TYPE http://msdn2.microsoft.com/en-us/library/aa930737.aspx

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;

formattype
Registered (GUID) format type.
pbFormat
Pointer to the format section of the media type. The layout of this is determined by the format type GUID.
-> 指向這個media type的structure


CMediaType::SetFormatType -> specifies the format type
CMediaType::SetFormat -> initializes the format block.

沒有留言: