Commit Graph
381 Commits
Author SHA1 Message Date
Nigel Tao ece4eea1af Make implicit palette entries opaque black 2018-08-25 14:54:27 +10:00
Nigel Tao fbb8bd44b8 Make blend an enum, not just a bool 2018-08-19 17:00:00 +10:00
Nigel Tao c1af1e2c82 Rename $(etc) to [etc] 2018-08-18 10:11:43 +10:00
Nigel Tao 6236e7205f Remove packageid 2018-08-12 21:44:49 +10:00
Nigel Tao eec0fce647 Change error "?foo" to status "?foo" 2018-08-12 21:31:56 +10:00
Nigel Tao 203b45e869 Remove status values 2018-08-12 19:36:29 +10:00
Nigel Tao b385c30b4f Add a "?" prefix to non-built-in status messages 2018-08-12 14:07:40 +10:00
Nigel Tao 73b104dfb8 Merge pull request #17 from jimmycasey/master
Fixed Spelling.
2018-08-04 09:56:44 +10:00
Nigel Tao eca5565821 Removed closed-for-read/write status codes 2018-08-04 09:34:39 +10:00
Nigel Tao 2100a9f837 Use !?? to denote coroutines 2018-07-29 13:57:13 +10:00
Nigel Tao ca06083f8a Rename the implicit in variable to args 2018-07-29 10:26:22 +10:00
Nigel Tao 9919d78245 Change func out-type from struct to bare type 2018-07-29 10:02:06 +10:00
Jimmy Casey 3c50ada2c6 Fixed Spelling. 2018-07-26 17:12:19 +00:00
Nigel Tao 951d79fa00 Reorder decode_frame args 2018-07-22 17:27:29 +10:00
Nigel Tao adba763a02 Fix decode_frame_config without decode_frame 2018-07-22 17:22:34 +10:00
Nigel Tao 9514b12c7f Spin decode_frame_config out of decode_frame 2018-07-21 21:45:33 +10:00
Nigel Tao 1c75f7b748 Redo {frame,image,pixel}_config and pixel_buffer 2018-07-21 09:15:33 +10:00
Nigel Tao dcda30b96a Rename decode_config to decode_image_config 2018-07-15 19:48:30 +10:00
Nigel Tao 7e4b244208 Delete an obsolete TODO 2018-07-15 17:46:33 +10:00
Nigel Tao 3df168ed9d Have std/gif's decode_frame call decode_config 2018-07-15 17:40:28 +10:00
Nigel Tao 29eb64a0a4 Add a nptr T type 2018-07-15 17:10:03 +10:00
Nigel Tao 15f2f42b77 Add a nullptr literal 2018-07-15 16:41:23 +10:00
Nigel Tao e49d464432 Make _fast explicit in copy_n_from_history_fast 2018-07-08 21:39:18 +10:00
Nigel Tao 9e300fc4f8 Rename unread_u8? to undo_byte!; add can_undo_byte 2018-07-08 21:02:29 +10:00
Nigel Tao 5aa16ef671 Use the peek, skip_fast and write_fast methods
No change in the benchmark numbers.
2018-07-08 14:17:16 +10:00
Nigel Tao a32683e5ea Drop the 32 in the skip32 and skip32_fast names 2018-07-08 14:02:32 +10:00
Nigel Tao 26eba56f57 Rename some copy_from_xxx methods 2018-07-08 13:56:49 +10:00
Nigel Tao e43aa62d1c Fix some C++ (not C) compile errors 2018-06-30 13:31:52 +10:00
Nigel Tao 52e7fe0709 Mark std/gif's decode_up_to_id_part1 as private 2018-06-30 13:03:20 +10:00
Nigel Tao 92b566367d Optimize some more more std/gif if blocks
name                             old speed     new speed     delta

wuffs_lzw_decode_20k/clang       136MB/s ± 0%  134MB/s ± 1%  -1.27%  (p=0.000 n=9+9)
wuffs_lzw_decode_100k/clang      175MB/s ± 0%  175MB/s ± 0%    ~     (p=0.863 n=9+9)

wuffs_lzw_decode_20k/gcc         168MB/s ± 0%  177MB/s ± 1%  +5.79%  (p=0.000 n=9+8)
wuffs_lzw_decode_100k/gcc        242MB/s ± 0%  262MB/s ± 3%  +8.27%  (p=0.000 n=10+10)

