Commit Graph
424 Commits
Author SHA1 Message Date
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
Nigel Tao e77c5d7001 Have hasher_u32 test take a filename arg 2020-01-12 11:38:18 +11:00
Nigel Tao adf63e23b0 Add base.io_transformer.workbuf_len 2020-01-12 09:44:41 +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 ab0b2fd2aa Add test/data/github-tags.json
wget -O github-tags.json https://api.github.com/repos/google/wuffs/tags
2020-01-10 16:29:23 +11:00
Nigel Tao fd5c0143ab Fix testlib -Werror=pedantic failures 2020-01-10 14:14:23 +11:00
Nigel Tao 72fcc2d94f Add upcast methods 2020-01-10 14:04:07 +11:00
Nigel Tao eeae6098b6 Add "do ... while(0)" around CHECK_ETC test macros 2020-01-08 13:59:50 +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 fabfff05d1 Have pixel_foo methods take pointer receivers 2020-01-05 13:33:52 +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
Nigel Tao c50f16e58b Separate status and status_msg local variables 2020-01-04 11:57:33 +11:00
Nigel Tao 8ff9cdb9a6 Rename hasher update_u32 method 2019-11-20 21:07:22 +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