Nigel Tao
904caee2b6
wuffs gen -version=0.2.0-alpha.43
2019-06-16 12:07:54 +10:00
Nigel Tao
4a85e39d87
Rename s/packed/interleaved/ for pixel formats
2019-06-16 11:44:29 +10:00
Nigel Tao
d3c33aa232
Add cmd/ractool and lib/raczlib
2019-06-16 11:36:29 +10:00
Nigel Tao
fe3460332d
wuffs gen -version=0.2.0-alpha.42
2019-06-09 10:34:45 +10:00
Nigel Tao
6159143f01
Add wuffs_base__pixel_buffer__set_from_table
2019-06-09 10:30:18 +10:00
Nigel Tao
07ba8a28ca
Have pixbuf.set_etc return unsupported option
2019-06-09 08:46:07 +10:00
Nigel Tao
1055b8ce0d
Remove obsolete TODO re swizzler.prepare
2019-06-09 08:43:46 +10:00
Nigel Tao
0b1f43834f
Let GIF decode BGR/RGB, not just BGRA/RGBA
2019-06-09 08:42:13 +10:00
Nigel Tao
7e5332cadf
Have swizzler.prepare return unsupported option
2019-06-08 22:27:55 +10:00
Nigel Tao
8b54e09345
Downgrade go.mod's go version from 1.13 to 1.12
2019-06-08 16:39:38 +10:00
Nigel Tao
afdf28ed71
wuffs gen -version=0.2.0-alpha.41
2019-06-02 08:34:48 +10:00
Nigel Tao
abaab57cfd
Remove image_config.background_color
2019-06-01 09:07:19 +10:00
Nigel Tao
ba3db0d7e5
Have test/c/std/gif use frame background colors
2019-06-01 09:06:02 +10:00
Nigel Tao
1e4f86cfa0
Have example/gifplayer use frame background colors
2019-06-01 09:01:44 +10:00
Nigel Tao
cf26b93f2f
Re-assign GIF quirk numbers
2019-06-01 08:40:07 +10:00
Nigel Tao
fd72372312
Add wuffs_gif__quirk_first_frame_local_palette_etc
2019-06-01 08:38:30 +10:00
Nigel Tao
e5e1f43f72
wuffs gen -version=0.2.0-alpha.40
2019-05-26 17:47:13 +10:00
Nigel Tao
929d36d877
Update example/gifplayer for quirk rename
2019-05-26 17:46:45 +10:00
Nigel Tao
bb07118422
Re-assign GIF quirk numbers
2019-05-26 17:45:06 +10:00
Nigel Tao
73fcd7e502
Rename wuffs_gif__quirk_background_is_opaque
2019-05-26 17:43:58 +10:00
Nigel Tao
5cdf3197bd
Add frame_config.background_color
2019-05-26 16:54:37 +10:00
Nigel Tao
08dd41aa93
Tweak wuffs_gif__quirk_reject_empty_frame
2019-05-26 16:25:01 +10:00
Nigel Tao
d41430c4f5
Allow an LZW literal width of 0
2019-05-26 15:52:07 +10:00
Nigel Tao
af4e327a8f
Have set_quirk_enabled check call_sequence == 0
2019-05-26 15:08:45 +10:00
Nigel Tao
143b19c564
Add wuffs_gif__quirk_reject_empty_frame
2019-05-26 13:12:22 +10:00
Nigel Tao
6700c721c7
Add graphicControl disposal to make-artificial
2019-05-26 09:41:55 +10:00
Nigel Tao
fc9c2916f5
Add more commentary about quirks
2019-05-26 09:27:17 +10:00
Nigel Tao
ded9ffb0c0
Add wuffs_gif__quirk_delay_num_decoded_frames
2019-05-26 09:01:20 +10:00
Nigel Tao
5780b406dc
Fix ignore_too_much_pixel_data infinite loop
2019-05-25 12:31:43 +10:00
Nigel Tao
74a591ab2b
Reject bad LZW widths when skipping GIF frames
2019-05-25 10:56:46 +10:00
Nigel Tao
155e2ff426
Have flatecut emit Stored blocks if shorter
2019-05-25 10:52:22 +10:00
Nigel Tao
0cc17985db
Let flatecut accept a degenerate Huffman tree
2019-05-21 11:08:39 +10:00
Nigel Tao
52261e7528
Fix rac.MaxSize comment typo
2019-05-21 08:53:35 +10:00
Nigel Tao
31a2bc918e
Let GIF decode an opaque but non-black background
2019-05-21 08:53:35 +10:00
Nigel Tao
8ce8835deb
wuffs gen -version=0.2.0-alpha.39
2019-05-12 22:07:55 +10:00
Nigel Tao
b1ff27fded
Decode multiple graphic controls in a GIF
2019-05-12 22:02:39 +10:00
Nigel Tao
5bea867f72
Allow an LZW literal width of 1
2019-05-12 21:32:30 +10:00
Nigel Tao
d1133b105e
Add gif-multiple-loop-counts comments
2019-05-11 09:58:23 +10:00
Nigel Tao
bea6378a8a
wuffs gen -version=0.2.0-alpha.38
2019-05-04 14:17:05 +10:00
Nigel Tao
24a2f12c30
Add wuffs_gif__quirk_ignore_too_much_pixel_data
2019-05-04 14:04:28 +10:00
Nigel Tao
a1f777b16e
Clean up std/gif which_palette variable
2019-05-04 13:54:39 +10:00
Nigel Tao
746681ea68
Add wuffs_gif__quirk_reject_empty_palette
2019-05-04 13:49:22 +10:00
Nigel Tao
1311445408
Add wuffs_gif__quirk_initial_background_is_opaque
2019-05-04 12:35:37 +10:00
Nigel Tao
941cecca8c
Add wuffs_gif__quirk_image_bounds_are_strict
2019-05-04 12:19:52 +10:00
Nigel Tao
ed8741b384
Prepare to add gif quirks
2019-05-04 11:58:18 +10:00
Nigel Tao
5cfb01a69b
Fix rac.Writer with more than 510 leaf nodes
2019-04-28 19:49:06 +10:00
Nigel Tao
a1a5b40178
Simplify std/gif decoding re warnings
2019-04-21 21:49:20 +10:00
Nigel Tao
28e4981d10
Don't suspend coroutines for warnings
2019-04-21 21:43:33 +10:00
Nigel Tao
764179a2a0
wuffs gen -version=0.2.0-alpha.37
2019-04-20 16:52:19 +10:00
Nigel Tao
842500d51c
Report ICCP metadata
2019-04-20 16:48:18 +10:00
Nigel Tao
21f2890217
Report image metadata such as ICCP and XMP
2019-04-20 16:33:11 +10:00
Nigel Tao
abaaee3cac
Re-number gif call-sequence values
2019-04-20 13:18:28 +10:00
Nigel Tao
9cf5857283
Add some built-in statuses
2019-04-20 13:14:56 +10:00
Nigel Tao
7416111b9e
Add FourCC constants
2019-04-20 11:44:49 +10:00
Nigel Tao
31c6eabfe8
Add io_buffer {reader,writer}_available methods
2019-04-20 11:16:26 +10:00
Nigel Tao
a79eb83f65
Have flatecut.Cut take an optional io.Writer arg
2019-04-20 10:35:58 +10:00
Nigel Tao
b54f3b4df3
Have flatecut use a 64-bit bit buffer, not 32
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 919µs ± 0% 867µs ± 0% -5.70% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.34ms ± 1% 2.28ms ± 0% -2.46% (p=0.008 n=5+5)
2019-04-20 09:59:52 +10:00
Nigel Tao
fe3767ad6c
Have flatecut's huffman.decode load more bits
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.03ms ± 0% 0.92ms ± 0% -10.44% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.44ms ± 0% 2.34ms ± 1% -4.19% (p=0.008 n=5+5)
2019-04-20 09:47:05 +10:00
Nigel Tao
4250c3a7af
Tweak flatecut's huffman.decode
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.05ms ± 0% 1.03ms ± 0% -2.32% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.48ms ± 0% 2.44ms ± 0% -1.44% (p=0.008 n=5+5)
2019-04-20 09:39:17 +10:00
Nigel Tao
89d7aa7261
Don't rewind flatecut's bitstream so often
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.27ms ± 0% 1.05ms ± 0% -17.52% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.72ms ± 1% 2.48ms ± 0% -9.06% (p=0.008 n=5+5)
2019-04-20 09:25:19 +10:00
Nigel Tao
76a63e751e
Add a look-up table to flatecut
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.50ms ± 1% 1.27ms ± 0% -14.96% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.94ms ± 0% 2.72ms ± 1% -7.39% (p=0.008 n=5+5)
2019-04-20 08:38:34 +10:00
Nigel Tao
185b7da6c6
Add a test for flatecut's Huffman decoder
2019-04-20 08:34:26 +10:00
Nigel Tao
3ff7c707af
Have some base types' methods accept const this
2019-04-20 07:50:09 +10:00
Nigel Tao
abd58b4414
Fix rac.Writer with a multi-level index
2019-04-13 08:47:04 +10:00
Nigel Tao
f58ffbc927
wuffs gen -version=0.2.0-alpha.36
2019-04-07 16:35:47 +10:00
Nigel Tao
6b9f658c59
Add some more compiler warning flags
2019-04-07 16:34:10 +10:00
Nigel Tao
d8b5128c09
Compile cleanly with clang++
2019-04-07 16:16:14 +10:00
Nigel Tao
3c86337cac
Fix some more -Wconversion warnings
2019-04-07 16:04:30 +10:00
Nigel Tao
665355bd8a
Fix some -Wconversion warnings
2019-04-07 14:55:32 +10:00
Nigel Tao
ed52fdecb9
Rework how we avoid clang's -Wunused-function
...
The previous technique to avoid this was to have explicit
(void)(wuffs_foo__bar_baz);
no-op lines of code. However, on MSVC, this triggers warning C4551
"function call missing argument list".
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4551
says that "A function call must include the open and close parentheses".
But this is not a function call, it is casting the function pointer.
This false positive is a bug in MSVC, but we work around it for Wuffs.
2019-04-07 14:36:09 +10:00
Nigel Tao
0e3d691048
Add rac.Writer code path for empty input
2019-04-07 13:24:42 +10:00
Nigel Tao
7e26fe8086
Rename some "cOffset" variables
2019-04-07 13:00:18 +10:00
Nigel Tao
7be27661b9
Add a rac.Writer.CPageSize field
2019-04-07 12:53:39 +10:00
Nigel Tao
369d854a34
Have rac.Writer check for too much input
2019-04-07 10:54:18 +10:00
Nigel Tao
ad8b1540c3
Add CLen fields to the RAC file format
2019-04-07 10:09:51 +10:00
Nigel Tao
8cefc932c3
Add RAC examples
2019-04-07 10:09:51 +10:00
Nigel Tao
16df03f9dc
Add a lib/rac package
2019-04-07 10:09:50 +10:00
Nigel Tao
b244e4baa0
Add a Go module file (go.mod)
2019-04-07 10:09:50 +10:00
Nigel Tao
f59e16e337
Add a lib/zlibcut package
2019-04-06 10:16:43 +11:00
Nigel Tao
49ab667a4d
Add comment separating the copyright notice
2019-03-16 14:04:14 +11:00
Nigel Tao
02dc564596
Eliminate a branch in std/deflate decoding
...
name old speed new speed delta
wuffs_deflate_decode_1k_full_init/clang5 139MB/s ± 1% 151MB/s ± 1% +9.19% (p=0.000 n=28+30)
wuffs_deflate_decode_1k_part_init/clang5 169MB/s ± 1% 187MB/s ± 1% +11.15% (p=0.000 n=28+28)
wuffs_deflate_decode_10k_full_init/clang5 200MB/s ± 0% 242MB/s ± 1% +20.99% (p=0.000 n=28+28)
wuffs_deflate_decode_10k_part_init/clang5 205MB/s ± 1% 249MB/s ± 1% +21.51% (p=0.000 n=29+29)
wuffs_deflate_decode_100k_just_one_read/clang5 255MB/s ± 1% 280MB/s ± 1% +9.86% (p=0.000 n=29+30)
wuffs_deflate_decode_100k_many_big_reads/clang5 218MB/s ± 0% 241MB/s ± 1% +10.58% (p=0.000 n=27+24)
wuffs_deflate_decode_1k_full_init/gcc7 155MB/s ± 1% 155MB/s ± 2% ~ (p=0.521 n=28+29)
wuffs_deflate_decode_1k_part_init/gcc7 190MB/s ± 1% 191MB/s ± 1% +0.51% (p=0.000 n=27+28)
wuffs_deflate_decode_10k_full_init/gcc7 265MB/s ± 1% 266MB/s ± 1% +0.54% (p=0.000 n=29+30)
wuffs_deflate_decode_10k_part_init/gcc7 272MB/s ± 1% 274MB/s ± 1% +0.73% (p=0.000 n=29+30)
wuffs_deflate_decode_100k_just_one_read/gcc7 317MB/s ± 0% 318MB/s ± 0% +0.58% (p=0.000 n=28+28)
wuffs_deflate_decode_100k_many_big_reads/gcc7 252MB/s ± 1% 253MB/s ± 0% +0.64% (p=0.000 n=29+27)
2019-03-16 14:02:15 +11:00
Nigel Tao
e0936e55be
Update the RAC spec's Related Work section
2019-03-16 09:19:58 +11:00
Nigel Tao
584a36309a
Have RAC CRange's go up to COffMax
2019-03-16 09:16:22 +11:00
Nigel Tao
0e18c1566b
Have that the RAC+Zlib Leaf TTag must be 0xFF
2019-03-16 09:14:47 +11:00
Nigel Tao
ae6e8db4ad
wuffs gen -version=0.2.0-alpha.35
2019-03-09 14:51:46 +11:00
Nigel Tao
5a98f06cab
Add some make_foo and null_foo constructors
2019-03-09 14:50:32 +11:00
Nigel Tao
32dd9fa647
wuffs gen -version=0.2.0-alpha.34
2019-03-09 13:45:32 +11:00
Nigel Tao
6826f2f748
Move internal/cgen up a couple of directories
2019-03-09 13:28:59 +11:00
Nigel Tao
9980a6fef4
Add a Random Access Compression (RAC) spec
2019-03-09 13:23:46 +11:00
Nigel Tao
3680b2a11b
Move NIE spec to a new doc/spec directory
2019-03-09 12:39:40 +11:00
Nigel Tao
a7e2fc86d2
Add commentary about the Adler-32 algorithm
2019-03-09 11:20:30 +11:00
Nigel Tao
489284dfda
Remove the deprecated foo__check_wuffs_version
2019-03-09 11:11:41 +11:00
Nigel Tao
19086f1c11
Have example/library check !WUFFS_IMPLEMENTATION
2019-03-09 11:08:35 +11:00
Nigel Tao
7e384e079e
Take some unistd.h dependencies out of examples
2019-03-09 11:06:26 +11:00
Nigel Tao
c4b8a6a4cc
Don't use designated initializers
...
Some C/C++ compilers, such as MSVC, don't always support them. They're
also not supported by GCC's "g++ -std=c++11 -Wpedantic".
2019-03-09 10:08:00 +11:00
Nigel Tao
ef7aa0d980
Rename "!=" to "<>"; "!" now only shows impurity
2019-03-02 14:51:32 +11:00
Nigel Tao
f8d02cfb16
Change the warning message prefix from "~" to "@"
2019-03-02 14:42:50 +11:00
Nigel Tao
fbd1ae8391
Disable -Wmaybe-uninitialized for GCC
2019-02-24 17:22:14 +11:00
Nigel Tao
ffeb2bff63
Split benchmarks for full / partial initialization
2019-02-24 16:54:19 +11:00
Nigel Tao
2276be64e9
wuffs gen -version=0.2.0-alpha.33
2019-02-24 11:49:54 +11:00