Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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_TYPEstructure.
This is useful when using the IEnumMediaTypesinterface, because the implementation allocates the structures that must be deleted later.
The functions are paired as follows:
-
CreateMediaTypeis the opposite of
DeleteMediaType.
-
FreeMediaTypeis the opposite of
CopyMediaType.
Programming element Description Compares the format, height, and width of two video sources.
Copies a task-allocated AM_MEDIA_TYPEstructure.
Initializes a media type structure given a wave format structure.
Allocates and initializes an AM_MEDIA_TYPEstructure.
Deletes a task-allocated AM_MEDIA_TYPEstructure.
Frees a task-allocated AM_MEDIA_TYPEstructure from memory.