Microsoft DirectX 9.0 |
The put_MediaType method sets the output media type on the resizer filter.
Syntax
HRESULT put_MediaType(
const AM_MEDIA_TYPE *pmt
);
Parameters
pmt
[in] Pointer to an AM_MEDIA_TYPE structure that contains the media type.
Return Value
Returns an HRESULT value.
Remarks
DES calls this method before it connects the filter's output pin. Use the media type as the output pin's media type. Return this media type in the CTransformFilter::GetMediaType method, and check agsint this type in the CTransformFilter::CheckTransform method. DES never calls this method after the output pin is connected.
Currently, DES always sets the output media type to an uncompressed RGB format with a VIDEOINFOHEADER format block (format type equals FORMAT_VideoInfo). The subtype might be MEDIASUBTYPE_ARGB32, which indicates 32-bit RGB with an alpha channel.
Requirements
Requires DirectX 9.0 or later.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also