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,208 @@
|
|
1
|
+
/*
|
2
|
+
* jdct.h
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1994-1996, Thomas G. Lane.
|
6
|
+
* libjpeg-turbo Modifications:
|
7
|
+
* Copyright (C) 2015, D. R. Commander.
|
8
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
9
|
+
* file.
|
10
|
+
*
|
11
|
+
* This include file contains common declarations for the forward and
|
12
|
+
* inverse DCT modules. These declarations are private to the DCT managers
|
13
|
+
* (jcdctmgr.c, jddctmgr.c) and the individual DCT algorithms.
|
14
|
+
* The individual DCT algorithms are kept in separate files to ease
|
15
|
+
* machine-dependent tuning (e.g., assembly coding).
|
16
|
+
*/
|
17
|
+
|
18
|
+
|
19
|
+
/*
|
20
|
+
* A forward DCT routine is given a pointer to a work area of type DCTELEM[];
|
21
|
+
* the DCT is to be performed in-place in that buffer. Type DCTELEM is int
|
22
|
+
* for 8-bit samples, JLONG for 12-bit samples. (NOTE: Floating-point DCT
|
23
|
+
* implementations use an array of type FAST_FLOAT, instead.)
|
24
|
+
* The DCT inputs are expected to be signed (range +-CENTERJSAMPLE).
|
25
|
+
* The DCT outputs are returned scaled up by a factor of 8; they therefore
|
26
|
+
* have a range of +-8K for 8-bit data, +-128K for 12-bit data. This
|
27
|
+
* convention improves accuracy in integer implementations and saves some
|
28
|
+
* work in floating-point ones.
|
29
|
+
* Quantization of the output coefficients is done by jcdctmgr.c. This
|
30
|
+
* step requires an unsigned type and also one with twice the bits.
|
31
|
+
*/
|
32
|
+
|
33
|
+
#if BITS_IN_JSAMPLE == 8
|
34
|
+
#ifndef WITH_SIMD
|
35
|
+
typedef int DCTELEM; /* 16 or 32 bits is fine */
|
36
|
+
typedef unsigned int UDCTELEM;
|
37
|
+
typedef unsigned long long UDCTELEM2;
|
38
|
+
#else
|
39
|
+
typedef short DCTELEM; /* prefer 16 bit with SIMD for parellelism */
|
40
|
+
typedef unsigned short UDCTELEM;
|
41
|
+
typedef unsigned int UDCTELEM2;
|
42
|
+
#endif
|
43
|
+
#else
|
44
|
+
typedef JLONG DCTELEM; /* must have 32 bits */
|
45
|
+
typedef unsigned long long UDCTELEM2;
|
46
|
+
#endif
|
47
|
+
|
48
|
+
|
49
|
+
/*
|
50
|
+
* An inverse DCT routine is given a pointer to the input JBLOCK and a pointer
|
51
|
+
* to an output sample array. The routine must dequantize the input data as
|
52
|
+
* well as perform the IDCT; for dequantization, it uses the multiplier table
|
53
|
+
* pointed to by compptr->dct_table. The output data is to be placed into the
|
54
|
+
* sample array starting at a specified column. (Any row offset needed will
|
55
|
+
* be applied to the array pointer before it is passed to the IDCT code.)
|
56
|
+
* Note that the number of samples emitted by the IDCT routine is
|
57
|
+
* DCT_scaled_size * DCT_scaled_size.
|
58
|
+
*/
|
59
|
+
|
60
|
+
/* typedef inverse_DCT_method_ptr is declared in jpegint.h */
|
61
|
+
|
62
|
+
/*
|
63
|
+
* Each IDCT routine has its own ideas about the best dct_table element type.
|
64
|
+
*/
|
65
|
+
|
66
|
+
typedef MULTIPLIER ISLOW_MULT_TYPE; /* short or int, whichever is faster */
|
67
|
+
#if BITS_IN_JSAMPLE == 8
|
68
|
+
typedef MULTIPLIER IFAST_MULT_TYPE; /* 16 bits is OK, use short if faster */
|
69
|
+
#define IFAST_SCALE_BITS 2 /* fractional bits in scale factors */
|
70
|
+
#else
|
71
|
+
typedef JLONG IFAST_MULT_TYPE; /* need 32 bits for scaled quantizers */
|
72
|
+
#define IFAST_SCALE_BITS 13 /* fractional bits in scale factors */
|
73
|
+
#endif
|
74
|
+
typedef FAST_FLOAT FLOAT_MULT_TYPE; /* preferred floating type */
|
75
|
+
|
76
|
+
|
77
|
+
/*
|
78
|
+
* Each IDCT routine is responsible for range-limiting its results and
|
79
|
+
* converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
|
80
|
+
* be quite far out of range if the input data is corrupt, so a bulletproof
|
81
|
+
* range-limiting step is required. We use a mask-and-table-lookup method
|
82
|
+
* to do the combined operations quickly. See the comments with
|
83
|
+
* prepare_range_limit_table (in jdmaster.c) for more info.
|
84
|
+
*/
|
85
|
+
|
86
|
+
#define IDCT_range_limit(cinfo) ((cinfo)->sample_range_limit + CENTERJSAMPLE)
|
87
|
+
|
88
|
+
#define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
|
89
|
+
|
90
|
+
|
91
|
+
/* Extern declarations for the forward and inverse DCT routines. */
|
92
|
+
|
93
|
+
EXTERN(void) jpeg_fdct_islow(DCTELEM *data);
|
94
|
+
EXTERN(void) jpeg_fdct_ifast(DCTELEM *data);
|
95
|
+
EXTERN(void) jpeg_fdct_float(FAST_FLOAT *data);
|
96
|
+
|
97
|
+
EXTERN(void) jpeg_idct_islow(j_decompress_ptr cinfo,
|
98
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
99
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
100
|
+
EXTERN(void) jpeg_idct_ifast(j_decompress_ptr cinfo,
|
101
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
102
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
103
|
+
EXTERN(void) jpeg_idct_float(j_decompress_ptr cinfo,
|
104
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
105
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
106
|
+
EXTERN(void) jpeg_idct_7x7(j_decompress_ptr cinfo,
|
107
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
108
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
109
|
+
EXTERN(void) jpeg_idct_6x6(j_decompress_ptr cinfo,
|
110
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
111
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
112
|
+
EXTERN(void) jpeg_idct_5x5(j_decompress_ptr cinfo,
|
113
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
114
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
115
|
+
EXTERN(void) jpeg_idct_4x4(j_decompress_ptr cinfo,
|
116
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
117
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
118
|
+
EXTERN(void) jpeg_idct_3x3(j_decompress_ptr cinfo,
|
119
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
120
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
121
|
+
EXTERN(void) jpeg_idct_2x2(j_decompress_ptr cinfo,
|
122
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
123
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
124
|
+
EXTERN(void) jpeg_idct_1x1(j_decompress_ptr cinfo,
|
125
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
126
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
127
|
+
EXTERN(void) jpeg_idct_9x9(j_decompress_ptr cinfo,
|
128
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
129
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
130
|
+
EXTERN(void) jpeg_idct_10x10(j_decompress_ptr cinfo,
|
131
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
132
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
133
|
+
EXTERN(void) jpeg_idct_11x11(j_decompress_ptr cinfo,
|
134
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
135
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
136
|
+
EXTERN(void) jpeg_idct_12x12(j_decompress_ptr cinfo,
|
137
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
138
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
139
|
+
EXTERN(void) jpeg_idct_13x13(j_decompress_ptr cinfo,
|
140
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
141
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
142
|
+
EXTERN(void) jpeg_idct_14x14(j_decompress_ptr cinfo,
|
143
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
144
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
145
|
+
EXTERN(void) jpeg_idct_15x15(j_decompress_ptr cinfo,
|
146
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
147
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
148
|
+
EXTERN(void) jpeg_idct_16x16(j_decompress_ptr cinfo,
|
149
|
+
jpeg_component_info *compptr, JCOEFPTR coef_block,
|
150
|
+
JSAMPARRAY output_buf, JDIMENSION output_col);
|
151
|
+
|
152
|
+
|
153
|
+
/*
|
154
|
+
* Macros for handling fixed-point arithmetic; these are used by many
|
155
|
+
* but not all of the DCT/IDCT modules.
|
156
|
+
*
|
157
|
+
* All values are expected to be of type JLONG.
|
158
|
+
* Fractional constants are scaled left by CONST_BITS bits.
|
159
|
+
* CONST_BITS is defined within each module using these macros,
|
160
|
+
* and may differ from one module to the next.
|
161
|
+
*/
|
162
|
+
|
163
|
+
#define ONE ((JLONG)1)
|
164
|
+
#define CONST_SCALE (ONE << CONST_BITS)
|
165
|
+
|
166
|
+
/* Convert a positive real constant to an integer scaled by CONST_SCALE.
|
167
|
+
* Caution: some C compilers fail to reduce "FIX(constant)" at compile time,
|
168
|
+
* thus causing a lot of useless floating-point operations at run time.
|
169
|
+
*/
|
170
|
+
|
171
|
+
#define FIX(x) ((JLONG)((x) * CONST_SCALE + 0.5))
|
172
|
+
|
173
|
+
/* Descale and correctly round a JLONG value that's scaled by N bits.
|
174
|
+
* We assume RIGHT_SHIFT rounds towards minus infinity, so adding
|
175
|
+
* the fudge factor is correct for either sign of X.
|
176
|
+
*/
|
177
|
+
|
178
|
+
#define DESCALE(x, n) RIGHT_SHIFT((x) + (ONE << ((n) - 1)), n)
|
179
|
+
|
180
|
+
/* Multiply a JLONG variable by a JLONG constant to yield a JLONG result.
|
181
|
+
* This macro is used only when the two inputs will actually be no more than
|
182
|
+
* 16 bits wide, so that a 16x16->32 bit multiply can be used instead of a
|
183
|
+
* full 32x32 multiply. This provides a useful speedup on many machines.
|
184
|
+
* Unfortunately there is no way to specify a 16x16->32 multiply portably
|
185
|
+
* in C, but some C compilers will do the right thing if you provide the
|
186
|
+
* correct combination of casts.
|
187
|
+
*/
|
188
|
+
|
189
|
+
#ifdef SHORTxSHORT_32 /* may work if 'int' is 32 bits */
|
190
|
+
#define MULTIPLY16C16(var, const) (((INT16)(var)) * ((INT16)(const)))
|
191
|
+
#endif
|
192
|
+
#ifdef SHORTxLCONST_32 /* known to work with Microsoft C 6.0 */
|
193
|
+
#define MULTIPLY16C16(var, const) (((INT16)(var)) * ((JLONG)(const)))
|
194
|
+
#endif
|
195
|
+
|
196
|
+
#ifndef MULTIPLY16C16 /* default definition */
|
197
|
+
#define MULTIPLY16C16(var, const) ((var) * (const))
|
198
|
+
#endif
|
199
|
+
|
200
|
+
/* Same except both inputs are variables. */
|
201
|
+
|
202
|
+
#ifdef SHORTxSHORT_32 /* may work if 'int' is 32 bits */
|
203
|
+
#define MULTIPLY16V16(var1, var2) (((INT16)(var1)) * ((INT16)(var2)))
|
204
|
+
#endif
|
205
|
+
|
206
|
+
#ifndef MULTIPLY16V16 /* default definition */
|
207
|
+
#define MULTIPLY16V16(var1, var2) ((var1) * (var2))
|
208
|
+
#endif
|
@@ -0,0 +1,352 @@
|
|
1
|
+
/*
|
2
|
+
* jddctmgr.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1994-1996, Thomas G. Lane.
|
6
|
+
* Modified 2002-2010 by Guido Vollbeding.
|
7
|
+
* libjpeg-turbo Modifications:
|
8
|
+
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
9
|
+
* Copyright (C) 2010, 2015, D. R. Commander.
|
10
|
+
* Copyright (C) 2013, MIPS Technologies, Inc., California.
|
11
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
12
|
+
* file.
|
13
|
+
*
|
14
|
+
* This file contains the inverse-DCT management logic.
|
15
|
+
* This code selects a particular IDCT implementation to be used,
|
16
|
+
* and it performs related housekeeping chores. No code in this file
|
17
|
+
* is executed per IDCT step, only during output pass setup.
|
18
|
+
*
|
19
|
+
* Note that the IDCT routines are responsible for performing coefficient
|
20
|
+
* dequantization as well as the IDCT proper. This module sets up the
|
21
|
+
* dequantization multiplier table needed by the IDCT routine.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#define JPEG_INTERNALS
|
25
|
+
#include "jinclude.h"
|
26
|
+
#include "jpeglib.h"
|
27
|
+
#include "jdct.h" /* Private declarations for DCT subsystem */
|
28
|
+
#include "jsimddct.h"
|
29
|
+
#include "jpegcomp.h"
|
30
|
+
|
31
|
+
|
32
|
+
/*
|
33
|
+
* The decompressor input side (jdinput.c) saves away the appropriate
|
34
|
+
* quantization table for each component at the start of the first scan
|
35
|
+
* involving that component. (This is necessary in order to correctly
|
36
|
+
* decode files that reuse Q-table slots.)
|
37
|
+
* When we are ready to make an output pass, the saved Q-table is converted
|
38
|
+
* to a multiplier table that will actually be used by the IDCT routine.
|
39
|
+
* The multiplier table contents are IDCT-method-dependent. To support
|
40
|
+
* application changes in IDCT method between scans, we can remake the
|
41
|
+
* multiplier tables if necessary.
|
42
|
+
* In buffered-image mode, the first output pass may occur before any data
|
43
|
+
* has been seen for some components, and thus before their Q-tables have
|
44
|
+
* been saved away. To handle this case, multiplier tables are preset
|
45
|
+
* to zeroes; the result of the IDCT will be a neutral gray level.
|
46
|
+
*/
|
47
|
+
|
48
|
+
|
49
|
+
/* Private subobject for this module */
|
50
|
+
|
51
|
+
typedef struct {
|
52
|
+
struct jpeg_inverse_dct pub; /* public fields */
|
53
|
+
|
54
|
+
/* This array contains the IDCT method code that each multiplier table
|
55
|
+
* is currently set up for, or -1 if it's not yet set up.
|
56
|
+
* The actual multiplier tables are pointed to by dct_table in the
|
57
|
+
* per-component comp_info structures.
|
58
|
+
*/
|
59
|
+
int cur_method[MAX_COMPONENTS];
|
60
|
+
} my_idct_controller;
|
61
|
+
|
62
|
+
typedef my_idct_controller *my_idct_ptr;
|
63
|
+
|
64
|
+
|
65
|
+
/* Allocated multiplier tables: big enough for any supported variant */
|
66
|
+
|
67
|
+
typedef union {
|
68
|
+
ISLOW_MULT_TYPE islow_array[DCTSIZE2];
|
69
|
+
#ifdef DCT_IFAST_SUPPORTED
|
70
|
+
IFAST_MULT_TYPE ifast_array[DCTSIZE2];
|
71
|
+
#endif
|
72
|
+
#ifdef DCT_FLOAT_SUPPORTED
|
73
|
+
FLOAT_MULT_TYPE float_array[DCTSIZE2];
|
74
|
+
#endif
|
75
|
+
} multiplier_table;
|
76
|
+
|
77
|
+
|
78
|
+
/* The current scaled-IDCT routines require ISLOW-style multiplier tables,
|
79
|
+
* so be sure to compile that code if either ISLOW or SCALING is requested.
|
80
|
+
*/
|
81
|
+
#ifdef DCT_ISLOW_SUPPORTED
|
82
|
+
#define PROVIDE_ISLOW_TABLES
|
83
|
+
#else
|
84
|
+
#ifdef IDCT_SCALING_SUPPORTED
|
85
|
+
#define PROVIDE_ISLOW_TABLES
|
86
|
+
#endif
|
87
|
+
#endif
|
88
|
+
|
89
|
+
|
90
|
+
/*
|
91
|
+
* Prepare for an output pass.
|
92
|
+
* Here we select the proper IDCT routine for each component and build
|
93
|
+
* a matching multiplier table.
|
94
|
+
*/
|
95
|
+
|
96
|
+
METHODDEF(void)
|
97
|
+
start_pass(j_decompress_ptr cinfo)
|
98
|
+
{
|
99
|
+
my_idct_ptr idct = (my_idct_ptr)cinfo->idct;
|
100
|
+
int ci, i;
|
101
|
+
jpeg_component_info *compptr;
|
102
|
+
int method = 0;
|
103
|
+
inverse_DCT_method_ptr method_ptr = NULL;
|
104
|
+
JQUANT_TBL *qtbl;
|
105
|
+
|
106
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
107
|
+
ci++, compptr++) {
|
108
|
+
/* Select the proper IDCT routine for this component's scaling */
|
109
|
+
switch (compptr->_DCT_scaled_size) {
|
110
|
+
#ifdef IDCT_SCALING_SUPPORTED
|
111
|
+
case 1:
|
112
|
+
method_ptr = jpeg_idct_1x1;
|
113
|
+
method = JDCT_ISLOW; /* jidctred uses islow-style table */
|
114
|
+
break;
|
115
|
+
case 2:
|
116
|
+
if (jsimd_can_idct_2x2())
|
117
|
+
method_ptr = jsimd_idct_2x2;
|
118
|
+
else
|
119
|
+
method_ptr = jpeg_idct_2x2;
|
120
|
+
method = JDCT_ISLOW; /* jidctred uses islow-style table */
|
121
|
+
break;
|
122
|
+
case 3:
|
123
|
+
method_ptr = jpeg_idct_3x3;
|
124
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
125
|
+
break;
|
126
|
+
case 4:
|
127
|
+
if (jsimd_can_idct_4x4())
|
128
|
+
method_ptr = jsimd_idct_4x4;
|
129
|
+
else
|
130
|
+
method_ptr = jpeg_idct_4x4;
|
131
|
+
method = JDCT_ISLOW; /* jidctred uses islow-style table */
|
132
|
+
break;
|
133
|
+
case 5:
|
134
|
+
method_ptr = jpeg_idct_5x5;
|
135
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
136
|
+
break;
|
137
|
+
case 6:
|
138
|
+
#if defined(__mips__)
|
139
|
+
if (jsimd_can_idct_6x6())
|
140
|
+
method_ptr = jsimd_idct_6x6;
|
141
|
+
else
|
142
|
+
#endif
|
143
|
+
method_ptr = jpeg_idct_6x6;
|
144
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
145
|
+
break;
|
146
|
+
case 7:
|
147
|
+
method_ptr = jpeg_idct_7x7;
|
148
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
149
|
+
break;
|
150
|
+
#endif
|
151
|
+
case DCTSIZE:
|
152
|
+
switch (cinfo->dct_method) {
|
153
|
+
#ifdef DCT_ISLOW_SUPPORTED
|
154
|
+
case JDCT_ISLOW:
|
155
|
+
if (jsimd_can_idct_islow())
|
156
|
+
method_ptr = jsimd_idct_islow;
|
157
|
+
else
|
158
|
+
method_ptr = jpeg_idct_islow;
|
159
|
+
method = JDCT_ISLOW;
|
160
|
+
break;
|
161
|
+
#endif
|
162
|
+
#ifdef DCT_IFAST_SUPPORTED
|
163
|
+
case JDCT_IFAST:
|
164
|
+
if (jsimd_can_idct_ifast())
|
165
|
+
method_ptr = jsimd_idct_ifast;
|
166
|
+
else
|
167
|
+
method_ptr = jpeg_idct_ifast;
|
168
|
+
method = JDCT_IFAST;
|
169
|
+
break;
|
170
|
+
#endif
|
171
|
+
#ifdef DCT_FLOAT_SUPPORTED
|
172
|
+
case JDCT_FLOAT:
|
173
|
+
if (jsimd_can_idct_float())
|
174
|
+
method_ptr = jsimd_idct_float;
|
175
|
+
else
|
176
|
+
method_ptr = jpeg_idct_float;
|
177
|
+
method = JDCT_FLOAT;
|
178
|
+
break;
|
179
|
+
#endif
|
180
|
+
default:
|
181
|
+
ERREXIT(cinfo, JERR_NOT_COMPILED);
|
182
|
+
break;
|
183
|
+
}
|
184
|
+
break;
|
185
|
+
#ifdef IDCT_SCALING_SUPPORTED
|
186
|
+
case 9:
|
187
|
+
method_ptr = jpeg_idct_9x9;
|
188
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
189
|
+
break;
|
190
|
+
case 10:
|
191
|
+
method_ptr = jpeg_idct_10x10;
|
192
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
193
|
+
break;
|
194
|
+
case 11:
|
195
|
+
method_ptr = jpeg_idct_11x11;
|
196
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
197
|
+
break;
|
198
|
+
case 12:
|
199
|
+
#if defined(__mips__)
|
200
|
+
if (jsimd_can_idct_12x12())
|
201
|
+
method_ptr = jsimd_idct_12x12;
|
202
|
+
else
|
203
|
+
#endif
|
204
|
+
method_ptr = jpeg_idct_12x12;
|
205
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
206
|
+
break;
|
207
|
+
case 13:
|
208
|
+
method_ptr = jpeg_idct_13x13;
|
209
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
210
|
+
break;
|
211
|
+
case 14:
|
212
|
+
method_ptr = jpeg_idct_14x14;
|
213
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
214
|
+
break;
|
215
|
+
case 15:
|
216
|
+
method_ptr = jpeg_idct_15x15;
|
217
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
218
|
+
break;
|
219
|
+
case 16:
|
220
|
+
method_ptr = jpeg_idct_16x16;
|
221
|
+
method = JDCT_ISLOW; /* jidctint uses islow-style table */
|
222
|
+
break;
|
223
|
+
#endif
|
224
|
+
default:
|
225
|
+
ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->_DCT_scaled_size);
|
226
|
+
break;
|
227
|
+
}
|
228
|
+
idct->pub.inverse_DCT[ci] = method_ptr;
|
229
|
+
/* Create multiplier table from quant table.
|
230
|
+
* However, we can skip this if the component is uninteresting
|
231
|
+
* or if we already built the table. Also, if no quant table
|
232
|
+
* has yet been saved for the component, we leave the
|
233
|
+
* multiplier table all-zero; we'll be reading zeroes from the
|
234
|
+
* coefficient controller's buffer anyway.
|
235
|
+
*/
|
236
|
+
if (!compptr->component_needed || idct->cur_method[ci] == method)
|
237
|
+
continue;
|
238
|
+
qtbl = compptr->quant_table;
|
239
|
+
if (qtbl == NULL) /* happens if no data yet for component */
|
240
|
+
continue;
|
241
|
+
idct->cur_method[ci] = method;
|
242
|
+
switch (method) {
|
243
|
+
#ifdef PROVIDE_ISLOW_TABLES
|
244
|
+
case JDCT_ISLOW:
|
245
|
+
{
|
246
|
+
/* For LL&M IDCT method, multipliers are equal to raw quantization
|
247
|
+
* coefficients, but are stored as ints to ensure access efficiency.
|
248
|
+
*/
|
249
|
+
ISLOW_MULT_TYPE *ismtbl = (ISLOW_MULT_TYPE *)compptr->dct_table;
|
250
|
+
for (i = 0; i < DCTSIZE2; i++) {
|
251
|
+
ismtbl[i] = (ISLOW_MULT_TYPE)qtbl->quantval[i];
|
252
|
+
}
|
253
|
+
}
|
254
|
+
break;
|
255
|
+
#endif
|
256
|
+
#ifdef DCT_IFAST_SUPPORTED
|
257
|
+
case JDCT_IFAST:
|
258
|
+
{
|
259
|
+
/* For AA&N IDCT method, multipliers are equal to quantization
|
260
|
+
* coefficients scaled by scalefactor[row]*scalefactor[col], where
|
261
|
+
* scalefactor[0] = 1
|
262
|
+
* scalefactor[k] = cos(k*PI/16) * sqrt(2) for k=1..7
|
263
|
+
* For integer operation, the multiplier table is to be scaled by
|
264
|
+
* IFAST_SCALE_BITS.
|
265
|
+
*/
|
266
|
+
IFAST_MULT_TYPE *ifmtbl = (IFAST_MULT_TYPE *)compptr->dct_table;
|
267
|
+
#define CONST_BITS 14
|
268
|
+
static const INT16 aanscales[DCTSIZE2] = {
|
269
|
+
/* precomputed values scaled up by 14 bits */
|
270
|
+
16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520,
|
271
|
+
22725, 31521, 29692, 26722, 22725, 17855, 12299, 6270,
|
272
|
+
21407, 29692, 27969, 25172, 21407, 16819, 11585, 5906,
|
273
|
+
19266, 26722, 25172, 22654, 19266, 15137, 10426, 5315,
|
274
|
+
16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520,
|
275
|
+
12873, 17855, 16819, 15137, 12873, 10114, 6967, 3552,
|
276
|
+
8867, 12299, 11585, 10426, 8867, 6967, 4799, 2446,
|
277
|
+
4520, 6270, 5906, 5315, 4520, 3552, 2446, 1247
|
278
|
+
};
|
279
|
+
SHIFT_TEMPS
|
280
|
+
|
281
|
+
for (i = 0; i < DCTSIZE2; i++) {
|
282
|
+
ifmtbl[i] = (IFAST_MULT_TYPE)
|
283
|
+
DESCALE(MULTIPLY16V16((JLONG)qtbl->quantval[i],
|
284
|
+
(JLONG)aanscales[i]),
|
285
|
+
CONST_BITS - IFAST_SCALE_BITS);
|
286
|
+
}
|
287
|
+
}
|
288
|
+
break;
|
289
|
+
#endif
|
290
|
+
#ifdef DCT_FLOAT_SUPPORTED
|
291
|
+
case JDCT_FLOAT:
|
292
|
+
{
|
293
|
+
/* For float AA&N IDCT method, multipliers are equal to quantization
|
294
|
+
* coefficients scaled by scalefactor[row]*scalefactor[col], where
|
295
|
+
* scalefactor[0] = 1
|
296
|
+
* scalefactor[k] = cos(k*PI/16) * sqrt(2) for k=1..7
|
297
|
+
*/
|
298
|
+
FLOAT_MULT_TYPE *fmtbl = (FLOAT_MULT_TYPE *)compptr->dct_table;
|
299
|
+
int row, col;
|
300
|
+
static const double aanscalefactor[DCTSIZE] = {
|
301
|
+
1.0, 1.387039845, 1.306562965, 1.175875602,
|
302
|
+
1.0, 0.785694958, 0.541196100, 0.275899379
|
303
|
+
};
|
304
|
+
|
305
|
+
i = 0;
|
306
|
+
for (row = 0; row < DCTSIZE; row++) {
|
307
|
+
for (col = 0; col < DCTSIZE; col++) {
|
308
|
+
fmtbl[i] = (FLOAT_MULT_TYPE)
|
309
|
+
((double)qtbl->quantval[i] *
|
310
|
+
aanscalefactor[row] * aanscalefactor[col]);
|
311
|
+
i++;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
break;
|
316
|
+
#endif
|
317
|
+
default:
|
318
|
+
ERREXIT(cinfo, JERR_NOT_COMPILED);
|
319
|
+
break;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
|
325
|
+
/*
|
326
|
+
* Initialize IDCT manager.
|
327
|
+
*/
|
328
|
+
|
329
|
+
GLOBAL(void)
|
330
|
+
jinit_inverse_dct(j_decompress_ptr cinfo)
|
331
|
+
{
|
332
|
+
my_idct_ptr idct;
|
333
|
+
int ci;
|
334
|
+
jpeg_component_info *compptr;
|
335
|
+
|
336
|
+
idct = (my_idct_ptr)
|
337
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
338
|
+
sizeof(my_idct_controller));
|
339
|
+
cinfo->idct = (struct jpeg_inverse_dct *)idct;
|
340
|
+
idct->pub.start_pass = start_pass;
|
341
|
+
|
342
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
343
|
+
ci++, compptr++) {
|
344
|
+
/* Allocate and pre-zero a multiplier table for each component */
|
345
|
+
compptr->dct_table =
|
346
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
347
|
+
sizeof(multiplier_table));
|
348
|
+
MEMZERO(compptr->dct_table, sizeof(multiplier_table));
|
349
|
+
/* Mark multiplier table not yet set up for any method */
|
350
|
+
idct->cur_method[ci] = -1;
|
351
|
+
}
|
352
|
+
}
|