Nigel Tao
0fa32bd09f
Rename warnings to notes
2020-01-05 13:15:00 +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
355a95eeea
Add wuffs_base__status__message
2019-12-15 13:31:17 +11:00
Nigel Tao
8ff9cdb9a6
Rename hasher update_u32 method
2019-11-20 21:07:22 +11:00
Nigel Tao
9557d89c56
Add example/gifplayer/README.md
2019-11-07 15:33:50 +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
Nigel Tao
050bca9120
Have example/gifplayer show partial results
2019-09-14 08:33:07 +10:00
Nigel Tao
aa846d2dd7
Remove io_{reader,writer} C types
2019-07-06 17:23:34 +10:00
Nigel Tao
1e4f86cfa0
Have example/gifplayer use frame background colors
2019-06-01 09:01:44 +10:00
Nigel Tao
929d36d877
Update example/gifplayer for quirk rename
2019-05-26 17:46:45 +10:00
Nigel Tao
31a2bc918e
Let GIF decode an opaque but non-black background
2019-05-21 08:53:35 +10: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
c5538078e4
Add comment to example/library's compressed input
2019-02-16 14:47:29 +11:00
Nigel Tao
04ca24973a
Have example/zcat handle WORK_BUFFER_SIZE == 0
2019-02-16 14:46:42 +11:00
Nigel Tao
53760ce0fd
Call initialize instead of check_wuffs_version
2019-02-16 14:18:25 +11:00
Nigel Tao
fc4abafbe7
Rename decoder_max_incl_workbuf_len constants
2019-02-03 15:44:25 +11:00
Nigel Tao
de5b64a846
Rename max_incl_workbuf_len constants
2019-02-02 16:29:54 +11:00
Nigel Tao
5f7c807729
Generate macros for public scalar consts
2019-02-02 16:17:10 +11:00
Nigel Tao
e45baffd51
Trim example/library's buffer size
2019-02-02 15:56:39 +11:00
Nigel Tao
c9830ceb9a
Add a workbuf argument to decode_io_writer
2019-02-02 15:35:05 +11:00
Nigel Tao
670b45be53
Add some "horizontal rule" comment lines
2019-02-02 08:10:08 +11:00
Nigel Tao
278200f560
Fix example for initialize method name change
2019-01-26 16:59:01 +11:00
Nigel Tao
a27b24099e
Raise example/zcat's buffer size from 16K to 128K
...
This matches the 128K buffer size (ZSTD_DStreamOutSize returns
ZSTD_BLOCKSIZE_MAX, defined to be 1<<17 in
https://github.com/facebook/zstd/blob/dev/lib/zstd.h ) as shipped as
/usr/bin/zstdcat on Debian.
Decoding a 156 MiB gzipped file:
$ /usr/bin/time ./gen/bin/example-zcat < linux-4.20.4.tar.gz > /dev/null
Before:
2.14user 0.13system 0:02.28elapsed 100%CPU (0avgtext+0avgdata 1076maxresident)k
0inputs+0outputs (0major+75minor)pagefaults 0swaps
After:
2.03user 0.05system 0:02.09elapsed 99%CPU (0avgtext+0avgdata 1460maxresident)k
0inputs+0outputs (0major+135minor)pagefaults 0swaps
Before/After elapsed ratio: 2.28 / 2.09 = 1.09.
2019-01-26 09:32:55 +11:00
Nigel Tao
16e97281e2
Rename some decode methods to decode_io_writer
2019-01-12 10:29:41 +11:00
Nigel Tao
d4be1fdf72
Add some #ifndef's to the examples
2018-12-29 13:28:01 +11:00
Nigel Tao
dd94ad3821
Rename z variable to status, in C code
2018-12-28 16:14:03 +11:00
Nigel Tao
04c91f1410
Generate .c files instead of .h files
...
The files' contents haven't changed (other than some relative #include's
that refer to other .c files).
Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
2018-12-22 15:29:00 +11:00
Nigel Tao
529ebb0a61
Introduce binary alpha
2018-12-22 08:48:49 +11:00
Nigel Tao
45ab79b451
Allow GIF decoding to non-indexed pixel formats
2018-12-08 16:08:02 +11:00
Nigel Tao
fc1002cb89
Implement gif.decoder.workbuf_len
...
Also relax decode_frame's workbuf length check from not-equals to
less-than.
2018-11-17 21:52:26 +11:00
Nigel Tao
f06126c85a
Rename color_u32argb; add YCoCg color
2018-11-17 11:43:34 +11:00
Nigel Tao
7be9c39283
Move num_loops out of the image_config
...
For the GIF format, it isn't necessarily before the first frame.
2018-10-13 17:00:45 +11:00
Nigel Tao
8b1ffec576
Make struct impls private (opaque pointers)
...
This gives us flexibility to change sizeof(wuffs_foo__bar__struct)
across Wuffs versions, while retaining ABI / API compatibility.
In particular, this lets us add and remove fields.
2018-10-06 10:33:47 +10:00
Nigel Tao
6fed251b40
Split an io_buffer's fields into data and meta
2018-09-15 08:45:50 +10:00
Nigel Tao
180ce5e481
Add wuffs_base__malloc_slice_uxx functions
2018-09-09 21:31:37 +10:00
Nigel Tao
2c7fd8058a
Repurpose a pixbuf's plane 3 for the palette
2018-09-08 11:03:22 +10:00
Nigel Tao
29986823e5
Don't assume that pixbuf_len == number of pixels
2018-09-08 09:21:24 +10:00
Nigel Tao
fbbdc412d1
Rename work_buffer_size to workbuf_len
2018-09-08 09:06:56 +10:00
Nigel Tao
ca940b0c56
Rename pixbuf_size to pixbuf_len
2018-09-08 08:47:34 +10:00
Nigel Tao
555a72d7a9
Add a decode_frame_options type
2018-09-02 15:08:00 +10:00
Nigel Tao
8b1e023e6a
Add image_config.work_buffer_size
2018-09-02 14:56:53 +10:00
Nigel Tao
9c04249bfe
Add warnings as another status code category
2018-08-26 23:22:45 +10:00
Nigel Tao
7798beaa8c
Add I/O positions
2018-08-26 16:31:19 +10:00
Nigel Tao
5e8801d866
Promote pixcfg field out of private_impl
2018-08-18 12:29:28 +10:00
Nigel Tao
b840c80040
Make the status type a const char*, not a struct
2018-08-12 16:05:14 +10:00
Nigel Tao
2a32a86a6c
Make the status type a struct, not an int32_t
2018-08-11 13:27:29 +10:00
Nigel Tao
fd43e777bc
Have check_wuffs_version return a status code
2018-08-05 22:29:54 +10:00