float [ ] function ( float [ ] arg0 ) { float [ ] loc0 = new float [ 3 ] ; for ( int loc1 = 0 ; loc1 < 3 ; loc1 ++ ) { float loc2 = arg0 [ loc1 ] ; if ( loc2 < 0 ) loc2 = 0f ; if ( loc2 > 1 ) loc2 = 1f ; if ( loc2 <= 0.03928f ) loc0 [ loc1 ] = ( float ) ( loc2 / 12.92 ) ; else loc0 [ loc1 ] = ( float ) ( Math . exp ( 2.4 * Math . log ( ( loc2 + 0.055 ) / 1.055 ) ) ) ; } return loc0 ; }
srgb -- > linear rgb use the gamma curve gamma = 2.4 in srgb concode_field_sep PlaceHolder placeHolder concode_field_sep float[] toCIEXYZ concode_elem_sep float[] toRGB concode_elem_sep float[] fromCIEXYZ