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,644 @@
|
|
1
|
+
/*
|
2
|
+
* cjpeg.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1991-1998, Thomas G. Lane.
|
6
|
+
* Modified 2003-2011 by Guido Vollbeding.
|
7
|
+
* libjpeg-turbo Modifications:
|
8
|
+
* Copyright (C) 2010, 2013-2014, 2017, D. R. Commander.
|
9
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
10
|
+
* file.
|
11
|
+
*
|
12
|
+
* This file contains a command-line user interface for the JPEG compressor.
|
13
|
+
* It should work on any system with Unix- or MS-DOS-style command lines.
|
14
|
+
*
|
15
|
+
* Two different command line styles are permitted, depending on the
|
16
|
+
* compile-time switch TWO_FILE_COMMANDLINE:
|
17
|
+
* cjpeg [options] inputfile outputfile
|
18
|
+
* cjpeg [options] [inputfile]
|
19
|
+
* In the second style, output is always to standard output, which you'd
|
20
|
+
* normally redirect to a file or pipe to some other program. Input is
|
21
|
+
* either from a named file or from standard input (typically redirected).
|
22
|
+
* The second style is convenient on Unix but is unhelpful on systems that
|
23
|
+
* don't support pipes. Also, you MUST use the first style if your system
|
24
|
+
* doesn't do binary I/O to stdin/stdout.
|
25
|
+
* To simplify script writing, the "-outfile" switch is provided. The syntax
|
26
|
+
* cjpeg [options] -outfile outputfile inputfile
|
27
|
+
* works regardless of which command line style is used.
|
28
|
+
*/
|
29
|
+
|
30
|
+
#include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
|
31
|
+
#include "jversion.h" /* for version message */
|
32
|
+
#include "jconfigint.h"
|
33
|
+
|
34
|
+
#ifdef USE_CCOMMAND /* command-line reader for Macintosh */
|
35
|
+
#ifdef __MWERKS__
|
36
|
+
#include <SIOUX.h> /* Metrowerks needs this */
|
37
|
+
#include <console.h> /* ... and this */
|
38
|
+
#endif
|
39
|
+
#ifdef THINK_C
|
40
|
+
#include <console.h> /* Think declares it here */
|
41
|
+
#endif
|
42
|
+
#endif
|
43
|
+
|
44
|
+
|
45
|
+
/* Create the add-on message string table. */
|
46
|
+
|
47
|
+
#define JMESSAGE(code,string) string ,
|
48
|
+
|
49
|
+
static const char * const cdjpeg_message_table[] = {
|
50
|
+
#include "cderror.h"
|
51
|
+
NULL
|
52
|
+
};
|
53
|
+
|
54
|
+
|
55
|
+
/*
|
56
|
+
* This routine determines what format the input file is,
|
57
|
+
* and selects the appropriate input-reading module.
|
58
|
+
*
|
59
|
+
* To determine which family of input formats the file belongs to,
|
60
|
+
* we may look only at the first byte of the file, since C does not
|
61
|
+
* guarantee that more than one character can be pushed back with ungetc.
|
62
|
+
* Looking at additional bytes would require one of these approaches:
|
63
|
+
* 1) assume we can fseek() the input file (fails for piped input);
|
64
|
+
* 2) assume we can push back more than one character (works in
|
65
|
+
* some C implementations, but unportable);
|
66
|
+
* 3) provide our own buffering (breaks input readers that want to use
|
67
|
+
* stdio directly, such as the RLE library);
|
68
|
+
* or 4) don't put back the data, and modify the input_init methods to assume
|
69
|
+
* they start reading after the start of file (also breaks RLE library).
|
70
|
+
* #1 is attractive for MS-DOS but is untenable on Unix.
|
71
|
+
*
|
72
|
+
* The most portable solution for file types that can't be identified by their
|
73
|
+
* first byte is to make the user tell us what they are. This is also the
|
74
|
+
* only approach for "raw" file types that contain only arbitrary values.
|
75
|
+
* We presently apply this method for Targa files. Most of the time Targa
|
76
|
+
* files start with 0x00, so we recognize that case. Potentially, however,
|
77
|
+
* a Targa file could start with any byte value (byte 0 is the length of the
|
78
|
+
* seldom-used ID field), so we provide a switch to force Targa input mode.
|
79
|
+
*/
|
80
|
+
|
81
|
+
static boolean is_targa; /* records user -targa switch */
|
82
|
+
|
83
|
+
|
84
|
+
LOCAL(cjpeg_source_ptr)
|
85
|
+
select_file_type (j_compress_ptr cinfo, FILE *infile)
|
86
|
+
{
|
87
|
+
int c;
|
88
|
+
|
89
|
+
if (is_targa) {
|
90
|
+
#ifdef TARGA_SUPPORTED
|
91
|
+
return jinit_read_targa(cinfo);
|
92
|
+
#else
|
93
|
+
ERREXIT(cinfo, JERR_TGA_NOTCOMP);
|
94
|
+
#endif
|
95
|
+
}
|
96
|
+
|
97
|
+
if ((c = getc(infile)) == EOF)
|
98
|
+
ERREXIT(cinfo, JERR_INPUT_EMPTY);
|
99
|
+
if (ungetc(c, infile) == EOF)
|
100
|
+
ERREXIT(cinfo, JERR_UNGETC_FAILED);
|
101
|
+
|
102
|
+
switch (c) {
|
103
|
+
#ifdef BMP_SUPPORTED
|
104
|
+
case 'B':
|
105
|
+
return jinit_read_bmp(cinfo);
|
106
|
+
#endif
|
107
|
+
#ifdef GIF_SUPPORTED
|
108
|
+
case 'G':
|
109
|
+
return jinit_read_gif(cinfo);
|
110
|
+
#endif
|
111
|
+
#ifdef PPM_SUPPORTED
|
112
|
+
case 'P':
|
113
|
+
return jinit_read_ppm(cinfo);
|
114
|
+
#endif
|
115
|
+
#ifdef RLE_SUPPORTED
|
116
|
+
case 'R':
|
117
|
+
return jinit_read_rle(cinfo);
|
118
|
+
#endif
|
119
|
+
#ifdef TARGA_SUPPORTED
|
120
|
+
case 0x00:
|
121
|
+
return jinit_read_targa(cinfo);
|
122
|
+
#endif
|
123
|
+
default:
|
124
|
+
ERREXIT(cinfo, JERR_UNKNOWN_FORMAT);
|
125
|
+
break;
|
126
|
+
}
|
127
|
+
|
128
|
+
return NULL; /* suppress compiler warnings */
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
/*
|
133
|
+
* Argument-parsing code.
|
134
|
+
* The switch parser is designed to be useful with DOS-style command line
|
135
|
+
* syntax, ie, intermixed switches and file names, where only the switches
|
136
|
+
* to the left of a given file name affect processing of that file.
|
137
|
+
* The main program in this file doesn't actually use this capability...
|
138
|
+
*/
|
139
|
+
|
140
|
+
|
141
|
+
static const char *progname; /* program name for error messages */
|
142
|
+
static char *outfilename; /* for -outfile switch */
|
143
|
+
boolean memdst; /* for -memdst switch */
|
144
|
+
|
145
|
+
|
146
|
+
LOCAL(void)
|
147
|
+
usage (void)
|
148
|
+
/* complain about bad command line */
|
149
|
+
{
|
150
|
+
fprintf(stderr, "usage: %s [switches] ", progname);
|
151
|
+
#ifdef TWO_FILE_COMMANDLINE
|
152
|
+
fprintf(stderr, "inputfile outputfile\n");
|
153
|
+
#else
|
154
|
+
fprintf(stderr, "[inputfile]\n");
|
155
|
+
#endif
|
156
|
+
|
157
|
+
fprintf(stderr, "Switches (names may be abbreviated):\n");
|
158
|
+
fprintf(stderr, " -quality N[,...] Compression quality (0..100; 5-95 is most useful range,\n");
|
159
|
+
fprintf(stderr, " default is 75)\n");
|
160
|
+
fprintf(stderr, " -grayscale Create monochrome JPEG file\n");
|
161
|
+
fprintf(stderr, " -rgb Create RGB JPEG file\n");
|
162
|
+
#ifdef ENTROPY_OPT_SUPPORTED
|
163
|
+
fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n");
|
164
|
+
#endif
|
165
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
166
|
+
fprintf(stderr, " -progressive Create progressive JPEG file\n");
|
167
|
+
#endif
|
168
|
+
#ifdef TARGA_SUPPORTED
|
169
|
+
fprintf(stderr, " -targa Input file is Targa format (usually not needed)\n");
|
170
|
+
#endif
|
171
|
+
fprintf(stderr, "Switches for advanced users:\n");
|
172
|
+
#ifdef C_ARITH_CODING_SUPPORTED
|
173
|
+
fprintf(stderr, " -arithmetic Use arithmetic coding\n");
|
174
|
+
#endif
|
175
|
+
#ifdef DCT_ISLOW_SUPPORTED
|
176
|
+
fprintf(stderr, " -dct int Use integer DCT method%s\n",
|
177
|
+
(JDCT_DEFAULT == JDCT_ISLOW ? " (default)" : ""));
|
178
|
+
#endif
|
179
|
+
#ifdef DCT_IFAST_SUPPORTED
|
180
|
+
fprintf(stderr, " -dct fast Use fast integer DCT (less accurate)%s\n",
|
181
|
+
(JDCT_DEFAULT == JDCT_IFAST ? " (default)" : ""));
|
182
|
+
#endif
|
183
|
+
#ifdef DCT_FLOAT_SUPPORTED
|
184
|
+
fprintf(stderr, " -dct float Use floating-point DCT method%s\n",
|
185
|
+
(JDCT_DEFAULT == JDCT_FLOAT ? " (default)" : ""));
|
186
|
+
#endif
|
187
|
+
fprintf(stderr, " -restart N Set restart interval in rows, or in blocks with B\n");
|
188
|
+
#ifdef INPUT_SMOOTHING_SUPPORTED
|
189
|
+
fprintf(stderr, " -smooth N Smooth dithered input (N=1..100 is strength)\n");
|
190
|
+
#endif
|
191
|
+
fprintf(stderr, " -maxmemory N Maximum memory to use (in kbytes)\n");
|
192
|
+
fprintf(stderr, " -outfile name Specify name for output file\n");
|
193
|
+
#if JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)
|
194
|
+
fprintf(stderr, " -memdst Compress to memory instead of file (useful for benchmarking)\n");
|
195
|
+
#endif
|
196
|
+
fprintf(stderr, " -verbose or -debug Emit debug output\n");
|
197
|
+
fprintf(stderr, " -version Print version information and exit\n");
|
198
|
+
fprintf(stderr, "Switches for wizards:\n");
|
199
|
+
fprintf(stderr, " -baseline Force baseline quantization tables\n");
|
200
|
+
fprintf(stderr, " -qtables FILE Use quantization tables given in FILE\n");
|
201
|
+
fprintf(stderr, " -qslots N[,...] Set component quantization tables\n");
|
202
|
+
fprintf(stderr, " -sample HxV[,...] Set component sampling factors\n");
|
203
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
204
|
+
fprintf(stderr, " -scans FILE Create multi-scan JPEG per script FILE\n");
|
205
|
+
#endif
|
206
|
+
exit(EXIT_FAILURE);
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
LOCAL(int)
|
211
|
+
parse_switches (j_compress_ptr cinfo, int argc, char **argv,
|
212
|
+
int last_file_arg_seen, boolean for_real)
|
213
|
+
/* Parse optional switches.
|
214
|
+
* Returns argv[] index of first file-name argument (== argc if none).
|
215
|
+
* Any file names with indexes <= last_file_arg_seen are ignored;
|
216
|
+
* they have presumably been processed in a previous iteration.
|
217
|
+
* (Pass 0 for last_file_arg_seen on the first or only iteration.)
|
218
|
+
* for_real is FALSE on the first (dummy) pass; we may skip any expensive
|
219
|
+
* processing.
|
220
|
+
*/
|
221
|
+
{
|
222
|
+
int argn;
|
223
|
+
char *arg;
|
224
|
+
boolean force_baseline;
|
225
|
+
boolean simple_progressive;
|
226
|
+
char *qualityarg = NULL; /* saves -quality parm if any */
|
227
|
+
char *qtablefile = NULL; /* saves -qtables filename if any */
|
228
|
+
char *qslotsarg = NULL; /* saves -qslots parm if any */
|
229
|
+
char *samplearg = NULL; /* saves -sample parm if any */
|
230
|
+
char *scansarg = NULL; /* saves -scans parm if any */
|
231
|
+
|
232
|
+
/* Set up default JPEG parameters. */
|
233
|
+
|
234
|
+
force_baseline = FALSE; /* by default, allow 16-bit quantizers */
|
235
|
+
simple_progressive = FALSE;
|
236
|
+
is_targa = FALSE;
|
237
|
+
outfilename = NULL;
|
238
|
+
memdst = FALSE;
|
239
|
+
cinfo->err->trace_level = 0;
|
240
|
+
|
241
|
+
/* Scan command line options, adjust parameters */
|
242
|
+
|
243
|
+
for (argn = 1; argn < argc; argn++) {
|
244
|
+
arg = argv[argn];
|
245
|
+
if (*arg != '-') {
|
246
|
+
/* Not a switch, must be a file name argument */
|
247
|
+
if (argn <= last_file_arg_seen) {
|
248
|
+
outfilename = NULL; /* -outfile applies to just one input file */
|
249
|
+
continue; /* ignore this name if previously processed */
|
250
|
+
}
|
251
|
+
break; /* else done parsing switches */
|
252
|
+
}
|
253
|
+
arg++; /* advance past switch marker character */
|
254
|
+
|
255
|
+
if (keymatch(arg, "arithmetic", 1)) {
|
256
|
+
/* Use arithmetic coding. */
|
257
|
+
#ifdef C_ARITH_CODING_SUPPORTED
|
258
|
+
cinfo->arith_code = TRUE;
|
259
|
+
#else
|
260
|
+
fprintf(stderr, "%s: sorry, arithmetic coding not supported\n",
|
261
|
+
progname);
|
262
|
+
exit(EXIT_FAILURE);
|
263
|
+
#endif
|
264
|
+
|
265
|
+
} else if (keymatch(arg, "baseline", 1)) {
|
266
|
+
/* Force baseline-compatible output (8-bit quantizer values). */
|
267
|
+
force_baseline = TRUE;
|
268
|
+
|
269
|
+
} else if (keymatch(arg, "dct", 2)) {
|
270
|
+
/* Select DCT algorithm. */
|
271
|
+
if (++argn >= argc) /* advance to next argument */
|
272
|
+
usage();
|
273
|
+
if (keymatch(argv[argn], "int", 1)) {
|
274
|
+
cinfo->dct_method = JDCT_ISLOW;
|
275
|
+
} else if (keymatch(argv[argn], "fast", 2)) {
|
276
|
+
cinfo->dct_method = JDCT_IFAST;
|
277
|
+
} else if (keymatch(argv[argn], "float", 2)) {
|
278
|
+
cinfo->dct_method = JDCT_FLOAT;
|
279
|
+
} else
|
280
|
+
usage();
|
281
|
+
|
282
|
+
} else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) {
|
283
|
+
/* Enable debug printouts. */
|
284
|
+
/* On first -d, print version identification */
|
285
|
+
static boolean printed_version = FALSE;
|
286
|
+
|
287
|
+
if (! printed_version) {
|
288
|
+
fprintf(stderr, "%s version %s (build %s)\n",
|
289
|
+
PACKAGE_NAME, VERSION, BUILD);
|
290
|
+
fprintf(stderr, "%s\n\n", JCOPYRIGHT);
|
291
|
+
fprintf(stderr, "Emulating The Independent JPEG Group's software, version %s\n\n",
|
292
|
+
JVERSION);
|
293
|
+
printed_version = TRUE;
|
294
|
+
}
|
295
|
+
cinfo->err->trace_level++;
|
296
|
+
|
297
|
+
} else if (keymatch(arg, "version", 4)) {
|
298
|
+
fprintf(stderr, "%s version %s (build %s)\n",
|
299
|
+
PACKAGE_NAME, VERSION, BUILD);
|
300
|
+
exit(EXIT_SUCCESS);
|
301
|
+
|
302
|
+
} else if (keymatch(arg, "grayscale", 2) || keymatch(arg, "greyscale",2)) {
|
303
|
+
/* Force a monochrome JPEG file to be generated. */
|
304
|
+
jpeg_set_colorspace(cinfo, JCS_GRAYSCALE);
|
305
|
+
|
306
|
+
} else if (keymatch(arg, "rgb", 3)) {
|
307
|
+
/* Force an RGB JPEG file to be generated. */
|
308
|
+
jpeg_set_colorspace(cinfo, JCS_RGB);
|
309
|
+
|
310
|
+
} else if (keymatch(arg, "maxmemory", 3)) {
|
311
|
+
/* Maximum memory in Kb (or Mb with 'm'). */
|
312
|
+
long lval;
|
313
|
+
char ch = 'x';
|
314
|
+
|
315
|
+
if (++argn >= argc) /* advance to next argument */
|
316
|
+
usage();
|
317
|
+
if (sscanf(argv[argn], "%ld%c", &lval, &ch) < 1)
|
318
|
+
usage();
|
319
|
+
if (ch == 'm' || ch == 'M')
|
320
|
+
lval *= 1000L;
|
321
|
+
cinfo->mem->max_memory_to_use = lval * 1000L;
|
322
|
+
|
323
|
+
} else if (keymatch(arg, "optimize", 1) || keymatch(arg, "optimise", 1)) {
|
324
|
+
/* Enable entropy parm optimization. */
|
325
|
+
#ifdef ENTROPY_OPT_SUPPORTED
|
326
|
+
cinfo->optimize_coding = TRUE;
|
327
|
+
#else
|
328
|
+
fprintf(stderr, "%s: sorry, entropy optimization was not compiled in\n",
|
329
|
+
progname);
|
330
|
+
exit(EXIT_FAILURE);
|
331
|
+
#endif
|
332
|
+
|
333
|
+
} else if (keymatch(arg, "outfile", 4)) {
|
334
|
+
/* Set output file name. */
|
335
|
+
if (++argn >= argc) /* advance to next argument */
|
336
|
+
usage();
|
337
|
+
outfilename = argv[argn]; /* save it away for later use */
|
338
|
+
|
339
|
+
} else if (keymatch(arg, "progressive", 1)) {
|
340
|
+
/* Select simple progressive mode. */
|
341
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
342
|
+
simple_progressive = TRUE;
|
343
|
+
/* We must postpone execution until num_components is known. */
|
344
|
+
#else
|
345
|
+
fprintf(stderr, "%s: sorry, progressive output was not compiled in\n",
|
346
|
+
progname);
|
347
|
+
exit(EXIT_FAILURE);
|
348
|
+
#endif
|
349
|
+
|
350
|
+
} else if (keymatch(arg, "memdst", 2)) {
|
351
|
+
/* Use in-memory destination manager */
|
352
|
+
#if JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)
|
353
|
+
memdst = TRUE;
|
354
|
+
#else
|
355
|
+
fprintf(stderr, "%s: sorry, in-memory destination manager was not compiled in\n",
|
356
|
+
progname);
|
357
|
+
exit(EXIT_FAILURE);
|
358
|
+
#endif
|
359
|
+
|
360
|
+
} else if (keymatch(arg, "quality", 1)) {
|
361
|
+
/* Quality ratings (quantization table scaling factors). */
|
362
|
+
if (++argn >= argc) /* advance to next argument */
|
363
|
+
usage();
|
364
|
+
qualityarg = argv[argn];
|
365
|
+
|
366
|
+
} else if (keymatch(arg, "qslots", 2)) {
|
367
|
+
/* Quantization table slot numbers. */
|
368
|
+
if (++argn >= argc) /* advance to next argument */
|
369
|
+
usage();
|
370
|
+
qslotsarg = argv[argn];
|
371
|
+
/* Must delay setting qslots until after we have processed any
|
372
|
+
* colorspace-determining switches, since jpeg_set_colorspace sets
|
373
|
+
* default quant table numbers.
|
374
|
+
*/
|
375
|
+
|
376
|
+
} else if (keymatch(arg, "qtables", 2)) {
|
377
|
+
/* Quantization tables fetched from file. */
|
378
|
+
if (++argn >= argc) /* advance to next argument */
|
379
|
+
usage();
|
380
|
+
qtablefile = argv[argn];
|
381
|
+
/* We postpone actually reading the file in case -quality comes later. */
|
382
|
+
|
383
|
+
} else if (keymatch(arg, "restart", 1)) {
|
384
|
+
/* Restart interval in MCU rows (or in MCUs with 'b'). */
|
385
|
+
long lval;
|
386
|
+
char ch = 'x';
|
387
|
+
|
388
|
+
if (++argn >= argc) /* advance to next argument */
|
389
|
+
usage();
|
390
|
+
if (sscanf(argv[argn], "%ld%c", &lval, &ch) < 1)
|
391
|
+
usage();
|
392
|
+
if (lval < 0 || lval > 65535L)
|
393
|
+
usage();
|
394
|
+
if (ch == 'b' || ch == 'B') {
|
395
|
+
cinfo->restart_interval = (unsigned int) lval;
|
396
|
+
cinfo->restart_in_rows = 0; /* else prior '-restart n' overrides me */
|
397
|
+
} else {
|
398
|
+
cinfo->restart_in_rows = (int) lval;
|
399
|
+
/* restart_interval will be computed during startup */
|
400
|
+
}
|
401
|
+
|
402
|
+
} else if (keymatch(arg, "sample", 2)) {
|
403
|
+
/* Set sampling factors. */
|
404
|
+
if (++argn >= argc) /* advance to next argument */
|
405
|
+
usage();
|
406
|
+
samplearg = argv[argn];
|
407
|
+
/* Must delay setting sample factors until after we have processed any
|
408
|
+
* colorspace-determining switches, since jpeg_set_colorspace sets
|
409
|
+
* default sampling factors.
|
410
|
+
*/
|
411
|
+
|
412
|
+
} else if (keymatch(arg, "scans", 4)) {
|
413
|
+
/* Set scan script. */
|
414
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
415
|
+
if (++argn >= argc) /* advance to next argument */
|
416
|
+
usage();
|
417
|
+
scansarg = argv[argn];
|
418
|
+
/* We must postpone reading the file in case -progressive appears. */
|
419
|
+
#else
|
420
|
+
fprintf(stderr, "%s: sorry, multi-scan output was not compiled in\n",
|
421
|
+
progname);
|
422
|
+
exit(EXIT_FAILURE);
|
423
|
+
#endif
|
424
|
+
|
425
|
+
} else if (keymatch(arg, "smooth", 2)) {
|
426
|
+
/* Set input smoothing factor. */
|
427
|
+
int val;
|
428
|
+
|
429
|
+
if (++argn >= argc) /* advance to next argument */
|
430
|
+
usage();
|
431
|
+
if (sscanf(argv[argn], "%d", &val) != 1)
|
432
|
+
usage();
|
433
|
+
if (val < 0 || val > 100)
|
434
|
+
usage();
|
435
|
+
cinfo->smoothing_factor = val;
|
436
|
+
|
437
|
+
} else if (keymatch(arg, "targa", 1)) {
|
438
|
+
/* Input file is Targa format. */
|
439
|
+
is_targa = TRUE;
|
440
|
+
|
441
|
+
} else {
|
442
|
+
usage(); /* bogus switch */
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
/* Post-switch-scanning cleanup */
|
447
|
+
|
448
|
+
if (for_real) {
|
449
|
+
|
450
|
+
/* Set quantization tables for selected quality. */
|
451
|
+
/* Some or all may be overridden if -qtables is present. */
|
452
|
+
if (qualityarg != NULL) /* process -quality if it was present */
|
453
|
+
if (! set_quality_ratings(cinfo, qualityarg, force_baseline))
|
454
|
+
usage();
|
455
|
+
|
456
|
+
if (qtablefile != NULL) /* process -qtables if it was present */
|
457
|
+
if (! read_quant_tables(cinfo, qtablefile, force_baseline))
|
458
|
+
usage();
|
459
|
+
|
460
|
+
if (qslotsarg != NULL) /* process -qslots if it was present */
|
461
|
+
if (! set_quant_slots(cinfo, qslotsarg))
|
462
|
+
usage();
|
463
|
+
|
464
|
+
if (samplearg != NULL) /* process -sample if it was present */
|
465
|
+
if (! set_sample_factors(cinfo, samplearg))
|
466
|
+
usage();
|
467
|
+
|
468
|
+
#ifdef C_PROGRESSIVE_SUPPORTED
|
469
|
+
if (simple_progressive) /* process -progressive; -scans can override */
|
470
|
+
jpeg_simple_progression(cinfo);
|
471
|
+
#endif
|
472
|
+
|
473
|
+
#ifdef C_MULTISCAN_FILES_SUPPORTED
|
474
|
+
if (scansarg != NULL) /* process -scans if it was present */
|
475
|
+
if (! read_scan_script(cinfo, scansarg))
|
476
|
+
usage();
|
477
|
+
#endif
|
478
|
+
}
|
479
|
+
|
480
|
+
return argn; /* return index of next arg (file name) */
|
481
|
+
}
|
482
|
+
|
483
|
+
|
484
|
+
/*
|
485
|
+
* The main program.
|
486
|
+
*/
|
487
|
+
|
488
|
+
int
|
489
|
+
main (int argc, char **argv)
|
490
|
+
{
|
491
|
+
struct jpeg_compress_struct cinfo;
|
492
|
+
struct jpeg_error_mgr jerr;
|
493
|
+
#ifdef PROGRESS_REPORT
|
494
|
+
struct cdjpeg_progress_mgr progress;
|
495
|
+
#endif
|
496
|
+
int file_index;
|
497
|
+
cjpeg_source_ptr src_mgr;
|
498
|
+
FILE *input_file;
|
499
|
+
FILE *output_file = NULL;
|
500
|
+
unsigned char *outbuffer = NULL;
|
501
|
+
unsigned long outsize = 0;
|
502
|
+
JDIMENSION num_scanlines;
|
503
|
+
|
504
|
+
/* On Mac, fetch a command line. */
|
505
|
+
#ifdef USE_CCOMMAND
|
506
|
+
argc = ccommand(&argv);
|
507
|
+
#endif
|
508
|
+
|
509
|
+
progname = argv[0];
|
510
|
+
if (progname == NULL || progname[0] == 0)
|
511
|
+
progname = "cjpeg"; /* in case C library doesn't provide it */
|
512
|
+
|
513
|
+
/* Initialize the JPEG compression object with default error handling. */
|
514
|
+
cinfo.err = jpeg_std_error(&jerr);
|
515
|
+
jpeg_create_compress(&cinfo);
|
516
|
+
/* Add some application-specific error messages (from cderror.h) */
|
517
|
+
jerr.addon_message_table = cdjpeg_message_table;
|
518
|
+
jerr.first_addon_message = JMSG_FIRSTADDONCODE;
|
519
|
+
jerr.last_addon_message = JMSG_LASTADDONCODE;
|
520
|
+
|
521
|
+
/* Initialize JPEG parameters.
|
522
|
+
* Much of this may be overridden later.
|
523
|
+
* In particular, we don't yet know the input file's color space,
|
524
|
+
* but we need to provide some value for jpeg_set_defaults() to work.
|
525
|
+
*/
|
526
|
+
|
527
|
+
cinfo.in_color_space = JCS_RGB; /* arbitrary guess */
|
528
|
+
jpeg_set_defaults(&cinfo);
|
529
|
+
|
530
|
+
/* Scan command line to find file names.
|
531
|
+
* It is convenient to use just one switch-parsing routine, but the switch
|
532
|
+
* values read here are ignored; we will rescan the switches after opening
|
533
|
+
* the input file.
|
534
|
+
*/
|
535
|
+
|
536
|
+
file_index = parse_switches(&cinfo, argc, argv, 0, FALSE);
|
537
|
+
|
538
|
+
#ifdef TWO_FILE_COMMANDLINE
|
539
|
+
if (!memdst) {
|
540
|
+
/* Must have either -outfile switch or explicit output file name */
|
541
|
+
if (outfilename == NULL) {
|
542
|
+
if (file_index != argc-2) {
|
543
|
+
fprintf(stderr, "%s: must name one input and one output file\n",
|
544
|
+
progname);
|
545
|
+
usage();
|
546
|
+
}
|
547
|
+
outfilename = argv[file_index+1];
|
548
|
+
} else {
|
549
|
+
if (file_index != argc-1) {
|
550
|
+
fprintf(stderr, "%s: must name one input and one output file\n",
|
551
|
+
progname);
|
552
|
+
usage();
|
553
|
+
}
|
554
|
+
}
|
555
|
+
}
|
556
|
+
#else
|
557
|
+
/* Unix style: expect zero or one file name */
|
558
|
+
if (file_index < argc-1) {
|
559
|
+
fprintf(stderr, "%s: only one input file\n", progname);
|
560
|
+
usage();
|
561
|
+
}
|
562
|
+
#endif /* TWO_FILE_COMMANDLINE */
|
563
|
+
|
564
|
+
/* Open the input file. */
|
565
|
+
if (file_index < argc) {
|
566
|
+
if ((input_file = fopen(argv[file_index], READ_BINARY)) == NULL) {
|
567
|
+
fprintf(stderr, "%s: can't open %s\n", progname, argv[file_index]);
|
568
|
+
exit(EXIT_FAILURE);
|
569
|
+
}
|
570
|
+
} else {
|
571
|
+
/* default input file is stdin */
|
572
|
+
input_file = read_stdin();
|
573
|
+
}
|
574
|
+
|
575
|
+
/* Open the output file. */
|
576
|
+
if (outfilename != NULL) {
|
577
|
+
if ((output_file = fopen(outfilename, WRITE_BINARY)) == NULL) {
|
578
|
+
fprintf(stderr, "%s: can't open %s\n", progname, outfilename);
|
579
|
+
exit(EXIT_FAILURE);
|
580
|
+
}
|
581
|
+
} else if (!memdst) {
|
582
|
+
/* default output file is stdout */
|
583
|
+
output_file = write_stdout();
|
584
|
+
}
|
585
|
+
|
586
|
+
#ifdef PROGRESS_REPORT
|
587
|
+
start_progress_monitor((j_common_ptr) &cinfo, &progress);
|
588
|
+
#endif
|
589
|
+
|
590
|
+
/* Figure out the input file format, and set up to read it. */
|
591
|
+
src_mgr = select_file_type(&cinfo, input_file);
|
592
|
+
src_mgr->input_file = input_file;
|
593
|
+
|
594
|
+
/* Read the input file header to obtain file size & colorspace. */
|
595
|
+
(*src_mgr->start_input) (&cinfo, src_mgr);
|
596
|
+
|
597
|
+
/* Now that we know input colorspace, fix colorspace-dependent defaults */
|
598
|
+
jpeg_default_colorspace(&cinfo);
|
599
|
+
|
600
|
+
/* Adjust default compression parameters by re-parsing the options */
|
601
|
+
file_index = parse_switches(&cinfo, argc, argv, 0, TRUE);
|
602
|
+
|
603
|
+
/* Specify data destination for compression */
|
604
|
+
#if JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)
|
605
|
+
if (memdst)
|
606
|
+
jpeg_mem_dest(&cinfo, &outbuffer, &outsize);
|
607
|
+
else
|
608
|
+
#endif
|
609
|
+
jpeg_stdio_dest(&cinfo, output_file);
|
610
|
+
|
611
|
+
/* Start compressor */
|
612
|
+
jpeg_start_compress(&cinfo, TRUE);
|
613
|
+
|
614
|
+
/* Process data */
|
615
|
+
while (cinfo.next_scanline < cinfo.image_height) {
|
616
|
+
num_scanlines = (*src_mgr->get_pixel_rows) (&cinfo, src_mgr);
|
617
|
+
(void) jpeg_write_scanlines(&cinfo, src_mgr->buffer, num_scanlines);
|
618
|
+
}
|
619
|
+
|
620
|
+
/* Finish compression and release memory */
|
621
|
+
(*src_mgr->finish_input) (&cinfo, src_mgr);
|
622
|
+
jpeg_finish_compress(&cinfo);
|
623
|
+
jpeg_destroy_compress(&cinfo);
|
624
|
+
|
625
|
+
/* Close files, if we opened them */
|
626
|
+
if (input_file != stdin)
|
627
|
+
fclose(input_file);
|
628
|
+
if (output_file != stdout && output_file != NULL)
|
629
|
+
fclose(output_file);
|
630
|
+
|
631
|
+
#ifdef PROGRESS_REPORT
|
632
|
+
end_progress_monitor((j_common_ptr) &cinfo);
|
633
|
+
#endif
|
634
|
+
|
635
|
+
if (memdst) {
|
636
|
+
fprintf(stderr, "Compressed size: %lu bytes\n", outsize);
|
637
|
+
if (outbuffer != NULL)
|
638
|
+
free(outbuffer);
|
639
|
+
}
|
640
|
+
|
641
|
+
/* All done. */
|
642
|
+
exit(jerr.num_warnings ? EXIT_WARNING : EXIT_SUCCESS);
|
643
|
+
return 0; /* suppress no-return-value warnings */
|
644
|
+
}
|