| synopsis || arguments || prev |
Overload navigation: 1, 2
void get_lut( int lut_idx, kdu_sample16 lut[])
[Declared in "../apps/compressed_io/jp2.h"]
Offsets and normalizes the original information for the indicated palette lookup table, writing the result to the supplied lut array. The lut entries are filled out as signed, normalized quantities in the range -2^{KDU_FIX_POINT-1} to +2^{KDU_FIX_POINT-1}. The selection of this particular representation is intended to facilitate interaction with the sample data processing operations conducted by the objects defined in "kdu_sample_processing.h". See kdu_line_buf and kdu_convert_ycc_to_rgb for example.
Must be in the range 0 through num_luts-1, where num_luts is the value returned by get_num_luts.
Regardless of whether get_signed returns true or false, the entries in this array are filled out with signed data, normalized to the range -2^{KDU_FIX_POINT-1} to +2^{KDU_FIX_POINT-1}. The normalization is such that the lower bound here corresponds to an actual LUT value of -2^{B-1} and the upper bound corresponds to an actual LUT value of +2^{B-1}, where B is the bit-depth returned by get_bit_depth; unsigned LUT outputs may be obtained by adding 2^{KDU_FIX_POINT-1} to each entry.