std/jpeg: decode CMYK and YCbCrK JPEGs

Once again, the benchmarks don't exercise the CMYK / YCbCrK code paths
per se, but here are the numbers:

name                                             old speed      new speed      delta

wuffs_jpeg_decode_19k_8bpp/clang11                376MB/s ± 0%   376MB/s ± 0%    ~     (p=0.310 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/clang11   341MB/s ± 0%   340MB/s ± 0%  -0.42%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_sequential/clang11   1.01GB/s ± 0%  1.01GB/s ± 0%  +0.27%  (p=0.008 n=5+5)
wuffs_jpeg_decode_77k_24bpp/clang11               836MB/s ± 1%   839MB/s ± 0%  +0.37%  (p=0.016 n=5+5)
wuffs_jpeg_decode_552k_24bpp_420/clang11          912MB/s ± 0%   914MB/s ± 0%  +0.28%  (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_444/clang11         1.10GB/s ± 0%  1.11GB/s ± 0%  +0.82%  (p=0.008 n=5+5)
wuffs_jpeg_decode_4002k_24bpp/clang11             916MB/s ± 0%   916MB/s ± 0%    ~     (p=0.841 n=5+5)

wuffs_jpeg_decode_19k_8bpp/gcc10                  368MB/s ± 0%   361MB/s ± 0%  -1.87%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10     279MB/s ± 0%   292MB/s ± 0%  +4.68%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_sequential/gcc10      947MB/s ± 1%   930MB/s ± 0%  -1.74%  (p=0.008 n=5+5)
wuffs_jpeg_decode_77k_24bpp/gcc10                 770MB/s ± 0%   760MB/s ± 0%  -1.32%  (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_420/gcc10            838MB/s ± 0%   826MB/s ± 0%  -1.36%  (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_444/gcc10           1.00GB/s ± 0%  1.01GB/s ± 0%  +1.04%  (p=0.008 n=5+5)
wuffs_jpeg_decode_4002k_24bpp/gcc10               847MB/s ± 0%   833MB/s ± 0%  -1.67%  (p=0.008 n=5+5)
This commit is contained in:
Nigel Tao committed 2023-08-21 22:13:39 +10:00
1 parent f569699221
commit 6489915ed3
4 files changed
+741 -45

No files matched your search

+6 -6
View File
@@ -37,7 +37,7 @@ ffc8a627 test/3pdata/blinksuite/bug106024.jpg
18cee321 test/3pdata/blinksuite/cHRM_color_spin.png
3e460fe4 test/3pdata/blinksuite/cat.jpg
e9151f0e test/3pdata/blinksuite/cicp_pq.png
e00ca328 test/3pdata/blinksuite/cmyk-jpeg.jpg
ab6d7d2e test/3pdata/blinksuite/cmyk-jpeg.jpg
5ec78d7c test/3pdata/blinksuite/color-checker-adobe-color-profile.png
b3389858 test/3pdata/blinksuite/color-checker-srgb-color-profile.png
10721531 test/3pdata/blinksuite/count-down-color-test.gif
@@ -46,10 +46,10 @@ b3389858 test/3pdata/blinksuite/color-checker-srgb-color-profile.png
ae034abe test/3pdata/blinksuite/crbug807324.png
4f50fdb0 test/3pdata/blinksuite/crbug827754.png
42e5598b test/3pdata/blinksuite/cropped_mandrill.jpg
e00ca328 test/3pdata/blinksuite/cs-uma-cmyk-jfif-marker.jpg
e00ca328 test/3pdata/blinksuite/cs-uma-cmyk-no-jfif-or-adobe-markers.jpg
e00ca328 test/3pdata/blinksuite/cs-uma-cmyk-unknown-transform.jpg
e00ca328 test/3pdata/blinksuite/cs-uma-cmyk.jpg
fe2877fe test/3pdata/blinksuite/cs-uma-cmyk-jfif-marker.jpg
fe2877fe test/3pdata/blinksuite/cs-uma-cmyk-no-jfif-or-adobe-markers.jpg
f8341b72 test/3pdata/blinksuite/cs-uma-cmyk-unknown-transform.jpg
fe2877fe test/3pdata/blinksuite/cs-uma-cmyk.jpg
1ec303fd test/3pdata/blinksuite/cs-uma-grayscale.jpg
c9eafb54 test/3pdata/blinksuite/cs-uma-rgb-non-interleaved.jpg
528a67f1 test/3pdata/blinksuite/cs-uma-rgb-unknown-transform.jpg
@@ -63,7 +63,7 @@ a027c965 test/3pdata/blinksuite/cs-uma-ycbcr-420-non-interleaved.jpg
8bd535aa test/3pdata/blinksuite/cs-uma-ycbcr-440.jpg
1bc16d1a test/3pdata/blinksuite/cs-uma-ycbcr-444.jpg
d97ce4e8 test/3pdata/blinksuite/cs-uma-ycbcr-other.jpg
e00ca328 test/3pdata/blinksuite/cs-uma-ycck.jpg
a2a940bc test/3pdata/blinksuite/cs-uma-ycck.jpg
b6000be6 test/3pdata/blinksuite/dice.png
1023c20a test/3pdata/blinksuite/empty-frame.png
32a03152 test/3pdata/blinksuite/flowchart.jpg
+1 -1
View File
@@ -3,7 +3,7 @@
f47bba01 test/3pdata/golangsuite/video-001.221212.jpeg
f887663d test/3pdata/golangsuite/video-001.221212.png
9db259ab test/3pdata/golangsuite/video-001.5bpp.gif
1263dc39 test/3pdata/golangsuite/video-001.cmyk.jpeg
7b281f70 test/3pdata/golangsuite/video-001.cmyk.jpeg
f543e98a test/3pdata/golangsuite/video-001.cmyk.png
0548cd56 test/3pdata/golangsuite/video-001.gif
0548cd56 test/3pdata/golangsuite/video-001.interlaced.gif