Microsoft DirectX 9.0

GetBitmapSubtype

The GetBitmapSubtype function returns the media subtype GUID for the specified bitmap.

Syntax

const GUID GetBitmapSubtype(
    const BITMAPINFOHEADER *pHeader
);

Parameters

pHeader

Pointer to a BITMAPINFOHEADER structure.

Return Value

Returns the media subtype GUID.

Remarks

For uncompressed RGB types, this function maps the biBitCount field to the subtype. For compressed video types, this function uses the FOURCCMap class to map the biCompression field to the subtype.

If the function cannot match the format to a subtype, the return value is GUID_NULL.

Requirements

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

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

See Also