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