blob: ba6a9ce8ceede85d5a21af3d1678d3f81829e098 [file] [log] [blame]
Any Android specific modifications to upstream libjpeg-turbo (1.5.1) should
be listed here:
(1) jconfig.h and jconfigint.h
These are included upstream as and
We have the option autogenerate these platform/version specific files (using
the libjpeg-turbo build system) or to manually create them.
Autogenerating these files on linux gets us most of the way, but we've needed
to add some multi-platform flexibility to the INLINE and SIZEOF_SIZE_T macros.
(2) simd/
The modification enables us to compile x86 SIMD.
The original code was:
%define EXTN(name) _ %+ name
The new code is:
%define EXTN(name) name
It is unclear why the unmodified code from upstream appends an underscore
to name. Before removing the underscore, the code failed to link because
the function names in the SIMD code did not match the callers (because of
the extra underscore).
(3) jmemmgr.c
Fix broken build with NDK platforms < android-21
Cherry picked from upstream:
(4) rdppm.c
Fix sign mismatch comparison warnings
Cherry picked from upstream:
(5) java/, tjbench.c, tjunittest.c, and turbojpeg.c
Add checks to ensure that the image is not larger than the allocated buffers.
Cherry picked from upstream:
(6) java/, tjbench.c
Fix logical errors when decompressing ICC data
This was pulled in due to a SEGFAULT that occurs when running the
proof-of-concept for (5)
Cherry picked from upstream: