Microsoft DirectX 9.0


The get_MediaType method returns the resizer filter's current output media type.


HRESULT get_MediaType(
    AM_MEDIA_TYPE *pmt



[out]  Pointer to an AM_MEDIA_TYPE structure allocated by the caller. The method fills this structure with the media type. The caller must release the format block, if any.

Return Value

Returns an HRESULT value.


If the output media type has not been set, return a default media type. The filter must update its output media type when the put_MediaType or put_Size methods are called; the media type returned by get_MediaType must reflect these changes.


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