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,366 @@
|
|
1
|
+
;
|
2
|
+
; jcsample.asm - downsampling (64-bit AVX2)
|
3
|
+
;
|
4
|
+
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
5
|
+
; Copyright (C) 2009, 2016, D. R. Commander.
|
6
|
+
; Copyright (C) 2015, Intel Corporation.
|
7
|
+
;
|
8
|
+
; Based on the x86 SIMD extension for IJG JPEG library
|
9
|
+
; Copyright (C) 1999-2006, MIYASAKA Masaru.
|
10
|
+
; For conditions of distribution and use, see copyright notice in jsimdext.inc
|
11
|
+
;
|
12
|
+
; This file should be assembled with NASM (Netwide Assembler),
|
13
|
+
; can *not* be assembled with Microsoft's MASM or any compatible
|
14
|
+
; assembler (including Borland's Turbo Assembler).
|
15
|
+
; NASM is available from http://nasm.sourceforge.net/ or
|
16
|
+
; http://sourceforge.net/project/showfiles.php?group_id=6208
|
17
|
+
|
18
|
+
%include "jsimdext.inc"
|
19
|
+
|
20
|
+
; --------------------------------------------------------------------------
|
21
|
+
SECTION SEG_TEXT
|
22
|
+
BITS 64
|
23
|
+
;
|
24
|
+
; Downsample pixel values of a single component.
|
25
|
+
; This version handles the common case of 2:1 horizontal and 1:1 vertical,
|
26
|
+
; without smoothing.
|
27
|
+
;
|
28
|
+
; GLOBAL(void)
|
29
|
+
; jsimd_h2v1_downsample_avx2(JDIMENSION image_width, int max_v_samp_factor,
|
30
|
+
; JDIMENSION v_samp_factor,
|
31
|
+
; JDIMENSION width_in_blocks, JSAMPARRAY input_data,
|
32
|
+
; JSAMPARRAY output_data);
|
33
|
+
;
|
34
|
+
|
35
|
+
; r10d = JDIMENSION image_width
|
36
|
+
; r11 = int max_v_samp_factor
|
37
|
+
; r12d = JDIMENSION v_samp_factor
|
38
|
+
; r13d = JDIMENSION width_in_blocks
|
39
|
+
; r14 = JSAMPARRAY input_data
|
40
|
+
; r15 = JSAMPARRAY output_data
|
41
|
+
|
42
|
+
align 32
|
43
|
+
GLOBAL_FUNCTION(jsimd_h2v1_downsample_avx2)
|
44
|
+
|
45
|
+
EXTN(jsimd_h2v1_downsample_avx2):
|
46
|
+
push rbp
|
47
|
+
mov rax, rsp
|
48
|
+
mov rbp, rsp
|
49
|
+
collect_args 6
|
50
|
+
|
51
|
+
mov ecx, r13d
|
52
|
+
shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols)
|
53
|
+
jz near .return
|
54
|
+
|
55
|
+
mov edx, r10d
|
56
|
+
|
57
|
+
; -- expand_right_edge
|
58
|
+
|
59
|
+
push rcx
|
60
|
+
shl rcx, 1 ; output_cols * 2
|
61
|
+
sub rcx, rdx
|
62
|
+
jle short .expand_end
|
63
|
+
|
64
|
+
mov rax, r11
|
65
|
+
test rax, rax
|
66
|
+
jle short .expand_end
|
67
|
+
|
68
|
+
cld
|
69
|
+
mov rsi, r14 ; input_data
|
70
|
+
.expandloop:
|
71
|
+
push rax
|
72
|
+
push rcx
|
73
|
+
|
74
|
+
mov rdi, JSAMPROW [rsi]
|
75
|
+
add rdi, rdx
|
76
|
+
mov al, JSAMPLE [rdi-1]
|
77
|
+
|
78
|
+
rep stosb
|
79
|
+
|
80
|
+
pop rcx
|
81
|
+
pop rax
|
82
|
+
|
83
|
+
add rsi, byte SIZEOF_JSAMPROW
|
84
|
+
dec rax
|
85
|
+
jg short .expandloop
|
86
|
+
|
87
|
+
.expand_end:
|
88
|
+
pop rcx ; output_cols
|
89
|
+
|
90
|
+
; -- h2v1_downsample
|
91
|
+
|
92
|
+
mov eax, r12d ; rowctr
|
93
|
+
test eax, eax
|
94
|
+
jle near .return
|
95
|
+
|
96
|
+
mov rdx, 0x00010000 ; bias pattern
|
97
|
+
vmovd xmm7, edx
|
98
|
+
vpshufd xmm7, xmm7, 0x00 ; xmm7={0, 1, 0, 1, 0, 1, 0, 1}
|
99
|
+
vperm2i128 ymm7, ymm7, ymm7, 0 ; ymm7={xmm7, xmm7}
|
100
|
+
vpcmpeqw ymm6, ymm6, ymm6
|
101
|
+
vpsrlw ymm6, ymm6, BYTE_BIT ; ymm6={0xFF 0x00 0xFF 0x00 ..}
|
102
|
+
|
103
|
+
mov rsi, r14 ; input_data
|
104
|
+
mov rdi, r15 ; output_data
|
105
|
+
.rowloop:
|
106
|
+
push rcx
|
107
|
+
push rdi
|
108
|
+
push rsi
|
109
|
+
|
110
|
+
mov rsi, JSAMPROW [rsi] ; inptr
|
111
|
+
mov rdi, JSAMPROW [rdi] ; outptr
|
112
|
+
|
113
|
+
cmp rcx, byte SIZEOF_YMMWORD
|
114
|
+
jae short .columnloop
|
115
|
+
|
116
|
+
.columnloop_r24:
|
117
|
+
; rcx can possibly be 8, 16, 24
|
118
|
+
cmp rcx, 24
|
119
|
+
jne .columnloop_r16
|
120
|
+
vmovdqu ymm0, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
121
|
+
vmovdqu xmm1, XMMWORD [rsi+1*SIZEOF_YMMWORD]
|
122
|
+
mov rcx, SIZEOF_YMMWORD
|
123
|
+
jmp short .downsample
|
124
|
+
|
125
|
+
.columnloop_r16:
|
126
|
+
cmp rcx, 16
|
127
|
+
jne .columnloop_r8
|
128
|
+
vmovdqu ymm0, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
129
|
+
vpxor ymm1, ymm1, ymm1
|
130
|
+
mov rcx, SIZEOF_YMMWORD
|
131
|
+
jmp short .downsample
|
132
|
+
|
133
|
+
.columnloop_r8:
|
134
|
+
vmovdqu xmm0, XMMWORD[rsi+0*SIZEOF_YMMWORD]
|
135
|
+
vpxor ymm1, ymm1, ymm1
|
136
|
+
mov rcx, SIZEOF_YMMWORD
|
137
|
+
jmp short .downsample
|
138
|
+
|
139
|
+
.columnloop:
|
140
|
+
vmovdqu ymm0, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
141
|
+
vmovdqu ymm1, YMMWORD [rsi+1*SIZEOF_YMMWORD]
|
142
|
+
|
143
|
+
.downsample:
|
144
|
+
vpsrlw ymm2, ymm0, BYTE_BIT
|
145
|
+
vpand ymm0, ymm0, ymm6
|
146
|
+
vpsrlw ymm3, ymm1, BYTE_BIT
|
147
|
+
vpand ymm1, ymm1, ymm6
|
148
|
+
|
149
|
+
vpaddw ymm0, ymm0, ymm2
|
150
|
+
vpaddw ymm1, ymm1, ymm3
|
151
|
+
vpaddw ymm0, ymm0, ymm7
|
152
|
+
vpaddw ymm1, ymm1, ymm7
|
153
|
+
vpsrlw ymm0, ymm0, 1
|
154
|
+
vpsrlw ymm1, ymm1, 1
|
155
|
+
|
156
|
+
vpackuswb ymm0, ymm0, ymm1
|
157
|
+
vpermq ymm0, ymm0, 0xd8
|
158
|
+
|
159
|
+
vmovdqu YMMWORD [rdi+0*SIZEOF_YMMWORD], ymm0
|
160
|
+
|
161
|
+
sub rcx, byte SIZEOF_YMMWORD ; outcol
|
162
|
+
add rsi, byte 2*SIZEOF_YMMWORD ; inptr
|
163
|
+
add rdi, byte 1*SIZEOF_YMMWORD ; outptr
|
164
|
+
cmp rcx, byte SIZEOF_YMMWORD
|
165
|
+
jae short .columnloop
|
166
|
+
test rcx, rcx
|
167
|
+
jnz near .columnloop_r24
|
168
|
+
|
169
|
+
pop rsi
|
170
|
+
pop rdi
|
171
|
+
pop rcx
|
172
|
+
|
173
|
+
add rsi, byte SIZEOF_JSAMPROW ; input_data
|
174
|
+
add rdi, byte SIZEOF_JSAMPROW ; output_data
|
175
|
+
dec rax ; rowctr
|
176
|
+
jg near .rowloop
|
177
|
+
|
178
|
+
.return:
|
179
|
+
vzeroupper
|
180
|
+
uncollect_args 6
|
181
|
+
pop rbp
|
182
|
+
ret
|
183
|
+
|
184
|
+
; --------------------------------------------------------------------------
|
185
|
+
;
|
186
|
+
; Downsample pixel values of a single component.
|
187
|
+
; This version handles the standard case of 2:1 horizontal and 2:1 vertical,
|
188
|
+
; without smoothing.
|
189
|
+
;
|
190
|
+
; GLOBAL(void)
|
191
|
+
; jsimd_h2v2_downsample_avx2(JDIMENSION image_width, int max_v_samp_factor,
|
192
|
+
; JDIMENSION v_samp_factor,
|
193
|
+
; JDIMENSION width_in_blocks, JSAMPARRAY input_data,
|
194
|
+
; JSAMPARRAY output_data);
|
195
|
+
;
|
196
|
+
|
197
|
+
; r10d = JDIMENSION image_width
|
198
|
+
; r11 = int max_v_samp_factor
|
199
|
+
; r12d = JDIMENSION v_samp_factor
|
200
|
+
; r13d = JDIMENSION width_in_blocks
|
201
|
+
; r14 = JSAMPARRAY input_data
|
202
|
+
; r15 = JSAMPARRAY output_data
|
203
|
+
|
204
|
+
align 32
|
205
|
+
GLOBAL_FUNCTION(jsimd_h2v2_downsample_avx2)
|
206
|
+
|
207
|
+
EXTN(jsimd_h2v2_downsample_avx2):
|
208
|
+
push rbp
|
209
|
+
mov rax, rsp
|
210
|
+
mov rbp, rsp
|
211
|
+
collect_args 6
|
212
|
+
|
213
|
+
mov ecx, r13d
|
214
|
+
shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols)
|
215
|
+
jz near .return
|
216
|
+
|
217
|
+
mov edx, r10d
|
218
|
+
|
219
|
+
; -- expand_right_edge
|
220
|
+
|
221
|
+
push rcx
|
222
|
+
shl rcx, 1 ; output_cols * 2
|
223
|
+
sub rcx, rdx
|
224
|
+
jle short .expand_end
|
225
|
+
|
226
|
+
mov rax, r11
|
227
|
+
test rax, rax
|
228
|
+
jle short .expand_end
|
229
|
+
|
230
|
+
cld
|
231
|
+
mov rsi, r14 ; input_data
|
232
|
+
.expandloop:
|
233
|
+
push rax
|
234
|
+
push rcx
|
235
|
+
|
236
|
+
mov rdi, JSAMPROW [rsi]
|
237
|
+
add rdi, rdx
|
238
|
+
mov al, JSAMPLE [rdi-1]
|
239
|
+
|
240
|
+
rep stosb
|
241
|
+
|
242
|
+
pop rcx
|
243
|
+
pop rax
|
244
|
+
|
245
|
+
add rsi, byte SIZEOF_JSAMPROW
|
246
|
+
dec rax
|
247
|
+
jg short .expandloop
|
248
|
+
|
249
|
+
.expand_end:
|
250
|
+
pop rcx ; output_cols
|
251
|
+
|
252
|
+
; -- h2v2_downsample
|
253
|
+
|
254
|
+
mov eax, r12d ; rowctr
|
255
|
+
test rax, rax
|
256
|
+
jle near .return
|
257
|
+
|
258
|
+
mov rdx, 0x00020001 ; bias pattern
|
259
|
+
vmovd xmm7, edx
|
260
|
+
vpcmpeqw ymm6, ymm6, ymm6
|
261
|
+
vpshufd xmm7, xmm7, 0x00 ; ymm7={1, 2, 1, 2, 1, 2, 1, 2}
|
262
|
+
vperm2i128 ymm7, ymm7, ymm7, 0
|
263
|
+
vpsrlw ymm6, ymm6, BYTE_BIT ; ymm6={0xFF 0x00 0xFF 0x00 ..}
|
264
|
+
|
265
|
+
mov rsi, r14 ; input_data
|
266
|
+
mov rdi, r15 ; output_data
|
267
|
+
.rowloop:
|
268
|
+
push rcx
|
269
|
+
push rdi
|
270
|
+
push rsi
|
271
|
+
|
272
|
+
mov rdx, JSAMPROW [rsi+0*SIZEOF_JSAMPROW] ; inptr0
|
273
|
+
mov rsi, JSAMPROW [rsi+1*SIZEOF_JSAMPROW] ; inptr1
|
274
|
+
mov rdi, JSAMPROW [rdi] ; outptr
|
275
|
+
|
276
|
+
cmp rcx, byte SIZEOF_YMMWORD
|
277
|
+
jae short .columnloop
|
278
|
+
|
279
|
+
.columnloop_r24:
|
280
|
+
cmp rcx, 24
|
281
|
+
jne .columnloop_r16
|
282
|
+
vmovdqu ymm0, YMMWORD [rdx+0*SIZEOF_YMMWORD]
|
283
|
+
vmovdqu ymm1, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
284
|
+
vmovdqu xmm2, XMMWORD [rdx+1*SIZEOF_YMMWORD]
|
285
|
+
vmovdqu xmm3, XMMWORD [rsi+1*SIZEOF_YMMWORD]
|
286
|
+
mov rcx, SIZEOF_YMMWORD
|
287
|
+
jmp short .downsample
|
288
|
+
|
289
|
+
.columnloop_r16:
|
290
|
+
cmp rcx, 16
|
291
|
+
jne .columnloop_r8
|
292
|
+
vmovdqu ymm0, YMMWORD [rdx+0*SIZEOF_YMMWORD]
|
293
|
+
vmovdqu ymm1, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
294
|
+
vpxor ymm2, ymm2, ymm2
|
295
|
+
vpxor ymm3, ymm3, ymm3
|
296
|
+
mov rcx, SIZEOF_YMMWORD
|
297
|
+
jmp short .downsample
|
298
|
+
|
299
|
+
.columnloop_r8:
|
300
|
+
vmovdqu xmm0, XMMWORD [rdx+0*SIZEOF_XMMWORD]
|
301
|
+
vmovdqu xmm1, XMMWORD [rsi+0*SIZEOF_XMMWORD]
|
302
|
+
vpxor ymm2, ymm2, ymm2
|
303
|
+
vpxor ymm3, ymm3, ymm3
|
304
|
+
mov rcx, SIZEOF_YMMWORD
|
305
|
+
jmp short .downsample
|
306
|
+
|
307
|
+
.columnloop:
|
308
|
+
vmovdqu ymm0, YMMWORD [rdx+0*SIZEOF_YMMWORD]
|
309
|
+
vmovdqu ymm1, YMMWORD [rsi+0*SIZEOF_YMMWORD]
|
310
|
+
vmovdqu ymm2, YMMWORD [rdx+1*SIZEOF_YMMWORD]
|
311
|
+
vmovdqu ymm3, YMMWORD [rsi+1*SIZEOF_YMMWORD]
|
312
|
+
|
313
|
+
.downsample:
|
314
|
+
vpand ymm4, ymm0, ymm6
|
315
|
+
vpsrlw ymm0, ymm0, BYTE_BIT
|
316
|
+
vpand ymm5, ymm1, ymm6
|
317
|
+
vpsrlw ymm1, ymm1, BYTE_BIT
|
318
|
+
vpaddw ymm0, ymm0, ymm4
|
319
|
+
vpaddw ymm1, ymm1, ymm5
|
320
|
+
|
321
|
+
vpand ymm4, ymm2, ymm6
|
322
|
+
vpsrlw ymm2, ymm2, BYTE_BIT
|
323
|
+
vpand ymm5, ymm3, ymm6
|
324
|
+
vpsrlw ymm3, ymm3, BYTE_BIT
|
325
|
+
vpaddw ymm2, ymm2, ymm4
|
326
|
+
vpaddw ymm3, ymm3, ymm5
|
327
|
+
|
328
|
+
vpaddw ymm0, ymm0, ymm1
|
329
|
+
vpaddw ymm2, ymm2, ymm3
|
330
|
+
vpaddw ymm0, ymm0, ymm7
|
331
|
+
vpaddw ymm2, ymm2, ymm7
|
332
|
+
vpsrlw ymm0, ymm0, 2
|
333
|
+
vpsrlw ymm2, ymm2, 2
|
334
|
+
|
335
|
+
vpackuswb ymm0, ymm0, ymm2
|
336
|
+
vpermq ymm0, ymm0, 0xd8
|
337
|
+
|
338
|
+
vmovdqu YMMWORD [rdi+0*SIZEOF_YMMWORD], ymm0
|
339
|
+
|
340
|
+
sub rcx, byte SIZEOF_YMMWORD ; outcol
|
341
|
+
add rdx, byte 2*SIZEOF_YMMWORD ; inptr0
|
342
|
+
add rsi, byte 2*SIZEOF_YMMWORD ; inptr1
|
343
|
+
add rdi, byte 1*SIZEOF_YMMWORD ; outptr
|
344
|
+
cmp rcx, byte SIZEOF_YMMWORD
|
345
|
+
jae near .columnloop
|
346
|
+
test rcx, rcx
|
347
|
+
jnz near .columnloop_r24
|
348
|
+
|
349
|
+
pop rsi
|
350
|
+
pop rdi
|
351
|
+
pop rcx
|
352
|
+
|
353
|
+
add rsi, byte 2*SIZEOF_JSAMPROW ; input_data
|
354
|
+
add rdi, byte 1*SIZEOF_JSAMPROW ; output_data
|
355
|
+
dec rax ; rowctr
|
356
|
+
jg near .rowloop
|
357
|
+
|
358
|
+
.return:
|
359
|
+
vzeroupper
|
360
|
+
uncollect_args 6
|
361
|
+
pop rbp
|
362
|
+
ret
|
363
|
+
|
364
|
+
; For some reason, the OS X linker does not honor the request to align the
|
365
|
+
; segment unless we do this.
|
366
|
+
align 32
|
@@ -0,0 +1,329 @@
|
|
1
|
+
;
|
2
|
+
; jcsample.asm - downsampling (64-bit SSE2)
|
3
|
+
;
|
4
|
+
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
5
|
+
; Copyright (C) 2009, 2016, D. R. Commander.
|
6
|
+
;
|
7
|
+
; Based on the x86 SIMD extension for IJG JPEG library
|
8
|
+
; Copyright (C) 1999-2006, MIYASAKA Masaru.
|
9
|
+
; For conditions of distribution and use, see copyright notice in jsimdext.inc
|
10
|
+
;
|
11
|
+
; This file should be assembled with NASM (Netwide Assembler),
|
12
|
+
; can *not* be assembled with Microsoft's MASM or any compatible
|
13
|
+
; assembler (including Borland's Turbo Assembler).
|
14
|
+
; NASM is available from http://nasm.sourceforge.net/ or
|
15
|
+
; http://sourceforge.net/project/showfiles.php?group_id=6208
|
16
|
+
|
17
|
+
%include "jsimdext.inc"
|
18
|
+
|
19
|
+
; --------------------------------------------------------------------------
|
20
|
+
SECTION SEG_TEXT
|
21
|
+
BITS 64
|
22
|
+
;
|
23
|
+
; Downsample pixel values of a single component.
|
24
|
+
; This version handles the common case of 2:1 horizontal and 1:1 vertical,
|
25
|
+
; without smoothing.
|
26
|
+
;
|
27
|
+
; GLOBAL(void)
|
28
|
+
; jsimd_h2v1_downsample_sse2(JDIMENSION image_width, int max_v_samp_factor,
|
29
|
+
; JDIMENSION v_samp_factor,
|
30
|
+
; JDIMENSION width_in_blocks, JSAMPARRAY input_data,
|
31
|
+
; JSAMPARRAY output_data);
|
32
|
+
;
|
33
|
+
|
34
|
+
; r10d = JDIMENSION image_width
|
35
|
+
; r11 = int max_v_samp_factor
|
36
|
+
; r12d = JDIMENSION v_samp_factor
|
37
|
+
; r13d = JDIMENSION width_in_blocks
|
38
|
+
; r14 = JSAMPARRAY input_data
|
39
|
+
; r15 = JSAMPARRAY output_data
|
40
|
+
|
41
|
+
align 32
|
42
|
+
GLOBAL_FUNCTION(jsimd_h2v1_downsample_sse2)
|
43
|
+
|
44
|
+
EXTN(jsimd_h2v1_downsample_sse2):
|
45
|
+
push rbp
|
46
|
+
mov rax, rsp
|
47
|
+
mov rbp, rsp
|
48
|
+
collect_args 6
|
49
|
+
|
50
|
+
mov ecx, r13d
|
51
|
+
shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols)
|
52
|
+
jz near .return
|
53
|
+
|
54
|
+
mov edx, r10d
|
55
|
+
|
56
|
+
; -- expand_right_edge
|
57
|
+
|
58
|
+
push rcx
|
59
|
+
shl rcx, 1 ; output_cols * 2
|
60
|
+
sub rcx, rdx
|
61
|
+
jle short .expand_end
|
62
|
+
|
63
|
+
mov rax, r11
|
64
|
+
test rax, rax
|
65
|
+
jle short .expand_end
|
66
|
+
|
67
|
+
cld
|
68
|
+
mov rsi, r14 ; input_data
|
69
|
+
.expandloop:
|
70
|
+
push rax
|
71
|
+
push rcx
|
72
|
+
|
73
|
+
mov rdi, JSAMPROW [rsi]
|
74
|
+
add rdi, rdx
|
75
|
+
mov al, JSAMPLE [rdi-1]
|
76
|
+
|
77
|
+
rep stosb
|
78
|
+
|
79
|
+
pop rcx
|
80
|
+
pop rax
|
81
|
+
|
82
|
+
add rsi, byte SIZEOF_JSAMPROW
|
83
|
+
dec rax
|
84
|
+
jg short .expandloop
|
85
|
+
|
86
|
+
.expand_end:
|
87
|
+
pop rcx ; output_cols
|
88
|
+
|
89
|
+
; -- h2v1_downsample
|
90
|
+
|
91
|
+
mov eax, r12d ; rowctr
|
92
|
+
test eax, eax
|
93
|
+
jle near .return
|
94
|
+
|
95
|
+
mov rdx, 0x00010000 ; bias pattern
|
96
|
+
movd xmm7, edx
|
97
|
+
pcmpeqw xmm6, xmm6
|
98
|
+
pshufd xmm7, xmm7, 0x00 ; xmm7={0, 1, 0, 1, 0, 1, 0, 1}
|
99
|
+
psrlw xmm6, BYTE_BIT ; xmm6={0xFF 0x00 0xFF 0x00 ..}
|
100
|
+
|
101
|
+
mov rsi, r14 ; input_data
|
102
|
+
mov rdi, r15 ; output_data
|
103
|
+
.rowloop:
|
104
|
+
push rcx
|
105
|
+
push rdi
|
106
|
+
push rsi
|
107
|
+
|
108
|
+
mov rsi, JSAMPROW [rsi] ; inptr
|
109
|
+
mov rdi, JSAMPROW [rdi] ; outptr
|
110
|
+
|
111
|
+
cmp rcx, byte SIZEOF_XMMWORD
|
112
|
+
jae short .columnloop
|
113
|
+
|
114
|
+
.columnloop_r8:
|
115
|
+
movdqa xmm0, XMMWORD [rsi+0*SIZEOF_XMMWORD]
|
116
|
+
pxor xmm1, xmm1
|
117
|
+
mov rcx, SIZEOF_XMMWORD
|
118
|
+
jmp short .downsample
|
119
|
+
|
120
|
+
.columnloop:
|
121
|
+
movdqa xmm0, XMMWORD [rsi+0*SIZEOF_XMMWORD]
|
122
|
+
movdqa xmm1, XMMWORD [rsi+1*SIZEOF_XMMWORD]
|
123
|
+
|
124
|
+
.downsample:
|
125
|
+
movdqa xmm2, xmm0
|
126
|
+
movdqa xmm3, xmm1
|
127
|
+
|
128
|
+
pand xmm0, xmm6
|
129
|
+
psrlw xmm2, BYTE_BIT
|
130
|
+
pand xmm1, xmm6
|
131
|
+
psrlw xmm3, BYTE_BIT
|
132
|
+
|
133
|
+
paddw xmm0, xmm2
|
134
|
+
paddw xmm1, xmm3
|
135
|
+
paddw xmm0, xmm7
|
136
|
+
paddw xmm1, xmm7
|
137
|
+
psrlw xmm0, 1
|
138
|
+
psrlw xmm1, 1
|
139
|
+
|
140
|
+
packuswb xmm0, xmm1
|
141
|
+
|
142
|
+
movdqa XMMWORD [rdi+0*SIZEOF_XMMWORD], xmm0
|
143
|
+
|
144
|
+
sub rcx, byte SIZEOF_XMMWORD ; outcol
|
145
|
+
add rsi, byte 2*SIZEOF_XMMWORD ; inptr
|
146
|
+
add rdi, byte 1*SIZEOF_XMMWORD ; outptr
|
147
|
+
cmp rcx, byte SIZEOF_XMMWORD
|
148
|
+
jae short .columnloop
|
149
|
+
test rcx, rcx
|
150
|
+
jnz short .columnloop_r8
|
151
|
+
|
152
|
+
pop rsi
|
153
|
+
pop rdi
|
154
|
+
pop rcx
|
155
|
+
|
156
|
+
add rsi, byte SIZEOF_JSAMPROW ; input_data
|
157
|
+
add rdi, byte SIZEOF_JSAMPROW ; output_data
|
158
|
+
dec rax ; rowctr
|
159
|
+
jg near .rowloop
|
160
|
+
|
161
|
+
.return:
|
162
|
+
uncollect_args 6
|
163
|
+
pop rbp
|
164
|
+
ret
|
165
|
+
|
166
|
+
; --------------------------------------------------------------------------
|
167
|
+
;
|
168
|
+
; Downsample pixel values of a single component.
|
169
|
+
; This version handles the standard case of 2:1 horizontal and 2:1 vertical,
|
170
|
+
; without smoothing.
|
171
|
+
;
|
172
|
+
; GLOBAL(void)
|
173
|
+
; jsimd_h2v2_downsample_sse2(JDIMENSION image_width, int max_v_samp_factor,
|
174
|
+
; JDIMENSION v_samp_factor,
|
175
|
+
; JDIMENSION width_in_blocks, JSAMPARRAY input_data,
|
176
|
+
; JSAMPARRAY output_data);
|
177
|
+
;
|
178
|
+
|
179
|
+
; r10d = JDIMENSION image_width
|
180
|
+
; r11 = int max_v_samp_factor
|
181
|
+
; r12d = JDIMENSION v_samp_factor
|
182
|
+
; r13d = JDIMENSION width_in_blocks
|
183
|
+
; r14 = JSAMPARRAY input_data
|
184
|
+
; r15 = JSAMPARRAY output_data
|
185
|
+
|
186
|
+
align 32
|
187
|
+
GLOBAL_FUNCTION(jsimd_h2v2_downsample_sse2)
|
188
|
+
|
189
|
+
EXTN(jsimd_h2v2_downsample_sse2):
|
190
|
+
push rbp
|
191
|
+
mov rax, rsp
|
192
|
+
mov rbp, rsp
|
193
|
+
collect_args 6
|
194
|
+
|
195
|
+
mov ecx, r13d
|
196
|
+
shl rcx, 3 ; imul rcx,DCTSIZE (rcx = output_cols)
|
197
|
+
jz near .return
|
198
|
+
|
199
|
+
mov edx, r10d
|
200
|
+
|
201
|
+
; -- expand_right_edge
|
202
|
+
|
203
|
+
push rcx
|
204
|
+
shl rcx, 1 ; output_cols * 2
|
205
|
+
sub rcx, rdx
|
206
|
+
jle short .expand_end
|
207
|
+
|
208
|
+
mov rax, r11
|
209
|
+
test rax, rax
|
210
|
+
jle short .expand_end
|
211
|
+
|
212
|
+
cld
|
213
|
+
mov rsi, r14 ; input_data
|
214
|
+
.expandloop:
|
215
|
+
push rax
|
216
|
+
push rcx
|
217
|
+
|
218
|
+
mov rdi, JSAMPROW [rsi]
|
219
|
+
add rdi, rdx
|
220
|
+
mov al, JSAMPLE [rdi-1]
|
221
|
+
|
222
|
+
rep stosb
|
223
|
+
|
224
|
+
pop rcx
|
225
|
+
pop rax
|
226
|
+
|
227
|
+
add rsi, byte SIZEOF_JSAMPROW
|
228
|
+
dec rax
|
229
|
+
jg short .expandloop
|
230
|
+
|
231
|
+
.expand_end:
|
232
|
+
pop rcx ; output_cols
|
233
|
+
|
234
|
+
; -- h2v2_downsample
|
235
|
+
|
236
|
+
mov eax, r12d ; rowctr
|
237
|
+
test rax, rax
|
238
|
+
jle near .return
|
239
|
+
|
240
|
+
mov rdx, 0x00020001 ; bias pattern
|
241
|
+
movd xmm7, edx
|
242
|
+
pcmpeqw xmm6, xmm6
|
243
|
+
pshufd xmm7, xmm7, 0x00 ; xmm7={1, 2, 1, 2, 1, 2, 1, 2}
|
244
|
+
psrlw xmm6, BYTE_BIT ; xmm6={0xFF 0x00 0xFF 0x00 ..}
|
245
|
+
|
246
|
+
mov rsi, r14 ; input_data
|
247
|
+
mov rdi, r15 ; output_data
|
248
|
+
.rowloop:
|
249
|
+
push rcx
|
250
|
+
push rdi
|
251
|
+
push rsi
|
252
|
+
|
253
|
+
mov rdx, JSAMPROW [rsi+0*SIZEOF_JSAMPROW] ; inptr0
|
254
|
+
mov rsi, JSAMPROW [rsi+1*SIZEOF_JSAMPROW] ; inptr1
|
255
|
+
mov rdi, JSAMPROW [rdi] ; outptr
|
256
|
+
|
257
|
+
cmp rcx, byte SIZEOF_XMMWORD
|
258
|
+
jae short .columnloop
|
259
|
+
|
260
|
+
.columnloop_r8:
|
261
|
+
movdqa xmm0, XMMWORD [rdx+0*SIZEOF_XMMWORD]
|
262
|
+
movdqa xmm1, XMMWORD [rsi+0*SIZEOF_XMMWORD]
|
263
|
+
pxor xmm2, xmm2
|
264
|
+
pxor xmm3, xmm3
|
265
|
+
mov rcx, SIZEOF_XMMWORD
|
266
|
+
jmp short .downsample
|
267
|
+
|
268
|
+
.columnloop:
|
269
|
+
movdqa xmm0, XMMWORD [rdx+0*SIZEOF_XMMWORD]
|
270
|
+
movdqa xmm1, XMMWORD [rsi+0*SIZEOF_XMMWORD]
|
271
|
+
movdqa xmm2, XMMWORD [rdx+1*SIZEOF_XMMWORD]
|
272
|
+
movdqa xmm3, XMMWORD [rsi+1*SIZEOF_XMMWORD]
|
273
|
+
|
274
|
+
.downsample:
|
275
|
+
movdqa xmm4, xmm0
|
276
|
+
movdqa xmm5, xmm1
|
277
|
+
pand xmm0, xmm6
|
278
|
+
psrlw xmm4, BYTE_BIT
|
279
|
+
pand xmm1, xmm6
|
280
|
+
psrlw xmm5, BYTE_BIT
|
281
|
+
paddw xmm0, xmm4
|
282
|
+
paddw xmm1, xmm5
|
283
|
+
|
284
|
+
movdqa xmm4, xmm2
|
285
|
+
movdqa xmm5, xmm3
|
286
|
+
pand xmm2, xmm6
|
287
|
+
psrlw xmm4, BYTE_BIT
|
288
|
+
pand xmm3, xmm6
|
289
|
+
psrlw xmm5, BYTE_BIT
|
290
|
+
paddw xmm2, xmm4
|
291
|
+
paddw xmm3, xmm5
|
292
|
+
|
293
|
+
paddw xmm0, xmm1
|
294
|
+
paddw xmm2, xmm3
|
295
|
+
paddw xmm0, xmm7
|
296
|
+
paddw xmm2, xmm7
|
297
|
+
psrlw xmm0, 2
|
298
|
+
psrlw xmm2, 2
|
299
|
+
|
300
|
+
packuswb xmm0, xmm2
|
301
|
+
|
302
|
+
movdqa XMMWORD [rdi+0*SIZEOF_XMMWORD], xmm0
|
303
|
+
|
304
|
+
sub rcx, byte SIZEOF_XMMWORD ; outcol
|
305
|
+
add rdx, byte 2*SIZEOF_XMMWORD ; inptr0
|
306
|
+
add rsi, byte 2*SIZEOF_XMMWORD ; inptr1
|
307
|
+
add rdi, byte 1*SIZEOF_XMMWORD ; outptr
|
308
|
+
cmp rcx, byte SIZEOF_XMMWORD
|
309
|
+
jae near .columnloop
|
310
|
+
test rcx, rcx
|
311
|
+
jnz near .columnloop_r8
|
312
|
+
|
313
|
+
pop rsi
|
314
|
+
pop rdi
|
315
|
+
pop rcx
|
316
|
+
|
317
|
+
add rsi, byte 2*SIZEOF_JSAMPROW ; input_data
|
318
|
+
add rdi, byte 1*SIZEOF_JSAMPROW ; output_data
|
319
|
+
dec rax ; rowctr
|
320
|
+
jg near .rowloop
|
321
|
+
|
322
|
+
.return:
|
323
|
+
uncollect_args 6
|
324
|
+
pop rbp
|
325
|
+
ret
|
326
|
+
|
327
|
+
; For some reason, the OS X linker does not honor the request to align the
|
328
|
+
; segment unless we do this.
|
329
|
+
align 32
|