Nigel Tao
dcb81a85bb
Prepare to decode BMP embedding a JPEG or PNG
2020-05-27 13:37:54 +10:00
Nigel Tao
1239280ad8
Roll back 'dst_palette into the pixel_swizzler'
...
See the previous commit for the rationale.
2020-05-26 14:13:28 +10:00
Nigel Tao
2d8ec9ace9
Roll dst_palette into the pixel_swizzler struct
...
This commit will soon be followed by a rollback, but it is committed
anyway so that we can refer to these numbers in the git log.
name old speed new speed delta
wuffs_gif_decode_1k_bw/clang5 286MB/s ± 1% 251MB/s ± 0% -12.11% (p=0.000 n=10+9)
wuffs_gif_decode_1k_color_full_init/clang5 96.0MB/s ± 0% 88.9MB/s ± 0% -7.35% (p=0.000 n=10+10)
wuffs_gif_decode_1k_color_part_init/clang5 119MB/s ± 0% 108MB/s ± 0% -9.06% (p=0.000 n=10+8)
wuffs_gif_decode_10k_bgra/clang5 469MB/s ± 1% 438MB/s ± 0% -6.50% (p=0.000 n=10+8)
wuffs_gif_decode_10k_indexed/clang5 125MB/s ± 1% 117MB/s ± 1% -6.78% (p=0.000 n=9+9)
wuffs_gif_decode_20k/clang5 153MB/s ± 0% 139MB/s ± 0% -9.40% (p=0.000 n=9+9)
wuffs_gif_decode_100k_artificial/clang5 324MB/s ± 0% 304MB/s ± 0% -6.22% (p=0.000 n=10+9)
wuffs_gif_decode_100k_realistic/clang5 139MB/s ± 1% 125MB/s ± 1% -9.69% (p=0.000 n=9+10)
wuffs_gif_decode_1000k_full_init/clang5 141MB/s ± 0% 126MB/s ± 0% -10.40% (p=0.000 n=10+10)
wuffs_gif_decode_1000k_part_init/clang5 141MB/s ± 1% 126MB/s ± 0% -10.50% (p=0.000 n=10+8)
wuffs_gif_decode_anim_screencap/clang5 655MB/s ± 0% 617MB/s ± 1% -5.91% (p=0.000 n=9+9)
wuffs_gif_decode_1k_bw/gcc7 299MB/s ± 0% 295MB/s ± 0% -1.18% (p=0.000 n=10+8)
wuffs_gif_decode_1k_color_full_init/gcc7 85.2MB/s ± 1% 88.2MB/s ± 0% +3.58% (p=0.000 n=10+10)
wuffs_gif_decode_1k_color_part_init/gcc7 104MB/s ± 0% 103MB/s ± 0% -0.39% (p=0.001 n=9+10)
wuffs_gif_decode_10k_bgra/gcc7 349MB/s ± 2% 352MB/s ± 0% +0.77% (p=0.000 n=9+10)
wuffs_gif_decode_10k_indexed/gcc7 106MB/s ± 0% 106MB/s ± 2% ~ (p=0.762 n=8+10)
wuffs_gif_decode_20k/gcc7 133MB/s ± 0% 133MB/s ± 0% ~ (p=0.258 n=9+9)
wuffs_gif_decode_100k_artificial/gcc7 302MB/s ± 0% 301MB/s ± 1% -0.41% (p=0.035 n=10+10)
wuffs_gif_decode_100k_realistic/gcc7 118MB/s ± 1% 118MB/s ± 1% ~ (p=0.095 n=9+10)
wuffs_gif_decode_1000k_full_init/gcc7 120MB/s ± 1% 119MB/s ± 0% -0.34% (p=0.007 n=10+10)
wuffs_gif_decode_1000k_part_init/gcc7 119MB/s ± 1% 119MB/s ± 1% ~ (p=0.138 n=10+10)
wuffs_gif_decode_anim_screencap/gcc7 640MB/s ± 0% 640MB/s ± 0% ~ (p=0.905 n=9+10)
2020-05-26 14:07:30 +10:00
Nigel Tao
3afdd91acb
Make wuffs_base__load_etc arg const
2020-05-26 13:57:17 +10:00
Nigel Tao
bc546b7383
Move more base funcs to the pixconv sub-module
...
$ ls -l gen/lib/c/*/{lib*,*base*} | awk '{print $5 " " $9}'
Before:
167976 gen/lib/c/clang-5.0-dynamic/libwuffs.so
13944 gen/lib/c/clang-5.0-dynamic/wuffs-base-core.lo
11640 gen/lib/c/clang-5.0-dynamic/wuffs-base-pixconv.lo
207150 gen/lib/c/clang-5.0-static/libwuffs.a
14240 gen/lib/c/clang-5.0-static/wuffs-base-core.o
12096 gen/lib/c/clang-5.0-static/wuffs-base-pixconv.o
188088 gen/lib/c/gcc-dynamic/libwuffs.so
13296 gen/lib/c/gcc-dynamic/wuffs-base-core.lo
27232 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
234766 gen/lib/c/gcc-static/libwuffs.a
13432 gen/lib/c/gcc-static/wuffs-base-core.o
27216 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
167976 gen/lib/c/clang-5.0-dynamic/libwuffs.so
11376 gen/lib/c/clang-5.0-dynamic/wuffs-base-core.lo
14328 gen/lib/c/clang-5.0-dynamic/wuffs-base-pixconv.lo
207270 gen/lib/c/clang-5.0-static/libwuffs.a
11696 gen/lib/c/clang-5.0-static/wuffs-base-core.o
14760 gen/lib/c/clang-5.0-static/wuffs-base-pixconv.o
188088 gen/lib/c/gcc-dynamic/libwuffs.so
10680 gen/lib/c/gcc-dynamic/wuffs-base-core.lo
29968 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
234886 gen/lib/c/gcc-static/libwuffs.a
10856 gen/lib/c/gcc-static/wuffs-base-core.o
29912 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2020-05-26 11:54:36 +10:00
Nigel Tao
4d3a65763e
Spin out base-interfaces sub-module
...
$ ls -l gen/lib/c/*/{lib*,*base*} | awk '{print $5 " " $9}'
Before:
167952 gen/lib/c/clang-5.0-dynamic/libwuffs.so
20664 gen/lib/c/clang-5.0-dynamic/wuffs-base-core.lo
205656 gen/lib/c/clang-5.0-static/libwuffs.a
20960 gen/lib/c/clang-5.0-static/wuffs-base-core.o
188064 gen/lib/c/gcc-dynamic/libwuffs.so
18936 gen/lib/c/gcc-dynamic/wuffs-base-core.lo
232976 gen/lib/c/gcc-static/libwuffs.a
18920 gen/lib/c/gcc-static/wuffs-base-core.o
After:
167976 gen/lib/c/clang-5.0-dynamic/libwuffs.so
13944 gen/lib/c/clang-5.0-dynamic/wuffs-base-core.lo
8128 gen/lib/c/clang-5.0-dynamic/wuffs-base-interfaces.lo
207150 gen/lib/c/clang-5.0-static/libwuffs.a
14240 gen/lib/c/clang-5.0-static/wuffs-base-core.o
8128 gen/lib/c/clang-5.0-static/wuffs-base-interfaces.o
188088 gen/lib/c/gcc-dynamic/libwuffs.so
13296 gen/lib/c/gcc-dynamic/wuffs-base-core.lo
7384 gen/lib/c/gcc-dynamic/wuffs-base-interfaces.lo
234766 gen/lib/c/gcc-static/libwuffs.a
13432 gen/lib/c/gcc-static/wuffs-base-core.o
7192 gen/lib/c/gcc-static/wuffs-base-interfaces.o
2020-05-26 11:43:54 +10:00
Nigel Tao
04ab8868bd
Add some more WUFFS_BASE__MAYBE_STATIC's to base
2020-05-26 11:02:31 +10:00
Nigel Tao
092b03cd1e
Add WUFFS_CONFIG__MODULE__BASE__ETC sub-modules
...
$ ls -l gen/lib/c/*/{lib*,*base*} | awk '{print $5 " " $9}'
Before:
167976 gen/lib/c/clang-5.0-dynamic/libwuffs.so
40824 gen/lib/c/clang-5.0-dynamic/wuffs-base.lo
203306 gen/lib/c/clang-5.0-static/libwuffs.a
41816 gen/lib/c/clang-5.0-static/wuffs-base.o
188080 gen/lib/c/gcc-dynamic/libwuffs.so
53976 gen/lib/c/gcc-dynamic/wuffs-base.lo
230002 gen/lib/c/gcc-static/libwuffs.a
53976 gen/lib/c/gcc-static/wuffs-base.o
After:
168024 gen/lib/c/clang-5.0-dynamic/libwuffs.so
20664 gen/lib/c/clang-5.0-dynamic/wuffs-base-core.lo
10784 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo
11640 gen/lib/c/clang-5.0-dynamic/wuffs-base-pixconv.lo
205752 gen/lib/c/clang-5.0-static/libwuffs.a
20960 gen/lib/c/clang-5.0-static/wuffs-base-core.o
11024 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o
12096 gen/lib/c/clang-5.0-static/wuffs-base-pixconv.o
188128 gen/lib/c/gcc-dynamic/libwuffs.so
18936 gen/lib/c/gcc-dynamic/wuffs-base-core.lo
10672 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo
27232 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
232984 gen/lib/c/gcc-static/libwuffs.a
18920 gen/lib/c/gcc-static/wuffs-base-core.o
10640 gen/lib/c/gcc-static/wuffs-base-f64conv.o
27216 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2020-05-25 23:01:11 +10:00
Nigel Tao
43db33a345
Prepare to spin out base submodules
2020-05-25 22:44:29 +10:00
Nigel Tao
00fe18b98e
Rename internal/cgen/base/core-*
2020-05-25 13:15:10 +10:00
Nigel Tao
7a823a7424
Fix std/wbmp decode_frame across a suspension
2020-05-22 12:25:13 +10:00
Nigel Tao
f9a90d8ade
Loosen what std/gif allows as the trailer byte
2020-05-21 22:06:21 +10:00
Nigel Tao
ee60af58fb
Add NIE spec note re degenerate animations
2020-05-21 21:42:02 +10:00
Nigel Tao
f3b9704e4d
Rename some color_u32_argb_premul conversion funcs
2020-05-19 23:39:26 +10:00
Nigel Tao
c7e5ca1545
Expand supported pixel_swizzler dst+src pixfmt's
2020-05-19 23:27:26 +10:00
Nigel Tao
509b3e7c43
Fix pixel_swizzler dst offset scalar
2020-05-19 23:23:05 +10:00
Nigel Tao
473427c015
Re-organize internal/cgen/base/image-impl.c
2020-05-19 23:21:09 +10:00
Nigel Tao
ab257af2cf
Let pixel_swizzler blend src_over a nonpremul dst
2020-05-18 10:58:37 +10:00
Nigel Tao
d585f9b902
Add more pixel formats to set_color_u32_at
2020-05-16 11:23:44 +10:00
Nigel Tao
9a1b8def46
Tweak pixel_format bits
2020-05-16 10:12:16 +10:00
Nigel Tao
ddc41cb43f
Add pixel swizzler test
2020-05-15 21:46:01 +10:00
Nigel Tao
2c643aa704
Add example/convert-to-nia
2020-05-14 21:44:03 +10:00
Nigel Tao
f8f07d8e13
Move premul/non-premul conversions to image-public
2020-05-14 21:22:52 +10:00
Nigel Tao
621ea5adf3
Have examples use overwrite_instead_of_blend
2020-05-14 21:20:31 +10:00
Nigel Tao
f602237490
Tweak NIA/NIA duration wire format
...
Durations now take 63 bits, not 62, which matches the bit depth of a
non-negative int64_t.
Frame durations now come before, not after, the frame pixels.
2020-05-14 21:11:08 +10:00
Nigel Tao
ad1cff3921
Add tell_me_more? mechanism
2020-05-12 11:12:39 +10:00
Nigel Tao
c510bc0c91
Roll forward 6a85e9a6
...
6a85e9a6a9 rolled back
a4527c359a "Update seed_corpora.txt".
The oss-fuzz build should be fixed by:
https://github.com/google/oss-fuzz/pull/3763
2020-05-06 14:22:51 +10:00
Nigel Tao
6a85e9a6a9
Roll back a4527c35
...
a4527c359a is "Update seed_corpora.txt".
This broke the oss-fuzz build:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22035
2020-05-06 10:42:56 +10:00
Nigel Tao
b66cf775bf
Add Muhammad Aldo Firmansyah to A+C
2020-05-04 11:26:51 +10:00
Nigel Tao
db9459deb3
Fix /README.md update date
2020-05-04 11:22:05 +10:00
Nigel Tao
297a94d627
Merge pull request #28 from TheCrott/master
...
Update seed_corpora.txt
2020-05-04 11:19:44 +10:00
Muhammad Aldo Firmansyah
a4527c359a
Update seed_corpora.txt
...
Add more json corpus from simdjson_fuzz repo
2020-05-01 11:05:32 +07:00
Nigel Tao
1f424b2ea7
Propagate const-values to idents of consts
2020-04-16 09:37:05 +10:00
Nigel Tao
9f6c40246f
Simplify cgen of empty functions
2020-04-16 09:34:50 +10:00
Nigel Tao
e39f3cbf42
Redo Wuffs structs' quirk bool fields
2020-04-14 23:03:18 +10:00
Nigel Tao
532e18c4a5
Add colons to const syntax
2020-04-14 14:57:30 +10:00
Nigel Tao
80071730a3
Add std/json CLASS_XXX constants
2020-04-13 16:06:16 +10:00
Nigel Tao
74871344f0
Capitalize Wuffs const names
2020-04-13 15:52:36 +10:00
Nigel Tao
623811086f
Add example/README.md
2020-04-12 21:13:42 +10:00
Nigel Tao
4bc42db1d3
Add set_quirk_enabled interface methods
2020-04-12 20:53:54 +10:00
Nigel Tao
873c6b400a
Add alloc functions
2020-04-12 20:34:33 +10:00
Nigel Tao
f7ea462c00
Fix human-readable vmajor when out of base38 range
2020-04-10 22:44:13 +10:00
Nigel Tao
492ee61391
Add doc/note link from base38-etc.md to tokens.md
2020-04-10 22:00:04 +10:00
Nigel Tao
335819f90e
Fix some doc/note/tokens.md typos
2020-04-10 21:24:43 +10:00
Nigel Tao
6612d90ca2
Re-write bit ranges in the docs
2020-04-09 22:29:45 +10:00
Nigel Tao
496e88b6c5
Remove wuffs_base__token__link_prev
2020-04-09 22:11:08 +10:00
Nigel Tao
2ef3999d6d
Remove use of wuffs_base__token__link_prev
2020-04-09 17:24:39 +10:00
Nigel Tao
478d1b817c
Add doc/note/tokens.md
2020-04-08 23:31:18 +10:00
Nigel Tao
df3acfbb21
Clarify std/json quirk_allow_backslash_x semantics
2020-04-08 11:08:01 +10:00
Nigel Tao
d83bd8d036
Add std/json quirk_allow_ascii_control_codes
2020-04-07 17:50:47 +10:00