├── .gitignore
├── jni
├── vendor
│ ├── libjpeg-turbo
│ │ ├── include
│ │ │ ├── jconfigint.h
│ │ │ ├── jconfig.h
│ │ │ └── jsimdcfg.inc
│ │ └── libjpeg-turbo-1.4.1
│ │ │ ├── java
│ │ │ ├── doc
│ │ │ │ ├── package-list
│ │ │ │ ├── resources
│ │ │ │ │ ├── tab.gif
│ │ │ │ │ ├── titlebar.gif
│ │ │ │ │ ├── background.gif
│ │ │ │ │ └── titlebar_end.gif
│ │ │ │ ├── allclasses-noframe.html
│ │ │ │ ├── allclasses-frame.html
│ │ │ │ ├── org
│ │ │ │ │ └── libjpegturbo
│ │ │ │ │ │ └── turbojpeg
│ │ │ │ │ │ └── package-frame.html
│ │ │ │ └── index.html
│ │ │ ├── MANIFEST.MF
│ │ │ ├── org_libjpegturbo_turbojpeg_TJTransformer.h
│ │ │ ├── org
│ │ │ │ └── libjpegturbo
│ │ │ │ │ └── turbojpeg
│ │ │ │ │ ├── TJLoader.java.in
│ │ │ │ │ ├── TJLoader.java.tmpl
│ │ │ │ │ └── TJScalingFactor.java
│ │ │ ├── CMakeLists.txt
│ │ │ ├── README
│ │ │ └── Makefile.am
│ │ │ ├── doxygen-extra.css
│ │ │ ├── doc
│ │ │ └── html
│ │ │ │ ├── doxygen-extra.css
│ │ │ │ ├── search
│ │ │ │ ├── groups_74.js
│ │ │ │ ├── all_68.js
│ │ │ │ ├── all_77.js
│ │ │ │ ├── all_78.js
│ │ │ │ ├── all_79.js
│ │ │ │ ├── all_72.js
│ │ │ │ ├── variables_68.js
│ │ │ │ ├── variables_77.js
│ │ │ │ ├── variables_78.js
│ │ │ │ ├── variables_79.js
│ │ │ │ ├── close.png
│ │ │ │ ├── mag_sel.png
│ │ │ │ ├── variables_72.js
│ │ │ │ ├── all_6e.js
│ │ │ │ ├── search_l.png
│ │ │ │ ├── search_m.png
│ │ │ │ ├── search_r.png
│ │ │ │ ├── all_63.js
│ │ │ │ ├── variables_6e.js
│ │ │ │ ├── variables_63.js
│ │ │ │ ├── all_6f.js
│ │ │ │ ├── all_64.js
│ │ │ │ ├── variables_6f.js
│ │ │ │ ├── variables_64.js
│ │ │ │ ├── classes_74.js
│ │ │ │ ├── typedefs_74.js
│ │ │ │ ├── enums_74.js
│ │ │ │ ├── nomatches.html
│ │ │ │ ├── variables_74.js
│ │ │ │ ├── all_63.html
│ │ │ │ ├── all_64.html
│ │ │ │ ├── all_68.html
│ │ │ │ ├── all_6e.html
│ │ │ │ ├── all_6f.html
│ │ │ │ ├── all_72.html
│ │ │ │ ├── all_74.html
│ │ │ │ ├── all_77.html
│ │ │ │ ├── all_78.html
│ │ │ │ ├── all_79.html
│ │ │ │ ├── enums_74.html
│ │ │ │ ├── groups_74.html
│ │ │ │ ├── classes_74.html
│ │ │ │ ├── typedefs_74.html
│ │ │ │ ├── enumvalues_74.html
│ │ │ │ ├── functions_74.html
│ │ │ │ ├── variables_63.html
│ │ │ │ ├── variables_64.html
│ │ │ │ ├── variables_68.html
│ │ │ │ ├── variables_6e.html
│ │ │ │ ├── variables_6f.html
│ │ │ │ ├── variables_72.html
│ │ │ │ ├── variables_74.html
│ │ │ │ ├── variables_77.html
│ │ │ │ ├── variables_78.html
│ │ │ │ ├── variables_79.html
│ │ │ │ └── functions_74.js
│ │ │ │ ├── bc_s.png
│ │ │ │ ├── bdwn.png
│ │ │ │ ├── open.png
│ │ │ │ ├── closed.png
│ │ │ │ ├── ftv2cl.png
│ │ │ │ ├── ftv2mo.png
│ │ │ │ ├── ftv2ns.png
│ │ │ │ ├── nav_f.png
│ │ │ │ ├── nav_g.png
│ │ │ │ ├── nav_h.png
│ │ │ │ ├── tab_a.png
│ │ │ │ ├── tab_b.png
│ │ │ │ ├── tab_h.png
│ │ │ │ ├── tab_s.png
│ │ │ │ ├── doxygen.png
│ │ │ │ ├── ftv2blank.png
│ │ │ │ ├── ftv2doc.png
│ │ │ │ ├── ftv2link.png
│ │ │ │ ├── ftv2mnode.png
│ │ │ │ ├── ftv2node.png
│ │ │ │ ├── ftv2pnode.png
│ │ │ │ ├── sync_off.png
│ │ │ │ ├── sync_on.png
│ │ │ │ ├── ftv2folderopen.png
│ │ │ │ ├── ftv2lastnode.png
│ │ │ │ ├── ftv2mlastnode.png
│ │ │ │ ├── ftv2plastnode.png
│ │ │ │ ├── ftv2splitbar.png
│ │ │ │ ├── ftv2vertline.png
│ │ │ │ ├── ftv2folderclosed.png
│ │ │ │ ├── tabs.css
│ │ │ │ └── dynsections.js
│ │ │ ├── md5
│ │ │ ├── Makefile.am
│ │ │ ├── md5.h
│ │ │ ├── md5hl.c
│ │ │ └── md5cmp.c
│ │ │ ├── testimages
│ │ │ ├── testorig.jpg
│ │ │ ├── testorig.ppm
│ │ │ ├── testimgari.jpg
│ │ │ ├── testimgint.jpg
│ │ │ ├── testorig12.jpg
│ │ │ ├── vgl_5674_0098.bmp
│ │ │ ├── vgl_6434_0018a.bmp
│ │ │ ├── vgl_6548_0026a.bmp
│ │ │ ├── nightshot_iso_100.bmp
│ │ │ └── nightshot_iso_100.txt
│ │ │ ├── libjpeg.map.in
│ │ │ ├── jconfigint.h.in
│ │ │ ├── win
│ │ │ ├── jconfigint.h.in
│ │ │ ├── jconfig.h.in
│ │ │ ├── jsimdcfg.inc
│ │ │ ├── jpeg62.def
│ │ │ ├── jpeg62-memsrcdst.def
│ │ │ ├── jpeg7.def
│ │ │ ├── jpeg7-memsrcdst.def
│ │ │ └── jpeg8.def
│ │ │ ├── cmakescripts
│ │ │ ├── md5cmp.cmake
│ │ │ └── testclean.cmake
│ │ │ ├── doxygen.config
│ │ │ ├── release
│ │ │ ├── Welcome.rtf
│ │ │ ├── Distribution.xml
│ │ │ ├── makecygwinpkg.in
│ │ │ ├── ReadMe.txt
│ │ │ ├── deb-control.tmpl
│ │ │ ├── makedpkg.in
│ │ │ └── License.rtf
│ │ │ ├── turbojpeg-mapfile
│ │ │ ├── jpegcomp.h
│ │ │ ├── simd
│ │ │ ├── jdct.inc
│ │ │ ├── nasm_lt.sh
│ │ │ ├── jcolsamp.inc
│ │ │ ├── Makefile.am
│ │ │ ├── CMakeLists.txt
│ │ │ ├── jsimdcpu.asm
│ │ │ ├── jcgray-sse2.asm
│ │ │ └── jcgray-sse2-64.asm
│ │ │ ├── jversion.h
│ │ │ ├── rdgif.c
│ │ │ ├── jchuff.h
│ │ │ ├── rdjpgcom.1
│ │ │ ├── bmp.h
│ │ │ ├── tjutil.h
│ │ │ ├── jconfig.h.in
│ │ │ ├── tjutil.c
│ │ │ ├── jcinit.c
│ │ │ ├── sharedlib
│ │ │ └── CMakeLists.txt
│ │ │ ├── wrjpgcom.1
│ │ │ ├── jinclude.h
│ │ │ ├── jmemnobs.c
│ │ │ ├── turbojpeg-mapfile.jni
│ │ │ ├── jsimddct.h
│ │ │ ├── jsimd.h
│ │ │ ├── coderules.txt
│ │ │ └── jcomapi.c
│ └── Android.mk
├── Android.mk
└── Application.mk
├── Android.mk
├── LICENSE
├── CONTRIBUTING.md
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | /libs/
2 | /obj/
3 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/include/jconfigint.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Android.mk:
--------------------------------------------------------------------------------
1 | include $(call all-subdir-makefiles)
2 |
--------------------------------------------------------------------------------
/jni/Android.mk:
--------------------------------------------------------------------------------
1 | include $(call all-subdir-makefiles)
2 |
--------------------------------------------------------------------------------
/jni/vendor/Android.mk:
--------------------------------------------------------------------------------
1 | include $(call all-subdir-makefiles)
2 |
--------------------------------------------------------------------------------
/jni/Application.mk:
--------------------------------------------------------------------------------
1 | APP_ABI := armeabi armeabi-v7a armeabi-v7a-hard arm64-v8a x86 x86_64
2 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/package-list:
--------------------------------------------------------------------------------
1 | org.libjpegturbo.turbojpeg
2 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doxygen-extra.css:
--------------------------------------------------------------------------------
1 | code {
2 | color: #4665A2;
3 | }
4 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/doxygen-extra.css:
--------------------------------------------------------------------------------
1 | code {
2 | color: #4665A2;
3 | }
4 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Main-Class: TJExample
3 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/md5/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_PROGRAMS = md5cmp
2 |
3 | md5cmp_SOURCES = md5cmp.c md5.c md5hl.c md5.h
4 | md5cmp_CFLAGS = -I$(srcdir)
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/groups_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['turbojpeg',['TurboJPEG',['../group___turbo_j_p_e_g.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/bc_s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/bc_s.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/bdwn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/bdwn.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/open.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/closed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/closed.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2cl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2cl.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mo.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2ns.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2ns.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_f.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_g.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_g.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/nav_h.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_a.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_b.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_h.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tab_s.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/doxygen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/doxygen.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2blank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2blank.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2doc.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2link.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mnode.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2node.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2pnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2pnode.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_68.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['h',['h',['../structtjregion.html#aecefc45a26f4d8b60dd4d825c1710115',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_77.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['w',['w',['../structtjregion.html#ab6eb73ceef584fc23c8c8097926dce42',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_78.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['x',['x',['../structtjregion.html#a4b6a37a93997091b26a75831fa291ad9',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_79.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['y',['y',['../structtjregion.html#a7b3e0c24cfe87acc80e334cafdcf22c2',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/sync_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/sync_off.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/sync_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/sync_on.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_72.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['r',['r',['../structtjtransform.html#ac324e5e442abec8a961e5bf219db12cf',1,'tjtransform']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_68.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['h',['h',['../structtjregion.html#aecefc45a26f4d8b60dd4d825c1710115',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_77.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['w',['w',['../structtjregion.html#ab6eb73ceef584fc23c8c8097926dce42',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_78.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['x',['x',['../structtjregion.html#a4b6a37a93997091b26a75831fa291ad9',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_79.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['y',['y',['../structtjregion.html#a7b3e0c24cfe87acc80e334cafdcf22c2',1,'tjregion']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig.jpg
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig.ppm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig.ppm
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2folderopen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2folderopen.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2lastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2lastnode.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mlastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2mlastnode.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2plastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2plastnode.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2splitbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2splitbar.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2vertline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2vertline.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/close.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/mag_sel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/mag_sel.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_72.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['r',['r',['../structtjtransform.html#ac324e5e442abec8a961e5bf219db12cf',1,'tjtransform']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/tab.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/tab.gif
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testimgari.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testimgari.jpg
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testimgint.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testimgint.jpg
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/testorig12.jpg
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2folderclosed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/ftv2folderclosed.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_6e.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['num',['num',['../structtjscalingfactor.html#a9b011e57f981ee23083e2c1aa5e640ec',1,'tjscalingfactor']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_l.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_l.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_m.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_m.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/search_r.png
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_5674_0098.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_5674_0098.bmp
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_6434_0018a.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_6434_0018a.bmp
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_6548_0026a.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/vgl_6548_0026a.bmp
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/titlebar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/titlebar.gif
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/nightshot_iso_100.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/nightshot_iso_100.bmp
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_63.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['customfilter',['customFilter',['../structtjtransform.html#a43ee1bcdd2a8d7249a756774f78793c1',1,'tjtransform']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_6e.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['num',['num',['../structtjscalingfactor.html#a9b011e57f981ee23083e2c1aa5e640ec',1,'tjscalingfactor']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/background.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/background.gif
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/titlebar_end.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maxmpz/android-libjpeg-turbo/HEAD/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/resources/titlebar_end.gif
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_63.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['customfilter',['customFilter',['../structtjtransform.html#a43ee1bcdd2a8d7249a756774f78793c1',1,'tjtransform']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/libjpeg.map.in:
--------------------------------------------------------------------------------
1 | LIBJPEGTURBO_@JPEG_LIB_VERSION_DECIMAL@ {
2 | @MEM_SRCDST_FUNCTIONS@
3 | local:
4 | jsimd_*;
5 | jconst_*;
6 | };
7 |
8 | LIBJPEG_@JPEG_LIB_VERSION_DECIMAL@ {
9 | global:
10 | *;
11 | };
12 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_6f.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['op',['op',['../structtjtransform.html#a2525aab4ba6978a1c273f74fef50e498',1,'tjtransform']]],
4 | ['options',['options',['../structtjtransform.html#ac0e74655baa4402209a21e1ae481c8f6',1,'tjtransform']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_64.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['data',['data',['../structtjtransform.html#a688fe8f1a8ecc12a538d9e561cf338e3',1,'tjtransform']]],
4 | ['denom',['denom',['../structtjscalingfactor.html#aefbcdf3e9e62274b2d312c695f133ce3',1,'tjscalingfactor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_6f.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['op',['op',['../structtjtransform.html#a2525aab4ba6978a1c273f74fef50e498',1,'tjtransform']]],
4 | ['options',['options',['../structtjtransform.html#ac0e74655baa4402209a21e1ae481c8f6',1,'tjtransform']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_64.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['data',['data',['../structtjtransform.html#a688fe8f1a8ecc12a538d9e561cf338e3',1,'tjtransform']]],
4 | ['denom',['denom',['../structtjscalingfactor.html#aefbcdf3e9e62274b2d312c695f133ce3',1,'tjscalingfactor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/classes_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['tjregion',['tjregion',['../structtjregion.html',1,'']]],
4 | ['tjscalingfactor',['tjscalingfactor',['../structtjscalingfactor.html',1,'']]],
5 | ['tjtransform',['tjtransform',['../structtjtransform.html',1,'']]]
6 | ];
7 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jconfigint.h.in:
--------------------------------------------------------------------------------
1 | /* libjpeg-turbo build number */
2 | #undef BUILD
3 |
4 | /* How to obtain function inlining. */
5 | #undef INLINE
6 |
7 | /* Define to the full name of this package. */
8 | #undef PACKAGE_NAME
9 |
10 | /* Version number of package */
11 | #undef VERSION
12 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/typedefs_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['tjhandle',['tjhandle',['../group___turbo_j_p_e_g.html#ga758d2634ecb4949de7815cba621f5763',1,'turbojpeg.h']]],
4 | ['tjtransform',['tjtransform',['../group___turbo_j_p_e_g.html#gaa29f3189c41be12ec5dee7caec318a31',1,'turbojpeg.h']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jconfigint.h.in:
--------------------------------------------------------------------------------
1 | #define VERSION "@VERSION@"
2 | #define BUILD "@BUILD@"
3 | #define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"
4 |
5 | #ifndef INLINE
6 | #if defined(__GNUC__)
7 | #define INLINE inline __attribute__((always_inline))
8 | #elif defined(_MSC_VER)
9 | #define INLINE __forceinline
10 | #else
11 | #define INLINE
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/cmakescripts/md5cmp.cmake:
--------------------------------------------------------------------------------
1 | if(NOT MD5)
2 | message(FATAL_ERROR "MD5 not specified")
3 | endif()
4 |
5 | if(NOT FILE)
6 | message(FATAL_ERROR "FILE not specified")
7 | endif()
8 |
9 | file(MD5 ${FILE} MD5FILE)
10 |
11 | if(NOT MD5 STREQUAL MD5FILE)
12 | message(FATAL_ERROR "MD5 of ${FILE} should be ${MD5}, not ${MD5FILE}.")
13 | else()
14 | message(STATUS "${MD5}: OK")
15 | endif()
16 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doxygen.config:
--------------------------------------------------------------------------------
1 | PROJECT_NAME = TurboJPEG
2 | PROJECT_NUMBER = 1.4
3 | OUTPUT_DIRECTORY = doc/
4 | USE_WINDOWS_ENCODING = NO
5 | OPTIMIZE_OUTPUT_FOR_C = YES
6 | WARN_NO_PARAMDOC = YES
7 | GENERATE_LATEX = NO
8 | FILE_PATTERNS = turbojpeg.h
9 | HIDE_UNDOC_MEMBERS = YES
10 | VERBATIM_HEADERS = NO
11 | EXTRACT_STATIC = YES
12 | JAVADOC_AUTOBRIEF = YES
13 | MAX_INITIALIZER_LINES = 0
14 | ALWAYS_DETAILED_SEC = YES
15 | HTML_TIMESTAMP = NO
16 | HTML_EXTRA_STYLESHEET = doxygen-extra.css
17 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/enums_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['tjcs',['TJCS',['../group___turbo_j_p_e_g.html#ga4f83ad3368e0e29d1957be0efa7c3720',1,'turbojpeg.h']]],
4 | ['tjpf',['TJPF',['../group___turbo_j_p_e_g.html#gac916144e26c3817ac514e64ae5d12e2a',1,'turbojpeg.h']]],
5 | ['tjsamp',['TJSAMP',['../group___turbo_j_p_e_g.html#ga1d047060ea80bb9820d540bb928e9074',1,'turbojpeg.h']]],
6 | ['tjxop',['TJXOP',['../group___turbo_j_p_e_g.html#ga2de531af4e7e6c4f124908376b354866',1,'turbojpeg.h']]]
7 | ];
8 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/nomatches.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright © CyberAgent, Inc. All Rights Reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/cmakescripts/testclean.cmake:
--------------------------------------------------------------------------------
1 | file(GLOB FILES
2 | testout*
3 | *_GRAY_*.bmp
4 | *_GRAY_*.png
5 | *_GRAY_*.ppm
6 | *_GRAY_*.jpg
7 | *_GRAY.yuv
8 | *_420_*.bmp
9 | *_420_*.png
10 | *_420_*.ppm
11 | *_420_*.jpg
12 | *_420.yuv
13 | *_422_*.bmp
14 | *_422_*.png
15 | *_422_*.ppm
16 | *_422_*.jpg
17 | *_422.yuv
18 | *_444_*.bmp
19 | *_444_*.png
20 | *_444_*.ppm
21 | *_444_*.jpg
22 | *_444.yuv
23 | *_440_*.bmp
24 | *_440_*.png
25 | *_440_*.ppm
26 | *_440_*.jpg
27 | *_440.yuv)
28 |
29 | if(NOT FILES STREQUAL "")
30 | message(STATUS "Removing test files")
31 | file(REMOVE ${FILES})
32 | else()
33 | message(STATUS "No files to remove")
34 | endif()
35 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/Welcome.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360
2 | {\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 CourierNewPSMT;}
3 | {\colortbl;\red255\green255\blue255;}
4 | \margl1440\margr1440\vieww9000\viewh8400\viewkind0
5 | \deftab720
6 | \pard\pardeftab720\ql\qnatural
7 |
8 | \f0\fs24 \cf0 This installer will install the libjpeg-turbo SDK and run-time libraries onto your computer so that you can use libjpeg-turbo to build new applications or accelerate existing ones. To remove the libjpeg-turbo package, run\
9 | \
10 | \pard\pardeftab720\ql\qnatural
11 |
12 | \f1 \cf0 /opt/libjpeg-turbo/bin/uninstall\
13 | \pard\pardeftab720\ql\qnatural
14 |
15 | \f0 \cf0 \
16 | from the command line.\
17 | }
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['tjblueoffset',['tjBlueOffset',['../group___turbo_j_p_e_g.html#ga84e2e35d3f08025f976ec1ec53693dea',1,'turbojpeg.h']]],
4 | ['tjgreenoffset',['tjGreenOffset',['../group___turbo_j_p_e_g.html#ga82d6e35da441112a411da41923c0ba2f',1,'turbojpeg.h']]],
5 | ['tjmcuheight',['tjMCUHeight',['../group___turbo_j_p_e_g.html#gabd247bb9fecb393eca57366feb8327bf',1,'turbojpeg.h']]],
6 | ['tjmcuwidth',['tjMCUWidth',['../group___turbo_j_p_e_g.html#ga9e61e7cd47a15a173283ba94e781308c',1,'turbojpeg.h']]],
7 | ['tjpixelsize',['tjPixelSize',['../group___turbo_j_p_e_g.html#gad77cf8fe5b2bfd3cb3f53098146abb4c',1,'turbojpeg.h']]],
8 | ['tjredoffset',['tjRedOffset',['../group___turbo_j_p_e_g.html#gadd9b446742ac8a3923f7992c7988fea8',1,'turbojpeg.h']]]
9 | ];
10 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/include/jconfig.h:
--------------------------------------------------------------------------------
1 | #define BUILD 20191
2 | #define C_ARITH_CODING_SUPPORTED 0
3 | #define D_ARITH_CODING_SUPPORTED 1
4 | #define BITS_IN_JSAMPLE 8
5 | #define HAVE_DLFCN_H 1
6 | #define HAVE_INTTYPES_H 1
7 | #define HAVE_LOCALE_H 1
8 | #define HAVE_MEMCPY 1
9 | #define HAVE_MEMORY_H 1
10 | #define HAVE_MEMSET 1
11 | #define HAVE_STDDEF_H 1
12 | #define HAVE_STDINT_H 1
13 | #define HAVE_STDLIB_H 1
14 | #define HAVE_STRINGS_H 1
15 | #define HAVE_STRING_H 1
16 | #define HAVE_SYS_STAT_H 1
17 | #define HAVE_SYS_TYPES_H 1
18 | #define HAVE_UNISTD_H 1
19 | #define HAVE_UNSIGNED_CHAR 1
20 | #define HAVE_UNSIGNED_SHORT 1
21 | #define INLINE inline __attribute__((always_inline))
22 | #define JPEG_LIB_VERSION 62
23 | #define LIBJPEG_TURBO_VERSION 1.3.90
24 | #define MEM_SRCDST_SUPPORTED 1
25 | #define NEED_SYS_TYPES_H 1
26 | #define STDC_HEADERS 1
27 | #define WITH_SIMD 1
28 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/Distribution.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | libjpeg-turbo
4 |
5 |
6 |
7 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | libjpeg-turbo.pkg
24 |
25 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/org_libjpegturbo_turbojpeg_TJTransformer.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class org_libjpegturbo_turbojpeg_TJTransformer */
4 |
5 | #ifndef _Included_org_libjpegturbo_turbojpeg_TJTransformer
6 | #define _Included_org_libjpegturbo_turbojpeg_TJTransformer
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | /*
11 | * Class: org_libjpegturbo_turbojpeg_TJTransformer
12 | * Method: init
13 | * Signature: ()V
14 | */
15 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJTransformer_init
16 | (JNIEnv *, jobject);
17 |
18 | /*
19 | * Class: org_libjpegturbo_turbojpeg_TJTransformer
20 | * Method: transform
21 | * Signature: ([BI[[B[Lorg/libjpegturbo/turbojpeg/TJTransform;I)[I
22 | */
23 | JNIEXPORT jintArray JNICALL Java_org_libjpegturbo_turbojpeg_TJTransformer_transform
24 | (JNIEnv *, jobject, jbyteArray, jint, jobjectArray, jobjectArray, jint);
25 |
26 | #ifdef __cplusplus
27 | }
28 | #endif
29 | #endif
30 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/makecygwinpkg.in:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -u
4 | set -e
5 | trap onexit INT
6 | trap onexit TERM
7 | trap onexit EXIT
8 |
9 | TMPDIR=
10 |
11 | onexit()
12 | {
13 | if [ ! "$TMPDIR" = "" ]; then
14 | rm -rf $TMPDIR
15 | fi
16 | }
17 |
18 | PACKAGE_NAME=@PKGNAME@
19 | VERSION=@VERSION@
20 | BUILD=@BUILD@
21 | SRCDIR=@abs_top_srcdir@
22 |
23 | PREFIX=%{__prefix}
24 | DOCDIR=%{__docdir}
25 | LIBDIR=%{__libdir}
26 |
27 | umask 022
28 | rm -f $PACKAGE_NAME-$VERSION-$BUILD.tar.bz2
29 | TMPDIR=`mktemp -d /tmp/ljtbuild.XXXXXX`
30 | __PWD=`pwd`
31 | make install DESTDIR=$TMPDIR/pkg docdir=/usr/share/doc/$PACKAGE_NAME-$VERSION \
32 | exampledir=/usr/share/doc/$PACKAGE_NAME-$VERSION
33 | rm $TMPDIR/pkg$LIBDIR/*.la
34 | if [ "$PREFIX" = "/opt/libjpeg-turbo" -a "$DOCDIR" = "/opt/libjpeg-turbo/doc" ]; then
35 | ln -fs /usr/share/doc/$PACKAGE_NAME-$VERSION $TMPDIR/pkg$DOCDIR
36 | fi
37 | cd $TMPDIR/pkg
38 | tar cfj ../$PACKAGE_NAME-$VERSION-$BUILD.tar.bz2 *
39 | cd $__PWD
40 | mv $TMPDIR/*.tar.bz2 .
41 |
42 | exit 0
43 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/turbojpeg-mapfile:
--------------------------------------------------------------------------------
1 | TURBOJPEG_1.0
2 | {
3 | global:
4 | tjInitCompress;
5 | tjCompress;
6 | TJBUFSIZE;
7 | tjInitDecompress;
8 | tjDecompressHeader;
9 | tjDecompress;
10 | tjDestroy;
11 | tjGetErrorStr;
12 | local:
13 | *;
14 | };
15 |
16 | TURBOJPEG_1.1
17 | {
18 | global:
19 | TJBUFSIZEYUV;
20 | tjDecompressHeader2;
21 | tjDecompressToYUV;
22 | tjEncodeYUV;
23 | } TURBOJPEG_1.0;
24 |
25 | TURBOJPEG_1.2
26 | {
27 | global:
28 | tjAlloc;
29 | tjBufSize;
30 | tjBufSizeYUV;
31 | tjCompress2;
32 | tjDecompress2;
33 | tjEncodeYUV2;
34 | tjFree;
35 | tjGetScalingFactors;
36 | tjInitTransform;
37 | tjTransform;
38 | } TURBOJPEG_1.1;
39 |
40 | TURBOJPEG_1.4
41 | {
42 | global:
43 | tjBufSizeYUV2;
44 | tjCompressFromYUV;
45 | tjCompressFromYUVPlanes;
46 | tjDecodeYUV;
47 | tjDecodeYUVPlanes;
48 | tjDecompressHeader3;
49 | tjDecompressToYUV2;
50 | tjDecompressToYUVPlanes;
51 | tjEncodeYUV3;
52 | tjEncodeYUVPlanes;
53 | tjPlaneHeight;
54 | tjPlaneSizeYUV;
55 | tjPlaneWidth;
56 | } TURBOJPEG_1.2;
57 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_63.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_64.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_68.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_6e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_6f.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_72.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_77.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_78.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/all_79.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/enums_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/groups_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/classes_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/typedefs_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/enumvalues_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/functions_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_63.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_64.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_68.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_6e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_6f.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_72.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_74.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_77.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_78.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/variables_79.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
Loading...
12 |
13 |
16 |
Searching...
17 |
No Matches
18 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jpegcomp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jpegcomp.h
3 | *
4 | * Copyright (C) 2010, D. R. Commander
5 | * For conditions of distribution and use, see the accompanying README file.
6 | *
7 | * JPEG compatibility macros
8 | * These declarations are considered internal to the JPEG library; most
9 | * applications using the library shouldn't need to include this file.
10 | */
11 |
12 | #if JPEG_LIB_VERSION >= 70
13 | #define _DCT_scaled_size DCT_h_scaled_size
14 | #define _DCT_h_scaled_size DCT_h_scaled_size
15 | #define _DCT_v_scaled_size DCT_v_scaled_size
16 | #define _min_DCT_scaled_size min_DCT_h_scaled_size
17 | #define _min_DCT_h_scaled_size min_DCT_h_scaled_size
18 | #define _min_DCT_v_scaled_size min_DCT_v_scaled_size
19 | #define _jpeg_width jpeg_width
20 | #define _jpeg_height jpeg_height
21 | #else
22 | #define _DCT_scaled_size DCT_scaled_size
23 | #define _DCT_h_scaled_size DCT_scaled_size
24 | #define _DCT_v_scaled_size DCT_scaled_size
25 | #define _min_DCT_scaled_size min_DCT_scaled_size
26 | #define _min_DCT_h_scaled_size min_DCT_scaled_size
27 | #define _min_DCT_v_scaled_size min_DCT_scaled_size
28 | #define _jpeg_width image_width
29 | #define _jpeg_height image_height
30 | #endif
31 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | We are happy to accept any contributions that make sense and respect the rules listed below.
4 |
5 | ## How to contribute
6 |
7 | 1. Fork the repo.
8 | 2. Create a feature branch for your contribution out of the `master` branch. Only one contribution per branch is accepted.
9 | 3. Implement your contribution while respecting our rules (see below).
10 | 4. Make sure that your contribution builds and all necessary files have been committed.
11 | 5. Submit a pull request against our `master` branch!
12 |
13 | ## Rules
14 |
15 | * **Do** use feature branches.
16 | * **Do** conform to existing coding style so that your contribution fits in.
17 | * **Do** use [EditorConfig](http://editorconfig.org/) to enforce our [whitespace rules](.editorconfig). If your editor is not supported, enforce the settings manually.
18 | * **Do not** commit any generated files, unless already in the repo. If absolutely necessary, explain why.
19 | * **Do not** create any top level files or directories. If absolutely necessary, explain why and update [.gitignore](.gitignore) if appropriate.
20 |
21 | ## License
22 |
23 | By contributing your code, you agree to license your contribution under our [LICENSE](LICENSE).
24 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/jdct.inc:
--------------------------------------------------------------------------------
1 | ;
2 | ; jdct.inc - private declarations for forward & reverse DCT subsystems
3 | ;
4 | ; Copyright 2009 Pierre Ossman for Cendio AB
5 | ;
6 | ; Based on
7 | ; x86 SIMD extension for IJG JPEG library
8 | ; Copyright (C) 1999-2006, MIYASAKA Masaru.
9 | ; For conditions of distribution and use, see copyright notice in jsimdext.inc
10 | ;
11 | ; [TAB8]
12 |
13 | ; Each IDCT routine is responsible for range-limiting its results and
14 | ; converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
15 | ; be quite far out of range if the input data is corrupt, so a bulletproof
16 | ; range-limiting step is required. We use a mask-and-table-lookup method
17 | ; to do the combined operations quickly.
18 | ;
19 | %define RANGE_MASK (MAXJSAMPLE * 4 + 3) ; 2 bits wider than legal samples
20 |
21 | %define ROW(n,b,s) ((b)+(n)*(s))
22 | %define COL(n,b,s) ((b)+(n)*(s)*DCTSIZE)
23 |
24 | %define DWBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_DWORD)
25 | %define MMBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_MMWORD)
26 | %define XMMBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_XMMWORD)
27 |
28 | ; --------------------------------------------------------------------------
29 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/ReadMe.txt:
--------------------------------------------------------------------------------
1 | libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as libjpeg, all else being equal. On other types of systems, libjpeg-turbo can still outperform libjpeg by a significant amount, by virtue of its highly-optimized Huffman coding routines. In many cases, the performance of libjpeg-turbo rivals that of proprietary high-speed JPEG codecs.
2 |
3 | libjpeg-turbo implements both the traditional libjpeg API as well as the less powerful but more straightforward TurboJPEG API. libjpeg-turbo also features colorspace extensions that allow it to compress from/decompress to 32-bit and big-endian pixel buffers (RGBX, XBGR, etc.), as well as a full-featured Java interface.
4 |
5 | libjpeg-turbo was originally based on libjpeg/SIMD, an MMX-accelerated derivative of libjpeg v6b developed by Miyasaka Masaru. The TigerVNC and VirtualGL projects made numerous enhancements to the codec in 2009, and in early 2010, libjpeg-turbo spun off into an independent project, with the goal of making high-speed JPEG compression/decompression technology available to a broader range of users and developers.
6 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jversion.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jversion.h
3 | *
4 | * This file was part of the Independent JPEG Group's software:
5 | * Copyright (C) 1991-2012, Thomas G. Lane, Guido Vollbeding.
6 | * libjpeg-turbo Modifications:
7 | * Copyright (C) 2010, 2012-2015, D. R. Commander.
8 | * For conditions of distribution and use, see the accompanying README file.
9 | *
10 | * This file contains software version identification.
11 | */
12 |
13 |
14 | #if JPEG_LIB_VERSION >= 80
15 |
16 | #define JVERSION "8d 15-Jan-2012"
17 |
18 | #elif JPEG_LIB_VERSION >= 70
19 |
20 | #define JVERSION "7 27-Jun-2009"
21 |
22 | #else
23 |
24 | #define JVERSION "6b 27-Mar-1998"
25 |
26 | #endif
27 |
28 | #define JCOPYRIGHT "Copyright (C) 1991-2012 Thomas G. Lane, Guido Vollbeding\n" \
29 | "Copyright (C) 1999-2006 MIYASAKA Masaru\n" \
30 | "Copyright (C) 2009 Pierre Ossman for Cendio AB\n" \
31 | "Copyright (C) 2009-2015 D. R. Commander\n" \
32 | "Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)\n" \
33 | "Copyright (C) 2013-2014 MIPS Technologies, Inc.\n" \
34 | "Copyright (C) 2013 Linaro Limited"
35 |
36 | #define JCOPYRIGHT_SHORT "Copyright (C) 1991-2015 The libjpeg-turbo Project and many others"
37 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/tabs.css:
--------------------------------------------------------------------------------
1 | .tabs, .tabs2, .tabs3 {
2 | background-image: url('tab_b.png');
3 | width: 100%;
4 | z-index: 101;
5 | font-size: 13px;
6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
7 | }
8 |
9 | .tabs2 {
10 | font-size: 10px;
11 | }
12 | .tabs3 {
13 | font-size: 9px;
14 | }
15 |
16 | .tablist {
17 | margin: 0;
18 | padding: 0;
19 | display: table;
20 | }
21 |
22 | .tablist li {
23 | float: left;
24 | display: table-cell;
25 | background-image: url('tab_b.png');
26 | line-height: 36px;
27 | list-style: none;
28 | }
29 |
30 | .tablist a {
31 | display: block;
32 | padding: 0 20px;
33 | font-weight: bold;
34 | background-image:url('tab_s.png');
35 | background-repeat:no-repeat;
36 | background-position:right;
37 | color: #283A5D;
38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
39 | text-decoration: none;
40 | outline: none;
41 | }
42 |
43 | .tabs3 .tablist a {
44 | padding: 0 10px;
45 | }
46 |
47 | .tablist a:hover {
48 | background-image: url('tab_h.png');
49 | background-repeat:repeat-x;
50 | color: #fff;
51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
52 | text-decoration: none;
53 | }
54 |
55 | .tablist li.current a {
56 | background-image: url('tab_a.png');
57 | background-repeat:repeat-x;
58 | color: #fff;
59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
60 | }
61 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/rdgif.c:
--------------------------------------------------------------------------------
1 | /*
2 | * rdgif.c
3 | *
4 | * Copyright (C) 1991-1997, Thomas G. Lane.
5 | * This file is part of the Independent JPEG Group's software.
6 | * For conditions of distribution and use, see the accompanying README file.
7 | *
8 | * This file contains routines to read input images in GIF format.
9 | *
10 | *****************************************************************************
11 | * NOTE: to avoid entanglements with Unisys' patent on LZW compression, *
12 | * the ability to read GIF files has been removed from the IJG distribution. *
13 | * Sorry about that. *
14 | *****************************************************************************
15 | *
16 | * We are required to state that
17 | * "The Graphics Interchange Format(c) is the Copyright property of
18 | * CompuServe Incorporated. GIF(sm) is a Service Mark property of
19 | * CompuServe Incorporated."
20 | */
21 |
22 | #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
23 |
24 | #ifdef GIF_SUPPORTED
25 |
26 | /*
27 | * The module selection routine for GIF format input.
28 | */
29 |
30 | GLOBAL(cjpeg_source_ptr)
31 | jinit_read_gif (j_compress_ptr cinfo)
32 | {
33 | fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n");
34 | exit(EXIT_FAILURE);
35 | return NULL; /* keep compiler happy */
36 | }
37 |
38 | #endif /* GIF_SUPPORTED */
39 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/allclasses-noframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | All Classes
6 |
7 |
8 |
9 | All Classes
10 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/allclasses-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | All Classes
6 |
7 |
8 |
9 | All Classes
10 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jchuff.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jchuff.h
3 | *
4 | * This file was part of the Independent JPEG Group's software:
5 | * Copyright (C) 1991-1997, Thomas G. Lane.
6 | * It was modified by The libjpeg-turbo Project to include only code relevant
7 | * to libjpeg-turbo.
8 | * For conditions of distribution and use, see the accompanying README file.
9 | *
10 | * This file contains declarations for Huffman entropy encoding routines
11 | * that are shared between the sequential encoder (jchuff.c) and the
12 | * progressive encoder (jcphuff.c). No other modules need to see these.
13 | */
14 |
15 | /* The legal range of a DCT coefficient is
16 | * -1024 .. +1023 for 8-bit data;
17 | * -16384 .. +16383 for 12-bit data.
18 | * Hence the magnitude should always fit in 10 or 14 bits respectively.
19 | */
20 |
21 | #if BITS_IN_JSAMPLE == 8
22 | #define MAX_COEF_BITS 10
23 | #else
24 | #define MAX_COEF_BITS 14
25 | #endif
26 |
27 | /* Derived data constructed for each Huffman table */
28 |
29 | typedef struct {
30 | unsigned int ehufco[256]; /* code for each symbol */
31 | char ehufsi[256]; /* length of code for each symbol */
32 | /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */
33 | } c_derived_tbl;
34 |
35 | /* Expand a Huffman table definition into the derived format */
36 | EXTERN(void) jpeg_make_c_derived_tbl
37 | (j_compress_ptr cinfo, boolean isDC, int tblno,
38 | c_derived_tbl ** pdtbl);
39 |
40 | /* Generate an optimal table definition given the specified counts */
41 | EXTERN(void) jpeg_gen_optimal_table
42 | (j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[]);
43 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/org/libjpegturbo/turbojpeg/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | org.libjpegturbo.turbojpeg
6 |
7 |
8 |
9 |
10 |
11 |
Interfaces
12 |
15 |
Classes
16 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/deb-control.tmpl:
--------------------------------------------------------------------------------
1 | Package: {__PKGNAME}
2 | Version: {__VERSION}-{__BUILD}
3 | Section: misc
4 | Priority: optional
5 | Architecture: {__ARCH}
6 | Essential: no
7 | Maintainer: The libjpeg-turbo Project
8 | Homepage: http://www.libjpeg-turbo.org
9 | Installed-Size: {__SIZE}
10 | Description: A SIMD-accelerated JPEG codec that provides both the libjpeg and TurboJPEG APIs
11 | libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2,
12 | NEON) to accelerate baseline JPEG compression and decompression on x86,
13 | x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as
14 | fast as libjpeg, all else being equal. On other types of systems,
15 | libjpeg-turbo can still outperform libjpeg by a significant amount, by virtue
16 | of its highly-optimized Huffman coding routines. In many cases, the
17 | performance of libjpeg-turbo rivals that of proprietary high-speed JPEG
18 | codecs.
19 | .
20 | libjpeg-turbo implements both the traditional libjpeg API as well as the less
21 | powerful but more straightforward TurboJPEG API. libjpeg-turbo also features
22 | colorspace extensions that allow it to compress from/decompress to 32-bit and
23 | big-endian pixel buffers (RGBX, XBGR, etc.), as well as a full-featured Java
24 | interface.
25 | .
26 | libjpeg-turbo was originally based on libjpeg/SIMD, an MMX-accelerated
27 | derivative of libjpeg v6b developed by Miyasaka Masaru. The TigerVNC and
28 | VirtualGL projects made numerous enhancements to the codec in 2009, and in
29 | early 2010, libjpeg-turbo spun off into an independent project, with the goal
30 | of making high-speed JPEG compression/decompression technology available to a
31 | broader range of users and developers.
32 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/md5/md5.h:
--------------------------------------------------------------------------------
1 | /* MD5.H - header file for MD5C.C
2 | * $FreeBSD$
3 | */
4 |
5 | /*-
6 | Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
7 | rights reserved.
8 |
9 | License to copy and use this software is granted provided that it
10 | is identified as the "RSA Data Security, Inc. MD5 Message-Digest
11 | Algorithm" in all material mentioning or referencing this software
12 | or this function.
13 |
14 | License is also granted to make and use derivative works provided
15 | that such works are identified as "derived from the RSA Data
16 | Security, Inc. MD5 Message-Digest Algorithm" in all material
17 | mentioning or referencing the derived work.
18 |
19 | RSA Data Security, Inc. makes no representations concerning either
20 | the merchantability of this software or the suitability of this
21 | software for any particular purpose. It is provided "as is"
22 | without express or implied warranty of any kind.
23 |
24 | These notices must be retained in any copies of any part of this
25 | documentation and/or software.
26 | */
27 |
28 | #ifndef _SYS_MD5_H_
29 | #define _SYS_MD5_H_
30 |
31 | #define MD5_BLOCK_LENGTH 64
32 | #define MD5_DIGEST_LENGTH 16
33 | #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1)
34 |
35 | /* MD5 context. */
36 | typedef struct MD5Context {
37 | unsigned int state[4]; /* state (ABCD) */
38 | unsigned int count[2]; /* number of bits, modulo 2^64 (lsb first) */
39 | unsigned char buffer[64]; /* input buffer */
40 | } MD5_CTX;
41 |
42 | void MD5Init (MD5_CTX *);
43 | void MD5Update (MD5_CTX *, const void *, unsigned int);
44 | void MD5Final (unsigned char [16], MD5_CTX *);
45 | char * MD5End(MD5_CTX *, char *);
46 | char * MD5File(const char *, char *);
47 | char * MD5FileChunk(const char *, char *, off_t, off_t);
48 | char * MD5Data(const void *, unsigned int, char *);
49 | #endif /* _SYS_MD5_H_ */
50 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jconfig.h.in:
--------------------------------------------------------------------------------
1 | /* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */
2 | /* see jconfig.txt for explanations */
3 |
4 | #define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
5 | #define LIBJPEG_TURBO_VERSION @VERSION@
6 | #cmakedefine C_ARITH_CODING_SUPPORTED
7 | #cmakedefine D_ARITH_CODING_SUPPORTED
8 | #cmakedefine MEM_SRCDST_SUPPORTED
9 |
10 | /*
11 | * Define BITS_IN_JSAMPLE as either
12 | * 8 for 8-bit sample values (the usual setting)
13 | * 12 for 12-bit sample values
14 | * Only 8 and 12 are legal data precisions for lossy JPEG according to the
15 | * JPEG standard, and the IJG code does not support anything else!
16 | * We do not support run-time selection of data precision, sorry.
17 | */
18 |
19 | #define BITS_IN_JSAMPLE @BITS_IN_JSAMPLE@ /* use 8 or 12 */
20 |
21 | #define HAVE_UNSIGNED_CHAR
22 | #define HAVE_UNSIGNED_SHORT
23 | /* #define void char */
24 | /* #define const */
25 | #undef __CHAR_UNSIGNED__
26 | #define HAVE_STDDEF_H
27 | #define HAVE_STDLIB_H
28 | #undef NEED_BSD_STRINGS
29 | #undef NEED_SYS_TYPES_H
30 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */
31 | #undef INCOMPLETE_TYPES_BROKEN
32 |
33 | /* Define "boolean" as unsigned char, not int, per Windows custom */
34 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
35 | typedef unsigned char boolean;
36 | #endif
37 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
38 |
39 | /* Define "INT32" as int, not long, per Windows custom */
40 | #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
41 | typedef short INT16;
42 | typedef signed int INT32;
43 | #endif
44 | #define XMD_H /* prevent jmorecfg.h from redefining it */
45 |
46 | #ifdef JPEG_INTERNALS
47 |
48 | #undef RIGHT_SHIFT_IS_UNSIGNED
49 |
50 | #endif /* JPEG_INTERNALS */
51 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/org/libjpegturbo/turbojpeg/TJLoader.java.in:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | package org.libjpegturbo.turbojpeg;
30 |
31 | final class TJLoader {
32 | static void load() {
33 | System.loadLibrary("@TURBOJPEG_DLL_NAME@");
34 | }
35 | };
36 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/nasm_lt.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | command=""
3 | infile=""
4 | o_opt=no
5 | pic=no
6 | while [ $# -gt 0 ]; do
7 | case "$1" in
8 | --silent)
9 | exec > /dev/null
10 | ;;
11 | -DPIC|-fPIC|-fpic|-Kpic|-KPIC)
12 | if [ "$pic" != "yes" ] ; then
13 | command="$command -DPIC"
14 | pic=yes
15 | fi
16 | ;;
17 | -f|-fbin|-faout|-faoutb|-fcoff|-felf|-felf64|-fas86| \
18 | -fobj|-fwin32|-fwin64|-frdf|-fieee|-fmacho|-fmacho64)
19 | # it's a file format specifier for nasm.
20 | command="$command $1"
21 | ;;
22 | -f*)
23 | # maybe a code-generation flag for gcc.
24 | ;;
25 | -[Ii]*)
26 | incdir=`echo "$1" | sed 's/^-[Ii]//'`
27 | if [ "x$incdir" = x -a "x$2" != x ] ; then
28 | case "$2" in
29 | -*) ;;
30 | *) incdir="$2"; shift;;
31 | esac
32 | fi
33 | if [ "x$incdir" != x ] ; then
34 | # In the case of NASM, the trailing slash is necessary.
35 | incdir=`echo "$incdir" | sed 's%/*$%/%'`
36 | command="$command -I$incdir"
37 | fi
38 | ;;
39 | -o*)
40 | o_opt=yes
41 | command="$command $1"
42 | ;;
43 | *.asm)
44 | infile=$1
45 | command="$command $1"
46 | ;;
47 | *)
48 | command="$command $1"
49 | ;;
50 | esac
51 | shift
52 | done
53 | if [ "$o_opt" != yes ] ; then
54 | # By default, NASM creates an output file
55 | # in the same directory as the input file.
56 | outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
57 | command="$command $outfile"
58 | fi
59 | echo $command
60 | exec $command
61 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/rdjpgcom.1:
--------------------------------------------------------------------------------
1 | .TH RDJPGCOM 1 "02 April 2009"
2 | .SH NAME
3 | rdjpgcom \- display text comments from a JPEG file
4 | .SH SYNOPSIS
5 | .B rdjpgcom
6 | [
7 | .B \-raw
8 | ]
9 | [
10 | .B \-verbose
11 | ]
12 | [
13 | .I filename
14 | ]
15 | .LP
16 | .SH DESCRIPTION
17 | .LP
18 | .B rdjpgcom
19 | reads the named JPEG/JFIF file, or the standard input if no file is named,
20 | and prints any text comments found in the file on the standard output.
21 | .PP
22 | The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file.
23 | Although the standard doesn't actually define what COM blocks are for, they
24 | are widely used to hold user-supplied text strings. This lets you add
25 | annotations, titles, index terms, etc to your JPEG files, and later retrieve
26 | them as text. COM blocks do not interfere with the image stored in the JPEG
27 | file. The maximum size of a COM block is 64K, but you can have as many of
28 | them as you like in one JPEG file.
29 | .SH OPTIONS
30 | .TP
31 | .B \-raw
32 | Normally
33 | .B rdjpgcom
34 | escapes non-printable characters in comments, for security reasons.
35 | This option avoids that.
36 | .PP
37 | .B \-verbose
38 | Causes
39 | .B rdjpgcom
40 | to also display the JPEG image dimensions.
41 | .PP
42 | Switch names may be abbreviated, and are not case sensitive.
43 | .SH HINTS
44 | .B rdjpgcom
45 | does not depend on the IJG JPEG library. Its source code is intended as an
46 | illustration of the minimum amount of code required to parse a JPEG file
47 | header correctly.
48 | .PP
49 | In
50 | .B \-verbose
51 | mode,
52 | .B rdjpgcom
53 | will also attempt to print the contents of any "APP12" markers as text.
54 | Some digital cameras produce APP12 markers containing useful textual
55 | information. If you like, you can modify the source code to print
56 | other APPn marker types as well.
57 | .SH SEE ALSO
58 | .BR cjpeg (1),
59 | .BR djpeg (1),
60 | .BR jpegtran (1),
61 | .BR wrjpgcom (1)
62 | .SH AUTHOR
63 | Independent JPEG Group
64 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/bmp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | #ifndef __BMP_H__
30 | #define __BMP_H__
31 |
32 | #include "./turbojpeg.h"
33 |
34 | int loadbmp(char *filename, unsigned char **buf, int *w, int *h, int pf,
35 | int bottomup);
36 |
37 | int savebmp(char *filename, unsigned char *buf, int w, int h, int pf,
38 | int bottomup);
39 |
40 | const char *bmpgeterr(void);
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/makedpkg.in:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -u
4 | set -e
5 | trap onexit INT
6 | trap onexit TERM
7 | trap onexit EXIT
8 |
9 | TMPDIR=
10 | SUDO=
11 |
12 | onexit()
13 | {
14 | if [ ! "$TMPDIR" = "" ]; then
15 | $SUDO rm -rf $TMPDIR
16 | fi
17 | }
18 |
19 | uid()
20 | {
21 | id | cut -f2 -d = | cut -f1 -d \(;
22 | }
23 |
24 | makedeb()
25 | {
26 | SUPPLEMENT=$1
27 | DIRNAME=$PACKAGE_NAME
28 |
29 | if [ $SUPPLEMENT = 1 ]; then
30 | PACKAGE_NAME=$PACKAGE_NAME\32
31 | DEBARCH=amd64
32 | fi
33 |
34 | umask 022
35 | rm -f $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb
36 | TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX`
37 | mkdir $TMPDIR/DEBIAN
38 |
39 | if [ $SUPPLEMENT = 1 ]; then
40 | make install DESTDIR=$TMPDIR bindir=/dummy/bin datadir=/dummy/data \
41 | docdir=/dummy/doc includedir=/dummy/include mandir=/dummy/man
42 | rm -f $TMPDIR$LIBDIR/*.la
43 | rm -rf $TMPDIR/dummy
44 | else
45 | make install DESTDIR=$TMPDIR docdir=/usr/share/doc/$DIRNAME-$VERSION \
46 | exampledir=/usr/share/doc/$DIRNAME-$VERSION
47 | rm -f $TMPDIR$LIBDIR/*.la
48 | if [ "$PREFIX" = "/opt/libjpeg-turbo" -a "$DOCDIR" = "/opt/libjpeg-turbo/doc" ]; then
49 | ln -fs /usr/share/doc/$DIRNAME-$VERSION $TMPDIR$DOCDIR
50 | fi
51 | fi
52 |
53 | SIZE=`du -s $TMPDIR | cut -f1`
54 | (cat $SRCDIR/release/deb-control.tmpl | sed s/{__PKGNAME}/$PACKAGE_NAME/g \
55 | | sed s/{__VERSION}/$VERSION/g | sed s/{__BUILD}/$BUILD/g \
56 | | sed s/{__ARCH}/$DEBARCH/g | sed s/{__SIZE}/$SIZE/g \
57 | > $TMPDIR/DEBIAN/control)
58 |
59 |
60 | /sbin/ldconfig -n $TMPDIR$LIBDIR
61 |
62 | $SUDO chown -Rh root:root $TMPDIR/*
63 | dpkg -b $TMPDIR $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb
64 | }
65 |
66 | PACKAGE_NAME=@PKGNAME@
67 | VERSION=@VERSION@
68 | BUILD=@BUILD@
69 | DEBARCH=@DEBARCH@
70 | SRCDIR=@abs_top_srcdir@
71 | PREFIX=%{__prefix}
72 | DOCDIR=%{__docdir}
73 | LIBDIR=%{__libdir}
74 |
75 | if [ ! `uid` -eq 0 ]; then
76 | SUDO=sudo
77 | fi
78 |
79 | makedeb 0
80 | if [ "$DEBARCH" = "i386" ]; then makedeb 1; fi
81 |
82 | exit
83 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/tjutil.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | #ifdef _WIN32
30 | #ifndef __MINGW32__
31 | #include
32 | #define snprintf(str, n, format, ...) \
33 | _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__)
34 | #endif
35 | #define strcasecmp stricmp
36 | #define strncasecmp strnicmp
37 | #endif
38 |
39 | #ifndef min
40 | #define min(a,b) ((a)<(b)?(a):(b))
41 | #endif
42 |
43 | #ifndef max
44 | #define max(a,b) ((a)>(b)?(a):(b))
45 | #endif
46 |
47 | extern double gettime(void);
48 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(JAR_FILE turbojpeg.jar)
2 | set(MANIFEST_FILE ${CMAKE_CURRENT_SOURCE_DIR}/MANIFEST.MF)
3 |
4 | set(JAVA_CLASSNAMES org/libjpegturbo/turbojpeg/TJ
5 | org/libjpegturbo/turbojpeg/TJCompressor
6 | org/libjpegturbo/turbojpeg/TJCustomFilter
7 | org/libjpegturbo/turbojpeg/TJDecompressor
8 | org/libjpegturbo/turbojpeg/TJScalingFactor
9 | org/libjpegturbo/turbojpeg/TJTransform
10 | org/libjpegturbo/turbojpeg/TJTransformer
11 | org/libjpegturbo/turbojpeg/YUVImage
12 | TJUnitTest
13 | TJExample
14 | TJBench)
15 |
16 | if(MSVC_IDE)
17 | set(OBJDIR "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}")
18 | else()
19 | set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR})
20 | endif()
21 |
22 | set(TURBOJPEG_DLL_NAME "turbojpeg")
23 | if(MINGW)
24 | set(TURBOJPEG_DLL_NAME "libturbojpeg")
25 | endif()
26 | configure_file(org/libjpegturbo/turbojpeg/TJLoader.java.in
27 | ${CMAKE_CURRENT_BINARY_DIR}/org/libjpegturbo/turbojpeg/TJLoader.java)
28 |
29 | set(JAVA_SOURCES "")
30 | set(JAVA_CLASSES "")
31 | set(JAVA_CLASSES_FULL "")
32 | foreach(class ${JAVA_CLASSNAMES})
33 | set(JAVA_SOURCES ${JAVA_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/${class}.java)
34 | set(JAVA_CLASSES ${JAVA_CLASSES} ${class}.class)
35 | set(JAVA_CLASSES_FULL ${JAVA_CLASSES_FULL} ${OBJDIR}/${class}.class)
36 | endforeach()
37 |
38 | set(JAVA_SOURCES ${JAVA_SOURCES}
39 | ${CMAKE_CURRENT_BINARY_DIR}/org/libjpegturbo/turbojpeg/TJLoader.java)
40 | set(JAVA_CLASSES ${JAVA_CLASSES}
41 | org/libjpegturbo/turbojpeg/TJLoader.class)
42 | set(JAVA_CLASSES_FULL ${JAVA_CLASSES_FULL}
43 | ${OBJDIR}/org/libjpegturbo/turbojpeg/TJLoader.class)
44 |
45 | string(REGEX REPLACE " " ";" JAVACFLAGS "${JAVACFLAGS}")
46 | add_custom_command(OUTPUT ${JAVA_CLASSES_FULL} DEPENDS ${JAVA_SOURCES}
47 | COMMAND ${JAVA_COMPILE} ARGS ${JAVACFLAGS} -d ${OBJDIR} ${JAVA_SOURCES})
48 |
49 | add_custom_command(OUTPUT ${JAR_FILE} DEPENDS ${JAVA_CLASSES_FULL}
50 | ${MANIFEST_FILE}
51 | COMMAND ${JAVA_ARCHIVE} cfm ${JAR_FILE} ${MANIFEST_FILE} ${JAVA_CLASSES}
52 | WORKING_DIRECTORY ${OBJDIR})
53 |
54 | add_custom_target(java ALL DEPENDS ${JAR_FILE})
55 |
56 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${JAR_FILE} DESTINATION classes)
57 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/release/License.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
2 | {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
3 | {\colortbl;\red255\green255\blue255;}
4 | {\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
5 | {\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
6 | \margl1440\margr1440\vieww9820\viewh8480\viewkind0
7 | \deftab720
8 | \pard\pardeftab720
9 |
10 | \f0\fs24 \cf0 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\
11 | \
12 | \pard\tx220\tx720\pardeftab720\li720\fi-720
13 | \ls1\ilvl0\cf0 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\
14 | {\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\
15 | {\listtext \'95 }Neither the name of the libjpeg-turbo Project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\
16 | \pard\pardeftab720\qc
17 | \cf0 \
18 | \pard\pardeftab720
19 | \cf0 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS", AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
20 | }
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/testimages/nightshot_iso_100.txt:
--------------------------------------------------------------------------------
1 | libjpeg-turbo note: This image was extracted from the 8-bit nightshot_iso_100
2 | image. The original can be downloaded at the link below.
3 |
4 | The New Image Compression Test Set - Jan 2008
5 | http://www.imagecompression.info/test_images
6 |
7 | The images historically used for compression research (lena, barbra, pepper etc...) have outlived their useful life and its about time they become a part of history only. They are too small, come from data sources too old and are available in only 8-bit precision.
8 |
9 | These images have been carefully selected to aid in image compression algorithm research and evaluation. These are photographic images chosen to come from a wide variety of sources and each one picked to stress different aspects of algorithms. Images are available in 8-bit, 16-bit and 16-bit linear variations, RGB and gray.
10 |
11 | Images are available without any prohibitive copyright restrictions.
12 |
13 | These images are (c) there respective owners. You are granted full redistribution and publication rights on these images provided:
14 |
15 | 1. The origin of the pictures must not be misrepresented; you must not claim that you took the original pictures. If you use, publish or redistribute them, an acknowledgment would be appreciated but is not required.
16 | 2. Altered versions must be plainly marked as such, and must not be misinterpreted as being the originals.
17 | 3. No payment is required for distribution this material, it must be available freely under the conditions stated here. That is, it is prohibited to sell the material.
18 | 4. This notice may not be removed or altered from any distribution.
19 |
20 | Acknowledgments: A lot of people contributed a lot of time and effort in making this test set possible. Thanks to everyone who voiced their opinion in any of the discussions online. Thanks to Axel Becker, Thomas Richter and Niels Fröhling for their extensive help in picking images, running all the various tests etc... Thanks to Pete Fraser, Tony Story, Wayne J. Cosshall, David Coffin, Bruce Lindbloom and raw.fotosite.pl for the images which make up this set.
21 |
22 | Sachin Garg [India]
23 | sachingarg@c10n.info
24 |
25 | www.sachingarg.com | www.c10n.info | www.imagecompression.info
26 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jconfig.h.in:
--------------------------------------------------------------------------------
1 | /* Version ID for the JPEG library.
2 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
3 | */
4 | #define JPEG_LIB_VERSION 62 /* Version 6b */
5 |
6 | /* libjpeg-turbo version */
7 | #define LIBJPEG_TURBO_VERSION 0
8 |
9 | /* Support arithmetic encoding */
10 | #undef C_ARITH_CODING_SUPPORTED
11 |
12 | /* Support arithmetic decoding */
13 | #undef D_ARITH_CODING_SUPPORTED
14 |
15 | /*
16 | * Define BITS_IN_JSAMPLE as either
17 | * 8 for 8-bit sample values (the usual setting)
18 | * 12 for 12-bit sample values
19 | * Only 8 and 12 are legal data precisions for lossy JPEG according to the
20 | * JPEG standard, and the IJG code does not support anything else!
21 | * We do not support run-time selection of data precision, sorry.
22 | */
23 |
24 | #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
25 |
26 | /* Define to 1 if you have the header file. */
27 | #undef HAVE_LOCALE_H
28 |
29 | /* Define to 1 if you have the header file. */
30 | #undef HAVE_STDDEF_H
31 |
32 | /* Define to 1 if you have the header file. */
33 | #undef HAVE_STDLIB_H
34 |
35 | /* Define to 1 if the system has the type `unsigned char'. */
36 | #undef HAVE_UNSIGNED_CHAR
37 |
38 | /* Define to 1 if the system has the type `unsigned short'. */
39 | #undef HAVE_UNSIGNED_SHORT
40 |
41 | /* Compiler does not support pointers to undefined structures. */
42 | #undef INCOMPLETE_TYPES_BROKEN
43 |
44 | /* Support in-memory source/destination managers */
45 | #undef MEM_SRCDST_SUPPORTED
46 |
47 | /* Define if you have BSD-like bzero and bcopy in rather than
48 | memset/memcpy in . */
49 | #undef NEED_BSD_STRINGS
50 |
51 | /* Define if you need to include to get size_t. */
52 | #undef NEED_SYS_TYPES_H
53 |
54 | /* Define if your (broken) compiler shifts signed values as if they were
55 | unsigned. */
56 | #undef RIGHT_SHIFT_IS_UNSIGNED
57 |
58 | /* Use accelerated SIMD routines. */
59 | #undef WITH_SIMD
60 |
61 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */
62 | #ifndef __CHAR_UNSIGNED__
63 | # undef __CHAR_UNSIGNED__
64 | #endif
65 |
66 | /* Define to empty if `const' does not conform to ANSI C. */
67 | #undef const
68 |
69 | /* Define to `unsigned int' if does not define. */
70 | #undef size_t
71 |
72 | /* The size of `size_t', as computed by sizeof. */
73 | #undef SIZEOF_SIZE_T
74 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/md5/md5hl.c:
--------------------------------------------------------------------------------
1 | /* mdXhl.c * ----------------------------------------------------------------------------
2 | * "THE BEER-WARE LICENSE" (Revision 42):
3 | * wrote this file. As long as you retain this notice you
4 | * can do whatever you want with this stuff. If we meet some day, and you think
5 | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
6 | * ----------------------------------------------------------------------------
7 | */
8 |
9 | #include
10 | #include
11 | #include
12 | #include
13 |
14 | #include
15 | #include
16 | #include
17 |
18 | #define LENGTH 16
19 |
20 | #include "./md5.h"
21 |
22 | char *
23 | MD5End(MD5_CTX *ctx, char *buf)
24 | {
25 | int i;
26 | unsigned char digest[LENGTH];
27 | static const char hex[]="0123456789abcdef";
28 |
29 | if (!buf)
30 | buf = malloc(2*LENGTH + 1);
31 | if (!buf)
32 | return 0;
33 | MD5Final(digest, ctx);
34 | for (i = 0; i < LENGTH; i++) {
35 | buf[i+i] = hex[digest[i] >> 4];
36 | buf[i+i+1] = hex[digest[i] & 0x0f];
37 | }
38 | buf[i+i] = '\0';
39 | return buf;
40 | }
41 |
42 | char *
43 | MD5File(const char *filename, char *buf)
44 | {
45 | return (MD5FileChunk(filename, buf, 0, 0));
46 | }
47 |
48 | char *
49 | MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len)
50 | {
51 | unsigned char buffer[BUFSIZ];
52 | MD5_CTX ctx;
53 | struct stat stbuf;
54 | int f, i, e;
55 | off_t n;
56 |
57 | MD5Init(&ctx);
58 | f = open(filename, O_RDONLY);
59 | if (f < 0)
60 | return 0;
61 | if (fstat(f, &stbuf) < 0)
62 | return 0;
63 | if (ofs > stbuf.st_size)
64 | ofs = stbuf.st_size;
65 | if ((len == 0) || (len > stbuf.st_size - ofs))
66 | len = stbuf.st_size - ofs;
67 | if (lseek(f, ofs, SEEK_SET) < 0)
68 | return 0;
69 | n = len;
70 | i = 0;
71 | while (n > 0) {
72 | if (n > sizeof(buffer))
73 | i = read(f, buffer, sizeof(buffer));
74 | else
75 | i = read(f, buffer, n);
76 | if (i < 0)
77 | break;
78 | MD5Update(&ctx, buffer, i);
79 | n -= i;
80 | }
81 | e = errno;
82 | close(f);
83 | errno = e;
84 | if (i < 0)
85 | return 0;
86 | return (MD5End(&ctx, buf));
87 | }
88 |
89 | char *
90 | MD5Data (const void *data, unsigned int len, char *buf)
91 | {
92 | MD5_CTX ctx;
93 |
94 | MD5Init(&ctx);
95 | MD5Update(&ctx,data,len);
96 | return (MD5End(&ctx, buf));
97 | }
98 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/tjutil.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | #ifdef _WIN32
30 |
31 | #include
32 |
33 | static double getfreq(void)
34 | {
35 | LARGE_INTEGER freq;
36 | if(!QueryPerformanceFrequency(&freq)) return 0.0;
37 | return (double)freq.QuadPart;
38 | }
39 |
40 | static double f=-1.0;
41 |
42 | double gettime(void)
43 | {
44 | LARGE_INTEGER t;
45 | if(f<0.0) f=getfreq();
46 | if(f==0.0) return (double)GetTickCount()/1000.;
47 | else
48 | {
49 | QueryPerformanceCounter(&t);
50 | return (double)t.QuadPart/f;
51 | }
52 | }
53 |
54 | #else
55 |
56 | #include
57 | #include
58 |
59 | double gettime(void)
60 | {
61 | struct timeval tv;
62 | if(gettimeofday(&tv, NULL)<0) return 0.0;
63 | else return (double)tv.tv_sec+((double)tv.tv_usec/1000000.);
64 | }
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/md5/md5cmp.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2013 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | #include
30 | #include
31 | #include
32 | #include "./md5.h"
33 |
34 | int main(int argc, char *argv[])
35 | {
36 | char *md5sum = NULL, buf[65];
37 |
38 | if (argc < 3) {
39 | fprintf(stderr, "USAGE: %s \n", argv[0]);
40 | return -1;
41 | }
42 |
43 | if (strlen(argv[1]) != 32)
44 | fprintf(stderr, "WARNING: MD5 hash size is wrong.\n");
45 |
46 | md5sum = MD5File(argv[2], buf);
47 | if (!md5sum) {
48 | perror("Could not obtain MD5 sum");
49 | return -1;
50 | }
51 |
52 | if (!strcasecmp(md5sum, argv[1])) {
53 | fprintf(stderr, "%s: OK\n", argv[2]);
54 | return 0;
55 | } else {
56 | fprintf(stderr, "%s: FAILED. Checksum is %s\n", argv[2], md5sum);
57 | return -1;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/jcolsamp.inc:
--------------------------------------------------------------------------------
1 | ;
2 | ; jcolsamp.inc - private declarations for color conversion & up/downsampling
3 | ;
4 | ; Copyright 2009 Pierre Ossman for Cendio AB
5 | ;
6 | ; Based on
7 | ; x86 SIMD extension for IJG JPEG library
8 | ; Copyright (C) 1999-2006, MIYASAKA Masaru.
9 | ; For conditions of distribution and use, see copyright notice in jsimdext.inc
10 | ;
11 | ; [TAB8]
12 |
13 | ; --------------------------------------------------------------------------
14 |
15 | ; pseudo-resisters to make ordering of RGB configurable
16 | ;
17 | %if RGB_RED == 0
18 | %define mmA mm0
19 | %define mmB mm1
20 | %define xmmA xmm0
21 | %define xmmB xmm1
22 | %elif RGB_GREEN == 0
23 | %define mmA mm2
24 | %define mmB mm3
25 | %define xmmA xmm2
26 | %define xmmB xmm3
27 | %elif RGB_BLUE == 0
28 | %define mmA mm4
29 | %define mmB mm5
30 | %define xmmA xmm4
31 | %define xmmB xmm5
32 | %else
33 | %define mmA mm6
34 | %define mmB mm7
35 | %define xmmA xmm6
36 | %define xmmB xmm7
37 | %endif
38 |
39 | %if RGB_RED == 1
40 | %define mmC mm0
41 | %define mmD mm1
42 | %define xmmC xmm0
43 | %define xmmD xmm1
44 | %elif RGB_GREEN == 1
45 | %define mmC mm2
46 | %define mmD mm3
47 | %define xmmC xmm2
48 | %define xmmD xmm3
49 | %elif RGB_BLUE == 1
50 | %define mmC mm4
51 | %define mmD mm5
52 | %define xmmC xmm4
53 | %define xmmD xmm5
54 | %else
55 | %define mmC mm6
56 | %define mmD mm7
57 | %define xmmC xmm6
58 | %define xmmD xmm7
59 | %endif
60 |
61 | %if RGB_RED == 2
62 | %define mmE mm0
63 | %define mmF mm1
64 | %define xmmE xmm0
65 | %define xmmF xmm1
66 | %elif RGB_GREEN == 2
67 | %define mmE mm2
68 | %define mmF mm3
69 | %define xmmE xmm2
70 | %define xmmF xmm3
71 | %elif RGB_BLUE == 2
72 | %define mmE mm4
73 | %define mmF mm5
74 | %define xmmE xmm4
75 | %define xmmF xmm5
76 | %else
77 | %define mmE mm6
78 | %define mmF mm7
79 | %define xmmE xmm6
80 | %define xmmF xmm7
81 | %endif
82 |
83 | %if RGB_RED == 3
84 | %define mmG mm0
85 | %define mmH mm1
86 | %define xmmG xmm0
87 | %define xmmH xmm1
88 | %elif RGB_GREEN == 3
89 | %define mmG mm2
90 | %define mmH mm3
91 | %define xmmG xmm2
92 | %define xmmH xmm3
93 | %elif RGB_BLUE == 3
94 | %define mmG mm4
95 | %define mmH mm5
96 | %define xmmG xmm4
97 | %define xmmH xmm5
98 | %else
99 | %define mmG mm6
100 | %define mmH mm7
101 | %define xmmG xmm6
102 | %define xmmH xmm7
103 | %endif
104 |
105 | ; --------------------------------------------------------------------------
106 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jcinit.c:
--------------------------------------------------------------------------------
1 | /*
2 | * jcinit.c
3 | *
4 | * Copyright (C) 1991-1997, Thomas G. Lane.
5 | * This file is part of the Independent JPEG Group's software.
6 | * For conditions of distribution and use, see the accompanying README file.
7 | *
8 | * This file contains initialization logic for the JPEG compressor.
9 | * This routine is in charge of selecting the modules to be executed and
10 | * making an initialization call to each one.
11 | *
12 | * Logically, this code belongs in jcmaster.c. It's split out because
13 | * linking this routine implies linking the entire compression library.
14 | * For a transcoding-only application, we want to be able to use jcmaster.c
15 | * without linking in the whole library.
16 | */
17 |
18 | #define JPEG_INTERNALS
19 | #include "jinclude.h"
20 | #include "jpeglib.h"
21 |
22 |
23 | /*
24 | * Master selection of compression modules.
25 | * This is done once at the start of processing an image. We determine
26 | * which modules will be used and give them appropriate initialization calls.
27 | */
28 |
29 | GLOBAL(void)
30 | jinit_compress_master (j_compress_ptr cinfo)
31 | {
32 | /* Initialize master control (includes parameter checking/processing) */
33 | jinit_c_master_control(cinfo, FALSE /* full compression */);
34 |
35 | /* Preprocessing */
36 | if (! cinfo->raw_data_in) {
37 | jinit_color_converter(cinfo);
38 | jinit_downsampler(cinfo);
39 | jinit_c_prep_controller(cinfo, FALSE /* never need full buffer here */);
40 | }
41 | /* Forward DCT */
42 | jinit_forward_dct(cinfo);
43 | /* Entropy encoding: either Huffman or arithmetic coding. */
44 | if (cinfo->arith_code) {
45 | #ifdef C_ARITH_CODING_SUPPORTED
46 | jinit_arith_encoder(cinfo);
47 | #else
48 | ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
49 | #endif
50 | } else {
51 | if (cinfo->progressive_mode) {
52 | #ifdef C_PROGRESSIVE_SUPPORTED
53 | jinit_phuff_encoder(cinfo);
54 | #else
55 | ERREXIT(cinfo, JERR_NOT_COMPILED);
56 | #endif
57 | } else
58 | jinit_huff_encoder(cinfo);
59 | }
60 |
61 | /* Need a full-image coefficient buffer in any multi-pass mode. */
62 | jinit_c_coef_controller(cinfo,
63 | (boolean) (cinfo->num_scans > 1 || cinfo->optimize_coding));
64 | jinit_c_main_controller(cinfo, FALSE /* never need full buffer here */);
65 |
66 | jinit_marker_writer(cinfo);
67 |
68 | /* We can now tell the memory manager to allocate virtual arrays. */
69 | (*cinfo->mem->realize_virt_arrays) ((j_common_ptr) cinfo);
70 |
71 | /* Write the datastream header (SOI) immediately.
72 | * Frame and scan headers are postponed till later.
73 | * This lets application insert special markers after the SOI.
74 | */
75 | (*cinfo->marker->write_file_header) (cinfo);
76 | }
77 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/README:
--------------------------------------------------------------------------------
1 | TurboJPEG Java Wrapper
2 | ======================
3 |
4 | The TurboJPEG shared library can optionally be built with a Java Native
5 | Interface wrapper, which allows the library to be loaded and used directly from
6 | Java applications. The Java front end for this is defined in several classes
7 | located under org/libjpegturbo/turbojpeg. The source code for these Java
8 | classes is licensed under a BSD-style license, so the files can be incorporated
9 | directly into both open source and proprietary projects without restriction. A
10 | Java archive (JAR) file containing these classes is also shipped with the
11 | "official" distribution packages of libjpeg-turbo.
12 |
13 | TJExample.java, which should also be located in the same directory as this
14 | README file, demonstrates how to use the TurboJPEG Java API to compress and
15 | decompress JPEG images in memory.
16 |
17 |
18 | Performance Pitfalls
19 | --------------------
20 |
21 | The TurboJPEG Java API defines several convenience methods that can allocate
22 | image buffers or instantiate classes to hold the result of compress,
23 | decompress, or transform operations. However, if you use these methods, then
24 | be mindful of the amount of new data you are creating on the heap. It may be
25 | necessary to manually invoke the garbage collector to prevent heap exhaustion
26 | or to prevent performance degradation. Background garbage collection can kill
27 | performance, particularly in a multi-threaded environment (Java pauses all
28 | threads when the GC runs.)
29 |
30 | The TurboJPEG Java API always gives you the option of pre-allocating your own
31 | source and destination buffers, which allows you to re-use those buffers for
32 | compressing/decompressing multiple images. If the image sequence you are
33 | compressing or decompressing consists of images of the same size, then
34 | pre-allocating the buffers is recommended.
35 |
36 |
37 | Installation Directory
38 | ----------------------
39 |
40 | The TurboJPEG Java Wrapper will look for the TurboJPEG JNI library
41 | (libturbojpeg.so, libturbojpeg.jnilib, or turbojpeg.dll) in the system library
42 | paths or in any paths specified in LD_LIBRARY_PATH (Un*x), DYLD_LIBRARY_PATH
43 | (Mac), or PATH (Windows.) Failing this, on Un*x and Mac systems, the wrapper
44 | will look for the JNI library under the library directory configured when
45 | libjpeg-turbo was built. If that library directory is
46 | /opt/libjpeg-turbo/lib32, then /opt/libjpeg-turbo/lib64 is also searched, and
47 | vice versa.
48 |
49 | If you installed the JNI library into another directory, then you will need
50 | to pass an argument of -Djava.library.path={path_to_JNI_library} to java, or
51 | manipulate LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, or PATH to include the directory
52 | containing the JNI library.
53 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/Makefile.am:
--------------------------------------------------------------------------------
1 | JAVAROOT = .
2 |
3 | org/libjpegturbo/turbojpeg/TJLoader.java: $(srcdir)/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl
4 | mkdir -p org/libjpegturbo/turbojpeg; \
5 | cat $(srcdir)/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl | \
6 | sed s@%{__libdir}@$(libdir)@g > org/libjpegturbo/turbojpeg/TJLoader.java
7 |
8 |
9 | JAVASOURCES = org/libjpegturbo/turbojpeg/TJ.java \
10 | org/libjpegturbo/turbojpeg/TJCompressor.java \
11 | org/libjpegturbo/turbojpeg/TJCustomFilter.java \
12 | org/libjpegturbo/turbojpeg/TJDecompressor.java \
13 | org/libjpegturbo/turbojpeg/TJScalingFactor.java \
14 | org/libjpegturbo/turbojpeg/TJTransform.java \
15 | org/libjpegturbo/turbojpeg/TJTransformer.java \
16 | org/libjpegturbo/turbojpeg/YUVImage.java \
17 | TJExample.java \
18 | TJUnitTest.java \
19 | TJBench.java
20 |
21 | JNIHEADERS = org_libjpegturbo_turbojpeg_TJ.h \
22 | org_libjpegturbo_turbojpeg_TJCompressor.h \
23 | org_libjpegturbo_turbojpeg_TJDecompressor.h \
24 | org_libjpegturbo_turbojpeg_TJTransformer.h
25 |
26 | if WITH_JAVA
27 |
28 | nodist_noinst_JAVA = ${JAVASOURCES} org/libjpegturbo/turbojpeg/TJLoader.java
29 |
30 | JAVA_CLASSES = org/libjpegturbo/turbojpeg/TJ.class \
31 | org/libjpegturbo/turbojpeg/TJCompressor.class \
32 | org/libjpegturbo/turbojpeg/TJCustomFilter.class \
33 | org/libjpegturbo/turbojpeg/TJDecompressor.class \
34 | org/libjpegturbo/turbojpeg/TJLoader.class \
35 | org/libjpegturbo/turbojpeg/TJScalingFactor.class \
36 | org/libjpegturbo/turbojpeg/TJTransform.class \
37 | org/libjpegturbo/turbojpeg/TJTransformer.class \
38 | org/libjpegturbo/turbojpeg/YUVImage.class \
39 | TJExample.class \
40 | TJUnitTest.class \
41 | TJBench.class
42 |
43 | all: all-am turbojpeg.jar
44 |
45 | turbojpeg.jar: $(JAVA_CLASSES) ${srcdir}/MANIFEST.MF
46 | $(JAR) cfm turbojpeg.jar ${srcdir}/MANIFEST.MF $(JAVA_CLASSES)
47 |
48 | clean-local:
49 | rm -f turbojpeg.jar
50 |
51 | install-exec-local: turbojpeg.jar
52 | mkdir -p $(DESTDIR)/$(datadir)/classes
53 | $(INSTALL) -m 644 turbojpeg.jar $(DESTDIR)/$(datadir)/classes/
54 |
55 | uninstall-local:
56 | rm -f $(DESTDIR)/$(datadir)/classes/turbojpeg.jar
57 | if [ -d $(DESTDIR)/$(datadir)/classes ]; then rmdir $(DESTDIR)/$(datadir)/classes; fi
58 |
59 | headers: all
60 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJ; \
61 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJCompressor; \
62 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJDecompressor; \
63 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJTransformer
64 |
65 | docs: all
66 | mkdir -p ${srcdir}/doc; \
67 | javadoc -notimestamp -d ${srcdir}/doc -sourcepath ${srcdir} org.libjpegturbo.turbojpeg
68 |
69 | endif
70 |
71 | EXTRA_DIST = MANIFEST.MF ${JAVASOURCES} ${JNIHEADERS} doc CMakeLists.txt \
72 | org/libjpegturbo/turbojpeg/TJLoader.java.tmpl \
73 | org/libjpegturbo/turbojpeg/TJLoader.java.in
74 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011-2013 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | package org.libjpegturbo.turbojpeg;
30 |
31 | final class TJLoader {
32 | static void load() {
33 | try {
34 | System.loadLibrary("turbojpeg");
35 | } catch (java.lang.UnsatisfiedLinkError e) {
36 | String os = System.getProperty("os.name").toLowerCase();
37 | if (os.indexOf("mac") >= 0) {
38 | try {
39 | System.load("%{__libdir}/libturbojpeg.jnilib");
40 | } catch (java.lang.UnsatisfiedLinkError e2) {
41 | System.load("/usr/lib/libturbojpeg.jnilib");
42 | }
43 | } else {
44 | try {
45 | System.load("%{__libdir}/libturbojpeg.so");
46 | } catch (java.lang.UnsatisfiedLinkError e3) {
47 | String libdir = "%{__libdir}";
48 | if (libdir.equals("/opt/libjpeg-turbo/lib64")) {
49 | System.load("/opt/libjpeg-turbo/lib32/libturbojpeg.so");
50 | } else if (libdir.equals("/opt/libjpeg-turbo/lib32")) {
51 | System.load("/opt/libjpeg-turbo/lib64/libturbojpeg.so");
52 | } else {
53 | throw e3;
54 | }
55 | }
56 | }
57 | }
58 | }
59 | };
60 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/doc/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Generated Documentation (Untitled)
6 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | JavaScript is disabled on your browser.
65 |
66 | Frame Alert
67 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version .
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/sharedlib/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Anything that must be linked against the shared C library on Windows must
2 | # be built in this subdirectory, because CMake doesn't allow us to override
3 | # the compiler flags for each build type except at directory scope. Note
4 | # to CMake developers: Add a COMPILE_FLAGS_ target property, or
5 | # better yet, provide a friendly way of configuring a Windows target to use the
6 | # static C library.
7 |
8 | if(MSVC)
9 | # Build all configurations against shared C library
10 | foreach(var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
11 | CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
12 | if(${var} MATCHES "/MT")
13 | string(REGEX REPLACE "/MT" "/MD" ${var} "${${var}}")
14 | endif()
15 | endforeach()
16 | endif()
17 |
18 | foreach(src ${JPEG_SOURCES})
19 | set(JPEG_SRCS ${JPEG_SRCS} ${CMAKE_SOURCE_DIR}/${src})
20 | endforeach()
21 |
22 | if(WITH_SIMD)
23 | # This tells CMake that the "source" files haven't been generated yet
24 | set_source_files_properties(${SIMD_OBJS} PROPERTIES GENERATED 1)
25 | endif()
26 |
27 | if(WITH_MEM_SRCDST AND NOT WITH_JPEG8)
28 | add_library(jpeg SHARED ${JPEG_SRCS} ${SIMD_OBJS}
29 | ${CMAKE_SOURCE_DIR}/win/jpeg${DLL_VERSION}-memsrcdst.def)
30 | else()
31 | add_library(jpeg SHARED ${JPEG_SRCS} ${SIMD_OBJS}
32 | ${CMAKE_SOURCE_DIR}/win/jpeg${DLL_VERSION}.def)
33 | endif()
34 | set_target_properties(jpeg PROPERTIES SOVERSION ${DLL_VERSION}
35 | VERSION ${FULLVERSION})
36 | if(MSVC)
37 | set_target_properties(jpeg PROPERTIES SUFFIX ${DLL_VERSION}.dll)
38 | elseif(MINGW OR CYGWIN)
39 | set_target_properties(jpeg PROPERTIES SUFFIX -${DLL_VERSION}.dll)
40 | endif(MSVC)
41 | if(WITH_SIMD)
42 | add_dependencies(jpeg simd)
43 | endif()
44 |
45 | if(WITH_12BIT)
46 | set(COMPILE_FLAGS "-DGIF_SUPPORTED -DPPM_SUPPORTED -DUSE_SETMODE")
47 | else()
48 | set(COMPILE_FLAGS "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE")
49 | set(CJPEG_BMP_SOURCES ../rdbmp.c ../rdtarga.c)
50 | set(DJPEG_BMP_SOURCES ../wrbmp.c ../wrtarga.c)
51 | endif()
52 |
53 | add_executable(cjpeg ../cjpeg.c ../cdjpeg.c ../rdgif.c ../rdppm.c
54 | ../rdswitch.c ${CJPEG_BMP_SOURCES})
55 | set_property(TARGET cjpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS})
56 | target_link_libraries(cjpeg jpeg)
57 |
58 | add_executable(djpeg ../djpeg.c ../cdjpeg.c ../rdcolmap.c ../rdswitch.c
59 | ../wrgif.c ../wrppm.c ${DJPEG_BMP_SOURCES})
60 | set_property(TARGET djpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS})
61 | target_link_libraries(djpeg jpeg)
62 |
63 | add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c)
64 | target_link_libraries(jpegtran jpeg)
65 | set_property(TARGET jpegtran PROPERTY COMPILE_FLAGS "-DUSE_SETMODE")
66 |
67 | add_executable(jcstest ../jcstest.c)
68 | target_link_libraries(jcstest jpeg)
69 |
70 | install(TARGETS jpeg cjpeg djpeg jpegtran
71 | ARCHIVE DESTINATION lib
72 | LIBRARY DESTINATION lib
73 | RUNTIME DESTINATION bin)
74 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libsimd.la
2 |
3 | BUILT_SOURCES = jsimdcfg.inc
4 |
5 | EXTRA_DIST = nasm_lt.sh CMakeLists.txt \
6 | jccolext-mmx.asm jcgryext-mmx.asm jdcolext-mmx.asm jdmrgext-mmx.asm \
7 | jccolext-sse2.asm jcgryext-sse2.asm jdcolext-sse2.asm jdmrgext-sse2.asm \
8 | jccolext-sse2-64.asm jcgryext-sse2-64.asm jdcolext-sse2-64.asm \
9 | jdmrgext-sse2-64.asm
10 |
11 | if SIMD_X86_64
12 |
13 | libsimd_la_SOURCES = jsimd_x86_64.c jsimd.h jsimdcfg.inc.h jsimdext.inc \
14 | jcolsamp.inc jdct.inc jfdctflt-sse-64.asm \
15 | jccolor-sse2-64.asm jcgray-sse2-64.asm jcsample-sse2-64.asm \
16 | jdcolor-sse2-64.asm jdmerge-sse2-64.asm jdsample-sse2-64.asm \
17 | jfdctfst-sse2-64.asm jfdctint-sse2-64.asm jidctflt-sse2-64.asm \
18 | jidctfst-sse2-64.asm jidctint-sse2-64.asm jidctred-sse2-64.asm \
19 | jquantf-sse2-64.asm jquanti-sse2-64.asm
20 |
21 | jccolor-sse2-64.lo: jccolext-sse2-64.asm
22 | jcgray-sse2-64.lo: jcgryext-sse2-64.asm
23 | jdcolor-sse2-64.lo: jdcolext-sse2-64.asm
24 | jdmerge-sse2-64.lo: jdmrgext-sse2-64.asm
25 |
26 | endif
27 |
28 | if SIMD_I386
29 |
30 | libsimd_la_SOURCES = jsimd_i386.c jsimd.h jsimdcfg.inc.h jsimdext.inc \
31 | jcolsamp.inc jdct.inc jsimdcpu.asm \
32 | jfdctflt-3dn.asm jidctflt-3dn.asm jquant-3dn.asm \
33 | jccolor-mmx.asm jcgray-mmx.asm jcsample-mmx.asm \
34 | jdcolor-mmx.asm jdmerge-mmx.asm jdsample-mmx.asm \
35 | jfdctfst-mmx.asm jfdctint-mmx.asm jidctfst-mmx.asm \
36 | jidctint-mmx.asm jidctred-mmx.asm jquant-mmx.asm \
37 | jfdctflt-sse.asm jidctflt-sse.asm jquant-sse.asm \
38 | jccolor-sse2.asm jcgray-sse2.asm jcsample-sse2.asm \
39 | jdcolor-sse2.asm jdmerge-sse2.asm jdsample-sse2.asm \
40 | jfdctfst-sse2.asm jfdctint-sse2.asm jidctflt-sse2.asm \
41 | jidctfst-sse2.asm jidctint-sse2.asm jidctred-sse2.asm \
42 | jquantf-sse2.asm jquanti-sse2.asm
43 |
44 | jccolor-mmx.lo: jccolext-mmx.asm
45 | jcgray.-mmx.lo: jcgryext-mmx.asm
46 | jdcolor-mmx.lo: jdcolext-mmx.asm
47 | jdmerge-mmx.lo: jdmrgext-mmx.asm
48 | jccolor-sse2.lo: jccolext-sse2.asm
49 | jcgray-sse2.lo: jcgryext-sse2.asm
50 | jdcolor-sse2.lo: jdcolext-sse2.asm
51 | jdmerge-sse2.lo: jdmrgext-sse2.asm
52 |
53 | endif
54 |
55 | if SIMD_ARM
56 |
57 | libsimd_la_SOURCES = jsimd_arm.c jsimd_arm_neon.S
58 |
59 | endif
60 |
61 | if SIMD_ARM_64
62 |
63 | libsimd_la_SOURCES = jsimd_arm64.c jsimd_arm64_neon.S
64 |
65 | endif
66 |
67 | if SIMD_MIPS
68 |
69 | libsimd_la_SOURCES = jsimd_mips.c jsimd_mips_dspr2_asm.h jsimd_mips_dspr2.S
70 |
71 | endif
72 |
73 | AM_CPPFLAGS = -I$(top_srcdir)
74 |
75 | .asm.lo:
76 | $(AM_V_GEN) $(LIBTOOL) $(AM_V_lt) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(AM_V_lt) $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@
77 |
78 | jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
79 | $(AM_V_GEN) $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) "^[\;%]|^\ %" | sed 's%_cpp_protection_%%' | sed 's@% define@%define@g' > $@
80 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/wrjpgcom.1:
--------------------------------------------------------------------------------
1 | .TH WRJPGCOM 1 "15 June 1995"
2 | .SH NAME
3 | wrjpgcom \- insert text comments into a JPEG file
4 | .SH SYNOPSIS
5 | .B wrjpgcom
6 | [
7 | .B \-replace
8 | ]
9 | [
10 | .BI \-comment " text"
11 | ]
12 | [
13 | .BI \-cfile " name"
14 | ]
15 | [
16 | .I filename
17 | ]
18 | .LP
19 | .SH DESCRIPTION
20 | .LP
21 | .B wrjpgcom
22 | reads the named JPEG/JFIF file, or the standard input if no file is named,
23 | and generates a new JPEG/JFIF file on standard output. A comment block is
24 | added to the file.
25 | .PP
26 | The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file.
27 | Although the standard doesn't actually define what COM blocks are for, they
28 | are widely used to hold user-supplied text strings. This lets you add
29 | annotations, titles, index terms, etc to your JPEG files, and later retrieve
30 | them as text. COM blocks do not interfere with the image stored in the JPEG
31 | file. The maximum size of a COM block is 64K, but you can have as many of
32 | them as you like in one JPEG file.
33 | .PP
34 | .B wrjpgcom
35 | adds a COM block, containing text you provide, to a JPEG file.
36 | Ordinarily, the COM block is added after any existing COM blocks; but you
37 | can delete the old COM blocks if you wish.
38 | .SH OPTIONS
39 | Switch names may be abbreviated, and are not case sensitive.
40 | .TP
41 | .B \-replace
42 | Delete any existing COM blocks from the file.
43 | .TP
44 | .BI \-comment " text"
45 | Supply text for new COM block on command line.
46 | .TP
47 | .BI \-cfile " name"
48 | Read text for new COM block from named file.
49 | .PP
50 | If you have only one line of comment text to add, you can provide it on the
51 | command line with
52 | .BR \-comment .
53 | The comment text must be surrounded with quotes so that it is treated as a
54 | single argument. Longer comments can be read from a text file.
55 | .PP
56 | If you give neither
57 | .B \-comment
58 | nor
59 | .BR \-cfile ,
60 | then
61 | .B wrjpgcom
62 | will read the comment text from standard input. (In this case an input image
63 | file name MUST be supplied, so that the source JPEG file comes from somewhere
64 | else.) You can enter multiple lines, up to 64KB worth. Type an end-of-file
65 | indicator (usually control-D) to terminate the comment text entry.
66 | .PP
67 | .B wrjpgcom
68 | will not add a COM block if the provided comment string is empty. Therefore
69 | \fB\-replace \-comment ""\fR can be used to delete all COM blocks from a file.
70 | .SH EXAMPLES
71 | .LP
72 | Add a short comment to in.jpg, producing out.jpg:
73 | .IP
74 | .B wrjpgcom \-c
75 | \fI"View of my back yard" in.jpg
76 | .B >
77 | .I out.jpg
78 | .PP
79 | Attach a long comment previously stored in comment.txt:
80 | .IP
81 | .B wrjpgcom
82 | .I in.jpg
83 | .B <
84 | .I comment.txt
85 | .B >
86 | .I out.jpg
87 | .PP
88 | or equivalently
89 | .IP
90 | .B wrjpgcom
91 | .B -cfile
92 | .I comment.txt
93 | .B <
94 | .I in.jpg
95 | .B >
96 | .I out.jpg
97 | .SH SEE ALSO
98 | .BR cjpeg (1),
99 | .BR djpeg (1),
100 | .BR jpegtran (1),
101 | .BR rdjpgcom (1)
102 | .SH AUTHOR
103 | Independent JPEG Group
104 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | if(NOT DEFINED NASM)
2 | set(NASM nasm CACHE PATH "Path to NASM/YASM executable")
3 | endif()
4 |
5 | if(SIMD_X86_64)
6 | set(NAFLAGS -fwin64 -DWIN64 -D__x86_64__)
7 | else()
8 | if(BORLAND)
9 | set(NAFLAGS -fobj -DOBJ32)
10 | else()
11 | set(NAFLAGS -fwin32 -DWIN32)
12 | endif()
13 | endif()
14 | set(NAFLAGS ${NAFLAGS} -I${CMAKE_SOURCE_DIR}/win/ -I${CMAKE_CURRENT_SOURCE_DIR}/)
15 |
16 | # This only works if building from the command line. There is currently no way
17 | # to set a variable's value based on the build type when using the MSVC IDE.
18 | if(CMAKE_BUILD_TYPE STREQUAL "Debug"
19 | OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
20 | set(NAFLAGS ${NAFLAGS} -g)
21 | endif()
22 |
23 | if(SIMD_X86_64)
24 | set(SIMD_BASENAMES jfdctflt-sse-64 jccolor-sse2-64 jcgray-sse2-64
25 | jcsample-sse2-64 jdcolor-sse2-64 jdmerge-sse2-64 jdsample-sse2-64
26 | jfdctfst-sse2-64 jfdctint-sse2-64 jidctflt-sse2-64 jidctfst-sse2-64
27 | jidctint-sse2-64 jidctred-sse2-64 jquantf-sse2-64 jquanti-sse2-64)
28 | message(STATUS "Building x86_64 SIMD extensions")
29 | else()
30 | set(SIMD_BASENAMES jsimdcpu jfdctflt-3dn jidctflt-3dn jquant-3dn jccolor-mmx
31 | jcgray-mmx jcsample-mmx jdcolor-mmx jdmerge-mmx jdsample-mmx jfdctfst-mmx
32 | jfdctint-mmx jidctfst-mmx jidctint-mmx jidctred-mmx jquant-mmx jfdctflt-sse
33 | jidctflt-sse jquant-sse jccolor-sse2 jcgray-sse2 jcsample-sse2 jdcolor-sse2
34 | jdmerge-sse2 jdsample-sse2 jfdctfst-sse2 jfdctint-sse2 jidctflt-sse2
35 | jidctfst-sse2 jidctint-sse2 jidctred-sse2 jquantf-sse2 jquanti-sse2)
36 | message(STATUS "Building i386 SIMD extensions")
37 | endif()
38 |
39 | if(MSVC_IDE)
40 | set(OBJDIR "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}")
41 | else()
42 | set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR})
43 | endif()
44 |
45 | file(GLOB INC_FILES *.inc)
46 |
47 | foreach(file ${SIMD_BASENAMES})
48 | set(DEPFILE "")
49 | set(SIMD_SRC ${CMAKE_CURRENT_SOURCE_DIR}/${file}.asm)
50 | if(${file} MATCHES jccolor)
51 | set(DEPFILE ${file})
52 | string(REGEX REPLACE "jccolor" "jccolext" DEPFILE ${DEPFILE})
53 | set(DEPFILE ${CMAKE_CURRENT_SOURCE_DIR}/${DEPFILE}.asm)
54 | endif()
55 | if(${file} MATCHES jcgray)
56 | set(DEPFILE ${file})
57 | string(REGEX REPLACE "jcgray" "jcgryext" DEPFILE ${DEPFILE})
58 | set(DEPFILE ${CMAKE_CURRENT_SOURCE_DIR}/${DEPFILE}.asm)
59 | endif()
60 | if(${file} MATCHES jdcolor)
61 | set(DEPFILE ${file})
62 | string(REGEX REPLACE "jdcolor" "jdcolext" DEPFILE ${DEPFILE})
63 | set(DEPFILE ${CMAKE_CURRENT_SOURCE_DIR}/${DEPFILE}.asm)
64 | endif()
65 | if(${file} MATCHES jdmerge)
66 | set(DEPFILE ${file})
67 | string(REGEX REPLACE "jdmerge" "jdmrgext" DEPFILE ${DEPFILE})
68 | set(DEPFILE ${CMAKE_CURRENT_SOURCE_DIR}/${DEPFILE}.asm)
69 | endif()
70 | set(SIMD_OBJ ${OBJDIR}/${file}.obj)
71 | add_custom_command(OUTPUT ${SIMD_OBJ}
72 | DEPENDS ${SIMD_SRC} ${DEPFILE} ${INC_FILES}
73 | COMMAND ${NASM} ${NAFLAGS} ${SIMD_SRC} -o${SIMD_OBJ})
74 | set(SIMD_OBJS ${SIMD_OBJS} ${SIMD_OBJ})
75 | endforeach()
76 |
77 | set(SIMD_OBJS ${SIMD_OBJS} PARENT_SCOPE)
78 | add_custom_target(simd DEPENDS ${SIMD_OBJS})
79 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/search/functions_74.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['tjalloc',['tjAlloc',['../group___turbo_j_p_e_g.html#ga5c9234bda6d993cdaffdd89bf81a00ff',1,'turbojpeg.h']]],
4 | ['tjbufsize',['tjBufSize',['../group___turbo_j_p_e_g.html#gaccc5bca7f12fcdcc302e6e1c6d4b311b',1,'turbojpeg.h']]],
5 | ['tjbufsizeyuv2',['tjBufSizeYUV2',['../group___turbo_j_p_e_g.html#gaf451664a62c1f6c7cc5a6401f32908c9',1,'turbojpeg.h']]],
6 | ['tjcompress2',['tjCompress2',['../group___turbo_j_p_e_g.html#gaba62b7a98f960839b588579898495cf2',1,'turbojpeg.h']]],
7 | ['tjcompressfromyuv',['tjCompressFromYUV',['../group___turbo_j_p_e_g.html#ga0b931126c7a615ddc3bbd0cca6698d67',1,'turbojpeg.h']]],
8 | ['tjcompressfromyuvplanes',['tjCompressFromYUVPlanes',['../group___turbo_j_p_e_g.html#gaa89a1982cb4556b12ae7af4439991af6',1,'turbojpeg.h']]],
9 | ['tjdecodeyuv',['tjDecodeYUV',['../group___turbo_j_p_e_g.html#ga132ae2c2cadcf64c8bb0f3bdf69da3ed',1,'turbojpeg.h']]],
10 | ['tjdecodeyuvplanes',['tjDecodeYUVPlanes',['../group___turbo_j_p_e_g.html#ga6cb5b0e1101a2b20edea576e11faf93d',1,'turbojpeg.h']]],
11 | ['tjdecompress2',['tjDecompress2',['../group___turbo_j_p_e_g.html#gada69cc6443d1bb493b40f1626259e5e9',1,'turbojpeg.h']]],
12 | ['tjdecompressheader3',['tjDecompressHeader3',['../group___turbo_j_p_e_g.html#gacd0fac3af74b3511d39b4781b7103086',1,'turbojpeg.h']]],
13 | ['tjdecompresstoyuv2',['tjDecompressToYUV2',['../group___turbo_j_p_e_g.html#ga7c08b340ad7f8e85d407bd9e81d44d07',1,'turbojpeg.h']]],
14 | ['tjdecompresstoyuvplanes',['tjDecompressToYUVPlanes',['../group___turbo_j_p_e_g.html#ga0828a38ae29631ac28b6857cefb0eebf',1,'turbojpeg.h']]],
15 | ['tjdestroy',['tjDestroy',['../group___turbo_j_p_e_g.html#ga674adee917b95ad4a896f1ba39e12540',1,'turbojpeg.h']]],
16 | ['tjencodeyuv3',['tjEncodeYUV3',['../group___turbo_j_p_e_g.html#ga0a5ffbf7cb58a5b6a8201114fe889360',1,'turbojpeg.h']]],
17 | ['tjencodeyuvplanes',['tjEncodeYUVPlanes',['../group___turbo_j_p_e_g.html#gaa791db8598853ddcad24e42897ef1269',1,'turbojpeg.h']]],
18 | ['tjfree',['tjFree',['../group___turbo_j_p_e_g.html#ga8c4a1231dc06a450514c835f6471f137',1,'turbojpeg.h']]],
19 | ['tjgeterrorstr',['tjGetErrorStr',['../group___turbo_j_p_e_g.html#ga9af79c908ec131b1ae8d52fe40375abf',1,'turbojpeg.h']]],
20 | ['tjgetscalingfactors',['tjGetScalingFactors',['../group___turbo_j_p_e_g.html#ga6449044b9af402999ccf52f401333be8',1,'turbojpeg.h']]],
21 | ['tjinitcompress',['tjInitCompress',['../group___turbo_j_p_e_g.html#ga3d10c47fbe4a2489a2b30c931551d01a',1,'turbojpeg.h']]],
22 | ['tjinitdecompress',['tjInitDecompress',['../group___turbo_j_p_e_g.html#gae5408179d041e2a2f7199c8283cf649e',1,'turbojpeg.h']]],
23 | ['tjinittransform',['tjInitTransform',['../group___turbo_j_p_e_g.html#ga3155b775bfbac9dbba869b95a0367902',1,'turbojpeg.h']]],
24 | ['tjplaneheight',['tjPlaneHeight',['../group___turbo_j_p_e_g.html#ga1a209696c6a80748f20e134b3c64789f',1,'turbojpeg.h']]],
25 | ['tjplanesizeyuv',['tjPlaneSizeYUV',['../group___turbo_j_p_e_g.html#ga6f98d977bfa9d167c97172e876ba61e2',1,'turbojpeg.h']]],
26 | ['tjplanewidth',['tjPlaneWidth',['../group___turbo_j_p_e_g.html#ga63fb66bb1e36c74008c4634360becbb1',1,'turbojpeg.h']]],
27 | ['tjtransform',['tjTransform',['../group___turbo_j_p_e_g.html#gae403193ceb4aafb7e0f56ab587b48616',1,'turbojpeg.h']]]
28 | ];
29 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/include/jsimdcfg.inc:
--------------------------------------------------------------------------------
1 | ;
2 | ; Automatically generated include file from jsimdcfg.inc.h
3 | ;
4 | ;
5 | ; -- jpeglib.h
6 | ;
7 | %define DCTSIZE 8
8 | %define DCTSIZE2 64
9 | ;
10 | ; -- jmorecfg.h
11 | ;
12 | %define RGB_RED 0
13 | %define RGB_GREEN 1
14 | %define RGB_BLUE 2
15 | %define RGB_PIXELSIZE 3
16 | %define EXT_RGB_RED 0
17 | %define EXT_RGB_GREEN 1
18 | %define EXT_RGB_BLUE 2
19 | %define EXT_RGB_PIXELSIZE 3
20 | %define EXT_RGBX_RED 0
21 | %define EXT_RGBX_GREEN 1
22 | %define EXT_RGBX_BLUE 2
23 | %define EXT_RGBX_PIXELSIZE 4
24 | %define EXT_BGR_RED 2
25 | %define EXT_BGR_GREEN 1
26 | %define EXT_BGR_BLUE 0
27 | %define EXT_BGR_PIXELSIZE 3
28 | %define EXT_BGRX_RED 2
29 | %define EXT_BGRX_GREEN 1
30 | %define EXT_BGRX_BLUE 0
31 | %define EXT_BGRX_PIXELSIZE 4
32 | %define EXT_XBGR_RED 3
33 | %define EXT_XBGR_GREEN 2
34 | %define EXT_XBGR_BLUE 1
35 | %define EXT_XBGR_PIXELSIZE 4
36 | %define EXT_XRGB_RED 1
37 | %define EXT_XRGB_GREEN 2
38 | %define EXT_XRGB_BLUE 3
39 | %define EXT_XRGB_PIXELSIZE 4
40 | %define RGBX_FILLER_0XFF 1
41 | ; Representation of a single sample (pixel element value).
42 | ; On this SIMD implementation, this must be 'unsigned char'.
43 | ;
44 | %define JSAMPLE byte ; unsigned char
45 | %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
46 | %define CENTERJSAMPLE 128
47 | ; Representation of a DCT frequency coefficient.
48 | ; On this SIMD implementation, this must be 'short'.
49 | ;
50 | %define JCOEF word ; short
51 | %define SIZEOF_JCOEF SIZEOF_WORD ; sizeof(JCOEF)
52 | ; Datatype used for image dimensions.
53 | ; On this SIMD implementation, this must be 'unsigned int'.
54 | ;
55 | %define JDIMENSION dword ; unsigned int
56 | %define SIZEOF_JDIMENSION SIZEOF_DWORD ; sizeof(JDIMENSION)
57 | %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
58 | %define JSAMPARRAY POINTER ; JSAMPROW * (jpeglib.h)
59 | %define JSAMPIMAGE POINTER ; JSAMPARRAY * (jpeglib.h)
60 | %define JCOEFPTR POINTER ; JCOEF * (jpeglib.h)
61 | %define SIZEOF_JSAMPROW SIZEOF_POINTER ; sizeof(JSAMPROW)
62 | %define SIZEOF_JSAMPARRAY SIZEOF_POINTER ; sizeof(JSAMPARRAY)
63 | %define SIZEOF_JSAMPIMAGE SIZEOF_POINTER ; sizeof(JSAMPIMAGE)
64 | %define SIZEOF_JCOEFPTR SIZEOF_POINTER ; sizeof(JCOEFPTR)
65 | ;
66 | ; -- jdct.h
67 | ;
68 | ; A forward DCT routine is given a pointer to a work area of type DCTELEM[];
69 | ; the DCT is to be performed in-place in that buffer.
70 | ; To maximize parallelism, Type DCTELEM is changed to short (originally, int).
71 | ;
72 | %define DCTELEM word ; short
73 | %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
74 | %define float FP32 ; float
75 | %define SIZEOF_FAST_FLOAT SIZEOF_FP32 ; sizeof(float)
76 | ; To maximize parallelism, Type short is changed to short.
77 | ;
78 | %define ISLOW_MULT_TYPE word ; must be short
79 | %define SIZEOF_ISLOW_MULT_TYPE SIZEOF_WORD ; sizeof(ISLOW_MULT_TYPE)
80 | %define IFAST_MULT_TYPE word ; must be short
81 | %define SIZEOF_IFAST_MULT_TYPE SIZEOF_WORD ; sizeof(IFAST_MULT_TYPE)
82 | %define IFAST_SCALE_BITS 2 ; fractional bits in scale factors
83 | %define FLOAT_MULT_TYPE FP32 ; must be float
84 | %define SIZEOF_FLOAT_MULT_TYPE SIZEOF_FP32 ; sizeof(FLOAT_MULT_TYPE)
85 | ;
86 | ; -- jsimd.h
87 | ;
88 | %define JSIMD_NONE 0x00
89 | %define JSIMD_MMX 0x01
90 | %define JSIMD_3DNOW 0x02
91 | %define JSIMD_SSE 0x04
92 | %define JSIMD_SSE2 0x08
93 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jinclude.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jinclude.h
3 | *
4 | * This file was part of the Independent JPEG Group's software:
5 | * Copyright (C) 1991-1994, Thomas G. Lane.
6 | * It was modified by The libjpeg-turbo Project to include only code relevant
7 | * to libjpeg-turbo.
8 | * For conditions of distribution and use, see the accompanying README file.
9 | *
10 | * This file exists to provide a single place to fix any problems with
11 | * including the wrong system include files. (Common problems are taken
12 | * care of by the standard jconfig symbols, but on really weird systems
13 | * you may have to edit this file.)
14 | *
15 | * NOTE: this file is NOT intended to be included by applications using the
16 | * JPEG library. Most applications need only include jpeglib.h.
17 | */
18 |
19 |
20 | /* Include auto-config file to find out which system include files we need. */
21 |
22 | #include "jconfig.h" /* auto configuration options */
23 | #define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */
24 |
25 | /*
26 | * We need the NULL macro and size_t typedef.
27 | * On an ANSI-conforming system it is sufficient to include .
28 | * Otherwise, we get them from or ; we may have to
29 | * pull in as well.
30 | * Note that the core JPEG library does not require ;
31 | * only the default error handler and data source/destination modules do.
32 | * But we must pull it in because of the references to FILE in jpeglib.h.
33 | * You can remove those references if you want to compile without .
34 | */
35 |
36 | #ifdef HAVE_STDDEF_H
37 | #include
38 | #endif
39 |
40 | #ifdef HAVE_STDLIB_H
41 | #include
42 | #endif
43 |
44 | #ifdef NEED_SYS_TYPES_H
45 | #include
46 | #endif
47 |
48 | #include
49 |
50 | /*
51 | * We need memory copying and zeroing functions, plus strncpy().
52 | * ANSI and System V implementations declare these in .
53 | * BSD doesn't have the mem() functions, but it does have bcopy()/bzero().
54 | * Some systems may declare memset and memcpy in .
55 | *
56 | * NOTE: we assume the size parameters to these functions are of type size_t.
57 | * Change the casts in these macros if not!
58 | */
59 |
60 | #ifdef NEED_BSD_STRINGS
61 |
62 | #include
63 | #define MEMZERO(target,size) bzero((void *)(target), (size_t)(size))
64 | #define MEMCOPY(dest,src,size) bcopy((const void *)(src), (void *)(dest), (size_t)(size))
65 |
66 | #else /* not BSD, assume ANSI/SysV string lib */
67 |
68 | #include
69 | #define MEMZERO(target,size) memset((void *)(target), 0, (size_t)(size))
70 | #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size))
71 |
72 | #endif
73 |
74 | /*
75 | * The modules that use fread() and fwrite() always invoke them through
76 | * these macros. On some systems you may need to twiddle the argument casts.
77 | * CAUTION: argument order is different from underlying functions!
78 | */
79 |
80 | #define JFREAD(file,buf,sizeofbuf) \
81 | ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
82 | #define JFWRITE(file,buf,sizeofbuf) \
83 | ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
84 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jmemnobs.c:
--------------------------------------------------------------------------------
1 | /*
2 | * jmemnobs.c
3 | *
4 | * This file was part of the Independent JPEG Group's software:
5 | * Copyright (C) 1992-1996, Thomas G. Lane.
6 | * It was modified by The libjpeg-turbo Project to include only code and
7 | * information relevant to libjpeg-turbo.
8 | * For conditions of distribution and use, see the accompanying README file.
9 | *
10 | * This file provides a really simple implementation of the system-
11 | * dependent portion of the JPEG memory manager. This implementation
12 | * assumes that no backing-store files are needed: all required space
13 | * can be obtained from malloc().
14 | * This is very portable in the sense that it'll compile on almost anything,
15 | * but you'd better have lots of main memory (or virtual memory) if you want
16 | * to process big images.
17 | * Note that the max_memory_to_use option is ignored by this implementation.
18 | */
19 |
20 | #define JPEG_INTERNALS
21 | #include "jinclude.h"
22 | #include "jpeglib.h"
23 | #include "jmemsys.h" /* import the system-dependent declarations */
24 |
25 | #ifndef HAVE_STDLIB_H /* should declare malloc(),free() */
26 | extern void * malloc (size_t size);
27 | extern void free (void *ptr);
28 | #endif
29 |
30 |
31 | /*
32 | * Memory allocation and freeing are controlled by the regular library
33 | * routines malloc() and free().
34 | */
35 |
36 | GLOBAL(void *)
37 | jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
38 | {
39 | return (void *) malloc(sizeofobject);
40 | }
41 |
42 | GLOBAL(void)
43 | jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject)
44 | {
45 | free(object);
46 | }
47 |
48 |
49 | /*
50 | * "Large" objects are treated the same as "small" ones.
51 | */
52 |
53 | GLOBAL(void *)
54 | jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
55 | {
56 | return (void *) malloc(sizeofobject);
57 | }
58 |
59 | GLOBAL(void)
60 | jpeg_free_large (j_common_ptr cinfo, void * object, size_t sizeofobject)
61 | {
62 | free(object);
63 | }
64 |
65 |
66 | /*
67 | * This routine computes the total memory space available for allocation.
68 | * Here we always say, "we got all you want bud!"
69 | */
70 |
71 | GLOBAL(size_t)
72 | jpeg_mem_available (j_common_ptr cinfo, size_t min_bytes_needed,
73 | size_t max_bytes_needed, size_t already_allocated)
74 | {
75 | return max_bytes_needed;
76 | }
77 |
78 |
79 | /*
80 | * Backing store (temporary file) management.
81 | * Since jpeg_mem_available always promised the moon,
82 | * this should never be called and we can just error out.
83 | */
84 |
85 | GLOBAL(void)
86 | jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info,
87 | long total_bytes_needed)
88 | {
89 | ERREXIT(cinfo, JERR_NO_BACKING_STORE);
90 | }
91 |
92 |
93 | /*
94 | * These routines take care of any system-dependent initialization and
95 | * cleanup required. Here, there isn't any.
96 | */
97 |
98 | GLOBAL(long)
99 | jpeg_mem_init (j_common_ptr cinfo)
100 | {
101 | return 0; /* just set max_memory_to_use to 0 */
102 | }
103 |
104 | GLOBAL(void)
105 | jpeg_mem_term (j_common_ptr cinfo)
106 | {
107 | /* no work */
108 | }
109 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/turbojpeg-mapfile.jni:
--------------------------------------------------------------------------------
1 | TURBOJPEG_1.0
2 | {
3 | global:
4 | tjInitCompress;
5 | tjCompress;
6 | TJBUFSIZE;
7 | tjInitDecompress;
8 | tjDecompressHeader;
9 | tjDecompress;
10 | tjDestroy;
11 | tjGetErrorStr;
12 | local:
13 | *;
14 | };
15 |
16 | TURBOJPEG_1.1
17 | {
18 | global:
19 | TJBUFSIZEYUV;
20 | tjDecompressHeader2;
21 | tjDecompressToYUV;
22 | tjEncodeYUV;
23 | } TURBOJPEG_1.0;
24 |
25 | TURBOJPEG_1.2
26 | {
27 | global:
28 | tjAlloc;
29 | tjBufSize;
30 | tjBufSizeYUV;
31 | tjCompress2;
32 | tjDecompress2;
33 | tjEncodeYUV2;
34 | tjFree;
35 | tjGetScalingFactors;
36 | tjInitTransform;
37 | tjTransform;
38 | Java_org_libjpegturbo_turbojpeg_TJ_bufSize;
39 | Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III;
40 | Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors;
41 | Java_org_libjpegturbo_turbojpeg_TJCompressor_init;
42 | Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII;
43 | Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIII_3BIII;
44 | Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII;
45 | Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII;
46 | Java_org_libjpegturbo_turbojpeg_TJCompressor_destroy;
47 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_init;
48 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader;
49 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII;
50 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII;
51 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI;
52 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy;
53 | Java_org_libjpegturbo_turbojpeg_TJTransformer_init;
54 | Java_org_libjpegturbo_turbojpeg_TJTransformer_transform;
55 | } TURBOJPEG_1.1;
56 |
57 | TURBOJPEG_1.3
58 | {
59 | global:
60 | Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII;
61 | Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIIIII_3BIII;
62 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIIIII;
63 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII;
64 | } TURBOJPEG_1.2;
65 |
66 | TURBOJPEG_1.4
67 | {
68 | global:
69 | tjBufSizeYUV2;
70 | tjCompressFromYUV;
71 | tjCompressFromYUVPlanes;
72 | tjDecodeYUV;
73 | tjDecodeYUVPlanes;
74 | tjDecompressHeader3;
75 | tjDecompressToYUV2;
76 | tjDecompressToYUVPlanes;
77 | tjEncodeYUV3;
78 | tjEncodeYUVPlanes;
79 | tjPlaneHeight;
80 | tjPlaneSizeYUV;
81 | tjPlaneWidth;
82 | Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII;
83 | Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII;
84 | Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIIIII_3_3B_3I_3III;
85 | Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIIIII_3_3B_3I_3III;
86 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III;
87 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3BIIIIIII;
88 | Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3IIIIIIII;
89 | Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III;
90 | Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII;
91 | Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III;
92 | } TURBOJPEG_1.3;
93 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jsimdcfg.inc:
--------------------------------------------------------------------------------
1 | ;
2 | ; Automatically generated include file from jsimdcfg.inc.h
3 | ;
4 | ;
5 | ; -- jpeglib.h
6 | ;
7 | %define DCTSIZE 8
8 | %define DCTSIZE2 64
9 | ;
10 | ; -- jmorecfg.h
11 | ;
12 | %define RGB_RED 0
13 | %define RGB_GREEN 1
14 | %define RGB_BLUE 2
15 | %define RGB_PIXELSIZE 3
16 | %define EXT_RGB_RED 0
17 | %define EXT_RGB_GREEN 1
18 | %define EXT_RGB_BLUE 2
19 | %define EXT_RGB_PIXELSIZE 3
20 | %define EXT_RGBX_RED 0
21 | %define EXT_RGBX_GREEN 1
22 | %define EXT_RGBX_BLUE 2
23 | %define EXT_RGBX_PIXELSIZE 4
24 | %define EXT_BGR_RED 2
25 | %define EXT_BGR_GREEN 1
26 | %define EXT_BGR_BLUE 0
27 | %define EXT_BGR_PIXELSIZE 3
28 | %define EXT_BGRX_RED 2
29 | %define EXT_BGRX_GREEN 1
30 | %define EXT_BGRX_BLUE 0
31 | %define EXT_BGRX_PIXELSIZE 4
32 | %define EXT_XBGR_RED 3
33 | %define EXT_XBGR_GREEN 2
34 | %define EXT_XBGR_BLUE 1
35 | %define EXT_XBGR_PIXELSIZE 4
36 | %define EXT_XRGB_RED 1
37 | %define EXT_XRGB_GREEN 2
38 | %define EXT_XRGB_BLUE 3
39 | %define EXT_XRGB_PIXELSIZE 4
40 | %define RGBX_FILLER_0XFF 1
41 | ; Representation of a single sample (pixel element value).
42 | ; On this SIMD implementation, this must be 'unsigned char'.
43 | ;
44 | %define JSAMPLE byte ; unsigned char
45 | %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
46 | %define CENTERJSAMPLE 128
47 | ; Representation of a DCT frequency coefficient.
48 | ; On this SIMD implementation, this must be 'short'.
49 | ;
50 | %define JCOEF word ; short
51 | %define SIZEOF_JCOEF SIZEOF_WORD ; sizeof(JCOEF)
52 | ; Datatype used for image dimensions.
53 | ; On this SIMD implementation, this must be 'unsigned int'.
54 | ;
55 | %define JDIMENSION dword ; unsigned int
56 | %define SIZEOF_JDIMENSION SIZEOF_DWORD ; sizeof(JDIMENSION)
57 | %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
58 | %define JSAMPARRAY POINTER ; JSAMPROW * (jpeglib.h)
59 | %define JSAMPIMAGE POINTER ; JSAMPARRAY * (jpeglib.h)
60 | %define JCOEFPTR POINTER ; JCOEF * (jpeglib.h)
61 | %define SIZEOF_JSAMPROW SIZEOF_POINTER ; sizeof(JSAMPROW)
62 | %define SIZEOF_JSAMPARRAY SIZEOF_POINTER ; sizeof(JSAMPARRAY)
63 | %define SIZEOF_JSAMPIMAGE SIZEOF_POINTER ; sizeof(JSAMPIMAGE)
64 | %define SIZEOF_JCOEFPTR SIZEOF_POINTER ; sizeof(JCOEFPTR)
65 | ;
66 | ; -- jdct.h
67 | ;
68 | ; A forward DCT routine is given a pointer to a work area of type DCTELEM[];
69 | ; the DCT is to be performed in-place in that buffer.
70 | ; To maximize parallelism, Type DCTELEM is changed to short (originally, int).
71 | ;
72 | %define DCTELEM word ; short
73 | %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
74 | %define float FP32 ; float
75 | %define SIZEOF_FAST_FLOAT SIZEOF_FP32 ; sizeof(float)
76 | ; To maximize parallelism, Type short is changed to short.
77 | ;
78 | %define ISLOW_MULT_TYPE word ; must be short
79 | %define SIZEOF_ISLOW_MULT_TYPE SIZEOF_WORD ; sizeof(ISLOW_MULT_TYPE)
80 | %define IFAST_MULT_TYPE word ; must be short
81 | %define SIZEOF_IFAST_MULT_TYPE SIZEOF_WORD ; sizeof(IFAST_MULT_TYPE)
82 | %define IFAST_SCALE_BITS 2 ; fractional bits in scale factors
83 | %define FLOAT_MULT_TYPE FP32 ; must be float
84 | %define SIZEOF_FLOAT_MULT_TYPE SIZEOF_FP32 ; sizeof(FLOAT_MULT_TYPE)
85 | ;
86 | ; -- jsimd.h
87 | ;
88 | %define JSIMD_NONE 0x00
89 | %define JSIMD_MMX 0x01
90 | %define JSIMD_3DNOW 0x02
91 | %define JSIMD_SSE 0x04
92 | %define JSIMD_SSE2 0x08
93 | ; Short forms of external names for systems with brain-damaged linkers.
94 | ;
95 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/doc/html/dynsections.js:
--------------------------------------------------------------------------------
1 | function toggleVisibility(linkObj)
2 | {
3 | var base = $(linkObj).attr('id');
4 | var summary = $('#'+base+'-summary');
5 | var content = $('#'+base+'-content');
6 | var trigger = $('#'+base+'-trigger');
7 | var src=$(trigger).attr('src');
8 | if (content.is(':visible')===true) {
9 | content.hide();
10 | summary.show();
11 | $(linkObj).addClass('closed').removeClass('opened');
12 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
13 | } else {
14 | content.show();
15 | summary.hide();
16 | $(linkObj).removeClass('closed').addClass('opened');
17 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
18 | }
19 | return false;
20 | }
21 |
22 | function updateStripes()
23 | {
24 | $('table.directory tr').
25 | removeClass('even').filter(':visible:even').addClass('even');
26 | }
27 | function toggleLevel(level)
28 | {
29 | $('table.directory tr').each(function(){
30 | var l = this.id.split('_').length-1;
31 | var i = $('#img'+this.id.substring(3));
32 | var a = $('#arr'+this.id.substring(3));
33 | if (l for Cendio AB
5 | ;
6 | ; Based on
7 | ; x86 SIMD extension for IJG JPEG library
8 | ; Copyright (C) 1999-2006, MIYASAKA Masaru.
9 | ; For conditions of distribution and use, see copyright notice in jsimdext.inc
10 | ;
11 | ; This file should be assembled with NASM (Netwide Assembler),
12 | ; can *not* be assembled with Microsoft's MASM or any compatible
13 | ; assembler (including Borland's Turbo Assembler).
14 | ; NASM is available from http://nasm.sourceforge.net/ or
15 | ; http://sourceforge.net/project/showfiles.php?group_id=6208
16 | ;
17 | ; [TAB8]
18 |
19 | %include "jsimdext.inc"
20 |
21 | ; --------------------------------------------------------------------------
22 | SECTION SEG_TEXT
23 | BITS 32
24 | ;
25 | ; Check if the CPU supports SIMD instructions
26 | ;
27 | ; GLOBAL(unsigned int)
28 | ; jpeg_simd_cpu_support (void)
29 | ;
30 |
31 | align 16
32 | global EXTN(jpeg_simd_cpu_support)
33 |
34 | EXTN(jpeg_simd_cpu_support):
35 | push ebx
36 | ; push ecx ; need not be preserved
37 | ; push edx ; need not be preserved
38 | ; push esi ; unused
39 | push edi
40 |
41 | xor edi,edi ; simd support flag
42 |
43 | pushfd
44 | pop eax
45 | mov edx,eax
46 | xor eax, 1<<21 ; flip ID bit in EFLAGS
47 | push eax
48 | popfd
49 | pushfd
50 | pop eax
51 | xor eax,edx
52 | jz short .return ; CPUID is not supported
53 |
54 | ; Check for MMX instruction support
55 | xor eax,eax
56 | cpuid
57 | test eax,eax
58 | jz short .return
59 |
60 | xor eax,eax
61 | inc eax
62 | cpuid
63 | mov eax,edx ; eax = Standard feature flags
64 |
65 | test eax, 1<<23 ; bit23:MMX
66 | jz short .no_mmx
67 | or edi, byte JSIMD_MMX
68 | .no_mmx:
69 | test eax, 1<<25 ; bit25:SSE
70 | jz short .no_sse
71 | or edi, byte JSIMD_SSE
72 | .no_sse:
73 | test eax, 1<<26 ; bit26:SSE2
74 | jz short .no_sse2
75 | or edi, byte JSIMD_SSE2
76 | .no_sse2:
77 |
78 | ; Check for 3DNow! instruction support
79 | mov eax, 0x80000000
80 | cpuid
81 | cmp eax, 0x80000000
82 | jbe short .return
83 |
84 | mov eax, 0x80000001
85 | cpuid
86 | mov eax,edx ; eax = Extended feature flags
87 |
88 | test eax, 1<<31 ; bit31:3DNow!(vendor independent)
89 | jz short .no_3dnow
90 | or edi, byte JSIMD_3DNOW
91 | .no_3dnow:
92 |
93 | .return:
94 | mov eax,edi
95 |
96 | pop edi
97 | ; pop esi ; unused
98 | ; pop edx ; need not be preserved
99 | ; pop ecx ; need not be preserved
100 | pop ebx
101 | ret
102 |
103 | ; For some reason, the OS X linker does not honor the request to align the
104 | ; segment unless we do this.
105 | align 16
106 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jpeg62-memsrcdst.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 | jcopy_block_row @ 1 ;
3 | jcopy_sample_rows @ 2 ;
4 | jdiv_round_up @ 3 ;
5 | jinit_1pass_quantizer @ 4 ;
6 | jinit_2pass_quantizer @ 5 ;
7 | jinit_c_coef_controller @ 6 ;
8 | jinit_c_main_controller @ 7 ;
9 | jinit_c_master_control @ 8 ;
10 | jinit_c_prep_controller @ 9 ;
11 | jinit_color_converter @ 10 ;
12 | jinit_color_deconverter @ 11 ;
13 | jinit_compress_master @ 12 ;
14 | jinit_d_coef_controller @ 13 ;
15 | jinit_d_main_controller @ 14 ;
16 | jinit_d_post_controller @ 15 ;
17 | jinit_downsampler @ 16 ;
18 | jinit_forward_dct @ 17 ;
19 | jinit_huff_decoder @ 18 ;
20 | jinit_huff_encoder @ 19 ;
21 | jinit_input_controller @ 20 ;
22 | jinit_inverse_dct @ 21 ;
23 | jinit_marker_reader @ 22 ;
24 | jinit_marker_writer @ 23 ;
25 | jinit_master_decompress @ 24 ;
26 | jinit_memory_mgr @ 25 ;
27 | jinit_merged_upsampler @ 26 ;
28 | jinit_phuff_decoder @ 27 ;
29 | jinit_phuff_encoder @ 28 ;
30 | jinit_upsampler @ 29 ;
31 | jpeg_CreateCompress @ 30 ;
32 | jpeg_CreateDecompress @ 31 ;
33 | jpeg_abort @ 32 ;
34 | jpeg_abort_compress @ 33 ;
35 | jpeg_abort_decompress @ 34 ;
36 | jpeg_add_quant_table @ 35 ;
37 | jpeg_alloc_huff_table @ 36 ;
38 | jpeg_alloc_quant_table @ 37 ;
39 | jpeg_calc_output_dimensions @ 38 ;
40 | jpeg_consume_input @ 39 ;
41 | jpeg_copy_critical_parameters @ 40 ;
42 | jpeg_default_colorspace @ 41 ;
43 | jpeg_destroy @ 42 ;
44 | jpeg_destroy_compress @ 43 ;
45 | jpeg_destroy_decompress @ 44 ;
46 | jpeg_fdct_float @ 45 ;
47 | jpeg_fdct_ifast @ 46 ;
48 | jpeg_fdct_islow @ 47 ;
49 | jpeg_fill_bit_buffer @ 48 ;
50 | jpeg_finish_compress @ 49 ;
51 | jpeg_finish_decompress @ 50 ;
52 | jpeg_finish_output @ 51 ;
53 | jpeg_free_large @ 52 ;
54 | jpeg_free_small @ 53 ;
55 | jpeg_gen_optimal_table @ 54 ;
56 | jpeg_get_large @ 55 ;
57 | jpeg_get_small @ 56 ;
58 | jpeg_has_multiple_scans @ 57 ;
59 | jpeg_huff_decode @ 58 ;
60 | jpeg_idct_1x1 @ 59 ;
61 | jpeg_idct_2x2 @ 60 ;
62 | jpeg_idct_4x4 @ 61 ;
63 | jpeg_idct_float @ 62 ;
64 | jpeg_idct_ifast @ 63 ;
65 | jpeg_idct_islow @ 64 ;
66 | jpeg_input_complete @ 65 ;
67 | jpeg_make_c_derived_tbl @ 66 ;
68 | jpeg_make_d_derived_tbl @ 67 ;
69 | jpeg_mem_available @ 68 ;
70 | jpeg_mem_init @ 69 ;
71 | jpeg_mem_term @ 70 ;
72 | jpeg_new_colormap @ 71 ;
73 | jpeg_open_backing_store @ 72 ;
74 | jpeg_quality_scaling @ 73 ;
75 | jpeg_read_coefficients @ 74 ;
76 | jpeg_read_header @ 75 ;
77 | jpeg_read_raw_data @ 76 ;
78 | jpeg_read_scanlines @ 77 ;
79 | jpeg_resync_to_restart @ 78 ;
80 | jpeg_save_markers @ 79 ;
81 | jpeg_set_colorspace @ 80 ;
82 | jpeg_set_defaults @ 81 ;
83 | jpeg_set_linear_quality @ 82 ;
84 | jpeg_set_marker_processor @ 83 ;
85 | jpeg_set_quality @ 84 ;
86 | jpeg_simple_progression @ 85 ;
87 | jpeg_start_compress @ 86 ;
88 | jpeg_start_decompress @ 87 ;
89 | jpeg_start_output @ 88 ;
90 | jpeg_std_error @ 89 ;
91 | jpeg_stdio_dest @ 90 ;
92 | jpeg_stdio_src @ 91 ;
93 | jpeg_suppress_tables @ 92 ;
94 | jpeg_write_coefficients @ 93 ;
95 | jpeg_write_m_byte @ 94 ;
96 | jpeg_write_m_header @ 95 ;
97 | jpeg_write_marker @ 96 ;
98 | jpeg_write_raw_data @ 97 ;
99 | jpeg_write_scanlines @ 98 ;
100 | jpeg_write_tables @ 99 ;
101 | jround_up @ 100 ;
102 | jzero_far @ 101 ;
103 | jpeg_mem_dest @ 102 ;
104 | jpeg_mem_src @ 103 ;
105 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jpeg7.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 | jcopy_block_row @ 1 ;
3 | jcopy_sample_rows @ 2 ;
4 | jdiv_round_up @ 3 ;
5 | jinit_1pass_quantizer @ 4 ;
6 | jinit_2pass_quantizer @ 5 ;
7 | jinit_c_coef_controller @ 6 ;
8 | jinit_c_main_controller @ 7 ;
9 | jinit_c_master_control @ 8 ;
10 | jinit_c_prep_controller @ 9 ;
11 | jinit_color_converter @ 10 ;
12 | jinit_color_deconverter @ 11 ;
13 | jinit_compress_master @ 12 ;
14 | jinit_d_coef_controller @ 13 ;
15 | jinit_d_main_controller @ 14 ;
16 | jinit_d_post_controller @ 15 ;
17 | jinit_downsampler @ 16 ;
18 | jinit_forward_dct @ 17 ;
19 | jinit_huff_decoder @ 18 ;
20 | jinit_huff_encoder @ 19 ;
21 | jinit_input_controller @ 20 ;
22 | jinit_inverse_dct @ 21 ;
23 | jinit_marker_reader @ 22 ;
24 | jinit_marker_writer @ 23 ;
25 | jinit_master_decompress @ 24 ;
26 | jinit_memory_mgr @ 25 ;
27 | jinit_merged_upsampler @ 26 ;
28 | jinit_phuff_decoder @ 27 ;
29 | jinit_phuff_encoder @ 28 ;
30 | jinit_upsampler @ 29 ;
31 | jpeg_CreateCompress @ 30 ;
32 | jpeg_CreateDecompress @ 31 ;
33 | jpeg_abort @ 32 ;
34 | jpeg_abort_compress @ 33 ;
35 | jpeg_abort_decompress @ 34 ;
36 | jpeg_add_quant_table @ 35 ;
37 | jpeg_alloc_huff_table @ 36 ;
38 | jpeg_alloc_quant_table @ 37 ;
39 | jpeg_calc_jpeg_dimensions @ 38 ;
40 | jpeg_calc_output_dimensions @ 39 ;
41 | jpeg_consume_input @ 40 ;
42 | jpeg_copy_critical_parameters @ 41 ;
43 | jpeg_default_colorspace @ 42 ;
44 | jpeg_default_qtables @ 43 ;
45 | jpeg_destroy @ 44 ;
46 | jpeg_destroy_compress @ 45 ;
47 | jpeg_destroy_decompress @ 46 ;
48 | jpeg_fdct_float @ 47 ;
49 | jpeg_fdct_ifast @ 48 ;
50 | jpeg_fdct_islow @ 49 ;
51 | jpeg_fill_bit_buffer @ 50 ;
52 | jpeg_finish_compress @ 51 ;
53 | jpeg_finish_decompress @ 52 ;
54 | jpeg_finish_output @ 53 ;
55 | jpeg_free_large @ 54 ;
56 | jpeg_free_small @ 55 ;
57 | jpeg_gen_optimal_table @ 56 ;
58 | jpeg_get_large @ 57 ;
59 | jpeg_get_small @ 58 ;
60 | jpeg_has_multiple_scans @ 59 ;
61 | jpeg_huff_decode @ 60 ;
62 | jpeg_idct_1x1 @ 61 ;
63 | jpeg_idct_2x2 @ 62 ;
64 | jpeg_idct_4x4 @ 63 ;
65 | jpeg_idct_float @ 64 ;
66 | jpeg_idct_ifast @ 65 ;
67 | jpeg_idct_islow @ 66 ;
68 | jpeg_input_complete @ 67 ;
69 | jpeg_make_c_derived_tbl @ 68 ;
70 | jpeg_make_d_derived_tbl @ 69 ;
71 | jpeg_mem_available @ 70 ;
72 | jpeg_mem_init @ 71 ;
73 | jpeg_mem_term @ 72 ;
74 | jpeg_new_colormap @ 73 ;
75 | jpeg_open_backing_store @ 74 ;
76 | jpeg_quality_scaling @ 75 ;
77 | jpeg_read_coefficients @ 76 ;
78 | jpeg_read_header @ 77 ;
79 | jpeg_read_raw_data @ 78 ;
80 | jpeg_read_scanlines @ 79 ;
81 | jpeg_resync_to_restart @ 80 ;
82 | jpeg_save_markers @ 81 ;
83 | jpeg_set_colorspace @ 82 ;
84 | jpeg_set_defaults @ 83 ;
85 | jpeg_set_linear_quality @ 84 ;
86 | jpeg_set_marker_processor @ 85 ;
87 | jpeg_set_quality @ 86 ;
88 | jpeg_simple_progression @ 87 ;
89 | jpeg_start_compress @ 88 ;
90 | jpeg_start_decompress @ 89 ;
91 | jpeg_start_output @ 90 ;
92 | jpeg_std_error @ 91 ;
93 | jpeg_stdio_dest @ 92 ;
94 | jpeg_stdio_src @ 93 ;
95 | jpeg_suppress_tables @ 94 ;
96 | jpeg_write_coefficients @ 95 ;
97 | jpeg_write_m_byte @ 96 ;
98 | jpeg_write_m_header @ 97 ;
99 | jpeg_write_marker @ 98 ;
100 | jpeg_write_raw_data @ 99 ;
101 | jpeg_write_scanlines @ 100 ;
102 | jpeg_write_tables @ 101 ;
103 | jround_up @ 102 ;
104 | jzero_far @ 103 ;
105 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jsimddct.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jsimddct.h
3 | *
4 | * Copyright 2009 Pierre Ossman for Cendio AB
5 | *
6 | * Based on the x86 SIMD extension for IJG JPEG library,
7 | * Copyright (C) 1999-2006, MIYASAKA Masaru.
8 | * For conditions of distribution and use, see copyright notice in jsimdext.inc
9 | *
10 | */
11 |
12 | EXTERN(int) jsimd_can_convsamp (void);
13 | EXTERN(int) jsimd_can_convsamp_float (void);
14 |
15 | EXTERN(void) jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
16 | DCTELEM * workspace);
17 | EXTERN(void) jsimd_convsamp_float (JSAMPARRAY sample_data,
18 | JDIMENSION start_col,
19 | FAST_FLOAT * workspace);
20 |
21 | EXTERN(int) jsimd_can_fdct_islow (void);
22 | EXTERN(int) jsimd_can_fdct_ifast (void);
23 | EXTERN(int) jsimd_can_fdct_float (void);
24 |
25 | EXTERN(void) jsimd_fdct_islow (DCTELEM * data);
26 | EXTERN(void) jsimd_fdct_ifast (DCTELEM * data);
27 | EXTERN(void) jsimd_fdct_float (FAST_FLOAT * data);
28 |
29 | EXTERN(int) jsimd_can_quantize (void);
30 | EXTERN(int) jsimd_can_quantize_float (void);
31 |
32 | EXTERN(void) jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
33 | DCTELEM * workspace);
34 | EXTERN(void) jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
35 | FAST_FLOAT * workspace);
36 |
37 | EXTERN(int) jsimd_can_idct_2x2 (void);
38 | EXTERN(int) jsimd_can_idct_4x4 (void);
39 | EXTERN(int) jsimd_can_idct_6x6 (void);
40 | EXTERN(int) jsimd_can_idct_12x12 (void);
41 |
42 | EXTERN(void) jsimd_idct_2x2 (j_decompress_ptr cinfo,
43 | jpeg_component_info * compptr,
44 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
45 | JDIMENSION output_col);
46 | EXTERN(void) jsimd_idct_4x4 (j_decompress_ptr cinfo,
47 | jpeg_component_info * compptr,
48 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
49 | JDIMENSION output_col);
50 | EXTERN(void) jsimd_idct_6x6 (j_decompress_ptr cinfo,
51 | jpeg_component_info * compptr,
52 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
53 | JDIMENSION output_col);
54 | EXTERN(void) jsimd_idct_12x12 (j_decompress_ptr cinfo,
55 | jpeg_component_info * compptr,
56 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
57 | JDIMENSION output_col);
58 |
59 | EXTERN(int) jsimd_can_idct_islow (void);
60 | EXTERN(int) jsimd_can_idct_ifast (void);
61 | EXTERN(int) jsimd_can_idct_float (void);
62 |
63 | EXTERN(void) jsimd_idct_islow (j_decompress_ptr cinfo,
64 | jpeg_component_info * compptr,
65 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
66 | JDIMENSION output_col);
67 | EXTERN(void) jsimd_idct_ifast (j_decompress_ptr cinfo,
68 | jpeg_component_info * compptr,
69 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
70 | JDIMENSION output_col);
71 | EXTERN(void) jsimd_idct_float (j_decompress_ptr cinfo,
72 | jpeg_component_info * compptr,
73 | JCOEFPTR coef_block, JSAMPARRAY output_buf,
74 | JDIMENSION output_col);
75 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jpeg7-memsrcdst.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 | jcopy_block_row @ 1 ;
3 | jcopy_sample_rows @ 2 ;
4 | jdiv_round_up @ 3 ;
5 | jinit_1pass_quantizer @ 4 ;
6 | jinit_2pass_quantizer @ 5 ;
7 | jinit_c_coef_controller @ 6 ;
8 | jinit_c_main_controller @ 7 ;
9 | jinit_c_master_control @ 8 ;
10 | jinit_c_prep_controller @ 9 ;
11 | jinit_color_converter @ 10 ;
12 | jinit_color_deconverter @ 11 ;
13 | jinit_compress_master @ 12 ;
14 | jinit_d_coef_controller @ 13 ;
15 | jinit_d_main_controller @ 14 ;
16 | jinit_d_post_controller @ 15 ;
17 | jinit_downsampler @ 16 ;
18 | jinit_forward_dct @ 17 ;
19 | jinit_huff_decoder @ 18 ;
20 | jinit_huff_encoder @ 19 ;
21 | jinit_input_controller @ 20 ;
22 | jinit_inverse_dct @ 21 ;
23 | jinit_marker_reader @ 22 ;
24 | jinit_marker_writer @ 23 ;
25 | jinit_master_decompress @ 24 ;
26 | jinit_memory_mgr @ 25 ;
27 | jinit_merged_upsampler @ 26 ;
28 | jinit_phuff_decoder @ 27 ;
29 | jinit_phuff_encoder @ 28 ;
30 | jinit_upsampler @ 29 ;
31 | jpeg_CreateCompress @ 30 ;
32 | jpeg_CreateDecompress @ 31 ;
33 | jpeg_abort @ 32 ;
34 | jpeg_abort_compress @ 33 ;
35 | jpeg_abort_decompress @ 34 ;
36 | jpeg_add_quant_table @ 35 ;
37 | jpeg_alloc_huff_table @ 36 ;
38 | jpeg_alloc_quant_table @ 37 ;
39 | jpeg_calc_jpeg_dimensions @ 38 ;
40 | jpeg_calc_output_dimensions @ 39 ;
41 | jpeg_consume_input @ 40 ;
42 | jpeg_copy_critical_parameters @ 41 ;
43 | jpeg_default_colorspace @ 42 ;
44 | jpeg_default_qtables @ 43 ;
45 | jpeg_destroy @ 44 ;
46 | jpeg_destroy_compress @ 45 ;
47 | jpeg_destroy_decompress @ 46 ;
48 | jpeg_fdct_float @ 47 ;
49 | jpeg_fdct_ifast @ 48 ;
50 | jpeg_fdct_islow @ 49 ;
51 | jpeg_fill_bit_buffer @ 50 ;
52 | jpeg_finish_compress @ 51 ;
53 | jpeg_finish_decompress @ 52 ;
54 | jpeg_finish_output @ 53 ;
55 | jpeg_free_large @ 54 ;
56 | jpeg_free_small @ 55 ;
57 | jpeg_gen_optimal_table @ 56 ;
58 | jpeg_get_large @ 57 ;
59 | jpeg_get_small @ 58 ;
60 | jpeg_has_multiple_scans @ 59 ;
61 | jpeg_huff_decode @ 60 ;
62 | jpeg_idct_1x1 @ 61 ;
63 | jpeg_idct_2x2 @ 62 ;
64 | jpeg_idct_4x4 @ 63 ;
65 | jpeg_idct_float @ 64 ;
66 | jpeg_idct_ifast @ 65 ;
67 | jpeg_idct_islow @ 66 ;
68 | jpeg_input_complete @ 67 ;
69 | jpeg_make_c_derived_tbl @ 68 ;
70 | jpeg_make_d_derived_tbl @ 69 ;
71 | jpeg_mem_available @ 70 ;
72 | jpeg_mem_init @ 71 ;
73 | jpeg_mem_term @ 72 ;
74 | jpeg_new_colormap @ 73 ;
75 | jpeg_open_backing_store @ 74 ;
76 | jpeg_quality_scaling @ 75 ;
77 | jpeg_read_coefficients @ 76 ;
78 | jpeg_read_header @ 77 ;
79 | jpeg_read_raw_data @ 78 ;
80 | jpeg_read_scanlines @ 79 ;
81 | jpeg_resync_to_restart @ 80 ;
82 | jpeg_save_markers @ 81 ;
83 | jpeg_set_colorspace @ 82 ;
84 | jpeg_set_defaults @ 83 ;
85 | jpeg_set_linear_quality @ 84 ;
86 | jpeg_set_marker_processor @ 85 ;
87 | jpeg_set_quality @ 86 ;
88 | jpeg_simple_progression @ 87 ;
89 | jpeg_start_compress @ 88 ;
90 | jpeg_start_decompress @ 89 ;
91 | jpeg_start_output @ 90 ;
92 | jpeg_std_error @ 91 ;
93 | jpeg_stdio_dest @ 92 ;
94 | jpeg_stdio_src @ 93 ;
95 | jpeg_suppress_tables @ 94 ;
96 | jpeg_write_coefficients @ 95 ;
97 | jpeg_write_m_byte @ 96 ;
98 | jpeg_write_m_header @ 97 ;
99 | jpeg_write_marker @ 98 ;
100 | jpeg_write_raw_data @ 99 ;
101 | jpeg_write_scanlines @ 100 ;
102 | jpeg_write_tables @ 101 ;
103 | jround_up @ 102 ;
104 | jzero_far @ 103 ;
105 | jpeg_mem_dest @ 104 ;
106 | jpeg_mem_src @ 105 ;
107 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/win/jpeg8.def:
--------------------------------------------------------------------------------
1 | EXPORTS
2 | jcopy_block_row @ 1 ;
3 | jcopy_sample_rows @ 2 ;
4 | jdiv_round_up @ 3 ;
5 | jinit_1pass_quantizer @ 4 ;
6 | jinit_2pass_quantizer @ 5 ;
7 | jinit_c_coef_controller @ 6 ;
8 | jinit_c_main_controller @ 7 ;
9 | jinit_c_master_control @ 8 ;
10 | jinit_c_prep_controller @ 9 ;
11 | jinit_color_converter @ 10 ;
12 | jinit_color_deconverter @ 11 ;
13 | jinit_compress_master @ 12 ;
14 | jinit_d_coef_controller @ 13 ;
15 | jinit_d_main_controller @ 14 ;
16 | jinit_d_post_controller @ 15 ;
17 | jinit_downsampler @ 16 ;
18 | jinit_forward_dct @ 17 ;
19 | jinit_huff_decoder @ 18 ;
20 | jinit_huff_encoder @ 19 ;
21 | jinit_input_controller @ 20 ;
22 | jinit_inverse_dct @ 21 ;
23 | jinit_marker_reader @ 22 ;
24 | jinit_marker_writer @ 23 ;
25 | jinit_master_decompress @ 24 ;
26 | jinit_memory_mgr @ 25 ;
27 | jinit_merged_upsampler @ 26 ;
28 | jinit_phuff_decoder @ 27 ;
29 | jinit_phuff_encoder @ 28 ;
30 | jinit_upsampler @ 29 ;
31 | jpeg_CreateCompress @ 30 ;
32 | jpeg_CreateDecompress @ 31 ;
33 | jpeg_abort @ 32 ;
34 | jpeg_abort_compress @ 33 ;
35 | jpeg_abort_decompress @ 34 ;
36 | jpeg_add_quant_table @ 35 ;
37 | jpeg_alloc_huff_table @ 36 ;
38 | jpeg_alloc_quant_table @ 37 ;
39 | jpeg_calc_jpeg_dimensions @ 38 ;
40 | jpeg_calc_output_dimensions @ 39 ;
41 | jpeg_consume_input @ 40 ;
42 | jpeg_copy_critical_parameters @ 41 ;
43 | jpeg_core_output_dimensions @ 42 ;
44 | jpeg_default_colorspace @ 43 ;
45 | jpeg_default_qtables @ 44 ;
46 | jpeg_destroy @ 45 ;
47 | jpeg_destroy_compress @ 46 ;
48 | jpeg_destroy_decompress @ 47 ;
49 | jpeg_fdct_float @ 48 ;
50 | jpeg_fdct_ifast @ 49 ;
51 | jpeg_fdct_islow @ 50 ;
52 | jpeg_fill_bit_buffer @ 51 ;
53 | jpeg_finish_compress @ 52 ;
54 | jpeg_finish_decompress @ 53 ;
55 | jpeg_finish_output @ 54 ;
56 | jpeg_free_large @ 55 ;
57 | jpeg_free_small @ 56 ;
58 | jpeg_gen_optimal_table @ 57 ;
59 | jpeg_get_large @ 58 ;
60 | jpeg_get_small @ 59 ;
61 | jpeg_has_multiple_scans @ 60 ;
62 | jpeg_huff_decode @ 61 ;
63 | jpeg_idct_1x1 @ 62 ;
64 | jpeg_idct_2x2 @ 63 ;
65 | jpeg_idct_4x4 @ 64 ;
66 | jpeg_idct_float @ 65 ;
67 | jpeg_idct_ifast @ 66 ;
68 | jpeg_idct_islow @ 67 ;
69 | jpeg_input_complete @ 68 ;
70 | jpeg_make_c_derived_tbl @ 69 ;
71 | jpeg_make_d_derived_tbl @ 70 ;
72 | jpeg_mem_available @ 71 ;
73 | jpeg_mem_dest @ 72 ;
74 | jpeg_mem_init @ 73 ;
75 | jpeg_mem_src @ 74 ;
76 | jpeg_mem_term @ 75 ;
77 | jpeg_new_colormap @ 76 ;
78 | jpeg_open_backing_store @ 77 ;
79 | jpeg_quality_scaling @ 78 ;
80 | jpeg_read_coefficients @ 79 ;
81 | jpeg_read_header @ 80 ;
82 | jpeg_read_raw_data @ 81 ;
83 | jpeg_read_scanlines @ 82 ;
84 | jpeg_resync_to_restart @ 83 ;
85 | jpeg_save_markers @ 84 ;
86 | jpeg_set_colorspace @ 85 ;
87 | jpeg_set_defaults @ 86 ;
88 | jpeg_set_linear_quality @ 87 ;
89 | jpeg_set_marker_processor @ 88 ;
90 | jpeg_set_quality @ 89 ;
91 | jpeg_simple_progression @ 90 ;
92 | jpeg_start_compress @ 91 ;
93 | jpeg_start_decompress @ 92 ;
94 | jpeg_start_output @ 93 ;
95 | jpeg_std_error @ 94 ;
96 | jpeg_stdio_dest @ 95 ;
97 | jpeg_stdio_src @ 96 ;
98 | jpeg_suppress_tables @ 97 ;
99 | jpeg_write_coefficients @ 98 ;
100 | jpeg_write_m_byte @ 99 ;
101 | jpeg_write_m_header @ 100 ;
102 | jpeg_write_marker @ 101 ;
103 | jpeg_write_raw_data @ 102 ;
104 | jpeg_write_scanlines @ 103 ;
105 | jpeg_write_tables @ 104 ;
106 | jround_up @ 105 ;
107 | jzero_far @ 106 ;
108 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # libjpeg-turbo for Android
2 |
3 | This repository provides a working Android.mk build configuration for [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/), which means that you'll be able to build your app with `ndk-build` instead of resorting to toolchain trickery. Just add this repository as a Git submodule and you should be good to go.
4 |
5 | Note however that this repository was originally created for a single purpose; to encode JPG files in a different NDK project. Therefore JNI bindings are not provided but a pull request is welcome. Also, any libjpeg-turbo feature that requires another dependency is currently not supported (incl. colorspace conversions). Again, pull requests are welcome.
6 |
7 | Currrently, the following ABIs are supported:
8 |
9 | * armeabi
10 | * armeabi-v7a
11 | * armeabi-v7a-hard
12 | * arm64-v8a
13 | * x86
14 | * x86_64, requires [Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) Revision 10e (May 2015) or later
15 |
16 | SIMD/ASM optimizations are enabled for supported ABIs where possible. libjpeg-turbo does not support MIPS properly (yet). Since MIPS is not supported, you'll need to specify your supported ABIs in `Application.mk` instead of simply giving it `APP_ABI := all`.
17 |
18 | Note that compiler optimization options are NOT included right now. If, for example, you wish to use `-Ofast` or other options, you'll need to add them yourself, possibly to your `Application.mk`.
19 |
20 | ## Requirements
21 |
22 | The following combinations are known to work:
23 |
24 | * [Android NDK](https://developer.android.com/tools/sdk/ndk/index.html), Revision 10e (May 2015)
25 |
26 | ## Usage
27 |
28 | First, set up a vendor folder in your own project. You can skip this step if you've already decided where you wish to put the module.
29 |
30 | ```bash
31 | mkdir -p jni/vendor
32 | echo 'include $(call all-subdir-makefiles)' >> jni/vendor/Android.mk
33 | ```
34 |
35 | Then add this repo as a submodule to your own project.
36 |
37 | ```bash
38 | git submodule add --name libjpeg-turbo \
39 | https://github.com/openstf/android-libjpeg-turbo.git jni/vendor/libjpeg-turbo
40 | ```
41 |
42 | You should now be able to do `LOCAL_STATIC_LIBRARIES += libjpeg-turbo` in your own module, `#include ` and `ndk-build`.
43 |
44 | ## Updating libjpeg-turbo
45 |
46 | You need to go and fetch [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/) first. [Download](http://sourceforge.net/projects/libjpeg-turbo/files/) and extract the source package to `jni/vendor/libjpeg-turbo`. It's not a submodule because they still use SVN. Check `jni/vendor/libjpeg-turbo/Android.mk` to see which version of libjpeg-turbo is expected.
47 |
48 | ```bash
49 | cd jni/vendor/libjpeg-turbo
50 | cp ~/Downloads/libjpeg-turbo-1.4.1.tar.gz .
51 | tar xzvf libjpeg-turbo-1.4.1.tar.gz
52 | ```
53 |
54 | To make updating easier, the `jni/vendor/libjpeg-turbo/libjpeg-turbo-*-*-*` folder should contain only unmodified original source files. Do not configure or move files around, it will be a pain later. Just unpack the source package and leave it be as-is.
55 |
56 | You may sometimes also need to update the convenience files in `jni/vendor/libjpeg-turbo/include`. This doesn't seem to happen very often, though.
57 |
58 | Now update the `SOURCE_PATH` in `jni/vendor/libjpeg-turbo/Android.mk`. Then run `ndk-build` to make sure nothing broke.
59 |
60 | Then `git rm -r` the previous libjpeg-turbo source and commit the new source with your `Android.mk` modification(s).
61 |
62 | ## Contributing
63 |
64 | See [CONTRIBUTING.md](CONTRIBUTING.md).
65 |
66 | ## License
67 |
68 | See [LICENSE](LICENSE). libjpeg-turbo itself is governed by its own license.
69 |
70 | Copyright © CyberAgent, Inc. All Rights Reserved.
71 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jsimd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * jsimd.h
3 | *
4 | * Copyright 2009 Pierre Ossman for Cendio AB
5 | * Copyright 2011, 2014 D. R. Commander
6 | *
7 | * Based on the x86 SIMD extension for IJG JPEG library,
8 | * Copyright (C) 1999-2006, MIYASAKA Masaru.
9 | * For conditions of distribution and use, see copyright notice in jsimdext.inc
10 | *
11 | */
12 |
13 | EXTERN(int) jsimd_can_rgb_ycc (void);
14 | EXTERN(int) jsimd_can_rgb_gray (void);
15 | EXTERN(int) jsimd_can_ycc_rgb (void);
16 | EXTERN(int) jsimd_can_ycc_rgb565 (void);
17 | EXTERN(int) jsimd_c_can_null_convert (void);
18 |
19 | EXTERN(void) jsimd_rgb_ycc_convert
20 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
21 | JDIMENSION output_row, int num_rows);
22 | EXTERN(void) jsimd_rgb_gray_convert
23 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
24 | JDIMENSION output_row, int num_rows);
25 | EXTERN(void) jsimd_ycc_rgb_convert
26 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row,
27 | JSAMPARRAY output_buf, int num_rows);
28 | EXTERN(void) jsimd_ycc_rgb565_convert
29 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row,
30 | JSAMPARRAY output_buf, int num_rows);
31 | EXTERN(void) jsimd_c_null_convert
32 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
33 | JDIMENSION output_row, int num_rows);
34 |
35 | EXTERN(int) jsimd_can_h2v2_downsample (void);
36 | EXTERN(int) jsimd_can_h2v1_downsample (void);
37 |
38 | EXTERN(void) jsimd_h2v2_downsample
39 | (j_compress_ptr cinfo, jpeg_component_info * compptr,
40 | JSAMPARRAY input_data, JSAMPARRAY output_data);
41 |
42 | EXTERN(int) jsimd_can_h2v2_smooth_downsample (void);
43 |
44 | EXTERN(void) jsimd_h2v2_smooth_downsample
45 | (j_compress_ptr cinfo, jpeg_component_info * compptr,
46 | JSAMPARRAY input_data, JSAMPARRAY output_data);
47 |
48 | EXTERN(void) jsimd_h2v1_downsample
49 | (j_compress_ptr cinfo, jpeg_component_info * compptr,
50 | JSAMPARRAY input_data, JSAMPARRAY output_data);
51 |
52 | EXTERN(int) jsimd_can_h2v2_upsample (void);
53 | EXTERN(int) jsimd_can_h2v1_upsample (void);
54 | EXTERN(int) jsimd_can_int_upsample (void);
55 |
56 | EXTERN(void) jsimd_h2v2_upsample
57 | (j_decompress_ptr cinfo, jpeg_component_info * compptr,
58 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr);
59 | EXTERN(void) jsimd_h2v1_upsample
60 | (j_decompress_ptr cinfo, jpeg_component_info * compptr,
61 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr);
62 | EXTERN(void) jsimd_int_upsample
63 | (j_decompress_ptr cinfo, jpeg_component_info * compptr,
64 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr);
65 |
66 | EXTERN(int) jsimd_can_h2v2_fancy_upsample (void);
67 | EXTERN(int) jsimd_can_h2v1_fancy_upsample (void);
68 |
69 | EXTERN(void) jsimd_h2v2_fancy_upsample
70 | (j_decompress_ptr cinfo, jpeg_component_info * compptr,
71 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr);
72 | EXTERN(void) jsimd_h2v1_fancy_upsample
73 | (j_decompress_ptr cinfo, jpeg_component_info * compptr,
74 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr);
75 |
76 | EXTERN(int) jsimd_can_h2v2_merged_upsample (void);
77 | EXTERN(int) jsimd_can_h2v1_merged_upsample (void);
78 |
79 | EXTERN(void) jsimd_h2v2_merged_upsample
80 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
81 | JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf);
82 | EXTERN(void) jsimd_h2v1_merged_upsample
83 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
84 | JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf);
85 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/coderules.txt:
--------------------------------------------------------------------------------
1 | IJG JPEG LIBRARY: CODING RULES
2 |
3 | This file was part of the Independent JPEG Group's software:
4 | Copyright (C) 1991-1996, Thomas G. Lane.
5 | It was modified by The libjpeg-turbo Project to include only information
6 | relevant to libjpeg-turbo.
7 | For conditions of distribution and use, see the accompanying README file.
8 |
9 |
10 | Since numerous people will be contributing code and bug fixes, it's important
11 | to establish a common coding style. The goal of using similar coding styles
12 | is much more important than the details of just what that style is.
13 |
14 | In general we follow the recommendations of "Recommended C Style and Coding
15 | Standards" revision 6.1 (Cannon et al. as modified by Spencer, Keppel and
16 | Brader). This document is available in the IJG FTP archive (see
17 | jpeg/doc/cstyle.ms.tbl.Z, or cstyle.txt.Z for those without nroff/tbl).
18 |
19 | Block comments should be laid out thusly:
20 |
21 | /*
22 | * Block comments in this style.
23 | */
24 |
25 | We indent statements in K&R style, e.g.,
26 | if (test) {
27 | then-part;
28 | } else {
29 | else-part;
30 | }
31 | with two spaces per indentation level. (This indentation convention is
32 | handled automatically by GNU Emacs and many other text editors.)
33 |
34 | Multi-word names should be written in lower case with underscores, e.g.,
35 | multi_word_name (not multiWordName). Preprocessor symbols and enum constants
36 | are similar but upper case (MULTI_WORD_NAME). Names should be unique within
37 | the first fifteen characters.
38 |
39 | Note that each function definition must begin with GLOBAL(type), LOCAL(type),
40 | or METHODDEF(type). These macros expand to "static type" or just "type" as
41 | appropriate. They provide a readable indication of the routine's usage and
42 | can readily be changed for special needs. (For instance, special linkage
43 | keywords can be inserted for use in Windows DLLs.)
44 |
45 | A similar solution is used for external function declarations (see the EXTERN
46 | macro.)
47 |
48 |
49 | The JPEG library is intended to be used within larger programs. Furthermore,
50 | we want it to be reentrant so that it can be used by applications that process
51 | multiple images concurrently. The following rules support these requirements:
52 |
53 | 1. Avoid direct use of file I/O, "malloc", error report printouts, etc;
54 | pass these through the common routines provided.
55 |
56 | 2. Minimize global namespace pollution. Functions should be declared static
57 | wherever possible. (Note that our method-based calling conventions help this
58 | a lot: in many modules only the initialization function will ever need to be
59 | called directly, so only that function need be externally visible.) All
60 | global function names should begin with "jpeg_".
61 |
62 | 3. Don't use global variables; anything that must be used in another module
63 | should be in the common data structures.
64 |
65 | 4. Don't use static variables except for read-only constant tables. Variables
66 | that should be private to a module can be placed into private structures (see
67 | the system architecture document, structure.txt).
68 |
69 | 5. Source file names should begin with "j" for files that are part of the
70 | library proper; source files that are not part of the library, such as cjpeg.c
71 | and djpeg.c, do not begin with "j". Keep compression and decompression code in
72 | separate source files --- some applications may want only one half of the
73 | library.
74 |
75 | Note: these rules (particularly #4) are not followed religiously in the
76 | modules that are used in cjpeg/djpeg but are not part of the JPEG library
77 | proper. Those modules are not really intended to be used in other
78 | applications.
79 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/java/org/libjpegturbo/turbojpeg/TJScalingFactor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C)2011 D. R. Commander. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or without
5 | * modification, are permitted provided that the following conditions are met:
6 | *
7 | * - Redistributions of source code must retain the above copyright notice,
8 | * this list of conditions and the following disclaimer.
9 | * - Redistributions in binary form must reproduce the above copyright notice,
10 | * this list of conditions and the following disclaimer in the documentation
11 | * and/or other materials provided with the distribution.
12 | * - Neither the name of the libjpeg-turbo Project nor the names of its
13 | * contributors may be used to endorse or promote products derived from this
14 | * software without specific prior written permission.
15 | *
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 | * POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | package org.libjpegturbo.turbojpeg;
30 |
31 | /**
32 | * Fractional scaling factor
33 | */
34 | public class TJScalingFactor {
35 |
36 | public TJScalingFactor(int num, int denom) throws Exception {
37 | if (num < 1 || denom < 1)
38 | throw new Exception("Numerator and denominator must be >= 1");
39 | this.num = num;
40 | this.denom = denom;
41 | }
42 |
43 | /**
44 | * Returns numerator
45 | *
46 | * @return numerator
47 | */
48 | public int getNum() {
49 | return num;
50 | }
51 |
52 | /**
53 | * Returns denominator
54 | *
55 | * @return denominator
56 | */
57 | public int getDenom() {
58 | return denom;
59 | }
60 |
61 | /**
62 | * Returns the scaled value of dimension. This function
63 | * performs the integer equivalent of
64 | * ceil(dimension * scalingFactor).
65 | *
66 | * @return the scaled value of dimension.
67 | */
68 | public int getScaled(int dimension) {
69 | return (dimension * num + denom - 1) / denom;
70 | }
71 |
72 | /**
73 | * Returns true or false, depending on whether this instance and
74 | * other have the same numerator and denominator.
75 | *
76 | * @return true or false, depending on whether this instance and
77 | * other have the same numerator and denominator.
78 | */
79 | public boolean equals(TJScalingFactor other) {
80 | return (this.num == other.num && this.denom == other.denom);
81 | }
82 |
83 | /**
84 | * Returns true or false, depending on whether this instance is equal to
85 | * 1/1.
86 | *
87 | * @return true or false, depending on whether this instance is equal to
88 | * 1/1.
89 | */
90 | public boolean isOne() {
91 | return (num == 1 && denom == 1);
92 | }
93 |
94 | /**
95 | * Numerator
96 | */
97 | private int num = 1;
98 |
99 | /**
100 | * Denominator
101 | */
102 | private int denom = 1;
103 | };
104 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jcomapi.c:
--------------------------------------------------------------------------------
1 | /*
2 | * jcomapi.c
3 | *
4 | * This file was part of the Independent JPEG Group's software:
5 | * Copyright (C) 1994-1997, Thomas G. Lane.0
6 | * It was modified by The libjpeg-turbo Project to include only code relevant
7 | * to libjpeg-turbo.
8 | * For conditions of distribution and use, see the accompanying README file.
9 | *
10 | * This file contains application interface routines that are used for both
11 | * compression and decompression.
12 | */
13 |
14 | #define JPEG_INTERNALS
15 | #include "jinclude.h"
16 | #include "jpeglib.h"
17 |
18 |
19 | /*
20 | * Abort processing of a JPEG compression or decompression operation,
21 | * but don't destroy the object itself.
22 | *
23 | * For this, we merely clean up all the nonpermanent memory pools.
24 | * Note that temp files (virtual arrays) are not allowed to belong to
25 | * the permanent pool, so we will be able to close all temp files here.
26 | * Closing a data source or destination, if necessary, is the application's
27 | * responsibility.
28 | */
29 |
30 | GLOBAL(void)
31 | jpeg_abort (j_common_ptr cinfo)
32 | {
33 | int pool;
34 |
35 | /* Do nothing if called on a not-initialized or destroyed JPEG object. */
36 | if (cinfo->mem == NULL)
37 | return;
38 |
39 | /* Releasing pools in reverse order might help avoid fragmentation
40 | * with some (brain-damaged) malloc libraries.
41 | */
42 | for (pool = JPOOL_NUMPOOLS-1; pool > JPOOL_PERMANENT; pool--) {
43 | (*cinfo->mem->free_pool) (cinfo, pool);
44 | }
45 |
46 | /* Reset overall state for possible reuse of object */
47 | if (cinfo->is_decompressor) {
48 | cinfo->global_state = DSTATE_START;
49 | /* Try to keep application from accessing now-deleted marker list.
50 | * A bit kludgy to do it here, but this is the most central place.
51 | */
52 | ((j_decompress_ptr) cinfo)->marker_list = NULL;
53 | } else {
54 | cinfo->global_state = CSTATE_START;
55 | }
56 | }
57 |
58 |
59 | /*
60 | * Destruction of a JPEG object.
61 | *
62 | * Everything gets deallocated except the master jpeg_compress_struct itself
63 | * and the error manager struct. Both of these are supplied by the application
64 | * and must be freed, if necessary, by the application. (Often they are on
65 | * the stack and so don't need to be freed anyway.)
66 | * Closing a data source or destination, if necessary, is the application's
67 | * responsibility.
68 | */
69 |
70 | GLOBAL(void)
71 | jpeg_destroy (j_common_ptr cinfo)
72 | {
73 | /* We need only tell the memory manager to release everything. */
74 | /* NB: mem pointer is NULL if memory mgr failed to initialize. */
75 | if (cinfo->mem != NULL)
76 | (*cinfo->mem->self_destruct) (cinfo);
77 | cinfo->mem = NULL; /* be safe if jpeg_destroy is called twice */
78 | cinfo->global_state = 0; /* mark it destroyed */
79 | }
80 |
81 |
82 | /*
83 | * Convenience routines for allocating quantization and Huffman tables.
84 | * (Would jutils.c be a more reasonable place to put these?)
85 | */
86 |
87 | GLOBAL(JQUANT_TBL *)
88 | jpeg_alloc_quant_table (j_common_ptr cinfo)
89 | {
90 | JQUANT_TBL *tbl;
91 |
92 | tbl = (JQUANT_TBL *)
93 | (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, sizeof(JQUANT_TBL));
94 | tbl->sent_table = FALSE; /* make sure this is false in any new table */
95 | return tbl;
96 | }
97 |
98 |
99 | GLOBAL(JHUFF_TBL *)
100 | jpeg_alloc_huff_table (j_common_ptr cinfo)
101 | {
102 | JHUFF_TBL *tbl;
103 |
104 | tbl = (JHUFF_TBL *)
105 | (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, sizeof(JHUFF_TBL));
106 | tbl->sent_table = FALSE; /* make sure this is false in any new table */
107 | return tbl;
108 | }
109 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/jcgray-sse2.asm:
--------------------------------------------------------------------------------
1 | ;
2 | ; jcgray.asm - grayscale colorspace conversion (SSE2)
3 | ;
4 | ; x86 SIMD extension for IJG JPEG library
5 | ; Copyright (C) 1999-2006, MIYASAKA Masaru.
6 | ; Copyright (C) 2011, D. R. Commander.
7 | ; For conditions of distribution and use, see copyright notice in jsimdext.inc
8 | ;
9 | ; This file should be assembled with NASM (Netwide Assembler),
10 | ; can *not* be assembled with Microsoft's MASM or any compatible
11 | ; assembler (including Borland's Turbo Assembler).
12 | ; NASM is available from http://nasm.sourceforge.net/ or
13 | ; http://sourceforge.net/project/showfiles.php?group_id=6208
14 | ;
15 | ; [TAB8]
16 |
17 | %include "jsimdext.inc"
18 |
19 | ; --------------------------------------------------------------------------
20 |
21 | %define SCALEBITS 16
22 |
23 | F_0_114 equ 7471 ; FIX(0.11400)
24 | F_0_250 equ 16384 ; FIX(0.25000)
25 | F_0_299 equ 19595 ; FIX(0.29900)
26 | F_0_587 equ 38470 ; FIX(0.58700)
27 | F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000)
28 |
29 | ; --------------------------------------------------------------------------
30 | SECTION SEG_CONST
31 |
32 | alignz 16
33 | global EXTN(jconst_rgb_gray_convert_sse2)
34 |
35 | EXTN(jconst_rgb_gray_convert_sse2):
36 |
37 | PW_F0299_F0337 times 4 dw F_0_299, F_0_337
38 | PW_F0114_F0250 times 4 dw F_0_114, F_0_250
39 | PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
40 |
41 | alignz 16
42 |
43 | ; --------------------------------------------------------------------------
44 | SECTION SEG_TEXT
45 | BITS 32
46 |
47 | %include "jcgryext-sse2.asm"
48 |
49 | %undef RGB_RED
50 | %undef RGB_GREEN
51 | %undef RGB_BLUE
52 | %undef RGB_PIXELSIZE
53 | %define RGB_RED EXT_RGB_RED
54 | %define RGB_GREEN EXT_RGB_GREEN
55 | %define RGB_BLUE EXT_RGB_BLUE
56 | %define RGB_PIXELSIZE EXT_RGB_PIXELSIZE
57 | %define jsimd_rgb_gray_convert_sse2 jsimd_extrgb_gray_convert_sse2
58 | %include "jcgryext-sse2.asm"
59 |
60 | %undef RGB_RED
61 | %undef RGB_GREEN
62 | %undef RGB_BLUE
63 | %undef RGB_PIXELSIZE
64 | %define RGB_RED EXT_RGBX_RED
65 | %define RGB_GREEN EXT_RGBX_GREEN
66 | %define RGB_BLUE EXT_RGBX_BLUE
67 | %define RGB_PIXELSIZE EXT_RGBX_PIXELSIZE
68 | %define jsimd_rgb_gray_convert_sse2 jsimd_extrgbx_gray_convert_sse2
69 | %include "jcgryext-sse2.asm"
70 |
71 | %undef RGB_RED
72 | %undef RGB_GREEN
73 | %undef RGB_BLUE
74 | %undef RGB_PIXELSIZE
75 | %define RGB_RED EXT_BGR_RED
76 | %define RGB_GREEN EXT_BGR_GREEN
77 | %define RGB_BLUE EXT_BGR_BLUE
78 | %define RGB_PIXELSIZE EXT_BGR_PIXELSIZE
79 | %define jsimd_rgb_gray_convert_sse2 jsimd_extbgr_gray_convert_sse2
80 | %include "jcgryext-sse2.asm"
81 |
82 | %undef RGB_RED
83 | %undef RGB_GREEN
84 | %undef RGB_BLUE
85 | %undef RGB_PIXELSIZE
86 | %define RGB_RED EXT_BGRX_RED
87 | %define RGB_GREEN EXT_BGRX_GREEN
88 | %define RGB_BLUE EXT_BGRX_BLUE
89 | %define RGB_PIXELSIZE EXT_BGRX_PIXELSIZE
90 | %define jsimd_rgb_gray_convert_sse2 jsimd_extbgrx_gray_convert_sse2
91 | %include "jcgryext-sse2.asm"
92 |
93 | %undef RGB_RED
94 | %undef RGB_GREEN
95 | %undef RGB_BLUE
96 | %undef RGB_PIXELSIZE
97 | %define RGB_RED EXT_XBGR_RED
98 | %define RGB_GREEN EXT_XBGR_GREEN
99 | %define RGB_BLUE EXT_XBGR_BLUE
100 | %define RGB_PIXELSIZE EXT_XBGR_PIXELSIZE
101 | %define jsimd_rgb_gray_convert_sse2 jsimd_extxbgr_gray_convert_sse2
102 | %include "jcgryext-sse2.asm"
103 |
104 | %undef RGB_RED
105 | %undef RGB_GREEN
106 | %undef RGB_BLUE
107 | %undef RGB_PIXELSIZE
108 | %define RGB_RED EXT_XRGB_RED
109 | %define RGB_GREEN EXT_XRGB_GREEN
110 | %define RGB_BLUE EXT_XRGB_BLUE
111 | %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE
112 | %define jsimd_rgb_gray_convert_sse2 jsimd_extxrgb_gray_convert_sse2
113 | %include "jcgryext-sse2.asm"
114 |
--------------------------------------------------------------------------------
/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/simd/jcgray-sse2-64.asm:
--------------------------------------------------------------------------------
1 | ;
2 | ; jcgray.asm - grayscale colorspace conversion (64-bit SSE2)
3 | ;
4 | ; x86 SIMD extension for IJG JPEG library
5 | ; Copyright (C) 1999-2006, MIYASAKA Masaru.
6 | ; Copyright (C) 2011, D. R. Commander.
7 | ; For conditions of distribution and use, see copyright notice in jsimdext.inc
8 | ;
9 | ; This file should be assembled with NASM (Netwide Assembler),
10 | ; can *not* be assembled with Microsoft's MASM or any compatible
11 | ; assembler (including Borland's Turbo Assembler).
12 | ; NASM is available from http://nasm.sourceforge.net/ or
13 | ; http://sourceforge.net/project/showfiles.php?group_id=6208
14 | ;
15 | ; [TAB8]
16 |
17 | %include "jsimdext.inc"
18 |
19 | ; --------------------------------------------------------------------------
20 |
21 | %define SCALEBITS 16
22 |
23 | F_0_114 equ 7471 ; FIX(0.11400)
24 | F_0_250 equ 16384 ; FIX(0.25000)
25 | F_0_299 equ 19595 ; FIX(0.29900)
26 | F_0_587 equ 38470 ; FIX(0.58700)
27 | F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000)
28 |
29 | ; --------------------------------------------------------------------------
30 | SECTION SEG_CONST
31 |
32 | alignz 16
33 | global EXTN(jconst_rgb_gray_convert_sse2)
34 |
35 | EXTN(jconst_rgb_gray_convert_sse2):
36 |
37 | PW_F0299_F0337 times 4 dw F_0_299, F_0_337
38 | PW_F0114_F0250 times 4 dw F_0_114, F_0_250
39 | PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
40 |
41 | alignz 16
42 |
43 | ; --------------------------------------------------------------------------
44 | SECTION SEG_TEXT
45 | BITS 64
46 |
47 | %include "jcgryext-sse2-64.asm"
48 |
49 | %undef RGB_RED
50 | %undef RGB_GREEN
51 | %undef RGB_BLUE
52 | %undef RGB_PIXELSIZE
53 | %define RGB_RED EXT_RGB_RED
54 | %define RGB_GREEN EXT_RGB_GREEN
55 | %define RGB_BLUE EXT_RGB_BLUE
56 | %define RGB_PIXELSIZE EXT_RGB_PIXELSIZE
57 | %define jsimd_rgb_gray_convert_sse2 jsimd_extrgb_gray_convert_sse2
58 | %include "jcgryext-sse2-64.asm"
59 |
60 | %undef RGB_RED
61 | %undef RGB_GREEN
62 | %undef RGB_BLUE
63 | %undef RGB_PIXELSIZE
64 | %define RGB_RED EXT_RGBX_RED
65 | %define RGB_GREEN EXT_RGBX_GREEN
66 | %define RGB_BLUE EXT_RGBX_BLUE
67 | %define RGB_PIXELSIZE EXT_RGBX_PIXELSIZE
68 | %define jsimd_rgb_gray_convert_sse2 jsimd_extrgbx_gray_convert_sse2
69 | %include "jcgryext-sse2-64.asm"
70 |
71 | %undef RGB_RED
72 | %undef RGB_GREEN
73 | %undef RGB_BLUE
74 | %undef RGB_PIXELSIZE
75 | %define RGB_RED EXT_BGR_RED
76 | %define RGB_GREEN EXT_BGR_GREEN
77 | %define RGB_BLUE EXT_BGR_BLUE
78 | %define RGB_PIXELSIZE EXT_BGR_PIXELSIZE
79 | %define jsimd_rgb_gray_convert_sse2 jsimd_extbgr_gray_convert_sse2
80 | %include "jcgryext-sse2-64.asm"
81 |
82 | %undef RGB_RED
83 | %undef RGB_GREEN
84 | %undef RGB_BLUE
85 | %undef RGB_PIXELSIZE
86 | %define RGB_RED EXT_BGRX_RED
87 | %define RGB_GREEN EXT_BGRX_GREEN
88 | %define RGB_BLUE EXT_BGRX_BLUE
89 | %define RGB_PIXELSIZE EXT_BGRX_PIXELSIZE
90 | %define jsimd_rgb_gray_convert_sse2 jsimd_extbgrx_gray_convert_sse2
91 | %include "jcgryext-sse2-64.asm"
92 |
93 | %undef RGB_RED
94 | %undef RGB_GREEN
95 | %undef RGB_BLUE
96 | %undef RGB_PIXELSIZE
97 | %define RGB_RED EXT_XBGR_RED
98 | %define RGB_GREEN EXT_XBGR_GREEN
99 | %define RGB_BLUE EXT_XBGR_BLUE
100 | %define RGB_PIXELSIZE EXT_XBGR_PIXELSIZE
101 | %define jsimd_rgb_gray_convert_sse2 jsimd_extxbgr_gray_convert_sse2
102 | %include "jcgryext-sse2-64.asm"
103 |
104 | %undef RGB_RED
105 | %undef RGB_GREEN
106 | %undef RGB_BLUE
107 | %undef RGB_PIXELSIZE
108 | %define RGB_RED EXT_XRGB_RED
109 | %define RGB_GREEN EXT_XRGB_GREEN
110 | %define RGB_BLUE EXT_XRGB_BLUE
111 | %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE
112 | %define jsimd_rgb_gray_convert_sse2 jsimd_extxrgb_gray_convert_sse2
113 | %include "jcgryext-sse2-64.asm"
114 |
--------------------------------------------------------------------------------