mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
This only affects truncated (malformed) JPEGs. It moves Wuffs' std/jpeg decoder closer to libjpeg-turbo, as seen by the "hash of the decoded output" for test/data/peacock.default.truncated.jpeg now matching test/data/peacock.default.truncated.decoded-by-djpeg.png instead of test/data/peacock.default.truncated.decoded-by-wuffs.png The decoding of test/data/peacock.progressive.truncated.jpeg is not yet affected, requiring further investigation, but a future commit could similarly make that match djpeg. The two libraries don't use exactly the same algorithm because, for performance, Wuffs' decoder reads from the bitstream 8 bytes at a time where libjpeg-turbo reads only 1 byte at a time. While this change moves Wuffs' output closer to libjpeg-turbo (to repeat, only for truncated JPEGs; well-formed JPEGs are unaffected), the benchmarks below show a negative performance impact, and visual inspection of test/data/peacock.*.truncated.decoded-by-*.png shows that matching libjpeg-turbo *exactly* on truncated JPEGs doesn't actually always look better. On balance, it doesn't seem worth it to keep this change (and spend more time on that further investigation). This commit will soon be followed by a rollback, but it is committed anyway so that we can refer to these numbers in the git log. name old speed new speed delta wuffs_jpeg_decode_19k_8bpp/clang11 378MB/s ± 0% 364MB/s ± 0% -3.53% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_progressive/clang11 325MB/s ± 0% 340MB/s ± 0% +4.62% (p=0.016 n=5+4) wuffs_jpeg_decode_30k_24bpp_sequential/clang11 1.02GB/s ± 0% 0.99GB/s ± 0% -2.64% (p=0.008 n=5+5) wuffs_jpeg_decode_77k_24bpp/clang11 842MB/s ± 0% 815MB/s ± 0% -3.16% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_420/clang11 916MB/s ± 0% 887MB/s ± 0% -3.08% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_444/clang11 1.10GB/s ± 0% 1.07GB/s ± 2% -3.39% (p=0.008 n=5+5) wuffs_jpeg_decode_4002k_24bpp/clang11 919MB/s ± 0% 892MB/s ± 0% -2.95% (p=0.008 n=5+5) wuffs_jpeg_decode_19k_8bpp/gcc10 360MB/s ± 0% 348MB/s ± 0% -3.34% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_progressive/gcc10 290MB/s ± 0% 283MB/s ± 0% -2.46% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_sequential/gcc10 925MB/s ± 0% 909MB/s ± 0% -1.70% (p=0.008 n=5+5) wuffs_jpeg_decode_77k_24bpp/gcc10 758MB/s ± 0% 732MB/s ± 0% -3.43% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_420/gcc10 829MB/s ± 0% 799MB/s ± 0% -3.54% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_444/gcc10 981MB/s ± 0% 964MB/s ± 0% -1.72% (p=0.008 n=5+5) wuffs_jpeg_decode_4002k_24bpp/gcc10 835MB/s ± 0% 811MB/s ± 0% -2.89% (p=0.008 n=5+5)
125 lines
5.4 KiB
Plaintext
125 lines
5.4 KiB
Plaintext
# Generated by script/print-nia-checksums.sh
|
|
d3bb0beb test/data/DCI-P3-D65.icc
|
|
646e081a test/data/animated-red-blue.000000.nie
|
|
181c6916 test/data/animated-red-blue.000001.nie
|
|
e651a889 test/data/animated-red-blue.000002.nie
|
|
14a5b4b0 test/data/animated-red-blue.000003.nie
|
|
76e40058 test/data/animated-red-blue.apng
|
|
76e40058 test/data/animated-red-blue.gif
|
|
f9a10dac test/data/artificial-gif/background-color.gif
|
|
36e7d9c7 test/data/artificial-gif/empty-palette.gif
|
|
db4c30eb test/data/artificial-gif/frame-out-of-bounds.gif
|
|
f2dc2c43 test/data/artificial-gif/metadata-empty.gif
|
|
f2dc2c43 test/data/artificial-gif/metadata-full.gif
|
|
a1a9b56d test/data/artificial-gif/multiple-graphic-controls.gif
|
|
046a2d07 test/data/artificial-gif/multiple-loop-counts.gif
|
|
ba6e48f8 test/data/artificial-gif/no-frames.gif
|
|
f33b9bc1 test/data/artificial-gif/pixel-data-none.gif
|
|
ac9d76d8 test/data/artificial-gif/pixel-data-not-enough.gif
|
|
2342e3fc test/data/artificial-gif/pixel-data-too-much-bad-lzw.gif
|
|
2342e3fc test/data/artificial-gif/pixel-data-too-much-good-lzw.gif
|
|
39a71dce test/data/artificial-gif/small-frame-interlaced.gif
|
|
beaec397 test/data/artificial-gif/transparent-index.gif
|
|
f33b9bc1 test/data/artificial-gif/zero-width-frame.gif
|
|
0564b364 test/data/artificial-png/apng-skip-idat.png
|
|
e08a7cc8 test/data/artificial-png/exif.png
|
|
e08a7cc8 test/data/artificial-png/key-value-pairs.png
|
|
076cb375 test/data/bricks-color.bmp
|
|
72a1f9cc test/data/bricks-color.jpeg
|
|
076cb375 test/data/bricks-color.png
|
|
076cb375 test/data/bricks-color.tga
|
|
f36c2e80 test/data/bricks-dither.bmp
|
|
f36c2e80 test/data/bricks-dither.gif
|
|
f36c2e80 test/data/bricks-dither.no-ancillary.png
|
|
f36c2e80 test/data/bricks-dither.png
|
|
c2bce675 test/data/bricks-gray.bmp
|
|
c2bce675 test/data/bricks-gray.gif
|
|
3a2478ad test/data/bricks-gray.jpeg
|
|
c2bce675 test/data/bricks-gray.no-ancillary.png
|
|
c2bce675 test/data/bricks-gray.png
|
|
c2bce675 test/data/bricks-gray.tga
|
|
7aebfe6c test/data/bricks-nodither.bmp
|
|
7aebfe6c test/data/bricks-nodither.gif
|
|
7aebfe6c test/data/bricks-nodither.png
|
|
7aebfe6c test/data/bricks-nodither.tga
|
|
ae2e547d test/data/bricks-nodither.wbmp
|
|
b47730a2 test/data/checkerboard.gamma1dot0.png
|
|
b47730a2 test/data/checkerboard.gamma2dot2.png
|
|
aa3e6c7c test/data/crude-flag.nie
|
|
3014b4c0 test/data/gifplayer-muybridge.gif
|
|
030f5a48 test/data/harvesters.bmp
|
|
c18b3d5a test/data/harvesters.gif
|
|
f217df74 test/data/harvesters.jpeg
|
|
030f5a48 test/data/harvesters.png
|
|
e776c90f test/data/hat.bmp
|
|
6dcba6a4 test/data/hat.gif
|
|
2298f3ca test/data/hat.jpeg
|
|
e776c90f test/data/hat.png
|
|
d30bfe5d test/data/hat.wbmp
|
|
33a44f22 test/data/hibiscus.primitive.bmp
|
|
25e212b3 test/data/hibiscus.primitive.gif
|
|
9624fa44 test/data/hibiscus.primitive.jpeg
|
|
33a44f22 test/data/hibiscus.primitive.png
|
|
60040742 test/data/hibiscus.regular.bmp
|
|
b727da8b test/data/hibiscus.regular.gif
|
|
41e39405 test/data/hibiscus.regular.jpeg
|
|
60040742 test/data/hibiscus.regular.png
|
|
dcbb225a test/data/hippopotamus.bmp
|
|
ed4b78fc test/data/hippopotamus.interlaced.gif
|
|
dcbb225a test/data/hippopotamus.interlaced.png
|
|
c3c4bd65 test/data/hippopotamus.interlaced.truncated.gif
|
|
7c6a771b test/data/hippopotamus.interlaced.truncated.png
|
|
96bdbbb3 test/data/hippopotamus.jpeg
|
|
d3bbed27 test/data/hippopotamus.masked-with-muybridge.gif
|
|
7e6acf01 test/data/hippopotamus.masked-with-muybridge.png
|
|
dcbb225a test/data/hippopotamus.nie
|
|
57d9a4dd test/data/hippopotamus.pgm
|
|
dcbb225a test/data/hippopotamus.ppm
|
|
ed4b78fc test/data/hippopotamus.regular.gif
|
|
dcbb225a test/data/hippopotamus.regular.png
|
|
888b1c04 test/data/hippopotamus.regular.truncated.png
|
|
2dccfe56 test/data/muybridge-frame-000.wbmp
|
|
db2733f5 test/data/muybridge.apng
|
|
db2733f5 test/data/muybridge.gif
|
|
d42a13cd test/data/peacock.default.jpeg
|
|
c8a50351 test/data/peacock.default.truncated.decoded-by-djpeg.png
|
|
91b6bebb test/data/peacock.default.truncated.decoded-by-wuffs.png
|
|
c8a50351 test/data/peacock.default.truncated.jpeg
|
|
d49bab2d test/data/peacock.grayscale.jpeg
|
|
d42a13cd test/data/peacock.optimize.jpeg
|
|
bdf8cc70 test/data/peacock.png
|
|
bdf8cc70 test/data/peacock.ppm
|
|
d42a13cd test/data/peacock.progressive.jpeg
|
|
52e723b6 test/data/peacock.progressive.scan000.jpeg
|
|
79c58501 test/data/peacock.progressive.scan001.jpeg
|
|
c0b6c555 test/data/peacock.progressive.scan002.jpeg
|
|
ec5a371f test/data/peacock.progressive.scan003.jpeg
|
|
487afc66 test/data/peacock.progressive.scan004.jpeg
|
|
b12a7c4f test/data/peacock.progressive.scan005.jpeg
|
|
610eb71e test/data/peacock.progressive.scan006.jpeg
|
|
0adacc97 test/data/peacock.progressive.scan007.jpeg
|
|
bc00fee5 test/data/peacock.progressive.scan008.jpeg
|
|
d42a13cd test/data/peacock.progressive.scan009.jpeg
|
|
2ba9d5b9 test/data/peacock.progressive.truncated.decoded-by-djpeg.png
|
|
245d37de test/data/peacock.progressive.truncated.decoded-by-wuffs.png
|
|
245d37de test/data/peacock.progressive.truncated.jpeg
|
|
951676cc test/data/peacock.q30.jpeg
|
|
56835223 test/data/peacock.q99.jpeg
|
|
7fa9064e test/data/peacock.s-very-weird.jpeg
|
|
1543f677 test/data/peacock.s-weird.jpeg
|
|
5437be55 test/data/peacock.s1x1-444.jpeg
|
|
a9d83d57 test/data/peacock.s1x3.jpeg
|
|
6862951e test/data/peacock.s2x1-422.jpeg
|
|
d42a13cd test/data/peacock.s2x2-420.jpeg
|
|
bf7e8c96 test/data/pjw-thumbnail.bmp
|
|
bf7e8c96 test/data/pjw-thumbnail.gif
|
|
7c67a37f test/data/pjw-thumbnail.jpeg
|
|
bf7e8c96 test/data/pjw-thumbnail.png
|
|
38cb4cbf test/data/red-blue-gradient.dcip3d65-no-chrm-no-gama.png
|
|
38cb4cbf test/data/red-blue-gradient.gamma1dot0.png
|
|
38cb4cbf test/data/red-blue-gradient.gamma1dot8.png
|
|
38cb4cbf test/data/red-blue-gradient.gamma2dot2.png
|
|
38cb4cbf test/data/red-blue-gradient.vanilla.png
|
|
75060601 test/data/rgb24png.bmp
|
|
79ab18b6 test/data/ridiculously-fast.png
|