Commit Graph

600 Commits

Author SHA1 Message Date
wiredfool
0d1e44dc2f Merge pull request #2769 from wiredfool/pr_2638
Update to #2638, add 16bit/rle support to SgiImageFile
2017-10-01 20:56:18 +01:00
Alexander
5a1cdfc72c rename arena->blocks to arena->blocks_pool
fix comments
2017-09-30 15:03:28 +03:00
Alexander
83530975e9 rename lines_remaining 2017-09-30 04:16:12 +03:00
Eric Soroos
7c629d7814 Added L;16/B pack functions 2017-09-29 13:41:39 +00:00
Eric Soroos
779310a832 malloc checks, overflow and errors 2017-09-29 11:01:10 +00:00
Mickael B
9e179c027c change uint32_t to UINT32 since stdint.h is not defined in old Visual C++ versions 2017-09-29 09:15:51 +00:00
Mickael B
e308adb9d6 add stdint.h for uint32_t definition 2017-09-29 09:15:45 +00:00
Mickael B
7fe23b39b9 store SgiRleDecoder elements in SGISTATE struct 2017-09-29 09:15:39 +00:00
Mickael B
c55b3aa402 fix compiler warnings 2017-09-29 09:15:32 +00:00
Mickael Bonfill
a422a28bb7 add unit tests 2017-09-29 09:15:21 +00:00
Mickael Bonfill
4b755d43ec Use file descriptor instead of chunks 2017-09-29 09:15:16 +00:00
Mickael Bonfill
c5565fc7f0 Fix RLE decompression by chunks 2017-09-29 09:14:51 +00:00
Mickael Bonfill
9caf8c5889 use UINT32 instead of ULONG 2017-09-29 09:13:55 +00:00
Mickael B
f833cd7f38 Avoid memory reallocation and support Y orientation in 16bits uncompressed read 2017-09-29 09:13:45 +00:00
Mickael B
bec76fdb42 Add uncompressed 16bits read for SGI Images 2017-09-29 09:13:37 +00:00
Mickael B
6869431c2b fix variable initialization in loops 2017-09-29 09:13:22 +00:00
Mickael B
a90dc49100 add RLE decompression for SGI images 2017-09-29 09:12:03 +00:00
Alexander
9db1b760e5 revert reverse order of blocks associated with the image
take alignment into account when calculating lines_per_block
2017-09-23 06:07:47 +03:00
Alexander
385963928f make MS C compiler happy 2017-09-23 04:56:18 +03:00
Alexander
145180a105 fix alignment 2017-09-23 04:44:01 +03:00
Alexander
6a435793d8 fallback to small block size on memory error
increase default block size to previous value
2017-09-23 04:15:19 +03:00
Alexander
b51d77e4e5 Merge branch 'master' into block-storage
# Conflicts:
#	docs/releasenotes/4.3.0.rst
2017-09-23 04:07:09 +03:00
Alexander
a78e92356f Merge branch 'master' into block-storage 2017-09-19 21:08:21 +03:00
Alexander
ecfc10d002 oops 2017-09-19 21:01:34 +03:00
Alexander
bca70a743d Merge branch 'master' into imaging-copy-palette-info 2017-09-19 20:51:52 +03:00
Alexander
bda6d1e588 rename ImagingCopyPaletteInfo to ImagingCopyPalette 2017-09-19 20:42:13 +03:00
wiredfool
e5513804a3 Merge pull request #2709 from uploadcare/alpha-composite-box
Alpha composite fixes
2017-09-19 11:13:19 +01:00
wiredfool
7541755aa5 Merge pull request #2730 from uploadcare/fast-geometry
Faster Transposition
2017-09-19 10:58:47 +01:00
Alexander
db08235c05 reduce size of blocks returned to pool 2017-09-19 00:14:44 +03:00
Alexander
44c2698f69 ImagingMemoryBlock structure 2017-09-18 22:48:32 +03:00
Alexander
67e1e03c79 Set options from environment variables 2017-09-18 21:29:48 +03:00
Alexander
3bfdfcd48a reduce code duplication 2017-09-18 03:57:43 +03:00
Alexander
6d2be876c8 tests 2017-09-18 02:37:47 +03:00
Alexander
af3dcf84af python api for resources 2017-09-18 01:41:39 +03:00
Alexander
53dde3b7f6 fix visual c compiler 2017-09-17 22:46:11 +03:00
Alexander
8659cd7564 stats 2017-09-17 21:31:50 +03:00
Alexander
4951962af1 ImagingMemoryArean tata type 2017-09-17 20:31:13 +03:00
Alexander
dc192be83f temp 2017-09-17 20:10:31 +03:00
Alexander
c8a2923d17 Return blocks in reverse order to reduce reallocations 2017-09-17 19:54:49 +03:00
Alexander
fd907fbdc9 Fix 0-width and 0-height images other way 2017-09-17 03:31:24 +03:00
Alexander
0054743100 fix zero size images 2017-09-17 02:58:01 +03:00
Alexander
6007e818a9 debug messages 2017-09-17 01:40:30 +03:00
Alexander
a5034b54cd do not request more lines than required 2017-09-17 01:34:57 +03:00
Alexander
f2123b4222 limit allocated memory to lines_per_block * linesize size
allocate block for wider lines
2017-09-17 01:22:44 +03:00
Alexander
d4a1f7a01a align lines 2017-09-16 22:58:37 +03:00
Alexander
63b925d74c Merge branch 'master' into block-storage
# Conflicts:
#	libImaging/Imaging.h
2017-09-16 22:21:56 +03:00
Alexander
763df3d90b Convert tabs to spaces in Imaging.h 2017-09-16 20:46:09 +03:00
Alexander
883fb8f9e9 MEMORY_MAX_BLOCKS should be 0 by default 2017-09-15 19:00:53 +03:00
Alexander
fe283b10a5 Do not use ImagingNewBlock at all 2017-09-15 18:11:20 +03:00
Alexander
f584f8399a save released blocks 2017-09-15 18:00:15 +03:00