Commit Graph

18688 Commits

Author SHA1 Message Date
Hugo van Kemenade
5747267eb3 Fix PT018: Assert only one thing 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
5c282d0299 Fix PT014: duplicate test cases in pytest.mark.parametrize 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
6f506d2ae3 Run all flake8-pytest-style except rules some that fail 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
eeb3d04843
Merge pull request #8306 from radarhere/tag_v2 2024-08-16 12:56:16 +03:00
Andrew Murray
5cb79c6a69 Check object is bytes 2024-08-16 18:31:07 +10:00
Andrew Murray
617699ffc7 Log value from tag_v2 2024-08-16 12:03:02 +10:00
Andrew Murray
0a03b77daf Update CHANGES.rst [ci skip] 2024-08-16 06:36:31 +10:00
Hugo van Kemenade
0633257be3
Merge pull request #8285 from radarhere/type_hint 2024-08-15 23:25:50 +03:00
Hugo van Kemenade
394e850db8
Merge pull request #8304 from radarhere/rounded_rectangle 2024-08-15 16:06:42 +03:00
Andrew Murray
d5e3f6b516 If left and right sides meet, do not draw rectangle to fill gap 2024-08-15 14:46:23 +10:00
Andrew Murray
d4c72da6b2 Added type hints to example code 2024-08-15 14:10:31 +10:00
Andrew Murray
8afb7ddb4e Added type hints 2024-08-15 08:08:43 +10:00
Andrew Murray
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
8737709781 Added return type to ImageFile.load() 2024-08-15 07:30:00 +10:00
Andrew Murray
b14142462e Update CHANGES.rst [ci skip] 2024-08-15 05:11:00 +10:00
Andrew Murray
e4e2cd6564 Updated comments 2024-08-14 15:28:34 +04:00
Andrew Murray
2b6c5a27a1 Added braces 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
8256b9bb7f Correct left boundary on the second stage 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
5fb44ab694 This check is useless, since moved after the first stage 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
6a87df2c1f clang-format 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
4cf5688cfd Optimize getbbox() and getextrema() 2024-08-14 15:28:34 +04:00
Alexander Karpinsky
35a70e4b97
Merge pull request #8213 from uploadcare/webp-require-anim
Remove WebP support without anim, mux/demux, and with buggy alpha
2024-08-14 15:27:23 +04:00
Alexander Karpinsky
4d544da5c6
Merge pull request #142 from radarhere/webp-require-anim
Suggestions for deprecating older WebP versions
2024-08-14 12:47:17 +04:00
Andrew Murray
359d7592c7 Test deprecation warnings 2024-08-14 18:41:39 +10:00
Andrew Murray
45552b5b4f Updated documentation 2024-08-14 18:36:06 +10:00
Andrew Murray
66319fcce7 Animation support is no longer conditionally enabled 2024-08-14 18:35:59 +10:00
Andrew Murray
ba82dff7bc Updated test name 2024-08-14 18:35:53 +10:00
Andrew Murray
c7e6289b36 Use relative import 2024-08-13 19:07:01 +10:00
Andrew Murray
f3aec6dd38 Simplified code 2024-08-13 19:05:32 +10:00
Andrew Murray
5546994828 Removed unnecessary variable 2024-08-13 19:03:14 +10:00
Alexander Karpinsky
93ce9ce004
Update features type
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-08-13 09:52:07 +04:00
Andrew Murray
924df9e60b Moved line after early return
Improve compiler advice

Update src/PIL/features.py
2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
6180abc75c Remove WebP versions notes from docs 2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
56ca359c65 Bring back removed features, add deprecations and Release notes 2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
a3468996c0 Remove webp animations flags and conditions
Removed:
_webp.WebPDecode
_webp.HAVE_WEBPANIM
features.webp_anim
2024-08-13 09:33:20 +04:00
Aleksandr Karpinskii
9bed5b4264 Remove _webp.WebPDecoderBuggyAlpha and _webp.HAVE_TRANSPARENCY 2024-08-13 09:26:04 +04:00
Aleksandr Karpinskii
c1e8375af8 Require webpmux and webpdemux 2024-08-13 09:24:52 +04:00
Andrew Murray
f801649513 Updated freetype to 2.13.3 2024-08-13 06:11:32 +10:00
Aleksandr Karpinskii
2481c6782c Apply clang-format 2024-08-11 22:38:38 +04:00
Aleksandr Karpinskii
f5f809196f Make SSE4 optional 2024-08-11 22:34:34 +04:00
Alexander
8e3a81a53c SIMD Filter. 3x3 implementation
SIMD Filter. 5x5 implementation

SIMD Filter. fast 3x3 filter

SIMD Filter. a bit faster 5x5 filter

SIMD Filter. improve locality in 5x5 filter

SIMD Filter. rearrange 3x3 filter to match 5x5

SIMD Filter. use macros

SIMD Filter. use macros in 3x3

SIMD Filter. 3x3 SSE4 singleband

SIMD Filter. faster 3x3 singleband SSE4

SIMD Filter. reuse loaded values

SIMD Filter. 3x3 SSE4 singleband: 2 lines

SIMD Filter. First AVX try

SIMD Filter. unroll AVX 2 times

SIMD Filter. Macros for AVX

SIMD Filter. unroll AVX (with no profit)

SIMD Filter. consider last pixel in AVX

SIMD Filter. 5x5 single channel SSE4 (tests failed)

SIMD Filter. fix offset

SIMD Filter. move ImagingFilterxxx functions to separate files

SIMD Filter. 3x3i

SIMD Filter. better macros

SIMD Filter. better loading

SIMD Filter. Rearrange  instruction for speedup

SIMD Filter. reduce number of registers

SIMD Filter. rearrange operations

SIMD Filter. avx2 version

SIMD Filter. finish 3x3i_4u8

SIMD Filter. 5x5i_4u8 SSE4

SIMD Filter. advanced 5x5i_4u8 SSE4

SIMD Filter. 5x5i_4u8 AVX2

SIMD Filter. fix memory access for:

3x3f_u8
3x3i_4u8
5x5i_4u8

SIMD Filter. move files

SIMD Filter. Correct offset for 3x3f_u8

# Conflicts:
#	src/libImaging/Filter.c
2024-08-11 22:28:28 +04:00
Aleksandr Karpinskii
cb55ee64b5 update clang formatting 2024-08-11 21:11:46 +04:00
Aleksandr Karpinskii
a410dcbe9a Add accelerated test builds 2024-08-11 20:55:45 +04:00
Andrew Murray
4d10b3c0ab Updated test 2024-08-11 20:55:45 +04:00
Aleksandr Karpinskii
f891043101 Define better name __NEON__ 2024-08-11 20:55:45 +04:00
Aleksandr Karpinskii
5df34a24f8 clang-format 2024-08-11 20:55:45 +04:00
Aleksandr Karpinskii
2db9cd3499 Add core.acceleration attribute 2024-08-11 20:55:45 +04:00
Aleksandr Karpinskii
910911061f Add __SSE4_2__ for MSCC 2024-08-11 20:55:44 +04:00
Aleksandr Karpinskii
73f76e55c3 Add SIMD example 2024-08-11 20:55:44 +04:00
Aleksandr Karpinskii
e0649632ff Add SIMD headers 2024-08-11 20:55:44 +04:00