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,290 @@
|
|
1
|
+
.TH JPEGTRAN 1 "18 March 2017"
|
2
|
+
.SH NAME
|
3
|
+
jpegtran \- lossless transformation of JPEG files
|
4
|
+
.SH SYNOPSIS
|
5
|
+
.B jpegtran
|
6
|
+
[
|
7
|
+
.I options
|
8
|
+
]
|
9
|
+
[
|
10
|
+
.I filename
|
11
|
+
]
|
12
|
+
.LP
|
13
|
+
.SH DESCRIPTION
|
14
|
+
.LP
|
15
|
+
.B jpegtran
|
16
|
+
performs various useful transformations of JPEG files.
|
17
|
+
It can translate the coded representation from one variant of JPEG to another,
|
18
|
+
for example from baseline JPEG to progressive JPEG or vice versa. It can also
|
19
|
+
perform some rearrangements of the image data, for example turning an image
|
20
|
+
from landscape to portrait format by rotation.
|
21
|
+
.PP
|
22
|
+
For EXIF files and JPEG files containing Exif data, you may prefer to use
|
23
|
+
.B exiftran
|
24
|
+
instead.
|
25
|
+
.PP
|
26
|
+
.B jpegtran
|
27
|
+
works by rearranging the compressed data (DCT coefficients), without
|
28
|
+
ever fully decoding the image. Therefore, its transformations are lossless:
|
29
|
+
there is no image degradation at all, which would not be true if you used
|
30
|
+
.B djpeg
|
31
|
+
followed by
|
32
|
+
.B cjpeg
|
33
|
+
to accomplish the same conversion. But by the same token,
|
34
|
+
.B jpegtran
|
35
|
+
cannot perform lossy operations such as changing the image quality. However,
|
36
|
+
while the image data is losslessly transformed, metadata can be removed. See
|
37
|
+
the
|
38
|
+
.B \-copy
|
39
|
+
option for specifics.
|
40
|
+
.PP
|
41
|
+
.B jpegtran
|
42
|
+
reads the named JPEG/JFIF file, or the standard input if no file is
|
43
|
+
named, and produces a JPEG/JFIF file on the standard output.
|
44
|
+
.SH OPTIONS
|
45
|
+
All switch names may be abbreviated; for example,
|
46
|
+
.B \-optimize
|
47
|
+
may be written
|
48
|
+
.B \-opt
|
49
|
+
or
|
50
|
+
.BR \-o .
|
51
|
+
Upper and lower case are equivalent.
|
52
|
+
British spellings are also accepted (e.g.,
|
53
|
+
.BR \-optimise ),
|
54
|
+
though for brevity these are not mentioned below.
|
55
|
+
.PP
|
56
|
+
To specify the coded JPEG representation used in the output file,
|
57
|
+
.B jpegtran
|
58
|
+
accepts a subset of the switches recognized by
|
59
|
+
.BR cjpeg :
|
60
|
+
.TP
|
61
|
+
.B \-optimize
|
62
|
+
Perform optimization of entropy encoding parameters.
|
63
|
+
.TP
|
64
|
+
.B \-progressive
|
65
|
+
Create progressive JPEG file.
|
66
|
+
.TP
|
67
|
+
.BI \-restart " N"
|
68
|
+
Emit a JPEG restart marker every N MCU rows, or every N MCU blocks if "B" is
|
69
|
+
attached to the number.
|
70
|
+
.TP
|
71
|
+
.B \-arithmetic
|
72
|
+
Use arithmetic coding.
|
73
|
+
.TP
|
74
|
+
.BI \-scans " file"
|
75
|
+
Use the scan script given in the specified text file.
|
76
|
+
.PP
|
77
|
+
See
|
78
|
+
.BR cjpeg (1)
|
79
|
+
for more details about these switches.
|
80
|
+
If you specify none of these switches, you get a plain baseline-JPEG output
|
81
|
+
file. The quality setting and so forth are determined by the input file.
|
82
|
+
.PP
|
83
|
+
The image can be losslessly transformed by giving one of these switches:
|
84
|
+
.TP
|
85
|
+
.B \-flip horizontal
|
86
|
+
Mirror image horizontally (left-right).
|
87
|
+
.TP
|
88
|
+
.B \-flip vertical
|
89
|
+
Mirror image vertically (top-bottom).
|
90
|
+
.TP
|
91
|
+
.B \-rotate 90
|
92
|
+
Rotate image 90 degrees clockwise.
|
93
|
+
.TP
|
94
|
+
.B \-rotate 180
|
95
|
+
Rotate image 180 degrees.
|
96
|
+
.TP
|
97
|
+
.B \-rotate 270
|
98
|
+
Rotate image 270 degrees clockwise (or 90 ccw).
|
99
|
+
.TP
|
100
|
+
.B \-transpose
|
101
|
+
Transpose image (across UL-to-LR axis).
|
102
|
+
.TP
|
103
|
+
.B \-transverse
|
104
|
+
Transverse transpose (across UR-to-LL axis).
|
105
|
+
.PP
|
106
|
+
The transpose transformation has no restrictions regarding image dimensions.
|
107
|
+
The other transformations operate rather oddly if the image dimensions are not
|
108
|
+
a multiple of the iMCU size (usually 8 or 16 pixels), because they can only
|
109
|
+
transform complete blocks of DCT coefficient data in the desired way.
|
110
|
+
.PP
|
111
|
+
.BR jpegtran 's
|
112
|
+
default behavior when transforming an odd-size image is designed
|
113
|
+
to preserve exact reversibility and mathematical consistency of the
|
114
|
+
transformation set. As stated, transpose is able to flip the entire image
|
115
|
+
area. Horizontal mirroring leaves any partial iMCU column at the right edge
|
116
|
+
untouched, but is able to flip all rows of the image. Similarly, vertical
|
117
|
+
mirroring leaves any partial iMCU row at the bottom edge untouched, but is
|
118
|
+
able to flip all columns. The other transforms can be built up as sequences
|
119
|
+
of transpose and flip operations; for consistency, their actions on edge
|
120
|
+
pixels are defined to be the same as the end result of the corresponding
|
121
|
+
transpose-and-flip sequence.
|
122
|
+
.PP
|
123
|
+
For practical use, you may prefer to discard any untransformable edge pixels
|
124
|
+
rather than having a strange-looking strip along the right and/or bottom edges
|
125
|
+
of a transformed image. To do this, add the
|
126
|
+
.B \-trim
|
127
|
+
switch:
|
128
|
+
.TP
|
129
|
+
.B \-trim
|
130
|
+
Drop non-transformable edge blocks.
|
131
|
+
.IP
|
132
|
+
Obviously, a transformation with
|
133
|
+
.B \-trim
|
134
|
+
is not reversible, so strictly speaking
|
135
|
+
.B jpegtran
|
136
|
+
with this switch is not lossless. Also, the expected mathematical
|
137
|
+
equivalences between the transformations no longer hold. For example,
|
138
|
+
.B \-rot 270 -trim
|
139
|
+
trims only the bottom edge, but
|
140
|
+
.B \-rot 90 -trim
|
141
|
+
followed by
|
142
|
+
.B \-rot 180 -trim
|
143
|
+
trims both edges.
|
144
|
+
.TP
|
145
|
+
.B \-perfect
|
146
|
+
If you are only interested in perfect transformations, add the
|
147
|
+
.B \-perfect
|
148
|
+
switch. This causes
|
149
|
+
.B jpegtran
|
150
|
+
to fail with an error if the transformation is not perfect.
|
151
|
+
.IP
|
152
|
+
For example, you may want to do
|
153
|
+
.IP
|
154
|
+
.B (jpegtran \-rot 90 -perfect
|
155
|
+
.I foo.jpg
|
156
|
+
.B || djpeg
|
157
|
+
.I foo.jpg
|
158
|
+
.B | pnmflip \-r90 | cjpeg)
|
159
|
+
.IP
|
160
|
+
to do a perfect rotation, if available, or an approximated one if not.
|
161
|
+
.PP
|
162
|
+
This version of \fBjpegtran\fR also offers a lossless crop option, which
|
163
|
+
discards data outside of a given image region but losslessly preserves what is
|
164
|
+
inside. Like the rotate and flip transforms, lossless crop is restricted by the
|
165
|
+
current JPEG format; the upper left corner of the selected region must fall on
|
166
|
+
an iMCU boundary. If it doesn't, then it is silently moved up and/or left to
|
167
|
+
the nearest iMCU boundary (the lower right corner is unchanged.) Thus, the
|
168
|
+
output image covers at least the requested region, but it may cover more. The
|
169
|
+
adjustment of the region dimensions may be optionally disabled by attaching
|
170
|
+
an 'f' character ("force") to the width or height number.
|
171
|
+
|
172
|
+
The image can be losslessly cropped by giving the switch:
|
173
|
+
.TP
|
174
|
+
.B \-crop WxH+X+Y
|
175
|
+
Crop the image to a rectangular region of width W and height H, starting at
|
176
|
+
point X,Y. The lossless crop feature discards data outside of a given image
|
177
|
+
region but losslessly preserves what is inside. Like the rotate and flip
|
178
|
+
transforms, lossless crop is restricted by the current JPEG format; the upper
|
179
|
+
left corner of the selected region must fall on an iMCU boundary. If it
|
180
|
+
doesn't, then it is silently moved up and/or left to the nearest iMCU boundary
|
181
|
+
(the lower right corner is unchanged.)
|
182
|
+
.PP
|
183
|
+
Other not-strictly-lossless transformation switches are:
|
184
|
+
.TP
|
185
|
+
.B \-grayscale
|
186
|
+
Force grayscale output.
|
187
|
+
.IP
|
188
|
+
This option discards the chrominance channels if the input image is YCbCr
|
189
|
+
(ie, a standard color JPEG), resulting in a grayscale JPEG file. The
|
190
|
+
luminance channel is preserved exactly, so this is a better method of reducing
|
191
|
+
to grayscale than decompression, conversion, and recompression. This switch
|
192
|
+
is particularly handy for fixing a monochrome picture that was mistakenly
|
193
|
+
encoded as a color JPEG. (In such a case, the space savings from getting rid
|
194
|
+
of the near-empty chroma channels won't be large; but the decoding time for
|
195
|
+
a grayscale JPEG is substantially less than that for a color JPEG.)
|
196
|
+
.PP
|
197
|
+
.B jpegtran
|
198
|
+
also recognizes these switches that control what to do with "extra" markers,
|
199
|
+
such as comment blocks:
|
200
|
+
.TP
|
201
|
+
.B \-copy none
|
202
|
+
Copy no extra markers from source file. This setting suppresses all
|
203
|
+
comments and other metadata in the source file.
|
204
|
+
.TP
|
205
|
+
.B \-copy comments
|
206
|
+
Copy only comment markers. This setting copies comments from the source file
|
207
|
+
but discards any other metadata.
|
208
|
+
.TP
|
209
|
+
.B \-copy all
|
210
|
+
Copy all extra markers. This setting preserves miscellaneous markers
|
211
|
+
found in the source file, such as JFIF thumbnails, Exif data, and Photoshop
|
212
|
+
settings. In some files, these extra markers can be sizable. Note that this
|
213
|
+
option will copy thumbnails as-is; they will not be transformed.
|
214
|
+
.PP
|
215
|
+
The default behavior is \fB-copy comments\fR. (Note: in IJG releases v6 and
|
216
|
+
v6a, \fBjpegtran\fR always did the equivalent of \fB-copy none\fR.)
|
217
|
+
.PP
|
218
|
+
Additional switches recognized by jpegtran are:
|
219
|
+
.TP
|
220
|
+
.BI \-maxmemory " N"
|
221
|
+
Set limit for amount of memory to use in processing large images. Value is
|
222
|
+
in thousands of bytes, or millions of bytes if "M" is attached to the
|
223
|
+
number. For example,
|
224
|
+
.B \-max 4m
|
225
|
+
selects 4000000 bytes. If more space is needed, an error will occur.
|
226
|
+
.TP
|
227
|
+
.BI \-outfile " name"
|
228
|
+
Send output image to the named file, not to standard output.
|
229
|
+
.TP
|
230
|
+
.B \-verbose
|
231
|
+
Enable debug printout. More
|
232
|
+
.BR \-v 's
|
233
|
+
give more output. Also, version information is printed at startup.
|
234
|
+
.TP
|
235
|
+
.B \-debug
|
236
|
+
Same as
|
237
|
+
.BR \-verbose .
|
238
|
+
.TP
|
239
|
+
.B \-version
|
240
|
+
Print version information and exit.
|
241
|
+
.SH EXAMPLES
|
242
|
+
.LP
|
243
|
+
This example converts a baseline JPEG file to progressive form:
|
244
|
+
.IP
|
245
|
+
.B jpegtran \-progressive
|
246
|
+
.I foo.jpg
|
247
|
+
.B >
|
248
|
+
.I fooprog.jpg
|
249
|
+
.PP
|
250
|
+
This example rotates an image 90 degrees clockwise, discarding any
|
251
|
+
unrotatable edge pixels:
|
252
|
+
.IP
|
253
|
+
.B jpegtran \-rot 90 -trim
|
254
|
+
.I foo.jpg
|
255
|
+
.B >
|
256
|
+
.I foo90.jpg
|
257
|
+
.SH ENVIRONMENT
|
258
|
+
.TP
|
259
|
+
.B JPEGMEM
|
260
|
+
If this environment variable is set, its value is the default memory limit.
|
261
|
+
The value is specified as described for the
|
262
|
+
.B \-maxmemory
|
263
|
+
switch.
|
264
|
+
.B JPEGMEM
|
265
|
+
overrides the default value specified when the program was compiled, and
|
266
|
+
itself is overridden by an explicit
|
267
|
+
.BR \-maxmemory .
|
268
|
+
.SH SEE ALSO
|
269
|
+
.BR cjpeg (1),
|
270
|
+
.BR djpeg (1),
|
271
|
+
.BR rdjpgcom (1),
|
272
|
+
.BR wrjpgcom (1)
|
273
|
+
.br
|
274
|
+
Wallace, Gregory K. "The JPEG Still Picture Compression Standard",
|
275
|
+
Communications of the ACM, April 1991 (vol. 34, no. 4), pp. 30-44.
|
276
|
+
.SH AUTHOR
|
277
|
+
Independent JPEG Group
|
278
|
+
.PP
|
279
|
+
This file was modified by The libjpeg-turbo Project to include only information
|
280
|
+
relevant to libjpeg-turbo and to wordsmith certain sections.
|
281
|
+
.SH BUGS
|
282
|
+
The transform options can't transform odd-size images perfectly. Use
|
283
|
+
.B \-trim
|
284
|
+
or
|
285
|
+
.B \-perfect
|
286
|
+
if you don't like the results.
|
287
|
+
.PP
|
288
|
+
The entire image is read into memory and then written out again, even in
|
289
|
+
cases where this isn't really necessary. Expect swapping on large images,
|
290
|
+
especially when using the more complex transform options.
|
@@ -0,0 +1,551 @@
|
|
1
|
+
/*
|
2
|
+
* jpegtran.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1995-2010, Thomas G. Lane, Guido Vollbeding.
|
6
|
+
* libjpeg-turbo Modifications:
|
7
|
+
* Copyright (C) 2010, 2014, 2017, D. R. Commander.
|
8
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
9
|
+
* file.
|
10
|
+
*
|
11
|
+
* This file contains a command-line user interface for JPEG transcoding.
|
12
|
+
* It is very similar to cjpeg.c, and partly to djpeg.c, but provides
|
13
|
+
* lossless transcoding between different JPEG file formats. It also
|
14
|
+
* provides some lossless and sort-of-lossless transformations of JPEG data.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
|
18
|
+
#include "transupp.h" /* Support routines for jpegtran */
|
19
|
+
#include "jversion.h" /* for version message */
|
20
|
+
#include "jconfigint.h"
|
21
|
+
|
22
|
+
#ifdef USE_CCOMMAND /* command-line reader for Macintosh */
|
23
|
+
#ifdef __MWERKS__
|
24
|
+
#include <SIOUX.h> /* Metrowerks needs this */
|
25
|
+
#include <console.h> /* ... and this */
|
26
|
+
#endif
|
27
|
+
#ifdef THINK_C
|
28
|
+
#include <console.h> /* Think declares it here */
|
29
|
+
#endif
|
30
|
+
#endif
|
31
|
+
|
32
|
+
|
33
|
+
/*
|
34
|
+
* Argument-parsing code.
|
35
|
+
* The switch parser is designed to be useful with DOS-style command line
|
36
|
+
* syntax, ie, intermixed switches and file names, where only the switches
|
37
|
+
* to the left of a given file name affect processing of that file.
|
38
|
+
* The main program in this file doesn't actually use this capability...
|
39
|
+
*/
|
40
|
+
|
41
|
+
|
42
|
+
static const char *progname; /* program name for error messages */
|
43
|
+
static char *outfilename; /* for -outfile switch */
|
44
|
+
static JCOPY_OPTION copyoption; /* -copy switch */
|
45
|
+
static jpeg_transform_info transformoption; /* image transformation options */
|
46
|
+
|
47
|
+
|
48
|
+
LOCAL(void)
|
49
|
+
usage (void)
|
50
|
+
/* complain about bad command line */
|
51
|
+
{
|
52
|
+
fprintf(stderr, "usage: %s [switches] ", progname);
|
53
|
+
#ifdef TWO_FILE_COMMANDLINE
|
54
|
+
fprintf(stderr, "inputfile outputfile\n");
|
55
|
+
#else
|
56
|
+
fprintf(stderr, "[inputfile]\n");
|
57
|
+
#endif
|
58
|
+
|
59
|
+
fprintf(stderr, "Switches (names may be abbreviated):\n");
|
60
|
+
fprintf(stderr, " -copy none Copy no extra markers from source file\n");
|
61
|
+
fprintf(stderr, " -copy comments Copy only comment markers (default)\n");
|
62
|
+
fprintf(stderr, " -copy all Copy all extra markers\n");
|
63
|
+
#ifdef ENTROPY_OPT_SUPPORTED
|
64
|
+
fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n");
|
65
|
+
#endif
|
66
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
67
|
+
fprintf(stderr, " -progressive Create progressive JPEG file\n");
|
68
|
+
#endif
|
69
|
+
fprintf(stderr, "Switches for modifying the image:\n");
|
70
|
+
#if TRANSFORMS_SUPPORTED
|
71
|
+
fprintf(stderr, " -crop WxH+X+Y Crop to a rectangular subarea\n");
|
72
|
+
fprintf(stderr, " -grayscale Reduce to grayscale (omit color data)\n");
|
73
|
+
fprintf(stderr, " -flip [horizontal|vertical] Mirror image (left-right or top-bottom)\n");
|
74
|
+
fprintf(stderr, " -perfect Fail if there is non-transformable edge blocks\n");
|
75
|
+
fprintf(stderr, " -rotate [90|180|270] Rotate image (degrees clockwise)\n");
|
76
|
+
#endif
|
77
|
+
#if TRANSFORMS_SUPPORTED
|
78
|
+
fprintf(stderr, " -transpose Transpose image\n");
|
79
|
+
fprintf(stderr, " -transverse Transverse transpose image\n");
|
80
|
+
fprintf(stderr, " -trim Drop non-transformable edge blocks\n");
|
81
|
+
#endif
|
82
|
+
fprintf(stderr, "Switches for advanced users:\n");
|
83
|
+
#ifdef C_ARITH_CODING_SUPPORTED
|
84
|
+
fprintf(stderr, " -arithmetic Use arithmetic coding\n");
|
85
|
+
#endif
|
86
|
+
fprintf(stderr, " -restart N Set restart interval in rows, or in blocks with B\n");
|
87
|
+
fprintf(stderr, " -maxmemory N Maximum memory to use (in kbytes)\n");
|
88
|
+
fprintf(stderr, " -outfile name Specify name for output file\n");
|
89
|
+
fprintf(stderr, " -verbose or -debug Emit debug output\n");
|
90
|
+
fprintf(stderr, " -version Print version information and exit\n");
|
91
|
+
fprintf(stderr, "Switches for wizards:\n");
|
92
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
93
|
+
fprintf(stderr, " -scans FILE Create multi-scan JPEG per script FILE\n");
|
94
|
+
#endif
|
95
|
+
exit(EXIT_FAILURE);
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
LOCAL(void)
|
100
|
+
select_transform (JXFORM_CODE transform)
|
101
|
+
/* Silly little routine to detect multiple transform options,
|
102
|
+
* which we can't handle.
|
103
|
+
*/
|
104
|
+
{
|
105
|
+
#if TRANSFORMS_SUPPORTED
|
106
|
+
if (transformoption.transform == JXFORM_NONE ||
|
107
|
+
transformoption.transform == transform) {
|
108
|
+
transformoption.transform = transform;
|
109
|
+
} else {
|
110
|
+
fprintf(stderr, "%s: can only do one image transformation at a time\n",
|
111
|
+
progname);
|
112
|
+
usage();
|
113
|
+
}
|
114
|
+
#else
|
115
|
+
fprintf(stderr, "%s: sorry, image transformation was not compiled\n",
|
116
|
+
progname);
|
117
|
+
exit(EXIT_FAILURE);
|
118
|
+
#endif
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
LOCAL(int)
|
123
|
+
parse_switches (j_compress_ptr cinfo, int argc, char **argv,
|
124
|
+
int last_file_arg_seen, boolean for_real)
|
125
|
+
/* Parse optional switches.
|
126
|
+
* Returns argv[] index of first file-name argument (== argc if none).
|
127
|
+
* Any file names with indexes <= last_file_arg_seen are ignored;
|
128
|
+
* they have presumably been processed in a previous iteration.
|
129
|
+
* (Pass 0 for last_file_arg_seen on the first or only iteration.)
|
130
|
+
* for_real is FALSE on the first (dummy) pass; we may skip any expensive
|
131
|
+
* processing.
|
132
|
+
*/
|
133
|
+
{
|
134
|
+
int argn;
|
135
|
+
char *arg;
|
136
|
+
boolean simple_progressive;
|
137
|
+
char *scansarg = NULL; /* saves -scans parm if any */
|
138
|
+
|
139
|
+
/* Set up default JPEG parameters. */
|
140
|
+
simple_progressive = FALSE;
|
141
|
+
outfilename = NULL;
|
142
|
+
copyoption = JCOPYOPT_DEFAULT;
|
143
|
+
transformoption.transform = JXFORM_NONE;
|
144
|
+
transformoption.perfect = FALSE;
|
145
|
+
transformoption.trim = FALSE;
|
146
|
+
transformoption.force_grayscale = FALSE;
|
147
|
+
transformoption.crop = FALSE;
|
148
|
+
transformoption.slow_hflip = FALSE;
|
149
|
+
cinfo->err->trace_level = 0;
|
150
|
+
|
151
|
+
/* Scan command line options, adjust parameters */
|
152
|
+
|
153
|
+
for (argn = 1; argn < argc; argn++) {
|
154
|
+
arg = argv[argn];
|
155
|
+
if (*arg != '-') {
|
156
|
+
/* Not a switch, must be a file name argument */
|
157
|
+
if (argn <= last_file_arg_seen) {
|
158
|
+
outfilename = NULL; /* -outfile applies to just one input file */
|
159
|
+
continue; /* ignore this name if previously processed */
|
160
|
+
}
|
161
|
+
break; /* else done parsing switches */
|
162
|
+
}
|
163
|
+
arg++; /* advance past switch marker character */
|
164
|
+
|
165
|
+
if (keymatch(arg, "arithmetic", 1)) {
|
166
|
+
/* Use arithmetic coding. */
|
167
|
+
#ifdef C_ARITH_CODING_SUPPORTED
|
168
|
+
cinfo->arith_code = TRUE;
|
169
|
+
#else
|
170
|
+
fprintf(stderr, "%s: sorry, arithmetic coding not supported\n",
|
171
|
+
progname);
|
172
|
+
exit(EXIT_FAILURE);
|
173
|
+
#endif
|
174
|
+
|
175
|
+
} else if (keymatch(arg, "copy", 2)) {
|
176
|
+
/* Select which extra markers to copy. */
|
177
|
+
if (++argn >= argc) /* advance to next argument */
|
178
|
+
usage();
|
179
|
+
if (keymatch(argv[argn], "none", 1)) {
|
180
|
+
copyoption = JCOPYOPT_NONE;
|
181
|
+
} else if (keymatch(argv[argn], "comments", 1)) {
|
182
|
+
copyoption = JCOPYOPT_COMMENTS;
|
183
|
+
} else if (keymatch(argv[argn], "all", 1)) {
|
184
|
+
copyoption = JCOPYOPT_ALL;
|
185
|
+
} else
|
186
|
+
usage();
|
187
|
+
|
188
|
+
} else if (keymatch(arg, "crop", 2)) {
|
189
|
+
/* Perform lossless cropping. */
|
190
|
+
#if TRANSFORMS_SUPPORTED
|
191
|
+
if (++argn >= argc) /* advance to next argument */
|
192
|
+
usage();
|
193
|
+
if (! jtransform_parse_crop_spec(&transformoption, argv[argn])) {
|
194
|
+
fprintf(stderr, "%s: bogus -crop argument '%s'\n",
|
195
|
+
progname, argv[argn]);
|
196
|
+
exit(EXIT_FAILURE);
|
197
|
+
}
|
198
|
+
#else
|
199
|
+
select_transform(JXFORM_NONE); /* force an error */
|
200
|
+
#endif
|
201
|
+
|
202
|
+
} else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) {
|
203
|
+
/* Enable debug printouts. */
|
204
|
+
/* On first -d, print version identification */
|
205
|
+
static boolean printed_version = FALSE;
|
206
|
+
|
207
|
+
if (! printed_version) {
|
208
|
+
fprintf(stderr, "%s version %s (build %s)\n",
|
209
|
+
PACKAGE_NAME, VERSION, BUILD);
|
210
|
+
fprintf(stderr, "%s\n\n", JCOPYRIGHT);
|
211
|
+
fprintf(stderr, "Emulating The Independent JPEG Group's software, version %s\n\n",
|
212
|
+
JVERSION);
|
213
|
+
printed_version = TRUE;
|
214
|
+
}
|
215
|
+
cinfo->err->trace_level++;
|
216
|
+
|
217
|
+
} else if (keymatch(arg, "version", 4)) {
|
218
|
+
fprintf(stderr, "%s version %s (build %s)\n",
|
219
|
+
PACKAGE_NAME, VERSION, BUILD);
|
220
|
+
exit(EXIT_SUCCESS);
|
221
|
+
|
222
|
+
} else if (keymatch(arg, "flip", 1)) {
|
223
|
+
/* Mirror left-right or top-bottom. */
|
224
|
+
if (++argn >= argc) /* advance to next argument */
|
225
|
+
usage();
|
226
|
+
if (keymatch(argv[argn], "horizontal", 1))
|
227
|
+
select_transform(JXFORM_FLIP_H);
|
228
|
+
else if (keymatch(argv[argn], "vertical", 1))
|
229
|
+
select_transform(JXFORM_FLIP_V);
|
230
|
+
else
|
231
|
+
usage();
|
232
|
+
|
233
|
+
} else if (keymatch(arg, "grayscale", 1) || keymatch(arg, "greyscale",1)) {
|
234
|
+
/* Force to grayscale. */
|
235
|
+
#if TRANSFORMS_SUPPORTED
|
236
|
+
transformoption.force_grayscale = TRUE;
|
237
|
+
#else
|
238
|
+
select_transform(JXFORM_NONE); /* force an error */
|
239
|
+
#endif
|
240
|
+
|
241
|
+
} else if (keymatch(arg, "maxmemory", 3)) {
|
242
|
+
/* Maximum memory in Kb (or Mb with 'm'). */
|
243
|
+
long lval;
|
244
|
+
char ch = 'x';
|
245
|
+
|
246
|
+
if (++argn >= argc) /* advance to next argument */
|
247
|
+
usage();
|
248
|
+
if (sscanf(argv[argn], "%ld%c", &lval, &ch) < 1)
|
249
|
+
usage();
|
250
|
+
if (ch == 'm' || ch == 'M')
|
251
|
+
lval *= 1000L;
|
252
|
+
cinfo->mem->max_memory_to_use = lval * 1000L;
|
253
|
+
|
254
|
+
} else if (keymatch(arg, "optimize", 1) || keymatch(arg, "optimise", 1)) {
|
255
|
+
/* Enable entropy parm optimization. */
|
256
|
+
#ifdef ENTROPY_OPT_SUPPORTED
|
257
|
+
cinfo->optimize_coding = TRUE;
|
258
|
+
#else
|
259
|
+
fprintf(stderr, "%s: sorry, entropy optimization was not compiled\n",
|
260
|
+
progname);
|
261
|
+
exit(EXIT_FAILURE);
|
262
|
+
#endif
|
263
|
+
|
264
|
+
} else if (keymatch(arg, "outfile", 4)) {
|
265
|
+
/* Set output file name. */
|
266
|
+
if (++argn >= argc) /* advance to next argument */
|
267
|
+
usage();
|
268
|
+
outfilename = argv[argn]; /* save it away for later use */
|
269
|
+
|
270
|
+
} else if (keymatch(arg, "perfect", 2)) {
|
271
|
+
/* Fail if there is any partial edge MCUs that the transform can't
|
272
|
+
* handle. */
|
273
|
+
transformoption.perfect = TRUE;
|
274
|
+
|
275
|
+
} else if (keymatch(arg, "progressive", 2)) {
|
276
|
+
/* Select simple progressive mode. */
|
277
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
278
|
+
simple_progressive = TRUE;
|
279
|
+
/* We must postpone execution until num_components is known. */
|
280
|
+
#else
|
281
|
+
fprintf(stderr, "%s: sorry, progressive output was not compiled\n",
|
282
|
+
progname);
|
283
|
+
exit(EXIT_FAILURE);
|
284
|
+
#endif
|
285
|
+
|
286
|
+
} else if (keymatch(arg, "restart", 1)) {
|
287
|
+
/* Restart interval in MCU rows (or in MCUs with 'b'). */
|
288
|
+
long lval;
|
289
|
+
char ch = 'x';
|
290
|
+
|
291
|
+
if (++argn >= argc) /* advance to next argument */
|
292
|
+
usage();
|
293
|
+
if (sscanf(argv[argn], "%ld%c", &lval, &ch) < 1)
|
294
|
+
usage();
|
295
|
+
if (lval < 0 || lval > 65535L)
|
296
|
+
usage();
|
297
|
+
if (ch == 'b' || ch == 'B') {
|
298
|
+
cinfo->restart_interval = (unsigned int) lval;
|
299
|
+
cinfo->restart_in_rows = 0; /* else prior '-restart n' overrides me */
|
300
|
+
} else {
|
301
|
+
cinfo->restart_in_rows = (int) lval;
|
302
|
+
/* restart_interval will be computed during startup */
|
303
|
+
}
|
304
|
+
|
305
|
+
} else if (keymatch(arg, "rotate", 2)) {
|
306
|
+
/* Rotate 90, 180, or 270 degrees (measured clockwise). */
|
307
|
+
if (++argn >= argc) /* advance to next argument */
|
308
|
+
usage();
|
309
|
+
if (keymatch(argv[argn], "90", 2))
|
310
|
+
select_transform(JXFORM_ROT_90);
|
311
|
+
else if (keymatch(argv[argn], "180", 3))
|
312
|
+
select_transform(JXFORM_ROT_180);
|
313
|
+
else if (keymatch(argv[argn], "270", 3))
|
314
|
+
select_transform(JXFORM_ROT_270);
|
315
|
+
else
|
316
|
+
usage();
|
317
|
+
|
318
|
+
} else if (keymatch(arg, "scans", 1)) {
|
319
|
+
/* Set scan script. */
|
320
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
321
|
+
if (++argn >= argc) /* advance to next argument */
|
322
|
+
usage();
|
323
|
+
scansarg = argv[argn];
|
324
|
+
/* We must postpone reading the file in case -progressive appears. */
|
325
|
+
#else
|
326
|
+
fprintf(stderr, "%s: sorry, multi-scan output was not compiled\n",
|
327
|
+
progname);
|
328
|
+
exit(EXIT_FAILURE);
|
329
|
+
#endif
|
330
|
+
|
331
|
+
} else if (keymatch(arg, "transpose", 1)) {
|
332
|
+
/* Transpose (across UL-to-LR axis). */
|
333
|
+
select_transform(JXFORM_TRANSPOSE);
|
334
|
+
|
335
|
+
} else if (keymatch(arg, "transverse", 6)) {
|
336
|
+
/* Transverse transpose (across UR-to-LL axis). */
|
337
|
+
select_transform(JXFORM_TRANSVERSE);
|
338
|
+
|
339
|
+
} else if (keymatch(arg, "trim", 3)) {
|
340
|
+
/* Trim off any partial edge MCUs that the transform can't handle. */
|
341
|
+
transformoption.trim = TRUE;
|
342
|
+
|
343
|
+
} else {
|
344
|
+
usage(); /* bogus switch */
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
/* Post-switch-scanning cleanup */
|
349
|
+
|
350
|
+
if (for_real) {
|
351
|
+
|
352
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
353
|
+
if (simple_progressive) /* process -progressive; -scans can override */
|
354
|
+
jpeg_simple_progression(cinfo);
|
355
|
+
#endif
|
356
|
+
|
357
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
358
|
+
if (scansarg != NULL) /* process -scans if it was present */
|
359
|
+
if (! read_scan_script(cinfo, scansarg))
|
360
|
+
usage();
|
361
|
+
#endif
|
362
|
+
}
|
363
|
+
|
364
|
+
return argn; /* return index of next arg (file name) */
|
365
|
+
}
|
366
|
+
|
367
|
+
|
368
|
+
/*
|
369
|
+
* The main program.
|
370
|
+
*/
|
371
|
+
|
372
|
+
int
|
373
|
+
main (int argc, char **argv)
|
374
|
+
{
|
375
|
+
struct jpeg_decompress_struct srcinfo;
|
376
|
+
struct jpeg_compress_struct dstinfo;
|
377
|
+
struct jpeg_error_mgr jsrcerr, jdsterr;
|
378
|
+
#ifdef PROGRESS_REPORT
|
379
|
+
struct cdjpeg_progress_mgr progress;
|
380
|
+
#endif
|
381
|
+
jvirt_barray_ptr *src_coef_arrays;
|
382
|
+
jvirt_barray_ptr *dst_coef_arrays;
|
383
|
+
int file_index;
|
384
|
+
/* We assume all-in-memory processing and can therefore use only a
|
385
|
+
* single file pointer for sequential input and output operation.
|
386
|
+
*/
|
387
|
+
FILE *fp;
|
388
|
+
|
389
|
+
/* On Mac, fetch a command line. */
|
390
|
+
#ifdef USE_CCOMMAND
|
391
|
+
argc = ccommand(&argv);
|
392
|
+
#endif
|
393
|
+
|
394
|
+
progname = argv[0];
|
395
|
+
if (progname == NULL || progname[0] == 0)
|
396
|
+
progname = "jpegtran"; /* in case C library doesn't provide it */
|
397
|
+
|
398
|
+
/* Initialize the JPEG decompression object with default error handling. */
|
399
|
+
srcinfo.err = jpeg_std_error(&jsrcerr);
|
400
|
+
jpeg_create_decompress(&srcinfo);
|
401
|
+
/* Initialize the JPEG compression object with default error handling. */
|
402
|
+
dstinfo.err = jpeg_std_error(&jdsterr);
|
403
|
+
jpeg_create_compress(&dstinfo);
|
404
|
+
|
405
|
+
/* Scan command line to find file names.
|
406
|
+
* It is convenient to use just one switch-parsing routine, but the switch
|
407
|
+
* values read here are mostly ignored; we will rescan the switches after
|
408
|
+
* opening the input file. Also note that most of the switches affect the
|
409
|
+
* destination JPEG object, so we parse into that and then copy over what
|
410
|
+
* needs to affects the source too.
|
411
|
+
*/
|
412
|
+
|
413
|
+
file_index = parse_switches(&dstinfo, argc, argv, 0, FALSE);
|
414
|
+
jsrcerr.trace_level = jdsterr.trace_level;
|
415
|
+
srcinfo.mem->max_memory_to_use = dstinfo.mem->max_memory_to_use;
|
416
|
+
|
417
|
+
#ifdef TWO_FILE_COMMANDLINE
|
418
|
+
/* Must have either -outfile switch or explicit output file name */
|
419
|
+
if (outfilename == NULL) {
|
420
|
+
if (file_index != argc-2) {
|
421
|
+
fprintf(stderr, "%s: must name one input and one output file\n",
|
422
|
+
progname);
|
423
|
+
usage();
|
424
|
+
}
|
425
|
+
outfilename = argv[file_index+1];
|
426
|
+
} else {
|
427
|
+
if (file_index != argc-1) {
|
428
|
+
fprintf(stderr, "%s: must name one input and one output file\n",
|
429
|
+
progname);
|
430
|
+
usage();
|
431
|
+
}
|
432
|
+
}
|
433
|
+
#else
|
434
|
+
/* Unix style: expect zero or one file name */
|
435
|
+
if (file_index < argc-1) {
|
436
|
+
fprintf(stderr, "%s: only one input file\n", progname);
|
437
|
+
usage();
|
438
|
+
}
|
439
|
+
#endif /* TWO_FILE_COMMANDLINE */
|
440
|
+
|
441
|
+
/* Open the input file. */
|
442
|
+
if (file_index < argc) {
|
443
|
+
if ((fp = fopen(argv[file_index], READ_BINARY)) == NULL) {
|
444
|
+
fprintf(stderr, "%s: can't open %s for reading\n", progname, argv[file_index]);
|
445
|
+
exit(EXIT_FAILURE);
|
446
|
+
}
|
447
|
+
} else {
|
448
|
+
/* default input file is stdin */
|
449
|
+
fp = read_stdin();
|
450
|
+
}
|
451
|
+
|
452
|
+
#ifdef PROGRESS_REPORT
|
453
|
+
start_progress_monitor((j_common_ptr) &dstinfo, &progress);
|
454
|
+
#endif
|
455
|
+
|
456
|
+
/* Specify data source for decompression */
|
457
|
+
jpeg_stdio_src(&srcinfo, fp);
|
458
|
+
|
459
|
+
/* Enable saving of extra markers that we want to copy */
|
460
|
+
jcopy_markers_setup(&srcinfo, copyoption);
|
461
|
+
|
462
|
+
/* Read file header */
|
463
|
+
(void) jpeg_read_header(&srcinfo, TRUE);
|
464
|
+
|
465
|
+
/* Any space needed by a transform option must be requested before
|
466
|
+
* jpeg_read_coefficients so that memory allocation will be done right.
|
467
|
+
*/
|
468
|
+
#if TRANSFORMS_SUPPORTED
|
469
|
+
/* Fail right away if -perfect is given and transformation is not perfect.
|
470
|
+
*/
|
471
|
+
if (!jtransform_request_workspace(&srcinfo, &transformoption)) {
|
472
|
+
fprintf(stderr, "%s: transformation is not perfect\n", progname);
|
473
|
+
exit(EXIT_FAILURE);
|
474
|
+
}
|
475
|
+
#endif
|
476
|
+
|
477
|
+
/* Read source file as DCT coefficients */
|
478
|
+
src_coef_arrays = jpeg_read_coefficients(&srcinfo);
|
479
|
+
|
480
|
+
/* Initialize destination compression parameters from source values */
|
481
|
+
jpeg_copy_critical_parameters(&srcinfo, &dstinfo);
|
482
|
+
|
483
|
+
/* Adjust destination parameters if required by transform options;
|
484
|
+
* also find out which set of coefficient arrays will hold the output.
|
485
|
+
*/
|
486
|
+
#if TRANSFORMS_SUPPORTED
|
487
|
+
dst_coef_arrays = jtransform_adjust_parameters(&srcinfo, &dstinfo,
|
488
|
+
src_coef_arrays,
|
489
|
+
&transformoption);
|
490
|
+
#else
|
491
|
+
dst_coef_arrays = src_coef_arrays;
|
492
|
+
#endif
|
493
|
+
|
494
|
+
/* Close input file, if we opened it.
|
495
|
+
* Note: we assume that jpeg_read_coefficients consumed all input
|
496
|
+
* until JPEG_REACHED_EOI, and that jpeg_finish_decompress will
|
497
|
+
* only consume more while (! cinfo->inputctl->eoi_reached).
|
498
|
+
* We cannot call jpeg_finish_decompress here since we still need the
|
499
|
+
* virtual arrays allocated from the source object for processing.
|
500
|
+
*/
|
501
|
+
if (fp != stdin)
|
502
|
+
fclose(fp);
|
503
|
+
|
504
|
+
/* Open the output file. */
|
505
|
+
if (outfilename != NULL) {
|
506
|
+
if ((fp = fopen(outfilename, WRITE_BINARY)) == NULL) {
|
507
|
+
fprintf(stderr, "%s: can't open %s for writing\n", progname, outfilename);
|
508
|
+
exit(EXIT_FAILURE);
|
509
|
+
}
|
510
|
+
} else {
|
511
|
+
/* default output file is stdout */
|
512
|
+
fp = write_stdout();
|
513
|
+
}
|
514
|
+
|
515
|
+
/* Adjust default compression parameters by re-parsing the options */
|
516
|
+
file_index = parse_switches(&dstinfo, argc, argv, 0, TRUE);
|
517
|
+
|
518
|
+
/* Specify data destination for compression */
|
519
|
+
jpeg_stdio_dest(&dstinfo, fp);
|
520
|
+
|
521
|
+
/* Start compressor (note no image data is actually written here) */
|
522
|
+
jpeg_write_coefficients(&dstinfo, dst_coef_arrays);
|
523
|
+
|
524
|
+
/* Copy to the output file any extra markers that we want to preserve */
|
525
|
+
jcopy_markers_execute(&srcinfo, &dstinfo, copyoption);
|
526
|
+
|
527
|
+
/* Execute image transformation, if any */
|
528
|
+
#if TRANSFORMS_SUPPORTED
|
529
|
+
jtransform_execute_transformation(&srcinfo, &dstinfo,
|
530
|
+
src_coef_arrays,
|
531
|
+
&transformoption);
|
532
|
+
#endif
|
533
|
+
|
534
|
+
/* Finish compression and release memory */
|
535
|
+
jpeg_finish_compress(&dstinfo);
|
536
|
+
jpeg_destroy_compress(&dstinfo);
|
537
|
+
(void) jpeg_finish_decompress(&srcinfo);
|
538
|
+
jpeg_destroy_decompress(&srcinfo);
|
539
|
+
|
540
|
+
/* Close output file, if we opened it */
|
541
|
+
if (fp != stdout)
|
542
|
+
fclose(fp);
|
543
|
+
|
544
|
+
#ifdef PROGRESS_REPORT
|
545
|
+
end_progress_monitor((j_common_ptr) &dstinfo);
|
546
|
+
#endif
|
547
|
+
|
548
|
+
/* All done. */
|
549
|
+
exit(jsrcerr.num_warnings + jdsterr.num_warnings ?EXIT_WARNING:EXIT_SUCCESS);
|
550
|
+
return 0; /* suppress no-return-value warnings */
|
551
|
+
}
|