epeg 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/MANIFEST +5 -0
- data/TODO +1 -0
- data/epeg/.dockerignore +4 -0
- data/epeg/.gitignore +5 -0
- data/epeg/CMakeLists.txt +30 -0
- data/epeg/Dockerfile +23 -0
- data/epeg/Epeg.h +90 -0
- data/epeg/README.md +42 -0
- data/epeg/epeg_main.c +1642 -0
- data/epeg/epeg_private.h +85 -0
- data/epeg/example/.gitignore +1 -0
- data/epeg/example/CMakeLists.txt +20 -0
- data/epeg/example/example.jpg +0 -0
- data/epeg/example/rotatetest.c +29 -0
- data/epeg/example/scaletest.c +48 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/BUILDING.md +828 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/CMakeLists.txt +1420 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/ChangeLog.md +1494 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/LICENSE.md +132 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/README.ijg +277 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/README.md +356 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cderror.h +137 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cdjpeg.c +145 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cdjpeg.h +157 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/change.log +315 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cjpeg.1 +354 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cjpeg.c +695 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/BuildPackages.cmake +182 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/GNUInstallDirs.cmake +416 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/cmake_uninstall.cmake.in +24 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/testclean.cmake +41 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/cmyk.h +61 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/coderules.txt +78 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/djpeg.1 +296 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/djpeg.c +822 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/annotated.html +104 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/bc_s.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/bdwn.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/classes.html +106 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/closed.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen-extra.css +3 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen.css +1184 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/dynsections.js +97 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2blank.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2cl.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2doc.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2folderclosed.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2folderopen.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2lastnode.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2link.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mlastnode.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mnode.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mo.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2node.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2ns.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2plastnode.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2pnode.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2splitbar.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2vertline.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/functions.html +134 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/functions_vars.html +134 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/group___turbo_j_p_e_g.html +2775 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/index.html +90 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/jquery.js +8 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/modules.html +95 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_f.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_g.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_h.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/open.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_63.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_63.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_64.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_64.js +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_68.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_68.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6e.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6e.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6f.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6f.js +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_72.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_72.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_74.js +102 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_77.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_77.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_78.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_78.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_79.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_79.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/classes_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/classes_74.js +6 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/close.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enums_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enums_74.js +8 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enumvalues_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enumvalues_74.js +37 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/functions_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/functions_74.js +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/groups_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/groups_74.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/mag_sel.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/nomatches.html +12 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search.css +271 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search.js +809 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_l.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_m.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_r.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/typedefs_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/typedefs_74.js +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_63.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_63.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_64.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_64.js +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_68.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_68.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6e.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6e.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6f.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6f.js +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_72.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_72.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_74.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_74.js +10 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_77.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_77.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_78.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_78.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_79.html +26 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_79.js +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjregion.html +186 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjscalingfactor.html +148 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjtransform.html +212 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/sync_off.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/sync_on.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_a.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_b.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_h.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_s.png +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tabs.css +60 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doxygen-extra.css +3 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/doxygen.config +16 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/example.txt +464 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jaricom.c +157 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/CMakeLists.txt +88 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/MANIFEST.MF +2 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/README +52 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJBench.java +1021 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJExample.java +405 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJUnitTest.java +960 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/allclasses-frame.html +24 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/allclasses-noframe.html +24 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/constant-values.html +532 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/deprecated-list.html +252 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/help-doc.html +210 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/index-all.html +1029 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/index.html +71 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJ.html +1356 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html +926 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJCustomFilter.html +241 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html +1255 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJException.html +340 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJScalingFactor.html +343 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJTransform.html +751 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJTransformer.html +421 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/YUVImage.html +765 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-frame.html +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-summary.html +202 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-tree.html +160 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/overview-tree.html +164 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/package-list +1 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/background.gif +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/tab.gif +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/titlebar.gif +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/titlebar_end.gif +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/script.js +30 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/serialized-form.html +176 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/stylesheet.css +474 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJ.java +584 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJCompressor.java +677 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJCustomFilter.java +76 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJDecompressor.java +931 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJException.java +78 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJLoader-unix.java.in +59 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJLoader-win.java.in +35 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJScalingFactor.java +115 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJTransform.java +227 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJTransformer.java +163 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/YUVImage.java +445 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJ.h +129 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJCompressor.h +101 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJDecompressor.h +101 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJTransformer.h +29 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcapimin.c +295 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcapistd.c +162 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcarith.c +932 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jccoefct.c +449 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jccolext.c +144 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jccolor.c +710 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcdctmgr.c +721 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jchuff.c +1096 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jchuff.h +42 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcicc.c +105 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcinit.c +77 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcmainct.c +162 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcmarker.c +664 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcmaster.c +640 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcomapi.c +109 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jconfig.h.in +73 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jconfig.txt +143 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jconfigint.h.in +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcparam.c +541 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcphuff.c +1105 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcprepct.c +351 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcsample.c +539 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jcstest.c +126 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jctrans.c +400 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdapimin.c +407 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdapistd.c +639 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdarith.c +773 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdatadst-tj.c +203 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdatadst.c +293 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdatasrc-tj.c +194 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdatasrc.c +295 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdcoefct.c +692 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdcoefct.h +82 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdcol565.c +384 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdcolext.c +143 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdcolor.c +883 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdct.h +208 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jddctmgr.c +352 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdhuff.c +831 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdhuff.h +238 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdicc.c +171 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdinput.c +408 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmainct.c +460 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmainct.h +71 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmarker.c +1377 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmaster.c +737 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmaster.h +28 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmerge.c +617 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmrg565.c +354 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdmrgext.c +184 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdphuff.c +687 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdpostct.c +294 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdsample.c +518 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdsample.h +50 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jdtrans.c +155 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jerror.c +251 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jerror.h +316 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctflt.c +169 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctfst.c +227 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctint.c +288 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jidctflt.c +240 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jidctfst.c +371 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jidctint.c +2627 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jidctred.c +409 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jinclude.h +88 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jmemmgr.c +1179 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jmemnobs.c +115 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jmemsys.h +178 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jmorecfg.h +421 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpeg_nbits_table.h +4098 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpegcomp.h +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpegint.h +368 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpeglib.h +1132 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpegtran.1 +295 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jpegtran.c +601 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jquant1.c +859 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jquant2.c +1285 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jsimd.h +117 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jsimd_none.c +418 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jsimddct.h +70 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jstdhuff.c +143 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jutils.c +133 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/jversion.h +52 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/libjpeg.map.in +11 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/libjpeg.txt +3144 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/md5/CMakeLists.txt +1 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5.c +275 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5.h +57 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5cmp.c +59 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5hl.c +125 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdbmp.c +689 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdcolmap.c +254 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdgif.c +39 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdjpgcom.1 +63 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdjpgcom.c +510 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdppm.c +766 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdrle.c +389 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdswitch.c +424 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/rdtarga.c +509 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/Distribution.xml.in +24 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/License.rtf +20 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/ReadMe.txt +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/Welcome.rtf +17 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/deb-control.in +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/installer.nsi.in +191 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/libjpeg.pc.in +10 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/libturbojpeg.pc.in +10 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/makecygwinpkg.in +66 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/makedpkg.in +115 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/makemacpkg.in +284 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/makerpm.in +30 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/makesrpm.in +48 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/maketarball.in +51 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/rpm.spec.in +221 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/release/uninstall.in +113 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/sharedlib/CMakeLists.txt +99 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/CMakeLists.txt +385 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm/jsimd.c +721 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm/jsimd_neon.S +2878 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm64/jsimd.c +798 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm64/jsimd_neon.S +3433 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/gas-preprocessor.in +1 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-avx2.asm +578 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-mmx.asm +476 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-sse2.asm +503 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-avx2.asm +121 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-mmx.asm +121 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-sse2.asm +120 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-avx2.asm +113 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-mmx.asm +113 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-sse2.asm +112 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-avx2.asm +457 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-mmx.asm +355 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-sse2.asm +382 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jchuff-sse2.asm +424 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcphuff-sse2.asm +660 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-avx2.asm +388 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-mmx.asm +324 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-sse2.asm +351 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-avx2.asm +515 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-mmx.asm +404 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-sse2.asm +458 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-avx2.asm +118 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-mmx.asm +117 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-sse2.asm +117 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-avx2.asm +136 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-mmx.asm +123 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-sse2.asm +135 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-avx2.asm +575 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-mmx.asm +460 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-sse2.asm +517 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-avx2.asm +760 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-mmx.asm +731 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-sse2.asm +724 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctflt-3dn.asm +318 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctflt-sse.asm +369 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctfst-mmx.asm +395 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctfst-sse2.asm +403 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-avx2.asm +331 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-mmx.asm +620 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-sse2.asm +633 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-3dn.asm +451 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-sse.asm +571 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-sse2.asm +497 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctfst-mmx.asm +499 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctfst-sse2.asm +501 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-avx2.asm +453 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-mmx.asm +851 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-sse2.asm +858 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctred-mmx.asm +704 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctred-sse2.asm +592 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-3dn.asm +230 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-mmx.asm +276 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-sse.asm +208 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquantf-sse2.asm +168 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquanti-avx2.asm +188 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquanti-sse2.asm +201 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jsimd.c +1253 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jsimdcpu.asm +135 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/jsimd.h +1083 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jccolext-mmi.c +483 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jccolor-mmi.c +148 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jcsample-mmi.c +100 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jcsample.h +28 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdcolext-mmi.c +424 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdcolor-mmi.c +139 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdsample-mmi.c +245 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jfdctint-mmi.c +398 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jidctint-mmi.c +571 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jquanti-mmi.c +130 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jsimd.c +610 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jsimd_mmi.h +57 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/loongson-mmintrin.h +1324 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd.c +1123 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd_dspr2.S +4479 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd_dspr2_asm.h +292 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jcolsamp.inc +135 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jdct.inc +31 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jpeg_nbits_table.inc +4097 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdcfg.inc +93 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdcfg.inc.h +131 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdext.inc +479 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jccolext-altivec.c +269 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jccolor-altivec.c +116 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcgray-altivec.c +111 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcgryext-altivec.c +228 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcsample-altivec.c +159 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcsample.h +28 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdcolext-altivec.c +276 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdcolor-altivec.c +106 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdmerge-altivec.c +130 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdmrgext-altivec.c +329 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdsample-altivec.c +400 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jfdctfst-altivec.c +154 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jfdctint-altivec.c +258 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jidctfst-altivec.c +255 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jidctint-altivec.c +357 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jquanti-altivec.c +250 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jsimd.c +872 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jsimd_altivec.h +98 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolext-avx2.asm +558 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolext-sse2.asm +483 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolor-avx2.asm +121 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolor-sse2.asm +120 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgray-avx2.asm +113 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgray-sse2.asm +112 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgryext-avx2.asm +437 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgryext-sse2.asm +362 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jchuff-sse2.asm +346 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcphuff-sse2.asm +637 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcsample-avx2.asm +366 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcsample-sse2.asm +329 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolext-avx2.asm +495 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolext-sse2.asm +438 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolor-avx2.asm +118 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolor-sse2.asm +117 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmerge-avx2.asm +136 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmerge-sse2.asm +135 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmrgext-avx2.asm +593 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmrgext-sse2.asm +535 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdsample-avx2.asm +695 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdsample-sse2.asm +664 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctflt-sse.asm +355 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctfst-sse2.asm +389 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctint-avx2.asm +320 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctint-sse2.asm +619 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctflt-sse2.asm +481 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctfst-sse2.asm +490 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctint-avx2.asm +417 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctint-sse2.asm +846 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctred-sse2.asm +573 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquantf-sse2.asm +154 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquanti-avx2.asm +162 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquanti-sse2.asm +187 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jsimd.c +1076 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jsimdcpu.asm +86 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/structure.txt +904 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/nightshot_iso_100.bmp +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/nightshot_iso_100.txt +25 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test.scan +5 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test1.icc +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test1.icc.txt +20 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test2.icc +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test2.icc.txt +20 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testimgari.jpg +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testimgint.jpg +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig.jpg +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig.ppm +4 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig12.jpg +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_5674_0098.bmp +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_6434_0018a.bmp +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_6548_0026a.bmp +0 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjbench.c +1031 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjbenchtest.in +256 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjbenchtest.java.in +215 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjexample.c +396 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjexampletest.in +149 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjexampletest.java.in +151 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjunittest.c +931 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjutil.c +70 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/tjutil.h +47 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/transupp.c +1628 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/transupp.h +210 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-jni.c +1246 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-mapfile +65 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-mapfile.jni +101 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg.c +2152 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg.h +1744 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/usage.txt +635 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jconfig.h.in +34 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg62-memsrcdst.def +108 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg62.def +106 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg7-memsrcdst.def +110 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg7.def +108 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg8.def +111 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wizard.txt +212 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrbmp.c +558 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrgif.c +413 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrjpgcom.1 +103 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrjpgcom.c +591 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrppm.c +365 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrrle.c +309 -0
- data/epeg/vendor/libjpeg-turbo-2.0.4/wrtarga.c +261 -0
- data/epeg.c +131 -0
- data/epeg.gemspec +18 -0
- data/extconf.rb +80 -0
- data/test.jpg +0 -0
- data/test.rb +42 -0
- metadata +546 -0
@@ -0,0 +1,356 @@
|
|
1
|
+
Background
|
2
|
+
==========
|
3
|
+
|
4
|
+
libjpeg-turbo is a JPEG image codec that uses SIMD instructions to accelerate
|
5
|
+
baseline JPEG compression and decompression on x86, x86-64, ARM, PowerPC, and
|
6
|
+
MIPS systems, as well as progressive JPEG compression on x86 and x86-64
|
7
|
+
systems. On such systems, libjpeg-turbo is generally 2-6x as fast as libjpeg,
|
8
|
+
all else being equal. On other types of systems, libjpeg-turbo can still
|
9
|
+
outperform libjpeg by a significant amount, by virtue of its highly-optimized
|
10
|
+
Huffman coding routines. In many cases, the performance of libjpeg-turbo
|
11
|
+
rivals that of proprietary high-speed JPEG codecs.
|
12
|
+
|
13
|
+
libjpeg-turbo implements both the traditional libjpeg API as well as the less
|
14
|
+
powerful but more straightforward TurboJPEG API. libjpeg-turbo also features
|
15
|
+
colorspace extensions that allow it to compress from/decompress to 32-bit and
|
16
|
+
big-endian pixel buffers (RGBX, XBGR, etc.), as well as a full-featured Java
|
17
|
+
interface.
|
18
|
+
|
19
|
+
libjpeg-turbo was originally based on libjpeg/SIMD, an MMX-accelerated
|
20
|
+
derivative of libjpeg v6b developed by Miyasaka Masaru. The TigerVNC and
|
21
|
+
VirtualGL projects made numerous enhancements to the codec in 2009, and in
|
22
|
+
early 2010, libjpeg-turbo spun off into an independent project, with the goal
|
23
|
+
of making high-speed JPEG compression/decompression technology available to a
|
24
|
+
broader range of users and developers.
|
25
|
+
|
26
|
+
|
27
|
+
License
|
28
|
+
=======
|
29
|
+
|
30
|
+
libjpeg-turbo is covered by three compatible BSD-style open source licenses.
|
31
|
+
Refer to [LICENSE.md](LICENSE.md) for a roll-up of license terms.
|
32
|
+
|
33
|
+
|
34
|
+
Building libjpeg-turbo
|
35
|
+
======================
|
36
|
+
|
37
|
+
Refer to [BUILDING.md](BUILDING.md) for complete instructions.
|
38
|
+
|
39
|
+
|
40
|
+
Using libjpeg-turbo
|
41
|
+
===================
|
42
|
+
|
43
|
+
libjpeg-turbo includes two APIs that can be used to compress and decompress
|
44
|
+
JPEG images:
|
45
|
+
|
46
|
+
- **TurboJPEG API**<br>
|
47
|
+
This API provides an easy-to-use interface for compressing and decompressing
|
48
|
+
JPEG images in memory. It also provides some functionality that would not be
|
49
|
+
straightforward to achieve using the underlying libjpeg API, such as
|
50
|
+
generating planar YUV images and performing multiple simultaneous lossless
|
51
|
+
transforms on an image. The Java interface for libjpeg-turbo is written on
|
52
|
+
top of the TurboJPEG API. The TurboJPEG API is recommended for first-time
|
53
|
+
users of libjpeg-turbo. Refer to [tjexample.c](tjexample.c) and
|
54
|
+
[TJExample.java](java/TJExample.java) for examples of its usage and to
|
55
|
+
<http://libjpeg-turbo.org/Documentation/Documentation> for API documentation.
|
56
|
+
|
57
|
+
- **libjpeg API**<br>
|
58
|
+
This is the de facto industry-standard API for compressing and decompressing
|
59
|
+
JPEG images. It is more difficult to use than the TurboJPEG API but also
|
60
|
+
more powerful. The libjpeg API implementation in libjpeg-turbo is both
|
61
|
+
API/ABI-compatible and mathematically compatible with libjpeg v6b. It can
|
62
|
+
also optionally be configured to be API/ABI-compatible with libjpeg v7 and v8
|
63
|
+
(see below.) Refer to [cjpeg.c](cjpeg.c) and [djpeg.c](djpeg.c) for examples
|
64
|
+
of its usage and to [libjpeg.txt](libjpeg.txt) for API documentation.
|
65
|
+
|
66
|
+
There is no significant performance advantage to either API when both are used
|
67
|
+
to perform similar operations.
|
68
|
+
|
69
|
+
Colorspace Extensions
|
70
|
+
---------------------
|
71
|
+
|
72
|
+
libjpeg-turbo includes extensions that allow JPEG images to be compressed
|
73
|
+
directly from (and decompressed directly to) buffers that use BGR, BGRX,
|
74
|
+
RGBX, XBGR, and XRGB pixel ordering. This is implemented with ten new
|
75
|
+
colorspace constants:
|
76
|
+
|
77
|
+
JCS_EXT_RGB /* red/green/blue */
|
78
|
+
JCS_EXT_RGBX /* red/green/blue/x */
|
79
|
+
JCS_EXT_BGR /* blue/green/red */
|
80
|
+
JCS_EXT_BGRX /* blue/green/red/x */
|
81
|
+
JCS_EXT_XBGR /* x/blue/green/red */
|
82
|
+
JCS_EXT_XRGB /* x/red/green/blue */
|
83
|
+
JCS_EXT_RGBA /* red/green/blue/alpha */
|
84
|
+
JCS_EXT_BGRA /* blue/green/red/alpha */
|
85
|
+
JCS_EXT_ABGR /* alpha/blue/green/red */
|
86
|
+
JCS_EXT_ARGB /* alpha/red/green/blue */
|
87
|
+
|
88
|
+
Setting `cinfo.in_color_space` (compression) or `cinfo.out_color_space`
|
89
|
+
(decompression) to one of these values will cause libjpeg-turbo to read the
|
90
|
+
red, green, and blue values from (or write them to) the appropriate position in
|
91
|
+
the pixel when compressing from/decompressing to an RGB buffer.
|
92
|
+
|
93
|
+
Your application can check for the existence of these extensions at compile
|
94
|
+
time with:
|
95
|
+
|
96
|
+
#ifdef JCS_EXTENSIONS
|
97
|
+
|
98
|
+
At run time, attempting to use these extensions with a libjpeg implementation
|
99
|
+
that does not support them will result in a "Bogus input colorspace" error.
|
100
|
+
Applications can trap this error in order to test whether run-time support is
|
101
|
+
available for the colorspace extensions.
|
102
|
+
|
103
|
+
When using the RGBX, BGRX, XBGR, and XRGB colorspaces during decompression, the
|
104
|
+
X byte is undefined, and in order to ensure the best performance, libjpeg-turbo
|
105
|
+
can set that byte to whatever value it wishes. If an application expects the X
|
106
|
+
byte to be used as an alpha channel, then it should specify `JCS_EXT_RGBA`,
|
107
|
+
`JCS_EXT_BGRA`, `JCS_EXT_ABGR`, or `JCS_EXT_ARGB`. When these colorspace
|
108
|
+
constants are used, the X byte is guaranteed to be 0xFF, which is interpreted
|
109
|
+
as opaque.
|
110
|
+
|
111
|
+
Your application can check for the existence of the alpha channel colorspace
|
112
|
+
extensions at compile time with:
|
113
|
+
|
114
|
+
#ifdef JCS_ALPHA_EXTENSIONS
|
115
|
+
|
116
|
+
[jcstest.c](jcstest.c), located in the libjpeg-turbo source tree, demonstrates
|
117
|
+
how to check for the existence of the colorspace extensions at compile time and
|
118
|
+
run time.
|
119
|
+
|
120
|
+
libjpeg v7 and v8 API/ABI Emulation
|
121
|
+
-----------------------------------
|
122
|
+
|
123
|
+
With libjpeg v7 and v8, new features were added that necessitated extending the
|
124
|
+
compression and decompression structures. Unfortunately, due to the exposed
|
125
|
+
nature of those structures, extending them also necessitated breaking backward
|
126
|
+
ABI compatibility with previous libjpeg releases. Thus, programs that were
|
127
|
+
built to use libjpeg v7 or v8 did not work with libjpeg-turbo, since it is
|
128
|
+
based on the libjpeg v6b code base. Although libjpeg v7 and v8 are not
|
129
|
+
as widely used as v6b, enough programs (including a few Linux distros) made
|
130
|
+
the switch that there was a demand to emulate the libjpeg v7 and v8 ABIs
|
131
|
+
in libjpeg-turbo. It should be noted, however, that this feature was added
|
132
|
+
primarily so that applications that had already been compiled to use libjpeg
|
133
|
+
v7+ could take advantage of accelerated baseline JPEG encoding/decoding
|
134
|
+
without recompiling. libjpeg-turbo does not claim to support all of the
|
135
|
+
libjpeg v7+ features, nor to produce identical output to libjpeg v7+ in all
|
136
|
+
cases (see below.)
|
137
|
+
|
138
|
+
By passing an argument of `-DWITH_JPEG7=1` or `-DWITH_JPEG8=1` to `cmake`, you
|
139
|
+
can build a version of libjpeg-turbo that emulates the libjpeg v7 or v8 ABI, so
|
140
|
+
that programs that are built against libjpeg v7 or v8 can be run with
|
141
|
+
libjpeg-turbo. The following section describes which libjpeg v7+ features are
|
142
|
+
supported and which aren't.
|
143
|
+
|
144
|
+
### Support for libjpeg v7 and v8 Features
|
145
|
+
|
146
|
+
#### Fully supported
|
147
|
+
|
148
|
+
- **libjpeg API: IDCT scaling extensions in decompressor**<br>
|
149
|
+
libjpeg-turbo supports IDCT scaling with scaling factors of 1/8, 1/4, 3/8,
|
150
|
+
1/2, 5/8, 3/4, 7/8, 9/8, 5/4, 11/8, 3/2, 13/8, 7/4, 15/8, and 2/1 (only 1/4
|
151
|
+
and 1/2 are SIMD-accelerated.)
|
152
|
+
|
153
|
+
- **libjpeg API: Arithmetic coding**
|
154
|
+
|
155
|
+
- **libjpeg API: In-memory source and destination managers**<br>
|
156
|
+
See notes below.
|
157
|
+
|
158
|
+
- **cjpeg: Separate quality settings for luminance and chrominance**<br>
|
159
|
+
Note that the libpjeg v7+ API was extended to accommodate this feature only
|
160
|
+
for convenience purposes. It has always been possible to implement this
|
161
|
+
feature with libjpeg v6b (see rdswitch.c for an example.)
|
162
|
+
|
163
|
+
- **cjpeg: 32-bit BMP support**
|
164
|
+
|
165
|
+
- **cjpeg: `-rgb` option**
|
166
|
+
|
167
|
+
- **jpegtran: Lossless cropping**
|
168
|
+
|
169
|
+
- **jpegtran: `-perfect` option**
|
170
|
+
|
171
|
+
- **jpegtran: Forcing width/height when performing lossless crop**
|
172
|
+
|
173
|
+
- **rdjpgcom: `-raw` option**
|
174
|
+
|
175
|
+
- **rdjpgcom: Locale awareness**
|
176
|
+
|
177
|
+
|
178
|
+
#### Not supported
|
179
|
+
|
180
|
+
NOTE: As of this writing, extensive research has been conducted into the
|
181
|
+
usefulness of DCT scaling as a means of data reduction and SmartScale as a
|
182
|
+
means of quality improvement. The reader is invited to peruse the research at
|
183
|
+
<http://www.libjpeg-turbo.org/About/SmartScale> and draw his/her own conclusions,
|
184
|
+
but it is the general belief of our project that these features have not
|
185
|
+
demonstrated sufficient usefulness to justify inclusion in libjpeg-turbo.
|
186
|
+
|
187
|
+
- **libjpeg API: DCT scaling in compressor**<br>
|
188
|
+
`cinfo.scale_num` and `cinfo.scale_denom` are silently ignored.
|
189
|
+
There is no technical reason why DCT scaling could not be supported when
|
190
|
+
emulating the libjpeg v7+ API/ABI, but without the SmartScale extension (see
|
191
|
+
below), only scaling factors of 1/2, 8/15, 4/7, 8/13, 2/3, 8/11, 4/5, and
|
192
|
+
8/9 would be available, which is of limited usefulness.
|
193
|
+
|
194
|
+
- **libjpeg API: SmartScale**<br>
|
195
|
+
`cinfo.block_size` is silently ignored.
|
196
|
+
SmartScale is an extension to the JPEG format that allows for DCT block
|
197
|
+
sizes other than 8x8. Providing support for this new format would be
|
198
|
+
feasible (particularly without full acceleration.) However, until/unless
|
199
|
+
the format becomes either an official industry standard or, at minimum, an
|
200
|
+
accepted solution in the community, we are hesitant to implement it, as
|
201
|
+
there is no sense of whether or how it might change in the future. It is
|
202
|
+
our belief that SmartScale has not demonstrated sufficient usefulness as a
|
203
|
+
lossless format nor as a means of quality enhancement, and thus our primary
|
204
|
+
interest in providing this feature would be as a means of supporting
|
205
|
+
additional DCT scaling factors.
|
206
|
+
|
207
|
+
- **libjpeg API: Fancy downsampling in compressor**<br>
|
208
|
+
`cinfo.do_fancy_downsampling` is silently ignored.
|
209
|
+
This requires the DCT scaling feature, which is not supported.
|
210
|
+
|
211
|
+
- **jpegtran: Scaling**<br>
|
212
|
+
This requires both the DCT scaling and SmartScale features, which are not
|
213
|
+
supported.
|
214
|
+
|
215
|
+
- **Lossless RGB JPEG files**<br>
|
216
|
+
This requires the SmartScale feature, which is not supported.
|
217
|
+
|
218
|
+
### What About libjpeg v9?
|
219
|
+
|
220
|
+
libjpeg v9 introduced yet another field to the JPEG compression structure
|
221
|
+
(`color_transform`), thus making the ABI backward incompatible with that of
|
222
|
+
libjpeg v8. This new field was introduced solely for the purpose of supporting
|
223
|
+
lossless SmartScale encoding. Furthermore, there was actually no reason to
|
224
|
+
extend the API in this manner, as the color transform could have just as easily
|
225
|
+
been activated by way of a new JPEG colorspace constant, thus preserving
|
226
|
+
backward ABI compatibility.
|
227
|
+
|
228
|
+
Our research (see link above) has shown that lossless SmartScale does not
|
229
|
+
generally accomplish anything that can't already be accomplished better with
|
230
|
+
existing, standard lossless formats. Therefore, at this time it is our belief
|
231
|
+
that there is not sufficient technical justification for software projects to
|
232
|
+
upgrade from libjpeg v8 to libjpeg v9, and thus there is not sufficient
|
233
|
+
technical justification for us to emulate the libjpeg v9 ABI.
|
234
|
+
|
235
|
+
In-Memory Source/Destination Managers
|
236
|
+
-------------------------------------
|
237
|
+
|
238
|
+
By default, libjpeg-turbo 1.3 and later includes the `jpeg_mem_src()` and
|
239
|
+
`jpeg_mem_dest()` functions, even when not emulating the libjpeg v8 API/ABI.
|
240
|
+
Previously, it was necessary to build libjpeg-turbo from source with libjpeg v8
|
241
|
+
API/ABI emulation in order to use the in-memory source/destination managers,
|
242
|
+
but several projects requested that those functions be included when emulating
|
243
|
+
the libjpeg v6b API/ABI as well. This allows the use of those functions by
|
244
|
+
programs that need them, without breaking ABI compatibility for programs that
|
245
|
+
don't, and it allows those functions to be provided in the "official"
|
246
|
+
libjpeg-turbo binaries.
|
247
|
+
|
248
|
+
Those who are concerned about maintaining strict conformance with the libjpeg
|
249
|
+
v6b or v7 API can pass an argument of `-DWITH_MEM_SRCDST=0` to `cmake` prior to
|
250
|
+
building libjpeg-turbo. This will restore the pre-1.3 behavior, in which
|
251
|
+
`jpeg_mem_src()` and `jpeg_mem_dest()` are only included when emulating the
|
252
|
+
libjpeg v8 API/ABI.
|
253
|
+
|
254
|
+
On Un*x systems, including the in-memory source/destination managers changes
|
255
|
+
the dynamic library version from 62.2.0 to 62.3.0 if using libjpeg v6b API/ABI
|
256
|
+
emulation and from 7.2.0 to 7.3.0 if using libjpeg v7 API/ABI emulation.
|
257
|
+
|
258
|
+
Note that, on most Un*x systems, the dynamic linker will not look for a
|
259
|
+
function in a library until that function is actually used. Thus, if a program
|
260
|
+
is built against libjpeg-turbo 1.3+ and uses `jpeg_mem_src()` or
|
261
|
+
`jpeg_mem_dest()`, that program will not fail if run against an older version
|
262
|
+
of libjpeg-turbo or against libjpeg v7- until the program actually tries to
|
263
|
+
call `jpeg_mem_src()` or `jpeg_mem_dest()`. Such is not the case on Windows.
|
264
|
+
If a program is built against the libjpeg-turbo 1.3+ DLL and uses
|
265
|
+
`jpeg_mem_src()` or `jpeg_mem_dest()`, then it must use the libjpeg-turbo 1.3+
|
266
|
+
DLL at run time.
|
267
|
+
|
268
|
+
Both cjpeg and djpeg have been extended to allow testing the in-memory
|
269
|
+
source/destination manager functions. See their respective man pages for more
|
270
|
+
details.
|
271
|
+
|
272
|
+
|
273
|
+
Mathematical Compatibility
|
274
|
+
==========================
|
275
|
+
|
276
|
+
For the most part, libjpeg-turbo should produce identical output to libjpeg
|
277
|
+
v6b. The one exception to this is when using the floating point DCT/IDCT, in
|
278
|
+
which case the outputs of libjpeg v6b and libjpeg-turbo can differ for the
|
279
|
+
following reasons:
|
280
|
+
|
281
|
+
- The SSE/SSE2 floating point DCT implementation in libjpeg-turbo is ever so
|
282
|
+
slightly more accurate than the implementation in libjpeg v6b, but not by
|
283
|
+
any amount perceptible to human vision (generally in the range of 0.01 to
|
284
|
+
0.08 dB gain in PNSR.)
|
285
|
+
|
286
|
+
- When not using the SIMD extensions, libjpeg-turbo uses the more accurate
|
287
|
+
(and slightly faster) floating point IDCT algorithm introduced in libjpeg
|
288
|
+
v8a as opposed to the algorithm used in libjpeg v6b. It should be noted,
|
289
|
+
however, that this algorithm basically brings the accuracy of the floating
|
290
|
+
point IDCT in line with the accuracy of the slow integer IDCT. The floating
|
291
|
+
point DCT/IDCT algorithms are mainly a legacy feature, and they do not
|
292
|
+
produce significantly more accuracy than the slow integer algorithms (to put
|
293
|
+
numbers on this, the typical difference in PNSR between the two algorithms
|
294
|
+
is less than 0.10 dB, whereas changing the quality level by 1 in the upper
|
295
|
+
range of the quality scale is typically more like a 1.0 dB difference.)
|
296
|
+
|
297
|
+
- If the floating point algorithms in libjpeg-turbo are not implemented using
|
298
|
+
SIMD instructions on a particular platform, then the accuracy of the
|
299
|
+
floating point DCT/IDCT can depend on the compiler settings.
|
300
|
+
|
301
|
+
While libjpeg-turbo does emulate the libjpeg v8 API/ABI, under the hood it is
|
302
|
+
still using the same algorithms as libjpeg v6b, so there are several specific
|
303
|
+
cases in which libjpeg-turbo cannot be expected to produce the same output as
|
304
|
+
libjpeg v8:
|
305
|
+
|
306
|
+
- When decompressing using scaling factors of 1/2 and 1/4, because libjpeg v8
|
307
|
+
implements those scaling algorithms differently than libjpeg v6b does, and
|
308
|
+
libjpeg-turbo's SIMD extensions are based on the libjpeg v6b behavior.
|
309
|
+
|
310
|
+
- When using chrominance subsampling, because libjpeg v8 implements this
|
311
|
+
with its DCT/IDCT scaling algorithms rather than with a separate
|
312
|
+
downsampling/upsampling algorithm. In our testing, the subsampled/upsampled
|
313
|
+
output of libjpeg v8 is less accurate than that of libjpeg v6b for this
|
314
|
+
reason.
|
315
|
+
|
316
|
+
- When decompressing using a scaling factor > 1 and merged (AKA "non-fancy" or
|
317
|
+
"non-smooth") chrominance upsampling, because libjpeg v8 does not support
|
318
|
+
merged upsampling with scaling factors > 1.
|
319
|
+
|
320
|
+
|
321
|
+
Performance Pitfalls
|
322
|
+
====================
|
323
|
+
|
324
|
+
Restart Markers
|
325
|
+
---------------
|
326
|
+
|
327
|
+
The optimized Huffman decoder in libjpeg-turbo does not handle restart markers
|
328
|
+
in a way that makes the rest of the libjpeg infrastructure happy, so it is
|
329
|
+
necessary to use the slow Huffman decoder when decompressing a JPEG image that
|
330
|
+
has restart markers. This can cause the decompression performance to drop by
|
331
|
+
as much as 20%, but the performance will still be much greater than that of
|
332
|
+
libjpeg. Many consumer packages, such as Photoshop, use restart markers when
|
333
|
+
generating JPEG images, so images generated by those programs will experience
|
334
|
+
this issue.
|
335
|
+
|
336
|
+
Fast Integer Forward DCT at High Quality Levels
|
337
|
+
-----------------------------------------------
|
338
|
+
|
339
|
+
The algorithm used by the SIMD-accelerated quantization function cannot produce
|
340
|
+
correct results whenever the fast integer forward DCT is used along with a JPEG
|
341
|
+
quality of 98-100. Thus, libjpeg-turbo must use the non-SIMD quantization
|
342
|
+
function in those cases. This causes performance to drop by as much as 40%.
|
343
|
+
It is therefore strongly advised that you use the slow integer forward DCT
|
344
|
+
whenever encoding images with a JPEG quality of 98 or higher.
|
345
|
+
|
346
|
+
|
347
|
+
Memory Debugger Pitfalls
|
348
|
+
========================
|
349
|
+
|
350
|
+
Valgrind and Memory Sanitizer (MSan) can generate false positives
|
351
|
+
(specifically, incorrect reports of uninitialized memory accesses) when used
|
352
|
+
with libjpeg-turbo's SIMD extensions. It is generally recommended that the
|
353
|
+
SIMD extensions be disabled, either by passing an argument of `-DWITH_SIMD=0`
|
354
|
+
to `cmake` when configuring the build or by setting the environment variable
|
355
|
+
`JSIMD_FORCENONE` to `1` at run time, when testing libjpeg-turbo with Valgrind,
|
356
|
+
MSan, or other memory debuggers.
|
@@ -0,0 +1,137 @@
|
|
1
|
+
/*
|
2
|
+
* cderror.h
|
3
|
+
*
|
4
|
+
* Copyright (C) 1994-1997, Thomas G. Lane.
|
5
|
+
* Modified 2009-2017 by Guido Vollbeding.
|
6
|
+
* This file is part of the Independent JPEG Group's software.
|
7
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
8
|
+
* file.
|
9
|
+
*
|
10
|
+
* This file defines the error and message codes for the cjpeg/djpeg
|
11
|
+
* applications. These strings are not needed as part of the JPEG library
|
12
|
+
* proper.
|
13
|
+
* Edit this file to add new codes, or to translate the message strings to
|
14
|
+
* some other language.
|
15
|
+
*/
|
16
|
+
|
17
|
+
/*
|
18
|
+
* To define the enum list of message codes, include this file without
|
19
|
+
* defining macro JMESSAGE. To create a message string table, include it
|
20
|
+
* again with a suitable JMESSAGE definition (see jerror.c for an example).
|
21
|
+
*/
|
22
|
+
#ifndef JMESSAGE
|
23
|
+
#ifndef CDERROR_H
|
24
|
+
#define CDERROR_H
|
25
|
+
/* First time through, define the enum list */
|
26
|
+
#define JMAKE_ENUM_LIST
|
27
|
+
#else
|
28
|
+
/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
|
29
|
+
#define JMESSAGE(code, string)
|
30
|
+
#endif /* CDERROR_H */
|
31
|
+
#endif /* JMESSAGE */
|
32
|
+
|
33
|
+
#ifdef JMAKE_ENUM_LIST
|
34
|
+
|
35
|
+
typedef enum {
|
36
|
+
|
37
|
+
#define JMESSAGE(code, string) code,
|
38
|
+
|
39
|
+
#endif /* JMAKE_ENUM_LIST */
|
40
|
+
|
41
|
+
JMESSAGE(JMSG_FIRSTADDONCODE = 1000, NULL) /* Must be first entry! */
|
42
|
+
|
43
|
+
#ifdef BMP_SUPPORTED
|
44
|
+
JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
|
45
|
+
JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")
|
46
|
+
JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
|
47
|
+
JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
|
48
|
+
JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
|
49
|
+
JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
|
50
|
+
JMESSAGE(JERR_BMP_EMPTY, "Empty BMP image")
|
51
|
+
JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
|
52
|
+
JMESSAGE(JERR_BMP_OUTOFRANGE, "Numeric value out of range in BMP file")
|
53
|
+
JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
|
54
|
+
JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
|
55
|
+
JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")
|
56
|
+
JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
|
57
|
+
#endif /* BMP_SUPPORTED */
|
58
|
+
|
59
|
+
#ifdef GIF_SUPPORTED
|
60
|
+
JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
|
61
|
+
JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
|
62
|
+
JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
|
63
|
+
JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
|
64
|
+
JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
|
65
|
+
JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
|
66
|
+
JMESSAGE(JTRC_GIF_BADVERSION,
|
67
|
+
"Warning: unexpected GIF version number '%c%c%c'")
|
68
|
+
JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
|
69
|
+
JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
|
70
|
+
JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
|
71
|
+
JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
|
72
|
+
JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
|
73
|
+
JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
|
74
|
+
#endif /* GIF_SUPPORTED */
|
75
|
+
|
76
|
+
#ifdef PPM_SUPPORTED
|
77
|
+
JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
|
78
|
+
JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
|
79
|
+
JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
|
80
|
+
JMESSAGE(JERR_PPM_OUTOFRANGE, "Numeric value out of range in PPM file")
|
81
|
+
JMESSAGE(JTRC_PGM, "%ux%u PGM image")
|
82
|
+
JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
|
83
|
+
JMESSAGE(JTRC_PPM, "%ux%u PPM image")
|
84
|
+
JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
|
85
|
+
#endif /* PPM_SUPPORTED */
|
86
|
+
|
87
|
+
#ifdef RLE_SUPPORTED
|
88
|
+
JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
|
89
|
+
JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
|
90
|
+
JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
|
91
|
+
JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
|
92
|
+
JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
|
93
|
+
JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
|
94
|
+
JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
|
95
|
+
JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
|
96
|
+
JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
|
97
|
+
JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
|
98
|
+
JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
|
99
|
+
JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
|
100
|
+
JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
|
101
|
+
JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
|
102
|
+
#endif /* RLE_SUPPORTED */
|
103
|
+
|
104
|
+
#ifdef TARGA_SUPPORTED
|
105
|
+
JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
|
106
|
+
JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
|
107
|
+
JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
|
108
|
+
JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
|
109
|
+
JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
|
110
|
+
JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
|
111
|
+
#else
|
112
|
+
JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
|
113
|
+
#endif /* TARGA_SUPPORTED */
|
114
|
+
|
115
|
+
JMESSAGE(JERR_BAD_CMAP_FILE,
|
116
|
+
"Color map file is invalid or of unsupported format")
|
117
|
+
JMESSAGE(JERR_TOO_MANY_COLORS,
|
118
|
+
"Output file format cannot handle %d colormap entries")
|
119
|
+
JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")
|
120
|
+
#ifdef TARGA_SUPPORTED
|
121
|
+
JMESSAGE(JERR_UNKNOWN_FORMAT,
|
122
|
+
"Unrecognized input file format --- perhaps you need -targa")
|
123
|
+
#else
|
124
|
+
JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
|
125
|
+
#endif
|
126
|
+
JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
|
127
|
+
|
128
|
+
#ifdef JMAKE_ENUM_LIST
|
129
|
+
|
130
|
+
JMSG_LASTADDONCODE
|
131
|
+
} ADDON_MESSAGE_CODE;
|
132
|
+
|
133
|
+
#undef JMAKE_ENUM_LIST
|
134
|
+
#endif /* JMAKE_ENUM_LIST */
|
135
|
+
|
136
|
+
/* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
|
137
|
+
#undef JMESSAGE
|
@@ -0,0 +1,145 @@
|
|
1
|
+
/*
|
2
|
+
* cdjpeg.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1991-1997, Thomas G. Lane.
|
6
|
+
* It was modified by The libjpeg-turbo Project to include only code relevant
|
7
|
+
* to libjpeg-turbo.
|
8
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
9
|
+
* file.
|
10
|
+
*
|
11
|
+
* This file contains common support routines used by the IJG application
|
12
|
+
* programs (cjpeg, djpeg, jpegtran).
|
13
|
+
*/
|
14
|
+
|
15
|
+
#include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
|
16
|
+
#include <ctype.h> /* to declare isupper(), tolower() */
|
17
|
+
#ifdef USE_SETMODE
|
18
|
+
#include <fcntl.h> /* to declare setmode()'s parameter macros */
|
19
|
+
/* If you have setmode() but not <io.h>, just delete this line: */
|
20
|
+
#include <io.h> /* to declare setmode() */
|
21
|
+
#endif
|
22
|
+
|
23
|
+
|
24
|
+
/*
|
25
|
+
* Optional progress monitor: display a percent-done figure on stderr.
|
26
|
+
*/
|
27
|
+
|
28
|
+
#ifdef PROGRESS_REPORT
|
29
|
+
|
30
|
+
METHODDEF(void)
|
31
|
+
progress_monitor(j_common_ptr cinfo)
|
32
|
+
{
|
33
|
+
cd_progress_ptr prog = (cd_progress_ptr)cinfo->progress;
|
34
|
+
int total_passes = prog->pub.total_passes + prog->total_extra_passes;
|
35
|
+
int percent_done =
|
36
|
+
(int)(prog->pub.pass_counter * 100L / prog->pub.pass_limit);
|
37
|
+
|
38
|
+
if (percent_done != prog->percent_done) {
|
39
|
+
prog->percent_done = percent_done;
|
40
|
+
if (total_passes > 1) {
|
41
|
+
fprintf(stderr, "\rPass %d/%d: %3d%% ",
|
42
|
+
prog->pub.completed_passes + prog->completed_extra_passes + 1,
|
43
|
+
total_passes, percent_done);
|
44
|
+
} else {
|
45
|
+
fprintf(stderr, "\r %3d%% ", percent_done);
|
46
|
+
}
|
47
|
+
fflush(stderr);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
GLOBAL(void)
|
53
|
+
start_progress_monitor(j_common_ptr cinfo, cd_progress_ptr progress)
|
54
|
+
{
|
55
|
+
/* Enable progress display, unless trace output is on */
|
56
|
+
if (cinfo->err->trace_level == 0) {
|
57
|
+
progress->pub.progress_monitor = progress_monitor;
|
58
|
+
progress->completed_extra_passes = 0;
|
59
|
+
progress->total_extra_passes = 0;
|
60
|
+
progress->percent_done = -1;
|
61
|
+
cinfo->progress = &progress->pub;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
GLOBAL(void)
|
67
|
+
end_progress_monitor(j_common_ptr cinfo)
|
68
|
+
{
|
69
|
+
/* Clear away progress display */
|
70
|
+
if (cinfo->err->trace_level == 0) {
|
71
|
+
fprintf(stderr, "\r \r");
|
72
|
+
fflush(stderr);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
#endif
|
77
|
+
|
78
|
+
|
79
|
+
/*
|
80
|
+
* Case-insensitive matching of possibly-abbreviated keyword switches.
|
81
|
+
* keyword is the constant keyword (must be lower case already),
|
82
|
+
* minchars is length of minimum legal abbreviation.
|
83
|
+
*/
|
84
|
+
|
85
|
+
GLOBAL(boolean)
|
86
|
+
keymatch(char *arg, const char *keyword, int minchars)
|
87
|
+
{
|
88
|
+
register int ca, ck;
|
89
|
+
register int nmatched = 0;
|
90
|
+
|
91
|
+
while ((ca = *arg++) != '\0') {
|
92
|
+
if ((ck = *keyword++) == '\0')
|
93
|
+
return FALSE; /* arg longer than keyword, no good */
|
94
|
+
if (isupper(ca)) /* force arg to lcase (assume ck is already) */
|
95
|
+
ca = tolower(ca);
|
96
|
+
if (ca != ck)
|
97
|
+
return FALSE; /* no good */
|
98
|
+
nmatched++; /* count matched characters */
|
99
|
+
}
|
100
|
+
/* reached end of argument; fail if it's too short for unique abbrev */
|
101
|
+
if (nmatched < minchars)
|
102
|
+
return FALSE;
|
103
|
+
return TRUE; /* A-OK */
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
/*
|
108
|
+
* Routines to establish binary I/O mode for stdin and stdout.
|
109
|
+
* Non-Unix systems often require some hacking to get out of text mode.
|
110
|
+
*/
|
111
|
+
|
112
|
+
GLOBAL(FILE *)
|
113
|
+
read_stdin(void)
|
114
|
+
{
|
115
|
+
FILE *input_file = stdin;
|
116
|
+
|
117
|
+
#ifdef USE_SETMODE /* need to hack file mode? */
|
118
|
+
setmode(fileno(stdin), O_BINARY);
|
119
|
+
#endif
|
120
|
+
#ifdef USE_FDOPEN /* need to re-open in binary mode? */
|
121
|
+
if ((input_file = fdopen(fileno(stdin), READ_BINARY)) == NULL) {
|
122
|
+
fprintf(stderr, "Cannot reopen stdin\n");
|
123
|
+
exit(EXIT_FAILURE);
|
124
|
+
}
|
125
|
+
#endif
|
126
|
+
return input_file;
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
GLOBAL(FILE *)
|
131
|
+
write_stdout(void)
|
132
|
+
{
|
133
|
+
FILE *output_file = stdout;
|
134
|
+
|
135
|
+
#ifdef USE_SETMODE /* need to hack file mode? */
|
136
|
+
setmode(fileno(stdout), O_BINARY);
|
137
|
+
#endif
|
138
|
+
#ifdef USE_FDOPEN /* need to re-open in binary mode? */
|
139
|
+
if ((output_file = fdopen(fileno(stdout), WRITE_BINARY)) == NULL) {
|
140
|
+
fprintf(stderr, "Cannot reopen stdout\n");
|
141
|
+
exit(EXIT_FAILURE);
|
142
|
+
}
|
143
|
+
#endif
|
144
|
+
return output_file;
|
145
|
+
}
|