Nigel Tao
ca76a01ac2
Have std/png support remapped transparency
2021-11-07 09:51:04 +11:00
Nigel Tao
00b329872a
Tighten png.INTERLACING type refinement
2021-11-06 09:54:56 +11:00
Nigel Tao
0a7168fd64
Add test/data/*.apng
2021-11-05 22:28:08 +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
750df217dd
Rename deprecated ETC__FLAVOR__METADATA
2021-11-05 16:48:58 +11:00
Nigel Tao
744fbdd732
Have std/png decode iCCP chunks
...
Updates #39
2021-11-05 16:29:11 +11:00
Nigel Tao
0854344580
Add wuffs_aux::sync_io::DynIOBuffer
2021-11-04 22:58:45 +11:00
Nigel Tao
d5075c7e94
Push "int i" into "for (int i = etc; etc; etc)"
2021-11-02 14:07:58 +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
f40ef01244
Have make-red-blue-gradient use iCCP profile name
2021-10-31 15:35:14 +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
d557bc3836
Embiggen test/data/red-blue-gradient.*.png
2021-10-22 09:23:49 +11:00
Nigel Tao
01a5b8842b
Update test/nia-checksums-of-data.txt
2021-10-20 19:38:43 +11:00
Nigel Tao
35cb4df973
Rename test/data/red-blue-gradient.dcip3d65.png
2021-10-20 19:38:24 +11:00
Nigel Tao
15b6285d1c
Add example/imageviewer -screen_gamma=N.N flag
2021-10-20 15:42:26 +11:00
Nigel Tao
6ea3144379
Add test/data/checkerboard.*.png
2021-10-20 09:58:42 +11:00
Nigel Tao
b003f9fe65
Let wuffs_aux::DecodeImage handle metadata
...
Updates #39
2021-10-19 22:09:21 +11:00
Nigel Tao
d259f7a579
Fix json_fuzzer for wuffs_aux::FooArgBar types
2021-10-18 00:46:50 +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
2e821791a9
Update test/nia-checksums-of-data.txt
2021-10-17 13:08:24 +11:00
Nigel Tao
e317f04bfd
Add defined(__clang__) to defined(__GNUC__) checks
2021-10-17 12:14:54 +11:00
Nigel Tao
db5a407bab
Have std/png decode sRGB chunks
...
Updates #39
2021-10-16 09:27:30 +11:00
Nigel Tao
9323549eeb
Update doc/changelog.md
2021-10-15 16:34:04 +11:00
Nigel Tao
911049e9f9
Have std/png decode cHRM and gAMA chunks
...
Updates #39
2021-10-15 15:08:47 +11:00
Nigel Tao
ae9ca94501
Fix etc__more_information__metadata_parsed__chrm
2021-10-15 14:15:39 +11:00
Nigel Tao
d8ad363ef5
Tweak png.decoder.decode_image_config indentation
2021-10-15 13:35:15 +11:00
Nigel Tao
e6733aec19
Add test/data/red-blue-gradient.dcip3d65.png
2021-10-15 11:29:26 +11:00
Nigel Tao
ad1d983698
Add ETC__MORE_INFORMATION__FLAVOR__METADATA_PARSED
2021-10-14 17:17:11 +11:00
Nigel Tao
dbc209dd7e
Add test/data/red-blue-gradient.*.png
2021-10-14 15:58:03 +11:00
Nigel Tao
1a94a6f1b3
Choose fuzzer's static-ness on program vs library
...
Some sanitizers don't work well with static functions.
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39767
2021-10-10 10:46:05 +11:00
Nigel Tao
34e2786dd2
wuffs gen -version=0.3.0-beta.10
v0.3.0-beta.10
2021-10-07 17:03:51 +11:00
Nigel Tao
5a4dd303f0
Remove hippopotamus.interlaced.png "wuffs test"
...
Coverage now comes from build-all.sh's nia-checksums-of-data.txt test.
2021-10-07 16:52:17 +11:00
Nigel Tao
62125d8967
Add test/nia-checksums-of-data.txt
2021-10-07 16:49:38 +11:00
Nigel Tao
eb6703425a
Tweak build-*.sh "Wuffs root directory" check
2021-10-07 14:59:13 +11:00
Nigel Tao
6fb7697b4a
Have scripts use WUFFS_CONFIG__STATIC_FUNCTIONS
2021-10-07 14:36:35 +11:00
Nigel Tao
55784030e4
Have fuzzers use WUFFS_CONFIG__STATIC_FUNCTIONS
...
Compile time:
$ time ./build-fuzz.sh
Before: user 0m36.656s
After: user 0m18.534s
2021-10-07 14:26:08 +11:00
Nigel Tao
feb050b418
Add CFLAGS, CXXFLAGS, LDFLAGS to build-fuzz.sh
2021-10-07 14:12:16 +11:00
Nigel Tao
f9c029c788
Fix std/png history_position for interlacing
2021-10-07 13:52:40 +11:00
Nigel Tao
90d3232eae
Let example/imageviewer minify (negative zoom)
2021-10-07 12:59:38 +11:00
Nigel Tao
2945ef2b29
Have example/imageviewer avoid big xcb_image_put's
2021-10-07 12:35:12 +11:00
Nigel Tao
ea4c85bfa2
Add comment re previous commit (strip examples)
2021-10-04 23:37:37 +11:00
Nigel Tao
41fce8a8de
Strip examples of unused data and functions
...
Compile time:
$ time ./build-example.sh
Before: user 0m40.885s
After: user 0m41.011s
Binary size (for example-toy-genlib):
$ ls -l gen/bin/example-toy-genlib) | awk '{print $5}'
Before: 830168
After: 809896
Note that the majority of this is a statically linked libc.
Binary size (excluding the statically linked example-toy-genlib):
$ ls -l gen/bin/example-* | awk '{print $5 " " $9}'
Before:
85280 gen/bin/example-cbor-to-json
242216 gen/bin/example-convert-to-nia
37112 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
After:
73104 gen/bin/example-cbor-to-json
231560 gen/bin/example-convert-to-nia
34640 gen/bin/example-crc32
47632 gen/bin/example-gifplayer
269632 gen/bin/example-imageviewer
83032 gen/bin/example-json-to-cbor
118664 gen/bin/example-jsonfindptrs
58040 gen/bin/example-jsonptr
253424 gen/bin/example-sdl-imageviewer
58200 gen/bin/example-zcat
Before total: 1311560
After total: 1227928
2021-10-04 13:28:42 +11:00
Nigel Tao
9699c49f55
Have example/crc32 use WUFFS_CONFIG__MODULES
...
Compile time:
$ time ./build-example.sh example/crc32
Before: user 10.637s
After: user 1.314s
Binary size:
$ ls -l gen/bin/example-crc32 | awk '{print $5}'
Before: 344744
After: 37112
2021-10-04 13:03:27 +11:00