IAMTimelineGroup::SetMediaType
Microsoft DirectShow 9.0 |
IAMTimelineGroup::SetMediaType
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:
- Uncompressed RGB video
- 16 bits per pixel, 555 format (MEDIASUBTYPE_RGB555)
- 24 bits per pixel (MEDIASUBTYPE_RGB24)
- 32 bits per pixel, with alpha (MEDIASUBTYPE_ARGB32, not MEDIASUBTYPE_RGB32)
- 16-bit stereo PCM audio (MEDIASUBTYPE_PCM)
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