Partager via


CImageDisplay::CheckPaletteHeader

 
Microsoft DirectShow 9.0

CImageDisplay::CheckPaletteHeader

The CheckPaletteHeader method validates the palette entries in a VIDEOINFO structure.

Syntax

  BOOL CheckPaletteHeader(
    const VIDEOINFO *pInput
);

Parameters

pInput

Pointer to a VIDEOINFO structure.

Return Value

Returns TRUE if the palette entries are valid, or FALSE otherwise.

Remarks

If the image format is not palettized, the method verifies that biClrUsed equals zero. Otherwise, the method verifies that the biCompression flag is BI_RGB; biClrImportant is not greater than biClrUsed; and the number of palette entries does not exceed the maximum, given the color depth.

Requirements

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

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

See Also