Nigel Tao
546af5a7c3
Let magic_number_guess_fourcc sniff TGA
...
Updates #67
2022-01-14 14:40:58 +11:00
Nigel Tao
b64b2ff09a
Tighten magic_number_guess_fourcc ICO heuristic
2022-01-14 10:54:55 +11:00
Nigel Tao
c104ae296c
Sort degenerate-huffman test Literal/Length table
2022-01-09 10:53:33 +11:00
Nigel Tao
42de49a938
Have make-artificial.go mark incomplete Huffman
2022-01-09 10:49:38 +11:00
Nigel Tao
92ea631055
Have make-artificial.go check canonical Huffman
2022-01-09 10:41:31 +11:00
Nigel Tao
58608c4ee5
wuffs gen -version=0.3.0-beta.13
v0.3.0-beta.13
2022-01-08 14:07:40 +11:00
Nigel Tao
4aa672af48
Drop "unused" in degenerate-huffman-unused tests
2022-01-08 13:59:53 +11:00
Nigel Tao
f86c80e425
Fix std/deflate degenerate H-D Huffman table
...
RFC 1951 section 3.2.7. "Compression with dynamic Huffman codes
(BTYPE=10)" says, "If only one distance code is used, it is encoded
using one bit, not zero bits; in this case there is a single code length
of one, with one unused code."
I had previously mis-read that excerpt to also require that the sole
distance code was the shortest distance (code 0, a distance of 1).
Fixes #66
2022-01-08 13:57:34 +11:00
Nigel Tao
dda01f1a77
Add WUFFS_BASE__FOURCC__QOI definition
2022-01-02 09:10:51 +11:00
Nigel Tao
f3a7288357
Add more hello-wuffs-c commentary
2022-01-01 16:36:33 +11:00
Nigel Tao
0a8bded7f3
Add Magnus Anderson to A+C
2022-01-01 15:49:40 +11:00
Nigel Tao
918b4e4535
Merge pull request #65 from magnus-ISU/improve-hello
...
Improve hello-wuffs-c example
2022-01-01 15:47:24 +11:00
magnus
92f74e91a7
Add documentation about when and why wuffs_base__status might not be ok
2021-12-31 12:56:59 -06:00
magnus
bcecdef66b
Update README to accurately reflect new code
2021-12-31 12:33:50 -06:00
magnus
2f1b1a5311
Remove #ifdefs for readability
2021-12-31 12:27:43 -06:00
Nigel Tao
425eefeb35
Replace "go get" advice with "go install"
...
Fixes #62
2021-12-30 22:58:12 +11:00
Nigel Tao
e1a6a7cd8c
Add "wuffs help foo" for the command line tool
...
Updates #62
2021-12-30 22:34:27 +11:00
Nigel Tao
4e85543d9c
Change default -ccompilers to "clang,gcc"
...
Updates #62
2021-12-30 19:29:44 +11:00
Nigel Tao
4c04ac1127
Replace FOURCC__{WP8,WP8L} with FOURCC__WEBP
...
Fixes #61
2021-12-15 15:53:14 +11:00
Nigel Tao
8ef4c062d9
Add zlib QUIRK_JUST_RAW_DEFLATE
2021-11-26 23:13:57 +11:00
Nigel Tao
38b101d170
Push std/png decoder.tell_me_more goto_done later
2021-11-26 19:46:36 +11:00
Nigel Tao
5d1473a2ca
Refactor std/png decoder.tell_me_more
2021-11-26 19:45:42 +11:00
Nigel Tao
72d4a9e769
Have std/png pass through EXIF data
...
Fixes #59
2021-11-26 19:14:30 +11:00
Nigel Tao
5f6a522563
Add a "while.goto_done" no-op to std/png
2021-11-26 17:26:12 +11:00
Nigel Tao
4dedbedbbc
Remove unnecessary std/nie struct parentheses
2021-11-26 17:24:57 +11:00
Nigel Tao
a1aa15cacf
Update NIE spec's "Updated on $DATE" line
2021-11-25 18:21:27 +11:00
Nigel Tao
ae6b366edb
Fix NIE spec's obsolete RGBA byte order config
2021-11-25 18:10:30 +11:00
Nigel Tao
6acb5a4fdd
Fix example/convert-to-nia comment typo
2021-11-24 09:30:33 +11:00
Nigel Tao
3a9933f2a0
Canonicalize stills' NIA conversion's loops to 0
2021-11-23 21:39:29 +11:00
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