DisplayType function

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The DisplayType function sends information about a media type to the debug output location. Ignored in retail builds.

Syntax

void DisplayType(
         LPTSTR        label,
   const AM_MEDIA_TYPE *pmtIn
);

Parameters

label

String that contains a message to display with the media type information.

pmtIn

ointer to the AM_MEDIA_TYPE structure that contains the media type.

Return value

This function does not return a value.

Remarks

This function generates several LOG_TRACE messages. At logging level 2 or higher, the function displays the major type, subtype, and format type, and data from the format block. At logging level 5 or higher, the function displays additional information, such as the source and target rectangles for video types.

Requirements

Requirement Value
Header
Wxdebug.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

Debug Output Functions