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,518 @@
|
|
1
|
+
/*
|
2
|
+
* jdsample.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1991-1996, Thomas G. Lane.
|
6
|
+
* libjpeg-turbo Modifications:
|
7
|
+
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
8
|
+
* Copyright (C) 2010, 2015-2016, D. R. Commander.
|
9
|
+
* Copyright (C) 2014, MIPS Technologies, Inc., California.
|
10
|
+
* Copyright (C) 2015, Google, Inc.
|
11
|
+
* Copyright (C) 2019, Arm Limited.
|
12
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
13
|
+
* file.
|
14
|
+
*
|
15
|
+
* This file contains upsampling routines.
|
16
|
+
*
|
17
|
+
* Upsampling input data is counted in "row groups". A row group
|
18
|
+
* is defined to be (v_samp_factor * DCT_scaled_size / min_DCT_scaled_size)
|
19
|
+
* sample rows of each component. Upsampling will normally produce
|
20
|
+
* max_v_samp_factor pixel rows from each row group (but this could vary
|
21
|
+
* if the upsampler is applying a scale factor of its own).
|
22
|
+
*
|
23
|
+
* An excellent reference for image resampling is
|
24
|
+
* Digital Image Warping, George Wolberg, 1990.
|
25
|
+
* Pub. by IEEE Computer Society Press, Los Alamitos, CA. ISBN 0-8186-8944-7.
|
26
|
+
*/
|
27
|
+
|
28
|
+
#include "jinclude.h"
|
29
|
+
#include "jdsample.h"
|
30
|
+
#include "jsimd.h"
|
31
|
+
#include "jpegcomp.h"
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
/*
|
36
|
+
* Initialize for an upsampling pass.
|
37
|
+
*/
|
38
|
+
|
39
|
+
METHODDEF(void)
|
40
|
+
start_pass_upsample(j_decompress_ptr cinfo)
|
41
|
+
{
|
42
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
43
|
+
|
44
|
+
/* Mark the conversion buffer empty */
|
45
|
+
upsample->next_row_out = cinfo->max_v_samp_factor;
|
46
|
+
/* Initialize total-height counter for detecting bottom of image */
|
47
|
+
upsample->rows_to_go = cinfo->output_height;
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
/*
|
52
|
+
* Control routine to do upsampling (and color conversion).
|
53
|
+
*
|
54
|
+
* In this version we upsample each component independently.
|
55
|
+
* We upsample one row group into the conversion buffer, then apply
|
56
|
+
* color conversion a row at a time.
|
57
|
+
*/
|
58
|
+
|
59
|
+
METHODDEF(void)
|
60
|
+
sep_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
61
|
+
JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail,
|
62
|
+
JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,
|
63
|
+
JDIMENSION out_rows_avail)
|
64
|
+
{
|
65
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
66
|
+
int ci;
|
67
|
+
jpeg_component_info *compptr;
|
68
|
+
JDIMENSION num_rows;
|
69
|
+
|
70
|
+
/* Fill the conversion buffer, if it's empty */
|
71
|
+
if (upsample->next_row_out >= cinfo->max_v_samp_factor) {
|
72
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
73
|
+
ci++, compptr++) {
|
74
|
+
/* Invoke per-component upsample method. Notice we pass a POINTER
|
75
|
+
* to color_buf[ci], so that fullsize_upsample can change it.
|
76
|
+
*/
|
77
|
+
(*upsample->methods[ci]) (cinfo, compptr,
|
78
|
+
input_buf[ci] + (*in_row_group_ctr * upsample->rowgroup_height[ci]),
|
79
|
+
upsample->color_buf + ci);
|
80
|
+
}
|
81
|
+
upsample->next_row_out = 0;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Color-convert and emit rows */
|
85
|
+
|
86
|
+
/* How many we have in the buffer: */
|
87
|
+
num_rows = (JDIMENSION)(cinfo->max_v_samp_factor - upsample->next_row_out);
|
88
|
+
/* Not more than the distance to the end of the image. Need this test
|
89
|
+
* in case the image height is not a multiple of max_v_samp_factor:
|
90
|
+
*/
|
91
|
+
if (num_rows > upsample->rows_to_go)
|
92
|
+
num_rows = upsample->rows_to_go;
|
93
|
+
/* And not more than what the client can accept: */
|
94
|
+
out_rows_avail -= *out_row_ctr;
|
95
|
+
if (num_rows > out_rows_avail)
|
96
|
+
num_rows = out_rows_avail;
|
97
|
+
|
98
|
+
(*cinfo->cconvert->color_convert) (cinfo, upsample->color_buf,
|
99
|
+
(JDIMENSION)upsample->next_row_out,
|
100
|
+
output_buf + *out_row_ctr, (int)num_rows);
|
101
|
+
|
102
|
+
/* Adjust counts */
|
103
|
+
*out_row_ctr += num_rows;
|
104
|
+
upsample->rows_to_go -= num_rows;
|
105
|
+
upsample->next_row_out += num_rows;
|
106
|
+
/* When the buffer is emptied, declare this input row group consumed */
|
107
|
+
if (upsample->next_row_out >= cinfo->max_v_samp_factor)
|
108
|
+
(*in_row_group_ctr)++;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
/*
|
113
|
+
* These are the routines invoked by sep_upsample to upsample pixel values
|
114
|
+
* of a single component. One row group is processed per call.
|
115
|
+
*/
|
116
|
+
|
117
|
+
|
118
|
+
/*
|
119
|
+
* For full-size components, we just make color_buf[ci] point at the
|
120
|
+
* input buffer, and thus avoid copying any data. Note that this is
|
121
|
+
* safe only because sep_upsample doesn't declare the input row group
|
122
|
+
* "consumed" until we are done color converting and emitting it.
|
123
|
+
*/
|
124
|
+
|
125
|
+
METHODDEF(void)
|
126
|
+
fullsize_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
127
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
128
|
+
{
|
129
|
+
*output_data_ptr = input_data;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
/*
|
134
|
+
* This is a no-op version used for "uninteresting" components.
|
135
|
+
* These components will not be referenced by color conversion.
|
136
|
+
*/
|
137
|
+
|
138
|
+
METHODDEF(void)
|
139
|
+
noop_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
140
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
141
|
+
{
|
142
|
+
*output_data_ptr = NULL; /* safety check */
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/*
|
147
|
+
* This version handles any integral sampling ratios.
|
148
|
+
* This is not used for typical JPEG files, so it need not be fast.
|
149
|
+
* Nor, for that matter, is it particularly accurate: the algorithm is
|
150
|
+
* simple replication of the input pixel onto the corresponding output
|
151
|
+
* pixels. The hi-falutin sampling literature refers to this as a
|
152
|
+
* "box filter". A box filter tends to introduce visible artifacts,
|
153
|
+
* so if you are actually going to use 3:1 or 4:1 sampling ratios
|
154
|
+
* you would be well advised to improve this code.
|
155
|
+
*/
|
156
|
+
|
157
|
+
METHODDEF(void)
|
158
|
+
int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
159
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
160
|
+
{
|
161
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
162
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
163
|
+
register JSAMPROW inptr, outptr;
|
164
|
+
register JSAMPLE invalue;
|
165
|
+
register int h;
|
166
|
+
JSAMPROW outend;
|
167
|
+
int h_expand, v_expand;
|
168
|
+
int inrow, outrow;
|
169
|
+
|
170
|
+
h_expand = upsample->h_expand[compptr->component_index];
|
171
|
+
v_expand = upsample->v_expand[compptr->component_index];
|
172
|
+
|
173
|
+
inrow = outrow = 0;
|
174
|
+
while (outrow < cinfo->max_v_samp_factor) {
|
175
|
+
/* Generate one output row with proper horizontal expansion */
|
176
|
+
inptr = input_data[inrow];
|
177
|
+
outptr = output_data[outrow];
|
178
|
+
outend = outptr + cinfo->output_width;
|
179
|
+
while (outptr < outend) {
|
180
|
+
invalue = *inptr++; /* don't need GETJSAMPLE() here */
|
181
|
+
for (h = h_expand; h > 0; h--) {
|
182
|
+
*outptr++ = invalue;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
/* Generate any additional output rows by duplicating the first one */
|
186
|
+
if (v_expand > 1) {
|
187
|
+
jcopy_sample_rows(output_data, outrow, output_data, outrow + 1,
|
188
|
+
v_expand - 1, cinfo->output_width);
|
189
|
+
}
|
190
|
+
inrow++;
|
191
|
+
outrow += v_expand;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
/*
|
197
|
+
* Fast processing for the common case of 2:1 horizontal and 1:1 vertical.
|
198
|
+
* It's still a box filter.
|
199
|
+
*/
|
200
|
+
|
201
|
+
METHODDEF(void)
|
202
|
+
h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
203
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
204
|
+
{
|
205
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
206
|
+
register JSAMPROW inptr, outptr;
|
207
|
+
register JSAMPLE invalue;
|
208
|
+
JSAMPROW outend;
|
209
|
+
int inrow;
|
210
|
+
|
211
|
+
for (inrow = 0; inrow < cinfo->max_v_samp_factor; inrow++) {
|
212
|
+
inptr = input_data[inrow];
|
213
|
+
outptr = output_data[inrow];
|
214
|
+
outend = outptr + cinfo->output_width;
|
215
|
+
while (outptr < outend) {
|
216
|
+
invalue = *inptr++; /* don't need GETJSAMPLE() here */
|
217
|
+
*outptr++ = invalue;
|
218
|
+
*outptr++ = invalue;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
|
224
|
+
/*
|
225
|
+
* Fast processing for the common case of 2:1 horizontal and 2:1 vertical.
|
226
|
+
* It's still a box filter.
|
227
|
+
*/
|
228
|
+
|
229
|
+
METHODDEF(void)
|
230
|
+
h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
231
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
232
|
+
{
|
233
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
234
|
+
register JSAMPROW inptr, outptr;
|
235
|
+
register JSAMPLE invalue;
|
236
|
+
JSAMPROW outend;
|
237
|
+
int inrow, outrow;
|
238
|
+
|
239
|
+
inrow = outrow = 0;
|
240
|
+
while (outrow < cinfo->max_v_samp_factor) {
|
241
|
+
inptr = input_data[inrow];
|
242
|
+
outptr = output_data[outrow];
|
243
|
+
outend = outptr + cinfo->output_width;
|
244
|
+
while (outptr < outend) {
|
245
|
+
invalue = *inptr++; /* don't need GETJSAMPLE() here */
|
246
|
+
*outptr++ = invalue;
|
247
|
+
*outptr++ = invalue;
|
248
|
+
}
|
249
|
+
jcopy_sample_rows(output_data, outrow, output_data, outrow + 1, 1,
|
250
|
+
cinfo->output_width);
|
251
|
+
inrow++;
|
252
|
+
outrow += 2;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
/*
|
258
|
+
* Fancy processing for the common case of 2:1 horizontal and 1:1 vertical.
|
259
|
+
*
|
260
|
+
* The upsampling algorithm is linear interpolation between pixel centers,
|
261
|
+
* also known as a "triangle filter". This is a good compromise between
|
262
|
+
* speed and visual quality. The centers of the output pixels are 1/4 and 3/4
|
263
|
+
* of the way between input pixel centers.
|
264
|
+
*
|
265
|
+
* A note about the "bias" calculations: when rounding fractional values to
|
266
|
+
* integer, we do not want to always round 0.5 up to the next integer.
|
267
|
+
* If we did that, we'd introduce a noticeable bias towards larger values.
|
268
|
+
* Instead, this code is arranged so that 0.5 will be rounded up or down at
|
269
|
+
* alternate pixel locations (a simple ordered dither pattern).
|
270
|
+
*/
|
271
|
+
|
272
|
+
METHODDEF(void)
|
273
|
+
h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
274
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
275
|
+
{
|
276
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
277
|
+
register JSAMPROW inptr, outptr;
|
278
|
+
register int invalue;
|
279
|
+
register JDIMENSION colctr;
|
280
|
+
int inrow;
|
281
|
+
|
282
|
+
for (inrow = 0; inrow < cinfo->max_v_samp_factor; inrow++) {
|
283
|
+
inptr = input_data[inrow];
|
284
|
+
outptr = output_data[inrow];
|
285
|
+
/* Special case for first column */
|
286
|
+
invalue = GETJSAMPLE(*inptr++);
|
287
|
+
*outptr++ = (JSAMPLE)invalue;
|
288
|
+
*outptr++ = (JSAMPLE)((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2);
|
289
|
+
|
290
|
+
for (colctr = compptr->downsampled_width - 2; colctr > 0; colctr--) {
|
291
|
+
/* General case: 3/4 * nearer pixel + 1/4 * further pixel */
|
292
|
+
invalue = GETJSAMPLE(*inptr++) * 3;
|
293
|
+
*outptr++ = (JSAMPLE)((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2);
|
294
|
+
*outptr++ = (JSAMPLE)((invalue + GETJSAMPLE(*inptr) + 2) >> 2);
|
295
|
+
}
|
296
|
+
|
297
|
+
/* Special case for last column */
|
298
|
+
invalue = GETJSAMPLE(*inptr);
|
299
|
+
*outptr++ = (JSAMPLE)((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2);
|
300
|
+
*outptr++ = (JSAMPLE)invalue;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
|
305
|
+
/*
|
306
|
+
* Fancy processing for 1:1 horizontal and 2:1 vertical (4:4:0 subsampling).
|
307
|
+
*
|
308
|
+
* This is a less common case, but it can be encountered when losslessly
|
309
|
+
* rotating/transposing a JPEG file that uses 4:2:2 chroma subsampling.
|
310
|
+
*/
|
311
|
+
|
312
|
+
METHODDEF(void)
|
313
|
+
h1v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
314
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
315
|
+
{
|
316
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
317
|
+
JSAMPROW inptr0, inptr1, outptr;
|
318
|
+
#if BITS_IN_JSAMPLE == 8
|
319
|
+
int thiscolsum, bias;
|
320
|
+
#else
|
321
|
+
JLONG thiscolsum, bias;
|
322
|
+
#endif
|
323
|
+
JDIMENSION colctr;
|
324
|
+
int inrow, outrow, v;
|
325
|
+
|
326
|
+
inrow = outrow = 0;
|
327
|
+
while (outrow < cinfo->max_v_samp_factor) {
|
328
|
+
for (v = 0; v < 2; v++) {
|
329
|
+
/* inptr0 points to nearest input row, inptr1 points to next nearest */
|
330
|
+
inptr0 = input_data[inrow];
|
331
|
+
if (v == 0) { /* next nearest is row above */
|
332
|
+
inptr1 = input_data[inrow - 1];
|
333
|
+
bias = 1;
|
334
|
+
} else { /* next nearest is row below */
|
335
|
+
inptr1 = input_data[inrow + 1];
|
336
|
+
bias = 2;
|
337
|
+
}
|
338
|
+
outptr = output_data[outrow++];
|
339
|
+
|
340
|
+
for (colctr = 0; colctr < compptr->downsampled_width; colctr++) {
|
341
|
+
thiscolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
|
342
|
+
*outptr++ = (JSAMPLE)((thiscolsum + bias) >> 2);
|
343
|
+
}
|
344
|
+
}
|
345
|
+
inrow++;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
|
350
|
+
/*
|
351
|
+
* Fancy processing for the common case of 2:1 horizontal and 2:1 vertical.
|
352
|
+
* Again a triangle filter; see comments for h2v1 case, above.
|
353
|
+
*
|
354
|
+
* It is OK for us to reference the adjacent input rows because we demanded
|
355
|
+
* context from the main buffer controller (see initialization code).
|
356
|
+
*/
|
357
|
+
|
358
|
+
METHODDEF(void)
|
359
|
+
h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
|
360
|
+
JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
|
361
|
+
{
|
362
|
+
JSAMPARRAY output_data = *output_data_ptr;
|
363
|
+
register JSAMPROW inptr0, inptr1, outptr;
|
364
|
+
#if BITS_IN_JSAMPLE == 8
|
365
|
+
register int thiscolsum, lastcolsum, nextcolsum;
|
366
|
+
#else
|
367
|
+
register JLONG thiscolsum, lastcolsum, nextcolsum;
|
368
|
+
#endif
|
369
|
+
register JDIMENSION colctr;
|
370
|
+
int inrow, outrow, v;
|
371
|
+
|
372
|
+
inrow = outrow = 0;
|
373
|
+
while (outrow < cinfo->max_v_samp_factor) {
|
374
|
+
for (v = 0; v < 2; v++) {
|
375
|
+
/* inptr0 points to nearest input row, inptr1 points to next nearest */
|
376
|
+
inptr0 = input_data[inrow];
|
377
|
+
if (v == 0) /* next nearest is row above */
|
378
|
+
inptr1 = input_data[inrow - 1];
|
379
|
+
else /* next nearest is row below */
|
380
|
+
inptr1 = input_data[inrow + 1];
|
381
|
+
outptr = output_data[outrow++];
|
382
|
+
|
383
|
+
/* Special case for first column */
|
384
|
+
thiscolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
|
385
|
+
nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
|
386
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 4 + 8) >> 4);
|
387
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 3 + nextcolsum + 7) >> 4);
|
388
|
+
lastcolsum = thiscolsum; thiscolsum = nextcolsum;
|
389
|
+
|
390
|
+
for (colctr = compptr->downsampled_width - 2; colctr > 0; colctr--) {
|
391
|
+
/* General case: 3/4 * nearer pixel + 1/4 * further pixel in each */
|
392
|
+
/* dimension, thus 9/16, 3/16, 3/16, 1/16 overall */
|
393
|
+
nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
|
394
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 3 + lastcolsum + 8) >> 4);
|
395
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 3 + nextcolsum + 7) >> 4);
|
396
|
+
lastcolsum = thiscolsum; thiscolsum = nextcolsum;
|
397
|
+
}
|
398
|
+
|
399
|
+
/* Special case for last column */
|
400
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 3 + lastcolsum + 8) >> 4);
|
401
|
+
*outptr++ = (JSAMPLE)((thiscolsum * 4 + 7) >> 4);
|
402
|
+
}
|
403
|
+
inrow++;
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
|
408
|
+
/*
|
409
|
+
* Module initialization routine for upsampling.
|
410
|
+
*/
|
411
|
+
|
412
|
+
GLOBAL(void)
|
413
|
+
jinit_upsampler(j_decompress_ptr cinfo)
|
414
|
+
{
|
415
|
+
my_upsample_ptr upsample;
|
416
|
+
int ci;
|
417
|
+
jpeg_component_info *compptr;
|
418
|
+
boolean need_buffer, do_fancy;
|
419
|
+
int h_in_group, v_in_group, h_out_group, v_out_group;
|
420
|
+
|
421
|
+
if (!cinfo->master->jinit_upsampler_no_alloc) {
|
422
|
+
upsample = (my_upsample_ptr)
|
423
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
424
|
+
sizeof(my_upsampler));
|
425
|
+
cinfo->upsample = (struct jpeg_upsampler *)upsample;
|
426
|
+
upsample->pub.start_pass = start_pass_upsample;
|
427
|
+
upsample->pub.upsample = sep_upsample;
|
428
|
+
upsample->pub.need_context_rows = FALSE; /* until we find out differently */
|
429
|
+
} else
|
430
|
+
upsample = (my_upsample_ptr)cinfo->upsample;
|
431
|
+
|
432
|
+
if (cinfo->CCIR601_sampling) /* this isn't supported */
|
433
|
+
ERREXIT(cinfo, JERR_CCIR601_NOTIMPL);
|
434
|
+
|
435
|
+
/* jdmainct.c doesn't support context rows when min_DCT_scaled_size = 1,
|
436
|
+
* so don't ask for it.
|
437
|
+
*/
|
438
|
+
do_fancy = cinfo->do_fancy_upsampling && cinfo->_min_DCT_scaled_size > 1;
|
439
|
+
|
440
|
+
/* Verify we can handle the sampling factors, select per-component methods,
|
441
|
+
* and create storage as needed.
|
442
|
+
*/
|
443
|
+
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
|
444
|
+
ci++, compptr++) {
|
445
|
+
/* Compute size of an "input group" after IDCT scaling. This many samples
|
446
|
+
* are to be converted to max_h_samp_factor * max_v_samp_factor pixels.
|
447
|
+
*/
|
448
|
+
h_in_group = (compptr->h_samp_factor * compptr->_DCT_scaled_size) /
|
449
|
+
cinfo->_min_DCT_scaled_size;
|
450
|
+
v_in_group = (compptr->v_samp_factor * compptr->_DCT_scaled_size) /
|
451
|
+
cinfo->_min_DCT_scaled_size;
|
452
|
+
h_out_group = cinfo->max_h_samp_factor;
|
453
|
+
v_out_group = cinfo->max_v_samp_factor;
|
454
|
+
upsample->rowgroup_height[ci] = v_in_group; /* save for use later */
|
455
|
+
need_buffer = TRUE;
|
456
|
+
if (!compptr->component_needed) {
|
457
|
+
/* Don't bother to upsample an uninteresting component. */
|
458
|
+
upsample->methods[ci] = noop_upsample;
|
459
|
+
need_buffer = FALSE;
|
460
|
+
} else if (h_in_group == h_out_group && v_in_group == v_out_group) {
|
461
|
+
/* Fullsize components can be processed without any work. */
|
462
|
+
upsample->methods[ci] = fullsize_upsample;
|
463
|
+
need_buffer = FALSE;
|
464
|
+
} else if (h_in_group * 2 == h_out_group && v_in_group == v_out_group) {
|
465
|
+
/* Special cases for 2h1v upsampling */
|
466
|
+
if (do_fancy && compptr->downsampled_width > 2) {
|
467
|
+
if (jsimd_can_h2v1_fancy_upsample())
|
468
|
+
upsample->methods[ci] = jsimd_h2v1_fancy_upsample;
|
469
|
+
else
|
470
|
+
upsample->methods[ci] = h2v1_fancy_upsample;
|
471
|
+
} else {
|
472
|
+
if (jsimd_can_h2v1_upsample())
|
473
|
+
upsample->methods[ci] = jsimd_h2v1_upsample;
|
474
|
+
else
|
475
|
+
upsample->methods[ci] = h2v1_upsample;
|
476
|
+
}
|
477
|
+
} else if (h_in_group == h_out_group &&
|
478
|
+
v_in_group * 2 == v_out_group && do_fancy) {
|
479
|
+
/* Non-fancy upsampling is handled by the generic method */
|
480
|
+
upsample->methods[ci] = h1v2_fancy_upsample;
|
481
|
+
upsample->pub.need_context_rows = TRUE;
|
482
|
+
} else if (h_in_group * 2 == h_out_group &&
|
483
|
+
v_in_group * 2 == v_out_group) {
|
484
|
+
/* Special cases for 2h2v upsampling */
|
485
|
+
if (do_fancy && compptr->downsampled_width > 2) {
|
486
|
+
if (jsimd_can_h2v2_fancy_upsample())
|
487
|
+
upsample->methods[ci] = jsimd_h2v2_fancy_upsample;
|
488
|
+
else
|
489
|
+
upsample->methods[ci] = h2v2_fancy_upsample;
|
490
|
+
upsample->pub.need_context_rows = TRUE;
|
491
|
+
} else {
|
492
|
+
if (jsimd_can_h2v2_upsample())
|
493
|
+
upsample->methods[ci] = jsimd_h2v2_upsample;
|
494
|
+
else
|
495
|
+
upsample->methods[ci] = h2v2_upsample;
|
496
|
+
}
|
497
|
+
} else if ((h_out_group % h_in_group) == 0 &&
|
498
|
+
(v_out_group % v_in_group) == 0) {
|
499
|
+
/* Generic integral-factors upsampling method */
|
500
|
+
#if defined(__mips__)
|
501
|
+
if (jsimd_can_int_upsample())
|
502
|
+
upsample->methods[ci] = jsimd_int_upsample;
|
503
|
+
else
|
504
|
+
#endif
|
505
|
+
upsample->methods[ci] = int_upsample;
|
506
|
+
upsample->h_expand[ci] = (UINT8)(h_out_group / h_in_group);
|
507
|
+
upsample->v_expand[ci] = (UINT8)(v_out_group / v_in_group);
|
508
|
+
} else
|
509
|
+
ERREXIT(cinfo, JERR_FRACT_SAMPLE_NOTIMPL);
|
510
|
+
if (need_buffer && !cinfo->master->jinit_upsampler_no_alloc) {
|
511
|
+
upsample->color_buf[ci] = (*cinfo->mem->alloc_sarray)
|
512
|
+
((j_common_ptr)cinfo, JPOOL_IMAGE,
|
513
|
+
(JDIMENSION)jround_up((long)cinfo->output_width,
|
514
|
+
(long)cinfo->max_h_samp_factor),
|
515
|
+
(JDIMENSION)cinfo->max_v_samp_factor);
|
516
|
+
}
|
517
|
+
}
|
518
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*
|
2
|
+
* jdsample.h
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1991-1996, Thomas G. Lane.
|
6
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
7
|
+
* file.
|
8
|
+
*/
|
9
|
+
|
10
|
+
#define JPEG_INTERNALS
|
11
|
+
#include "jpeglib.h"
|
12
|
+
|
13
|
+
|
14
|
+
/* Pointer to routine to upsample a single component */
|
15
|
+
typedef void (*upsample1_ptr) (j_decompress_ptr cinfo,
|
16
|
+
jpeg_component_info *compptr,
|
17
|
+
JSAMPARRAY input_data,
|
18
|
+
JSAMPARRAY *output_data_ptr);
|
19
|
+
|
20
|
+
/* Private subobject */
|
21
|
+
|
22
|
+
typedef struct {
|
23
|
+
struct jpeg_upsampler pub; /* public fields */
|
24
|
+
|
25
|
+
/* Color conversion buffer. When using separate upsampling and color
|
26
|
+
* conversion steps, this buffer holds one upsampled row group until it
|
27
|
+
* has been color converted and output.
|
28
|
+
* Note: we do not allocate any storage for component(s) which are full-size,
|
29
|
+
* ie do not need rescaling. The corresponding entry of color_buf[] is
|
30
|
+
* simply set to point to the input data array, thereby avoiding copying.
|
31
|
+
*/
|
32
|
+
JSAMPARRAY color_buf[MAX_COMPONENTS];
|
33
|
+
|
34
|
+
/* Per-component upsampling method pointers */
|
35
|
+
upsample1_ptr methods[MAX_COMPONENTS];
|
36
|
+
|
37
|
+
int next_row_out; /* counts rows emitted from color_buf */
|
38
|
+
JDIMENSION rows_to_go; /* counts rows remaining in image */
|
39
|
+
|
40
|
+
/* Height of an input row group for each component. */
|
41
|
+
int rowgroup_height[MAX_COMPONENTS];
|
42
|
+
|
43
|
+
/* These arrays save pixel expansion factors so that int_expand need not
|
44
|
+
* recompute them each time. They are unused for other upsampling methods.
|
45
|
+
*/
|
46
|
+
UINT8 h_expand[MAX_COMPONENTS];
|
47
|
+
UINT8 v_expand[MAX_COMPONENTS];
|
48
|
+
} my_upsampler;
|
49
|
+
|
50
|
+
typedef my_upsampler *my_upsample_ptr;
|