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 Wxutil.h header file in the DirectShow base classes provides functions and macros to help convert between VIDEOINFOHEADERand BITMAPINFOstructures.

Programming element Description

ContainsPalette

Checks if the video image contains a color palette.

GetBitCount

Finds the number of bits per pixel.

GetBitmapFormatSize

Finds the size (in bytes) needed to build a VIDEOINFOHEADERstructure and related data.

GetBitmapPalette

Finds the first palette entry in a VIDEOINFOHEADERstructure.

GetBitmapSize

Finds the size (in bytes) needed to hold an image.

GetBitmapSubtype

Finds the GUID subtype for a given bitmap info header structure.

GetSubtypeName

Finds the (debug) name for a given GUID subtype.

GetTrueColorType

Finds the GUID subtype for a given bitmap header.

These functions are made available to help manage VIDEOINFOHEADERstructures, which are used throughout DirectShow to describe video data streams.

Although similar to the BITMAPINFOstructure used in Microsoft® Win32® and existing multimedia, VIDEOINFOHEADERalso adds some new video-specific fields.

Global data Description

bits555

Array of color bitmasks for an RGB 555 bitmap.

bits565

Array of color bitmasks for an RGB 565 bitmap.

bits888

Array of color bitmasks for an RGB 24-bit bitmap.

See Also

Reference

Utility Functions