| synopsis || functions || variables |
[Declared in "../apps/image/kdu_image.h"]
This simple structure may be used to convey information about an RGB colour palette, indexed by up to 8 bit component sample values. If the index has more than 8 bits, it is probably better to compress the de-palettized colour samples rather than the palette index.
Precision of the indices mapped by this palette. Must be no larger than 8.
Identifies the bit-depth of the palette colour values in the red, green and blue arrays. May not exceed 31.
Should be set to the index (starting from 0) of the JPEG2000 image component which holds palette indices.
The first 2^{ input_bits} entries in this array hold valid palette entries for the red colour channel. These entries are all expected to be unsigned quantities; the reason for selecting a signed integer data type to hold these unsigned quantities is only to simplify interaction with the jp2_palette object.
See the description of the red array.
See the description of the red array.