wuffs_gif_decode_1k_bw/clang     280MB/s ± 1%  294MB/s ± 1%  +4.88%  (p=0.000 n=9+9)
wuffs_gif_decode_1k_color/clang  158MB/s ± 0%  158MB/s ± 0%    ~     (p=0.724 n=8+9)
wuffs_gif_decode_10k/clang       146MB/s ± 0%  146MB/s ± 0%    ~     (p=0.387 n=9+9)
wuffs_gif_decode_100k/clang      125MB/s ± 0%  125MB/s ± 1%  +0.18%  (p=0.040 n=9+9)
wuffs_gif_decode_1000k/clang     128MB/s ± 0%  128MB/s ± 1%  +0.38%  (p=0.008 n=8+9)

wuffs_gif_decode_1k_bw/gcc       323MB/s ± 1%  306MB/s ± 2%  -5.20%  (p=0.000 n=10+10)
wuffs_gif_decode_1k_color/gcc    167MB/s ± 2%  164MB/s ± 1%  -1.71%  (p=0.002 n=10+10)
wuffs_gif_decode_10k/gcc         151MB/s ± 0%  152MB/s ± 0%  +0.67%  (p=0.000 n=9+10)
wuffs_gif_decode_100k/gcc        134MB/s ± 0%  136MB/s ± 1%  +1.16%  (p=0.001 n=9+9)
wuffs_gif_decode_1000k/gcc       138MB/s ± 0%  140MB/s ± 1%  +1.18%  (p=0.000 n=9+9)
2018-06-30 08:49:23 +10:00
Nigel Tao 9cd37adfe8 Optimize some more std/gif if blocks
name                             old speed     new speed     delta

wuffs_lzw_decode_20k/clang       124MB/s ± 0%  136MB/s ± 0%   +9.77%  (p=0.000 n=9+9)
wuffs_lzw_decode_100k/clang      164MB/s ± 1%  175MB/s ± 0%   +6.66%  (p=0.000 n=10+9)

wuffs_lzw_decode_20k/gcc         167MB/s ± 0%  168MB/s ± 0%   +0.38%  (p=0.000 n=8+9)
wuffs_lzw_decode_100k/gcc        247MB/s ± 0%  242MB/s ± 0%   -2.16%  (p=0.000 n=9+10)

wuffs_gif_decode_1k_bw/clang     266MB/s ± 1%  280MB/s ± 1%   +5.36%  (p=0.000 n=10+9)
wuffs_gif_decode_1k_color/clang  122MB/s ± 0%  158MB/s ± 0%  +29.46%  (p=0.000 n=10+8)
wuffs_gif_decode_10k/clang       115MB/s ± 1%  146MB/s ± 0%  +27.00%  (p=0.000 n=10+9)
wuffs_gif_decode_100k/clang      113MB/s ± 0%  125MB/s ± 0%  +10.46%  (p=0.000 n=9+9)
wuffs_gif_decode_1000k/clang     115MB/s ± 1%  128MB/s ± 0%  +11.24%  (p=0.000 n=9+8)

wuffs_gif_decode_1k_bw/gcc       298MB/s ± 1%  323MB/s ± 1%   +8.23%  (p=0.000 n=9+10)
wuffs_gif_decode_1k_color/gcc    163MB/s ± 1%  167MB/s ± 2%   +2.10%  (p=0.000 n=10+10)
wuffs_gif_decode_10k/gcc         152MB/s ± 0%  151MB/s ± 0%   -0.55%  (p=0.000 n=9+9)
wuffs_gif_decode_100k/gcc        134MB/s ± 0%  134MB/s ± 0%     ~     (p=0.606 n=8+9)
wuffs_gif_decode_1000k/gcc       138MB/s ± 1%  138MB/s ± 0%     ~     (p=0.422 n=9+9)
2018-06-30 08:40:24 +10:00
Nigel Tao 91bf555431 Optimize some std/gif if blocks
name                             old speed     new speed     delta

