Home
last modified time | relevance | path

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

/PHP-8.2/ext/gd/libgd/
H A Dgd_intern.h11 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) macro
H A Dgd_interpolation.c725 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 Dgd_avif.c80 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