Partager via


IMediaTransform::get_MediaType method

The get_MediaType method enables your transform to report the media type that it can handle.

Syntax

HRESULT get_MediaType(
  [out] MEDIA_FORMAT_TYPE *pfType
);

Parameters

pfType [out]

Pointer to a MEDIA_FORMAT_TYPE enumerated value that describes the type of media that the node can handle. Currently, the only valid type is MEDIA_TYPE_VIDEO.

Return value

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
GPUPipelineTime.h
Library
GPUPipelineVC8.lib (Visual Studio 2005);
GPUPipelineVC7.lib (Visual Studio .NET)

See also

IMediaTransform Interface