]> granicus.if.org Git - libjpeg-turbo/commit
tjLoadImage(): Don't convert RGB to grayscale
authorDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 17:33:05 +0000 (11:33 -0600)
committerDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 17:40:53 +0000 (11:40 -0600)
commit479fa1d870d2f42d38eff69fe87a10ec2f8b4b26
treec367b7e7f5d377079d1ca27dafe2f96e6c1f5cbe
parent8c40ac8ae68a36a95d66b8eda17a2fbd0669d707
tjLoadImage(): Don't convert RGB to grayscale

Loading RGB image files into a grayscale buffer isn't a particularly
useful feature, given that libjpeg-turbo can perform this conversion
much more optimally (with SIMD acceleration on some platforms) during
the compression process.  Also, the RGB2GRAY() macro was not producing
deterministic cross-platform results because of variations in the
round-off behavior of various floating point implementations, so
`tjunittest -bmp` was failing in i386 builds.
cdjpeg.h
doc/html/group___turbo_j_p_e_g.html
rdbmp.c
rdppm.c
tjunittest.c
turbojpeg.h