Microsoft DirectX 9.0 |
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. Also, top-down video formats (biHeight < 0) are not supported.
To specify a compression format for the group, call the IAMTimelineGroup::SetSmartRecompressFormat method.
Requirements
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also