Pillow/src
Yay295 6b8a97ab16 simplify rgb to hsv conversion
By inlining some values, the starting hue calculation can be reduced from using three subtractions and two divisions to using one subtraction and one division.
"fmod(n+1,1)" can be replaced with "n - floor(n)" due to the second parameter being 1.
The saturation calculation can be done without floating point values.
The "CLIP8"s are unnecessary because the values are already in the correct range.
2024-10-12 18:31:26 -05:00
..
libImaging simplify rgb to hsv conversion 2024-10-12 18:31:26 -05:00
PIL Merge pull request #8392 from radarhere/tiff_seek 2024-10-12 11:46:36 +03:00
thirdparty encode: Replace PyList_GetItem with PyList_GetItemRef 2024-07-08 15:42:26 +03:00
Tk rename PyCapsule -> Capsule 2024-09-08 17:30:24 +04:00
_imaging.c Merge pull request #8341 from uploadcare/use-ptr 2024-10-07 13:37:44 +03:00
_imagingcms.c rename PyCapsule -> Capsule 2024-09-08 17:30:24 +04:00
_imagingft.c Merge pull request #8341 from uploadcare/use-ptr 2024-10-07 13:37:44 +03:00
_imagingmath.c rename PyCapsule -> Capsule 2024-09-08 17:30:24 +04:00
_imagingmorph.c Merge pull request #8341 from uploadcare/use-ptr 2024-10-07 13:37:44 +03:00
_imagingtk.c Call PyUnstable_Module_SetGIL() to indicate support of running with GIL disabled 2024-07-08 14:40:35 +03:00
_webp.c Rename variable, since alpha channel is not dropped 2024-09-21 15:54:27 +10:00
decode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
display.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
encode.c Remove weird comments 2024-09-11 20:40:46 +10:00
map.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
outline.c update PyTypeObject slot names 2023-07-02 00:52:08 -05:00
path.c Raise an error if path is compacted during mapping 2024-09-30 19:50:08 +10:00