Searched refs:CLAMP (Results 1 – 3 of 3) sorted by relevance
/PHP-8.2/ext/gd/libgd/ |
H A D | gd_intern.h | 11 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) macro
|
H A D | gd_interpolation.c | 725 r = CLAMP(r, 0, 255); in getPixelInterpolateWeight() 726 g = CLAMP(g, 0, 255); in getPixelInterpolateWeight() 727 b = CLAMP(b, 0, 255); in getPixelInterpolateWeight() 728 a = CLAMP(a, 0, gdAlphaMax); in getPixelInterpolateWeight() 814 new_r = CLAMP(new_r, 0, 255); in getPixelInterpolated() 815 new_g = CLAMP(new_g, 0, 255); in getPixelInterpolated() 816 new_b = CLAMP(new_b, 0, 255); in getPixelInterpolated() 817 new_a = CLAMP(new_a, 0, gdAlphaMax); in getPixelInterpolated() 2230 r->x = CLAMP(r->x, c1x, c2x); in gdImageClipRectangle() 2231 r->y = CLAMP(r->y, c1y, c2y); in gdImageClipRectangle() [all …]
|
H A D | gd_avif.c | 80 int clampedQuality = CLAMP(quality, 0, MAX_QUALITY); in quality2Quantizer() 521 speed = CLAMP(speed, AVIF_SPEED_SLOWEST, AVIF_SPEED_FASTEST); in gdImageAvifCtx()
|
Completed in 58 milliseconds