Nigel Tao
7acb35f05d
Have std/json decode fractions and exponents
2020-02-20 11:41:39 +11:00
Nigel Tao
9d35cf00ac
Tweak std/json's decode_tokens return values
2020-02-20 09:53:26 +11:00
Nigel Tao
21c87ce6b3
Skip writeSaveDerivedVar if func ends with return
2020-02-19 21:10:19 +11:00
Nigel Tao
6a7a4d08e3
Save derived vars for returns in non-coroutines
2020-02-19 14:31:42 +11:00
Nigel Tao
67306567f9
Have std/json look at args.src.is_closed()
2020-02-19 14:04:49 +11:00
Nigel Tao
8850d38403
Have std/json decode numbers
2020-02-19 12:25:00 +11:00
Nigel Tao
27036043ae
Have std/json reject control characters in strings
2020-02-18 21:26:34 +11:00
Nigel Tao
0711f23fed
Fix missing yield inside std/json string decoder
2020-02-17 13:17:06 +11:00
Nigel Tao
af666564bb
Fix std/json stack bit mask
2020-02-17 12:58:43 +11:00
Nigel Tao
58a4aba4d4
Have std/json pops show parent container type
2020-02-16 22:19:12 +11:00
Nigel Tao
293e9a8928
Have std/json decode ']' and '}'
2020-02-16 22:19:12 +11:00
Nigel Tao
40778f0665
Have std/json decode ',' and ':'
2020-02-16 22:19:12 +11:00
Nigel Tao
91454e911e
Have std/json decode '"'
2020-02-16 22:19:12 +11:00
Nigel Tao
ea91e5ab69
Have std/json decode '[' and '{'
2020-02-13 13:01:27 +11:00
Nigel Tao
e9aba8924a
Add token_writer.write_fast_token
2020-02-12 21:45:06 +11:00
Nigel Tao
36857984c7
Add wuffs_base__token methods
2020-02-12 13:51:58 +11:00
Nigel Tao
8e7efa67b9
Have write_{u8,token} save args across suspension
2020-02-11 14:46:03 +11:00
Nigel Tao
4c7c296015
Strengthen liveness analysis around CSPs
2020-02-11 14:26:12 +11:00
Nigel Tao
2f2ccdb696
Add token_writer.write_token
2020-02-11 13:31:13 +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
f6f2ac4206
Have std/bmp support 32 bits per pixel color
2020-02-09 16:11:54 +11:00
Nigel Tao
05b790d088
Refine pixel_format.bits_per_pixel return type
2020-02-08 18:27:38 +11:00
Nigel Tao
8d29cb15ce
Re-order some image-impl.c multiplies
2020-02-08 09:11:23 +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
096b7146f0
Have wbmp decoder check for "#bad restart"
2020-02-06 11:49:25 +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
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
a737a75dd3
Refactor wuffs_base__pixel_swizzler__prepare
2020-01-28 11:25:16 +11:00
Nigel Tao
67b8c79ce8
Fix "-Werror=conversion" build failure re BGR_565
2020-01-28 10:52:45 +11:00
Nigel Tao
7527103ec4
Clean up image-impl.c's loop_unroll_count
2020-01-28 10:49:48 +11:00
Nigel Tao
55aedb34f9
Simplify gif.decoder.copy_to_image_buffer bpp calc
2020-01-28 10:37:05 +11:00
Nigel Tao
0e833f909a
Add WUFFS_BASE__PIXEL_FORMAT__BGR_565
2020-01-28 10:32:40 +11:00
Nigel Tao
3a0b3104b0
Add wuffs_base__pixel_buffer__set_color_u32_at
2020-01-25 09:42:26 +11:00
Nigel Tao
557c2b7998
Add wuffs_base__pixel_buffer__color_u32_at
2020-01-24 21:39:19 +11:00
Nigel Tao
47ce6ea296
Add wuffs_base__pixel_swizzler__func typedef
2020-01-24 12:20:06 +11:00
Nigel Tao
86a2a62313
Add "#unsupported pixel swizzler option" error
2020-01-24 12:01:51 +11:00
Nigel Tao
4a83eba3f9
Add WUFFS_BASE__PIXEL_BLEND__SRC_OVER
2020-01-24 11:32:13 +11:00
Nigel Tao
149204c14e
Remove wbmp seen_etc fields
2020-01-16 22:18:29 +11:00
Nigel Tao
0d0a74c9a8
Fix wbmp.decoder.skip_frame final call sequence
2020-01-16 22:16:04 +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
1dcb5a9283
Add wbmp.decoder.skip_frame
2020-01-16 21:46:18 +11:00
Nigel Tao
47b9dcd118
Have wbmp's restart_frame check call_sequence
2020-01-16 21:15:53 +11:00
Nigel Tao
67dbeb1d09
Rename wuffs_base__pixel_swizzler__copy_etc
2020-01-16 15:52:15 +11:00