wuffs_lzw_decode_20k/clang       123MB/s ± 1%  124MB/s ± 0%   +0.91%  (p=0.000 n=46+9)
wuffs_lzw_decode_100k/clang      156MB/s ± 1%  164MB/s ± 1%   +5.07%  (p=0.000 n=46+10)

wuffs_lzw_decode_20k/gcc         167MB/s ± 2%  167MB/s ± 0%     ~     (p=0.933 n=46+8)
wuffs_lzw_decode_100k/gcc        243MB/s ± 3%  247MB/s ± 0%   +1.56%  (p=0.000 n=47+9)

wuffs_gif_decode_1k_bw/clang     263MB/s ± 1%  266MB/s ± 1%   +1.02%  (p=0.000 n=46+10)
wuffs_gif_decode_1k_color/clang  147MB/s ± 1%  122MB/s ± 0%  -16.63%  (p=0.000 n=46+10)
wuffs_gif_decode_10k/clang       134MB/s ± 2%  115MB/s ± 1%  -14.02%  (p=0.000 n=49+10)
wuffs_gif_decode_100k/clang      115MB/s ± 1%  113MB/s ± 0%   -1.73%  (p=0.000 n=44+9)
wuffs_gif_decode_1000k/clang     117MB/s ± 1%  115MB/s ± 1%   -2.10%  (p=0.000 n=46+9)

wuffs_gif_decode_1k_bw/gcc       291MB/s ± 1%  298MB/s ± 1%   +2.46%  (p=0.000 n=44+9)
wuffs_gif_decode_1k_color/gcc    138MB/s ± 1%  163MB/s ± 1%  +18.50%  (p=0.000 n=45+10)
wuffs_gif_decode_10k/gcc         134MB/s ± 2%  152MB/s ± 0%  +13.37%  (p=0.000 n=47+9)
wuffs_gif_decode_100k/gcc        121MB/s ± 1%  134MB/s ± 0%  +11.18%  (p=0.000 n=46+8)
wuffs_gif_decode_1000k/gcc       124MB/s ± 2%  138MB/s ± 1%  +11.07%  (p=0.000 n=47+9)
2018-06-30 08:33:23 +10:00
Nigel Tao bdd335e7d9 Delete unused background_color_index field 2018-06-11 11:14:34 +10:00
Nigel Tao 1ee2152785 Add a image_config.first_frame_is_opaque method 2018-06-11 11:07:14 +10:00
Nigel Tao a09e63320d Add a std/gif decoder.frame_count method 2018-06-11 09:11:45 +10:00
Nigel Tao c5b7b7097e Rename inclusive and exclusive to incl and excl 2018-06-11 09:04:12 +10:00
Nigel Tao 3d035df908 Add a std/gif decode_frame work_buffer arg 2018-06-11 08:55:28 +10:00
Nigel Tao 156cea5a70 Add a std/gif work_buffer_size method 2018-06-11 08:52:53 +10:00
Nigel Tao 6401399dea Rename some std/gif frame rect fields 2018-06-11 08:35:48 +10:00
Nigel Tao 52feb10ad3 Add a utility.make_rect_ie_u32 method 2018-06-11 08:28:29 +10:00
Nigel Tao 92a8bc4641 Add a base.utility type 2018-06-11 08:05:12 +10:00
Nigel Tao 634789722d Assign values, not just messages, to status codes 2018-06-10 15:48:29 +10:00
Nigel Tao b2b3593537 Decode interlaced GIFs 2018-06-09 07:46:07 +10:00
Nigel Tao 2e14f0fc6d Decode a GIF's transparent index 2018-06-09 07:39:11 +10:00
Nigel Tao bb59b0f8f5 Decode GIF's disposal method 2018-06-03 19:46:51 +10:00
Nigel Tao 0413c52e19 Make wuffs_base__flicks a *signed* integer type 2018-06-03 19:34:11 +10:00
Nigel Tao 6df342c60c Add animation blend and disposal concepts 2018-06-03 19:27:57 +10:00
Nigel Tao 8dbfad9509 Type check used-package structs and funcs 2018-06-03 10:49:24 +10:00
Nigel Tao 6b640bea86 Rename some std/lzw error messages 2018-06-03 09:28:57 +10:00
Nigel Tao 6d510bcfcb Spin out a std/lzw package 2018-06-02 14:15:09 +10:00