Nigel Tao
c2eb4f5b93
Have convert-to-nia emit final frame's loop count
2021-11-23 19:30:48 +11:00
Nigel Tao
8397a35a50
Have convert-to-nia emit 'best effort' bad frames
2021-11-23 15:38:35 +11:00
Nigel Tao
e53497abe3
Have convert-to-nia output valid NIA on bad frames
2021-11-23 15:24:58 +11:00
Nigel Tao
15285a6ab9
Refactor example/convert-to-nia
2021-11-23 15:14:57 +11:00
Nigel Tao
ac4d3e6420
Use 0 (not 1) num_animation_loops for still GIFs
...
For example, the crc32 checksums in test/nia-checksums-of-data.txt for
test/data/pjw-thumbnail.{bmp,gif,png} now all match.
2021-11-23 15:06:55 +11:00
Nigel Tao
8bd52a8791
Embiggen example/convert-to-nia WORKBUF_ARRAY_SIZE
2021-11-23 13:22:34 +11:00
Nigel Tao
1d8fb411ba
Let bench-history.sh handle compile/bench failures
2021-11-22 13:12:57 +11:00
Nigel Tao
ccbec18330
Re-order pixconv "Extract... components" variables
2021-11-21 21:20:59 +11:00
Nigel Tao
55cad41d6c
Have nonpremul SRC_OVER keep transparent red/blue
2021-11-21 21:16:10 +11:00
Nigel Tao
f5c68a13cb
Fix std/png for depth-16 grayscale interlaced
2021-11-20 22:54:21 +11:00
Nigel Tao
f5d6ce3797
Have etc__limited_copy_etc args match call sites
2021-11-20 22:34:25 +11:00
Nigel Tao
5e8b448c12
Drop std/deflate's "Re-purpose the hdist variable"
2021-11-20 22:03:29 +11:00
Nigel Tao
49a431f98d
Fix std/deflate decode_huffman_slow suspends
...
Unlike the other decode_huffman_etc! methods, decode_huffman_slow? (with
a ?) can suspend. The (hlen, hdist) and the remainder (length, distance)
pairs might not be stable across a suspension, as the args.dst io_writer
might change its history length. We have to re-calculate those pairs
after a short write.
The test/3pdata/nia-checksums-of-pngsuite.txt for interlaced and
non-interlaced flavors of the same image now match.
2021-11-20 21:31:40 +11:00
Nigel Tao
ede0590ead
Add while label to std/deflate decode_huffman_slow
2021-11-20 20:14:37 +11:00
Nigel Tao
bb8623b472
Have deflate slow-Huffman use extended ringbuffer
...
This is the same optimization as commit e65c8612 "Extend std/deflate
ringbuffer to simplify copies", applied to decoder.decode_huffman_slow.
2021-11-20 20:10:10 +11:00
Nigel Tao
010e0a69f4
Fix fuzz seed_corpora for test filename rename
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41167
2021-11-20 17:58:08 +11:00
Nigel Tao
a684928240
Let std/png allow PLTE for RGB, RGBA color types
2021-11-20 15:39:07 +11:00
Nigel Tao
cdf3bbfb26
Add test/3pdata/pngsuite
2021-11-20 14:49:10 +11:00
Nigel Tao
fe15c471df
Use LANG=C sort for test/nia-checksums-of-data.txt
2021-11-19 17:09:10 +11:00
Nigel Tao
3b3331bbb3
wuffs gen -version=0.3.0-beta.12
v0.3.0-beta.12
2021-11-19 14:03:31 +11:00
Nigel Tao
e44920d382
Let gif "ignore too much" quirk skip lzw errors
...
The modified test/data/*/*.gif files differ by only one byte:
00000000 47 49 46 38 39 61 02 00 02 00 81 00 00 00 00 ff |GIF89a..........|
00000010 11 00 ff 22 00 ff 33 00 ff 2c 00 00 00 00 02 00 |..."..3..,......|
-00000020 02 00 00 02 02 84 f1 00 3b |........;|
+00000020 02 00 00 02 02 84 5d 00 3b |......].;|
The etc-good-lzw.gif bits have changed, even though the
etc-good-lzw.etc.txt file only had comments added, due to a Go standard
library change: "compress/lzw: output a Clear code first, per GIF spec"
https://github.com/golang/go/commit/9c1dbdf60edbffeff10f58af21fa055eb0fdd29f
Updates PR #57
Updates https://crbug.com/1270631
2021-11-19 13:30:23 +11:00
Nigel Tao
3b882be500
Rename test/.../pixel-data-too-much.gif*
2021-11-19 11:54:39 +11:00
Nigel Tao
6a8ee57ac0
Loosen test_wuffs_png_decode_metadata_kvp bound
2021-11-19 09:48:47 +11:00
Nigel Tao
66cfd3e02f
wuffs gen -version=0.3.0-beta.11
v0.3.0-beta.11
2021-11-18 19:19:02 +11:00
Nigel Tao
161e4730d8
Tweak default WUFFS_VERSION_PRE_RELEASE_LABEL
2021-11-18 19:18:34 +11:00
Nigel Tao
d5066c1aae
Add wuffs_aux::private_impl::ErrorMessages type
2021-11-18 17:30:11 +11:00
Nigel Tao
8562375fd9
Update test/nia-checksums-of-data.txt
2021-11-18 08:11:06 +11:00
Nigel Tao
bb028ae764
Update tests for artificial/* filename rename
2021-11-18 08:10:12 +11:00
Nigel Tao
29560a336b
Convert std/png text from Latin-1 to UTF-8
...
Fixes #55
2021-11-17 23:04:49 +11:00
Nigel Tao
e0cdaeb54f
Fix std/png tell_me_more minfo with suspensions
2021-11-17 13:04:04 +11:00
Nigel Tao
e7ed1dd43e
Add std/png tell_me_more while.loop name
2021-11-17 13:01:05 +11:00
Nigel Tao
bfce0e0a16
Let wuffs_aux::DecodeImage re-use raw metadata buf
2021-11-17 12:44:21 +11:00
Nigel Tao
417b03a0ad
Add std/png "#unsupported PNG compression method"
2021-11-17 12:07:44 +11:00
Nigel Tao
7dd0dd264b
Delete superfluous "// --------" comment
2021-11-17 12:03:43 +11:00
Nigel Tao
0d37acd6f6
Factor out std/png/common_consts.wuffs
2021-11-17 12:01:37 +11:00
Nigel Tao
6737565c20
Let std/png decode iTXt, tEXt and zTXt chunks
...
Updates #55
2021-11-17 11:56:49 +11:00
Nigel Tao
3642d73714
Factor test/data/artificial into many directories
2021-11-16 15:37:57 +11:00
Nigel Tao
37ac4def8e
Move some test/data/artificial files up one dir
2021-11-16 15:12:29 +11:00
Nigel Tao
07c053af6f
Have reset! LEAVE_INTERNAL_BUFFERS_UNINITIALIZED
2021-11-16 13:16:43 +11:00
Nigel Tao
f0c2a40d66
Resize std/png chunk_length field from u64 to u32
2021-11-16 13:06:30 +11:00
Nigel Tao
ce9ab13ecd
Let std/png decode first fcTL after the last IDAT
2021-11-16 12:55:43 +11:00
Nigel Tao
6c2a591e84
Let script/make-artificial.go generate PNG files
2021-11-16 11:08:04 +11:00
Nigel Tao
d40bf000a9
Rename wuffs_base__table_u8__row as etc__row_u32
2021-11-15 17:26:51 +11:00
Nigel Tao
0045ce49f3
Rename table.row as table.row_u32
2021-11-15 10:49:42 +11:00
Nigel Tao
fa56d92410
Clip std/png frame_dirty_rect to frame rect
2021-11-15 10:46:28 +11:00
Nigel Tao
8f1adea523
Hoist subslice out of std/png filter_and_swizzle
...
On an Intel NUC (Comet Lake, BXNUC10i5FNKPA):
name old speed new speed delta
wuffs_png_decode_image_19k_8bpp/clang9 274MB/s ± 0% 273MB/s ± 0% -0.25% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/clang9 309MB/s ± 0% 308MB/s ± 0% -0.22% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/clang9 985MB/s ± 0% 982MB/s ± 0% -0.29% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 846MB/s ± 0% 841MB/s ± 0% -0.56% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 812MB/s ± 0% 808MB/s ± 0% -0.55% (p=0.008 n=5+5)
wuffs_png_decode_image_4002k_24bpp/clang9 320MB/s ± 0% 320MB/s ± 0% -0.15% (p=0.008 n=5+5)
wuffs_png_decode_image_19k_8bpp/gcc10 263MB/s ± 0% 276MB/s ± 0% +5.00% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/gcc10 328MB/s ± 0% 333MB/s ± 0% +1.49% (p=0.016 n=5+4)
wuffs_png_decode_image_77k_8bpp/gcc10 950MB/s ± 0% 976MB/s ± 0% +2.78% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 865MB/s ± 0% 912MB/s ± 0% +5.45% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 825MB/s ± 0% 868MB/s ± 0% +5.19% (p=0.008 n=5+5)
wuffs_png_decode_image_4002k_24bpp/gcc10 336MB/s ± 0% 341MB/s ± 0% +1.37% (p=0.008 n=5+5)
2021-11-15 10:43:55 +11:00
Nigel Tao
962a515dd2
Add wuffs_base__table_u8__subtable_ij
2021-11-15 09:58:02 +11:00
Nigel Tao
8025bf1bd7
Fix std/png filter benches
2021-11-14 21:20:05 +11:00
Nigel Tao
4d64aff554
Rename std/png/decode_swizzle_fallback.wuffs
2021-11-14 19:58:23 +11:00
Nigel Tao
54bdcc1b57
Update wuffs_aux::DecodeImageArgFlags comment
2021-11-14 19:57:18 +11:00