Commit Graph
161 Commits
Author SHA1 Message Date
Nigel Tao f3146c2ea9 Add base.token_decoder.workbuf_len 2020-03-26 08:47:42 +11:00
Nigel Tao b86373aff5 Add io_reader.peek_u64le_at 2020-03-19 11:33:22 +11:00
Nigel Tao d1c928a1ed Have tokens include explicit link bits 2020-02-29 10:46:44 +11:00
Nigel Tao 014b935d95 Add base.token_decoder interface 2020-02-26 10:19:49 +11:00
Nigel Tao c92c0f50e4 Have std/json decode null, false and true 2020-02-21 11:16:27 +11:00
Nigel Tao 70db96ac6d Add wuffs_base__parse_number_u64 2020-02-20 22:10:15 +11:00
Nigel Tao a8406927ef Add io_reader.is_closed 2020-02-19 12:22:00 +11:00
Nigel Tao 5c4e7fe126 Add base.token_reader to builtin.Types 2020-02-17 10:56:47 +11:00
Nigel Tao e9aba8924a Add token_writer.write_fast_token 2020-02-12 21:45:06 +11:00
Nigel Tao 737e31ff3a Add tokens 2020-02-11 12:02:58 +11:00
Nigel Tao 05b790d088 Refine pixel_format.bits_per_pixel return type 2020-02-08 18:27:38 +11:00
Nigel Tao 4ab2de9b95 Add wuffs_base__empty_{range,rect}_xx_uxx 2020-02-05 17:14:15 +11:00
Nigel Tao fd196177a2 Add "#unsupported method" error 2020-01-31 09:05:49 +11:00
Nigel Tao 86a2a62313 Add "#unsupported pixel swizzler option" error 2020-01-24 12:01:51 +11:00
Nigel Tao 6ef3ffe6c8 Add io_reader.skip 2020-01-16 22:15:33 +11:00
Nigel Tao 09ed091fe3 Rename skip / copy_n_etc to skip32 / copy_n32_etc 2020-01-16 22:07:44 +11:00
Nigel Tao 2be1f63806 Remove wuffs_base__frame_config__blend 2020-01-15 10:42:36 +11:00
Nigel Tao 1a791217de Add wuffs_base__pixel_blend type 2020-01-14 09:27:04 +11:00
Nigel Tao c8e3a94200 Add base.image_decoder 2020-01-12 12:18:02 +11:00
Nigel Tao adf63e23b0 Add base.io_transformer.workbuf_len 2020-01-12 09:44:41 +11:00
Nigel Tao e9fa8d3c28 Add base.io_transformer 2020-01-11 21:47:30 +11:00
Nigel Tao 2fff7c782f Unexport some lang/builtin GenericXxx constants 2020-01-11 10:57:17 +11:00
Nigel Tao a6ee0ee391 Remove builtin.ParseFuncs "generic" argument 2020-01-11 10:37:37 +11:00
Nigel Tao ea54c2ea11 Add syntax support for implementing interfaces 2020-01-09 15:45:29 +11:00
Nigel Tao 9e033579c8 Add interface method signatures 2020-01-06 21:59:30 +11:00
Nigel Tao 4c9be03baa Add interface struct declarations 2020-01-06 15:16:27 +11:00
Nigel Tao 4f53f3101f Make wuffs_base__pixel_format a struct 2020-01-05 14:18:48 +11:00
Nigel Tao 0fa32bd09f Rename warnings to notes 2020-01-05 13:15:00 +11:00
Nigel Tao 1520a1f345 Rename x T to x: T for fields and func args 2019-10-12 21:49:04 +11:00
Nigel Tao d501daddc3 Rename [i..j] to [i ..= j], the same as Rust 2019-10-12 18:40:53 +11:00
Nigel Tao 1c1ce9b19f Drop the unused ref and deref operators 2019-10-05 12:41:09 +10:00
Nigel Tao 2819fb8e3f Rename some built-in func's arg from x to a 2019-09-28 14:22:48 +10:00
Nigel Tao 392c8c544a Rename null_io_buffer etc to empty_io_buffer 2019-07-13 10:55:51 +10:00
Nigel Tao d7d2d9708e Remove some obsolete limit/mark I/O methods 2019-07-06 11:43:31 +10:00
Nigel Tao 9f7435c7b4 Add io_writer.history_available method
Also change copy_n_from_history to examine the buffer start instead of
the buffer mark.

