33 Commits
Author SHA1 Message Date
Nigel Tao fdf742186d test/data: add transparent-1x1.gif 2026-05-04 16:11:56 +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 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 60e3b8cb1c test/data: add bricks-color.etc1s.pkm 2024-08-23 22:14:33 +10:00
Nigel Tao 4423a0cbbe test/data: add bricks-color.etc?.pkm 2024-08-16 09:21:12 +10:00
Nigel Tao 7fb80a047b test/data: add enwik5 2023-11-19 10:27:47 +11:00
Nigel Tao 2ca61b521f test/data: add ridiculously-fast.png 2023-06-17 19:50:47 +10:00
Nigel Tao fe5c1f25b8 test/data: add more peacock.*.jpeg files 2023-06-09 21:29:21 +10:00
Nigel Tao 27a3197727 script: add truncate-progressive-jpeg.go
"script/confirm-matches-djpeg.sh test/data/*.jpeg" shows differences on
"test/data/peacock.progressive.scan00[0-8].jpeg".
2023-06-01 22:32:37 +10:00
Nigel Tao 0aad753137 test/data: add peacock.*
"script/confirm-matches-djpeg.sh test/data/*.jpeg" shows a difference on
"test/data/peacock.progressive.jpeg".
2023-05-22 16:11:12 +10:00
Nigel Tao dda01f1a77 Add WUFFS_BASE__FOURCC__QOI definition 2022-01-02 09:10:51 +11:00
Nigel Tao 3642d73714 Factor test/data/artificial into many directories 2021-11-16 15:37:57 +11:00
Nigel Tao c19e3b1cab Add script/extract-nia-frames.go 2021-11-11 11:47:08 +11:00
Nigel Tao f4c2d4652e Fix test/data/animated-red-blue.apng loop count
The diff of the "hd" hex dump shows that the acTL chunk's nominal loop
count changed from 2 to 3. The 4-byte CRC-32 checksum was also updated.
 00000000  89 50 4e 47 0d 0a 1a 0a  00 00 00 0d 49 48 44 52  |.PNG........IHDR|
 00000010  00 00 00 40 00 00 00 30  08 02 00 00 00 2e 29 eb  |...@...0......).|
 00000020  48 00 00 00 08 61 63 54  4c 00 00 00 04 00 00 00  |H....acTL.......|
-00000030  02 92 c3 07 fc 00 00 00  06 74 52 4e 53 00 00 00  |.........tRNS...|
+00000030  03 e5 c4 37 6a 00 00 00  06 74 52 4e 53 00 00 00  |...7j....tRNS...|
 00000040  00 00 10 73 11 17 f5 00  00 00 1a 66 63 54 4c 00  |...s.......fcTL.|
 00000050  00 00 00 00 00 00 40 00  00 00 30 00 00 00 00 00  |......@...0.....|
 00000060  00 00 00 00 0a 00 64 00  00 80 50 f1 a2 00 00 03  |......d...P.....|
2021-11-07 10:43:32 +11:00
Nigel Tao 0a7168fd64 Add test/data/*.apng 2021-11-05 22:28:08 +11:00
Nigel Tao a9a6332be2 Have etc__magic_number_guess_fourcc find ICO 2021-10-22 15:51:44 +11:00
Nigel Tao 6ea3144379 Add test/data/checkerboard.*.png 2021-10-20 09:58:42 +11:00
Nigel Tao e6733aec19 Add test/data/red-blue-gradient.dcip3d65.png 2021-10-15 11:29:26 +11:00
Nigel Tao dbc209dd7e Add test/data/red-blue-gradient.*.png 2021-10-14 15:58:03 +11:00
Nigel Tao 9d10438914 Add test/data/bricks-dither.no-ancillary.png 2021-09-06 22:57:55 +10:00
Nigel Tao b0826d2ab7 Add test/data/archive.*
$ 7z a     archive.7z \
    artificial/0.bytes github-tags.json hello.sh non-ascii/αβ.txt \
    non-ascii/😻.txt pjw-thumbnail.png romeo.txt romeo.txt.gz
$ zip      archive.zip     etc etc
$ rar a    archive.rar     etc etc
$ tar cvf  archive.tar     etc etc
$ tar cvjf archive.tar.bz2 etc etc
$ tar cvzf archive.tar.gz  etc etc
$ lcab etc etc archive.cab

And after curating a data/ directory (without non-ascii/😻.txt):

$ genisoimage -v -J -r -V WUFFS_TEST_DATA_SUBSET -o archive.iso data/
2021-05-03 22:25:35 +10:00
Nigel Tao 0b7eaf291b Add example/cbor-to-json 2020-08-09 23:03:42 +10:00
Nigel Tao 1e96ef200c Add test/data/cbor-rfc-7049-examples.* 2020-07-27 22:00:28 +10:00
Nigel Tao dcb81a85bb Prepare to decode BMP embedding a JPEG or PNG 2020-05-27 13:37:54 +10:00
Nigel Tao f928944d64 Add test/data/rfc-6901-json-pointer.json 2020-03-02 14:46:38 +11:00
Nigel Tao 193527bd2d Add script/print-json-token-debug-format.c 2020-02-26 22:47:31 +11:00
Nigel Tao a540fbce4e Add test/data/file-sizes.json 2020-02-25 16:05:38 +11:00
Nigel Tao e2e51786a0 Add more test/data/*.wbmp files 2020-01-16 15:22:01 +11:00
Nigel Tao 463079dd50 Add some NIE examples 2019-02-09 08:00:05 +11:00
Nigel Tao 8d7bd36179 Add more GIF benchmarks
The existing benchmarks decoded realistic photos. The new benchmarks
also decode artificially generated images, which compress better.

Also adjust script/extract-giflzw.go to optionally analyze and print a
histogram of LZW code emission lengths. "Compresses better" is highly
correlated with "a lower proportion of literal (1 length) codes".
2018-10-21 11:46:37 +11:00
Nigel Tao b926cd1d02 Add test/data/hippopotamus.* images 2018-05-28 10:47:33 +10:00
Nigel Tao d1399fac19 Rename test/testdata to test/data 2018-03-16 10:48:33 +11:00