Partager via


Utility Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This section contains reference entries for the DirectShow utility functions.

DirectShow provides utilities for conversion, setup, timers, retrieving interfaces and helper functions for math operations, property pages, BSTR functions, and strings, and stream integer functions.

Most utilities are contained in Wxutil.h, but others are contained in Combase.h, Errors.h, Pstream.h, Refclock.h, Renbase.h, Videoctl.h, and Wtype.h.

Programming element Description

Bitmap Functions

The Wxutil.h header file in the DirectShow base classes provides functions and macros to help convert between VIDEOINFOHEADER and BITMAPINFO structures.

BSTR Functions

The Wxutil.h header file in the DirectShow base classes provides helper functions for allocating and freeing task-allocated BSTR strings.

CCritSec Debug Functions

The Wxutil.h header file in the DirectShow base classes provides functions to make deadlocks easier to track.

Conversion Functions

The Wxutil.h header file in the DirectShow base classes provides functions for converting between different data types (for example, between integers and wide strings) and between different stream formats.

CPosPassThru Helper Function

The CPosPassThru helper function creates a plug-in distributor (a CPosPassThru COM object) that supports IMediaSeeking and IMediaPosition.

Error Message Function

The Errors.h header file provides a function for getting an error message for a given message identifier in the current language.

Math Helper Functions

The Wxutil.h header file in the DirectShow base classes provides some mathematical helper functions.

Media Type Functions

The Mtype.h header file in the DirectShow base classes provides helper functions for handling media types.

Message Function

The Wxutil.h header file in the DirectShow base classes provides a helper function for processing messages.

Object and Pin Functions

The Wxutil.h and Combase.h header files in the DirectShow base classes provides helper functions for comparing objects and pins and retrieving interfaces to objects.

Reference Time Function

The Refclock.h header file in the DirectShow base classes provides a reference time conversion function.

Stream Integer Functions

These functions encode an integer in a stream object.

String Functions

The Wxutil.h header file in the DirectShow base classes provides wide string functions, if they are not already provided by the Win32 environment.

See Also

Reference

DirectShow Functions