Nigel Tao
792d05bd9c
Have magic_number_guess_fourcc use prefix_closed
2022-01-14 15:26:21 +11:00
Nigel Tao
e5ead0218e
Rename the magic-submodule "prefix" arguments
2022-01-14 15:16:20 +11:00
Nigel Tao
f0412122be
Add magic_number_guess_fourcc prefix_closed arg
2022-01-14 15:12:14 +11:00
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
dda01f1a77
Add WUFFS_BASE__FOURCC__QOI definition
2022-01-02 09:10:51 +11:00
Nigel Tao
4c04ac1127
Replace FOURCC__{WP8,WP8L} with FOURCC__WEBP
...
Fixes #61
2021-12-15 15:53:14 +11:00
Nigel Tao
72d4a9e769
Have std/png pass through EXIF data
...
Fixes #59
2021-11-26 19:14:30 +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
f5d6ce3797
Have etc__limited_copy_etc args match call sites
2021-11-20 22:34:25 +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
bfce0e0a16
Let wuffs_aux::DecodeImage re-use raw metadata buf
2021-11-17 12:44:21 +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
07c053af6f
Have reset! LEAVE_INTERNAL_BUFFERS_UNINITIALIZED
2021-11-16 13:16:43 +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
962a515dd2
Add wuffs_base__table_u8__subtable_ij
2021-11-15 09:58:02 +11:00
Nigel Tao
54bdcc1b57
Update wuffs_aux::DecodeImageArgFlags comment
2021-11-14 19:57:18 +11:00
Nigel Tao
f854646586
Fix -Wshadow warnings
2021-11-05 17:51:22 +11:00
Nigel Tao
f148f5c5b3
Make "// - etc" bullet point comments consistent
2021-11-05 16:50:38 +11:00
Nigel Tao
0854344580
Add wuffs_aux::sync_io::DynIOBuffer
2021-11-04 22:58:45 +11:00
Nigel Tao
16b51dd2a4
Fix -Wshadow warnings
2021-10-31 16:27:47 +11:00
Nigel Tao
badce3ffa4
Tweak magic_number_guess_fourcc negative codes
2021-10-31 16:27:17 +11:00
Nigel Tao
8f9a4f40c2
Rename METADATA_RAW as METADATA_RAW_PASSTHROUGH
2021-10-31 15:17:46 +11:00
Nigel Tao
c754f81634
Have wuffs_aux::DecodeImage report ICCP, XMP
2021-10-31 15:09:55 +11:00
Nigel Tao
a9a6332be2
Have etc__magic_number_guess_fourcc find ICO
2021-10-22 15:51:44 +11:00
Nigel Tao
b003f9fe65
Let wuffs_aux::DecodeImage handle metadata
...
Updates #39
2021-10-19 22:09:21 +11:00
Nigel Tao
2b7b6e12ea
Add wuffs_aux::DecodeImageArgQuirks
2021-10-18 00:40:11 +11:00
Nigel Tao
ca33506c01
Add wuffs_aux::FooArgBar types for optional args
...
Prior to this commit, with a "wuffs_aux::Foo(x, y, 0, 0, 4, 5)" call,
with arguments after "y" optional, it was not a compile-time error to
give the wrong number of "0"s or to transpose "4" and "5".
2021-10-18 00:25:13 +11:00
Nigel Tao
0460bfcd7a
Add FourCC comment
2021-10-17 23:18:58 +11:00
Nigel Tao
9437d1a265
Tighten magic number guessing for WBMP
2021-10-17 22:57:42 +11:00
Nigel Tao
e317f04bfd
Add defined(__clang__) to defined(__GNUC__) checks
2021-10-17 12:14:54 +11:00
Nigel Tao
ae9ca94501
Fix etc__more_information__metadata_parsed__chrm
2021-10-15 14:15:39 +11:00
Nigel Tao
ad1d983698
Add ETC__MORE_INFORMATION__FLAVOR__METADATA_PARSED
2021-10-14 17:17:11 +11:00
Nigel Tao
7f9f37ce5a
Have examples use WUFFS_CONFIG__STATIC_FUNCTIONS
...
Compile time:
$ time ./build-example.sh
Before: user 1m15.750s
After: user 0m50.343s
Binary size (excluding the statically linked example-toy-genlib):
$ ls -l gen/bin/example-* | awk '{print $5 " " $9}'
Before:
212624 gen/bin/example-cbor-to-json
284192 gen/bin/example-convert-to-nia
344744 gen/bin/example-crc32
184304 gen/bin/example-gifplayer
324952 gen/bin/example-imageviewer
209632 gen/bin/example-json-to-cbor
241432 gen/bin/example-jsonfindptrs
196320 gen/bin/example-jsonptr
309768 gen/bin/example-sdl-imageviewer
200704 gen/bin/example-zcat
After:
85280 gen/bin/example-cbor-to-json
242216 gen/bin/example-convert-to-nia
344744 gen/bin/example-crc32
53328 gen/bin/example-gifplayer
282840 gen/bin/example-imageviewer
95152 gen/bin/example-json-to-cbor
122720 gen/bin/example-jsonfindptrs
60448 gen/bin/example-jsonptr
267672 gen/bin/example-sdl-imageviewer
64792 gen/bin/example-zcat
Before total: 2508672
After total: 1619192
2021-10-04 12:35:32 +11:00
Nigel Tao
0d57d6a2e1
Add internal/cgen/base/README.md
2021-09-04 15:54:31 +10:00
Nigel Tao
a66a083e82
Have X86_FAMILY allow 32-bit x86, not just x86_64
...
Fixes #53
2021-08-22 22:37:48 +10:00
Nigel Tao
cb2e49ab09
Rename CPU arch macro s/X86_64/X86_FAMILY/
2021-08-22 22:23:49 +10:00
Nigel Tao
1d19157668
Remove After editing... run "go generate" lines
2021-08-22 12:57:39 +10:00
Nigel Tao
bdfee5053c
Delete obsolete ".../internal/cgen/data" package
2021-08-22 12:54:07 +10:00
Nigel Tao
2f65d6fc74
Use go:embed instead of ".../internal/cgen/data"
2021-08-22 12:52:52 +10:00
Nigel Tao
226c476994
Remove calls to Go's deprecated "io/ioutil"
2021-08-22 11:17:34 +10:00
Nigel Tao
788479dd64
Run "gofmt -w ." for new "//go:build" lines
2021-08-22 10:53:06 +10:00
Nigel Tao
a86fd7fa79
Fix -Werror=sign-conversion in intconv-submodule.c
2021-08-15 13:48:04 +10:00
Nigel Tao
341dd50800
Add more internal errors to wuffs_aux Cbor, Json
2021-08-15 13:40:17 +10:00
Nigel Tao
a83b5cabaf
Fix "-(int64_t)0x8000000000000000" undef behavior
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37191
2021-08-15 12:39:01 +10:00
Nigel Tao
8a4f61501b
Add NULL-check for io_{read,writ}er.position()
2021-08-15 11:13:26 +10:00
Nigel Tao
f73f95b698
Rename from ast.IOBind to ast.IOManip
2021-08-15 08:40:05 +10:00