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
f928944d64
Add test/data/rfc-6901-json-pointer.json
2020-03-02 14:46:38 +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
85fba7f82b
Tweak wuffs_base__token bitmask assignments again
2020-02-29 16:28:06 +11:00
Nigel Tao
57b1dd69b3
Raise bench_wuffs_json_decode_217k_stringy iters
2020-02-29 10:48:09 +11:00
Nigel Tao
d1c928a1ed
Have tokens include explicit link bits
2020-02-29 10:46:44 +11:00
Nigel Tao
809220e6cc
Add wuffs_base__utf_8__next
2020-02-27 14:41:45 +11:00
Nigel Tao
1ad5cfac4d
Make wuffs_base__{load,store}_uNNxe public
2020-02-27 10:58:14 +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
f31819bed4
Remove testlib's "#ifdef WUFFS_INCLUDE_GUARD"
2020-02-26 10:20:45 +11:00
Nigel Tao
014b935d95
Add base.token_decoder interface
2020-02-26 10:19:49 +11:00
Nigel Tao
31e5365a26
Rename testlib's BUFFER_SIZE constant
2020-02-26 09:45:05 +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
a540fbce4e
Add test/data/file-sizes.json
2020-02-25 16:05:38 +11:00
Nigel Tao
29aadc6ff5
Add more test/data/*.json files
...
Original URLs:
australian-abc-local-stations.json
http://data.gov.au/geoserver/abc-local-stations/wfs?request=GetFeature&typeName=ckan_d534c0e9_a9bf_487b_ac8f_b7877a09d162&outputFormat=json
nobel-prizes.json
http://api.nobelprize.org/v1/prize.json
2020-02-25 13:19:39 +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
4503f2de63
Add test/data/json-things.*.json
2020-02-21 21:33:46 +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
557c2b7998
Add wuffs_base__pixel_buffer__color_u32_at
2020-01-24 21:39:19 +11:00
Nigel Tao
621bd9505d
Add script/draw-with-mask.go
2020-01-24 10:01:43 +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
3128500e20
Add script/convert-png-to-wbmp.go
2020-01-16 12:32:38 +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