]> granicus.if.org Git - libjpeg-turbo/commit
TurboJPEG: Decompress 4:4:4 JPEGs with unusual SFs
authorDRC <information@libjpeg-turbo.org>
Mon, 21 Jan 2019 19:57:55 +0000 (13:57 -0600)
committerDRC <information@libjpeg-turbo.org>
Mon, 21 Jan 2019 20:26:00 +0000 (14:26 -0600)
commit479501b07c0afd8912a0e0f5b4740cfce9a89a4c
tree84c99e4c577007b75317b91e0fdfd50ed4e963e0
parent9bc8eb6449a32f452ab3fc9f94af672a0af13f81
TurboJPEG: Decompress 4:4:4 JPEGs with unusual SFs

Normally, 4:4:4 JPEGs have horizontal x vertical luminance & chrominance
sampling factors of 1x1.  However, it is technically legal to create
4:4:4 JPEGs with sampling factors of 2x1, 1x2, 3x1, or 1x3, since the
sums of the products of those sampling factors are still <= 10.  The
libjpeg API correctly decodes such images, so the TurboJPEG API should
as well.

Fixes #323
ChangeLog.md
turbojpeg.c