Alexander
b705df3b64
one div for blending
2017-08-27 12:40:53 +03:00
Alexander
12634c4524
Merge branch 'packing-tests' into fast-unpacking
...
# Conflicts:
# Tests/test_lib_pack.py
2017-08-26 20:20:17 +03:00
Alexander
f43b9f396f
Second part of pack tests
2017-08-26 10:49:28 +03:00
Alexander
8cb9cba1e0
Packing tests, first part. Fix RGBX packers
2017-08-24 00:58:39 +03:00
Alexander
2439c9b2db
possible fix I→I and L→L unpacking on bigendian
2017-08-23 23:09:50 +03:00
Alexander
ad2c952697
Add more tests
2017-08-22 01:35:24 +03:00
Alexander
40d30f678b
Use MAKE_UINT32 when possible for unpacking
2017-08-22 00:06:26 +03:00
Alexander
fc40ef0c1e
Move PREBLEND and BLEND to ImagingUtils.h
2017-08-19 15:58:23 +03:00
Alexander
d64f163760
Move MULDIV255 and SHIFTFORDIV255 to ImagingUtils.h
2017-08-19 15:47:04 +03:00
Alexander
58542fdfb9
Move WORDS_BIGENDIAN to ImagingUtils.h
2017-08-19 15:30:41 +03:00
Alexander
00b65ce1c3
unused
2017-08-19 15:27:39 +03:00
Alexander
762b09cdb5
unroll ImagingPackRGB
2017-08-18 01:46:00 +03:00
Alexander
b4e226714d
Faster ImagingUnpackRGB
2017-08-17 23:54:30 +03:00
wiredfool
e1aba29f9b
Merge pull request #2683 from wiredfool/issue_2044
...
Test/fix for issue #2044
2017-08-17 11:52:07 +01:00
Alexander
4af4256ac3
Use ImagingNewDirty
2017-08-17 12:14:19 +03:00
Alexander
9cf8f93c64
Merge branch 'master' into fast-merge
...
# Conflicts:
# _imaging.c
# libImaging/Bands.c
# libImaging/Imaging.h
2017-08-16 22:56:16 +03:00
wiredfool
300dfcf4a4
Test/fix for issue #2044
2017-08-16 11:46:27 -07:00
wiredfool
d3580451e2
Merge pull request #2676 from uploadcare/fast-split
...
Fast split()
2017-08-16 16:10:33 +01:00
wiredfool
9c4535bc82
Merge pull request #2655 from python-pillow/fast-allocation
...
Fast image allocation
2017-08-16 15:16:43 +01:00
wiredfool
e7aa155b72
Merge pull request #2654 from python-pillow/storage-cleanup
...
Storage cleanup
2017-08-16 12:00:32 +01:00
wiredfool
3b0f183d5c
Merge pull request #2648 from ifeherva/master
...
Fixed bc5 decoding
2017-08-16 11:42:31 +01:00
Alexander
c2e0092589
Speed up resampling again a bit )
2017-08-13 01:10:19 +03:00
Alexander Karpinsky
bbe07d4f49
Merge pull request #2670 from uploadcare/threaded-filter
...
Release GIL in filters
2017-08-12 23:51:08 +03:00
Alexander
847dd67a41
serious test for kernel filters
2017-08-12 23:22:59 +03:00
Alexander
7c3c3273eb
compiler makes this for me
2017-08-12 19:41:18 +03:00
Alexander
b454f773bd
make things faster
2017-08-12 19:39:11 +03:00
Alexander
a2681a0690
naive implementation
2017-08-12 19:17:21 +03:00
Alexander
91b08b7daa
noop core.merge
2017-08-12 19:08:07 +03:00
Alexander
294da4e8f5
error handling
2017-08-12 17:42:49 +03:00
Alexander
6ce6cc7537
faster ImagingSplit
2017-08-12 15:49:46 +03:00
Alexander
ca75d63f3a
ImagingSplit implementation
2017-08-12 15:26:00 +03:00
Alexander
559836d97d
im.split method
...
ImagingSplit function without implementation
2017-08-12 15:26:00 +03:00
Alexander
c23b65c670
make ImagingGetBand faster
2017-08-12 15:25:59 +03:00
Alexander
864a24e7b8
Release GIL in filters
2017-08-11 15:17:47 +03:00
Alexander
ffe0c3b0af
Fix Bands.c module indention
2017-08-09 03:48:24 +03:00
Alexander
557e89fcd3
Fix Filter.c module indention
2017-08-07 00:20:35 +03:00
Alexander
a519851903
ImagingNew2 is always Dirty
2017-08-06 20:08:07 +03:00
Alexander
eb4096ffd5
create dirty images for cropping
2017-08-06 15:01:17 +03:00
Alexander
19a8649589
create dirty images for some operations
2017-08-06 14:22:58 +03:00
Alexander
7a1e70d997
new internal API function ImagingNewDirty
2017-08-06 14:22:58 +03:00
Alexander
0990dadd6d
use accurate im->linesize instead of strlen(mode) approximation
2017-08-06 14:12:55 +03:00
Alexander
d55557152b
rename ImagingNewBlock → ImagingAllocateBlock
...
rename ImagingNewArray → ImagingAllocateArray
new utility function with old name ImagingNewBlock
call ImagingNewPrologue outside of ImagingAllocateBlock and ImagingAllocateArray
2017-08-06 14:12:55 +03:00
Alexander
eafa258bd1
destroy image and set MemoryError on overflow check failure
2017-08-06 14:12:55 +03:00
Alexander
6b50ba07fd
add tests for Image.new modes
2017-08-06 14:12:55 +03:00
Alexander
ab92adf7c9
move ImagingNewEpilogue functionality to ImagingNewPrologueSubtype
...
doublechecked: no im->image or im->image8 or im->image32 access
between ImagingNewPrologue and ImagingNewEpilogue anywhere
2017-08-06 14:12:55 +03:00
Alexander
fd9cf03d01
FIX memory leak
...
ImagingNewEpilogue now is always success
The Imaging object itself is freed through ImagingDelete in case
when memory is not allocated in ImagingNewBlock or ImagingNewArray
2017-08-06 14:12:55 +03:00
Alexander
152104bba3
check args before allocate memory
2017-08-06 14:12:55 +03:00
Alexander
430c53707f
no reasons to release GIL for one calloc
2017-08-06 14:12:55 +03:00
Istvan Fehervari
0477278c68
Fixed bc5 decoding
...
BC5 decoding uses only 2 channels instead of 4. The current algorithm did not initialize the RGBA struct which resulted in random values in the output image. This commit should initialize the decoded RGBA struct, thus setting B and A values to default (0).
2017-08-03 11:07:51 +02:00
wiredfool
5a671830d8
Merge pull request #2541 from uploadcare/fix-truncated-png-loading
...
Fix truncated png loading
2017-06-21 12:23:15 +01:00