Microsoft DirectX 8.1 (C++) |
The SetMediaType method sets the uncompressed media type for the group.
Syntax
HRESULT SetMediaType(
AM_MEDIA_TYPE *pmt
);
Parameters
pmt
[in] Pointer to an AM_MEDIA_TYPE structure describing the format.
Return Value
Returns one of the following HRESULT values:
Return code | Description |
S_OK | Success. |
E_POINTER | NULL pointer argument. |
VFW_E_INVALIDMEDIATYPE | The specified media type is invalid. |
Remarks
Currently, the following media types are supported:
Video types must use FORMAT_VideoInfo for the format type and VIDEOINFOHEADER for the format block. The VIDEOINFOHEADER2 format is not supported.
To specify a compression format for the group, call the IAMTimelineGroup::SetSmartRecompressFormat method.
See Also