Nigel Tao
59176bb0c7
base: fix color_u64_argb_nonpremul for 64-bit
2026-08-07 09:09:42 +10:00
Nigel Tao
7b71d6840a
base: rename color_u32_at color_u32_argb_premul_at
2026-08-06 11:53:49 +10:00
Nigel Tao
d9cf0751ca
std/vp8: blend VP8X ALPH chunk
2026-08-06 11:05:26 +10:00
Nigel Tao
e7f6c79752
std/vp8: decode VP8X ALPH chunk
2026-07-29 15:58:52 +10:00
Nigel Tao
dc18293c00
base: support YCC_MODEL__BT_601_STUDIO_RANGE
2026-06-20 22:24:40 +10:00
Nigel Tao
9a027b8016
base: add WUFFS_BASE__YCC_MODEL__ETC
2026-06-20 18:19:45 +10:00
Nigel Tao
752993e3a9
base: publicize color_swap_uxx_argb_abgr
2026-04-14 09:59:35 +10:00
Nigel Tao
eec7d22ea3
pixconv: swizzle PIXEL_FORMAT__BGRA_PREMUL_4X16LE
...
Binary size, before:
145472 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
145472 gen/lib/c/clang-static/wuffs-base-pixconv.o
247720 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
247688 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
155120 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
155120 gen/lib/c/clang-static/wuffs-base-pixconv.o
266992 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
266896 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2025-07-15 15:34:48 +10:00
Nigel Tao
56ee4b5e7f
base: add IMAGE__DIMENSION_MAX_INCL comment
2024-09-23 17:02:09 +09:30
Nigel Tao
b369d233ce
std: fix frame config background_color re alpha
2024-09-20 13:38:26 +09:30
Nigel Tao
13617c4907
convert-to-nia: add -output-uncompressed-png flag
2024-09-19 17:17:30 +09:30
Nigel Tao
72ae58b76e
base: add pixel_buffer.is_opaque
2024-09-18 12:09:52 +09:30
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
affff51fbf
base: add pixel_format.coloration
2024-09-08 10:37:43 +10:00
Nigel Tao
721e574398
base: avoid "#if SIZE_MAX < UINT64_MAX"
...
This fixes a -Werror=undef failure with coreboot's compiler.
2024-08-12 22:29:40 +10:00
Nigel Tao
3bad76cd2c
base: fix -Wtautological-type-limit-compare
...
Fixes #144
2024-03-28 16:38:45 +11:00
Nigel Tao
da40cdf29f
base: re-format ETC__PIXEL_FORMAT__ETC defines
2024-03-27 21:16:32 +11:00
Nigel Tao
bdfbdf407e
pixconv: add PIXEL_FORMAT__YA_NONPREMUL support
...
Binary size, before:
115152 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
115152 gen/lib/c/clang-static/wuffs-base-pixconv.o
162280 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
165352 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
123464 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
123464 gen/lib/c/clang-static/wuffs-base-pixconv.o
180768 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
180880 gen/lib/c/gcc-static/wuffs-base-pixconv.o
Updates #143
2024-03-27 19:07:03 +11:00
Nigel Tao
0c9b700df0
base: fix PIXEL_FORMAT__YA_{NON,}PREMUL values
...
These pixel formats have two channels (gray, alpha), not one.
Updates #143
2024-03-27 16:53:19 +11:00
Nigel Tao
5407f39386
base: use wuffs_base__empty_slice_u8 more often
2023-11-02 22:43:01 +11:00
Nigel Tao
9a68ec70c6
base: use wuffs_private_impl__etc names
2023-11-02 22:30:10 +11:00
Nigel Tao
ae8531f7f8
cgen: generate "foo(void)" instead of "foo()"
...
This was discovered by "gcc -Wstrict-prototypes".
Updates #132
2023-10-07 11:36:53 +11:00
Nigel Tao
aa39d25ca4
base: fix wuffs_base__base_16__encode4 prototype
...
Also fix wuffs_base__pixel_buffer__set_color_u32_fill_rect copy/paste.
This was discovered by "gcc -Wredundant-decls".
Updates #132
2023-10-07 11:32:36 +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
ca2909b6d7
cgen: optimize etc__swizzle_ycck for 444 bgrx/rgbx
...
name old speed new speed delta
wuffs_jpeg_decode_552k_24bpp_444/clang11 227MB/s ± 0% 275MB/s ± 0% +20.76% (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_444/gcc10 223MB/s ± 0% 249MB/s ± 0% +11.51% (p=0.008 n=5+5)
2023-06-07 22:25:02 +10:00
Nigel Tao
7514dede23
std/jpeg: decode color images, not just gray
...
Updates #42
2023-05-14 23:03:33 +10:00
Nigel Tao
4834cb97c8
base: deprecate ETC__PIXEL_FORMAT__NUM_PLANES_MAX
2023-04-16 11:12:06 +10:00
Nigel Tao
e126c998e0
std: limit supported image dimensions to 0xFF_FFFF
2023-04-16 08:57:55 +10:00
Nigel Tao
6e8349129c
base: remove deprecated names
2023-04-09 16:12:49 +10:00
Nigel Tao
1d19157668
Remove After editing... run "go generate" lines
2021-08-22 12:57:39 +10:00
Nigel Tao
163bc2626c
Add wuffs_base__pixel_buffer__set_interleaved
2021-04-02 23:15:20 +11:00
Nigel Tao
c1c8ccbaf2
Add ETC_PIXEL_FORMAT__INDEXED__PALETTE_BYTE_LENGTH
2021-04-02 22:13:33 +11:00
Nigel Tao
441e96a8d4
Add pixel_buffer.set_color_u32_fill_rect
2021-03-11 15:53:09 +11:00
Nigel Tao
4942324f25
Swizzler support src_pixfmt = PIXEL_FORMAT__Y_16BE
...
Binary size, before:
30800 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
32424 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
56200 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
56152 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
33416 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
35120 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
59504 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
59440 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-02-03 13:11:22 +11:00
Nigel Tao
2f2bbc6ab0
Rename default github.com branch s/master/main/
2021-01-25 11:30:15 +11:00
Nigel Tao
a882558900
Spell nonpremul consistently
2021-01-13 21:37:55 +11:00
Nigel Tao
2b17cf72ca
Fix uint64_t vs size_t when compiling with -m32
2021-01-08 23:07:07 +11:00
Nigel Tao
0ccdece50a
Add swizzle_interleaved_transparent_black
2020-12-04 22:53:59 +11:00
Nigel Tao
8482161c91
Add base.pixel_buffer.palette_or_else
2020-12-02 22:13:35 +11:00
Nigel Tao
50a0e767d4
Fix -Werror=conversion in base/image-public.h
2020-11-24 09:02:43 +11:00
Nigel Tao
4a5df43aeb
Add PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE
...
Binary size, before:
14272 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
14760 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
22336 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
22280 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
18712 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
19392 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
36880 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
36824 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2020-11-16 15:23:57 +11:00
Nigel Tao
abedb38844
Delete deprecated wuffs_base__animation_blend
2020-10-09 21:36:07 +11:00
Nigel Tao
4f1d24c070
Add names to "typedef struct { ... } foo" types
2020-09-23 22:02:53 +10:00
Nigel Tao
a4f2bbb249
Update cgen/base run "go generate" comment
2020-07-28 14:15:24 +10:00
Nigel Tao
f45f01f4f3
Update clang-format from v5 to v9
2020-06-05 14:06:56 +10:00
Nigel Tao
71528b33dd
Rename frame_config.update to frame_config.set
2020-06-03 11:34:57 +10:00
Nigel Tao
8b21a7600a
Add swizzle_interleaved_from_reader
2020-06-02 23:04:22 +10:00
Nigel Tao
54196c4e80
Rename pixel_swizzler.swizzle_interleaved
2020-05-29 16:54:05 +10:00
Nigel Tao
302afb7ce5
Add const to wuffs_base__pixel_swizzler__func arg
2020-05-28 00:07:45 +10:00