Searched refs:CLAMP (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_interpolation.c78 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) macro
782 r = CLAMP(r, 0, 255);
783 g = CLAMP(g, 0, 255);
784 b = CLAMP(b, 0, 255);
785 a = CLAMP(a, 0, gdAlphaMax);
871 new_r = CLAMP(new_r, 0, 255);
872 new_g = CLAMP(new_g, 0, 255);
873 new_b = CLAMP(new_b, 0, 255);
874 new_a = CLAMP(new_a, 0, gdAlphaMax);
1613 red = (unsigned char) CLAMP(gd_fxto
[all...]

Completed in 7 milliseconds