Nigel Tao
b76af12139
convert-to-nia: fix use of errno after read
2024-09-20 08:58:28 +09:30
Nigel Tao
13617c4907
convert-to-nia: add -output-uncompressed-png flag
2024-09-19 17:17:30 +09:30
Nigel Tao
466ba48f57
convert-to-nia: add DECODE_ONLY_JPEG macro
2024-09-19 14:51:42 +09:30
Nigel Tao
c5549dadd1
stb-imagedumper: add -resize=N comment
2024-09-18 18:17:33 +09:30
Nigel Tao
225068fc5a
stb-imagedumper: handle resize 0w or 0h gracefully
2024-09-15 10:08:28 +10:00
Nigel Tao
aeb35f0449
example/std-imagedumper: print width x height
2024-09-12 09:06:46 +10:00
Nigel Tao
48d2ffcf14
example/std-imagedumper: add -resize=N flag
2024-09-11 23:15:54 +10:00
Nigel Tao
c304bd4c08
example/std-imagedumper: use Unicode half-blocks
2024-09-11 22:24:53 +10:00
Nigel Tao
97cd8d8e8a
example/jsonfindptrs: avoid g++ uninitialized warn
2024-09-11 21:49:28 +10:00
Nigel Tao
05f4c37964
example/std-imagedumper: add dark/light mode
2024-09-10 22:02:27 +10:00
Nigel Tao
b9e3c26dcc
example/std-imagedumper: add file size and timer
2024-09-10 21:41:02 +10:00
Nigel Tao
8aa51dfa49
example/std-imagedumper: add -braille-art flag
2024-09-10 07:46:07 +10:00
Nigel Tao
ef6814e6c6
example/stb-imagedumper: use ETC__ENABLE_ALLOWLIST
...
Binary size, before:
539144 gen/bin/example-stb-imagedumper
After:
534880 gen/bin/example-stb-imagedumper
2024-09-08 22:58:54 +10:00
Nigel Tao
42ba720d4e
pixconv: allow swizzling to Y (gray) more often
...
Binary size, before:
124816 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
124816 gen/lib/c/clang-static/wuffs-base-pixconv.o
196736 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
196672 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
142032 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
142032 gen/lib/c/clang-static/wuffs-base-pixconv.o
242712 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
242584 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2024-09-08 22:54:35 +10:00
Nigel Tao
43d412a15f
example/stb-imagedumper: add USE_ONLY_JPEG
2024-09-08 11:29:18 +10:00
Nigel Tao
85af5a4bed
std/tga: rename to std/targa
2024-09-08 09:00:10 +10:00
Nigel Tao
8924b5f003
cgen: add ETC__ENABLE_DROP_IN_REPLACEMENT__STB
...
Fixes #153
2024-09-07 22:21:00 +10:00
Nigel Tao
b8740d8881
std/thumbhash: add new package
2024-09-03 20:07:37 +10:00
Nigel Tao
43df015669
std/etc2: add new package
2024-08-17 15:31:29 +10:00
Nigel Tao
d06700f00b
std/qoi: add new package
...
Fixes #63
2024-08-08 23:49:17 +10:00
Nigel Tao
ffb64df0a0
aux: add QuirkKeyValuePair type
2024-08-05 00:12:15 +10:00
Nigel Tao
8a722790af
example/imageviewer: change screen_gamma flag
2024-08-04 23:25:07 +10:00
Nigel Tao
c9fff5b207
std/jpeg: add and use WUFFS_BASE__QUIRK_QUALITY
2024-08-04 23:15:58 +10:00
Nigel Tao
09f4500e19
std/webp: add new package (and vp8 placeholder)
2024-05-10 13:52:07 +10:00
Nigel Tao
8ed5d1327b
example/gifplayer: tweak try_allocate workbuf len
2024-04-05 13:33:15 +11:00
Nigel Tao
1596343889
example/mzcat: embiggen static array buffers
...
$ time example-mzcat < linux-6.8.2.tar.xz > /dev/null
Before: user 0m8.392s
After: user 0m8.122s
2024-03-31 18:39:57 +11:00
Nigel Tao
f5bb519320
base: add ETC__DST_PIXEL_FORMAT__ENABLE_ALLOWLIST
...
Binary size, before:
412128 gen/bin/example-convert-to-nia
50680 gen/bin/example-gifplayer
449680 gen/bin/example-imageviewer
439000 gen/bin/example-sdl-imageviewer
151848 gen/bin/example-toy-aux-image
After:
302232 gen/bin/example-convert-to-nia
46144 gen/bin/example-gifplayer
352112 gen/bin/example-imageviewer
329168 gen/bin/example-sdl-imageviewer
138656 gen/bin/example-toy-aux-image
For further data points, if you hard-code define'ing
WUFFS_CONFIG__DST_PIXEL_FORMAT__ENABLE_ALLOWLIST and
WUFFS_CONFIG__DST_PIXEL_FORMAT__ALLOW_BGRA_PREMUL:
Binary size, before:
121368 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
121368 gen/lib/c/clang-static/wuffs-base-pixconv.o
181088 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
181136 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
54784 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
54784 gen/lib/c/clang-static/wuffs-base-pixconv.o
72144 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
72272 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2024-03-29 22:19:47 +11:00
Nigel Tao
793ab36569
std/lzip: add new package
2024-03-01 09:52:54 +11:00
Nigel Tao
22b4ff4842
std/xz: decode concatenated streams
2024-02-26 23:02:40 +11:00
Nigel Tao
f06858f395
example/convert-to-nia: tweak write max len
2024-02-23 22:42:45 +11:00
Nigel Tao
4e20ba6876
example: add output-crc32-digest flag
2024-02-15 13:40:09 +11:00
Nigel Tao
2b4e8ce6a2
example/mzcat: support zlib
2024-02-09 16:07:43 +11:00
Nigel Tao
c21cc95713
std/lzma: use args.workbuf for io_buffer history
2024-02-08 21:38:30 +11:00
Nigel Tao
13115e4e1d
std/xz: fix QUIRK_IGNORE_CHECKSUM skipping bytes
2024-01-07 19:52:11 +11:00
Nigel Tao
ce0cee444d
std/xz: add new package
2023-12-25 13:24:24 +11:00
Nigel Tao
6668b604d3
example/mzcat: add new program (based on bzcat)
2023-12-17 14:06:52 +11:00
Nigel Tao
eed1af7bee
base: rename history_retain_length
...
It was renamed to dst_history_retain_length.
It also was removed from image_decoders and token_decoders. It only
applies to io_transformers, as retaining history applies to the
destination (not source) IO buffer.
Also adjust example/bzcat and example/zcat to apply the history retain
length to the dst (not src) buffer.
2023-12-17 12:26:08 +11:00
Nigel Tao
82ea1985b4
base: add optional_u63 type
2023-11-19 12:02:24 +11:00
Nigel Tao
5407f39386
base: use wuffs_base__empty_slice_u8 more often
2023-11-02 22:43:01 +11:00
Patrick Georgi
f563f32f82
Add SPDX identifier to license headers
...
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.
In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao
74a6ea2fcd
all: relicense from Apache2 to dual Apache2/MIT
...
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).
If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.
The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c
Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao
5fb82e7d0a
std: add compact_retaining, history_retain_length
2023-10-05 13:24:44 +11:00
Nigel Tao
8e42e01d3c
std/gif: remove the std/lzw dependency
...
name old speed new speed delta
wuffs_gif_decode_1k_bw/clang11 683MB/s ± 0% 682MB/s ± 0% ~ (p=0.690 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang11 168MB/s ± 0% 184MB/s ± 0% +10.01% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang11 204MB/s ± 0% 230MB/s ± 0% +12.77% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang11 746MB/s ± 0% 819MB/s ± 0% +9.90% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/clang11 200MB/s ± 0% 218MB/s ± 0% +8.97% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang11 246MB/s ± 0% 257MB/s ± 0% +4.33% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang11 543MB/s ± 0% 562MB/s ± 0% +3.44% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang11 210MB/s ± 0% 220MB/s ± 0% +4.90% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang11 214MB/s ± 0% 224MB/s ± 0% +4.96% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang11 214MB/s ± 0% 224MB/s ± 0% +4.98% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang11 1.24GB/s ± 0% 1.29GB/s ± 0% +3.85% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc10 649MB/s ± 0% 588MB/s ± 0% -9.42% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/gcc10 167MB/s ± 0% 198MB/s ± 0% +18.57% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc10 195MB/s ± 0% 251MB/s ± 0% +28.64% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc10 753MB/s ± 0% 871MB/s ± 0% +15.64% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/gcc10 199MB/s ± 0% 233MB/s ± 0% +16.86% (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc10 258MB/s ± 0% 265MB/s ± 0% +2.93% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/gcc10 560MB/s ± 0% 561MB/s ± 0% +0.19% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/gcc10 221MB/s ± 0% 227MB/s ± 0% +2.65% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc10 227MB/s ± 0% 232MB/s ± 0% +2.29% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc10 227MB/s ± 0% 232MB/s ± 0% +2.28% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc10 1.29GB/s ± 0% 1.28GB/s ± 0% -0.22% (p=0.008 n=5+5)
2023-10-04 20:19:25 +11:00
Nigel Tao
813c054c18
example: add ALLOW_GIGABYTES_OF_PIXEL_BUFFERS
2023-08-27 22:15:09 +10:00
Nigel Tao
be9d3fcf0f
example/convert-to-nia: add -output-netpbm flag
2023-08-06 10:49:53 +10:00
Nigel Tao
129d8008a2
doc: add more "decode an image" docs/comments
2023-07-15 13:26:45 +10:00
Nigel Tao
99cc599f92
example/toy-aux-image: comment on config macros
2023-06-28 14:11:38 +10:00
Nigel Tao
0904751e2d
example: add toy-aux-image
2023-06-04 10:47:22 +10:00
Nigel Tao
805e37915f
root: add BUILD.md
2023-06-01 13:20:47 +10:00
Nigel Tao
da95945d65
example: remove #include <linux/prctl.h>
...
These don't work with musl-libc. They're also unnecessary with gnu-libc.
Updates #124
2023-06-01 12:18:30 +10:00