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,28 @@
|
|
1
|
+
/*
|
2
|
+
* jdmaster.h
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1991-1995, Thomas G. Lane.
|
6
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
7
|
+
* file.
|
8
|
+
*
|
9
|
+
* This file contains the master control structure for the JPEG decompressor.
|
10
|
+
*/
|
11
|
+
|
12
|
+
/* Private state */
|
13
|
+
|
14
|
+
typedef struct {
|
15
|
+
struct jpeg_decomp_master pub; /* public fields */
|
16
|
+
|
17
|
+
int pass_number; /* # of passes completed */
|
18
|
+
|
19
|
+
boolean using_merged_upsample; /* TRUE if using merged upsample/cconvert */
|
20
|
+
|
21
|
+
/* Saved references to initialized quantizer modules,
|
22
|
+
* in case we need to switch modes.
|
23
|
+
*/
|
24
|
+
struct jpeg_color_quantizer *quantizer_1pass;
|
25
|
+
struct jpeg_color_quantizer *quantizer_2pass;
|
26
|
+
} my_decomp_master;
|
27
|
+
|
28
|
+
typedef my_decomp_master *my_master_ptr;
|
@@ -0,0 +1,617 @@
|
|
1
|
+
/*
|
2
|
+
* jdmerge.c
|
3
|
+
*
|
4
|
+
* This file was part of the Independent JPEG Group's software:
|
5
|
+
* Copyright (C) 1994-1996, Thomas G. Lane.
|
6
|
+
* libjpeg-turbo Modifications:
|
7
|
+
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
8
|
+
* Copyright (C) 2009, 2011, 2014-2015, D. R. Commander.
|
9
|
+
* Copyright (C) 2013, Linaro Limited.
|
10
|
+
* For conditions of distribution and use, see the accompanying README.ijg
|
11
|
+
* file.
|
12
|
+
*
|
13
|
+
* This file contains code for merged upsampling/color conversion.
|
14
|
+
*
|
15
|
+
* This file combines functions from jdsample.c and jdcolor.c;
|
16
|
+
* read those files first to understand what's going on.
|
17
|
+
*
|
18
|
+
* When the chroma components are to be upsampled by simple replication
|
19
|
+
* (ie, box filtering), we can save some work in color conversion by
|
20
|
+
* calculating all the output pixels corresponding to a pair of chroma
|
21
|
+
* samples at one time. In the conversion equations
|
22
|
+
* R = Y + K1 * Cr
|
23
|
+
* G = Y + K2 * Cb + K3 * Cr
|
24
|
+
* B = Y + K4 * Cb
|
25
|
+
* only the Y term varies among the group of pixels corresponding to a pair
|
26
|
+
* of chroma samples, so the rest of the terms can be calculated just once.
|
27
|
+
* At typical sampling ratios, this eliminates half or three-quarters of the
|
28
|
+
* multiplications needed for color conversion.
|
29
|
+
*
|
30
|
+
* This file currently provides implementations for the following cases:
|
31
|
+
* YCbCr => RGB color conversion only.
|
32
|
+
* Sampling ratios of 2h1v or 2h2v.
|
33
|
+
* No scaling needed at upsample time.
|
34
|
+
* Corner-aligned (non-CCIR601) sampling alignment.
|
35
|
+
* Other special cases could be added, but in most applications these are
|
36
|
+
* the only common cases. (For uncommon cases we fall back on the more
|
37
|
+
* general code in jdsample.c and jdcolor.c.)
|
38
|
+
*/
|
39
|
+
|
40
|
+
#define JPEG_INTERNALS
|
41
|
+
#include "jinclude.h"
|
42
|
+
#include "jpeglib.h"
|
43
|
+
#include "jsimd.h"
|
44
|
+
#include "jconfigint.h"
|
45
|
+
|
46
|
+
#ifdef UPSAMPLE_MERGING_SUPPORTED
|
47
|
+
|
48
|
+
|
49
|
+
/* Private subobject */
|
50
|
+
|
51
|
+
typedef struct {
|
52
|
+
struct jpeg_upsampler pub; /* public fields */
|
53
|
+
|
54
|
+
/* Pointer to routine to do actual upsampling/conversion of one row group */
|
55
|
+
void (*upmethod) (j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
56
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf);
|
57
|
+
|
58
|
+
/* Private state for YCC->RGB conversion */
|
59
|
+
int *Cr_r_tab; /* => table for Cr to R conversion */
|
60
|
+
int *Cb_b_tab; /* => table for Cb to B conversion */
|
61
|
+
JLONG *Cr_g_tab; /* => table for Cr to G conversion */
|
62
|
+
JLONG *Cb_g_tab; /* => table for Cb to G conversion */
|
63
|
+
|
64
|
+
/* For 2:1 vertical sampling, we produce two output rows at a time.
|
65
|
+
* We need a "spare" row buffer to hold the second output row if the
|
66
|
+
* application provides just a one-row buffer; we also use the spare
|
67
|
+
* to discard the dummy last row if the image height is odd.
|
68
|
+
*/
|
69
|
+
JSAMPROW spare_row;
|
70
|
+
boolean spare_full; /* T if spare buffer is occupied */
|
71
|
+
|
72
|
+
JDIMENSION out_row_width; /* samples per output row */
|
73
|
+
JDIMENSION rows_to_go; /* counts rows remaining in image */
|
74
|
+
} my_upsampler;
|
75
|
+
|
76
|
+
typedef my_upsampler *my_upsample_ptr;
|
77
|
+
|
78
|
+
#define SCALEBITS 16 /* speediest right-shift on some machines */
|
79
|
+
#define ONE_HALF ((JLONG)1 << (SCALEBITS - 1))
|
80
|
+
#define FIX(x) ((JLONG)((x) * (1L << SCALEBITS) + 0.5))
|
81
|
+
|
82
|
+
|
83
|
+
/* Include inline routines for colorspace extensions */
|
84
|
+
|
85
|
+
#include "jdmrgext.c"
|
86
|
+
#undef RGB_RED
|
87
|
+
#undef RGB_GREEN
|
88
|
+
#undef RGB_BLUE
|
89
|
+
#undef RGB_PIXELSIZE
|
90
|
+
|
91
|
+
#define RGB_RED EXT_RGB_RED
|
92
|
+
#define RGB_GREEN EXT_RGB_GREEN
|
93
|
+
#define RGB_BLUE EXT_RGB_BLUE
|
94
|
+
#define RGB_PIXELSIZE EXT_RGB_PIXELSIZE
|
95
|
+
#define h2v1_merged_upsample_internal extrgb_h2v1_merged_upsample_internal
|
96
|
+
#define h2v2_merged_upsample_internal extrgb_h2v2_merged_upsample_internal
|
97
|
+
#include "jdmrgext.c"
|
98
|
+
#undef RGB_RED
|
99
|
+
#undef RGB_GREEN
|
100
|
+
#undef RGB_BLUE
|
101
|
+
#undef RGB_PIXELSIZE
|
102
|
+
#undef h2v1_merged_upsample_internal
|
103
|
+
#undef h2v2_merged_upsample_internal
|
104
|
+
|
105
|
+
#define RGB_RED EXT_RGBX_RED
|
106
|
+
#define RGB_GREEN EXT_RGBX_GREEN
|
107
|
+
#define RGB_BLUE EXT_RGBX_BLUE
|
108
|
+
#define RGB_ALPHA 3
|
109
|
+
#define RGB_PIXELSIZE EXT_RGBX_PIXELSIZE
|
110
|
+
#define h2v1_merged_upsample_internal extrgbx_h2v1_merged_upsample_internal
|
111
|
+
#define h2v2_merged_upsample_internal extrgbx_h2v2_merged_upsample_internal
|
112
|
+
#include "jdmrgext.c"
|
113
|
+
#undef RGB_RED
|
114
|
+
#undef RGB_GREEN
|
115
|
+
#undef RGB_BLUE
|
116
|
+
#undef RGB_ALPHA
|
117
|
+
#undef RGB_PIXELSIZE
|
118
|
+
#undef h2v1_merged_upsample_internal
|
119
|
+
#undef h2v2_merged_upsample_internal
|
120
|
+
|
121
|
+
#define RGB_RED EXT_BGR_RED
|
122
|
+
#define RGB_GREEN EXT_BGR_GREEN
|
123
|
+
#define RGB_BLUE EXT_BGR_BLUE
|
124
|
+
#define RGB_PIXELSIZE EXT_BGR_PIXELSIZE
|
125
|
+
#define h2v1_merged_upsample_internal extbgr_h2v1_merged_upsample_internal
|
126
|
+
#define h2v2_merged_upsample_internal extbgr_h2v2_merged_upsample_internal
|
127
|
+
#include "jdmrgext.c"
|
128
|
+
#undef RGB_RED
|
129
|
+
#undef RGB_GREEN
|
130
|
+
#undef RGB_BLUE
|
131
|
+
#undef RGB_PIXELSIZE
|
132
|
+
#undef h2v1_merged_upsample_internal
|
133
|
+
#undef h2v2_merged_upsample_internal
|
134
|
+
|
135
|
+
#define RGB_RED EXT_BGRX_RED
|
136
|
+
#define RGB_GREEN EXT_BGRX_GREEN
|
137
|
+
#define RGB_BLUE EXT_BGRX_BLUE
|
138
|
+
#define RGB_ALPHA 3
|
139
|
+
#define RGB_PIXELSIZE EXT_BGRX_PIXELSIZE
|
140
|
+
#define h2v1_merged_upsample_internal extbgrx_h2v1_merged_upsample_internal
|
141
|
+
#define h2v2_merged_upsample_internal extbgrx_h2v2_merged_upsample_internal
|
142
|
+
#include "jdmrgext.c"
|
143
|
+
#undef RGB_RED
|
144
|
+
#undef RGB_GREEN
|
145
|
+
#undef RGB_BLUE
|
146
|
+
#undef RGB_ALPHA
|
147
|
+
#undef RGB_PIXELSIZE
|
148
|
+
#undef h2v1_merged_upsample_internal
|
149
|
+
#undef h2v2_merged_upsample_internal
|
150
|
+
|
151
|
+
#define RGB_RED EXT_XBGR_RED
|
152
|
+
#define RGB_GREEN EXT_XBGR_GREEN
|
153
|
+
#define RGB_BLUE EXT_XBGR_BLUE
|
154
|
+
#define RGB_ALPHA 0
|
155
|
+
#define RGB_PIXELSIZE EXT_XBGR_PIXELSIZE
|
156
|
+
#define h2v1_merged_upsample_internal extxbgr_h2v1_merged_upsample_internal
|
157
|
+
#define h2v2_merged_upsample_internal extxbgr_h2v2_merged_upsample_internal
|
158
|
+
#include "jdmrgext.c"
|
159
|
+
#undef RGB_RED
|
160
|
+
#undef RGB_GREEN
|
161
|
+
#undef RGB_BLUE
|
162
|
+
#undef RGB_ALPHA
|
163
|
+
#undef RGB_PIXELSIZE
|
164
|
+
#undef h2v1_merged_upsample_internal
|
165
|
+
#undef h2v2_merged_upsample_internal
|
166
|
+
|
167
|
+
#define RGB_RED EXT_XRGB_RED
|
168
|
+
#define RGB_GREEN EXT_XRGB_GREEN
|
169
|
+
#define RGB_BLUE EXT_XRGB_BLUE
|
170
|
+
#define RGB_ALPHA 0
|
171
|
+
#define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE
|
172
|
+
#define h2v1_merged_upsample_internal extxrgb_h2v1_merged_upsample_internal
|
173
|
+
#define h2v2_merged_upsample_internal extxrgb_h2v2_merged_upsample_internal
|
174
|
+
#include "jdmrgext.c"
|
175
|
+
#undef RGB_RED
|
176
|
+
#undef RGB_GREEN
|
177
|
+
#undef RGB_BLUE
|
178
|
+
#undef RGB_ALPHA
|
179
|
+
#undef RGB_PIXELSIZE
|
180
|
+
#undef h2v1_merged_upsample_internal
|
181
|
+
#undef h2v2_merged_upsample_internal
|
182
|
+
|
183
|
+
|
184
|
+
/*
|
185
|
+
* Initialize tables for YCC->RGB colorspace conversion.
|
186
|
+
* This is taken directly from jdcolor.c; see that file for more info.
|
187
|
+
*/
|
188
|
+
|
189
|
+
LOCAL(void)
|
190
|
+
build_ycc_rgb_table(j_decompress_ptr cinfo)
|
191
|
+
{
|
192
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
193
|
+
int i;
|
194
|
+
JLONG x;
|
195
|
+
SHIFT_TEMPS
|
196
|
+
|
197
|
+
upsample->Cr_r_tab = (int *)
|
198
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
199
|
+
(MAXJSAMPLE + 1) * sizeof(int));
|
200
|
+
upsample->Cb_b_tab = (int *)
|
201
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
202
|
+
(MAXJSAMPLE + 1) * sizeof(int));
|
203
|
+
upsample->Cr_g_tab = (JLONG *)
|
204
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
205
|
+
(MAXJSAMPLE + 1) * sizeof(JLONG));
|
206
|
+
upsample->Cb_g_tab = (JLONG *)
|
207
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
208
|
+
(MAXJSAMPLE + 1) * sizeof(JLONG));
|
209
|
+
|
210
|
+
for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {
|
211
|
+
/* i is the actual input pixel value, in the range 0..MAXJSAMPLE */
|
212
|
+
/* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */
|
213
|
+
/* Cr=>R value is nearest int to 1.40200 * x */
|
214
|
+
upsample->Cr_r_tab[i] = (int)
|
215
|
+
RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
|
216
|
+
/* Cb=>B value is nearest int to 1.77200 * x */
|
217
|
+
upsample->Cb_b_tab[i] = (int)
|
218
|
+
RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
|
219
|
+
/* Cr=>G value is scaled-up -0.71414 * x */
|
220
|
+
upsample->Cr_g_tab[i] = (-FIX(0.71414)) * x;
|
221
|
+
/* Cb=>G value is scaled-up -0.34414 * x */
|
222
|
+
/* We also add in ONE_HALF so that need not do it in inner loop */
|
223
|
+
upsample->Cb_g_tab[i] = (-FIX(0.34414)) * x + ONE_HALF;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
/*
|
229
|
+
* Initialize for an upsampling pass.
|
230
|
+
*/
|
231
|
+
|
232
|
+
METHODDEF(void)
|
233
|
+
start_pass_merged_upsample(j_decompress_ptr cinfo)
|
234
|
+
{
|
235
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
236
|
+
|
237
|
+
/* Mark the spare buffer empty */
|
238
|
+
upsample->spare_full = FALSE;
|
239
|
+
/* Initialize total-height counter for detecting bottom of image */
|
240
|
+
upsample->rows_to_go = cinfo->output_height;
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
/*
|
245
|
+
* Control routine to do upsampling (and color conversion).
|
246
|
+
*
|
247
|
+
* The control routine just handles the row buffering considerations.
|
248
|
+
*/
|
249
|
+
|
250
|
+
METHODDEF(void)
|
251
|
+
merged_2v_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
252
|
+
JDIMENSION *in_row_group_ctr,
|
253
|
+
JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf,
|
254
|
+
JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
|
255
|
+
/* 2:1 vertical sampling case: may need a spare row. */
|
256
|
+
{
|
257
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
258
|
+
JSAMPROW work_ptrs[2];
|
259
|
+
JDIMENSION num_rows; /* number of rows returned to caller */
|
260
|
+
|
261
|
+
if (upsample->spare_full) {
|
262
|
+
/* If we have a spare row saved from a previous cycle, just return it. */
|
263
|
+
JDIMENSION size = upsample->out_row_width;
|
264
|
+
if (cinfo->out_color_space == JCS_RGB565)
|
265
|
+
size = cinfo->output_width * 2;
|
266
|
+
jcopy_sample_rows(&upsample->spare_row, 0, output_buf + *out_row_ctr, 0, 1,
|
267
|
+
size);
|
268
|
+
num_rows = 1;
|
269
|
+
upsample->spare_full = FALSE;
|
270
|
+
} else {
|
271
|
+
/* Figure number of rows to return to caller. */
|
272
|
+
num_rows = 2;
|
273
|
+
/* Not more than the distance to the end of the image. */
|
274
|
+
if (num_rows > upsample->rows_to_go)
|
275
|
+
num_rows = upsample->rows_to_go;
|
276
|
+
/* And not more than what the client can accept: */
|
277
|
+
out_rows_avail -= *out_row_ctr;
|
278
|
+
if (num_rows > out_rows_avail)
|
279
|
+
num_rows = out_rows_avail;
|
280
|
+
/* Create output pointer array for upsampler. */
|
281
|
+
work_ptrs[0] = output_buf[*out_row_ctr];
|
282
|
+
if (num_rows > 1) {
|
283
|
+
work_ptrs[1] = output_buf[*out_row_ctr + 1];
|
284
|
+
} else {
|
285
|
+
work_ptrs[1] = upsample->spare_row;
|
286
|
+
upsample->spare_full = TRUE;
|
287
|
+
}
|
288
|
+
/* Now do the upsampling. */
|
289
|
+
(*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr, work_ptrs);
|
290
|
+
}
|
291
|
+
|
292
|
+
/* Adjust counts */
|
293
|
+
*out_row_ctr += num_rows;
|
294
|
+
upsample->rows_to_go -= num_rows;
|
295
|
+
/* When the buffer is emptied, declare this input row group consumed */
|
296
|
+
if (!upsample->spare_full)
|
297
|
+
(*in_row_group_ctr)++;
|
298
|
+
}
|
299
|
+
|
300
|
+
|
301
|
+
METHODDEF(void)
|
302
|
+
merged_1v_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
303
|
+
JDIMENSION *in_row_group_ctr,
|
304
|
+
JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf,
|
305
|
+
JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
|
306
|
+
/* 1:1 vertical sampling case: much easier, never need a spare row. */
|
307
|
+
{
|
308
|
+
my_upsample_ptr upsample = (my_upsample_ptr)cinfo->upsample;
|
309
|
+
|
310
|
+
/* Just do the upsampling. */
|
311
|
+
(*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr,
|
312
|
+
output_buf + *out_row_ctr);
|
313
|
+
/* Adjust counts */
|
314
|
+
(*out_row_ctr)++;
|
315
|
+
(*in_row_group_ctr)++;
|
316
|
+
}
|
317
|
+
|
318
|
+
|
319
|
+
/*
|
320
|
+
* These are the routines invoked by the control routines to do
|
321
|
+
* the actual upsampling/conversion. One row group is processed per call.
|
322
|
+
*
|
323
|
+
* Note: since we may be writing directly into application-supplied buffers,
|
324
|
+
* we have to be honest about the output width; we can't assume the buffer
|
325
|
+
* has been rounded up to an even width.
|
326
|
+
*/
|
327
|
+
|
328
|
+
|
329
|
+
/*
|
330
|
+
* Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical.
|
331
|
+
*/
|
332
|
+
|
333
|
+
METHODDEF(void)
|
334
|
+
h2v1_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
335
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
336
|
+
{
|
337
|
+
switch (cinfo->out_color_space) {
|
338
|
+
case JCS_EXT_RGB:
|
339
|
+
extrgb_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
340
|
+
output_buf);
|
341
|
+
break;
|
342
|
+
case JCS_EXT_RGBX:
|
343
|
+
case JCS_EXT_RGBA:
|
344
|
+
extrgbx_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
345
|
+
output_buf);
|
346
|
+
break;
|
347
|
+
case JCS_EXT_BGR:
|
348
|
+
extbgr_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
349
|
+
output_buf);
|
350
|
+
break;
|
351
|
+
case JCS_EXT_BGRX:
|
352
|
+
case JCS_EXT_BGRA:
|
353
|
+
extbgrx_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
354
|
+
output_buf);
|
355
|
+
break;
|
356
|
+
case JCS_EXT_XBGR:
|
357
|
+
case JCS_EXT_ABGR:
|
358
|
+
extxbgr_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
359
|
+
output_buf);
|
360
|
+
break;
|
361
|
+
case JCS_EXT_XRGB:
|
362
|
+
case JCS_EXT_ARGB:
|
363
|
+
extxrgb_h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
364
|
+
output_buf);
|
365
|
+
break;
|
366
|
+
default:
|
367
|
+
h2v1_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
368
|
+
output_buf);
|
369
|
+
break;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
/*
|
375
|
+
* Upsample and color convert for the case of 2:1 horizontal and 2:1 vertical.
|
376
|
+
*/
|
377
|
+
|
378
|
+
METHODDEF(void)
|
379
|
+
h2v2_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
380
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
381
|
+
{
|
382
|
+
switch (cinfo->out_color_space) {
|
383
|
+
case JCS_EXT_RGB:
|
384
|
+
extrgb_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
385
|
+
output_buf);
|
386
|
+
break;
|
387
|
+
case JCS_EXT_RGBX:
|
388
|
+
case JCS_EXT_RGBA:
|
389
|
+
extrgbx_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
390
|
+
output_buf);
|
391
|
+
break;
|
392
|
+
case JCS_EXT_BGR:
|
393
|
+
extbgr_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
394
|
+
output_buf);
|
395
|
+
break;
|
396
|
+
case JCS_EXT_BGRX:
|
397
|
+
case JCS_EXT_BGRA:
|
398
|
+
extbgrx_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
399
|
+
output_buf);
|
400
|
+
break;
|
401
|
+
case JCS_EXT_XBGR:
|
402
|
+
case JCS_EXT_ABGR:
|
403
|
+
extxbgr_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
404
|
+
output_buf);
|
405
|
+
break;
|
406
|
+
case JCS_EXT_XRGB:
|
407
|
+
case JCS_EXT_ARGB:
|
408
|
+
extxrgb_h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
409
|
+
output_buf);
|
410
|
+
break;
|
411
|
+
default:
|
412
|
+
h2v2_merged_upsample_internal(cinfo, input_buf, in_row_group_ctr,
|
413
|
+
output_buf);
|
414
|
+
break;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
|
418
|
+
|
419
|
+
/*
|
420
|
+
* RGB565 conversion
|
421
|
+
*/
|
422
|
+
|
423
|
+
#define PACK_SHORT_565_LE(r, g, b) ((((r) << 8) & 0xF800) | \
|
424
|
+
(((g) << 3) & 0x7E0) | ((b) >> 3))
|
425
|
+
#define PACK_SHORT_565_BE(r, g, b) (((r) & 0xF8) | ((g) >> 5) | \
|
426
|
+
(((g) << 11) & 0xE000) | \
|
427
|
+
(((b) << 5) & 0x1F00))
|
428
|
+
|
429
|
+
#define PACK_TWO_PIXELS_LE(l, r) ((r << 16) | l)
|
430
|
+
#define PACK_TWO_PIXELS_BE(l, r) ((l << 16) | r)
|
431
|
+
|
432
|
+
#define WRITE_TWO_PIXELS_LE(addr, pixels) { \
|
433
|
+
((INT16 *)(addr))[0] = (INT16)(pixels); \
|
434
|
+
((INT16 *)(addr))[1] = (INT16)((pixels) >> 16); \
|
435
|
+
}
|
436
|
+
#define WRITE_TWO_PIXELS_BE(addr, pixels) { \
|
437
|
+
((INT16 *)(addr))[1] = (INT16)(pixels); \
|
438
|
+
((INT16 *)(addr))[0] = (INT16)((pixels) >> 16); \
|
439
|
+
}
|
440
|
+
|
441
|
+
#define DITHER_565_R(r, dither) ((r) + ((dither) & 0xFF))
|
442
|
+
#define DITHER_565_G(g, dither) ((g) + (((dither) & 0xFF) >> 1))
|
443
|
+
#define DITHER_565_B(b, dither) ((b) + ((dither) & 0xFF))
|
444
|
+
|
445
|
+
|
446
|
+
/* Declarations for ordered dithering
|
447
|
+
*
|
448
|
+
* We use a 4x4 ordered dither array packed into 32 bits. This array is
|
449
|
+
* sufficient for dithering RGB888 to RGB565.
|
450
|
+
*/
|
451
|
+
|
452
|
+
#define DITHER_MASK 0x3
|
453
|
+
#define DITHER_ROTATE(x) ((((x) & 0xFF) << 24) | (((x) >> 8) & 0x00FFFFFF))
|
454
|
+
static const JLONG dither_matrix[4] = {
|
455
|
+
0x0008020A,
|
456
|
+
0x0C040E06,
|
457
|
+
0x030B0109,
|
458
|
+
0x0F070D05
|
459
|
+
};
|
460
|
+
|
461
|
+
|
462
|
+
/* Include inline routines for RGB565 conversion */
|
463
|
+
|
464
|
+
#define PACK_SHORT_565 PACK_SHORT_565_LE
|
465
|
+
#define PACK_TWO_PIXELS PACK_TWO_PIXELS_LE
|
466
|
+
#define WRITE_TWO_PIXELS WRITE_TWO_PIXELS_LE
|
467
|
+
#define h2v1_merged_upsample_565_internal h2v1_merged_upsample_565_le
|
468
|
+
#define h2v1_merged_upsample_565D_internal h2v1_merged_upsample_565D_le
|
469
|
+
#define h2v2_merged_upsample_565_internal h2v2_merged_upsample_565_le
|
470
|
+
#define h2v2_merged_upsample_565D_internal h2v2_merged_upsample_565D_le
|
471
|
+
#include "jdmrg565.c"
|
472
|
+
#undef PACK_SHORT_565
|
473
|
+
#undef PACK_TWO_PIXELS
|
474
|
+
#undef WRITE_TWO_PIXELS
|
475
|
+
#undef h2v1_merged_upsample_565_internal
|
476
|
+
#undef h2v1_merged_upsample_565D_internal
|
477
|
+
#undef h2v2_merged_upsample_565_internal
|
478
|
+
#undef h2v2_merged_upsample_565D_internal
|
479
|
+
|
480
|
+
#define PACK_SHORT_565 PACK_SHORT_565_BE
|
481
|
+
#define PACK_TWO_PIXELS PACK_TWO_PIXELS_BE
|
482
|
+
#define WRITE_TWO_PIXELS WRITE_TWO_PIXELS_BE
|
483
|
+
#define h2v1_merged_upsample_565_internal h2v1_merged_upsample_565_be
|
484
|
+
#define h2v1_merged_upsample_565D_internal h2v1_merged_upsample_565D_be
|
485
|
+
#define h2v2_merged_upsample_565_internal h2v2_merged_upsample_565_be
|
486
|
+
#define h2v2_merged_upsample_565D_internal h2v2_merged_upsample_565D_be
|
487
|
+
#include "jdmrg565.c"
|
488
|
+
#undef PACK_SHORT_565
|
489
|
+
#undef PACK_TWO_PIXELS
|
490
|
+
#undef WRITE_TWO_PIXELS
|
491
|
+
#undef h2v1_merged_upsample_565_internal
|
492
|
+
#undef h2v1_merged_upsample_565D_internal
|
493
|
+
#undef h2v2_merged_upsample_565_internal
|
494
|
+
#undef h2v2_merged_upsample_565D_internal
|
495
|
+
|
496
|
+
|
497
|
+
static INLINE boolean is_big_endian(void)
|
498
|
+
{
|
499
|
+
int test_value = 1;
|
500
|
+
if (*(char *)&test_value != 1)
|
501
|
+
return TRUE;
|
502
|
+
return FALSE;
|
503
|
+
}
|
504
|
+
|
505
|
+
|
506
|
+
METHODDEF(void)
|
507
|
+
h2v1_merged_upsample_565(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
508
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
509
|
+
{
|
510
|
+
if (is_big_endian())
|
511
|
+
h2v1_merged_upsample_565_be(cinfo, input_buf, in_row_group_ctr,
|
512
|
+
output_buf);
|
513
|
+
else
|
514
|
+
h2v1_merged_upsample_565_le(cinfo, input_buf, in_row_group_ctr,
|
515
|
+
output_buf);
|
516
|
+
}
|
517
|
+
|
518
|
+
|
519
|
+
METHODDEF(void)
|
520
|
+
h2v1_merged_upsample_565D(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
521
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
522
|
+
{
|
523
|
+
if (is_big_endian())
|
524
|
+
h2v1_merged_upsample_565D_be(cinfo, input_buf, in_row_group_ctr,
|
525
|
+
output_buf);
|
526
|
+
else
|
527
|
+
h2v1_merged_upsample_565D_le(cinfo, input_buf, in_row_group_ctr,
|
528
|
+
output_buf);
|
529
|
+
}
|
530
|
+
|
531
|
+
|
532
|
+
METHODDEF(void)
|
533
|
+
h2v2_merged_upsample_565(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
534
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
535
|
+
{
|
536
|
+
if (is_big_endian())
|
537
|
+
h2v2_merged_upsample_565_be(cinfo, input_buf, in_row_group_ctr,
|
538
|
+
output_buf);
|
539
|
+
else
|
540
|
+
h2v2_merged_upsample_565_le(cinfo, input_buf, in_row_group_ctr,
|
541
|
+
output_buf);
|
542
|
+
}
|
543
|
+
|
544
|
+
|
545
|
+
METHODDEF(void)
|
546
|
+
h2v2_merged_upsample_565D(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
547
|
+
JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
|
548
|
+
{
|
549
|
+
if (is_big_endian())
|
550
|
+
h2v2_merged_upsample_565D_be(cinfo, input_buf, in_row_group_ctr,
|
551
|
+
output_buf);
|
552
|
+
else
|
553
|
+
h2v2_merged_upsample_565D_le(cinfo, input_buf, in_row_group_ctr,
|
554
|
+
output_buf);
|
555
|
+
}
|
556
|
+
|
557
|
+
|
558
|
+
/*
|
559
|
+
* Module initialization routine for merged upsampling/color conversion.
|
560
|
+
*
|
561
|
+
* NB: this is called under the conditions determined by use_merged_upsample()
|
562
|
+
* in jdmaster.c. That routine MUST correspond to the actual capabilities
|
563
|
+
* of this module; no safety checks are made here.
|
564
|
+
*/
|
565
|
+
|
566
|
+
GLOBAL(void)
|
567
|
+
jinit_merged_upsampler(j_decompress_ptr cinfo)
|
568
|
+
{
|
569
|
+
my_upsample_ptr upsample;
|
570
|
+
|
571
|
+
upsample = (my_upsample_ptr)
|
572
|
+
(*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
573
|
+
sizeof(my_upsampler));
|
574
|
+
cinfo->upsample = (struct jpeg_upsampler *)upsample;
|
575
|
+
upsample->pub.start_pass = start_pass_merged_upsample;
|
576
|
+
upsample->pub.need_context_rows = FALSE;
|
577
|
+
|
578
|
+
upsample->out_row_width = cinfo->output_width * cinfo->out_color_components;
|
579
|
+
|
580
|
+
if (cinfo->max_v_samp_factor == 2) {
|
581
|
+
upsample->pub.upsample = merged_2v_upsample;
|
582
|
+
if (jsimd_can_h2v2_merged_upsample())
|
583
|
+
upsample->upmethod = jsimd_h2v2_merged_upsample;
|
584
|
+
else
|
585
|
+
upsample->upmethod = h2v2_merged_upsample;
|
586
|
+
if (cinfo->out_color_space == JCS_RGB565) {
|
587
|
+
if (cinfo->dither_mode != JDITHER_NONE) {
|
588
|
+
upsample->upmethod = h2v2_merged_upsample_565D;
|
589
|
+
} else {
|
590
|
+
upsample->upmethod = h2v2_merged_upsample_565;
|
591
|
+
}
|
592
|
+
}
|
593
|
+
/* Allocate a spare row buffer */
|
594
|
+
upsample->spare_row = (JSAMPROW)
|
595
|
+
(*cinfo->mem->alloc_large) ((j_common_ptr)cinfo, JPOOL_IMAGE,
|
596
|
+
(size_t)(upsample->out_row_width * sizeof(JSAMPLE)));
|
597
|
+
} else {
|
598
|
+
upsample->pub.upsample = merged_1v_upsample;
|
599
|
+
if (jsimd_can_h2v1_merged_upsample())
|
600
|
+
upsample->upmethod = jsimd_h2v1_merged_upsample;
|
601
|
+
else
|
602
|
+
upsample->upmethod = h2v1_merged_upsample;
|
603
|
+
if (cinfo->out_color_space == JCS_RGB565) {
|
604
|
+
if (cinfo->dither_mode != JDITHER_NONE) {
|
605
|
+
upsample->upmethod = h2v1_merged_upsample_565D;
|
606
|
+
} else {
|
607
|
+
upsample->upmethod = h2v1_merged_upsample_565;
|
608
|
+
}
|
609
|
+
}
|
610
|
+
/* No spare row needed */
|
611
|
+
upsample->spare_row = NULL;
|
612
|
+
}
|
613
|
+
|
614
|
+
build_ycc_rgb_table(cinfo);
|
615
|
+
}
|
616
|
+
|
617
|
+
#endif /* UPSAMPLE_MERGING_SUPPORTED */
|