small comment improvements
This commit is contained in:
parent
c4d093b01f
commit
d203a3fb89
@ -253,7 +253,7 @@ vips_col_scRGB2sRGB( int range, int *lut,
|
|||||||
int Yi;
|
int Yi;
|
||||||
float v;
|
float v;
|
||||||
|
|
||||||
/* XYZ can be NaN. Throw those values out, they will break
|
/* RGB can be NaN. Throw those values out, they will break
|
||||||
* our clipping.
|
* our clipping.
|
||||||
*
|
*
|
||||||
* Don't use isnormal(), it is false for 0.0 and for subnormal
|
* Don't use isnormal(), it is false for 0.0 and for subnormal
|
||||||
|
@ -133,6 +133,8 @@ vips_XYZ2Lab_line( VipsColour *colour, VipsPel *out, VipsPel **in, int width )
|
|||||||
nZ = QUANT_ELEMENTS * p[2] / XYZ2Lab->Z0;
|
nZ = QUANT_ELEMENTS * p[2] / XYZ2Lab->Z0;
|
||||||
p += 3;
|
p += 3;
|
||||||
|
|
||||||
|
/* CLIP is much faster than FCLIP, and we want an int result.
|
||||||
|
*/
|
||||||
i = VIPS_CLIP( 0, (int) nX, QUANT_ELEMENTS - 2 );
|
i = VIPS_CLIP( 0, (int) nX, QUANT_ELEMENTS - 2 );
|
||||||
f = nX - i;
|
f = nX - i;
|
||||||
cbx = cbrt_table[i] + f * (cbrt_table[i + 1] - cbrt_table[i]);
|
cbx = cbrt_table[i] + f * (cbrt_table[i + 1] - cbrt_table[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user