├── .gitignore ├── LICENSE ├── README.md ├── REASON.md └── libjpeg-turbo-android ├── libjpeg-turbo ├── .project ├── AndroidManifest.xml ├── ic_launcher-web.png ├── jni │ ├── ANDROID.txt │ ├── Android.mk │ ├── BUILDING.txt │ ├── CMakeLists.txt │ ├── ChangeLog.txt │ ├── Makefile.am │ ├── README │ ├── README-turbo.txt │ ├── acinclude.m4 │ ├── android │ │ ├── config.h │ │ └── jconfig.h │ ├── bmp.c │ ├── bmp.h │ ├── cderror.h │ ├── cdjpeg.c │ ├── cdjpeg.h │ ├── change.log │ ├── cjpeg.1 │ ├── cjpeg.c │ ├── cmakescripts │ │ ├── getdate.bat │ │ └── testclean.cmake │ ├── coderules.txt │ ├── configure.ac │ ├── debian │ │ ├── README.source │ │ ├── changelog │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── docs │ │ ├── extra │ │ │ ├── Makefile │ │ │ ├── exifautotran │ │ │ ├── exifautotran.1 │ │ │ ├── jpegexiforient.1 │ │ │ └── jpegexiforient.c │ │ ├── libjpeg-turbo-only.symbols │ │ ├── libjpeg-turbo-progs.install │ │ ├── libjpeg-turbo-test.install │ │ ├── libjpeg-turbo8-dev.install │ │ ├── libjpeg-turbo8.install │ │ ├── libjpeg-turbo8.lintian-overrides │ │ ├── libjpeg-turbo8.symbols │ │ ├── libturbojpeg.install │ │ ├── libturbojpeg.postinst │ │ ├── libturbojpeg.postrm │ │ ├── patches │ │ │ ├── FixLibraryStartup.patch │ │ │ ├── add-copying-for-debian-dir.patch │ │ │ ├── series │ │ │ └── tjunittest.patch │ │ ├── rules │ │ ├── source.lintian-overrides │ │ ├── source │ │ │ └── format │ │ └── watch │ ├── djpeg.1 │ ├── djpeg.c │ ├── doc │ │ └── html │ │ │ ├── annotated.html │ │ │ ├── bc_s.png │ │ │ ├── classes.html │ │ │ ├── closed.png │ │ │ ├── doxygen.css │ │ │ ├── doxygen.png │ │ │ ├── functions.html │ │ │ ├── functions_vars.html │ │ │ ├── group___turbo_j_p_e_g.html │ │ │ ├── index.html │ │ │ ├── installdox │ │ │ ├── jquery.js │ │ │ ├── modules.html │ │ │ ├── nav_f.png │ │ │ ├── nav_h.png │ │ │ ├── open.png │ │ │ ├── search │ │ │ ├── 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 │ │ │ ├── classes_74.html │ │ │ ├── close.png │ │ │ ├── mag_sel.png │ │ │ ├── nomatches.html │ │ │ ├── search.css │ │ │ ├── search.js │ │ │ ├── search_l.png │ │ │ ├── search_m.png │ │ │ ├── search_r.png │ │ │ ├── variables_63.html │ │ │ ├── variables_64.html │ │ │ ├── variables_68.html │ │ │ ├── variables_6e.html │ │ │ ├── variables_6f.html │ │ │ ├── variables_72.html │ │ │ ├── variables_77.html │ │ │ ├── variables_78.html │ │ │ └── variables_79.html │ │ │ ├── structtjregion.html │ │ │ ├── structtjscalingfactor.html │ │ │ ├── structtjtransform.html │ │ │ ├── tab_a.png │ │ │ ├── tab_b.png │ │ │ ├── tab_h.png │ │ │ ├── tab_s.png │ │ │ └── tabs.css │ ├── doxygen.config │ ├── example.c │ ├── filelist.txt │ ├── install.txt │ ├── jaricom.c │ ├── java │ │ ├── CMakeLists.txt │ │ ├── MANIFEST.MF │ │ ├── Makefile.am │ │ ├── README │ │ ├── TJExample.java │ │ ├── TJUnitTest.java │ │ ├── doc │ │ │ ├── allclasses-frame.html │ │ │ ├── allclasses-noframe.html │ │ │ ├── constant-values.html │ │ │ ├── deprecated-list.html │ │ │ ├── help-doc.html │ │ │ ├── index-all.html │ │ │ ├── index.html │ │ │ ├── org │ │ │ │ └── libjpegturbo │ │ │ │ │ └── turbojpeg │ │ │ │ │ ├── TJ.html │ │ │ │ │ ├── TJCompressor.html │ │ │ │ │ ├── TJCustomFilter.html │ │ │ │ │ ├── TJDecompressor.html │ │ │ │ │ ├── TJScalingFactor.html │ │ │ │ │ ├── TJTransform.html │ │ │ │ │ ├── TJTransformer.html │ │ │ │ │ ├── package-frame.html │ │ │ │ │ ├── package-summary.html │ │ │ │ │ └── package-tree.html │ │ │ ├── overview-tree.html │ │ │ ├── package-list │ │ │ ├── resources │ │ │ │ └── inherit.gif │ │ │ ├── serialized-form.html │ │ │ └── stylesheet.css │ │ ├── org │ │ │ └── libjpegturbo │ │ │ │ └── turbojpeg │ │ │ │ ├── TJ.java │ │ │ │ ├── TJCompressor.java │ │ │ │ ├── TJCustomFilter.java │ │ │ │ ├── TJDecompressor.java │ │ │ │ ├── TJLoader.java │ │ │ │ ├── TJLoader.java.in │ │ │ │ ├── TJScalingFactor.java │ │ │ │ ├── TJTransform.java │ │ │ │ └── TJTransformer.java │ │ ├── org_libjpegturbo_turbojpeg_TJ.h │ │ ├── org_libjpegturbo_turbojpeg_TJCompressor.h │ │ ├── org_libjpegturbo_turbojpeg_TJDecompressor.h │ │ └── org_libjpegturbo_turbojpeg_TJTransformer.h │ ├── jcapimin.c │ ├── jcapistd.c │ ├── jcarith.c │ ├── jccoefct.c │ ├── jccolext.c │ ├── jccolor.c │ ├── jcdctmgr.c │ ├── jchuff.c │ ├── jchuff.h │ ├── jcinit.c │ ├── jcmainct.c │ ├── jcmarker.c │ ├── jcmaster.c │ ├── jcomapi.c │ ├── jconfig.h │ ├── jconfig.h.in │ ├── jconfig.txt │ ├── jcparam.c │ ├── jcphuff.c │ ├── jcprepct.c │ ├── jcsample.c │ ├── jcstest.c │ ├── jctrans.c │ ├── jdapimin.c │ ├── jdapistd.c │ ├── jdarith.c │ ├── jdatadst-tj.c │ ├── jdatadst.c │ ├── jdatasrc-tj.c │ ├── jdatasrc.c │ ├── jdcoefct.c │ ├── jdcolext.c │ ├── jdcolor.c │ ├── jdct.h │ ├── jddctmgr.c │ ├── jdhuff.c │ ├── jdhuff.h │ ├── jdinput.c │ ├── jdmainct.c │ ├── jdmarker.c │ ├── jdmaster.c │ ├── jdmerge.c │ ├── jdmrgext.c │ ├── jdphuff.c │ ├── jdpostct.c │ ├── jdsample.c │ ├── jdtrans.c │ ├── jerror.c │ ├── jerror.h │ ├── jfdctflt.c │ ├── jfdctfst.c │ ├── jfdctint.c │ ├── jidctflt.c │ ├── jidctfst.c │ ├── jidctint.c │ ├── jidctred.c │ ├── jinclude.h │ ├── jmemmgr.c │ ├── jmemnobs.c │ ├── jmemsys.h │ ├── jmorecfg.h │ ├── jpegcomp.h │ ├── jpegint.h │ ├── jpeglib.h │ ├── jpegtran.1 │ ├── jpegtran.c │ ├── jquant1.c │ ├── jquant2.c │ ├── jsimd.h │ ├── jsimd_none.c │ ├── jsimddct.h │ ├── jutils.c │ ├── jversion.h │ ├── libjpeg.map.in │ ├── libjpeg.txt │ ├── machine │ │ └── cpu-features.h │ ├── pkgscripts │ │ ├── Description.plist │ │ ├── Info.plist │ │ ├── deb-control │ │ ├── libjpeg-turbo.spec │ │ ├── makecygwinpkg │ │ ├── makedpkg │ │ ├── makemacpkg │ │ ├── makesunpkg │ │ ├── pkginfo │ │ └── uninstall │ ├── rdbmp.c │ ├── rdcolmap.c │ ├── rdgif.c │ ├── rdjpgcom.1 │ ├── rdjpgcom.c │ ├── rdppm.c │ ├── rdrle.c │ ├── rdswitch.c │ ├── rdtarga.c │ ├── release │ │ ├── Description.plist.in │ │ ├── Info.plist.in │ │ ├── License.rtf │ │ ├── ReadMe.rtf │ │ ├── Welcome.rtf │ │ ├── copyright │ │ ├── deb-control.tmpl │ │ ├── libjpeg-turbo.nsi.in │ │ ├── libjpeg-turbo.spec.in │ │ ├── makecygwinpkg.in │ │ ├── makedpkg.in │ │ ├── makemacpkg.in │ │ ├── makesunpkg.in │ │ ├── pkginfo.in │ │ └── uninstall.in │ ├── sharedlib │ │ └── CMakeLists.txt │ ├── simd │ │ ├── CMakeLists.txt │ │ ├── Makefile.am │ │ ├── jcclrmmx.asm │ │ ├── jcclrss2-64.asm │ │ ├── jcclrss2.asm │ │ ├── jccolmmx.asm │ │ ├── jccolss2-64.asm │ │ ├── jccolss2.asm │ │ ├── jcgrammx.asm │ │ ├── jcgrass2-64.asm │ │ ├── jcgrass2.asm │ │ ├── jcgrymmx.asm │ │ ├── jcgryss2-64.asm │ │ ├── jcgryss2.asm │ │ ├── jcolsamp.inc │ │ ├── jcqnt3dn.asm │ │ ├── jcqntmmx.asm │ │ ├── jcqnts2f-64.asm │ │ ├── jcqnts2f.asm │ │ ├── jcqnts2i-64.asm │ │ ├── jcqnts2i.asm │ │ ├── jcqntsse.asm │ │ ├── jcsammmx.asm │ │ ├── jcsamss2-64.asm │ │ ├── jcsamss2.asm │ │ ├── jdclrmmx.asm │ │ ├── jdclrss2-64.asm │ │ ├── jdclrss2.asm │ │ ├── jdcolmmx.asm │ │ ├── jdcolss2-64.asm │ │ ├── jdcolss2.asm │ │ ├── jdct.inc │ │ ├── jdmermmx.asm │ │ ├── jdmerss2-64.asm │ │ ├── jdmerss2.asm │ │ ├── jdmrgmmx.asm │ │ ├── jdmrgss2-64.asm │ │ ├── jdmrgss2.asm │ │ ├── jdsammmx.asm │ │ ├── jdsamss2-64.asm │ │ ├── jdsamss2.asm │ │ ├── jf3dnflt.asm │ │ ├── jfmmxfst.asm │ │ ├── jfmmxint.asm │ │ ├── jfss2fst-64.asm │ │ ├── jfss2fst.asm │ │ ├── jfss2int-64.asm │ │ ├── jfss2int.asm │ │ ├── jfsseflt-64.asm │ │ ├── jfsseflt.asm │ │ ├── ji3dnflt.asm │ │ ├── jimmxfst.asm │ │ ├── jimmxint.asm │ │ ├── jimmxred.asm │ │ ├── jiss2flt-64.asm │ │ ├── jiss2flt.asm │ │ ├── jiss2fst-64.asm │ │ ├── jiss2fst.asm │ │ ├── jiss2int-64.asm │ │ ├── jiss2int.asm │ │ ├── jiss2red-64.asm │ │ ├── jiss2red.asm │ │ ├── jisseflt.asm │ │ ├── jsimd.h │ │ ├── jsimd_arm.c │ │ ├── jsimd_arm_neon.S │ │ ├── jsimd_i386.c │ │ ├── jsimd_x86_64.c │ │ ├── jsimdcfg.inc.h │ │ ├── jsimdcpu.asm │ │ ├── jsimdext.inc │ │ └── nasm_lt.sh │ ├── structure.txt │ ├── testimg.bmp │ ├── testimgari.jpg │ ├── testimgari.ppm │ ├── testimgcrop.jpg │ ├── testimgflt-nosimd.jpg │ ├── testimgflt.jpg │ ├── testimgflt.ppm │ ├── testimgfst.jpg │ ├── testimgfst.ppm │ ├── testimgfst100.jpg │ ├── testimgfst1_2.ppm │ ├── testimgfst1_4.ppm │ ├── testimgfst1_8.ppm │ ├── testimggray.jpg │ ├── testimgint.jpg │ ├── testimgint.ppm │ ├── testimgint1_2.ppm │ ├── testimgint1_4.ppm │ ├── testimgint1_8.ppm │ ├── testimgp.jpg │ ├── testorig.jpg │ ├── testorig.ppm │ ├── tjbench-libjpeg62 │ ├── tjbench.c │ ├── tjunittest.c │ ├── tjutil.c │ ├── tjutil.h │ ├── transupp.c │ ├── transupp.h │ ├── turbojpeg-jni.c │ ├── turbojpeg-mapfile │ ├── turbojpeg-mapfile.jni │ ├── turbojpeg.c │ ├── turbojpeg.h │ ├── usage.txt │ ├── win │ │ ├── config.h.in │ │ ├── jconfig.h.in │ │ ├── jpeg62.def │ │ ├── jpeg7.def │ │ ├── jpeg8.def │ │ └── jsimdcfg.inc │ ├── wizard.txt │ ├── wrbmp.c │ ├── wrgif.c │ ├── wrjpgcom.1 │ ├── wrjpgcom.c │ ├── wrppm.c │ ├── wrrle.c │ └── wrtarga.c ├── libs │ ├── android-support-v4.jar │ └── armeabi │ │ ├── cjpeg │ │ ├── djpeg │ │ ├── jpegtran │ │ ├── libjpegbither.so │ │ ├── rdjpgcom │ │ ├── tjbench │ │ ├── tjunittest │ │ └── wrjpgcom ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── layout │ │ └── activity_main.xml │ ├── menu │ │ └── activity_main.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── values │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── example │ └── libjpeg │ └── turbo │ └── MainActivity.java └── use-libjpeg-turbo-android ├── .project ├── AndroidManifest.xml ├── assets └── test.jpg ├── bin ├── AndroidManifest.xml ├── classes.dex ├── dexedLibs │ └── android-support-v4-be90f71c43c14da6d28afcbd1be2f22f.jar ├── jarlist.cache ├── res │ └── crunch │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ └── drawable-xhdpi │ │ └── ic_launcher.png ├── resources.ap_ └── use-libjpeg-trubo-adnroid.apk ├── gen └── com │ └── example │ ├── testjpg │ ├── BuildConfig.java │ └── R.java │ └── testlibjpeg │ ├── BuildConfig.java │ └── R.java ├── jni ├── Android.mk ├── LICENSE ├── README.md ├── bitherlibjni.c ├── libjpeg-turbo │ ├── android │ │ ├── config.h │ │ └── jconfig.h │ ├── cderror.h │ ├── cdjpeg.h │ ├── jconfig.h │ ├── jerror.h │ ├── jinclude.h │ ├── jmorecfg.h │ ├── jpeglib.h │ └── jversion.h └── libjpegbither.so ├── libs ├── android-support-v4.jar └── armeabi │ ├── libbitherjni.so │ └── libjpegbither.so ├── obj └── local │ └── armeabi │ ├── libbitherjni.so │ ├── libjpegbither.so │ ├── libjpegpi.so │ ├── libpijni.so │ └── objs │ ├── bitherjni │ ├── bitherlibjni.o │ └── bitherlibjni.o.d │ ├── pijni │ ├── pilibjni.o │ └── pilibjni.o.d │ └── piutil │ ├── crypt.o │ └── crypt.o.d ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml └── values │ ├── strings.xml │ └── styles.xml └── src ├── com └── example │ └── testjpg │ └── MainActivity.java └── net └── bither └── util └── NativeUtil.java /.gitignore: -------------------------------------------------------------------------------- 1 | libjpeg-turbo-android/libjpeg-turbo/obj 2 | libjpeg-turbo-android/use-libjpeg-trubo-adnroid/obj 3 | libjpeg-turbo-android/use-libjpeg-trubo-adnroid/bin 4 | libjpeg-turbo-android/use-libjpeg-trubo-adnroid/gen 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | The reason of this project : [REASON.md](https://github.com/bither/bither-android-lib/blob/master/REASON.md) 2 | 3 | Related links : [Skia Issue](https://code.google.com/p/skia/issues/detail?id=3460), [Skia Discuss](https://groups.google.com/forum/#!topic/skia-discuss/p0IcyBoU8P0) 4 | 5 | Build libjpeg-turbo-android-lib 6 | ================== 7 | 8 | 1.To get started, ensure you have the latest NDK 9 | You must configure the path of JDK and Android SDK. 10 | 11 | echo "export ANDROID_HOME='Your android ndk path'" >> ~/.bash_profile 12 | 13 | source ~/.bash_profile 14 | 15 | 16 | 2.Build libjpeg-turbo.so 17 | 18 | cd ../libjpeg-turbo-android/libjpeg-turbo/jni 19 | 20 | ndk-build 21 | 22 | 3.You can get libjpegpi.so in 23 | 24 | ../libjpeg-turbo-android/libjpeg-turbo/libs/armeabi 25 | 26 | 27 | 4.Copy libjpegpi.so to ../bither-android-lib/libjpeg-turbo-android/use-libjpeg-turbo-android/jni 28 | 29 | cd ../bither-android-lib/libjpeg-turbo-android/use-libjpeg-turbo-android/jni 30 | 31 | ndk-build 32 | 33 | 5.You can get libjpegpi.so and libpijni.so 34 | 35 | 36 | 6.Use libjpeg-turbo in java 37 | 38 | static { 39 | 40 | System.loadLibrary("jpegpi"); 41 | 42 | System.loadLibrary("pijni"); 43 | 44 | } 45 | and you must use class of "com.pi.common.util.NativeUtil" 46 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | libjpeg.turbo 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/ic_launcher-web.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/ANDROID.txt: -------------------------------------------------------------------------------- 1 | 2 | The Android project has extend the libjpeg library. These extensions have been 3 | ported into libjpeg-turbo. 4 | 5 | By default none of these extentions are included. In order to enable the 6 | Android extentions the following defines must be included with CFLAGS. 7 | 8 | -DANDROID -DANDROID_TILE_BASED_DECODE -DANDROID_RGB -DENABLE_ANDROID_NULL_CONVERT 9 | 10 | Android does not utilize the autotools as a mechanism for configuration, 11 | creation of Makefiles and such. Instead Android.mk has been included. 12 | However two generated files are expected, config.h and jconfig.h. Both of these 13 | files are included in the android directory. 14 | 15 | To build on android. Place the libjpeg-turbo directory into system/external. Remove the 16 | old jpeg directory. Rename libjpeg-turbo to jpeg. Copy the contents of the android 17 | directory into the main libjpeg-turbo directory. 18 | 19 | Build your android as your normally would. 20 | 21 | This code (until accepted upstream) is being kept in the 1.2-beta-linaro-andoid branch 22 | in git at: 23 | 24 | http://git.linaro.org/gitweb?p=people/tomgall/libjpeg-turbo/libjpeg-turbo.git;a=summary 25 | 26 | If you have questions feel free to email tom.gall@linaro.org or join #linaro 27 | on irc.freenode.net and ping tgall_foo/Dr_Who. 28 | 29 | Enjoy! 30 | 31 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/android/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated from jconfig.h.in by configure. */ 2 | /* Version ID for the JPEG library. 3 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 4 | */ 5 | #define JPEG_LIB_VERSION 62 6 | 7 | /* Support arithmetic encoding */ 8 | #define C_ARITH_CODING_SUPPORTED 1 9 | 10 | /* Support arithmetic decoding */ 11 | #define D_ARITH_CODING_SUPPORTED 1 12 | 13 | /* Define if your compiler supports prototypes */ 14 | #define HAVE_PROTOTYPES 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_STDDEF_H 1 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_STDLIB_H 1 21 | 22 | /* Define to 1 if the system has the type `unsigned char'. */ 23 | #define HAVE_UNSIGNED_CHAR 1 24 | 25 | /* Define to 1 if the system has the type `unsigned short'. */ 26 | #define HAVE_UNSIGNED_SHORT 1 27 | 28 | /* Define if you want use complete types */ 29 | /* #undef INCOMPLETE_TYPES_BROKEN */ 30 | 31 | /* Define if you have BSD-like bzero and bcopy */ 32 | /* #undef NEED_BSD_STRINGS */ 33 | 34 | /* Define if you need short function names */ 35 | /* #undef NEED_SHORT_EXTERNAL_NAMES */ 36 | 37 | /* Define if you have sys/types.h */ 38 | #define NEED_SYS_TYPES_H 1 39 | 40 | /* Define if shift is unsigned */ 41 | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 42 | 43 | /* Use accelerated SIMD routines. */ 44 | #define WITH_SIMD 1 45 | 46 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 47 | #ifndef __CHAR_UNSIGNED__ 48 | /* # undef __CHAR_UNSIGNED__ */ 49 | #endif 50 | 51 | /* Define to empty if `const' does not conform to ANSI C. */ 52 | /* #undef const */ 53 | 54 | /* Define to `__inline__' or `__inline' if that's what the C compiler 55 | calls it, or to nothing if 'inline' is not supported under any name. */ 56 | #ifndef __cplusplus 57 | /* #undef inline */ 58 | #endif 59 | 60 | /* Define to `unsigned int' if does not define. */ 61 | /* #undef size_t */ 62 | 63 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/cmakescripts/getdate.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | for /f "tokens=1-4 eol=/ DELIMS=/ " %%i in ('date /t') do set BUILD=%%l%%j%%k 3 | echo %BUILD% 4 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/README.source: -------------------------------------------------------------------------------- 1 | Please refer to /usr/share/doc/quilt/README.source for use of quilt. 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/changelog: -------------------------------------------------------------------------------- 1 | libjpeg-turbo (1.1.90+svn733-0ubuntu2) precise; urgency=low 2 | 3 | * Sync with upstream to svn733. 4 | 5 | * Rename libjpeg-test to libjpeg-turbo-test. 6 | * Rename libjpeg-turbo-dbg to libjpeg-turbo8-dbg. 7 | * Rename libjpeg8-dev to libjpeg-turbo8-dev. 8 | * Move the docs into the -dev package, install the upstream changelog 9 | in the -dev only. 10 | * Split out libturbojpeg.so into it's own package, don't let 11 | libjpeg-turbo8-dev depend on it. 12 | * Fix libjpeg-turbo8-dbg package description. 13 | * Install jconfig.h into multiarch include path. 14 | * Remove HAVE_STD{LIB,DEF}_H from jconfig.h since they are not used and 15 | conflict with autoconf. 16 | * libjpeg-turbo8: 17 | - Add a symbols file, with a different version for symbols only found 18 | in the libjpeg-turbo implementation. 19 | - Remove the shlibs file. 20 | - Breaks/Replaces libjpeg8 (<< 8c-2ubuntu5). 21 | * Copy the exifautotran and jpegexiforient tools from the libjpeg8 22 | sources, install into libjpeg-turbo-progs. 23 | * Don't install tjbench in libjpeg-turbo-progs to avoid dependency 24 | on libturbojpeg. 25 | 26 | -- Matthias Klose Tue, 20 Dec 2011 23:12:52 +0100 27 | 28 | libjpeg-turbo (1.1.90+svn722-1ubuntu5) precise; urgency=low 29 | 30 | * Remove all useage of diverts in preparation to replace 31 | libjpeg8 in precise 32 | * small clean up in debian/control 33 | 34 | -- Tom Gall Thu, 01 Dec 2011 09:50:26 -0600 35 | 36 | libjpeg-turbo (1.1.90+svn722-1ubuntu4) precise; urgency=low 37 | 38 | * Switch package to include libjpeg8 compatibility 39 | * Supply -dev -dbg and -test debs 40 | 41 | -- Tom Gall Wed, 16 Nov 2011 22:14:00 +0000 42 | 43 | libjpeg-turbo (1.1.90+svn722-1ubuntu2) oneiric; urgency=low 44 | 45 | * 11.11 Release 46 | * Sync with upstream to svn722 47 | 48 | -- Tom Gall Wed, 16 Nov 2011 14:32:12 +0000 49 | 50 | libjpeg-turbo (1.1.90+svn702-0ubuntu1) oneiric; urgency=low 51 | 52 | * Initial Release based on svn 702 53 | * Initial Release and packaging based on svn 702 (LP: #852207) 54 | 55 | -- Tom Gall Tue, 13 Sep 2011 03:53:56 +0000 56 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/docs: -------------------------------------------------------------------------------- 1 | libjpeg.txt 2 | README 3 | README-turbo.txt 4 | structure.txt 5 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/extra/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS = -O2 -Wall -g 2 | CC = cc 3 | INSTALL = install -m755 -o root -g root 4 | INSTALLDIR = install -m755 -o root -g root -d 5 | DESTDIR = 6 | prefix = /usr/local 7 | bindir = $(prefix)/bin 8 | mandir = $(prefix)/share/man/man1 9 | 10 | all: jpegexiforient 11 | 12 | jpegexiforient: jpegexiforient.c 13 | $(CC) $(CFLAGS) -o jpegexiforient jpegexiforient.c 14 | clean: 15 | -rm -f jpegexiforient 16 | install: 17 | $(INSTALLDIR) $(DESTDIR)$(bindir) 18 | $(INSTALLDIR) $(DESTDIR)$(mandir) 19 | $(INSTALL) jpegexiforient $(DESTDIR)$(bindir) 20 | $(INSTALL) jpegexiforient.1 $(DESTDIR)$(mandir) 21 | $(INSTALL) exifautotran $(DESTDIR)$(bindir) 22 | $(INSTALL) exifautotran.1 $(DESTDIR)$(mandir) 23 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/extra/exifautotran: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # exifautotran [list of files] 3 | # 4 | # Transforms Exif files so that Orientation becomes 1 5 | # 6 | 7 | trap "if test -n \"\$tempfile\"; then rm -f \"\$tempfile\"; fi" INT QUIT TERM 8 | 9 | for i 10 | do 11 | case $i in 12 | -v|--version) echo "exifautotran"; exit 0;; 13 | -h|--help) 14 | cat <&2 37 | exit 1; 38 | fi 39 | echo Executing: jpegtran -copy all $transform $i >&2 40 | jpegtran -copy all $transform "$i" > $tempfile 41 | if test $? -ne 0; then 42 | echo Error while transforming $i - skipped. >&2 43 | rm "$tempfile" 44 | else 45 | cp "$tempfile" "$i" 46 | rm "$tempfile" 47 | jpegexiforient -1 "$i" > /dev/null 48 | fi 49 | fi 50 | done 51 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/extra/exifautotran.1: -------------------------------------------------------------------------------- 1 | .TH EXIFAUTOTRAN "1" "February 2005" "exifautotran" "User Commands" 2 | .SH NAME 3 | exifautotran \- Transforms Exif files so that Orientation becomes 1 4 | .SH DESCRIPTION 5 | exifautotran [list of files] 6 | .PP 7 | Take a list of files as input and transform them in place so that the 8 | Orientation becomes 1. 9 | .SH "AUTHOR" 10 | Guido Vollbeding 11 | .SH "SEE ALSO" 12 | .BR jpegtran(1) 13 | .BR jpegexiforient(1) 14 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/extra/jpegexiforient.1: -------------------------------------------------------------------------------- 1 | .TH JPEGEXIFORIENT "1" "February 2005" "jpegexiforient" "User Commands" 2 | .SH NAME 3 | jpegexiforient \- reads or writes the Exif Orientation Tag 4 | .SH SYNOPSIS 5 | .B jpegexiforient 6 | [\fIswitches\fR] \fIjpegfile\fR 7 | .SH DESCRIPTION 8 | . 9 | This is a utility program to get and set the Exif Orientation Tag. 10 | It can be used together with jpegtran in scripts for automatic 11 | orientation correction of digital camera pictures. 12 | .PP 13 | The Exif orientation value gives the orientation of the camera 14 | relative to the scene when the image was captured. The relation 15 | of the '0th row' and '0th column' to visual position is shown as 16 | below. 17 | .IP 18 | .nf 19 | .ft CR 20 | Value | 0th Row | 0th Column 21 | ------+-------------+----------- 22 | 1 | top | left side 23 | 2 | top | right side 24 | 3 | bottom | right side 25 | 4 | bottom | left side 26 | 5 | left side | top 27 | 6 | right side | top 28 | 7 | right side | bottom 29 | 8 | left side | bottom 30 | .fi 31 | .PP 32 | For convenience, here is what the letter F would look like if it were 33 | tagged correctly and displayed by a program that ignores the orientation 34 | tag: 35 | .IP 36 | .nf 37 | .ft CB 38 | 1 2 3 4 39 | 40 | 888888 888888 88 88 41 | 88 88 88 88 42 | 8888 8888 8888 8888 43 | 88 88 88 88 44 | 88 88 888888 888888 45 | 46 | 5 6 7 8 47 | 48 | 8888888888 88 88 8888888888 49 | 88 88 88 88 88 88 88 88 50 | 88 8888888888 8888888888 88 51 | .fi 52 | .PP 53 | jpegexiforient output the Exif Orientation Tag in a JPEG Exif file. 54 | With the options -1 .. -8, it can also be used to set the tag. 55 | . 56 | .SS "OPTIONS" 57 | .TP 58 | \fB\-\-help\fR 59 | display this help and exit 60 | .TP 61 | \fB\-\-version\fR 62 | output version information and exit 63 | .TP 64 | \fB\-n\fR 65 | Do not output the trailing newline 66 | .TP 67 | \fB\-1\fR .. \fB\-8\fR 68 | Set orientation value 1 .. 8 69 | .SH "AUTHOR" 70 | Guido Vollbeding 71 | .SH "SEE ALSO" 72 | .BR jpegtran(1), 73 | .BR exifautotran(1) 74 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo-only.symbols: -------------------------------------------------------------------------------- 1 | LIBJPEGTURBO_8.0@LIBJPEGTURBO_8.0 2 | auxv@LIBJPEG_8.0 3 | init_simd@LIBJPEG_8.0 4 | jinit_phuff_decoder@LIBJPEG_8.0 5 | jinit_phuff_encoder@LIBJPEG_8.0 6 | jpeg_fill_bit_buffer@LIBJPEG_8.0 7 | jpeg_gen_optimal_table@LIBJPEG_8.0 8 | jpeg_huff_decode@LIBJPEG_8.0 9 | jpeg_make_c_derived_tbl@LIBJPEG_8.0 10 | jpeg_make_d_derived_tbl@LIBJPEG_8.0 11 | jpeg_simd_cpu_support@LIBJPEG_8.0 12 | libjpeg_general_init@LIBJPEG_8.0 13 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo-progs.install: -------------------------------------------------------------------------------- 1 | usr/bin/cjpeg 2 | usr/bin/rdjpgcom 3 | usr/bin/djpeg 4 | usr/bin/jpegtran 5 | usr/bin/wrjpgcom 6 | usr/bin/exifautotran 7 | usr/bin/jpegexiforient 8 | usr/share/man/* 9 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo-test.install: -------------------------------------------------------------------------------- 1 | usr/bin/tjunittest 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo8-dev.install: -------------------------------------------------------------------------------- 1 | usr/include 2 | usr/lib/*/libjpeg.a 3 | usr/lib/*/libturbojpeg.a 4 | usr/lib/*/libjpeg.so 5 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo8.install: -------------------------------------------------------------------------------- 1 | usr/lib/*/libjpeg.so.8* 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libjpeg-turbo8.lintian-overrides: -------------------------------------------------------------------------------- 1 | # yes, we specifically want linkers to depends on the standard libjpeg name 2 | libjpeg-turbo8: shlibs-declares-dependency-on-other-package libjpeg8 #MINVER# 3 | libjpeg-turbo8: symbols-declares-dependency-on-other-package libjpeg8 #MINVER# 4 | libjpeg-turbo8: package-name-doesnt-match-sonames 5 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libturbojpeg.install: -------------------------------------------------------------------------------- 1 | usr/lib/*/libturbojpeg.so 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libturbojpeg.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "$1" = "configure" ]; then 6 | ldconfig 7 | fi 8 | 9 | #DEBHELPER# 10 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/libturbojpeg.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "$1" = "remove" ]; then 6 | ldconfig 7 | fi 8 | 9 | #DEBHELPER# 10 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/patches/series: -------------------------------------------------------------------------------- 1 | FixLibraryStartup.patch 2 | tjunittest.patch 3 | add-copying-for-debian-dir.patch 4 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/patches/tjunittest.patch: -------------------------------------------------------------------------------- 1 | Index: libjpeg-turbo-1.1.90+svn733/Makefile.am 2 | =================================================================== 3 | --- libjpeg-turbo-1.1.90+svn733.orig/Makefile.am 2011-12-20 19:33:20.000000000 +0000 4 | +++ libjpeg-turbo-1.1.90+svn733/Makefile.am 2011-12-20 19:35:26.358583864 +0000 5 | @@ -72,8 +72,7 @@ 6 | 7 | endif 8 | 9 | -bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom tjbench 10 | -noinst_PROGRAMS = tjunittest jcstest 11 | +bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom tjbench tjunittest jcstest 12 | 13 | tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \ 14 | wrbmp.c wrppm.c 15 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | # Sample debian/rules that uses debhelper. 4 | # This file was originally written by Joey Hess and Craig Small. 5 | # As a special exception, when this file is copied by dh-make into a 6 | # dh-make output file, you may use that output file without restriction. 7 | # This special exception was added by Craig Small in version 0.37 of dh-make. 8 | 9 | # Uncomment this to turn on verbose mode. 10 | #export DH_VERBOSE=1 11 | 12 | # for architecture dependent variables and changelog vars 13 | vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1))) 14 | 15 | DPKG_VARS := $(shell dpkg-architecture) 16 | DEB_BUILD_GNU_TYPE ?= $(call vafilt,$(DPKG_VARS),DEB_BUILD_GNU_TYPE) 17 | DEB_HOST_GNU_TYPE ?= $(call vafilt,$(DPKG_VARS),DEB_HOST_GNU_TYPE) 18 | DEB_HOST_MULTIARCH ?= $(call vafilt,$(DPKG_VARS),DEB_HOST_MULTIARCH) 19 | 20 | CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS) 21 | ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) 22 | CFLAGS += -Wall 23 | endif 24 | 25 | ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) 26 | CC = gcc 27 | else 28 | CC = $(DEB_HOST_GNU_TYPE)-gcc 29 | endif 30 | 31 | %: 32 | dh $@ --with autoreconf 33 | 34 | override_dh_auto_configure: 35 | dh_auto_configure -v -- --with-jpeg8 CFLAGS="$(CFLAGS)" 36 | 37 | override_dh_auto_build: 38 | dh_auto_build -v 39 | $(MAKE) -C debian/extra CC=$(CC) CFLAGS="$(CFLAGS) -Wall" 40 | 41 | override_dh_install: 42 | $(MAKE) -C debian/extra install prefix=/usr DESTDIR=$(CURDIR)/debian/tmp 43 | dh_install 44 | : # fix jconfig.h 45 | rm -f debian/tmp/usr/include/jconfig.h 46 | mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH) 47 | sed -e "s/#\(undef\|define\) HAVE_\(LOCALE\|\(STD\(DEF\|LIB\)\)\)_H 1//g" \ 48 | jconfig.h > debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/jconfig.h 49 | 50 | override_dh_installchangelogs: 51 | dh_installchangelogs -plibjpeg-turbo8-dev change.log 52 | dh_installchangelogs -Nlibjpeg-turbo8-dev 53 | 54 | override_dh_strip: 55 | dh_strip -plibjpeg-turbo8 --dbg-package=libjpeg-turbo8-dbg 56 | dh_strip -Nlibjpeg-turbo8 libjpeg-turbo8-dbg 57 | 58 | override_dh_makeshlibs: 59 | : # keep the original libjpeg symbol version 60 | dh_makeshlibs -- -v8c 61 | : # ... and mark libjpeg-turbo only symbols with a different version 62 | sed -i "$$(for i in $$(cat debian/libjpeg-turbo-only.symbols); do echo "/^ $$i/s/8c$$/8c-2ubuntu5~/;"; done)" debian/libjpeg-turbo8/DEBIAN/symbols 63 | 64 | override_dh_auto_test: 65 | 66 | override_dh_auto_clean: 67 | dh_auto_clean 68 | $(MAKE) -C debian/extra clean 69 | rm -f simd/jsimdcfg.inc 70 | 71 | deb_source := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p') 72 | svn_rev := $(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p') 73 | upstream_version := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') 74 | 75 | .PHONY: get-orig-source 76 | get-orig-source: 77 | rm -rf $(deb_source)-$(upstream_version).orig 78 | rm -f $(deb_source)-$(upstream_version).orig.tar.gz 79 | svn -q export -r $(svn_rev) https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/trunk \ 80 | $(deb_source)-$(upstream_version).orig 81 | GZIP=--best tar -cz --owner root --group root --mode a+rX \ 82 | -f $(deb_source)_$(upstream_version).orig.tar.gz \ 83 | $(deb_source)-$(upstream_version).orig 84 | rm -r $(deb_source)-$(upstream_version).orig 85 | 86 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/source.lintian-overrides: -------------------------------------------------------------------------------- 1 | package-needs-versioned-debhelper-build-depends 9 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | http://sf.net/libjpeg-turbo/libjpeg-turbo-(.+)\.tar\.gz 3 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/bc_s.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/closed.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/doxygen.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/installdox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | %subst = ( ); 4 | $quiet = 0; 5 | 6 | while ( @ARGV ) { 7 | $_ = shift @ARGV; 8 | if ( s/^-// ) { 9 | if ( /^l(.*)/ ) { 10 | $v = ($1 eq "") ? shift @ARGV : $1; 11 | ($v =~ /\/$/) || ($v .= "/"); 12 | $_ = $v; 13 | if ( /(.+)\@(.+)/ ) { 14 | if ( exists $subst{$1} ) { 15 | $subst{$1} = $2; 16 | } else { 17 | print STDERR "Unknown tag file $1 given with option -l\n"; 18 | &usage(); 19 | } 20 | } else { 21 | print STDERR "Argument $_ is invalid for option -l\n"; 22 | &usage(); 23 | } 24 | } 25 | elsif ( /^q/ ) { 26 | $quiet = 1; 27 | } 28 | elsif ( /^\?|^h/ ) { 29 | &usage(); 30 | } 31 | else { 32 | print STDERR "Illegal option -$_\n"; 33 | &usage(); 34 | } 35 | } 36 | else { 37 | push (@files, $_ ); 38 | } 39 | } 40 | 41 | foreach $sub (keys %subst) 42 | { 43 | if ( $subst{$sub} eq "" ) 44 | { 45 | print STDERR "No substitute given for tag file `$sub'\n"; 46 | &usage(); 47 | } 48 | elsif ( ! $quiet && $sub ne "_doc" && $sub ne "_cgi" ) 49 | { 50 | print "Substituting $subst{$sub} for each occurrence of tag file $sub\n"; 51 | } 52 | } 53 | 54 | if ( ! @files ) { 55 | if (opendir(D,".")) { 56 | foreach $file ( readdir(D) ) { 57 | $match = ".html"; 58 | next if ( $file =~ /^\.\.?$/ ); 59 | ($file =~ /$match/) && (push @files, $file); 60 | ($file =~ /\.svg/) && (push @files, $file); 61 | ($file =~ "navtree.js") && (push @files, $file); 62 | } 63 | closedir(D); 64 | } 65 | } 66 | 67 | if ( ! @files ) { 68 | print STDERR "Warning: No input files given and none found!\n"; 69 | } 70 | 71 | foreach $f (@files) 72 | { 73 | if ( ! $quiet ) { 74 | print "Editing: $f...\n"; 75 | } 76 | $oldf = $f; 77 | $f .= ".bak"; 78 | unless (rename $oldf,$f) { 79 | print STDERR "Error: cannot rename file $oldf\n"; 80 | exit 1; 81 | } 82 | if (open(F,"<$f")) { 83 | unless (open(G,">$oldf")) { 84 | print STDERR "Error: opening file $oldf for writing\n"; 85 | exit 1; 86 | } 87 | if ($oldf ne "tree.js") { 88 | while () { 89 | s/doxygen\=\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\" (xlink:href|href|src)=\"\2/doxygen\=\"$1:$subst{$1}\" \3=\"$subst{$1}/g; 90 | print G "$_"; 91 | } 92 | } 93 | else { 94 | while () { 95 | s/\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\", \"\2/\"$1:$subst{$1}\" ,\"$subst{$1}/g; 96 | print G "$_"; 97 | } 98 | } 99 | } 100 | else { 101 | print STDERR "Warning file $f does not exist\n"; 102 | } 103 | unlink $f; 104 | } 105 | 106 | sub usage { 107 | print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n"; 108 | print STDERR "Options:\n"; 109 | print STDERR " -l tagfile\@linkName tag file + URL or directory \n"; 110 | print STDERR " -q Quiet mode\n\n"; 111 | exit 1; 112 | } 113 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/nav_f.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/nav_h.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/open.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_63.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | customFilter 13 | tjtransform 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_64.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | data 13 | tjtransform 14 |
15 |
16 |
17 |
18 | denom 19 | tjscalingfactor 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_68.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | h 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_6e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | num 13 | tjscalingfactor 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_6f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | op 13 | tjtransform 14 |
15 |
16 |
17 |
18 | options 19 | tjtransform 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_72.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | r 13 | tjtransform 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_74.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | tjregion 13 |
14 |
15 |
16 |
17 | tjscalingfactor 18 |
19 |
20 |
21 |
22 | tjtransform 23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_77.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | w 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_78.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | x 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/all_79.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | y 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/classes_74.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | tjregion 13 |
14 |
15 |
16 |
17 | tjscalingfactor 18 |
19 |
20 |
21 |
22 | tjtransform 23 |
24 |
25 |
Searching...
26 |
No Matches
27 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/close.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/mag_sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/mag_sel.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/nomatches.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
No Matches
10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_l.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_m.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/search_r.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_63.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | customFilter 13 | tjtransform 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_64.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | data 13 | tjtransform 14 |
15 |
16 |
17 |
18 | denom 19 | tjscalingfactor 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_68.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | h 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_6e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | num 13 | tjscalingfactor 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_6f.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | op 13 | tjtransform 14 |
15 |
16 |
17 |
18 | options 19 | tjtransform 20 |
21 |
22 |
Searching...
23 |
No Matches
24 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_72.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | r 13 | tjtransform 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_77.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | w 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_78.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | x 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/search/variables_79.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
Loading...
10 |
11 |
12 | y 13 | tjregion 14 |
15 |
16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_a.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_b.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_h.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/doc/html/tab_s.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | } 7 | 8 | .tabs2 { 9 | font-size: 10px; 10 | } 11 | .tabs3 { 12 | font-size: 9px; 13 | } 14 | 15 | .tablist { 16 | margin: 0; 17 | padding: 0; 18 | display: table; 19 | } 20 | 21 | .tablist li { 22 | float: left; 23 | display: table-cell; 24 | background-image: url('tab_b.png'); 25 | line-height: 36px; 26 | list-style: none; 27 | } 28 | 29 | .tablist a { 30 | display: block; 31 | padding: 0 20px; 32 | font-weight: bold; 33 | background-image:url('tab_s.png'); 34 | background-repeat:no-repeat; 35 | background-position:right; 36 | color: #283A5D; 37 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 38 | text-decoration: none; 39 | outline: none; 40 | } 41 | 42 | .tabs3 .tablist a { 43 | padding: 0 10px; 44 | } 45 | 46 | .tablist a:hover { 47 | background-image: url('tab_h.png'); 48 | background-repeat:repeat-x; 49 | color: #fff; 50 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 51 | text-decoration: none; 52 | } 53 | 54 | .tablist li.current a { 55 | background-image: url('tab_a.png'); 56 | background-repeat:repeat-x; 57 | color: #fff; 58 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 59 | } 60 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/doxygen.config: -------------------------------------------------------------------------------- 1 | PROJECT_NAME = TurboJPEG 2 | PROJECT_NUMBER = 1.2 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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | TJUnitTest 12 | TJExample) 13 | 14 | if(MSVC_IDE) 15 | set(OBJDIR "${CMAKE_CURRENT_BINARY_DIR}/$(OutDir)") 16 | else() 17 | set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR}) 18 | endif() 19 | 20 | set(TURBOJPEG_DLL_NAME "turbojpeg") 21 | if(MINGW) 22 | set(TURBOJPEG_DLL_NAME "libturbojpeg") 23 | endif() 24 | configure_file(org/libjpegturbo/turbojpeg/TJLoader.java.in 25 | ${CMAKE_CURRENT_BINARY_DIR}/org/libjpegturbo/turbojpeg/TJLoader.java) 26 | 27 | set(JAVA_SOURCES "") 28 | set(JAVA_CLASSES "") 29 | set(JAVA_CLASSES_FULL "") 30 | foreach(class ${JAVA_CLASSNAMES}) 31 | set(JAVA_SOURCES ${JAVA_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/${class}.java) 32 | set(JAVA_CLASSES ${JAVA_CLASSES} ${class}.class) 33 | set(JAVA_CLASSES_FULL ${JAVA_CLASSES_FULL} ${OBJDIR}/${class}.class) 34 | endforeach() 35 | 36 | set(JAVA_SOURCES ${JAVA_SOURCES} 37 | ${CMAKE_CURRENT_BINARY_DIR}/org/libjpegturbo/turbojpeg/TJLoader.java) 38 | set(JAVA_CLASSES ${JAVA_CLASSES} 39 | org/libjpegturbo/turbojpeg/TJLoader.class) 40 | set(JAVA_CLASSES_FULL ${JAVA_CLASSES_FULL} 41 | ${OBJDIR}/org/libjpegturbo/turbojpeg/TJLoader.class) 42 | 43 | string(REGEX REPLACE " " ";" JAVACFLAGS "${JAVACFLAGS}") 44 | add_custom_command(OUTPUT ${JAVA_CLASSES_FULL} DEPENDS ${JAVA_SOURCES} 45 | COMMAND ${JAVA_COMPILE} ARGS ${JAVACFLAGS} -d ${OBJDIR} ${JAVA_SOURCES}) 46 | 47 | add_custom_command(OUTPUT ${JAR_FILE} DEPENDS ${JAVA_CLASSES_FULL} 48 | ${MANIFEST_FILE} 49 | COMMAND ${JAVA_ARCHIVE} cfm ${JAR_FILE} ${MANIFEST_FILE} ${JAVA_CLASSES} 50 | WORKING_DIRECTORY ${OBJDIR}) 51 | 52 | add_custom_target(java ALL DEPENDS ${JAR_FILE}) 53 | 54 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${JAR_FILE} DESTINATION classes) 55 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Main-Class: TJExample 3 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/Makefile.am: -------------------------------------------------------------------------------- 1 | JAVAROOT = . 2 | 3 | JAVASOURCES = org/libjpegturbo/turbojpeg/TJ.java \ 4 | org/libjpegturbo/turbojpeg/TJCompressor.java \ 5 | org/libjpegturbo/turbojpeg/TJCustomFilter.java \ 6 | org/libjpegturbo/turbojpeg/TJDecompressor.java \ 7 | org/libjpegturbo/turbojpeg/TJLoader.java \ 8 | org/libjpegturbo/turbojpeg/TJScalingFactor.java \ 9 | org/libjpegturbo/turbojpeg/TJTransform.java \ 10 | org/libjpegturbo/turbojpeg/TJTransformer.java \ 11 | TJExample.java \ 12 | TJUnitTest.java 13 | 14 | JNIHEADERS = org_libjpegturbo_turbojpeg_TJ.h \ 15 | org_libjpegturbo_turbojpeg_TJCompressor.h \ 16 | org_libjpegturbo_turbojpeg_TJDecompressor.h \ 17 | org_libjpegturbo_turbojpeg_TJTransformer.h 18 | 19 | if WITH_JAVA 20 | 21 | dist_noinst_JAVA = ${JAVASOURCES} 22 | 23 | JAVA_CLASSES = org/libjpegturbo/turbojpeg/TJ.class \ 24 | org/libjpegturbo/turbojpeg/TJCompressor.class \ 25 | org/libjpegturbo/turbojpeg/TJCustomFilter.class \ 26 | org/libjpegturbo/turbojpeg/TJDecompressor.class \ 27 | org/libjpegturbo/turbojpeg/TJLoader.class \ 28 | org/libjpegturbo/turbojpeg/TJScalingFactor.class \ 29 | org/libjpegturbo/turbojpeg/TJTransform.class \ 30 | org/libjpegturbo/turbojpeg/TJTransformer.class \ 31 | TJExample.class \ 32 | TJUnitTest.class 33 | 34 | all: all-am turbojpeg.jar 35 | 36 | turbojpeg.jar: $(JAVA_CLASSES) ${srcdir}/MANIFEST.MF 37 | $(JAR) cfm turbojpeg.jar ${srcdir}/MANIFEST.MF $(JAVA_CLASSES) 38 | 39 | clean-local: 40 | rm -f turbojpeg.jar 41 | 42 | install-exec-local: turbojpeg.jar 43 | mkdir -p $(DESTDIR)/$(prefix)/classes 44 | $(INSTALL) -m 644 turbojpeg.jar $(DESTDIR)/$(prefix)/classes/ 45 | 46 | uninstall-local: 47 | rm -f $(DESTDIR)/$(prefix)/classes/turbojpeg.jar 48 | if [ -d $(DESTDIR)/$(prefix)/classes ]; then rmdir $(DESTDIR)/$(prefix)/classes; fi 49 | 50 | headers: all 51 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJ; \ 52 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJCompressor; \ 53 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJDecompressor; \ 54 | javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJTransformer 55 | 56 | docs: all 57 | mkdir -p ${srcdir}/doc; \ 58 | javadoc -d ${srcdir}/doc -sourcepath ${srcdir} org.libjpegturbo.turbojpeg 59 | 60 | endif 61 | 62 | EXTRA_DIST = MANIFEST.MF ${JAVASOURCES} ${JNIHEADERS} doc CMakeLists.txt \ 63 | org/libjpegturbo/turbojpeg/TJLoader.java.in 64 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/README: -------------------------------------------------------------------------------- 1 | TurboJPEG/OSS Java Wrapper 2 | ========================== 3 | 4 | TurboJPEG/OSS can optionally be built with a Java Native Interface wrapper, 5 | which allows the TurboJPEG/OSS dynamic library to be loaded and used directly 6 | from Java applications. The Java front end for this is defined in several 7 | classes located under org/libjpegturbo/turbojpeg. The source code for these 8 | Java classes is licensed under a BSD-style license, so the files can be 9 | incorporated directly into both open source and proprietary projects without 10 | restriction. A Java archive (JAR) file containing these classes is also 11 | shipped with the "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/OSS Java front end to 15 | compress and decompress JPEG images in memory. 16 | 17 | 18 | Performance Pitfalls 19 | -------------------- 20 | 21 | The TurboJPEG Java front end defines several convenience methods that can 22 | allocate 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 Java front end always gives you the option of pre-allocating your own 31 | source and destination buffers, which allows you to re-use these 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 | Note for OS X users 38 | ------------------- 39 | 40 | /usr/lib, the directory under which libturbojpeg.dylib is installed on Mac 41 | systems, is not part of the normal Java library path. Thus, when running a 42 | Java application that uses TurboJPEG/OSS on Mac systems, you will need to pass 43 | an argument of -Djava.library.path=/usr/lib to java. 44 | 45 | 46 | Note for Solaris users 47 | ---------------------- 48 | 49 | /opt/libjpeg-turbo/lib, the directory under which libturbojpeg.so is installed 50 | on Solaris systems, is not part of the normal Java library path. Thus, when 51 | running a Java application that uses TurboJPEG/OSS on Solaris systems, you will 52 | need to pass an argument of -Djava.library.path=/opt/libjpeg-turbo/lib to java. 53 | If using a 64-bit data model, then instead pass an argument of 54 | -Djava.library.path=/opt/libjpeg-turbo/lib/amd64 to use the 64-bit version of 55 | libturbojpeg.so. 56 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | All Classes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | All Classes 20 |
21 | 22 | 23 | 24 | 39 | 40 |
TJ 25 |
26 | TJCompressor 27 |
28 | TJCustomFilter 29 |
30 | TJDecompressor 31 |
32 | TJScalingFactor 33 |
34 | TJTransform 35 |
36 | TJTransformer 37 |
38 |
41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/allclasses-noframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | All Classes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | All Classes 20 |
21 | 22 | 23 | 24 | 39 | 40 |
TJ 25 |
26 | TJCompressor 27 |
28 | TJCustomFilter 29 |
30 | TJDecompressor 31 |
32 | TJScalingFactor 33 |
34 | TJTransform 35 |
36 | TJTransformer 37 |
38 |
41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Generated Documentation (Untitled) 8 | 9 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | <H2> 28 | Frame Alert</H2> 29 | 30 | <P> 31 | 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. 32 | <BR> 33 | Link to<A HREF="org/libjpegturbo/turbojpeg/package-summary.html">Non-frame version.</A> 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/org/libjpegturbo/turbojpeg/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.libjpegturbo.turbojpeg 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.libjpegturbo.turbojpeg 20 | 21 | 22 | 27 | 28 |
23 | Interfaces  24 | 25 |
26 | TJCustomFilter
29 | 30 | 31 | 32 | 33 | 48 | 49 |
34 | Classes  35 | 36 |
37 | TJ 38 |
39 | TJCompressor 40 |
41 | TJDecompressor 42 |
43 | TJScalingFactor 44 |
45 | TJTransform 46 |
47 | TJTransformer
50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/package-list: -------------------------------------------------------------------------------- 1 | org.libjpegturbo.turbojpeg 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/resources/inherit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/resources/inherit.gif -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/doc/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | 3 | /* Define colors, fonts and other style attributes here to override the defaults */ 4 | 5 | /* Page background color */ 6 | body { background-color: #FFFFFF; color:#000000 } 7 | 8 | /* Headings */ 9 | h1 { font-size: 145% } 10 | 11 | /* Table colors */ 12 | .TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ 13 | .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ 14 | .TableRowColor { background: #FFFFFF; color:#000000 } /* White */ 15 | 16 | /* Font used in left-hand frame lists */ 17 | .FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 18 | .FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 19 | .FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 20 | 21 | /* Navigation bar fonts and colors */ 22 | .NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ 23 | .NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ 24 | .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} 25 | .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} 26 | 27 | .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} 28 | .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} 29 | 30 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/org/libjpegturbo/turbojpeg/TJLoader.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 | final class TJLoader { 32 | static void load() { 33 | System.loadLibrary("turbojpeg"); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/org_libjpegturbo_turbojpeg_TJCompressor.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class org_libjpegturbo_turbojpeg_TJCompressor */ 4 | 5 | #ifndef _Included_org_libjpegturbo_turbojpeg_TJCompressor 6 | #define _Included_org_libjpegturbo_turbojpeg_TJCompressor 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 12 | * Method: init 13 | * Signature: ()V 14 | */ 15 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_init 16 | (JNIEnv *, jobject); 17 | 18 | /* 19 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 20 | * Method: destroy 21 | * Signature: ()V 22 | */ 23 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_destroy 24 | (JNIEnv *, jobject); 25 | 26 | /* 27 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 28 | * Method: compress 29 | * Signature: ([BIIII[BIII)I 30 | */ 31 | JNIEXPORT jint JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII 32 | (JNIEnv *, jobject, jbyteArray, jint, jint, jint, jint, jbyteArray, jint, jint, jint); 33 | 34 | /* 35 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 36 | * Method: compress 37 | * Signature: ([IIIII[BIII)I 38 | */ 39 | JNIEXPORT jint JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIII_3BIII 40 | (JNIEnv *, jobject, jintArray, jint, jint, jint, jint, jbyteArray, jint, jint, jint); 41 | 42 | /* 43 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 44 | * Method: encodeYUV 45 | * Signature: ([BIIII[BII)V 46 | */ 47 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII 48 | (JNIEnv *, jobject, jbyteArray, jint, jint, jint, jint, jbyteArray, jint, jint); 49 | 50 | /* 51 | * Class: org_libjpegturbo_turbojpeg_TJCompressor 52 | * Method: encodeYUV 53 | * Signature: ([IIIII[BII)V 54 | */ 55 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII 56 | (JNIEnv *, jobject, jintArray, jint, jint, jint, jint, jbyteArray, jint, jint); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | #endif 62 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/java/org_libjpegturbo_turbojpeg_TJDecompressor.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class org_libjpegturbo_turbojpeg_TJDecompressor */ 4 | 5 | #ifndef _Included_org_libjpegturbo_turbojpeg_TJDecompressor 6 | #define _Included_org_libjpegturbo_turbojpeg_TJDecompressor 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 12 | * Method: init 13 | * Signature: ()V 14 | */ 15 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_init 16 | (JNIEnv *, jobject); 17 | 18 | /* 19 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 20 | * Method: destroy 21 | * Signature: ()V 22 | */ 23 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy 24 | (JNIEnv *, jobject); 25 | 26 | /* 27 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 28 | * Method: decompressHeader 29 | * Signature: ([BI)V 30 | */ 31 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader 32 | (JNIEnv *, jobject, jbyteArray, jint); 33 | 34 | /* 35 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 36 | * Method: decompress 37 | * Signature: ([BI[BIIIII)V 38 | */ 39 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII 40 | (JNIEnv *, jobject, jbyteArray, jint, jbyteArray, jint, jint, jint, jint, jint); 41 | 42 | /* 43 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 44 | * Method: decompress 45 | * Signature: ([BI[IIIIII)V 46 | */ 47 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII 48 | (JNIEnv *, jobject, jbyteArray, jint, jintArray, jint, jint, jint, jint, jint); 49 | 50 | /* 51 | * Class: org_libjpegturbo_turbojpeg_TJDecompressor 52 | * Method: decompressToYUV 53 | * Signature: ([BI[BI)V 54 | */ 55 | JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV 56 | (JNIEnv *, jobject, jbyteArray, jint, jbyteArray, jint); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | #endif 62 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/jchuff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jchuff.h 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 declarations for Huffman entropy encoding routines 9 | * that are shared between the sequential encoder (jchuff.c) and the 10 | * progressive encoder (jcphuff.c). No other modules need to see these. 11 | */ 12 | 13 | /* The legal range of a DCT coefficient is 14 | * -1024 .. +1023 for 8-bit data; 15 | * -16384 .. +16383 for 12-bit data. 16 | * Hence the magnitude should always fit in 10 or 14 bits respectively. 17 | */ 18 | 19 | #if BITS_IN_JSAMPLE == 8 20 | #define MAX_COEF_BITS 10 21 | #else 22 | #define MAX_COEF_BITS 14 23 | #endif 24 | 25 | /* Derived data constructed for each Huffman table */ 26 | 27 | typedef struct { 28 | unsigned int ehufco[256]; /* code for each symbol */ 29 | char ehufsi[256]; /* length of code for each symbol */ 30 | /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */ 31 | } c_derived_tbl; 32 | 33 | /* Short forms of external names for systems with brain-damaged linkers. */ 34 | 35 | #ifdef NEED_SHORT_EXTERNAL_NAMES 36 | #define jpeg_make_c_derived_tbl jMkCDerived 37 | #define jpeg_gen_optimal_table jGenOptTbl 38 | #endif /* NEED_SHORT_EXTERNAL_NAMES */ 39 | 40 | /* Expand a Huffman table definition into the derived format */ 41 | EXTERN(void) jpeg_make_c_derived_tbl 42 | JPP((j_compress_ptr cinfo, boolean isDC, int tblno, 43 | c_derived_tbl ** pdtbl)); 44 | 45 | /* Generate an optimal table definition given the specified counts */ 46 | EXTERN(void) jpeg_gen_optimal_table 47 | JPP((j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[])); 48 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated from jconfig.h.in by configure. */ 2 | /* Version ID for the JPEG library. 3 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 4 | */ 5 | #define JPEG_LIB_VERSION 62 6 | 7 | /* Support arithmetic encoding */ 8 | #define C_ARITH_CODING_SUPPORTED 1 9 | 10 | /* Support arithmetic decoding */ 11 | #define D_ARITH_CODING_SUPPORTED 1 12 | 13 | /* Define if your compiler supports prototypes */ 14 | #define HAVE_PROTOTYPES 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_STDDEF_H 1 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_STDLIB_H 1 21 | 22 | /* Define to 1 if the system has the type `unsigned char'. */ 23 | #define HAVE_UNSIGNED_CHAR 1 24 | 25 | /* Define to 1 if the system has the type `unsigned short'. */ 26 | #define HAVE_UNSIGNED_SHORT 1 27 | 28 | /* Define if you want use complete types */ 29 | /* #undef INCOMPLETE_TYPES_BROKEN */ 30 | 31 | /* Define if you have BSD-like bzero and bcopy */ 32 | /* #undef NEED_BSD_STRINGS */ 33 | 34 | /* Define if you need short function names */ 35 | /* #undef NEED_SHORT_EXTERNAL_NAMES */ 36 | 37 | /* Define if you have sys/types.h */ 38 | #define NEED_SYS_TYPES_H 1 39 | 40 | /* Define if shift is unsigned */ 41 | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 42 | 43 | /* Use accelerated SIMD routines. */ 44 | #define WITH_SIMD 1 45 | 46 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 47 | #ifndef __CHAR_UNSIGNED__ 48 | /* # undef __CHAR_UNSIGNED__ */ 49 | #endif 50 | 51 | /* Define to empty if `const' does not conform to ANSI C. */ 52 | /* #undef const */ 53 | 54 | /* Define to `__inline__' or `__inline' if that's what the C compiler 55 | calls it, or to nothing if 'inline' is not supported under any name. */ 56 | #ifndef __cplusplus 57 | /* #undef inline */ 58 | #endif 59 | 60 | #define INLINE inline 61 | 62 | /* Define to `unsigned int' if does not define. */ 63 | /* #undef size_t */ 64 | 65 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | /* Compiler supports function prototypes. */ 16 | #undef HAVE_PROTOTYPES 17 | 18 | /* Define to 1 if you have the header file. */ 19 | #undef HAVE_STDDEF_H 20 | 21 | /* Define to 1 if you have the header file. */ 22 | #undef HAVE_STDLIB_H 23 | 24 | /* Compiler supports 'unsigned char'. */ 25 | #undef HAVE_UNSIGNED_CHAR 26 | 27 | /* Compiler supports 'unsigned short'. */ 28 | #undef HAVE_UNSIGNED_SHORT 29 | 30 | /* Compiler does not support pointers to unspecified structures. */ 31 | #undef INCOMPLETE_TYPES_BROKEN 32 | 33 | /* How to obtain function inlining. */ 34 | #undef INLINE 35 | 36 | /* Compiler has rather than standard . */ 37 | #undef NEED_BSD_STRINGS 38 | 39 | /* Linker requires that global names be unique in first 15 characters. */ 40 | #undef NEED_SHORT_EXTERNAL_NAMES 41 | 42 | /* Need to include in order to obtain size_t. */ 43 | #undef NEED_SYS_TYPES_H 44 | 45 | /* Broken compiler shifts signed values as an unsigned shift. */ 46 | #undef RIGHT_SHIFT_IS_UNSIGNED 47 | 48 | /* Use accelerated SIMD routines. */ 49 | #undef WITH_SIMD 50 | 51 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 52 | #ifndef __CHAR_UNSIGNED__ 53 | # undef __CHAR_UNSIGNED__ 54 | #endif 55 | 56 | /* Define to empty if `const' does not conform to ANSI C. */ 57 | #undef const 58 | 59 | /* Define to `unsigned int' if does not define. */ 60 | #undef size_t 61 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/jmemnobs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * jmemnobs.c 3 | * 4 | * Copyright (C) 1992-1996, 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 provides a really simple implementation of the system- 9 | * dependent portion of the JPEG memory manager. This implementation 10 | * assumes that no backing-store files are needed: all required space 11 | * can be obtained from malloc(). 12 | * This is very portable in the sense that it'll compile on almost anything, 13 | * but you'd better have lots of main memory (or virtual memory) if you want 14 | * to process big images. 15 | * Note that the max_memory_to_use option is ignored by this implementation. 16 | */ 17 | 18 | #define JPEG_INTERNALS 19 | #include "jinclude.h" 20 | #include "jpeglib.h" 21 | #include "jmemsys.h" /* import the system-dependent declarations */ 22 | 23 | #ifndef HAVE_STDLIB_H /* should declare malloc(),free() */ 24 | extern void * malloc JPP((size_t size)); 25 | extern void free JPP((void *ptr)); 26 | #endif 27 | 28 | 29 | /* 30 | * Memory allocation and freeing are controlled by the regular library 31 | * routines malloc() and free(). 32 | */ 33 | 34 | GLOBAL(void *) 35 | jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject) 36 | { 37 | return (void *) malloc(sizeofobject); 38 | } 39 | 40 | GLOBAL(void) 41 | jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject) 42 | { 43 | free(object); 44 | } 45 | 46 | 47 | /* 48 | * "Large" objects are treated the same as "small" ones. 49 | * NB: although we include FAR keywords in the routine declarations, 50 | * this file won't actually work in 80x86 small/medium model; at least, 51 | * you probably won't be able to process useful-size images in only 64KB. 52 | */ 53 | 54 | GLOBAL(void FAR *) 55 | jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject) 56 | { 57 | return (void FAR *) malloc(sizeofobject); 58 | } 59 | 60 | GLOBAL(void) 61 | jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject) 62 | { 63 | free(object); 64 | } 65 | 66 | 67 | /* 68 | * This routine computes the total memory space available for allocation. 69 | * Here we always say, "we got all you want bud!" 70 | */ 71 | 72 | GLOBAL(size_t) 73 | jpeg_mem_available (j_common_ptr cinfo, size_t min_bytes_needed, 74 | size_t max_bytes_needed, size_t already_allocated) 75 | { 76 | return max_bytes_needed; 77 | } 78 | 79 | 80 | /* 81 | * Backing store (temporary file) management. 82 | * Since jpeg_mem_available always promised the moon, 83 | * this should never be called and we can just error out. 84 | */ 85 | 86 | GLOBAL(void) 87 | jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info, 88 | long total_bytes_needed) 89 | { 90 | ERREXIT(cinfo, JERR_NO_BACKING_STORE); 91 | } 92 | 93 | 94 | /* 95 | * These routines take care of any system-dependent initialization and 96 | * cleanup required. Here, there isn't any. 97 | */ 98 | 99 | GLOBAL(long) 100 | jpeg_mem_init (j_common_ptr cinfo) 101 | { 102 | return 0; /* just set max_memory_to_use to 0 */ 103 | } 104 | 105 | GLOBAL(void) 106 | jpeg_mem_term (j_common_ptr cinfo) 107 | { 108 | /* no work */ 109 | } 110 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 _min_DCT_scaled_size min_DCT_h_scaled_size 15 | #define _min_DCT_h_scaled_size min_DCT_h_scaled_size 16 | #define _min_DCT_v_scaled_size min_DCT_v_scaled_size 17 | #define _jpeg_width jpeg_width 18 | #define _jpeg_height jpeg_height 19 | #else 20 | #define _DCT_scaled_size DCT_scaled_size 21 | #define _min_DCT_scaled_size min_DCT_scaled_size 22 | #define _min_DCT_h_scaled_size min_DCT_scaled_size 23 | #define _min_DCT_v_scaled_size min_DCT_scaled_size 24 | #define _jpeg_width image_width 25 | #define _jpeg_height image_height 26 | #endif 27 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-2010, Thomas G. Lane, Guido Vollbeding. 5 | * Copyright (C) 2010, D. R. Commander. 6 | * This file is part of the Independent JPEG Group's software. 7 | * For conditions of distribution and use, see the accompanying README file. 8 | * 9 | * This file contains software version identification. 10 | */ 11 | 12 | 13 | #if JPEG_LIB_VERSION >= 80 14 | 15 | #define JVERSION "8b 16-May-2010" 16 | 17 | #define JCOPYRIGHT "Copyright (C) 2010, Thomas G. Lane, Guido Vollbeding" 18 | 19 | #elif JPEG_LIB_VERSION >= 70 20 | 21 | #define JVERSION "7 27-Jun-2009" 22 | 23 | #define JCOPYRIGHT "Copyright (C) 2009, Thomas G. Lane, Guido Vollbeding" 24 | 25 | #else 26 | 27 | #define JVERSION "6b 27-Mar-1998" 28 | 29 | #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" 30 | 31 | #endif 32 | 33 | #define LJTCOPYRIGHT "Copyright (C) 1999-2006 MIYASAKA Masaru\n" \ 34 | "Copyright (C) 2009 Pierre Ossman for Cendio AB\n" \ 35 | "Copyright (C) 2009-2011 D. R. Commander\n" \ 36 | "Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)" 37 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/libjpeg.map.in: -------------------------------------------------------------------------------- 1 | LIBJPEGTURBO_@JPEG_LIB_VERSION_DECIMAL@ { 2 | local: 3 | jsimd_*; 4 | jconst_*; 5 | }; 6 | 7 | LIBJPEG_@JPEG_LIB_VERSION_DECIMAL@ { 8 | global: 9 | *; 10 | }; 11 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/Description.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IFPkgDescriptionDescription 6 | A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 7 | IFPkgDescriptionTitle 8 | libjpeg-turbo 9 | IFPkgDescriptionVersion 10 | 1.1.1 11 | 12 | 13 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleGetInfoString 6 | 1.1.1, The libjpeg-turbo Project 7 | CFBundleIdentifier 8 | com.libjpeg-turbo.libjpeg-turbo 9 | CFBundleShortVersionString 10 | 1.1.1 11 | IFMajorVersion 12 | 1 13 | IFMinorVersion 14 | 20110803 15 | IFPkgFlagAllowBackRev 16 | 17 | IFPkgFlagAuthorizationAction 18 | AdminAuthorization 19 | IFPkgFlagBackgroundAlignment 20 | topleft 21 | IFPkgFlagBackgroundScaling 22 | none 23 | IFPkgFlagDefaultLocation 24 | / 25 | IFPkgFlagFollowLinks 26 | 27 | IFPkgFlagInstallFat 28 | 29 | IFPkgFlagIsRequired 30 | 31 | IFPkgFlagOverwritePermissions 32 | 33 | IFPkgFlagRelocatable 34 | 35 | IFPkgFlagRestartAction 36 | NoRestart 37 | IFPkgFlagRootVolumeOnly 38 | 39 | IFPkgFlagUpdateInstalledLanguages 40 | 41 | IFPkgFormatVersion 42 | 0.10000000149011612 43 | 44 | 45 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/deb-control: -------------------------------------------------------------------------------- 1 | Package: libjpeg-turbo 2 | Version: 1.1.1-20110803 3 | Section: misc 4 | Priority: optional 5 | Architecture: armel 6 | Essential: no 7 | Maintainer: The libjpeg-turbo Project [http://www.libjpeg-turbo.org] 8 | Description: A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 9 | libjpeg-turbo is a derivative of libjpeg which uses SIMD instructions (MMX, 10 | SSE2, etc.) to accelerate baseline JPEG compression and decompression on x86 11 | and x86-64 systems. On such systems, libjpeg-turbo is generally 2-4x as fast 12 | as the unmodified version of libjpeg, all else being equal. libjpeg-turbo 13 | also includes a wrapper library which implements the TurboJPEG API used by 14 | VirtualGL and TurboVNC. 15 | . 16 | libjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru, but 17 | the TigerVNC and VirtualGL projects made numerous enhancements to the codec 18 | in 2009, including improved support for Mac OS X, 64-bit support, support 19 | for 32-bit and big endian pixel formats (RGBX, XBGR, etc.), accelerated 20 | Huffman encoding/decoding, and various bug fixes. The goal was to produce a 21 | fully open source codec that could replace the partially closed source 22 | TurboJPEG/IPP codec used by VirtualGL and TurboVNC. libjpeg-turbo generally 23 | performs in the range of 80-120% of TurboJPEG/IPP. It is faster in some 24 | areas but slower in others. 25 | . 26 | In early 2010, libjpeg-turbo spun off into its own independent project, with 27 | the goal of making high-speed JPEG compression/decompression technology 28 | available to a broader range of users and developers. 29 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/makecygwinpkg: -------------------------------------------------------------------------------- 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=libjpeg-turbo 19 | VERSION=1.1.1 20 | SRCDIR=/home/tgall/libjpeg-turbo-android/wip 21 | 22 | umask 022 23 | rm -f $PACKAGE_NAME-$VERSION-cygwin.tar.bz2 24 | TMPDIR=`mktemp -d /tmp/ljtbuild.XXXXXX` 25 | __PWD=`pwd` 26 | make install DESTDIR=$TMPDIR/pkg mandir=/opt/$PACKAGE_NAME/man 27 | rm $TMPDIR/pkg/opt/$PACKAGE_NAME/lib/*.la 28 | DOCDIR=$TMPDIR/pkg/usr/share/doc/$PACKAGE_NAME-$VERSION 29 | mkdir -p $DOCDIR 30 | install -m 644 $SRCDIR/README-turbo.txt $DOCDIR 31 | install -m 644 $SRCDIR/README $DOCDIR 32 | install -m 644 $SRCDIR/libjpeg.txt $DOCDIR 33 | install -m 644 $SRCDIR/usage.txt $DOCDIR 34 | install -m 644 $SRCDIR/LICENSE.txt $DOCDIR 35 | install -m 644 $SRCDIR/LGPL.txt $DOCDIR 36 | ln -fs lib $TMPDIR/pkg/opt/$PACKAGE_NAME/lib32 37 | cd $TMPDIR/pkg 38 | tar cfj ../$PACKAGE_NAME-$VERSION-cygwin.tar.bz2 * 39 | cd $__PWD 40 | mv $TMPDIR/*.tar.bz2 . 41 | 42 | exit 0 43 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/makedpkg: -------------------------------------------------------------------------------- 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 | sudo rm -rf $TMPDIR 15 | fi 16 | } 17 | 18 | makedeb() 19 | { 20 | SUPPLEMENT=$1 21 | DIRNAME=$PACKAGE_NAME 22 | 23 | if [ $SUPPLEMENT = 1 ]; then 24 | PACKAGE_NAME=$PACKAGE_NAME\32 25 | DEBARCH=amd64 26 | __LIB=lib32 27 | else 28 | __LIB=lib 29 | fi 30 | 31 | umask 022 32 | rm -f $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb 33 | TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX` 34 | mkdir $TMPDIR/DEBIAN 35 | cp pkgscripts/deb-control $TMPDIR/DEBIAN/control 36 | 37 | make install prefix=$TMPDIR/opt/$DIRNAME libdir=$TMPDIR/opt/$DIRNAME/$__LIB mandir=$TMPDIR/opt/$DIRNAME/man 38 | rm -f $TMPDIR/opt/$DIRNAME/$__LIB/*.la 39 | 40 | if [ $SUPPLEMENT = 1 ]; then 41 | rm -rf $TMPDIR/opt/$DIRNAME/include 42 | rm -rf $TMPDIR/opt/$DIRNAME/man 43 | rm -rf $TMPDIR/opt/$DIRNAME/bin 44 | fi 45 | 46 | mkdir -p $TMPDIR/usr/$__LIB 47 | mv $TMPDIR/opt/$DIRNAME/$__LIB/libturbojpeg.* $TMPDIR/usr/$__LIB 48 | ln -fs /usr/$__LIB/libturbojpeg.a $TMPDIR/opt/$DIRNAME/$__LIB/ 49 | /sbin/ldconfig -n $TMPDIR/opt/$DIRNAME/$__LIB 50 | /sbin/ldconfig -n $TMPDIR/usr/$__LIB 51 | 52 | if [ ! $SUPPLEMENT = 1 ]; then 53 | if [ "$DEBARCH" = "amd64" ]; then 54 | ln -fs lib $TMPDIR/opt/$DIRNAME/lib64 55 | else 56 | if [ ! "$__LIB" = "lib32" ]; then 57 | ln -fs lib $TMPDIR/opt/$DIRNAME/lib32 58 | fi 59 | fi 60 | mkdir -p $TMPDIR/usr/include 61 | mv $TMPDIR/opt/$DIRNAME/include/turbojpeg.h $TMPDIR/usr/include 62 | ln -fs /usr/include/turbojpeg.h $TMPDIR/opt/$DIRNAME/include/ 63 | mkdir -p $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 64 | install -m 644 $SRCDIR/LICENSE.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 65 | install -m 644 $SRCDIR/LGPL.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 66 | install -m 644 $SRCDIR/README-turbo.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 67 | install -m 644 $SRCDIR/README $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 68 | install -m 644 $SRCDIR/libjpeg.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 69 | install -m 644 $SRCDIR/usage.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 70 | fi 71 | 72 | sudo chown -Rh root:root $TMPDIR/* 73 | dpkg -b $TMPDIR $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb 74 | } 75 | 76 | PACKAGE_NAME=libjpeg-turbo 77 | VERSION=1.1.1 78 | BUILD=20110803 79 | DEBARCH=armel 80 | SRCDIR=/home/tgall/libjpeg-turbo-android/wip 81 | 82 | makedeb 0 83 | if [ "$DEBARCH" = "i386" ]; then makedeb 1; fi 84 | 85 | exit 86 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/pkginfo: -------------------------------------------------------------------------------- 1 | ARCH=i386 2 | PKG=libjpeg-turbo 3 | NAME=libjpeg-turbo SDK and run time libraries 4 | VERSION=1.1.1,REV=20110803 5 | SUNW_PKGVERS=1.0 6 | DESC=A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 7 | VENDOR=The libjpeg-turbo Project 8 | HOTLINE=http://www.libjpeg-turbo.org 9 | EMAIL=information@libjpeg-turbo.org 10 | MAXINST=1 11 | CATEGORY=application 12 | BASEDIR=/opt 13 | CLASSES=none 14 | SUNW_PKG_ALLZONES=true 15 | SUNW_PKG_HOLLOW=false 16 | SUNW_PKG_THISZONE=false 17 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/pkgscripts/uninstall: -------------------------------------------------------------------------------- 1 | # Copyright (C)2009-2011 D. R. Commander 2 | # Copyright (C)2009 Sun Microsystems, Inc. 3 | # 4 | # This library is free software and may be redistributed and/or modified under 5 | # the terms of the wxWindows Library License, Version 3.1 or (at your option) 6 | # any later version. The full license is in the LICENSE.txt file included 7 | # with this distribution. 8 | # 9 | # This library is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # wxWindows Library License for more details. 13 | 14 | #!/bin/sh 15 | 16 | error() 17 | { 18 | echo $1 19 | exit -1 20 | } 21 | 22 | if [ ! "`id -u`" = "0" ]; then 23 | error "This command must be run as root" 24 | fi 25 | 26 | PKGNAME=libjpeg-turbo 27 | MACPKGNAME=com.$PKGNAME.$PKGNAME 28 | RCPT=/Library/Receipts/$PKGNAME.pkg 29 | 30 | LSBOM= 31 | if [ -d $RCPT ]; then 32 | LSBOM='lsbom -s -f -l '$RCPT'/Contents/Archive.bom' 33 | else 34 | LSBOM='pkgutil --files '$MACPKGNAME 35 | fi 36 | 37 | echo Removing files ... 38 | $LSBOM >/dev/null || error "Could not list package contents" 39 | RETCODE=0 40 | PWD=`pwd` 41 | cd / 42 | $LSBOM | while read line; do 43 | if [ ! -d "$line" ]; then rm "$line" 2>&1 || RETCODE=-1; fi 44 | done 45 | cd $PWD 46 | 47 | echo Removing directories ... 48 | rmdir /opt/$PKGNAME/bin 2>&1 || RETCODE=-1 49 | if [ -d /opt/$PKGNAME/bin ]; then 50 | rmdir /opt/$PKGNAME/bin 2>&1 || RETCODE=-1 51 | fi 52 | if [ -d /opt/$PKGNAME/lib ]; then 53 | rmdir /opt/$PKGNAME/lib 2>&1 || RETCODE=-1 54 | fi 55 | if [ -d /opt/$PKGNAME/include ]; then 56 | rmdir /opt/$PKGNAME/include 2>&1 || RETCODE=-1 57 | fi 58 | rm /opt/$PKGNAME/lib32 2>&1 || RETCODE=-1 59 | rm /opt/$PKGNAME/lib64 2>&1 || RETCODE=-1 60 | if [ -d /opt/$PKGNAME/man/man1 ]; then 61 | rmdir /opt/$PKGNAME/man/man1 2>&1 || RETCODE=-1 62 | fi 63 | if [ -d /opt/$PKGNAME/man ]; then 64 | rmdir /opt/$PKGNAME/man 2>&1 || RETCODE=-1 65 | fi 66 | rmdir /opt/$PKGNAME 2>&1 || RETCODE=-1 67 | rmdir /Library/Documentation/$PKGNAME 2>&1 || RETCODE=-1 68 | 69 | if [ -d $RCPT ]; then 70 | echo Removing package receipt $RCPT ... 71 | rm -r $RCPT 2>&1 || RETCODE=-1 72 | else 73 | echo Forgetting package $MACPKGNAME 74 | pkgutil --forget $MACPKGNAME 75 | fi 76 | 77 | exit $RETCODE 78 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/Description.plist.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IFPkgDescriptionDescription 6 | A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 7 | IFPkgDescriptionTitle 8 | @PACKAGE_NAME@ 9 | IFPkgDescriptionVersion 10 | @VERSION@ 11 | 12 | 13 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/Info.plist.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleGetInfoString 6 | @VERSION@, The libjpeg-turbo Project 7 | CFBundleIdentifier 8 | com.libjpeg-turbo.libjpeg-turbo 9 | CFBundleShortVersionString 10 | @VERSION@ 11 | IFMajorVersion 12 | 1 13 | IFMinorVersion 14 | @BUILD@ 15 | IFPkgFlagAllowBackRev 16 | 17 | IFPkgFlagAuthorizationAction 18 | AdminAuthorization 19 | IFPkgFlagBackgroundAlignment 20 | topleft 21 | IFPkgFlagBackgroundScaling 22 | none 23 | IFPkgFlagDefaultLocation 24 | / 25 | IFPkgFlagFollowLinks 26 | 27 | IFPkgFlagInstallFat 28 | 29 | IFPkgFlagIsRequired 30 | 31 | IFPkgFlagOverwritePermissions 32 | 33 | IFPkgFlagRelocatable 34 | 35 | IFPkgFlagRestartAction 36 | NoRestart 37 | IFPkgFlagRootVolumeOnly 38 | 39 | IFPkgFlagUpdateInstalledLanguages 40 | 41 | IFPkgFormatVersion 42 | 0.10000000149011612 43 | 44 | 45 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | } -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/ReadMe.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 2 | {\fonttbl\f0\fswiss\fcharset0 Helvetica;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \margl1440\margr1440\vieww15200\viewh9600\viewkind0 5 | \deftab720 6 | \pard\pardeftab720\ql\qnatural 7 | 8 | \f0\fs24 \cf0 libjpeg-turbo is a derivative of libjpeg which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression on x86 and x86-64 systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal. libjpeg-turbo also includes a wrapper library which implements the TurboJPEG API used by VirtualGL and TurboVNC.\ 9 | \ 10 | libjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru, but the TigerVNC and VirtualGL projects made numerous enhancements to the codec in 2009, including improved support for Mac OS X, 64-bit support, support for 32-bit and big endian pixel formats (RGBX, XBGR, etc.), accelerated Huffman encoding/decoding, and various bug fixes. The goal was to produce a fully open source codec that could replace the partially closed source TurboJPEG/IPP codec used by VirtualGL and TurboVNC. libjpeg-turbo generally performs in the range of 80-120% of TurboJPEG/IPP. It is faster in some areas but slower in others.\ 11 | \ 12 | In early 2010, libjpeg-turbo spun off into its own independent project, with the goal of making high-speed JPEG compression/decompression technology available to a broader range of users and developers.\ 13 | } -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/Welcome.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 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 | \ 18 | If TurboJPEG/IPP is currently installed, then it must be removed prior to installing libjpeg-turbo.\ 19 | } -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/copyright: -------------------------------------------------------------------------------- 1 | libjpeg-turbo is released under a BSD-style license (see README and README-turbo.txt) 2 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 [http://www.libjpeg-turbo.org] 8 | Description: A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 9 | libjpeg-turbo is a derivative of libjpeg which uses SIMD instructions (MMX, 10 | SSE2, etc.) to accelerate baseline JPEG compression and decompression on x86 11 | and x86-64 systems. On such systems, libjpeg-turbo is generally 2-4x as fast 12 | as the unmodified version of libjpeg, all else being equal. libjpeg-turbo 13 | also includes a wrapper library which implements the TurboJPEG API used by 14 | VirtualGL and TurboVNC. 15 | . 16 | libjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru, but 17 | the TigerVNC and VirtualGL projects made numerous enhancements to the codec 18 | in 2009, including improved support for Mac OS X, 64-bit support, support 19 | for 32-bit and big endian pixel formats (RGBX, XBGR, etc.), accelerated 20 | Huffman encoding/decoding, and various bug fixes. The goal was to produce a 21 | fully open source codec that could replace the partially closed source 22 | TurboJPEG/IPP codec used by VirtualGL and TurboVNC. libjpeg-turbo generally 23 | performs in the range of 80-120% of TurboJPEG/IPP. It is faster in some 24 | areas but slower in others. 25 | . 26 | In early 2010, libjpeg-turbo spun off into its own independent project, with 27 | the goal of making high-speed JPEG compression/decompression technology 28 | available to a broader range of users and developers. 29 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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=@PACKAGE_NAME@ 19 | VERSION=@VERSION@ 20 | SRCDIR=@abs_top_srcdir@ 21 | 22 | umask 022 23 | rm -f $PACKAGE_NAME-$VERSION-cygwin.tar.bz2 24 | TMPDIR=`mktemp -d /tmp/ljtbuild.XXXXXX` 25 | __PWD=`pwd` 26 | make install DESTDIR=$TMPDIR/pkg mandir=/opt/$PACKAGE_NAME/man 27 | rm $TMPDIR/pkg/opt/$PACKAGE_NAME/lib/*.la 28 | DOCDIR=$TMPDIR/pkg/usr/share/doc/$PACKAGE_NAME-$VERSION 29 | mkdir -p $DOCDIR 30 | install -m 644 $SRCDIR/README-turbo.txt $DOCDIR 31 | install -m 644 $SRCDIR/README $DOCDIR 32 | install -m 644 $SRCDIR/libjpeg.txt $DOCDIR 33 | install -m 644 $SRCDIR/usage.txt $DOCDIR 34 | ln -fs lib $TMPDIR/pkg/opt/$PACKAGE_NAME/lib32 35 | cd $TMPDIR/pkg 36 | tar cfj ../$PACKAGE_NAME-$VERSION-cygwin.tar.bz2 * 37 | cd $__PWD 38 | mv $TMPDIR/*.tar.bz2 . 39 | 40 | exit 0 41 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | 11 | onexit() 12 | { 13 | if [ ! "$TMPDIR" = "" ]; then 14 | sudo rm -rf $TMPDIR 15 | fi 16 | } 17 | 18 | makedeb() 19 | { 20 | SUPPLEMENT=$1 21 | DIRNAME=$PACKAGE_NAME 22 | 23 | if [ $SUPPLEMENT = 1 ]; then 24 | PACKAGE_NAME=$PACKAGE_NAME\32 25 | DEBARCH=amd64 26 | __LIB=lib32 27 | else 28 | __LIB=lib 29 | fi 30 | 31 | umask 022 32 | rm -f $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb 33 | TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX` 34 | mkdir $TMPDIR/DEBIAN 35 | (cat $SRCDIR/release/deb-control.tmpl | sed s/{__PKGNAME}/$PACKAGE_NAME/g \ 36 | | sed s/{__VERSION}/$VERSION/g | sed s/{__BUILD}/$BUILD/g \ 37 | | sed s/{__ARCH}/$DEBARCH/g > $TMPDIR/DEBIAN/control) 38 | 39 | make install prefix=$TMPDIR/opt/$DIRNAME libdir=$TMPDIR/opt/$DIRNAME/$__LIB mandir=$TMPDIR/opt/$DIRNAME/man 40 | rm -f $TMPDIR/opt/$DIRNAME/$__LIB/*.la 41 | 42 | if [ $SUPPLEMENT = 1 ]; then 43 | rm -rf $TMPDIR/opt/$DIRNAME/include 44 | rm -rf $TMPDIR/opt/$DIRNAME/man 45 | rm -rf $TMPDIR/opt/$DIRNAME/bin 46 | rm -rf $TMPDIR/opt/$DIRNAME/classes 47 | fi 48 | 49 | mkdir -p $TMPDIR/usr/$__LIB 50 | mv $TMPDIR/opt/$DIRNAME/$__LIB/libturbojpeg.* $TMPDIR/usr/$__LIB 51 | ln -fs /usr/$__LIB/libturbojpeg.a $TMPDIR/opt/$DIRNAME/$__LIB/ 52 | /sbin/ldconfig -n $TMPDIR/opt/$DIRNAME/$__LIB 53 | /sbin/ldconfig -n $TMPDIR/usr/$__LIB 54 | 55 | if [ ! $SUPPLEMENT = 1 ]; then 56 | if [ "$DEBARCH" = "amd64" ]; then 57 | ln -fs lib $TMPDIR/opt/$DIRNAME/lib64 58 | else 59 | if [ ! "$__LIB" = "lib32" ]; then 60 | ln -fs lib $TMPDIR/opt/$DIRNAME/lib32 61 | fi 62 | fi 63 | mkdir -p $TMPDIR/usr/include 64 | mv $TMPDIR/opt/$DIRNAME/include/turbojpeg.h $TMPDIR/usr/include 65 | ln -fs /usr/include/turbojpeg.h $TMPDIR/opt/$DIRNAME/include/ 66 | mkdir -p $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 67 | install -m 644 $SRCDIR/README-turbo.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 68 | install -m 644 $SRCDIR/README $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 69 | install -m 644 $SRCDIR/libjpeg.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 70 | install -m 644 $SRCDIR/usage.txt $TMPDIR/usr/share/doc/$DIRNAME-$VERSION 71 | fi 72 | 73 | sudo chown -Rh root:root $TMPDIR/* 74 | dpkg -b $TMPDIR $PACKAGE_NAME\_$VERSION\_$DEBARCH.deb 75 | } 76 | 77 | PACKAGE_NAME=@PACKAGE_NAME@ 78 | VERSION=@VERSION@ 79 | BUILD=@BUILD@ 80 | DEBARCH=@DEBARCH@ 81 | SRCDIR=@abs_top_srcdir@ 82 | 83 | makedeb 0 84 | if [ "$DEBARCH" = "i386" ]; then makedeb 1; fi 85 | 86 | exit 87 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/release/pkginfo.in: -------------------------------------------------------------------------------- 1 | ARCH=i386 2 | PKG=@PACKAGE_NAME@ 3 | NAME=@PACKAGE_NAME@ SDK and run time libraries 4 | VERSION=@VERSION@,REV=@BUILD@ 5 | SUNW_PKGVERS=1.0 6 | DESC=A SIMD-accelerated JPEG codec which provides both the libjpeg and TurboJPEG APIs 7 | VENDOR=The libjpeg-turbo Project 8 | HOTLINE=http://www.libjpeg-turbo.org 9 | EMAIL=information@libjpeg-turbo.org 10 | MAXINST=1 11 | CATEGORY=application 12 | BASEDIR=/opt 13 | CLASSES=none 14 | SUNW_PKG_ALLZONES=true 15 | SUNW_PKG_HOLLOW=false 16 | SUNW_PKG_THISZONE=false 17 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | add_library(jpeg SHARED ${JPEG_SRCS} ${SIMD_OBJS} 28 | ${CMAKE_SOURCE_DIR}/win/jpeg${DLL_VERSION}.def) 29 | set_target_properties(jpeg PROPERTIES SOVERSION ${DLL_VERSION} 30 | VERSION ${FULLVERSION}) 31 | if(MSVC) 32 | set_target_properties(jpeg PROPERTIES SUFFIX ${DLL_VERSION}.dll) 33 | elseif(MINGW OR CYGWIN) 34 | set_target_properties(jpeg PROPERTIES SUFFIX -${DLL_VERSION}.dll) 35 | endif(MSVC) 36 | if(WITH_SIMD) 37 | add_dependencies(jpeg simd) 38 | endif() 39 | 40 | add_executable(cjpeg ../cjpeg.c ../cdjpeg.c ../rdbmp.c ../rdgif.c ../rdppm.c 41 | ../rdswitch.c ../rdtarga.c) 42 | set_property(TARGET cjpeg PROPERTY COMPILE_FLAGS 43 | "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") 44 | target_link_libraries(cjpeg jpeg) 45 | 46 | add_executable(djpeg ../djpeg.c ../cdjpeg.c ../rdcolmap.c ../rdswitch.c 47 | ../wrbmp.c ../wrgif.c ../wrppm.c ../wrtarga.c) 48 | set_property(TARGET djpeg PROPERTY COMPILE_FLAGS 49 | "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED -DUSE_SETMODE") 50 | target_link_libraries(djpeg jpeg) 51 | 52 | add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c) 53 | target_link_libraries(jpegtran jpeg) 54 | set_property(TARGET jpegtran PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") 55 | 56 | add_executable(jcstest ../jcstest.c) 57 | target_link_libraries(jcstest jpeg) 58 | 59 | install(TARGETS jpeg cjpeg djpeg jpegtran 60 | ARCHIVE DESTINATION lib 61 | LIBRARY DESTINATION lib 62 | RUNTIME DESTINATION bin) 63 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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__ -I${CMAKE_SOURCE_DIR}/win/ 7 | -I${CMAKE_CURRENT_SOURCE_DIR}/) 8 | else() 9 | set(NAFLAGS -fwin32 -DWIN32 -I${CMAKE_SOURCE_DIR}/win/ 10 | -I${CMAKE_CURRENT_SOURCE_DIR}/) 11 | endif() 12 | 13 | # This only works if building from the command line. There is currently no way 14 | # to set a variable's value based on the build type when using the MSVC IDE. 15 | if(CMAKE_BUILD_TYPE STREQUAL "Debug" 16 | OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") 17 | set(NAFLAGS ${NAFLAGS} -g) 18 | endif() 19 | 20 | if(SIMD_X86_64) 21 | set(SIMD_BASENAMES jfsseflt-64 jccolss2-64 jdcolss2-64 jcgrass2-64 22 | jcsamss2-64 jdsamss2-64 jdmerss2-64 jcqnts2i-64 jfss2fst-64 jfss2int-64 23 | jiss2red-64 jiss2int-64 jiss2fst-64 jcqnts2f-64 jiss2flt-64) 24 | message(STATUS "Building x86_64 SIMD extensions") 25 | else() 26 | set(SIMD_BASENAMES jsimdcpu jccolmmx jcgrammx jdcolmmx jcsammmx jdsammmx 27 | jdmermmx jcqntmmx jfmmxfst jfmmxint jimmxred jimmxint jimmxfst jcqnt3dn 28 | jf3dnflt ji3dnflt jcqntsse jfsseflt jisseflt jccolss2 jcgrass2 jdcolss2 29 | jcsamss2 jdsamss2 jdmerss2 jcqnts2i jfss2fst jfss2int jiss2red jiss2int 30 | jiss2fst jcqnts2f jiss2flt) 31 | message(STATUS "Building i386 SIMD extensions") 32 | endif() 33 | 34 | if(MSVC_IDE) 35 | set(OBJDIR "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}") 36 | else() 37 | set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR}) 38 | endif() 39 | 40 | foreach(file ${SIMD_BASENAMES}) 41 | set(DEPFILE "") 42 | set(SIMD_SRC ${CMAKE_CURRENT_SOURCE_DIR}/${file}.asm) 43 | if(${file} MATCHES col) 44 | set(DEPFILE ${SIMD_SRC}) 45 | string(REGEX REPLACE "col" "clr" DEPFILE ${DEPFILE}) 46 | endif() 47 | if(${file} MATCHES mer) 48 | set(DEPFILE ${SIMD_SRC}) 49 | string(REGEX REPLACE "mer" "mrg" DEPFILE ${DEPFILE}) 50 | endif() 51 | if(${file} MATCHES gra) 52 | set(DEPFILE ${SIMD_SRC}) 53 | string(REGEX REPLACE "gra" "gry" DEPFILE ${DEPFILE}) 54 | endif() 55 | set(SIMD_OBJ ${OBJDIR}/${file}.obj) 56 | add_custom_command(OUTPUT ${SIMD_OBJ} DEPENDS ${SIMD_SRC} ${DEPFILE} *.inc 57 | COMMAND ${NASM} ${NAFLAGS} ${SIMD_SRC} -o${SIMD_OBJ}) 58 | set(SIMD_OBJS ${SIMD_OBJS} ${SIMD_OBJ}) 59 | endforeach() 60 | 61 | set(SIMD_OBJS ${SIMD_OBJS} PARENT_SCOPE) 62 | add_custom_target(simd DEPENDS ${SIMD_OBJS}) 63 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/simd/Makefile.am: -------------------------------------------------------------------------------- 1 | noinst_LTLIBRARIES = libsimd.la 2 | 3 | BUILT_SOURCES = jsimdcfg.inc 4 | 5 | EXTRA_DIST = nasm_lt.sh jcclrmmx.asm jcclrss2.asm jdclrmmx.asm jdclrss2.asm \ 6 | jdmrgmmx.asm jdmrgss2.asm jcclrss2-64.asm jdclrss2-64.asm \ 7 | jdmrgss2-64.asm jcgryss2-64.asm jcgrymmx.asm jcgryss2.asm CMakeLists.txt 8 | 9 | if SIMD_X86_64 10 | 11 | libsimd_la_SOURCES = jsimd_x86_64.c \ 12 | jsimd.h jsimdcfg.inc.h \ 13 | jsimdext.inc jcolsamp.inc jdct.inc \ 14 | jfsseflt-64.asm jcgrass2-64.asm \ 15 | jccolss2-64.asm jdcolss2-64.asm \ 16 | jcsamss2-64.asm jdsamss2-64.asm jdmerss2-64.asm \ 17 | jcqnts2i-64.asm jfss2fst-64.asm jfss2int-64.asm \ 18 | jiss2red-64.asm jiss2int-64.asm jiss2fst-64.asm \ 19 | jcqnts2f-64.asm jiss2flt-64.asm 20 | 21 | jccolss2-64.lo: jcclrss2-64.asm 22 | jdcolss2-64.lo: jdclrss2-64.asm 23 | jcgrass2-64.lo: jcgryss2-64.asm 24 | jdmerss2-64.lo: jdmrgss2-64.asm 25 | endif 26 | 27 | if SIMD_I386 28 | 29 | libsimd_la_SOURCES = jsimd_i386.c \ 30 | jsimd.h jsimdcfg.inc.h \ 31 | jsimdext.inc jcolsamp.inc jdct.inc \ 32 | jsimdcpu.asm \ 33 | jccolmmx.asm jdcolmmx.asm jcgrammx.asm \ 34 | jcsammmx.asm jdsammmx.asm jdmermmx.asm \ 35 | jcqntmmx.asm jfmmxfst.asm jfmmxint.asm \ 36 | jimmxred.asm jimmxint.asm jimmxfst.asm \ 37 | jcqnt3dn.asm jf3dnflt.asm ji3dnflt.asm \ 38 | jcqntsse.asm jfsseflt.asm jisseflt.asm \ 39 | jccolss2.asm jdcolss2.asm jcgrass2.asm \ 40 | jcsamss2.asm jdsamss2.asm jdmerss2.asm \ 41 | jcqnts2i.asm jfss2fst.asm jfss2int.asm \ 42 | jiss2red.asm jiss2int.asm jiss2fst.asm \ 43 | jcqnts2f.asm jiss2flt.asm 44 | 45 | jccolmmx.lo: jcclrmmx.asm 46 | jcgrammx.lo: jcgrymmx.asm 47 | jccolss2.lo: jcclrss2.asm 48 | jcgrass2.lo: jcgryss2.asm 49 | jdcolmmx.lo: jdclrmmx.asm 50 | jdcolss2.lo: jdclrss2.asm 51 | jdmermmx.lo: jdmrgmmx.asm 52 | jdmerss2.lo: jdmrgss2.asm 53 | endif 54 | 55 | if SIMD_ARM 56 | 57 | libsimd_la_SOURCES = jsimd_arm.c jsimd_arm_neon.S 58 | 59 | endif 60 | 61 | AM_CPPFLAGS = -I$(top_srcdir) 62 | 63 | .asm.lo: 64 | $(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@ 65 | 66 | jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h 67 | $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) "^[\;%]|^\ %" | sed 's%_cpp_protection_%%' | sed 's@% define@%define@g' > $@ 68 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/simd/jsimdcpu.asm: -------------------------------------------------------------------------------- 1 | ; 2 | ; jsimdcpu.asm - SIMD instruction support check 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 | ; 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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -DPIC|-fPIC|-fpic|-Kpic|-KPIC) 9 | if [ "$pic" != "yes" ] ; then 10 | command="$command -DPIC" 11 | pic=yes 12 | fi 13 | ;; 14 | -f|-fbin|-faout|-faoutb|-fcoff|-felf|-felf64|-fas86| \ 15 | -fobj|-fwin32|-fwin64|-frdf|-fieee|-fmacho|-fmacho64) 16 | # it's a file format specifier for nasm. 17 | command="$command $1" 18 | ;; 19 | -f*) 20 | # maybe a code-generation flag for gcc. 21 | ;; 22 | -[Ii]*) 23 | incdir=`echo "$1" | sed 's/^-[Ii]//'` 24 | if [ "x$incdir" = x -a "x$2" != x ] ; then 25 | case "$2" in 26 | -*) ;; 27 | *) incdir="$2"; shift;; 28 | esac 29 | fi 30 | if [ "x$incdir" != x ] ; then 31 | # In the case of NASM, the trailing slash is necessary. 32 | incdir=`echo "$incdir" | sed 's%/*$%/%'` 33 | command="$command -I$incdir" 34 | fi 35 | ;; 36 | -o*) 37 | o_opt=yes 38 | command="$command $1" 39 | ;; 40 | *.asm) 41 | infile=$1 42 | command="$command $1" 43 | ;; 44 | *) 45 | command="$command $1" 46 | ;; 47 | esac 48 | shift 49 | done 50 | if [ "$o_opt" != yes ] ; then 51 | # By default, NASM creates an output file 52 | # in the same directory as the input file. 53 | outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o" 54 | command="$command $outfile" 55 | fi 56 | echo $command 57 | exec $command 58 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimg.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimg.bmp -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgari.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgari.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgari.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgari.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgcrop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgcrop.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt-nosimd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt-nosimd.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgflt.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst100.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst100.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_2.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_2.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_4.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_4.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_8.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgfst1_8.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimggray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimggray.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgint.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgint.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgint.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgint.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_2.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_2.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_4.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_4.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_8.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgint1_8.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testimgp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testimgp.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testorig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testorig.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/testorig.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/testorig.ppm -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/tjbench-libjpeg62: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/jni/tjbench-libjpeg62 -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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; 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; 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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/win/config.h.in: -------------------------------------------------------------------------------- 1 | #define VERSION "@VERSION@" 2 | #define BUILD "@BUILD@" 3 | #define PACKAGE_NAME "@CMAKE_PROJECT_NAME@" 4 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | 9 | #define HAVE_PROTOTYPES 10 | #define HAVE_UNSIGNED_CHAR 11 | #define HAVE_UNSIGNED_SHORT 12 | /* #define void char */ 13 | /* #define const */ 14 | #undef CHAR_IS_UNSIGNED 15 | #define HAVE_STDDEF_H 16 | #define HAVE_STDLIB_H 17 | #undef NEED_BSD_STRINGS 18 | #undef NEED_SYS_TYPES_H 19 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */ 20 | #undef NEED_SHORT_EXTERNAL_NAMES 21 | #undef INCOMPLETE_TYPES_BROKEN 22 | 23 | /* Define "boolean" as unsigned char, not int, per Windows custom */ 24 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 25 | typedef unsigned char boolean; 26 | #endif 27 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 28 | 29 | /* Define "INT32" as int, not long, per Windows custom */ 30 | #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */ 31 | typedef short INT16; 32 | typedef signed int INT32; 33 | #endif 34 | #define XMD_H /* prevent jmorecfg.h from redefining it */ 35 | 36 | #ifndef INLINE 37 | #if defined(__GNUC__) 38 | #define INLINE __attribute__((always_inline)) 39 | #elif defined(_MSC_VER) 40 | #define INLINE __forceinline 41 | #else 42 | #define INLINE 43 | #endif 44 | #endif 45 | 46 | #ifdef JPEG_INTERNALS 47 | 48 | #undef RIGHT_SHIFT_IS_UNSIGNED 49 | 50 | #endif /* JPEG_INTERNALS */ 51 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/jni/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 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/android-support-v4.jar -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/cjpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/cjpeg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/djpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/djpeg -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/jpegtran: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/jpegtran -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/libjpegbither.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/libjpegbither.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/rdjpgcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/rdjpgcom -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/tjbench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/tjbench -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/tjunittest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/tjunittest -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/wrjpgcom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/libs/armeabi/wrjpgcom -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/menu/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | libjpeg.turbo 5 | Hello world! 6 | Settings 7 | 8 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/libjpeg-turbo/src/com/example/libjpeg/turbo/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/libjpeg-turbo/src/com/example/libjpeg/turbo/MainActivity.java -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | use-libjpeg-trubo-adnroid 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/assets/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/assets/test.jpg -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/classes.dex -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/dexedLibs/android-support-v4-be90f71c43c14da6d28afcbd1be2f22f.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/dexedLibs/android-support-v4-be90f71c43c14da6d28afcbd1be2f22f.jar -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/resources.ap_ -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/bin/use-libjpeg-trubo-adnroid.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/bin/use-libjpeg-trubo-adnroid.apk -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/gen/com/example/testjpg/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.example.testjpg; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/gen/com/example/testjpg/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.example.testjpg; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class drawable { 14 | public static final int ic_launcher=0x7f020000; 15 | } 16 | public static final class string { 17 | public static final int app_name=0x7f030000; 18 | } 19 | public static final class style { 20 | /** 21 | Base application theme, dependent on API level. This theme is replaced 22 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 23 | 24 | 25 | Theme customizations available in newer API levels can go in 26 | res/values-vXX/styles.xml, while customizations related to 27 | backward-compatibility can go here. 28 | 29 | 30 | Base application theme for API 11+. This theme completely replaces 31 | AppBaseTheme from res/values/styles.xml on API 11+ devices. 32 | 33 | API 11 theme customizations can go here. 34 | 35 | Base application theme for API 14+. This theme completely replaces 36 | AppBaseTheme from BOTH res/values/styles.xml and 37 | res/values-v11/styles.xml on API 14+ devices. 38 | 39 | API 14 theme customizations can go here. 40 | */ 41 | public static final int AppBaseTheme=0x7f040000; 42 | /** Application theme. 43 | All customizations that are NOT specific to a particular API-level can go here. 44 | */ 45 | public static final int AppTheme=0x7f040001; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/gen/com/example/testlibjpeg/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.example.testlibjpeg; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/gen/com/example/testlibjpeg/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.example.testlibjpeg; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class drawable { 14 | public static final int ic_launcher=0x7f020000; 15 | } 16 | public static final class string { 17 | public static final int app_name=0x7f030000; 18 | } 19 | public static final class style { 20 | /** 21 | Base application theme, dependent on API level. This theme is replaced 22 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 23 | 24 | 25 | Theme customizations available in newer API levels can go in 26 | res/values-vXX/styles.xml, while customizations related to 27 | backward-compatibility can go here. 28 | 29 | 30 | Base application theme for API 11+. This theme completely replaces 31 | AppBaseTheme from res/values/styles.xml on API 11+ devices. 32 | 33 | API 11 theme customizations can go here. 34 | 35 | Base application theme for API 14+. This theme completely replaces 36 | AppBaseTheme from BOTH res/values/styles.xml and 37 | res/values-v11/styles.xml on API 14+ devices. 38 | 39 | API 14 theme customizations can go here. 40 | */ 41 | public static final int AppBaseTheme=0x7f040000; 42 | /** Application theme. 43 | All customizations that are NOT specific to a particular API-level can go here. 44 | */ 45 | public static final int AppTheme=0x7f040001; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2009 The Android Open Source Project 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 | # 15 | 16 | 17 | # Copyright 2014 http://Bither.net 18 | # 19 | # Licensed under the Apache License, Version 2.0 (the "License"); 20 | # you may not use this file except in compliance with the License. 21 | # You may obtain a copy of the License at 22 | # 23 | # http://www.apache.org/licenses/LICENSE-2.0 24 | # 25 | # Unless required by applicable law or agreed to in writing, software 26 | # distributed under the License is distributed on an "AS IS" BASIS, 27 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 28 | # See the License for the specific language governing permissions and 29 | # limitations under the License. 30 | 31 | LOCAL_PATH := $(call my-dir) 32 | 33 | 34 | #jpeg-turbo 35 | include $(CLEAR_VARS) 36 | LOCAL_MODULE := libjpegbither 37 | LOCAL_SRC_FILES := libjpegbither.so 38 | include $(PREBUILT_SHARED_LIBRARY) 39 | 40 | 41 | include $(CLEAR_VARS) 42 | LOCAL_MODULE := bitherjni 43 | LOCAL_SRC_FILES := bitherlibjni.c 44 | LOCAL_SHARED_LIBRARIES := libjpegbither 45 | LOCAL_LDLIBS := -ljnigraphics -llog 46 | LOCAL_C_INCLUDES := $(LOCAL_PATH) \ 47 | $(LOCAL_PATH)/libjpeg-turbo \ 48 | $(LOCAL_PATH)/libjpeg-turbo/android 49 | include $(BUILD_SHARED_LIBRARY) -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/README.md: -------------------------------------------------------------------------------- 1 | Buid libjpeg-turbo-android-lib 2 | ================== 3 | 4 | 1.To get started, ensure you have the latest NDK 5 | You must configure the path of JDK and Android SDK. 6 | 7 | echo "export ANDROID_HOME='Your android ndk path'" >> ~/.bash_profile 8 | 9 | source ~/.bash_profile 10 | 11 | 12 | 2.Build libjpeg-turbo.so 13 | 14 | cd ../libjpeg-turbo-android/libjpeg-turbo/jni 15 | 16 | ndk-buld 17 | 18 | 3.You can get libjpegpi.so in 19 | 20 | ../libjpeg-turbo-android/libjpeg-turbo/libs/armeabi 21 | 22 | 23 | 4.Copy libjpegpi.so to ../bither-android-lib/libjpeg-turbo-android/use-libjpeg-trubo-adnroid/jni 24 | 25 | cd ../bither-android-lib/libjpeg-turbo-android/use-libjpeg-trubo-adnroid/jni 26 | 27 | ndk-build 28 | 29 | 5.You can get libjpegpi.so and libpijni.so 30 | 31 | 32 | 6.Use libjpeg-turbo in java 33 | 34 | static { 35 | 36 | System.loadLibrary("jpegpi"); 37 | 38 | System.loadLibrary("pijni"); 39 | 40 | } 41 | and you must use class of "com.pi.common.util.NativeUtil" 42 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/libjpeg-turbo/android/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated from jconfig.h.in by configure. */ 2 | /* Version ID for the JPEG library. 3 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 4 | */ 5 | #define JPEG_LIB_VERSION 62 6 | 7 | /* Support arithmetic encoding */ 8 | #define C_ARITH_CODING_SUPPORTED 1 9 | 10 | /* Support arithmetic decoding */ 11 | #define D_ARITH_CODING_SUPPORTED 1 12 | 13 | /* Define if your compiler supports prototypes */ 14 | #define HAVE_PROTOTYPES 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_STDDEF_H 1 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_STDLIB_H 1 21 | 22 | /* Define to 1 if the system has the type `unsigned char'. */ 23 | #define HAVE_UNSIGNED_CHAR 1 24 | 25 | /* Define to 1 if the system has the type `unsigned short'. */ 26 | #define HAVE_UNSIGNED_SHORT 1 27 | 28 | /* Define if you want use complete types */ 29 | /* #undef INCOMPLETE_TYPES_BROKEN */ 30 | 31 | /* Define if you have BSD-like bzero and bcopy */ 32 | /* #undef NEED_BSD_STRINGS */ 33 | 34 | /* Define if you need short function names */ 35 | /* #undef NEED_SHORT_EXTERNAL_NAMES */ 36 | 37 | /* Define if you have sys/types.h */ 38 | #define NEED_SYS_TYPES_H 1 39 | 40 | /* Define if shift is unsigned */ 41 | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 42 | 43 | /* Use accelerated SIMD routines. */ 44 | #define WITH_SIMD 1 45 | 46 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 47 | #ifndef __CHAR_UNSIGNED__ 48 | /* # undef __CHAR_UNSIGNED__ */ 49 | #endif 50 | 51 | /* Define to empty if `const' does not conform to ANSI C. */ 52 | /* #undef const */ 53 | 54 | /* Define to `__inline__' or `__inline' if that's what the C compiler 55 | calls it, or to nothing if 'inline' is not supported under any name. */ 56 | #ifndef __cplusplus 57 | /* #undef inline */ 58 | #endif 59 | 60 | /* Define to `unsigned int' if does not define. */ 61 | /* #undef size_t */ 62 | 63 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/libjpeg-turbo/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated from jconfig.h.in by configure. */ 2 | /* Version ID for the JPEG library. 3 | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 4 | */ 5 | #define JPEG_LIB_VERSION 62 6 | 7 | /* Support arithmetic encoding */ 8 | #define C_ARITH_CODING_SUPPORTED 1 9 | 10 | /* Support arithmetic decoding */ 11 | #define D_ARITH_CODING_SUPPORTED 1 12 | 13 | /* Define if your compiler supports prototypes */ 14 | #define HAVE_PROTOTYPES 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_STDDEF_H 1 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_STDLIB_H 1 21 | 22 | /* Define to 1 if the system has the type `unsigned char'. */ 23 | #define HAVE_UNSIGNED_CHAR 1 24 | 25 | /* Define to 1 if the system has the type `unsigned short'. */ 26 | #define HAVE_UNSIGNED_SHORT 1 27 | 28 | /* Define if you want use complete types */ 29 | /* #undef INCOMPLETE_TYPES_BROKEN */ 30 | 31 | /* Define if you have BSD-like bzero and bcopy */ 32 | /* #undef NEED_BSD_STRINGS */ 33 | 34 | /* Define if you need short function names */ 35 | /* #undef NEED_SHORT_EXTERNAL_NAMES */ 36 | 37 | /* Define if you have sys/types.h */ 38 | #define NEED_SYS_TYPES_H 1 39 | 40 | /* Define if shift is unsigned */ 41 | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 42 | 43 | /* Use accelerated SIMD routines. */ 44 | #define WITH_SIMD 1 45 | 46 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 47 | #ifndef __CHAR_UNSIGNED__ 48 | /* # undef __CHAR_UNSIGNED__ */ 49 | #endif 50 | 51 | /* Define to empty if `const' does not conform to ANSI C. */ 52 | /* #undef const */ 53 | 54 | /* Define to `__inline__' or `__inline' if that's what the C compiler 55 | calls it, or to nothing if 'inline' is not supported under any name. */ 56 | #ifndef __cplusplus 57 | /* #undef inline */ 58 | #endif 59 | 60 | #define INLINE inline 61 | 62 | /* Define to `unsigned int' if does not define. */ 63 | /* #undef size_t */ 64 | 65 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/libjpeg-turbo/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-2010, Thomas G. Lane, Guido Vollbeding. 5 | * Copyright (C) 2010, D. R. Commander. 6 | * This file is part of the Independent JPEG Group's software. 7 | * For conditions of distribution and use, see the accompanying README file. 8 | * 9 | * This file contains software version identification. 10 | */ 11 | 12 | 13 | #if JPEG_LIB_VERSION >= 80 14 | 15 | #define JVERSION "8b 16-May-2010" 16 | 17 | #define JCOPYRIGHT "Copyright (C) 2010, Thomas G. Lane, Guido Vollbeding" 18 | 19 | #elif JPEG_LIB_VERSION >= 70 20 | 21 | #define JVERSION "7 27-Jun-2009" 22 | 23 | #define JCOPYRIGHT "Copyright (C) 2009, Thomas G. Lane, Guido Vollbeding" 24 | 25 | #else 26 | 27 | #define JVERSION "6b 27-Mar-1998" 28 | 29 | #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" 30 | 31 | #endif 32 | 33 | #define LJTCOPYRIGHT "Copyright (C) 1999-2006 MIYASAKA Masaru\n" \ 34 | "Copyright (C) 2009 Pierre Ossman for Cendio AB\n" \ 35 | "Copyright (C) 2009-2011 D. R. Commander\n" \ 36 | "Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)" 37 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/jni/libjpegbither.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/jni/libjpegbither.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/libs/android-support-v4.jar -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/libs/armeabi/libbitherjni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/libs/armeabi/libbitherjni.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/libs/armeabi/libjpegbither.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/libs/armeabi/libjpegbither.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libbitherjni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libbitherjni.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libjpegbither.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libjpegbither.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libjpegpi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libjpegpi.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libpijni.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/libpijni.so -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/bitherjni/bitherlibjni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/bitherjni/bitherlibjni.o -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/pijni/pilibjni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/pijni/pilibjni.o -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/piutil/crypt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/obj/local/armeabi/objs/piutil/crypt.o -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-20 15 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bither/bither-android-lib/845b6e03e9d04c7d2c360b1c7d16e495d870ec9a/libjpeg-turbo-android/use-libjpeg-turbo-android/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | testLibjpeg 4 | 5 | 6 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/src/com/example/testjpg/MainActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 http://Bither.net 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.testjpg; 18 | 19 | import java.io.File; 20 | import java.io.FileOutputStream; 21 | import java.io.IOException; 22 | import java.io.InputStream; 23 | 24 | import net.bither.util.NativeUtil; 25 | 26 | import android.app.Activity; 27 | import android.graphics.Bitmap; 28 | import android.graphics.Bitmap.CompressFormat; 29 | import android.graphics.BitmapFactory; 30 | import android.os.Bundle; 31 | 32 | 33 | public class MainActivity extends Activity { 34 | 35 | @Override 36 | protected void onCreate(Bundle savedInstanceState) { 37 | super.onCreate(savedInstanceState); 38 | testJpeg(); 39 | } 40 | 41 | private void testJpeg() { 42 | new Thread(new Runnable() { 43 | public void run() { 44 | try { 45 | int quality = 90; 46 | InputStream in = getResources().getAssets() 47 | .open("test.jpg"); 48 | Bitmap bit = BitmapFactory.decodeStream(in); 49 | File dirFile = getExternalCacheDir(); 50 | if (!dirFile.exists()) { 51 | dirFile.mkdirs(); 52 | } 53 | File originalFile = new File(dirFile, "original.jpg"); 54 | FileOutputStream fileOutputStream = new FileOutputStream( 55 | originalFile); 56 | bit.compress(CompressFormat.JPEG, quality, fileOutputStream); 57 | File jpegTrueFile = new File(dirFile, "jpegtrue.jpg"); 58 | File jpegFalseFile = new File(dirFile, "jpegfalse.jpg"); 59 | NativeUtil.compressBitmap(bit, quality, 60 | jpegTrueFile.getAbsolutePath(), true); 61 | NativeUtil.compressBitmap(bit, quality, 62 | jpegFalseFile.getAbsolutePath(), false); 63 | } catch (IOException e) { 64 | // TODO Auto-generated catch block 65 | e.printStackTrace(); 66 | } 67 | 68 | } 69 | }).start(); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /libjpeg-turbo-android/use-libjpeg-turbo-android/src/net/bither/util/NativeUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 http://Bither.net 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package net.bither.util; 18 | 19 | import android.graphics.Bitmap; 20 | import android.graphics.Bitmap.Config; 21 | import android.graphics.Canvas; 22 | import android.graphics.Rect; 23 | import android.util.Log; 24 | 25 | public class NativeUtil { 26 | private static int DEFAULT_QUALITY = 95; 27 | 28 | public static void compressBitmap(Bitmap bit, String fileName, 29 | boolean optimize) { 30 | compressBitmap(bit, DEFAULT_QUALITY, fileName, optimize); 31 | 32 | } 33 | 34 | public static void compressBitmap(Bitmap bit, int quality, String fileName, 35 | boolean optimize) { 36 | Log.d("native", "compress of native"); 37 | if (bit.getConfig() != Config.ARGB_8888) { 38 | Bitmap result = null; 39 | 40 | result = Bitmap.createBitmap(bit.getWidth(), bit.getHeight(), 41 | Config.ARGB_8888); 42 | Canvas canvas = new Canvas(result); 43 | Rect rect = new Rect(0, 0, bit.getWidth(), bit.getHeight()); 44 | canvas.drawBitmap(bit, null, rect, null); 45 | saveBitmap(result, quality, fileName, optimize); 46 | result.recycle(); 47 | } else { 48 | saveBitmap(bit, quality, fileName, optimize); 49 | } 50 | 51 | } 52 | 53 | private static void saveBitmap(Bitmap bit, int quality, String fileName, 54 | boolean optimize) { 55 | compressBitmap(bit, bit.getWidth(), bit.getHeight(), quality, 56 | fileName.getBytes(), optimize); 57 | 58 | } 59 | 60 | private static native String compressBitmap(Bitmap bit, int w, int h, 61 | int quality, byte[] fileNameBytes, boolean optimize); 62 | 63 | static { 64 | System.loadLibrary("jpegbither"); 65 | System.loadLibrary("bitherjni"); 66 | 67 | } 68 | 69 | } 70 | --------------------------------------------------------------------------------