| synopsis || arguments || prev || next |
void set_lut( int lut_idx, kdu_int32 * lut, int bit_depth, bool is_signed=false)
Java: void Set_lut( int lut_idx, int[] lut, int bit_depth, boolean is_signed)
[Declared in "../apps/compressed_io/jp2.h"]
Completes the initialization of a particular palette lookup table, as identified by lut_idx.
Lookup table indices run from 0 through to num_luts-1, where num_luts is the number of lookup tables, as supplied in the call to init.
This array must have at least num_entries entries, where num_entries is the number of entries (common to all lookup tables), as supplied in the call to init. The entries of this array must lie in the range -2^{ bit_depth-1} to 2^{ bit_depth}-1, if is_signed is true. Otherwise, the LUT entries must lie in the range 0 to 2^{ bit_depth}-1.
Precision associated with the sample values produced by applying this lookup table to map any particular source image component. Affects the interpretation of the entries in the lut array, as described above.
Indicates whether the sample values produced by applying this lookup table have a signed or an unsigned representation. Affects the interpretation of the entries in the lut array, as described above.