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
1aa501632f
Add gif.config_decoder (part 1 of 2)
...
This commit (part 1) adds script/preprocess-wuffs.go but running it is
deferred for part 2. Part 1 makes no change to the C code (release/c/**
and test/c/**).
2020-02-05 17:22:09 +11:00
Nigel Tao
097e59853d
Tweak cmd/wuffsfmt/main.go
2020-02-05 17:16:49 +11:00
Nigel Tao
b37e55f4a5
Increment coroID per-struct, not per-package
2020-02-05 17:15:09 +11:00
Nigel Tao
4ab2de9b95
Add wuffs_base__empty_{range,rect}_xx_uxx
2020-02-05 17:14:15 +11:00
Nigel Tao
fc48e65189
Factor out std/gif/common_consts.wuffs
2020-02-03 21:07:47 +11:00
Nigel Tao
f50e161677
Add image_config_decoder interface test
2020-02-02 20:18:10 +11:00
Nigel Tao
fd196177a2
Add "#unsupported method" error
2020-01-31 09:05:49 +11:00
Nigel Tao
7e4dc3bf12
Drop obsolete "foo.min(x:etc)" comment
2020-01-30 15:24:02 +11:00
Nigel Tao
a737a75dd3
Refactor wuffs_base__pixel_swizzler__prepare
2020-01-28 11:25:16 +11:00
Nigel Tao
db87fa6bd1
Changelog for WUFFS_BASE__PIXEL_BLEND__SRC_OVER
2020-01-28 10:57:05 +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
9373749b07
Have example/gifplayer use calloc
2020-01-26 11:54:42 +11:00
Nigel Tao
b781617159
Re-organize example/gifplayer global variables
2020-01-26 11:43:58 +11:00
Nigel Tao
a2d6483b3b
Remove example/gifplayer intermediate pixel buffer
2020-01-26 11:20:55 +11:00
Nigel Tao
071c97769a
Have gifplayer work with uint8_t* buffers
2020-01-26 10:56:01 +11:00
Nigel Tao
f0bf894ad7
Add /README.md table of contents to doc/README.md
2020-01-25 12:01:45 +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
d595980f75
Let imageviewer toggle background color
2020-01-24 12:00:20 +11:00
Nigel Tao
731350f8f9
Optimize imageviewer's XCB_EXPOSE handling
2020-01-24 11:36:44 +11:00
Nigel Tao
4a83eba3f9
Add WUFFS_BASE__PIXEL_BLEND__SRC_OVER
2020-01-24 11:32:13 +11:00
Nigel Tao
621bd9505d
Add script/draw-with-mask.go
2020-01-24 10:01:43 +11:00
Nigel Tao
c6e6dd7023
Add Chris Palmer to CONTRIBUTORS
...
"Google Inc." is already in AUTHORS.
2020-01-17 14:12:05 +11:00
Nigel Tao
894782b404
Merge pull request #25 from noncombatant/fix-typos
...
Fix some typos in the documentation.
2020-01-17 13:38:49 +11:00
Nigel Tao
f1f388e1ef
Merge branch 'master' into fix-typos
2020-01-17 13:38:12 +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
f5151fa1f9
Remove some obsolete basic tests
2020-01-16 21:21:58 +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
Nigel Tao
fdd0675f51
Avoid "-Werror=conversion" build failure
2020-01-16 15:37:52 +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
bec5d6fa5c
Implement wbmp.decoder.decode_frame_config
2020-01-16 14:18:24 +11:00
Nigel Tao
d9958e2524
Add wbmp.decoder base.image_decoder stubs
2020-01-16 14:01:35 +11:00
Nigel Tao
2ae4a8a21c
Add wbmp.decoder.ack_metadata_chunk
2020-01-16 13:45:10 +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
8f1fe43abf
Add example/imageviewer
2020-01-16 11:42:52 +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
8562951be6
Re-order "#ifdef __WORDSIZE" check
2020-01-13 21:06:22 +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
e9fa8d3c28
Add base.io_transformer
2020-01-11 21:47:30 +11:00
Nigel Tao
4b669a4181
Add dead weight to C++ sizeof values
2020-01-11 11:41:24 +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
e9897f6efb
Honor MaxImplements
2020-01-11 10:32:56 +11:00
Nigel Tao
d307fe3a42
Remove unused "#ifdef"-related cgen strings
2020-01-11 10:25:42 +11:00
Nigel Tao
bb1e6a5844
Remove unused check.Checker argument
2020-01-11 10:25:01 +11:00
Nigel Tao
6a90728bc9
Build fix for hand-written decode_huffman_fast
2020-01-11 10:21:25 +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
b8e69fa9e7
Fix "wuffs genlib" for wuffs_base__foo__func_ptrs
2020-01-10 14:43:25 +11:00
Nigel Tao
4fd9637e5a
Emit stricter vtable function-pointer type
2020-01-10 14:34:53 +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
ea47116edc
Implement vtables
2020-01-09 22:21:49 +11:00
Nigel Tao
ea54c2ea11
Add syntax support for implementing interfaces
2020-01-09 15:45:29 +11:00
Nigel Tao
8f5983f151
Tweak ast.Struct field numbering
2020-01-08 22:20:17 +11:00
Nigel Tao
eeae6098b6
Add "do ... while(0)" around CHECK_ETC test macros
2020-01-08 13:59:50 +11:00
Nigel Tao
4323a16707
Add interface method implementations
2020-01-06 23:24:08 +11:00
Nigel Tao
0c63d6e489
Rename writeFunctionSignature modes
2020-01-06 22:08:37 +11:00
Nigel Tao
9e033579c8
Add interface method signatures
2020-01-06 21:59:30 +11:00
Nigel Tao
989e7b1c2c
Delete C++ implicit constructor for wuffs types
2020-01-06 16:22:19 +11:00
Nigel Tao
4c9be03baa
Add interface struct declarations
2020-01-06 15:16:27 +11:00
Nigel Tao
5bf070b187
Add a wuffs_base__vtable type
2020-01-06 12:02:41 +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
c4b699a182
Add LICENSE crc32 sanity check to build-all.sh
2020-01-05 14:40:57 +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
fb54ba452f
Add wuffs_base__make_status
2020-01-02 20:44:23 +11:00
Nigel Tao
7d4a3a127d
Increase cgolz4 Writer buf len for older lz4 libs
2019-12-23 17:30:50 +11:00
Nigel Tao
6f7e9dfa26
Update /README.md
2019-12-21 19:58:24 +11:00
Nigel Tao
144a6165b9
Fix "phising" typo
2019-12-20 15:24:03 +11:00
Nigel Tao
fb600fe3ce
wuffs gen -version=0.2.0
2019-12-20 00:52:23 +11:00
Nigel Tao
b36c9f019f
Update doc/changelog.md for timezones
2019-12-20 00:51:56 +11:00
Nigel Tao
d8526b96ad
Update release/c/README.md for v0.2
2019-12-20 00:47:36 +11:00
Nigel Tao
35dfa68696
Update doc/changelog.md
2019-12-20 00:40:55 +11:00
Nigel Tao
6f175c4098
Restructure the top level README.md
2019-12-20 00:31:40 +11:00
Nigel Tao
06c3c3c615
Add various glossary entries
2019-12-19 23:22:38 +11:00