Commit Graph

633 Commits

Author SHA1 Message Date
Yay295
c906098fec use mode structs in Pack.c 2024-10-28 10:07:16 -05:00
Yay295
cf4a42f1a0 add function isModeI16() to check if a mode is an I;16 mode 2024-10-28 10:07:15 -05:00
Yay295
e598741876 use mode structs in Matrix.c 2024-10-28 10:07:15 -05:00
Yay295
68028fd513 use mode structs in JpegEncode.c 2024-10-28 10:07:15 -05:00
Yay295
6f127e0f53 use mode structs in JpegDecode.c 2024-10-28 10:07:11 -05:00
Yay295
5836c00d8d use mode structs in Jpeg2KEncode.c 2024-10-28 09:58:28 -05:00
Yay295
56e1b3c8ef use mode structs in Jpeg2KDecode.c 2024-10-28 09:58:28 -05:00
Yay295
baa95d6f44 use mode structs in Histo.c 2024-10-28 09:58:27 -05:00
Yay295
b7c3c3e2b9 use mode structs in GetBBox.c 2024-10-28 09:58:27 -05:00
Yay295
d8f9bfbbbe use mode structs in Geometry.c 2024-10-28 09:58:27 -05:00
Yay295
90ea0609df use mode structs in Filter.c 2024-10-28 09:58:26 -05:00
Yay295
d2e691c788 use mode structs in Fill.c 2024-10-28 09:58:26 -05:00
Yay295
e6d2f9a642 use mode structs in File.c 2024-10-28 09:58:26 -05:00
Yay295
bc1f506d5a use mode structs in Effects.c 2024-10-28 09:58:25 -05:00
Yay295
2beb5fa67c use mode structs in Draw.c 2024-10-28 09:58:25 -05:00
Yay295
da808ce436 use mode structs in Convert.c 2024-10-28 09:58:25 -05:00
Yay295
5197ad775c use mode structs in Chops.c 2024-10-28 09:58:24 -05:00
Yay295
08575c682e use mode structs in BoxBlur.c 2024-10-28 09:58:24 -05:00
Yay295
74b112dd55 use mode structs in Blend.c 2024-10-28 09:58:24 -05:00
Yay295
58dedbefd6 use mode structs in Bands.c 2024-10-28 09:58:23 -05:00
Yay295
b8cead39b3 use mode structs in AlphaComposite.c 2024-10-28 09:58:23 -05:00
Yay295
820f22c120 use mode structs in Access.c 2024-10-28 09:58:23 -05:00
Yay295
97e29dcd2d use mode structs in encode.c and decode.c 2024-10-28 09:58:23 -05:00
Yay295
cb62dbbd24 use mode structs in _imaging.c 2024-10-28 09:58:22 -05:00
Yay295
1f2126bd9f add special modes 2024-10-28 09:58:22 -05:00
Yay295
abe3dfb18f use a struct for mode names instead of just a string 2024-10-28 09:58:19 -05:00
Andrew Murray
7edf952832 Do not close provided file handles with libtiff 2024-10-11 19:37:56 +11:00
Andrew Murray
7777260b6b
Merge pull request #8438 from radarhere/filter 2024-10-10 21:50:51 +11:00
pre-commit-ci[bot]
a609d65b33 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-07 17:56:23 +00:00
Hugo van Kemenade
535bf234c3
Merge pull request #8341 from uploadcare/use-ptr
Use ImagingCore.ptr instead of ImagingCore.id
2024-10-07 13:37:44 +03:00
Alexander Karpinsky
8e332eb3b0 Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-07 13:05:13 +04:00
Andrew Murray
418ae7caa2 Support BuiltinFilter for I;16* images 2024-10-05 01:12:51 +10:00
Hugo van Kemenade
c9c8d45898
Merge pull request #8422 from radarhere/resize_i16 2024-10-01 13:55:13 +03:00
Hugo van Kemenade
ea15e0e622
Merge pull request #8413 from radarhere/sgirle_memory 2024-10-01 13:52:22 +03:00
Hugo van Kemenade
747fdf5069
Merge pull request #8402 from radarhere/sgirle 2024-10-01 13:52:08 +03:00
Andrew Murray
42ad42c174
Merge branch 'main' into resize_i16 2024-09-30 19:50:26 +10:00
Andrew Murray
851449edfc Free memory on early return 2024-09-30 19:49:13 +10:00
Andrew Murray
fc65e437cf Prevent division by zero 2024-09-30 19:48:53 +10:00
Andrew Murray
cc0b6b9de9 Cast int before potentially exceeding INT_MAX 2024-09-30 19:47:52 +10:00
Andrew Murray
04a00d273c Support all resampling filters when resizing I;16* images 2024-09-28 14:27:40 +10:00
Andrew Murray
e57da68190 Check image value before use 2024-09-20 19:20:53 +10:00
pre-commit-ci[bot]
9424b1a892 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-09-19 19:59:15 +00:00
PavlNekrasov
46f2fa17be
fix dereference before checking for NULL in the ImagingTransformAffine function
The `imIn` pointer is checked for `NULL`, but it seems to be dereferenced before this check. You must first make sure that the pointer is not `NULL` before using it.
2024-09-19 22:53:45 +03:00
Alexander Karpinsky
af521a1ce1
Merge branch 'main' into use-ptr 2024-09-18 22:24:46 +02:00
Aleksandr Karpinskii
4a284a78c5 Remove weird comments 2024-09-11 20:40:46 +10:00
Andrew Murray
63f398bc12
Merge pull request #8194 from uploadcare/optimize-getbbox
Optimize getbbox() and getextrema() routines
2024-09-09 15:08:11 +10:00
Aleksandr Karpinskii
5428e3568e Deprecate ImageCore.id and ImageCore.unsafe_ptrs 2024-09-08 17:30:23 +04:00
Aleksandr Karpinskii
7f48567002 Use s# in PyArg_ParseTuple 2024-09-08 17:30:23 +04:00
Hugo van Kemenade
a838da7406
Merge pull request #8002 from Yay295/patch-1
Use (void) for empty function parameters
2024-09-07 08:37:50 +03:00
Andrew Murray
a6ca45aea6 Use (void) to indicate no parameters 2024-09-07 00:01:25 -05:00