-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.android
55 lines (42 loc) · 2.05 KB
/
README.android
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 jconfig.h.in and jconfigint.h.in.
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/jsimdext.inc
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:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/dfefba77520ded5c5fd4864e76352a5f3eb23e74
(4) rdppm.c
Fix sign mismatch comparison warnings
Cherry picked from upstream:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/d22fd541bf9dd87889c25909e19a640a580bcad7
(5) java/TJBench.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:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2a9e3bd7430cfda1bc812d139e0609c6aca0b884
(6) java/TJBench.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:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/11eec4a398f3fc1b9d39c1d3b81b53ae85d9b5e6
(7) tjbench.c
Fix memory management access violation
This was pulled in due to a SEGFAULT that occurs when running the
proof-of-concept for (5)
Cherry picked from upstream:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/5fce2e942136cb70e5a30ff15a2d58b07947aa84