question: this method is responsible for doing the actual lookup that given an rgb triple returns the best , taking into account quantization , index in the forward color map . concode_field_sep int greenQuantizationMask concode_elem_sep int redQuantizationMask concode_elem_sep int bits concode_elem_sep byte[] mapBuf concode_elem_sep byte[][] colorMap concode_elem_sep int truncationBits concode_elem_sep int blueQuantizationMask concode_field_sep placeholderType placeHolder
target: int function ( int arg0 , int arg1 , int arg2 ) { return mapBuf [ ( ( arg0 << ( 2 * bits - truncationBits ) ) & redQuantizationMask ) + ( ( arg1 << ( 1 * bits - truncationBits ) ) & greenQuantizationMask ) + ( ( arg2 >> ( truncationBits ) ) & blueQuantizationMask ) ] & 0xFF ; }