Media Type Functions
A version of this page is also available for
4/8/2010
The Mtype.h header file in the DirectShow base classes provides helper functions for handling media types.
These general-purpose functions create, copy and delete a task-allocated AM_MEDIA_TYPE structure.
This is useful when using the IEnumMediaTypes interface, because the implementation allocates the structures that must be deleted later.
The functions are paired as follows:
CreateMediaType is the opposite of DeleteMediaType.
FreeMediaType is the opposite of CopyMediaType.
Programming element Description Compares the format, height, and width of two video sources.
Copies a task-allocated AM_MEDIA_TYPE structure.
Initializes a media type structure given a wave format structure.
Allocates and initializes an AM_MEDIA_TYPE structure.
Deletes a task-allocated AM_MEDIA_TYPE structure.
Frees a task-allocated AM_MEDIA_TYPE structure from memory.