name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         151MB/s ± 0%  134MB/s ± 1%  -11.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_1k_part_init/clang5         187MB/s ± 0%  162MB/s ± 1%  -13.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        241MB/s ± 0%  220MB/s ± 0%   -8.76%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        248MB/s ± 0%  225MB/s ± 0%   -9.12%  (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/clang5   288MB/s ± 0%  270MB/s ± 0%   -6.16%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/clang5  239MB/s ± 0%  225MB/s ± 0%   -5.84%  (p=0.000 n=10+10)

wuffs_deflate_decode_1k_full_init/gcc7           153MB/s ± 1%  151MB/s ± 1%   -1.13%  (p=0.000 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           187MB/s ± 1%  186MB/s ± 1%     ~     (p=0.052 n=10+10)
wuffs_deflate_decode_10k_full_init/gcc7          261MB/s ± 0%  256MB/s ± 1%   -1.83%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          269MB/s ± 1%  264MB/s ± 1%   -1.62%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     313MB/s ± 0%  310MB/s ± 1%   -0.69%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 0%  247MB/s ± 0%     ~     (p=0.089 n=10+10)
2019-07-06 11:26:05 +10:00
Nigel Tao ff1e3c9c48 Add mark/since/count_since methods
name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         149MB/s ± 0%  151MB/s ± 1%  +1.46%  (p=0.000 n=9+7)
wuffs_deflate_decode_1k_part_init/clang5         183MB/s ± 1%  188MB/s ± 2%  +2.40%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        236MB/s ± 0%  242MB/s ± 1%  +2.56%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        243MB/s ± 0%  249MB/s ± 0%  +2.36%  (p=0.000 n=9+9)
wuffs_deflate_decode_100k_just_one_read/clang5   279MB/s ± 0%  288MB/s ± 1%  +3.28%  (p=0.000 n=9+8)
wuffs_deflate_decode_100k_many_big_reads/clang5  232MB/s ± 0%  240MB/s ± 1%  +3.76%  (p=0.000 n=9+9)

wuffs_deflate_decode_1k_full_init/gcc7           152MB/s ± 1%  152MB/s ± 1%    ~     (p=0.661 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           188MB/s ± 0%  187MB/s ± 1%  -0.58%  (p=0.013 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7          260MB/s ± 0%  260MB/s ± 0%    ~     (p=0.393 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          268MB/s ± 0%  268MB/s ± 0%    ~     (p=0.971 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     312MB/s ± 1%  312MB/s ± 0%    ~     (p=0.720 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 1%  247MB/s ± 0%  -0.26%  (p=0.022 n=10+9)
2019-07-06 09:58:51 +10:00
Nigel Tao 4a85e39d87 Rename s/packed/interleaved/ for pixel formats 2019-06-16 11:44:29 +10:00
Nigel Tao 7e5332cadf Have swizzler.prepare return unsupported option 2019-06-08 22:27:55 +10:00
Nigel Tao abaab57cfd Remove image_config.background_color 2019-06-01 09:07:19 +10:00
Nigel Tao 5cdf3197bd Add frame_config.background_color 2019-05-26 16:54:37 +10:00
Nigel Tao 31a2bc918e Let GIF decode an opaque but non-black background 2019-05-21 08:53:35 +10:00
Nigel Tao 9cf5857283 Add some built-in statuses 2019-04-20 13:14:56 +10:00
Nigel Tao 7416111b9e Add FourCC constants 2019-04-20 11:44:49 +10:00
Nigel Tao f8d02cfb16 Change the warning message prefix from "~" to "@" 2019-03-02 14:42:50 +11:00
Nigel Tao 045f180a6c Rename errors from "?msg" to "#msg" 2019-02-23 17:06:24 +11:00
Nigel Tao 8b41881ba7 Rename gif's "too much pixel data" 2019-02-23 14:34:06 +11:00
Nigel Tao d7f434c6e4 Have the GIF decoder check for "not enough data"
Fixes #20
2019-02-23 14:29:16 +11:00
Nigel Tao 4f76d2f893 Rename some check_wuffs_version status messages 2019-02-09 14:56:27 +11:00
Nigel Tao c9830ceb9a Add a workbuf argument to decode_io_writer 2019-02-02 15:35:05 +11:00
Nigel Tao 65c2f4971f Rename some initialize methods to prepare or set 2019-01-26 15:46:42 +11:00