| synopsis || functions || variables |

kdu_rgb8_palette [struct]

[Declared in "../apps/image/kdu_image.h"]


Synopsis

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.


Public Functions

kdu_rgb8_palette

exists

operator!

is_monochrome

rearrange

Public Variables

input_bits [int]

Precision of the indices mapped by this palette. Must be no larger than 8.

output_bits [int]

Identifies the bit-depth of the palette colour values in the red, green and blue arrays. May not exceed 31.

source_component [int]

Should be set to the index (starting from 0) of the JPEG2000 image component which holds palette indices.

red[] [kdu_int32]

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.

green[] [kdu_int32]

See the description of the red array.

blue[] [kdu_int32]

See the description of the red array.


| top || synopsis || functions || variables |