laag-libjpeg-turbo 1.5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +57 -0
- data/LICENSE.txt +139 -0
- data/README.org +34 -0
- data/ext/laag/libjpeg-turbo/extconf.rb +16 -0
- data/laag-libjpeg-turbo.gemspec +20 -0
- data/lib/laag/libjpeg-turbo.rb +29 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/.gitignore +14 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/.travis.yml +131 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/BUILDING.md +964 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/CMakeLists.txt +962 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/ChangeLog.md +1151 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/LICENSE.md +139 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/Makefile.am +794 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/README.ijg +279 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/README.md +341 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/acinclude.m4 +287 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/appveyor.yml +57 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/bmp.c +341 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/bmp.h +42 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cderror.h +136 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cdjpeg.c +144 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cdjpeg.h +153 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/change.log +315 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/ci/keys.enc +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cjpeg.1 +351 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cjpeg.c +644 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cmakescripts/cmake_uninstall.cmake.in +24 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/cmakescripts/testclean.cmake +39 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/coderules.txt +78 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/configure.ac +616 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/djpeg.1 +293 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/djpeg.c +782 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/annotated.html +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/bc_s.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/bdwn.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/classes.html +106 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/closed.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/doxygen-extra.css +3 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/doxygen.css +1184 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/doxygen.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/dynsections.js +97 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2blank.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2cl.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2doc.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2folderclosed.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2folderopen.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2lastnode.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2link.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2mlastnode.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2mnode.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2mo.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2node.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2ns.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2plastnode.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2pnode.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2splitbar.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/ftv2vertline.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/functions.html +134 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/functions_vars.html +134 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/group___turbo_j_p_e_g.html +2446 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/index.html +90 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/jquery.js +8 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/modules.html +95 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/nav_f.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/nav_g.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/nav_h.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/open.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_63.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_63.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_64.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_64.js +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_68.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_68.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_6e.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_6e.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_6f.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_6f.js +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_72.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_72.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_74.js +89 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_77.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_77.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_78.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_78.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_79.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/all_79.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/classes_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/classes_74.js +6 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/close.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/enums_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/enums_74.js +7 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/enumvalues_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/enumvalues_74.js +34 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/functions_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/functions_74.js +28 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/groups_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/groups_74.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/mag_sel.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/nomatches.html +12 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/search.css +271 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/search.js +809 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/search_l.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/search_m.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/search_r.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/typedefs_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/typedefs_74.js +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_63.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_63.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_64.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_64.js +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_68.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_68.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_6e.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_6e.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_6f.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_6f.js +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_72.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_72.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_74.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_74.js +9 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_77.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_77.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_78.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_78.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_79.html +26 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/search/variables_79.js +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/structtjregion.html +186 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/structtjscalingfactor.html +148 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/structtjtransform.html +212 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/sync_off.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/sync_on.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/tab_a.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/tab_b.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/tab_h.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/tab_s.png +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doc/html/tabs.css +60 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doxygen-extra.css +3 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/doxygen.config +16 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/example.c +433 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jaricom.c +156 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/CMakeLists.txt +57 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/MANIFEST.MF +2 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/Makefile.am +75 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/README +52 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/TJBench.java +926 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/TJExample.java +362 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/TJUnitTest.java +959 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/allclasses-frame.html +24 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/allclasses-noframe.html +24 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/constant-values.html +479 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/deprecated-list.html +248 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/help-doc.html +206 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/index-all.html +980 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/index.html +70 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJ.html +1254 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html +922 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJCustomFilter.html +237 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html +1235 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJException.html +287 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJScalingFactor.html +333 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJTransform.html +706 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/TJTransformer.html +417 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/YUVImage.html +761 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/package-frame.html +31 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/package-summary.html +198 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/package-tree.html +156 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/overview-tree.html +160 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/package-list +1 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/resources/background.gif +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/resources/tab.gif +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/resources/titlebar.gif +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/resources/titlebar_end.gif +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/serialized-form.html +159 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/doc/stylesheet.css +474 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJ.java +513 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJCompressor.java +658 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJCustomFilter.java +76 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJDecompressor.java +909 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJException.java +53 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJLoader.java.in +35 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl +59 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJScalingFactor.java +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJTransform.java +208 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/TJTransformer.java +163 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/YUVImage.java +443 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org_libjpegturbo_turbojpeg_TJ.h +129 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org_libjpegturbo_turbojpeg_TJCompressor.h +101 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org_libjpegturbo_turbojpeg_TJDecompressor.h +101 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/java/org_libjpegturbo_turbojpeg_TJTransformer.h +29 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcapimin.c +295 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcapistd.c +162 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcarith.c +928 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jccoefct.c +449 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jccolext.c +148 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jccolor.c +719 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcdctmgr.c +721 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jchuff.c +1091 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jchuff.h +43 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcinit.c +77 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcmainct.c +162 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcmarker.c +665 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcmaster.c +639 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcomapi.c +109 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jconfig.h.in +73 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jconfig.txt +143 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jconfigint.h.in +17 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcparam.c +542 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcphuff.c +834 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcprepct.c +357 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcsample.c +539 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jcstest.c +126 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jctrans.c +402 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdapimin.c +407 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdapistd.c +637 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdarith.c +769 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdatadst-tj.c +202 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdatadst.c +293 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdatasrc-tj.c +191 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdatasrc.c +295 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdcoefct.c +693 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdcoefct.h +82 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdcol565.c +384 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdcolext.c +143 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdcolor.c +897 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdct.h +208 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jddctmgr.c +352 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdhuff.c +822 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdhuff.h +234 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdinput.c +405 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmainct.c +456 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmainct.h +71 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmarker.c +1377 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmaster.c +736 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmaster.h +28 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmerge.c +627 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmrg565.c +356 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdmrgext.c +186 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdphuff.c +674 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdpostct.c +290 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdsample.c +517 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdsample.h +50 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdtrans.c +155 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jerror.c +251 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jerror.h +317 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jfdctflt.c +169 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jfdctfst.c +227 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jfdctint.c +286 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jidctflt.c +240 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jidctfst.c +371 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jidctint.c +2627 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jidctred.c +403 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jinclude.h +84 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jmemmgr.c +1183 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jmemnobs.c +115 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jmemsys.h +178 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jmorecfg.h +421 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpeg_nbits_table.h +4098 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpegcomp.h +31 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpegint.h +368 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpeglib.h +1122 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpegtran.1 +290 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jpegtran.c +551 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jquant1.c +857 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jquant2.c +1282 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jsimd.h +93 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jsimd_none.c +404 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jsimddct.h +74 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jstdhuff.c +135 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jutils.c +133 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/jversion.h +49 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/libjpeg.map.in +11 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/libjpeg.txt +3104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/CMakeLists.txt +1 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/Makefile.am +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/md5.c +340 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/md5.h +49 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/md5cmp.c +60 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/md5/md5hl.c +114 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdbmp.c +483 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdcolmap.c +254 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdgif.c +39 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdjpgcom.1 +63 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdjpgcom.c +510 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdppm.c +471 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdrle.c +389 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdswitch.c +424 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/rdtarga.c +503 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/Distribution.xml +24 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/License.rtf +20 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/ReadMe.txt +5 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/Welcome.rtf +17 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/deb-control.tmpl +31 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/libjpeg-turbo.nsi.in +162 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/libjpeg-turbo.spec.in +164 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/libjpeg.pc.in +10 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/libturbojpeg.pc.in +10 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/makecygwinpkg.in +42 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/makedpkg.in +82 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/makemacpkg.in +470 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/release/uninstall.in +112 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/sharedlib/CMakeLists.txt +73 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/CMakeLists.txt +81 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/Makefile.am +102 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolext-altivec.c +267 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolext-mmx.asm +476 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolext-sse2-64.asm +486 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolext-sse2.asm +503 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolor-altivec.c +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolor-mmx.asm +122 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolor-sse2-64.asm +121 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jccolor-sse2.asm +121 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgray-altivec.c +99 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgray-mmx.asm +115 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgray-sse2-64.asm +114 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgray-sse2.asm +114 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgryext-altivec.c +227 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgryext-mmx.asm +356 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgryext-sse2-64.asm +365 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcgryext-sse2.asm +384 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jchuff-sse2-64.asm +360 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jchuff-sse2.asm +426 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcolsamp.inc +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcsample-altivec.c +158 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcsample-mmx.asm +323 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcsample-sse2-64.asm +329 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcsample-sse2.asm +350 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jcsample.h +28 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolext-altivec.c +274 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolext-mmx.asm +404 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolext-sse2-64.asm +440 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolext-sse2.asm +459 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolor-altivec.c +96 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolor-mmx.asm +119 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolor-sse2-64.asm +119 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdcolor-sse2.asm +119 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdct.inc +27 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmerge-altivec.c +108 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmerge-mmx.asm +125 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmerge-sse2-64.asm +125 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmerge-sse2.asm +125 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmrgext-altivec.c +323 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmrgext-mmx.asm +463 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmrgext-sse2-64.asm +537 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdmrgext-sse2.asm +518 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdsample-altivec.c +392 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdsample-mmx.asm +736 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdsample-sse2-64.asm +670 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jdsample-sse2.asm +728 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctflt-3dn.asm +319 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctflt-sse-64.asm +357 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctflt-sse.asm +369 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctfst-altivec.c +156 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctfst-mmx.asm +396 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctfst-sse2-64.asm +391 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctfst-sse2.asm +403 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctint-altivec.c +262 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctint-mmx.asm +621 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctint-sse2-64.asm +621 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jfdctint-sse2.asm +633 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctflt-3dn.asm +451 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctflt-sse.asm +571 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctflt-sse2-64.asm +482 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctflt-sse2.asm +497 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctfst-altivec.c +257 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctfst-mmx.asm +499 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctfst-sse2-64.asm +491 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctfst-sse2.asm +501 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctint-altivec.c +359 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctint-mmx.asm +851 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctint-sse2-64.asm +847 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctint-sse2.asm +858 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctred-mmx.asm +705 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctred-sse2-64.asm +575 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jidctred-sse2.asm +593 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jpeg_nbits_table.inc +4097 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquant-3dn.asm +232 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquant-mmx.asm +273 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquant-sse.asm +210 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquantf-sse2-64.asm +157 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquantf-sse2.asm +170 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquanti-altivec.c +252 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquanti-sse2-64.asm +186 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jquanti-sse2.asm +199 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd.h +871 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_altivec.h +99 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_arm.c +728 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_arm64.c +803 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_arm64_neon.S +3425 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_arm_neon.S +2878 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_i386.c +1091 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_mips.c +1140 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_mips_dspr2.S +4486 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_mips_dspr2_asm.h +283 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_powerpc.c +852 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimd_x86_64.c +887 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimdcfg.inc.h +130 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimdcpu.asm +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/jsimdext.inc +375 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/simd/nasm_lt.sh +60 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/structure.txt +904 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/nightshot_iso_100.bmp +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/nightshot_iso_100.txt +25 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/testimgari.jpg +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/testimgint.jpg +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/testorig.jpg +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/testorig.ppm +4 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/testorig12.jpg +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/vgl_5674_0098.bmp +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/vgl_6434_0018a.bmp +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/testimages/vgl_6548_0026a.bmp +0 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjbench.c +1010 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjbenchtest.in +252 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjbenchtest.java.in +207 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjexampletest.in +150 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjunittest.c +734 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjutil.c +66 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/tjutil.h +47 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/transupp.c +1626 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/transupp.h +207 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/turbojpeg-jni.c +1166 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/turbojpeg-mapfile +56 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/turbojpeg-mapfile.jni +92 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/turbojpeg.c +2175 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/turbojpeg.h +1545 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/usage.txt +635 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jconfig.h.in +51 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jconfigint.h.in +13 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jpeg62-memsrcdst.def +106 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jpeg62.def +104 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jpeg7-memsrcdst.def +108 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jpeg7.def +106 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jpeg8.def +109 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/win/jsimdcfg.inc +94 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wizard.txt +211 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrbmp.c +494 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrgif.c +413 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrjpgcom.1 +103 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrjpgcom.c +592 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrppm.c +280 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrrle.c +308 -0
- data/vendor/github.com/libjpeg-turbo/libjpeg-turbo/wrtarga.c +261 -0
- metadata +509 -0
@@ -0,0 +1,964 @@
|
|
1
|
+
Un*x Platforms (including Mac and Cygwin)
|
2
|
+
=========================================
|
3
|
+
|
4
|
+
|
5
|
+
Build Requirements
|
6
|
+
------------------
|
7
|
+
|
8
|
+
- autoconf 2.56 or later
|
9
|
+
- automake 1.7 or later
|
10
|
+
- libtool 1.4 or later
|
11
|
+
* If using Xcode 4.3 or later on OS X, autoconf and automake are no longer
|
12
|
+
provided. The easiest way to obtain them is from
|
13
|
+
[MacPorts](http://www.MacPorts.org) or [Homebrew](http://brew.sh/).
|
14
|
+
|
15
|
+
- [NASM](http://www.nasm.us) or [YASM](http://yasm.tortall.net)
|
16
|
+
(if building x86 or x86-64 SIMD extensions)
|
17
|
+
* If using NASM, 0.98, or 2.01 or later is required for an x86 build (0.99
|
18
|
+
and 2.00 do not work properly with libjpeg-turbo's x86 SIMD code.)
|
19
|
+
* If using NASM, 2.00 or later is required for an x86-64 build.
|
20
|
+
* If using NASM, 2.07 or later (except 2.11.08) is required for an x86-64
|
21
|
+
Mac build (2.11.08 does not work properly with libjpeg-turbo's x86-64 SIMD
|
22
|
+
code when building macho64 objects.) NASM or YASM can be obtained from
|
23
|
+
[MacPorts](http://www.macports.org/) or [Homebrew](http://brew.sh/).
|
24
|
+
|
25
|
+
The binary RPMs released by the NASM project do not work on older Linux
|
26
|
+
systems, such as Red Hat Enterprise Linux 5. On such systems, you can easily
|
27
|
+
build and install NASM from a source RPM by downloading one of the SRPMs from
|
28
|
+
|
29
|
+
<http://www.nasm.us/pub/nasm/releasebuilds>
|
30
|
+
|
31
|
+
and executing the following as root:
|
32
|
+
|
33
|
+
ARCH=`uname -m`
|
34
|
+
rpmbuild --rebuild nasm-{version}.src.rpm
|
35
|
+
rpm -Uvh /usr/src/redhat/RPMS/$ARCH/nasm-{version}.$ARCH.rpm
|
36
|
+
|
37
|
+
NOTE: the NASM build will fail if texinfo is not installed.
|
38
|
+
|
39
|
+
- GCC v4.1 (or later) or Clang recommended for best performance
|
40
|
+
|
41
|
+
- If building the TurboJPEG Java wrapper, JDK or OpenJDK 1.5 or later is
|
42
|
+
required. Most modern Linux distributions, as well as Solaris 10 and later,
|
43
|
+
include JDK or OpenJDK. On OS X 10.5 and 10.6, it will be necessary to
|
44
|
+
install the Java Developer Package, which can be downloaded from
|
45
|
+
<http://developer.apple.com/downloads> (Apple ID required.) For other
|
46
|
+
systems, you can obtain the Oracle Java Development Kit from
|
47
|
+
<http://www.java.com>.
|
48
|
+
|
49
|
+
|
50
|
+
Out-of-Tree Builds
|
51
|
+
------------------
|
52
|
+
|
53
|
+
Binary objects, libraries, and executables are generated in the directory from
|
54
|
+
which `configure` is executed (the "binary directory"), and this directory need
|
55
|
+
not necessarily be the same as the libjpeg-turbo source directory. You can
|
56
|
+
create multiple independent binary directories, in which different versions of
|
57
|
+
libjpeg-turbo can be built from the same source tree using different compilers
|
58
|
+
or settings. In the sections below, *{build_directory}* refers to the binary
|
59
|
+
directory, whereas *{source_directory}* refers to the libjpeg-turbo source
|
60
|
+
directory. For in-tree builds, these directories are the same.
|
61
|
+
|
62
|
+
|
63
|
+
Build Procedure
|
64
|
+
---------------
|
65
|
+
|
66
|
+
The following procedure will build libjpeg-turbo on Unix and Unix-like systems.
|
67
|
+
(On Solaris, this generates a 32-bit build. See "Build Recipes" below for
|
68
|
+
64-bit build instructions.)
|
69
|
+
|
70
|
+
cd {source_directory}
|
71
|
+
autoreconf -fiv
|
72
|
+
cd {build_directory}
|
73
|
+
sh {source_directory}/configure [additional configure flags]
|
74
|
+
make
|
75
|
+
|
76
|
+
NOTE: Running autoreconf in the source directory is not necessary if building
|
77
|
+
libjpeg-turbo from one of the official release tarballs.
|
78
|
+
|
79
|
+
This will generate the following files under **.libs/**:
|
80
|
+
|
81
|
+
**libjpeg.a**<br>
|
82
|
+
Static link library for the libjpeg API
|
83
|
+
|
84
|
+
**libjpeg.so.{version}** (Linux, Unix)<br>
|
85
|
+
**libjpeg.{version}.dylib** (Mac)<br>
|
86
|
+
**cygjpeg-{version}.dll** (Cygwin)<br>
|
87
|
+
Shared library for the libjpeg API
|
88
|
+
|
89
|
+
By default, *{version}* is 62.2.0, 7.2.0, or 8.1.2, depending on whether
|
90
|
+
libjpeg v6b (default), v7, or v8 emulation is enabled. If using Cygwin,
|
91
|
+
*{version}* is 62, 7, or 8.
|
92
|
+
|
93
|
+
**libjpeg.so** (Linux, Unix)<br>
|
94
|
+
**libjpeg.dylib** (Mac)<br>
|
95
|
+
Development symlink for the libjpeg API
|
96
|
+
|
97
|
+
**libjpeg.dll.a** (Cygwin)<br>
|
98
|
+
Import library for the libjpeg API
|
99
|
+
|
100
|
+
**libturbojpeg.a**<br>
|
101
|
+
Static link library for the TurboJPEG API
|
102
|
+
|
103
|
+
**libturbojpeg.so.0.1.0** (Linux, Unix)<br>
|
104
|
+
**libturbojpeg.0.1.0.dylib** (Mac)<br>
|
105
|
+
**cygturbojpeg-0.dll** (Cygwin)<br>
|
106
|
+
Shared library for the TurboJPEG API
|
107
|
+
|
108
|
+
**libturbojpeg.so** (Linux, Unix)<br>
|
109
|
+
**libturbojpeg.dylib** (Mac)<br>
|
110
|
+
Development symlink for the TurboJPEG API
|
111
|
+
|
112
|
+
**libturbojpeg.dll.a** (Cygwin)<br>
|
113
|
+
Import library for the TurboJPEG API
|
114
|
+
|
115
|
+
|
116
|
+
### libjpeg v7 or v8 API/ABI Emulation
|
117
|
+
|
118
|
+
Add `--with-jpeg7` to the `configure` command line to build a version of
|
119
|
+
libjpeg-turbo that is API/ABI-compatible with libjpeg v7. Add `--with-jpeg8`
|
120
|
+
to the `configure` command to build a version of libjpeg-turbo that is
|
121
|
+
API/ABI-compatible with libjpeg v8. See [README.md](README.md) for more
|
122
|
+
information about libjpeg v7 and v8 emulation.
|
123
|
+
|
124
|
+
|
125
|
+
### In-Memory Source/Destination Managers
|
126
|
+
|
127
|
+
When using libjpeg v6b or v7 API/ABI emulation, add `--without-mem-srcdst` to
|
128
|
+
the `configure` command line to build a version of libjpeg-turbo that lacks the
|
129
|
+
`jpeg_mem_src()` and `jpeg_mem_dest()` functions. These functions were not
|
130
|
+
part of the original libjpeg v6b and v7 APIs, so removing them ensures strict
|
131
|
+
conformance with those APIs. See [README.md](README.md) for more information.
|
132
|
+
|
133
|
+
|
134
|
+
### Arithmetic Coding Support
|
135
|
+
|
136
|
+
Since the patent on arithmetic coding has expired, this functionality has been
|
137
|
+
included in this release of libjpeg-turbo. libjpeg-turbo's implementation is
|
138
|
+
based on the implementation in libjpeg v8, but it works when emulating libjpeg
|
139
|
+
v7 or v6b as well. The default is to enable both arithmetic encoding and
|
140
|
+
decoding, but those who have philosophical objections to arithmetic coding can
|
141
|
+
add `--without-arith-enc` or `--without-arith-dec` to the `configure` command
|
142
|
+
line to disable encoding or decoding (respectively.)
|
143
|
+
|
144
|
+
|
145
|
+
### TurboJPEG Java Wrapper
|
146
|
+
|
147
|
+
Add `--with-java` to the `configure` command line to incorporate an optional
|
148
|
+
Java Native Interface (JNI) wrapper into the TurboJPEG shared library and build
|
149
|
+
the Java front-end classes to support it. This allows the TurboJPEG shared
|
150
|
+
library to be used directly from Java applications. See
|
151
|
+
[java/README](java/README) for more details.
|
152
|
+
|
153
|
+
You can set the `JAVAC`, `JAR`, and `JAVA` configure variables to specify
|
154
|
+
alternate commands for javac, jar, and java (respectively.) You can also
|
155
|
+
set the `JAVACFLAGS` configure variable to specify arguments that should be
|
156
|
+
passed to the Java compiler when building the TurboJPEG classes, and
|
157
|
+
`JNI_CFLAGS` to specify arguments that should be passed to the C compiler when
|
158
|
+
building the JNI wrapper. Run `configure --help` for more details.
|
159
|
+
|
160
|
+
|
161
|
+
Build Recipes
|
162
|
+
-------------
|
163
|
+
|
164
|
+
|
165
|
+
### 32-bit Build on 64-bit Linux
|
166
|
+
|
167
|
+
Add
|
168
|
+
|
169
|
+
--host i686-pc-linux-gnu CFLAGS='-O3 -m32' LDFLAGS=-m32
|
170
|
+
|
171
|
+
to the `configure` command line.
|
172
|
+
|
173
|
+
|
174
|
+
### 64-bit Build on 64-bit OS X
|
175
|
+
|
176
|
+
Add
|
177
|
+
|
178
|
+
--host x86_64-apple-darwin NASM=/opt/local/bin/nasm
|
179
|
+
|
180
|
+
to the `configure` command line. NASM 2.07 or later from MacPorts or Homebrew
|
181
|
+
must be installed. If using Homebrew, then replace `/opt/local` with
|
182
|
+
`/usr/local`.
|
183
|
+
|
184
|
+
|
185
|
+
### 32-bit Build on 64-bit OS X
|
186
|
+
|
187
|
+
Add
|
188
|
+
|
189
|
+
--host i686-apple-darwin CFLAGS='-O3 -m32' LDFLAGS=-m32
|
190
|
+
|
191
|
+
to the `configure` command line.
|
192
|
+
|
193
|
+
|
194
|
+
### 64-bit Backward-Compatible Build on 64-bit OS X
|
195
|
+
|
196
|
+
Add
|
197
|
+
|
198
|
+
--host x86_64-apple-darwin NASM=/opt/local/bin/nasm \
|
199
|
+
CFLAGS='-mmacosx-version-min=10.5 -O3' \
|
200
|
+
LDFLAGS='-mmacosx-version-min=10.5'
|
201
|
+
|
202
|
+
to the `configure` command line. NASM 2.07 or later from MacPorts or Homebrew
|
203
|
+
must be installed. If using Homebrew, then replace `/opt/local` with
|
204
|
+
`/usr/local`.
|
205
|
+
|
206
|
+
|
207
|
+
### 32-bit Backward-Compatible Build on OS X
|
208
|
+
|
209
|
+
Add
|
210
|
+
|
211
|
+
--host i686-apple-darwin \
|
212
|
+
CFLAGS='-mmacosx-version-min=10.5 -O3 -m32' \
|
213
|
+
LDFLAGS='-mmacosx-version-min=10.5 -m32'
|
214
|
+
|
215
|
+
to the `configure` command line.
|
216
|
+
|
217
|
+
|
218
|
+
### 64-bit Build on 64-bit Solaris
|
219
|
+
|
220
|
+
Add
|
221
|
+
|
222
|
+
--host x86_64-pc-solaris CFLAGS='-O3 -m64' LDFLAGS=-m64
|
223
|
+
|
224
|
+
to the `configure` command line.
|
225
|
+
|
226
|
+
|
227
|
+
### 32-bit Build on 64-bit FreeBSD
|
228
|
+
|
229
|
+
Add
|
230
|
+
|
231
|
+
--host i386-unknown-freebsd CFLAGS='-O3 -m32' LDFLAGS=-m32
|
232
|
+
|
233
|
+
to the `configure` command line. NASM 2.07 or later from FreeBSD ports must be
|
234
|
+
installed.
|
235
|
+
|
236
|
+
|
237
|
+
### Oracle Solaris Studio
|
238
|
+
|
239
|
+
Add
|
240
|
+
|
241
|
+
CC=cc
|
242
|
+
|
243
|
+
to the `configure` command line. libjpeg-turbo will automatically be built
|
244
|
+
with the maximum optimization level (-xO5) unless you override `CFLAGS`.
|
245
|
+
|
246
|
+
To build a 64-bit version of libjpeg-turbo using Oracle Solaris Studio, add
|
247
|
+
|
248
|
+
--host x86_64-pc-solaris CC=cc CFLAGS='-xO5 -m64' LDFLAGS=-m64
|
249
|
+
|
250
|
+
to the `configure` command line.
|
251
|
+
|
252
|
+
|
253
|
+
### MinGW Build on Cygwin
|
254
|
+
|
255
|
+
Use CMake (see recipes below)
|
256
|
+
|
257
|
+
|
258
|
+
Building libjpeg-turbo for iOS
|
259
|
+
------------------------------
|
260
|
+
|
261
|
+
iOS platforms, such as the iPhone and iPad, use ARM processors, and all
|
262
|
+
currently supported models include NEON instructions. Thus, they can take
|
263
|
+
advantage of libjpeg-turbo's SIMD extensions to significantly accelerate JPEG
|
264
|
+
compression/decompression. This section describes how to build libjpeg-turbo
|
265
|
+
for these platforms.
|
266
|
+
|
267
|
+
|
268
|
+
### Additional build requirements
|
269
|
+
|
270
|
+
- For configurations that require [gas-preprocessor.pl]
|
271
|
+
(https://raw.githubusercontent.com/libjpeg-turbo/gas-preprocessor/master/gas-preprocessor.pl),
|
272
|
+
it should be installed in your `PATH`.
|
273
|
+
|
274
|
+
|
275
|
+
### ARMv7 (32-bit)
|
276
|
+
|
277
|
+
**gas-preprocessor.pl required**
|
278
|
+
|
279
|
+
The following scripts demonstrate how to build libjpeg-turbo to run on the
|
280
|
+
iPhone 3GS-4S/iPad 1st-3rd Generation and newer:
|
281
|
+
|
282
|
+
#### Xcode 4.2 and earlier (LLVM-GCC)
|
283
|
+
|
284
|
+
IOS_PLATFORMDIR=/Developer/Platforms/iPhoneOS.platform
|
285
|
+
IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
|
286
|
+
|
287
|
+
export host_alias=arm-apple-darwin10
|
288
|
+
export CC=${IOS_PLATFORMDIR}/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
|
289
|
+
export CFLAGS="-mfloat-abi=softfp -isysroot ${IOS_SYSROOT[0]} -O3 -march=armv7 -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -miphoneos-version-min=3.0"
|
290
|
+
|
291
|
+
cd {build_directory}
|
292
|
+
sh {source_directory}/configure [additional configure flags]
|
293
|
+
make
|
294
|
+
|
295
|
+
#### Xcode 4.3-4.6 (LLVM-GCC)
|
296
|
+
|
297
|
+
Same as above, but replace the first line with:
|
298
|
+
|
299
|
+
IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
|
300
|
+
|
301
|
+
#### Xcode 5 and later (Clang)
|
302
|
+
|
303
|
+
IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
|
304
|
+
IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
|
305
|
+
|
306
|
+
export host_alias=arm-apple-darwin10
|
307
|
+
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
|
308
|
+
export CFLAGS="-mfloat-abi=softfp -isysroot ${IOS_SYSROOT[0]} -O3 -arch armv7 -miphoneos-version-min=3.0"
|
309
|
+
export CCASFLAGS="$CFLAGS -no-integrated-as"
|
310
|
+
|
311
|
+
cd {build_directory}
|
312
|
+
sh {source_directory}/configure [additional configure flags]
|
313
|
+
make
|
314
|
+
|
315
|
+
|
316
|
+
### ARMv7s (32-bit)
|
317
|
+
|
318
|
+
**gas-preprocessor.pl required**
|
319
|
+
|
320
|
+
The following scripts demonstrate how to build libjpeg-turbo to run on the
|
321
|
+
iPhone 5/iPad 4th Generation and newer:
|
322
|
+
|
323
|
+
#### Xcode 4.5-4.6 (LLVM-GCC)
|
324
|
+
|
325
|
+
IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
|
326
|
+
IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
|
327
|
+
|
328
|
+
export host_alias=arm-apple-darwin10
|
329
|
+
export CC=${IOS_PLATFORMDIR}/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
|
330
|
+
export CFLAGS="-mfloat-abi=softfp -isysroot ${IOS_SYSROOT[0]} -O3 -march=armv7s -mcpu=swift -mtune=swift -mfpu=neon -miphoneos-version-min=6.0"
|
331
|
+
|
332
|
+
cd {build_directory}
|
333
|
+
sh {source_directory}/configure [additional configure flags]
|
334
|
+
make
|
335
|
+
|
336
|
+
#### Xcode 5 and later (Clang)
|
337
|
+
|
338
|
+
Same as the ARMv7 build procedure for Xcode 5 and later, except replace the
|
339
|
+
compiler flags as follows:
|
340
|
+
|
341
|
+
export CFLAGS="-mfloat-abi=softfp -isysroot ${IOS_SYSROOT[0]} -O3 -arch armv7s -miphoneos-version-min=6.0"
|
342
|
+
|
343
|
+
|
344
|
+
### ARMv8 (64-bit)
|
345
|
+
|
346
|
+
**gas-preprocessor.pl required if using Xcode < 6**
|
347
|
+
|
348
|
+
The following script demonstrates how to build libjpeg-turbo to run on the
|
349
|
+
iPhone 5S/iPad Mini 2/iPad Air and newer.
|
350
|
+
|
351
|
+
IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
|
352
|
+
IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
|
353
|
+
|
354
|
+
export host_alias=aarch64-apple-darwin
|
355
|
+
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
|
356
|
+
export CFLAGS="-isysroot ${IOS_SYSROOT[0]} -O3 -arch arm64 -miphoneos-version-min=7.0 -funwind-tables"
|
357
|
+
|
358
|
+
cd {build_directory}
|
359
|
+
sh {source_directory}/configure [additional configure flags]
|
360
|
+
make
|
361
|
+
|
362
|
+
Once built, lipo can be used to combine the ARMv7, v7s, and/or v8 variants into
|
363
|
+
a universal library.
|
364
|
+
|
365
|
+
|
366
|
+
Building libjpeg-turbo for Android
|
367
|
+
----------------------------------
|
368
|
+
|
369
|
+
Building libjpeg-turbo for Android platforms requires the
|
370
|
+
[Android NDK](https://developer.android.com/tools/sdk/ndk) and autotools.
|
371
|
+
|
372
|
+
|
373
|
+
### ARMv7 (32-bit)
|
374
|
+
|
375
|
+
The following is a general recipe script that can be modified for your specific
|
376
|
+
needs.
|
377
|
+
|
378
|
+
# Set these variables to suit your needs
|
379
|
+
NDK_PATH={full path to the "ndk" directory-- for example, /opt/android/sdk/ndk-bundle}
|
380
|
+
BUILD_PLATFORM={the platform name for the NDK package you installed--
|
381
|
+
for example, "windows-x86" or "linux-x86_64" or "darwin-x86_64"}
|
382
|
+
TOOLCHAIN_VERSION={"4.8", "4.9", "clang3.5", etc. This corresponds to a
|
383
|
+
toolchain directory under ${NDK_PATH}/toolchains/.}
|
384
|
+
ANDROID_VERSION={The minimum version of Android to support-- for example,
|
385
|
+
"16", "19", etc.}
|
386
|
+
|
387
|
+
# It should not be necessary to modify the rest
|
388
|
+
HOST=arm-linux-androideabi
|
389
|
+
SYSROOT=${NDK_PATH}/platforms/android-${ANDROID_VERSION}/arch-arm
|
390
|
+
ANDROID_CFLAGS="-march=armv7-a -mfloat-abi=softfp -fprefetch-loop-arrays \
|
391
|
+
--sysroot=${SYSROOT}"
|
392
|
+
|
393
|
+
TOOLCHAIN=${NDK_PATH}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}
|
394
|
+
export CPP=${TOOLCHAIN}/bin/${HOST}-cpp
|
395
|
+
export AR=${TOOLCHAIN}/bin/${HOST}-ar
|
396
|
+
export NM=${TOOLCHAIN}/bin/${HOST}-nm
|
397
|
+
export CC=${TOOLCHAIN}/bin/${HOST}-gcc
|
398
|
+
export LD=${TOOLCHAIN}/bin/${HOST}-ld
|
399
|
+
export RANLIB=${TOOLCHAIN}/bin/${HOST}-ranlib
|
400
|
+
export OBJDUMP=${TOOLCHAIN}/bin/${HOST}-objdump
|
401
|
+
export STRIP=${TOOLCHAIN}/bin/${HOST}-strip
|
402
|
+
cd {build_directory}
|
403
|
+
sh {source_directory}/configure --host=${HOST} \
|
404
|
+
CFLAGS="${ANDROID_CFLAGS} -O3 -fPIE" \
|
405
|
+
CPPFLAGS="${ANDROID_CFLAGS}" \
|
406
|
+
LDFLAGS="${ANDROID_CFLAGS} -pie" --with-simd ${1+"$@"}
|
407
|
+
make
|
408
|
+
|
409
|
+
|
410
|
+
### ARMv8 (64-bit)
|
411
|
+
|
412
|
+
The following is a general recipe script that can be modified for your specific
|
413
|
+
needs.
|
414
|
+
|
415
|
+
# Set these variables to suit your needs
|
416
|
+
NDK_PATH={full path to the "ndk" directory-- for example, /opt/android/sdk/ndk-bundle}
|
417
|
+
BUILD_PLATFORM={the platform name for the NDK package you installed--
|
418
|
+
for example, "windows-x86" or "linux-x86_64" or "darwin-x86_64"}
|
419
|
+
TOOLCHAIN_VERSION={"4.8", "4.9", "clang3.5", etc. This corresponds to a
|
420
|
+
toolchain directory under ${NDK_PATH}/toolchains/.}
|
421
|
+
ANDROID_VERSION={The minimum version of Android to support. "21" or later
|
422
|
+
is required for a 64-bit build.}
|
423
|
+
|
424
|
+
# It should not be necessary to modify the rest
|
425
|
+
HOST=aarch64-linux-android
|
426
|
+
SYSROOT=${NDK_PATH}/platforms/android-${ANDROID_VERSION}/arch-arm64
|
427
|
+
ANDROID_CFLAGS="--sysroot=${SYSROOT}"
|
428
|
+
|
429
|
+
TOOLCHAIN=${NDK_PATH}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}
|
430
|
+
export CPP=${TOOLCHAIN}/bin/${HOST}-cpp
|
431
|
+
export AR=${TOOLCHAIN}/bin/${HOST}-ar
|
432
|
+
export NM=${TOOLCHAIN}/bin/${HOST}-nm
|
433
|
+
export CC=${TOOLCHAIN}/bin/${HOST}-gcc
|
434
|
+
export LD=${TOOLCHAIN}/bin/${HOST}-ld
|
435
|
+
export RANLIB=${TOOLCHAIN}/bin/${HOST}-ranlib
|
436
|
+
export OBJDUMP=${TOOLCHAIN}/bin/${HOST}-objdump
|
437
|
+
export STRIP=${TOOLCHAIN}/bin/${HOST}-strip
|
438
|
+
cd {build_directory}
|
439
|
+
sh {source_directory}/configure --host=${HOST} \
|
440
|
+
CFLAGS="${ANDROID_CFLAGS} -O3 -fPIE" \
|
441
|
+
CPPFLAGS="${ANDROID_CFLAGS}" \
|
442
|
+
LDFLAGS="${ANDROID_CFLAGS} -pie" --with-simd ${1+"$@"}
|
443
|
+
make
|
444
|
+
|
445
|
+
|
446
|
+
### x86 (32-bit)
|
447
|
+
|
448
|
+
The following is a general recipe script that can be modified for your specific
|
449
|
+
needs.
|
450
|
+
|
451
|
+
# Set these variables to suit your needs
|
452
|
+
NDK_PATH={full path to the "ndk" directory-- for example, /opt/android/sdk/ndk-bundle}
|
453
|
+
BUILD_PLATFORM={the platform name for the NDK package you installed--
|
454
|
+
for example, "windows-x86" or "linux-x86_64" or "darwin-x86_64"}
|
455
|
+
TOOLCHAIN_VERSION={"4.8", "4.9", "clang3.5", etc. This corresponds to a
|
456
|
+
toolchain directory under ${NDK_PATH}/toolchains/.}
|
457
|
+
ANDROID_VERSION={The minimum version of Android to support-- for example,
|
458
|
+
"16", "19", etc.}
|
459
|
+
|
460
|
+
# It should not be necessary to modify the rest
|
461
|
+
HOST=i686-linux-android
|
462
|
+
SYSROOT=${NDK_PATH}/platforms/android-${ANDROID_VERSION}/arch-x86
|
463
|
+
ANDROID_CFLAGS="--sysroot=${SYSROOT}"
|
464
|
+
|
465
|
+
TOOLCHAIN=${NDK_PATH}/toolchains/x86-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}
|
466
|
+
export CPP=${TOOLCHAIN}/bin/${HOST}-cpp
|
467
|
+
export AR=${TOOLCHAIN}/bin/${HOST}-ar
|
468
|
+
export NM=${TOOLCHAIN}/bin/${HOST}-nm
|
469
|
+
export CC=${TOOLCHAIN}/bin/${HOST}-gcc
|
470
|
+
export LD=${TOOLCHAIN}/bin/${HOST}-ld
|
471
|
+
export RANLIB=${TOOLCHAIN}/bin/${HOST}-ranlib
|
472
|
+
export OBJDUMP=${TOOLCHAIN}/bin/${HOST}-objdump
|
473
|
+
export STRIP=${TOOLCHAIN}/bin/${HOST}-strip
|
474
|
+
cd {build_directory}
|
475
|
+
sh {source_directory}/configure --host=${HOST} \
|
476
|
+
CFLAGS="${ANDROID_CFLAGS} -O3 -fPIE" \
|
477
|
+
CPPFLAGS="${ANDROID_CFLAGS}" \
|
478
|
+
LDFLAGS="${ANDROID_CFLAGS} -pie" --with-simd ${1+"$@"}
|
479
|
+
make
|
480
|
+
|
481
|
+
|
482
|
+
### x86-64 (64-bit)
|
483
|
+
|
484
|
+
The following is a general recipe script that can be modified for your specific
|
485
|
+
needs.
|
486
|
+
|
487
|
+
# Set these variables to suit your needs
|
488
|
+
NDK_PATH={full path to the "ndk" directory-- for example, /opt/android/sdk/ndk-bundle}
|
489
|
+
BUILD_PLATFORM={the platform name for the NDK package you installed--
|
490
|
+
for example, "windows-x86" or "linux-x86_64" or "darwin-x86_64"}
|
491
|
+
TOOLCHAIN_VERSION={"4.8", "4.9", "clang3.5", etc. This corresponds to a
|
492
|
+
toolchain directory under ${NDK_PATH}/toolchains/.}
|
493
|
+
ANDROID_VERSION={The minimum version of Android to support. "21" or later
|
494
|
+
is required for a 64-bit build.}
|
495
|
+
|
496
|
+
# It should not be necessary to modify the rest
|
497
|
+
HOST=x86_64-linux-android
|
498
|
+
SYSROOT=${NDK_PATH}/platforms/android-${ANDROID_VERSION}/arch-x86_64
|
499
|
+
ANDROID_CFLAGS="--sysroot=${SYSROOT}"
|
500
|
+
|
501
|
+
TOOLCHAIN=${NDK_PATH}/toolchains/x86_64-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}
|
502
|
+
export CPP=${TOOLCHAIN}/bin/${HOST}-cpp
|
503
|
+
export AR=${TOOLCHAIN}/bin/${HOST}-ar
|
504
|
+
export NM=${TOOLCHAIN}/bin/${HOST}-nm
|
505
|
+
export CC=${TOOLCHAIN}/bin/${HOST}-gcc
|
506
|
+
export LD=${TOOLCHAIN}/bin/${HOST}-ld
|
507
|
+
export RANLIB=${TOOLCHAIN}/bin/${HOST}-ranlib
|
508
|
+
export OBJDUMP=${TOOLCHAIN}/bin/${HOST}-objdump
|
509
|
+
export STRIP=${TOOLCHAIN}/bin/${HOST}-strip
|
510
|
+
cd {build_directory}
|
511
|
+
sh {source_directory}/configure --host=${HOST} \
|
512
|
+
CFLAGS="${ANDROID_CFLAGS} -O3 -fPIE" \
|
513
|
+
CPPFLAGS="${ANDROID_CFLAGS}" \
|
514
|
+
LDFLAGS="${ANDROID_CFLAGS} -pie" --with-simd ${1+"$@"}
|
515
|
+
make
|
516
|
+
|
517
|
+
|
518
|
+
If building for Android 4.0.x (API level < 16) or earlier, remove `-fPIE` from
|
519
|
+
`CFLAGS` and `-pie` from `LDFLAGS`.
|
520
|
+
|
521
|
+
|
522
|
+
Installing libjpeg-turbo
|
523
|
+
------------------------
|
524
|
+
|
525
|
+
To install libjpeg-turbo after it is built, replace `make` in the build
|
526
|
+
instructions with `make install`.
|
527
|
+
|
528
|
+
The `--prefix` argument to configure (or the `prefix` configure variable) can
|
529
|
+
be used to specify an installation directory of your choosing. If you don't
|
530
|
+
specify an installation directory, then the default is to install libjpeg-turbo
|
531
|
+
under **/opt/libjpeg-turbo** and to place the libraries in
|
532
|
+
**/opt/libjpeg-turbo/lib32** (32-bit) or **/opt/libjpeg-turbo/lib64** (64-bit.)
|
533
|
+
|
534
|
+
The `bindir`, `datadir`, `docdir`, `includedir`, `libdir`, and `mandir`
|
535
|
+
configure variables allow a finer degree of control over where specific files in
|
536
|
+
the libjpeg-turbo distribution should be installed. These variables can either
|
537
|
+
be specified at configure time or passed as arguments to `make install`.
|
538
|
+
|
539
|
+
|
540
|
+
Windows (Visual C++ or MinGW)
|
541
|
+
=============================
|
542
|
+
|
543
|
+
|
544
|
+
Build Requirements
|
545
|
+
------------------
|
546
|
+
|
547
|
+
- [CMake](http://www.cmake.org) v2.8.11 or later
|
548
|
+
|
549
|
+
- [NASM](http://www.nasm.us) or [YASM](http://yasm.tortall.net)
|
550
|
+
* If using NASM, 0.98 or later is required for an x86 build.
|
551
|
+
* If using NASM, 2.05 or later is required for an x86-64 build.
|
552
|
+
* **nasm.exe**/**yasm.exe** should be in your `PATH`.
|
553
|
+
|
554
|
+
- Microsoft Visual C++ 2005 or later
|
555
|
+
|
556
|
+
If you don't already have Visual C++, then the easiest way to get it is by
|
557
|
+
installing the
|
558
|
+
[Windows SDK](http://msdn.microsoft.com/en-us/windows/bb980924.aspx).
|
559
|
+
The Windows SDK includes both 32-bit and 64-bit Visual C++ compilers and
|
560
|
+
everything necessary to build libjpeg-turbo.
|
561
|
+
|
562
|
+
* You can also use Microsoft Visual Studio Express/Community Edition, which
|
563
|
+
is a free download. (NOTE: versions prior to 2012 can only be used to
|
564
|
+
build 32-bit code.)
|
565
|
+
* If you intend to build libjpeg-turbo from the command line, then add the
|
566
|
+
appropriate compiler and SDK directories to the `INCLUDE`, `LIB`, and
|
567
|
+
`PATH` environment variables. This is generally accomplished by
|
568
|
+
executing `vcvars32.bat` or `vcvars64.bat` and `SetEnv.cmd`.
|
569
|
+
`vcvars32.bat` and `vcvars64.bat` are part of Visual C++ and are located in
|
570
|
+
the same directory as the compiler. `SetEnv.cmd` is part of the Windows
|
571
|
+
SDK. You can pass optional arguments to `SetEnv.cmd` to specify a 32-bit
|
572
|
+
or 64-bit build environment.
|
573
|
+
|
574
|
+
... OR ...
|
575
|
+
|
576
|
+
- MinGW
|
577
|
+
|
578
|
+
[MSYS2](http://msys2.github.io/) or [tdm-gcc](http://tdm-gcc.tdragon.net/)
|
579
|
+
recommended if building on a Windows machine. Both distributions install a
|
580
|
+
Start Menu link that can be used to launch a command prompt with the
|
581
|
+
appropriate compiler paths automatically set.
|
582
|
+
|
583
|
+
- If building the TurboJPEG Java wrapper, JDK 1.5 or later is required. This
|
584
|
+
can be downloaded from <http://www.java.com>.
|
585
|
+
|
586
|
+
|
587
|
+
Out-of-Tree Builds
|
588
|
+
------------------
|
589
|
+
|
590
|
+
Binary objects, libraries, and executables are generated in the directory from
|
591
|
+
which CMake is executed (the "binary directory"), and this directory need not
|
592
|
+
necessarily be the same as the libjpeg-turbo source directory. You can create
|
593
|
+
multiple independent binary directories, in which different versions of
|
594
|
+
libjpeg-turbo can be built from the same source tree using different compilers
|
595
|
+
or settings. In the sections below, *{build_directory}* refers to the binary
|
596
|
+
directory, whereas *{source_directory}* refers to the libjpeg-turbo source
|
597
|
+
directory. For in-tree builds, these directories are the same.
|
598
|
+
|
599
|
+
|
600
|
+
Build Procedure
|
601
|
+
---------------
|
602
|
+
|
603
|
+
NOTE: The build procedures below assume that CMake is invoked from the command
|
604
|
+
line, but all of these procedures can be adapted to the CMake GUI as
|
605
|
+
well.
|
606
|
+
|
607
|
+
|
608
|
+
### Visual C++ (Command Line)
|
609
|
+
|
610
|
+
cd {build_directory}
|
611
|
+
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release [additional CMake flags] {source_directory}
|
612
|
+
nmake
|
613
|
+
|
614
|
+
This will build either a 32-bit or a 64-bit version of libjpeg-turbo, depending
|
615
|
+
on which version of **cl.exe** is in the `PATH`.
|
616
|
+
|
617
|
+
The following files will be generated under *{build_directory}*:
|
618
|
+
|
619
|
+
**jpeg-static.lib**<br>
|
620
|
+
Static link library for the libjpeg API
|
621
|
+
|
622
|
+
**sharedlib/jpeg{version}.dll**<br>
|
623
|
+
DLL for the libjpeg API
|
624
|
+
|
625
|
+
**sharedlib/jpeg.lib**<br>
|
626
|
+
Import library for the libjpeg API
|
627
|
+
|
628
|
+
**turbojpeg-static.lib**<br>
|
629
|
+
Static link library for the TurboJPEG API
|
630
|
+
|
631
|
+
**turbojpeg.dll**<br>
|
632
|
+
DLL for the TurboJPEG API
|
633
|
+
|
634
|
+
**turbojpeg.lib**<br>
|
635
|
+
Import library for the TurboJPEG API
|
636
|
+
|
637
|
+
*{version}* is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
|
638
|
+
v8 emulation is enabled.
|
639
|
+
|
640
|
+
|
641
|
+
### Visual C++ (IDE)
|
642
|
+
|
643
|
+
Choose the appropriate CMake generator option for your version of Visual Studio
|
644
|
+
(run `cmake` with no arguments for a list of available generators.) For
|
645
|
+
instance:
|
646
|
+
|
647
|
+
cd {build_directory}
|
648
|
+
cmake -G"Visual Studio 10" [additional CMake flags] {source_directory}
|
649
|
+
|
650
|
+
NOTE: Add "Win64" to the generator name (for example, "Visual Studio 10
|
651
|
+
Win64") to build a 64-bit version of libjpeg-turbo. A separate build directory
|
652
|
+
must be used for 32-bit and 64-bit builds.
|
653
|
+
|
654
|
+
You can then open **ALL_BUILD.vcproj** in Visual Studio and build one of the
|
655
|
+
configurations in that project ("Debug", "Release", etc.) to generate a full
|
656
|
+
build of libjpeg-turbo.
|
657
|
+
|
658
|
+
This will generate the following files under *{build_directory}*:
|
659
|
+
|
660
|
+
**{configuration}/jpeg-static.lib**<br>
|
661
|
+
Static link library for the libjpeg API
|
662
|
+
|
663
|
+
**sharedlib/{configuration}/jpeg{version}.dll**<br>
|
664
|
+
DLL for the libjpeg API
|
665
|
+
|
666
|
+
**sharedlib/{configuration}/jpeg.lib**<br>
|
667
|
+
Import library for the libjpeg API
|
668
|
+
|
669
|
+
**{configuration}/turbojpeg-static.lib**<br>
|
670
|
+
Static link library for the TurboJPEG API
|
671
|
+
|
672
|
+
**{configuration}/turbojpeg.dll**<br>
|
673
|
+
DLL for the TurboJPEG API
|
674
|
+
|
675
|
+
**{configuration}/turbojpeg.lib**<br>
|
676
|
+
Import library for the TurboJPEG API
|
677
|
+
|
678
|
+
*{configuration}* is Debug, Release, RelWithDebInfo, or MinSizeRel, depending
|
679
|
+
on the configuration you built in the IDE, and *{version}* is 62, 7, or 8,
|
680
|
+
depending on whether libjpeg v6b (default), v7, or v8 emulation is enabled.
|
681
|
+
|
682
|
+
|
683
|
+
### MinGW
|
684
|
+
|
685
|
+
NOTE: This assumes that you are building on a Windows machine using the MSYS
|
686
|
+
environment. If you are cross-compiling on a Un*x platform (including Mac and
|
687
|
+
Cygwin), then see "Build Recipes" below.
|
688
|
+
|
689
|
+
cd {build_directory}
|
690
|
+
cmake -G"MSYS Makefiles" [additional CMake flags] {source_directory}
|
691
|
+
make
|
692
|
+
|
693
|
+
This will generate the following files under *{build_directory}*:
|
694
|
+
|
695
|
+
**libjpeg.a**<br>
|
696
|
+
Static link library for the libjpeg API
|
697
|
+
|
698
|
+
**sharedlib/libjpeg-{version}.dll**<br>
|
699
|
+
DLL for the libjpeg API
|
700
|
+
|
701
|
+
**sharedlib/libjpeg.dll.a**<br>
|
702
|
+
Import library for the libjpeg API
|
703
|
+
|
704
|
+
**libturbojpeg.a**<br>
|
705
|
+
Static link library for the TurboJPEG API
|
706
|
+
|
707
|
+
**libturbojpeg.dll**<br>
|
708
|
+
DLL for the TurboJPEG API
|
709
|
+
|
710
|
+
**libturbojpeg.dll.a**<br>
|
711
|
+
Import library for the TurboJPEG API
|
712
|
+
|
713
|
+
*{version}* is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
|
714
|
+
v8 emulation is enabled.
|
715
|
+
|
716
|
+
|
717
|
+
### Debug Build
|
718
|
+
|
719
|
+
Add `-DCMAKE_BUILD_TYPE=Debug` to the CMake command line. Or, if building
|
720
|
+
with NMake, remove `-DCMAKE_BUILD_TYPE=Release` (Debug builds are the default
|
721
|
+
with NMake.)
|
722
|
+
|
723
|
+
|
724
|
+
### libjpeg v7 or v8 API/ABI Emulation
|
725
|
+
|
726
|
+
Add `-DWITH_JPEG7=1` to the CMake command line to build a version of
|
727
|
+
libjpeg-turbo that is API/ABI-compatible with libjpeg v7. Add `-DWITH_JPEG8=1`
|
728
|
+
to the CMake command line to build a version of libjpeg-turbo that is
|
729
|
+
API/ABI-compatible with libjpeg v8. See [README.md](README.md) for more
|
730
|
+
information about libjpeg v7 and v8 emulation.
|
731
|
+
|
732
|
+
|
733
|
+
### In-Memory Source/Destination Managers
|
734
|
+
|
735
|
+
When using libjpeg v6b or v7 API/ABI emulation, add `-DWITH_MEM_SRCDST=0` to
|
736
|
+
the CMake command line to build a version of libjpeg-turbo that lacks the
|
737
|
+
`jpeg_mem_src()` and `jpeg_mem_dest()` functions. These functions were not
|
738
|
+
part of the original libjpeg v6b and v7 APIs, so removing them ensures strict
|
739
|
+
conformance with those APIs. See [README.md](README.md) for more information.
|
740
|
+
|
741
|
+
|
742
|
+
### Arithmetic Coding Support
|
743
|
+
|
744
|
+
Since the patent on arithmetic coding has expired, this functionality has been
|
745
|
+
included in this release of libjpeg-turbo. libjpeg-turbo's implementation is
|
746
|
+
based on the implementation in libjpeg v8, but it works when emulating libjpeg
|
747
|
+
v7 or v6b as well. The default is to enable both arithmetic encoding and
|
748
|
+
decoding, but those who have philosophical objections to arithmetic coding can
|
749
|
+
add `-DWITH_ARITH_ENC=0` or `-DWITH_ARITH_DEC=0` to the CMake command line to
|
750
|
+
disable encoding or decoding (respectively.)
|
751
|
+
|
752
|
+
|
753
|
+
### TurboJPEG Java Wrapper
|
754
|
+
|
755
|
+
Add `-DWITH_JAVA=1` to the CMake command line to incorporate an optional Java
|
756
|
+
Native Interface (JNI) wrapper into the TurboJPEG shared library and build the
|
757
|
+
Java front-end classes to support it. This allows the TurboJPEG shared library
|
758
|
+
to be used directly from Java applications. See [java/README](java/README) for
|
759
|
+
more details.
|
760
|
+
|
761
|
+
If Java is not in your `PATH`, or if you wish to use an alternate JDK to
|
762
|
+
build/test libjpeg-turbo, then (prior to running CMake) set the `JAVA_HOME`
|
763
|
+
environment variable to the location of the JDK that you wish to use. The
|
764
|
+
`Java_JAVAC_EXECUTABLE`, `Java_JAVA_EXECUTABLE`, and `Java_JAR_EXECUTABLE`
|
765
|
+
CMake variables can also be used to specify alternate commands or locations for
|
766
|
+
javac, jar, and java (respectively.) You can also set the `JAVACFLAGS` CMake
|
767
|
+
variable to specify arguments that should be passed to the Java compiler when
|
768
|
+
building the TurboJPEG classes.
|
769
|
+
|
770
|
+
|
771
|
+
Build Recipes
|
772
|
+
-------------
|
773
|
+
|
774
|
+
|
775
|
+
### 32-bit MinGW Build on Un*x (including Mac and Cygwin)
|
776
|
+
|
777
|
+
Create a file called **toolchain.cmake** under *{build_directory}*, with the
|
778
|
+
following contents:
|
779
|
+
|
780
|
+
set(CMAKE_SYSTEM_NAME Windows)
|
781
|
+
set(CMAKE_SYSTEM_PROCESSOR X86)
|
782
|
+
set(CMAKE_C_COMPILER {mingw_binary_path}/i686-w64-mingw32-gcc)
|
783
|
+
set(CMAKE_RC_COMPILER {mingw_binary_path}/i686-w64-mingw32-windres)
|
784
|
+
|
785
|
+
*{mingw\_binary\_path}* is the directory under which the MinGW binaries are
|
786
|
+
located (usually **/usr/bin**.) Next, execute the following commands:
|
787
|
+
|
788
|
+
cd {build_directory}
|
789
|
+
cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
|
790
|
+
[additional CMake flags] {source_directory}
|
791
|
+
make
|
792
|
+
|
793
|
+
|
794
|
+
### 64-bit MinGW Build on Un*x (including Mac and Cygwin)
|
795
|
+
|
796
|
+
Create a file called **toolchain.cmake** under *{build_directory}*, with the
|
797
|
+
following contents:
|
798
|
+
|
799
|
+
set(CMAKE_SYSTEM_NAME Windows)
|
800
|
+
set(CMAKE_SYSTEM_PROCESSOR AMD64)
|
801
|
+
set(CMAKE_C_COMPILER {mingw_binary_path}/x86_64-w64-mingw32-gcc)
|
802
|
+
set(CMAKE_RC_COMPILER {mingw_binary_path}/x86_64-w64-mingw32-windres)
|
803
|
+
|
804
|
+
*{mingw\_binary\_path}* is the directory under which the MinGW binaries are
|
805
|
+
located (usually **/usr/bin**.) Next, execute the following commands:
|
806
|
+
|
807
|
+
cd {build_directory}
|
808
|
+
cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
|
809
|
+
[additional CMake flags] {source_directory}
|
810
|
+
make
|
811
|
+
|
812
|
+
|
813
|
+
Installing libjpeg-turbo
|
814
|
+
------------------------
|
815
|
+
|
816
|
+
You can use the build system to install libjpeg-turbo (as opposed to creating
|
817
|
+
an installer package.) To do this, run `make install` or `nmake install`
|
818
|
+
(or build the "install" target in the Visual Studio IDE.) Running
|
819
|
+
`make uninstall` or `nmake uninstall` (or building the "uninstall" target in
|
820
|
+
the Visual Studio IDE) will uninstall libjpeg-turbo.
|
821
|
+
|
822
|
+
The `CMAKE_INSTALL_PREFIX` CMake variable can be modified in order to install
|
823
|
+
libjpeg-turbo into a directory of your choosing. If you don't specify
|
824
|
+
`CMAKE_INSTALL_PREFIX`, then the default is:
|
825
|
+
|
826
|
+
**c:\libjpeg-turbo**<br>
|
827
|
+
Visual Studio 32-bit build
|
828
|
+
|
829
|
+
**c:\libjpeg-turbo64**<br>
|
830
|
+
Visual Studio 64-bit build
|
831
|
+
|
832
|
+
**c:\libjpeg-turbo-gcc**<br>
|
833
|
+
MinGW 32-bit build
|
834
|
+
|
835
|
+
**c:\libjpeg-turbo-gcc64**<br>
|
836
|
+
MinGW 64-bit build
|
837
|
+
|
838
|
+
|
839
|
+
Creating Distribution Packages
|
840
|
+
==============================
|
841
|
+
|
842
|
+
The following commands can be used to create various types of distribution
|
843
|
+
packages:
|
844
|
+
|
845
|
+
|
846
|
+
Linux
|
847
|
+
-----
|
848
|
+
|
849
|
+
make rpm
|
850
|
+
|
851
|
+
Create Red Hat-style binary RPM package. Requires RPM v4 or later.
|
852
|
+
|
853
|
+
make srpm
|
854
|
+
|
855
|
+
This runs `make dist` to create a pristine source tarball, then creates a
|
856
|
+
Red Hat-style source RPM package from the tarball. Requires RPM v4 or later.
|
857
|
+
|
858
|
+
make deb
|
859
|
+
|
860
|
+
Create Debian-style binary package. Requires dpkg.
|
861
|
+
|
862
|
+
|
863
|
+
Mac
|
864
|
+
---
|
865
|
+
|
866
|
+
make dmg
|
867
|
+
|
868
|
+
Create Mac package/disk image. This requires pkgbuild and productbuild, which
|
869
|
+
are installed by default on OS X 10.7 and later and which can be obtained by
|
870
|
+
installing Xcode 3.2.6 (with the "Unix Development" option) on OS X 10.6.
|
871
|
+
Packages built in this manner can be installed on OS X 10.5 and later, but they
|
872
|
+
must be built on OS X 10.6 or later.
|
873
|
+
|
874
|
+
make udmg [BUILDDIR32={32-bit build directory}]
|
875
|
+
|
876
|
+
On 64-bit OS X systems, this creates a Mac package/disk image that contains
|
877
|
+
universal i386/x86-64 binaries. You should first configure a 32-bit
|
878
|
+
out-of-tree build of libjpeg-turbo, then configure a 64-bit out-of-tree build,
|
879
|
+
then run `make udmg` from the 64-bit build directory. The build system will
|
880
|
+
look for the 32-bit build under *{source_directory}*/osxx86 by default, but you
|
881
|
+
can override this by setting the `BUILDDIR32` variable on the make command line
|
882
|
+
as shown above.
|
883
|
+
|
884
|
+
make iosdmg [BUILDDIR32={32-bit build directory}] \
|
885
|
+
[BUILDDIRARMV7={ARMv7 build directory}] \
|
886
|
+
[BUILDDIRARMV7S={ARMv7s build directory}] \
|
887
|
+
[BUILDDIRARMV8={ARMv8 build directory}]
|
888
|
+
|
889
|
+
This creates a Mac package/disk image in which the libjpeg-turbo libraries
|
890
|
+
contain ARM architectures necessary to build iOS applications. If building on
|
891
|
+
an x86-64 system, the binaries will also contain the i386 architecture, as with
|
892
|
+
`make udmg` above. You should first configure ARMv7, ARMv7s, and/or ARMv8
|
893
|
+
out-of-tree builds of libjpeg-turbo (see "Building libjpeg-turbo for iOS"
|
894
|
+
above.) If you are building an x86-64 version of libjpeg-turbo, you should
|
895
|
+
configure a 32-bit out-of-tree build as well. Next, build libjpeg-turbo as you
|
896
|
+
would normally, using an out-of-tree build. When it is built, run `make
|
897
|
+
iosdmg` from the build directory. The build system will look for the ARMv7
|
898
|
+
build under *{source_directory}*/iosarmv7 by default, the ARMv7s build under
|
899
|
+
*{source_directory}*/iosarmv7s by default, the ARMv8 build under
|
900
|
+
*{source_directory}*/iosarmv8 by default, and (if applicable) the 32-bit build
|
901
|
+
under *{source_directory}*/osxx86 by default, but you can override this by
|
902
|
+
setting the `BUILDDIR32`, `BUILDDIRARMV7`, `BUILDDIRARMV7S`, and/or
|
903
|
+
`BUILDDIRARMV8` variables on the `make` command line as shown above.
|
904
|
+
|
905
|
+
NOTE: If including an ARMv8 build in the package, then you may need to use
|
906
|
+
Xcode's version of lipo instead of the operating system's. To do this, pass
|
907
|
+
an argument of `LIPO="xcrun lipo"` on the make command line.
|
908
|
+
|
909
|
+
make cygwinpkg
|
910
|
+
|
911
|
+
Build a Cygwin binary package.
|
912
|
+
|
913
|
+
|
914
|
+
Windows
|
915
|
+
-------
|
916
|
+
|
917
|
+
If using NMake:
|
918
|
+
|
919
|
+
cd {build_directory}
|
920
|
+
nmake installer
|
921
|
+
|
922
|
+
If using MinGW:
|
923
|
+
|
924
|
+
cd {build_directory}
|
925
|
+
make installer
|
926
|
+
|
927
|
+
If using the Visual Studio IDE, build the "installer" target.
|
928
|
+
|
929
|
+
The installer package (libjpeg-turbo-*{version}*[-gcc|-vc][64].exe) will be
|
930
|
+
located under *{build_directory}*. If building using the Visual Studio IDE,
|
931
|
+
then the installer package will be located in a subdirectory with the same name
|
932
|
+
as the configuration you built (such as *{build_directory}*\Debug\ or
|
933
|
+
*{build_directory}*\Release\).
|
934
|
+
|
935
|
+
Building a Windows installer requires the
|
936
|
+
[Nullsoft Install System](http://nsis.sourceforge.net/). makensis.exe should
|
937
|
+
be in your `PATH`.
|
938
|
+
|
939
|
+
|
940
|
+
Regression testing
|
941
|
+
==================
|
942
|
+
|
943
|
+
The most common way to test libjpeg-turbo is by invoking `make test` (Un*x) or
|
944
|
+
`nmake test` (Windows command line) or by building the "RUN_TESTS" target
|
945
|
+
(Visual Studio IDE), once the build has completed. This runs a series of tests
|
946
|
+
to ensure that mathematical compatibility has been maintained between
|
947
|
+
libjpeg-turbo and libjpeg v6b. This also invokes the TurboJPEG unit tests,
|
948
|
+
which ensure that the colorspace extensions, YUV encoding, decompression
|
949
|
+
scaling, and other features of the TurboJPEG C and Java APIs are working
|
950
|
+
properly (and, by extension, that the equivalent features of the underlying
|
951
|
+
libjpeg API are also working.)
|
952
|
+
|
953
|
+
Invoking `make testclean` (Un*x) or `nmake testclean` (Windows command line) or
|
954
|
+
building the "testclean" target (Visual Studio IDE) will clean up the output
|
955
|
+
images generated by the tests.
|
956
|
+
|
957
|
+
On Un*x platforms, more extensive tests of the TurboJPEG C and Java wrappers
|
958
|
+
can be run by invoking `make tjtest`. These extended TurboJPEG tests
|
959
|
+
essentially iterate through all of the available features of the TurboJPEG APIs
|
960
|
+
that are not covered by the TurboJPEG unit tests (including the lossless
|
961
|
+
transform options) and compare the images generated by each feature to images
|
962
|
+
generated using the equivalent feature in the libjpeg API. The extended
|
963
|
+
TurboJPEG tests are meant to test for regressions in the TurboJPEG wrappers,
|
964
|
+
not in the underlying libjpeg API library.
|