[Webkit-unassigned] [Bug 200163] JPEGImageDecoder: use libjpeg-turbo RGBA output path even for Adobe transform=0 JPEGs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 29 02:05:34 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=200163

--- Comment #4 from Loïc Yhuel <loic.yhuel at softathome.com> ---
LIBJPEG_TURBO_VERSION_NUMBER was added in 1.5.0, I wanted to do the test with the version which fixed the issue.

We could remove the code, but we would have to test the version, either :
 - with a solution like the proposed patch
 - in the code :
-#if defined(JCS_ALPHA_EXTENSIONS) && ASSUME_LITTLE_ENDIAN
+#if defined(LIBJPEG_TURBO_VERSION_NUMBER) && ASSUME_LITTLE_ENDIAN
+#if LIBJPEG_TURBO_VERSION_NUMBER >= 1002001
It would reference the 1.2.1 version, but only work with 1.5.0 and later, unless they are patched.

Older libjpeg-turbo versions would be handled as libjpeg, so without BGRA output.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190729/9114f98d/attachment-0001.html>


More information about the webkit-unassigned mailing list