Microsoft DirectX 8.1 (C++)

Media Type Functions

The Mtype.h header file in the Microsoft® DirectShow® base classes provides helper functions for handling the AM_MEDIA_TYPE structure.

The AM_MEDIA_TYPE structure contains a pointer (in the pbFormat member) to another block of memory, which is called the format block. When you work with this structure, therefore, you must be careful about memory allocation in order to avoid memory leaks.

The following functions allocate memory:

The following functions free memory:

Requirements

Header: Declared in Mtype.h; include Streams.h.

Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).