Share via


IResize::get_MediaType

 
Microsoft DirectShow 9.0

IResize::get_MediaType

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

Syntax

  HRESULT get_MediaType(
    AM_MEDIA_TYPE *pmt
);

Parameters

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.

Remarks

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.

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