Share via


COLORS

 
Microsoft DirectShow 9.0

COLORS

The COLORS macro retrieves the palette entries from a VIDEOINFO structure.

Syntax

  COLORS(
  pbmi
  )

Parameters

pbmi

Pointer to a VIDEOINFO structure.

Return Value

Returns a pointer to an array of RGBQUAD structures.

Remarks

This macro calculates the address as an offset from the start of the BITMAPINFOHEADER structure, using the value of bmiHeader.biSize. Make sure to initialize the VIDEOINFO structure before calling this macro.

Requirements

**  Header:** Declared in Amvideo.h; include Streams.h.

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

See Also