Nigel Tao
a4195136bb
Remove unnecessary etc__io_buffer__struct C name
2019-07-21 16:37:06 +10:00
Nigel Tao
6886500d71
Remove deprecated io_buffer reader/writer methods
2019-07-21 16:35:22 +10:00
Nigel Tao
392c8c544a
Rename null_io_buffer etc to empty_io_buffer
2019-07-13 10:55:51 +10:00
Nigel Tao
e477175fd2
Remove wuffs_base__global__null_io_buffer
2019-07-13 10:47:20 +10:00
Nigel Tao
3037f1e389
Fix empty initializer, which is not C99
2019-07-07 18:02:57 +10:00
Nigel Tao
4f489d66ce
Have null_io_writer mean /dev/null not nullptr
2019-07-07 17:37:23 +10:00
Nigel Tao
fcec430152
Unexport wuffs_base__null_io_{reader,writer}
2019-07-07 17:31:51 +10:00
Nigel Tao
5653fb0409
Simplify wuffs_base__io_{reader,writer}__set
2019-07-07 17:19:23 +10:00
Nigel Tao
daeec2bc1e
Have io_{reader,writer}.mark use io0_etc
2019-07-07 16:55:25 +10:00
Nigel Tao
cc9fb5224a
Rename the generated C's io0_etc to io1_etc
2019-07-06 21:45:55 +10:00
Nigel Tao
7c6a88882e
Rename the generated C's io1_etc to io2_etc
2019-07-06 21:42:53 +10:00
Nigel Tao
aa846d2dd7
Remove io_{reader,writer} C types
2019-07-06 17:23:34 +10:00
Nigel Tao
f34d189236
Collapse trivial io_{reader,writer} buffer field
2019-07-06 16:47:47 +10:00
Nigel Tao
931b8e37f9
Remove unused limit/mark I/O fields
...
name old speed new speed delta
wuffs_deflate_decode_1k_full_init/clang5 146MB/s ± 0% 149MB/s ± 1% +2.33% (p=0.000 n=9+10)
wuffs_deflate_decode_1k_part_init/clang5 180MB/s ± 0% 183MB/s ± 0% +1.46% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5 229MB/s ± 0% 244MB/s ± 0% +6.53% (p=0.000 n=9+10)
wuffs_deflate_decode_10k_part_init/clang5 236MB/s ± 1% 251MB/s ± 0% +6.38% (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/clang5 266MB/s ± 0% 278MB/s ± 1% +4.75% (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/clang5 224MB/s ± 0% 238MB/s ± 0% +6.03% (p=0.000 n=10+10)
wuffs_deflate_decode_1k_full_init/gcc7 151MB/s ± 2% 151MB/s ± 0% ~ (p=0.965 n=10+8)
wuffs_deflate_decode_1k_part_init/gcc7 187MB/s ± 1% 188MB/s ± 0% +0.57% (p=0.001 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7 261MB/s ± 1% 259MB/s ± 1% -0.91% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7 269MB/s ± 0% 268MB/s ± 0% -0.65% (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/gcc7 314MB/s ± 0% 312MB/s ± 0% -0.49% (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7 249MB/s ± 0% 247MB/s ± 0% -1.08% (p=0.000 n=10+10)
2019-07-06 12:07:53 +10:00
Nigel Tao
15bd5aa63c
Remove unused I/O is_valid methods
2019-07-06 11:58:30 +10:00
Nigel Tao
d7d2d9708e
Remove some obsolete limit/mark I/O methods
2019-07-06 11:43:31 +10:00
Nigel Tao
ff1e3c9c48
Add mark/since/count_since methods
...
name old speed new speed delta
wuffs_deflate_decode_1k_full_init/clang5 149MB/s ± 0% 151MB/s ± 1% +1.46% (p=0.000 n=9+7)
wuffs_deflate_decode_1k_part_init/clang5 183MB/s ± 1% 188MB/s ± 2% +2.40% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5 236MB/s ± 0% 242MB/s ± 1% +2.56% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5 243MB/s ± 0% 249MB/s ± 0% +2.36% (p=0.000 n=9+9)
wuffs_deflate_decode_100k_just_one_read/clang5 279MB/s ± 0% 288MB/s ± 1% +3.28% (p=0.000 n=9+8)
wuffs_deflate_decode_100k_many_big_reads/clang5 232MB/s ± 0% 240MB/s ± 1% +3.76% (p=0.000 n=9+9)
wuffs_deflate_decode_1k_full_init/gcc7 152MB/s ± 1% 152MB/s ± 1% ~ (p=0.661 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7 188MB/s ± 0% 187MB/s ± 1% -0.58% (p=0.013 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7 260MB/s ± 0% 260MB/s ± 0% ~ (p=0.393 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7 268MB/s ± 0% 268MB/s ± 0% ~ (p=0.971 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7 312MB/s ± 1% 312MB/s ± 0% ~ (p=0.720 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/gcc7 247MB/s ± 1% 247MB/s ± 0% -0.26% (p=0.022 n=10+9)
2019-07-06 09:58:51 +10:00
Nigel Tao
9f76003177
Add doc/note/io-input-output.md
2019-07-01 14:22:57 +10:00
Nigel Tao
4a85e39d87
Rename s/packed/interleaved/ for pixel formats
2019-06-16 11:44:29 +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
abaab57cfd
Remove image_config.background_color
2019-06-01 09:07:19 +10:00
Nigel Tao
5cdf3197bd
Add frame_config.background_color
2019-05-26 16:54:37 +10:00
Nigel Tao
31a2bc918e
Let GIF decode an opaque but non-black background
2019-05-21 08:53:35 +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
3ff7c707af
Have some base types' methods accept const this
2019-04-20 07:50:09 +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
5a98f06cab
Add some make_foo and null_foo constructors
2019-03-09 14:50:32 +11:00
Nigel Tao
6826f2f748
Move internal/cgen up a couple of directories
2019-03-09 13:28:59 +11:00