Nigel Tao
757a4bd68c
Add more test_strconv_parse_number_u64 test cases
2020-03-04 22:18:56 +11:00
Nigel Tao
6892095998
Have C programs handle flags consistently
2020-03-03 11:25:18 +11:00
Nigel Tao
43f0a87a6d
Test std/json emit pending strings on bad UTF-8
2020-03-02 13:59:46 +11:00
Nigel Tao
57b1dd69b3
Raise bench_wuffs_json_decode_217k_stringy iters
2020-02-29 10:48:09 +11:00
Nigel Tao
809220e6cc
Add wuffs_base__utf_8__next
2020-02-27 14:41:45 +11:00
Nigel Tao
8cd45054fa
Fix U+D800 typo in std/json test
2020-02-27 10:28:20 +11:00
Nigel Tao
193527bd2d
Add script/print-json-token-debug-format.c
2020-02-26 22:47:31 +11:00
Nigel Tao
550ef90114
Have std/json reject invalid UTF-8
2020-02-26 16:26:16 +11:00
Nigel Tao
3b17d5b28a
Have std/json reject some invalid UTF-8
2020-02-26 14:36:23 +11:00
Nigel Tao
1da8110462
Rename test/c test_cases loop variable
2020-02-26 10:25:30 +11:00
Nigel Tao
014b935d95
Add base.token_decoder interface
2020-02-26 10:19:49 +11:00
Nigel Tao
2914bae3b2
Re-format C function signatures
2020-02-26 09:40:30 +11:00
Nigel Tao
51b1258b61
Rename test/c throughput_counter enums
2020-02-25 22:46:49 +11:00
Nigel Tao
7d31462e63
Add std/json benches
2020-02-25 22:42:18 +11:00
Nigel Tao
6d698a3a47
Add wuffs_base__parse_number_i64
2020-02-25 13:07:22 +11:00
Nigel Tao
16b0c4652a
Have std/json decode Unicode surrogate pairs
2020-02-25 10:45:31 +11:00
Nigel Tao
7b199116b0
Rename s/got/have/ in test/c
2020-02-24 21:23:58 +11:00
Nigel Tao
ce50a39f85
Rename s/bad/fail/ in test/c
2020-02-24 14:30:43 +11:00
Nigel Tao
70db96ac6d
Add wuffs_base__parse_number_u64
2020-02-20 22:10:15 +11:00
Nigel Tao
ea91e5ab69
Have std/json decode '[' and '{'
2020-02-13 13:01:27 +11:00
Nigel Tao
36857984c7
Add wuffs_base__token methods
2020-02-12 13:51:58 +11:00
Nigel Tao
737e31ff3a
Add tokens
2020-02-11 12:02:58 +11:00
Nigel Tao
7a142168be
Add std/json
2020-02-11 10:05:53 +11:00
Nigel Tao
e6cc2fe8f0
Implement bmp.decoder.decode_frame
2020-02-07 16:27:04 +11:00
Nigel Tao
8378d9f3b4
Implement bmp.decoder.skip_frame
2020-02-06 13:45:41 +11:00
Nigel Tao
f69f849f11
Implement bmp.decoder.decode_image_config
2020-02-06 13:11:23 +11:00
Nigel Tao
0853a716bb
Add std/bmp
2020-02-06 12:16:12 +11:00
Nigel Tao
3fd6aca365
Change gif workbuf_len worst case from 1 to 0
2020-02-05 17:30:51 +11:00
Nigel Tao
555e8eaaa3
Add gif.config_decoder (part 2 of 2)
...
This runs script/preprocess-wuffs.go as foreshadowed by the previous
commit 1aa50163 "Add gif.config_decoder (part 1 of 2)".
The new gif.config_decoder type is largely a copy/paste (with minor
edits) of the existing decoder type, but it can decode GIF animation
metadata (e.g. frame timings) without the memory requirements of a
complete GIF decoder (which can also decode pixels). As of this commit,
sizeof(config_decoder) and sizeof(decoder) is 1320 and 65024, a
difference of over 62 KiB.
The trade-off is that binary size increased by around 1.5x or 18K for
the GIF package. Future refactorings might be able to claw that back,
but it might not.
"wuffs genlib; ls -l gen/lib/c/*/*gif* | awk etc" output:
Before:
25904 gen/lib/c/clang-5.0-dynamic/wuffs-std-gif.lo
26424 gen/lib/c/clang-5.0-static/wuffs-std-gif.o
30480 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
30064 gen/lib/c/gcc-static/wuffs-std-gif.o
After:
41168 gen/lib/c/clang-5.0-dynamic/wuffs-std-gif.lo
42328 gen/lib/c/clang-5.0-static/wuffs-std-gif.o
49040 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
48304 gen/lib/c/gcc-static/wuffs-std-gif.o
2020-02-05 17:25:39 +11:00
Nigel Tao
f50e161677
Add image_config_decoder interface test
2020-02-02 20:18:10 +11:00
Nigel Tao
0e833f909a
Add WUFFS_BASE__PIXEL_FORMAT__BGR_565
2020-01-28 10:32:40 +11:00
Nigel Tao
1dcb5a9283
Add wbmp.decoder.skip_frame
2020-01-16 21:46:18 +11:00
Nigel Tao
f5151fa1f9
Remove some obsolete basic tests
2020-01-16 21:21:58 +11:00
Nigel Tao
e2e51786a0
Add more test/data/*.wbmp files
2020-01-16 15:22:01 +11:00
Nigel Tao
4feb641841
Implement wbmp.decoder.decode_frame
2020-01-16 15:02:32 +11:00
Nigel Tao
b4ff1bfb7f
Add std/wbmp package
2020-01-16 13:06:00 +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
e77c5d7001
Have hasher_u32 test take a filename arg
2020-01-12 11:38:18 +11:00
Nigel Tao
92a5bfd7ec
Have various structs implement base.io_transformer
2020-01-11 22:25:31 +11:00
Nigel Tao
5f8d2da74f
Rename decode_io_writer methods to transform_io
2020-01-11 10:19:25 +11:00
Nigel Tao
72fcc2d94f
Add upcast methods
2020-01-10 14:04:07 +11:00
Nigel Tao
9e802a5f84
Have wuffs_base__pixel_config__set take repr args
2020-01-05 15:34:05 +11:00
Nigel Tao
b666ab06f7
Make wuffs_base__pixel_subsampling a struct
2020-01-05 15:27:11 +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
0319777cce
Have tests print all of status.repr
2020-01-05 12:56:48 +11:00
Nigel Tao
7f1572ca16
Add CHECK_STATUS testlib macro
2020-01-05 12:50:56 +11:00
Nigel Tao
77a5311c4b
Add CHECK_STRING testlib macro
2020-01-05 11:19:22 +11:00
Nigel Tao
e6db7f6a40
Make wuffs_base__status a struct
2020-01-05 10:48:20 +11:00