Nigel Tao
b2e6da3024
lib/suitar: allow implicitly-sized entries
2026-09-29 22:31:20 +10:00
Nigel Tao
0f214ba59c
lib/suitar: add trailing EOF blocks
...
Both /usr/bin/tar and the Go standard library don't seem to need this,
but some other TAR readers might expect it.
2026-09-03 08:31:06 +10:00
Nigel Tao
504f8485f4
lib/suitar: add new Go package
...
$ TZ=UTC tar -tvf test/data/archive.dense.suitar
-rw-r--r-- nobody/nobody 0 2020-02-05 06:10 artificial/0.bytes
-rw-r--r-- nobody/nobody 853 2020-08-12 14:04 github-tags.json
-rwxr-xr-x nobody/nobody 693 2021-05-03 06:19 hello.sh
-rw-r--r-- nobody/nobody 104 2021-05-03 06:16 non-ascii/αβ.txt
-rw-r--r-- nobody/nobody 151 2021-05-03 06:23 non-ascii/😻 .txt
-rw-r--r-- nobody/nobody 208 2020-02-05 06:10 pjw-thumbnail.png
-rw-r--r-- nobody/nobody 942 2020-02-05 06:10 romeo.txt
-rw-r--r-- nobody/nobody 558 2020-02-05 06:10 romeo.txt.gz
2026-09-01 21:55:46 +10:00
Nigel Tao
1230506e7c
test/data: add "VP8X with animation" test image
2026-08-10 17:40:43 +10:00
Nigel Tao
be6327a548
test/data: add "VP8X with alpha" test image
2026-07-16 21:49:31 +10:00
Nigel Tao
e3b5a7d506
script: add replicate-libwebp-chroma-upsampling.go
2026-06-30 16:09:45 +10:00
Nigel Tao
979a9d898c
lib/handsum: renumber quality from 0..=3 to 1..=4
2026-05-06 21:39:21 +10:00
Nigel Tao
fdf742186d
test/data: add transparent-1x1.gif
2026-05-04 16:11:56 +10:00
Nigel Tao
30ac5c2e89
std/handsum: add alpha channel support
2026-05-01 23:24:29 +10:00
Nigel Tao
38a5e853c9
std/handsum: tweak magic identifier bytes
2026-05-01 23:23:21 +10:00
Nigel Tao
acbf9d2ecf
test/data: rename some *.handsum files
2026-05-01 20:36:12 +10:00
Nigel Tao
f8c6b35ff5
std/handsum: redo Handsum image file format
2026-04-28 21:12:28 +10:00
Nigel Tao
5e1b00df7f
test/data: add more mona-lisa images
2026-04-13 22:40:47 +10:00
Nigel Tao
dd8db5dbb8
std/handsum: add Potato, Gray variants
2026-04-13 00:20:06 +10:00
Nigel Tao
50b62c7704
test/data: rename some *.handsum files
2026-04-12 15:55:39 +10:00
Nigel Tao
a6c89da981
std/handsum: change version bits from 0x00 to 0x40
2026-04-08 21:08:43 +10:00
Nigel Tao
2ed84b6c00
std/nie: support premultiplied alpha formats
2025-07-15 15:57:36 +10:00
Nigel Tao
67e9078eab
example/convert-to-nia: allow 16-bit PNG output
2025-06-23 09:51:31 +10:00
Nigel Tao
7250990196
test/data: rename non-ascii/😻 .txt
...
Prior to this, pkg.go.dev would reject the repo (due to an error from
golang.org/x/mod/module). See https://go.dev/play/p/cGG7piSw1Wl and
https://proxy.golang.org/github.com/google/wuffs/@v/v0.3.4.info also
said:
not found: create zip: test/data/non-ascii/😻 .txt: malformed file path
"test/data/non-ascii/😻 .txt": invalid char '😻 '
2025-04-01 13:39:28 +11:00
Nigel Tao
12b404f58d
cmd/handsum: new tool for the Handsum file format
2025-02-23 12:15:59 +11:00
Egor Pugin
fd388e08f8
Fix typo in huffman-primlen-9.deflate.commentary.txt
2025-01-21 00:02:18 +03:00
Nigel Tao
bb2600e423
test/data: add mona-lisa.*
...
wget -q -O mona-lisa.322x480.jpeg 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/322px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg '
convert mona-lisa.322x480.jpeg -resize 32x32 mona-lisa.21x32.png
pngcrush -ow -brute -rem alla mona-lisa.21x32.png
convert mona-lisa.21x32.png mona-lisa.21x32.ppm
cjpeg -quality 50 mona-lisa.21x32.ppm > mona-lisa.21x32.q50.jpeg
cjpeg -quality 90 mona-lisa.21x32.ppm > mona-lisa.21x32.q90.jpeg
etcpack mona-lisa.21x32.ppm mona-lisa.21x32.etc2.pkm
rm mona-lisa.21x32.ppm mona-lisa.322x480.jpeg
The *.th file was manually encoded by uploading mona-lisa.21x32.png to
https://evanw.github.io/thumbhash/ and prepending the magic identifier.
2024-09-06 14:26:38 +10:00
Nigel Tao
78f4e4ccc4
test/data: add official thumbhash PNG renderings
2024-09-06 12:56:00 +10:00
Nigel Tao
aa28bb076c
test/data: add thumbhash (*.th) files
2024-09-03 10:02:30 +10:00
Nigel Tao
bd42fa7af2
base38: reassign alphabet and numbers
...
It changes from " 0-9?a-z" to ".0-9a-z~". The default or placeholder
changes from " " to "." so it's now always visible. The wildcard changes
from "?" to "~" so it's now sorted last.
2024-08-26 12:30:20 +10:00
Nigel Tao
6a9347843b
std/jpeg: ignore too-short COM or APPn markers
2024-08-25 13:46:16 +10:00
Nigel Tao
a824c55c3d
std/jpeg: allow DHT markers before SOF
2024-08-24 16:13:31 +10:00
Nigel Tao
60e3b8cb1c
test/data: add bricks-color.etc1s.pkm
2024-08-23 22:14:33 +10:00
Nigel Tao
96eda2ec0d
std/etc2: support transparency
2024-08-18 15:09:51 +10:00
Nigel Tao
4423a0cbbe
test/data: add bricks-color.etc?.pkm
2024-08-16 09:21:12 +10:00
Nigel Tao
793ab36569
std/lzip: add new package
2024-03-01 09:52:54 +11:00
Nigel Tao
5b62289c63
test/data: add *.two-concatenated-streams.xz
...
lo128.dat and hi128.dat were constructed manually, then the
256.bytes.two-concatenated-streams.xz file was constructed by:
xz --keep lo128.dat
xz --keep hi128.dat
cat lo128.dat.xz hi128.dat.xz > 256.bytes.two-concatenated-streams.xz
2024-02-26 22:11:51 +11:00
Nigel Tao
6c71bb229b
test/data: add enwik5.block-size-32k.xz
...
It was created with a vanilla xz binary:
xz --keep --block-size=32k --stdout enwik5 > enwik5.block-size-32k.xz
2024-02-14 15:49:54 +11:00
Nigel Tao
2f7fbd0f34
test/data: add enwik5.lzma2-chunk-max-1-13.xz
...
It was created wih a custom xz binary (built from the source at
https://github.com/tukaani-project/xz ), with this command:
xz --compress --keep --stdout enwik5 > enwik5.lzma2-chunk-max-1-13.xz
after applying this patch to xz's src/liblzma/lzma/lzma2_encoder.h:
-#define LZMA2_CHUNK_MAX (UINT32_C(1) << 16)
+#define LZMA2_CHUNK_MAX (UINT32_C(1) << 13)
The resultant enwik5.lzma2-chunk-max-1-13.xz file has multiple LZMA2
chunks, unlike the existing enwik5.xz (created with the normal chunk
limit). Wuffs' std/xz currently does not decode this new file properly.
2024-02-13 22:17:35 +11:00
Nigel Tao
749e3559f2
std/xz: implement apply_filter_0b_riscv
2024-02-13 21:11:06 +11:00
Nigel Tao
782e78a689
std/xz: support BCJ start option
2024-02-12 21:01:27 +11:00
Nigel Tao
6f4db1b138
std/xz: implement apply_filter_06_ia64
2024-02-12 20:15:45 +11:00
Nigel Tao
30133ad4b2
std/xz: implement apply_filter_05_powerpc
2024-02-11 19:10:55 +11:00
Nigel Tao
d2a63a7e34
std/xz: implement apply_filter_04_x86
2024-02-11 13:04:29 +11:00
Nigel Tao
76a17ce742
std/xz: implement apply_filter_0a_arm64
2024-02-11 11:42:40 +11:00
Nigel Tao
8b3e598572
std/xz: implement apply_filter_08_armthumb
2024-02-11 11:11:47 +11:00
Nigel Tao
03bb04d80c
std/xz: implement apply_filter_09_sparc
2024-02-11 10:54:44 +11:00
Nigel Tao
af6c7b56af
std/xz: implement apply_filter_07_arm
2024-02-10 21:46:36 +11:00
Nigel Tao
9ef114be43
std/xz: prepare to add BCJ filters
2024-02-09 22:15:09 +11:00
Nigel Tao
ab06be047b
test/data: add romeo.txt.delta1.xz
...
It was generated by:
xz -k --delta=dist=1 --lzma2 --stdout romeo.txt > romeo.txt.delta1.xz
2024-01-09 22:40:46 +11:00
Nigel Tao
7fb80a047b
test/data: add enwik5
2023-11-19 10:27:47 +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
721463be95
test/data: add PNGs of truncated-JPEG decodings
...
"Decoded by wuffs" means as of commit 268b9594 .
"Decoded by djpeg" means as of libjpeg-turbo version 3.0.1.
2023-09-16 14:43:19 +10:00
Nigel Tao
45350db8ca
test/data: add peacock.*.truncated.jpeg
2023-08-26 10:41:46 +10:00