Commit Graph
386 Commits
Author SHA1 Message Date
Nigel Tao 3923bb9637 Change pixel_subsampling from shift to divide 2019-12-10 20:39:37 +11:00
Nigel Tao 721678ed75 Add doc/note/pixel-subsampling.md 2019-12-10 09:40:44 +11:00
Nigel Tao 3325f73041 Let set_from_{slice,table}'s pixcfg arg be const 2019-12-03 11:30:04 +11:00
Nigel Tao 5362ca7573 Add doc/note/pixel-formats.md 2019-12-02 20:34:55 +11:00
Nigel Tao b45b28daf8 Rename doc/note/zero-initialization.md 2019-11-22 08:41:14 +11:00
Nigel Tao 8ff9cdb9a6 Rename hasher update_u32 method 2019-11-20 21:07:22 +11:00
Nigel Tao f10849d20b Add doc/note/zero-initialization.md 2019-11-14 20:45:48 +11:00
Nigel Tao 7ec2528765 wuffs gen -version=0.2.0-rc.3 2019-11-02 14:46:10 +11:00
Nigel Tao e7d30aa3bd Remove unnecessary "#ifdef WUFFS_IMPLEMENTATION"s 2019-11-02 14:45:37 +11:00
Nigel Tao 80cb158dde wuffs gen -version=0.2.0-rc.2 2019-11-02 12:18:21 +11:00
Nigel Tao 498b7138f3 Remove "static const uint32_t etc" from cgen
They trigger compiler warnings (-Wunused-const-variable) precisely
because they're unused.
2019-11-02 12:15:01 +11:00
Nigel Tao c8087550ec Add doc/note/ranges-and-rects.md 2019-10-28 21:55:47 +11:00
Nigel Tao cdb60a950d Tweak LEAVE_INTERNAL_BUFFERS_UNINITIALIZED comment 2019-10-23 20:18:17 +11:00
Nigel Tao a24a1d427e Avoid gcc's -Werror=array-bounds for memset 2019-10-14 09:37:15 +11:00
Nigel Tao 4080840928 wuffs gen -version=0.2.0-rc.1 2019-10-05 16:46:18 +10:00
Nigel Tao b0f18dacbd Remove deprecated wuffs_base__null_etc functions 2019-10-05 16:27:53 +10:00
Nigel Tao 9089d37578 Clip std/gif replicated rows to the frame rect
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17802
2019-10-05 11:54:03 +10:00
Nigel Tao aaebb17a01 Tweak how std/gif does interlace row replication 2019-10-05 11:45:14 +10:00
Nigel Tao 293a633e8a Clip std/gif output to the image rect 2019-09-28 21:47:56 +10:00
Nigel Tao 59b2ddf37f Clamp std/gif dirty rect to the image height 2019-09-28 20:27:27 +10:00
Nigel Tao 851b7561d9 Fix dirty rect for interlaced GIFs 2019-09-28 14:17:42 +10:00
Nigel Tao 15670546bb Let std/deflate decode a degenerate H-D table 2019-09-28 13:23:49 +10:00
Nigel Tao 18763813d5 Support zlib dictionaries 2019-09-28 10:38:30 +10:00
Nigel Tao 498e1f407d Factor out deflate.decoder.add_history 2019-09-28 10:32:12 +10:00
Nigel Tao 344efe7926 Remove deprecated io_buffer reader method 2019-09-21 17:34:50 +10:00
Nigel Tao 65e7b2b6c9 wuffs gen -version=0.2.0-alpha.47 2019-09-14 13:05:36 +10:00
Nigel Tao ea3dbc5f2d Restore deprecated io_buffer reader method 2019-09-14 13:04:45 +10:00
Nigel Tao 74614a2921 Fix calls to the deprecated null_io_buffer 2019-09-14 12:06:27 +10:00
Nigel Tao 23ef9395c8 wuffs gen -version=0.2.0-alpha.46 2019-09-14 11:47:04 +10:00
Nigel Tao ca9015bd2d Have std/gif replicate interlaced rows 2019-09-14 08:35:50 +10:00
Nigel Tao 449bbaf68e wuffs gen -version=0.2.0-alpha.45 2019-08-31 17:15:27 +10:00
Nigel Tao f379f7f905 Fix parsing 0 length GIF metadata 2019-08-31 08:20:18 +10:00
Nigel Tao a4195136bb Remove unnecessary etc__io_buffer__struct C name 2019-07-21 16:37:06 +10:00
Nigel Tao 6886500d71 Remove deprecated io_buffer reader/writer methods 2019-07-21 16:35:22 +10:00
Nigel Tao 392c8c544a Rename null_io_buffer etc to empty_io_buffer 2019-07-13 10:55:51 +10:00
Nigel Tao e477175fd2 Remove wuffs_base__global__null_io_buffer 2019-07-13 10:47:20 +10:00
Nigel Tao 2e901b6f8a Simplify some io0_etc references 2019-07-13 08:10:28 +10:00
Nigel Tao 6ad7d00a26 wuffs gen -version=0.2.0-alpha.44 2019-07-07 18:03:57 +10:00
Nigel Tao 3037f1e389 Fix empty initializer, which is not C99 2019-07-07 18:02:57 +10:00
Nigel Tao fc0d93fc66 Reject nullptr-valued io_buffer* args
name                                             old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang5                     417MB/s ± 0%   417MB/s ± 0%     ~     (p=0.841 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang5        136MB/s ± 1%   135MB/s ± 0%   -1.07%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang5        180MB/s ± 0%   177MB/s ± 0%   -1.49%  (p=0.016 n=4+5)
wuffs_gif_decode_10k_bgra/clang5                  733MB/s ± 0%   733MB/s ± 0%     ~     (p=1.000 n=5+5)
wuffs_gif_decode_10k_indexed/clang5               197MB/s ± 0%   196MB/s ± 0%   -0.43%  (p=0.032 n=5+5)
wuffs_gif_decode_20k/clang5                       245MB/s ± 0%   249MB/s ± 0%   +1.59%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang5           548MB/s ± 0%   553MB/s ± 0%   +0.97%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5            223MB/s ± 0%   226MB/s ± 0%   +1.48%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang5           226MB/s ± 0%   229MB/s ± 1%   +1.66%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang5           226MB/s ± 0%   229MB/s ± 0%   +1.51%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5           1.10GB/s ± 0%  1.11GB/s ± 0%   +0.91%  (p=0.008 n=5+5)

wuffs_gif_decode_1k_bw/gcc7                       465MB/s ± 2%   480MB/s ± 2%   +3.22%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/gcc7          142MB/s ± 1%   143MB/s ± 1%   +1.18%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc7          186MB/s ± 0%   189MB/s ± 0%   +1.64%  (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7                    634MB/s ± 0%   636MB/s ± 0%   +0.45%  (p=0.016 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7                 198MB/s ± 0%   200MB/s ± 0%   +0.86%  (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc7                         243MB/s ± 0%   245MB/s ± 0%   +1.11%  (p=0.016 n=4+5)
wuffs_gif_decode_100k_artificial/gcc7             514MB/s ± 1%   516MB/s ± 1%     ~     (p=0.310 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7              210MB/s ± 0%   214MB/s ± 0%   +1.67%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.53%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.54%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7             1.07GB/s ± 1%  1.08GB/s ± 1%     ~     (p=0.095 n=5+5)

wuffs_deflate_decode_1k_full_init/clang5          156MB/s ± 0%   140MB/s ± 0%  -10.04%  (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/clang5          192MB/s ± 0%   170MB/s ± 0%  -11.83%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang5         227MB/s ± 1%   242MB/s ± 0%   +6.61%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang5         234MB/s ± 0%   249MB/s ± 0%   +6.79%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5    282MB/s ± 0%   280MB/s ± 0%   -0.64%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5   238MB/s ± 0%   229MB/s ± 0%   -3.71%  (p=0.008 n=5+5)

wuffs_deflate_decode_1k_full_init/gcc7            157MB/s ± 0%   158MB/s ± 0%   +0.40%  (p=0.032 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc7            194MB/s ± 0%   194MB/s ± 0%     ~     (p=0.151 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc7           267MB/s ± 0%   266MB/s ± 0%     ~     (p=0.222 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc7           276MB/s ± 0%   275MB/s ± 1%     ~     (p=0.056 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7      322MB/s ± 0%   322MB/s ± 0%     ~     (p=0.548 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7     258MB/s ± 0%   258MB/s ± 0%     ~     (p=0.056 n=5+5)

wuffs_zlib_decode_10k/clang5                      212MB/s ± 0%   222MB/s ± 0%   +4.59%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/clang5                     252MB/s ± 1%   247MB/s ± 0%   -2.02%  (p=0.008 n=5+5)

wuffs_zlib_decode_10k/gcc7                        248MB/s ± 0%   253MB/s ± 0%   +2.00%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc7                       283MB/s ± 0%   292MB/s ± 0%   +3.17%  (p=0.008 n=5+5)
2019-07-07 17:59:11 +10:00
Nigel Tao a36bf4be4c Tweak the order of generated C's u_r and v_r vars 2019-07-07 17:43:57 +10:00
Nigel Tao 4f489d66ce Have null_io_writer mean /dev/null not nullptr 2019-07-07 17:37:23 +10:00
Nigel Tao fcec430152 Unexport wuffs_base__null_io_{reader,writer} 2019-07-07 17:31:51 +10:00
Nigel Tao 5653fb0409 Simplify wuffs_base__io_{reader,writer}__set 2019-07-07 17:19:23 +10:00
Nigel Tao 2b40cf00c4 Remove unnecessary iox_etc nullptr checks 2019-07-07 17:10:02 +10:00
Nigel Tao 3ca0c3dd1f Have io_{reader,writer}.count_since use io0_etc 2019-07-07 17:01:39 +10:00
Nigel Tao daeec2bc1e Have io_{reader,writer}.mark use io0_etc 2019-07-07 16:55:25 +10:00
Nigel Tao 3a23c449c7 Tweak io_{reader,writer}.since to use io0_etc
name                                             old speed      new speed      delta

wuffs_deflate_decode_1k_full_init/clang5          155MB/s ± 0%   155MB/s ± 1%     ~     (p=0.222 n=5+5)
wuffs_deflate_decode_1k_part_init/clang5          191MB/s ± 0%   191MB/s ± 1%     ~     (p=0.421 n=5+5)
wuffs_deflate_decode_10k_full_init/clang5         255MB/s ± 0%   248MB/s ± 0%   -2.81%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang5         262MB/s ± 0%   256MB/s ± 0%   -2.59%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5    292MB/s ± 0%   282MB/s ± 0%   -3.42%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5   249MB/s ± 0%   237MB/s ± 0%   -4.65%  (p=0.008 n=5+5)

wuffs_deflate_decode_1k_full_init/gcc7            157MB/s ± 0%   156MB/s ± 2%     ~     (p=0.095 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc7            194MB/s ± 0%   194MB/s ± 0%     ~     (p=0.548 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc7           268MB/s ± 0%   267MB/s ± 0%   -0.50%  (p=0.016 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc7           276MB/s ± 0%   276MB/s ± 0%     ~     (p=1.000 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7      321MB/s ± 0%   324MB/s ± 0%   +0.75%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7     261MB/s ± 0%   257MB/s ± 0%   -1.21%  (p=0.008 n=5+5)

wuffs_zlib_decode_10k/clang5                      235MB/s ± 1%   230MB/s ± 0%   -2.31%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/clang5                     260MB/s ± 0%   253MB/s ± 1%   -2.77%  (p=0.008 n=5+5)

wuffs_zlib_decode_10k/gcc7                        226MB/s ± 0%   249MB/s ± 0%  +10.18%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc7                       263MB/s ± 0%   287MB/s ± 0%   +9.22%  (p=0.008 n=5+5)
2019-07-06 22:25:50 +10:00
Nigel Tao 00134fe7f5 Shuffle initialization of io1_etc and io2_etc 2019-07-06 22:01:34 +10:00
Nigel Tao a842746807 Add generated C's io0_etc pointers 2019-07-06 21:55:37 +10:00