80 Commits

Author SHA1 Message Date
Harald Kuhr
dc322d49dc #722 Fix WebP animation transparent frame issue
(cherry picked from commit ba1f7546113bdb16600b6662141110957d69d152)
2023-07-19 13:12:32 +02:00
Harald Kuhr
e5a82216d2 #772 Fix WebP animation transparent frame issue
(cherry picked from commit 822b5da631a581d1493e1ab0bbc3b847cecdef3c)
2023-07-19 13:12:32 +02:00
Harald Kuhr
33eac436b9 WebP cleanup.
(cherry picked from commit eabb8fd02b6525b8688972f1a5bc5d22c9966cd8)
2023-07-19 13:11:04 +02:00
Harald Kuhr
f27b5700e8 WebP minor bugfix and optimization.
(cherry picked from commit 1794e336dea71fe33cccccc3ce442d64de3f0ab8)
2023-07-19 13:11:03 +02:00
Harald Kuhr
67b9e7df11 WebP cleanup
(cherry picked from commit ac7612b3df5f393c786e44f19d3ceb9a21e379a1)
2023-07-19 13:11:03 +02:00
tc-wleite
bf55209bf6 Avoid creating another temporary raster, filtering on the tempRaster.
(cherry picked from commit 34e8d8800733d2e7a0b81717273dc55536dce54b)
2023-07-19 13:10:52 +02:00
tc-wleite
3cee4d0112 Remove the TODO comment.
(cherry picked from commit 9b727df9010ec0f1b3f7899868ca8136934630e9)
2023-07-19 13:10:51 +02:00
tc-wleite
50dabcd838 Use a static import.
(cherry picked from commit f1f98bb4a41f29f3937184330401b49e60788fc3)
2023-07-19 13:10:51 +02:00
tc-wleite
c7c8e3372b Let copyIntoRasterWithParams() handle null param.
(cherry picked from commit b34b26e08cf33e41ed47eb21716c13dd889d44e6)
2023-07-19 13:10:51 +02:00
Wladimir Leite
a085a454e0 Accept and handle null param in copyIntoRasterWithParams().
Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
(cherry picked from commit 993e07ee343887aacad37ccae4c03e965d7566e9)
2023-07-19 13:10:50 +02:00
tc-wleite
5140846fb6 Replace the WebP to test alpha subsampling by a slightly smaller image.
(cherry picked from commit a377712bdb7a007b61a3b16636a3fda81c1aaf98)
2023-07-19 13:10:50 +02:00
tc-wleite
c5b0f4a05f Add the new image to the basic reading test.
(cherry picked from commit e5dc6aa8788439994596bc5a45d4dc56a3aa9c91)
2023-07-19 13:10:50 +02:00
tc-wleite
98104222cf Test if a WebP with alpha was read correctly using subsampling.
(cherry picked from commit 46b1c1cf960978788098b706f1ffdbfd86481ad0)
2023-07-19 13:10:49 +02:00
tc-wleite
cb1dc3f4b5 Add to resources a test WebP with alpha and filters.
(cherry picked from commit d9300b1c90f4bdd1d5b01b77025a6256d663728e)
2023-07-19 13:10:49 +02:00
tc-wleite
7e584cdab4 Param can be null in readAlpha(). Copy alphaRaster to dst in this case.
(cherry picked from commit 0a2efb9eacfc32f126b51f93654203f6952df9c7)
2023-07-19 13:10:49 +02:00
tc-wleite
6312c65622 Fix: use raster instead of decodedRaster to keep previous behavior.
(cherry picked from commit 3eabc591d83f4c392c19d8dca01612413b98d939)
2023-07-19 13:10:49 +02:00
tc-wleite
924b7d809c Minor fix in code formatting.
(cherry picked from commit 5cefce2dbf55176e3ef7b698d2e9248327e5532d)
2023-07-19 13:10:49 +02:00
tc-wleite
458be0380e Fix TODO comment message.
(cherry picked from commit 4c645c022059ba68f9d84406a1d48246b7696bde)
2023-07-19 13:10:49 +02:00
tc-wleite
7deaf47e65 Decode alpha using source dimensions and copy to destination later.
(cherry picked from commit 703848ca45827b98b215c62d3c03d8663502e15d)
2023-07-19 13:10:48 +02:00
tc-wleite
214f0acf29 Move to a static method the code that copies into a raster with params.
(cherry picked from commit 0ebd18fcb65e31325c9026b4a7e1087dc2a961b3)
2023-07-19 13:10:48 +02:00
Harald Kuhr
ab5d40828e [maven-release-plugin] prepare for next development iteration 2022-11-21 18:51:31 +01:00
Harald Kuhr
dbb7c07695 [maven-release-plugin] prepare release twelvemonkeys-3.9.4 2022-11-21 18:51:26 +01:00
Harald Kuhr
f2624d5193 [maven-release-plugin] prepare for next development iteration 2022-10-20 16:22:15 +02:00
Harald Kuhr
ada3a84bec [maven-release-plugin] prepare release twelvemonkeys-3.9.3 2022-10-20 16:22:10 +02:00
Harald Kuhr
7e7aaa293e #707 WebP: Fix Alpha support the correct way...
(cherry picked from commit cee2663f06a2a66a8bd072e1d78ad102c77ec638)
2022-10-20 16:10:05 +02:00
Harald Kuhr
5d623cce9f #707 WebP: Fix Alpha support
(cherry picked from commit 8f44cfc43c9b81e41b8ed34bbc957ac05793c419)
2022-10-20 16:00:45 +02:00
Harald Kuhr
055838aaaf [maven-release-plugin] prepare for next development iteration 2022-10-20 14:08:11 +02:00
Harald Kuhr
a8327c3c67 [maven-release-plugin] prepare release twelvemonkeys-3.9.2 2022-10-20 14:08:06 +02:00
Harald Kuhr
36c91f67e4 #704 Fix LSBBitReader to avoid back/forth seeking that invalidates buffer
(cherry picked from commit 8a240aac684b16444a98b67f67070dfc30b3d621)
2022-10-20 14:06:19 +02:00
Harald Kuhr
4cc53d822f [maven-release-plugin] prepare for next development iteration 2022-10-19 20:56:12 +02:00
Harald Kuhr
9875de0383 [maven-release-plugin] prepare release twelvemonkeys-3.9.1 2022-10-19 20:56:08 +02:00
Harald Kuhr
6ed858a4ca #704 Tiny performance improvement + code clean-up
(cherry picked from commit 61424f33b646a31ab49364d06c5ac630c3417ee1)
2022-10-19 20:46:45 +02:00
Harald Kuhr
b5e8853e6b Set versions for 3.9 bugfix branch. 2022-10-18 20:49:43 +02:00
Harald Kuhr
6581e2e2a1 [maven-release-plugin] prepare release twelvemonkeys-3.9.0 2022-10-15 12:12:49 +02:00
Harald Kuhr
7ed5663633 More tests of StandardImageMetadataSupport + minor API changes 2022-10-08 14:28:10 +02:00
Harald Kuhr
6458fcdcbd Major ImageMetadata refactor for more consistent standard metadata support.
Fixes a few related bugs as a bonus.
2022-10-08 13:43:26 +02:00
Harald Kuhr
0160fb70f8 #702 Fix NPE while reading an WebP animation without alpha
+ bonus cleanup
2022-10-06 15:24:40 +02:00
Harald Kuhr
a1fcfc3958 Fix WebP visibility issues. 2022-09-09 14:09:58 +02:00
Harald Kuhr
c60116a611 Inserted license header + author tags for contributed WebP files. 2022-09-09 14:06:41 +02:00
Simon Kammermeier
cda34b704b Indicate support for lossless to ImageIO 2022-09-09 01:18:53 +02:00
Simon Kammermeier
7c4487be04 Add tests for lossless decoder 2022-09-09 01:18:53 +02:00
Simon Kammermeier
5a4525aaa1 Remove debug prints 2022-09-09 01:18:53 +02:00
Simon Kammermeier
b766420e3e Parse ANIM metadata
Still need to expose them in image metadata
2022-09-09 01:18:53 +02:00
Simon Kammermeier
c858454c5a Support ImageReadParam Settings limiting Raster size
On animation frames dimension has to be passed as it is not guaranteed
the same as in the file header.
2022-09-09 01:18:53 +02:00
Simon Kammermeier
67b48ce1e3 Implement decoding of compressed alpha chunks, alpha filtering 2022-09-09 01:18:53 +02:00
Simon Kammermeier
6608f61353 Fix starting to read at wrong offset, now skips header 2022-09-09 01:18:53 +02:00
Simon Kammermeier
326b98d5e5 Implement applying of the inverse transforms 2022-09-09 01:18:53 +02:00
Simon Kammermeier
fafa58b718 Implement actual decoding including resolving backward refs and cache 2022-09-09 01:18:45 +02:00
Simon Kammermeier
0ed0246762 Implement Huffman Table parsing and decoding
Uses a 2 level table approach inspired by libwebp
2022-09-09 01:15:04 +02:00
Simon Kammermeier
b3004a1227 Implement buffering in LSBBitReader
This optimizes away the constant re-reading of bytes.
Also allows peeking at coming bits without consuming them.
2022-09-09 01:15:04 +02:00