[Declared in "../apps/compressed_io/jp2.h"]
Manages colour palettes wherever they are used in JP2-family files. If present, this information is stored in a JP2 "Palette" box.
The principle intent of palettes is to facilitate the efficient representation of images with very few distinct colours, where a single image component provides indices into the palette. However, a JP2 palette is really just a collection of lookup tables, with the restriction that all lookup tables have the same number of entries. It is legal to apply any of the lookup tables to any of the code-stream image components in order to create new mapped channel values. Any or all of these mapped channels may then be associated with particular colour reproduction functions. These associations are described by the JP2 "Component Mapping" and "Channel Definition" boxes (possibly with the help of a "Codestream Registration" box), whose information is collectively accessed and manipulated via the jp2_channels interface.
Objects of this class are merely interfaces to an internal object, which cannot be directly created by an application. Creation and destruction of the internal object, as well as saving and reading of the associated JP2 boxes are capabilities reserved for the internal machinery associated with the file format manager which provides the interface.
Objects which can provide a non-empty jp2_palette interface include jp2_source, jp2_target, jpx_codestream_source, jpx_codestream_target, mj2_video_source and mj2_video_target.
jp2_palette (2 forms)
exists {Java: Exists}
copy {Java: Copy}
init {Java: Init}
set_lut {Java: Set_lut}
get_num_entries {Java: Get_num_entries}
get_num_luts {Java: Get_num_luts}
get_bit_depth {Java: Get_bit_depth}
get_signed {Java: Get_signed}
get_lut (2 forms) {Java: Get_lut}