epeg 1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (504) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/MANIFEST +5 -0
  4. data/TODO +1 -0
  5. data/epeg/.dockerignore +4 -0
  6. data/epeg/.gitignore +5 -0
  7. data/epeg/CMakeLists.txt +30 -0
  8. data/epeg/Dockerfile +23 -0
  9. data/epeg/Epeg.h +90 -0
  10. data/epeg/README.md +42 -0
  11. data/epeg/epeg_main.c +1642 -0
  12. data/epeg/epeg_private.h +85 -0
  13. data/epeg/example/.gitignore +1 -0
  14. data/epeg/example/CMakeLists.txt +20 -0
  15. data/epeg/example/example.jpg +0 -0
  16. data/epeg/example/rotatetest.c +29 -0
  17. data/epeg/example/scaletest.c +48 -0
  18. data/epeg/vendor/libjpeg-turbo-2.0.4/BUILDING.md +828 -0
  19. data/epeg/vendor/libjpeg-turbo-2.0.4/CMakeLists.txt +1420 -0
  20. data/epeg/vendor/libjpeg-turbo-2.0.4/ChangeLog.md +1494 -0
  21. data/epeg/vendor/libjpeg-turbo-2.0.4/LICENSE.md +132 -0
  22. data/epeg/vendor/libjpeg-turbo-2.0.4/README.ijg +277 -0
  23. data/epeg/vendor/libjpeg-turbo-2.0.4/README.md +356 -0
  24. data/epeg/vendor/libjpeg-turbo-2.0.4/cderror.h +137 -0
  25. data/epeg/vendor/libjpeg-turbo-2.0.4/cdjpeg.c +145 -0
  26. data/epeg/vendor/libjpeg-turbo-2.0.4/cdjpeg.h +157 -0
  27. data/epeg/vendor/libjpeg-turbo-2.0.4/change.log +315 -0
  28. data/epeg/vendor/libjpeg-turbo-2.0.4/cjpeg.1 +354 -0
  29. data/epeg/vendor/libjpeg-turbo-2.0.4/cjpeg.c +695 -0
  30. data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/BuildPackages.cmake +182 -0
  31. data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/GNUInstallDirs.cmake +416 -0
  32. data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/cmake_uninstall.cmake.in +24 -0
  33. data/epeg/vendor/libjpeg-turbo-2.0.4/cmakescripts/testclean.cmake +41 -0
  34. data/epeg/vendor/libjpeg-turbo-2.0.4/cmyk.h +61 -0
  35. data/epeg/vendor/libjpeg-turbo-2.0.4/coderules.txt +78 -0
  36. data/epeg/vendor/libjpeg-turbo-2.0.4/djpeg.1 +296 -0
  37. data/epeg/vendor/libjpeg-turbo-2.0.4/djpeg.c +822 -0
  38. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/annotated.html +104 -0
  39. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/bc_s.png +0 -0
  40. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/bdwn.png +0 -0
  41. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/classes.html +106 -0
  42. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/closed.png +0 -0
  43. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen-extra.css +3 -0
  44. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen.css +1184 -0
  45. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/doxygen.png +0 -0
  46. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/dynsections.js +97 -0
  47. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2blank.png +0 -0
  48. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2cl.png +0 -0
  49. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2doc.png +0 -0
  50. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2folderclosed.png +0 -0
  51. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2folderopen.png +0 -0
  52. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2lastnode.png +0 -0
  53. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2link.png +0 -0
  54. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mlastnode.png +0 -0
  55. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mnode.png +0 -0
  56. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2mo.png +0 -0
  57. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2node.png +0 -0
  58. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2ns.png +0 -0
  59. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2plastnode.png +0 -0
  60. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2pnode.png +0 -0
  61. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2splitbar.png +0 -0
  62. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/ftv2vertline.png +0 -0
  63. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/functions.html +134 -0
  64. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/functions_vars.html +134 -0
  65. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/group___turbo_j_p_e_g.html +2775 -0
  66. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/index.html +90 -0
  67. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/jquery.js +8 -0
  68. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/modules.html +95 -0
  69. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_f.png +0 -0
  70. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_g.png +0 -0
  71. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/nav_h.png +0 -0
  72. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/open.png +0 -0
  73. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_63.html +26 -0
  74. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_63.js +4 -0
  75. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_64.html +26 -0
  76. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_64.js +5 -0
  77. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_68.html +26 -0
  78. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_68.js +4 -0
  79. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6e.html +26 -0
  80. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6e.js +4 -0
  81. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6f.html +26 -0
  82. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_6f.js +5 -0
  83. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_72.html +26 -0
  84. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_72.js +4 -0
  85. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_74.html +26 -0
  86. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_74.js +102 -0
  87. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_77.html +26 -0
  88. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_77.js +4 -0
  89. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_78.html +26 -0
  90. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_78.js +4 -0
  91. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_79.html +26 -0
  92. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/all_79.js +4 -0
  93. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/classes_74.html +26 -0
  94. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/classes_74.js +6 -0
  95. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/close.png +0 -0
  96. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enums_74.html +26 -0
  97. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enums_74.js +8 -0
  98. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enumvalues_74.html +26 -0
  99. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/enumvalues_74.js +37 -0
  100. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/functions_74.html +26 -0
  101. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/functions_74.js +31 -0
  102. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/groups_74.html +26 -0
  103. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/groups_74.js +4 -0
  104. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/mag_sel.png +0 -0
  105. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/nomatches.html +12 -0
  106. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search.css +271 -0
  107. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search.js +809 -0
  108. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_l.png +0 -0
  109. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_m.png +0 -0
  110. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/search_r.png +0 -0
  111. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/typedefs_74.html +26 -0
  112. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/typedefs_74.js +5 -0
  113. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_63.html +26 -0
  114. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_63.js +4 -0
  115. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_64.html +26 -0
  116. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_64.js +5 -0
  117. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_68.html +26 -0
  118. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_68.js +4 -0
  119. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6e.html +26 -0
  120. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6e.js +4 -0
  121. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6f.html +26 -0
  122. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_6f.js +5 -0
  123. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_72.html +26 -0
  124. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_72.js +4 -0
  125. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_74.html +26 -0
  126. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_74.js +10 -0
  127. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_77.html +26 -0
  128. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_77.js +4 -0
  129. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_78.html +26 -0
  130. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_78.js +4 -0
  131. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_79.html +26 -0
  132. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/search/variables_79.js +4 -0
  133. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjregion.html +186 -0
  134. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjscalingfactor.html +148 -0
  135. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/structtjtransform.html +212 -0
  136. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/sync_off.png +0 -0
  137. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/sync_on.png +0 -0
  138. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_a.png +0 -0
  139. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_b.png +0 -0
  140. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_h.png +0 -0
  141. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tab_s.png +0 -0
  142. data/epeg/vendor/libjpeg-turbo-2.0.4/doc/html/tabs.css +60 -0
  143. data/epeg/vendor/libjpeg-turbo-2.0.4/doxygen-extra.css +3 -0
  144. data/epeg/vendor/libjpeg-turbo-2.0.4/doxygen.config +16 -0
  145. data/epeg/vendor/libjpeg-turbo-2.0.4/example.txt +464 -0
  146. data/epeg/vendor/libjpeg-turbo-2.0.4/jaricom.c +157 -0
  147. data/epeg/vendor/libjpeg-turbo-2.0.4/java/CMakeLists.txt +88 -0
  148. data/epeg/vendor/libjpeg-turbo-2.0.4/java/MANIFEST.MF +2 -0
  149. data/epeg/vendor/libjpeg-turbo-2.0.4/java/README +52 -0
  150. data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJBench.java +1021 -0
  151. data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJExample.java +405 -0
  152. data/epeg/vendor/libjpeg-turbo-2.0.4/java/TJUnitTest.java +960 -0
  153. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/allclasses-frame.html +24 -0
  154. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/allclasses-noframe.html +24 -0
  155. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/constant-values.html +532 -0
  156. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/deprecated-list.html +252 -0
  157. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/help-doc.html +210 -0
  158. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/index-all.html +1029 -0
  159. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/index.html +71 -0
  160. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJ.html +1356 -0
  161. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html +926 -0
  162. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJCustomFilter.html +241 -0
  163. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html +1255 -0
  164. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJException.html +340 -0
  165. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJScalingFactor.html +343 -0
  166. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJTransform.html +751 -0
  167. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/TJTransformer.html +421 -0
  168. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/YUVImage.html +765 -0
  169. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-frame.html +31 -0
  170. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-summary.html +202 -0
  171. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/org/libjpegturbo/turbojpeg/package-tree.html +160 -0
  172. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/overview-tree.html +164 -0
  173. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/package-list +1 -0
  174. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/background.gif +0 -0
  175. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/tab.gif +0 -0
  176. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/titlebar.gif +0 -0
  177. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/resources/titlebar_end.gif +0 -0
  178. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/script.js +30 -0
  179. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/serialized-form.html +176 -0
  180. data/epeg/vendor/libjpeg-turbo-2.0.4/java/doc/stylesheet.css +474 -0
  181. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJ.java +584 -0
  182. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJCompressor.java +677 -0
  183. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJCustomFilter.java +76 -0
  184. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJDecompressor.java +931 -0
  185. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJException.java +78 -0
  186. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJLoader-unix.java.in +59 -0
  187. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJLoader-win.java.in +35 -0
  188. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJScalingFactor.java +115 -0
  189. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJTransform.java +227 -0
  190. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/TJTransformer.java +163 -0
  191. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org/libjpegturbo/turbojpeg/YUVImage.java +445 -0
  192. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJ.h +129 -0
  193. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJCompressor.h +101 -0
  194. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJDecompressor.h +101 -0
  195. data/epeg/vendor/libjpeg-turbo-2.0.4/java/org_libjpegturbo_turbojpeg_TJTransformer.h +29 -0
  196. data/epeg/vendor/libjpeg-turbo-2.0.4/jcapimin.c +295 -0
  197. data/epeg/vendor/libjpeg-turbo-2.0.4/jcapistd.c +162 -0
  198. data/epeg/vendor/libjpeg-turbo-2.0.4/jcarith.c +932 -0
  199. data/epeg/vendor/libjpeg-turbo-2.0.4/jccoefct.c +449 -0
  200. data/epeg/vendor/libjpeg-turbo-2.0.4/jccolext.c +144 -0
  201. data/epeg/vendor/libjpeg-turbo-2.0.4/jccolor.c +710 -0
  202. data/epeg/vendor/libjpeg-turbo-2.0.4/jcdctmgr.c +721 -0
  203. data/epeg/vendor/libjpeg-turbo-2.0.4/jchuff.c +1096 -0
  204. data/epeg/vendor/libjpeg-turbo-2.0.4/jchuff.h +42 -0
  205. data/epeg/vendor/libjpeg-turbo-2.0.4/jcicc.c +105 -0
  206. data/epeg/vendor/libjpeg-turbo-2.0.4/jcinit.c +77 -0
  207. data/epeg/vendor/libjpeg-turbo-2.0.4/jcmainct.c +162 -0
  208. data/epeg/vendor/libjpeg-turbo-2.0.4/jcmarker.c +664 -0
  209. data/epeg/vendor/libjpeg-turbo-2.0.4/jcmaster.c +640 -0
  210. data/epeg/vendor/libjpeg-turbo-2.0.4/jcomapi.c +109 -0
  211. data/epeg/vendor/libjpeg-turbo-2.0.4/jconfig.h.in +73 -0
  212. data/epeg/vendor/libjpeg-turbo-2.0.4/jconfig.txt +143 -0
  213. data/epeg/vendor/libjpeg-turbo-2.0.4/jconfigint.h.in +31 -0
  214. data/epeg/vendor/libjpeg-turbo-2.0.4/jcparam.c +541 -0
  215. data/epeg/vendor/libjpeg-turbo-2.0.4/jcphuff.c +1105 -0
  216. data/epeg/vendor/libjpeg-turbo-2.0.4/jcprepct.c +351 -0
  217. data/epeg/vendor/libjpeg-turbo-2.0.4/jcsample.c +539 -0
  218. data/epeg/vendor/libjpeg-turbo-2.0.4/jcstest.c +126 -0
  219. data/epeg/vendor/libjpeg-turbo-2.0.4/jctrans.c +400 -0
  220. data/epeg/vendor/libjpeg-turbo-2.0.4/jdapimin.c +407 -0
  221. data/epeg/vendor/libjpeg-turbo-2.0.4/jdapistd.c +639 -0
  222. data/epeg/vendor/libjpeg-turbo-2.0.4/jdarith.c +773 -0
  223. data/epeg/vendor/libjpeg-turbo-2.0.4/jdatadst-tj.c +203 -0
  224. data/epeg/vendor/libjpeg-turbo-2.0.4/jdatadst.c +293 -0
  225. data/epeg/vendor/libjpeg-turbo-2.0.4/jdatasrc-tj.c +194 -0
  226. data/epeg/vendor/libjpeg-turbo-2.0.4/jdatasrc.c +295 -0
  227. data/epeg/vendor/libjpeg-turbo-2.0.4/jdcoefct.c +692 -0
  228. data/epeg/vendor/libjpeg-turbo-2.0.4/jdcoefct.h +82 -0
  229. data/epeg/vendor/libjpeg-turbo-2.0.4/jdcol565.c +384 -0
  230. data/epeg/vendor/libjpeg-turbo-2.0.4/jdcolext.c +143 -0
  231. data/epeg/vendor/libjpeg-turbo-2.0.4/jdcolor.c +883 -0
  232. data/epeg/vendor/libjpeg-turbo-2.0.4/jdct.h +208 -0
  233. data/epeg/vendor/libjpeg-turbo-2.0.4/jddctmgr.c +352 -0
  234. data/epeg/vendor/libjpeg-turbo-2.0.4/jdhuff.c +831 -0
  235. data/epeg/vendor/libjpeg-turbo-2.0.4/jdhuff.h +238 -0
  236. data/epeg/vendor/libjpeg-turbo-2.0.4/jdicc.c +171 -0
  237. data/epeg/vendor/libjpeg-turbo-2.0.4/jdinput.c +408 -0
  238. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmainct.c +460 -0
  239. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmainct.h +71 -0
  240. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmarker.c +1377 -0
  241. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmaster.c +737 -0
  242. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmaster.h +28 -0
  243. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmerge.c +617 -0
  244. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmrg565.c +354 -0
  245. data/epeg/vendor/libjpeg-turbo-2.0.4/jdmrgext.c +184 -0
  246. data/epeg/vendor/libjpeg-turbo-2.0.4/jdphuff.c +687 -0
  247. data/epeg/vendor/libjpeg-turbo-2.0.4/jdpostct.c +294 -0
  248. data/epeg/vendor/libjpeg-turbo-2.0.4/jdsample.c +518 -0
  249. data/epeg/vendor/libjpeg-turbo-2.0.4/jdsample.h +50 -0
  250. data/epeg/vendor/libjpeg-turbo-2.0.4/jdtrans.c +155 -0
  251. data/epeg/vendor/libjpeg-turbo-2.0.4/jerror.c +251 -0
  252. data/epeg/vendor/libjpeg-turbo-2.0.4/jerror.h +316 -0
  253. data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctflt.c +169 -0
  254. data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctfst.c +227 -0
  255. data/epeg/vendor/libjpeg-turbo-2.0.4/jfdctint.c +288 -0
  256. data/epeg/vendor/libjpeg-turbo-2.0.4/jidctflt.c +240 -0
  257. data/epeg/vendor/libjpeg-turbo-2.0.4/jidctfst.c +371 -0
  258. data/epeg/vendor/libjpeg-turbo-2.0.4/jidctint.c +2627 -0
  259. data/epeg/vendor/libjpeg-turbo-2.0.4/jidctred.c +409 -0
  260. data/epeg/vendor/libjpeg-turbo-2.0.4/jinclude.h +88 -0
  261. data/epeg/vendor/libjpeg-turbo-2.0.4/jmemmgr.c +1179 -0
  262. data/epeg/vendor/libjpeg-turbo-2.0.4/jmemnobs.c +115 -0
  263. data/epeg/vendor/libjpeg-turbo-2.0.4/jmemsys.h +178 -0
  264. data/epeg/vendor/libjpeg-turbo-2.0.4/jmorecfg.h +421 -0
  265. data/epeg/vendor/libjpeg-turbo-2.0.4/jpeg_nbits_table.h +4098 -0
  266. data/epeg/vendor/libjpeg-turbo-2.0.4/jpegcomp.h +31 -0
  267. data/epeg/vendor/libjpeg-turbo-2.0.4/jpegint.h +368 -0
  268. data/epeg/vendor/libjpeg-turbo-2.0.4/jpeglib.h +1132 -0
  269. data/epeg/vendor/libjpeg-turbo-2.0.4/jpegtran.1 +295 -0
  270. data/epeg/vendor/libjpeg-turbo-2.0.4/jpegtran.c +601 -0
  271. data/epeg/vendor/libjpeg-turbo-2.0.4/jquant1.c +859 -0
  272. data/epeg/vendor/libjpeg-turbo-2.0.4/jquant2.c +1285 -0
  273. data/epeg/vendor/libjpeg-turbo-2.0.4/jsimd.h +117 -0
  274. data/epeg/vendor/libjpeg-turbo-2.0.4/jsimd_none.c +418 -0
  275. data/epeg/vendor/libjpeg-turbo-2.0.4/jsimddct.h +70 -0
  276. data/epeg/vendor/libjpeg-turbo-2.0.4/jstdhuff.c +143 -0
  277. data/epeg/vendor/libjpeg-turbo-2.0.4/jutils.c +133 -0
  278. data/epeg/vendor/libjpeg-turbo-2.0.4/jversion.h +52 -0
  279. data/epeg/vendor/libjpeg-turbo-2.0.4/libjpeg.map.in +11 -0
  280. data/epeg/vendor/libjpeg-turbo-2.0.4/libjpeg.txt +3144 -0
  281. data/epeg/vendor/libjpeg-turbo-2.0.4/md5/CMakeLists.txt +1 -0
  282. data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5.c +275 -0
  283. data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5.h +57 -0
  284. data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5cmp.c +59 -0
  285. data/epeg/vendor/libjpeg-turbo-2.0.4/md5/md5hl.c +125 -0
  286. data/epeg/vendor/libjpeg-turbo-2.0.4/rdbmp.c +689 -0
  287. data/epeg/vendor/libjpeg-turbo-2.0.4/rdcolmap.c +254 -0
  288. data/epeg/vendor/libjpeg-turbo-2.0.4/rdgif.c +39 -0
  289. data/epeg/vendor/libjpeg-turbo-2.0.4/rdjpgcom.1 +63 -0
  290. data/epeg/vendor/libjpeg-turbo-2.0.4/rdjpgcom.c +510 -0
  291. data/epeg/vendor/libjpeg-turbo-2.0.4/rdppm.c +766 -0
  292. data/epeg/vendor/libjpeg-turbo-2.0.4/rdrle.c +389 -0
  293. data/epeg/vendor/libjpeg-turbo-2.0.4/rdswitch.c +424 -0
  294. data/epeg/vendor/libjpeg-turbo-2.0.4/rdtarga.c +509 -0
  295. data/epeg/vendor/libjpeg-turbo-2.0.4/release/Distribution.xml.in +24 -0
  296. data/epeg/vendor/libjpeg-turbo-2.0.4/release/License.rtf +20 -0
  297. data/epeg/vendor/libjpeg-turbo-2.0.4/release/ReadMe.txt +5 -0
  298. data/epeg/vendor/libjpeg-turbo-2.0.4/release/Welcome.rtf +17 -0
  299. data/epeg/vendor/libjpeg-turbo-2.0.4/release/deb-control.in +31 -0
  300. data/epeg/vendor/libjpeg-turbo-2.0.4/release/installer.nsi.in +191 -0
  301. data/epeg/vendor/libjpeg-turbo-2.0.4/release/libjpeg.pc.in +10 -0
  302. data/epeg/vendor/libjpeg-turbo-2.0.4/release/libturbojpeg.pc.in +10 -0
  303. data/epeg/vendor/libjpeg-turbo-2.0.4/release/makecygwinpkg.in +66 -0
  304. data/epeg/vendor/libjpeg-turbo-2.0.4/release/makedpkg.in +115 -0
  305. data/epeg/vendor/libjpeg-turbo-2.0.4/release/makemacpkg.in +284 -0
  306. data/epeg/vendor/libjpeg-turbo-2.0.4/release/makerpm.in +30 -0
  307. data/epeg/vendor/libjpeg-turbo-2.0.4/release/makesrpm.in +48 -0
  308. data/epeg/vendor/libjpeg-turbo-2.0.4/release/maketarball.in +51 -0
  309. data/epeg/vendor/libjpeg-turbo-2.0.4/release/rpm.spec.in +221 -0
  310. data/epeg/vendor/libjpeg-turbo-2.0.4/release/uninstall.in +113 -0
  311. data/epeg/vendor/libjpeg-turbo-2.0.4/sharedlib/CMakeLists.txt +99 -0
  312. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/CMakeLists.txt +385 -0
  313. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm/jsimd.c +721 -0
  314. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm/jsimd_neon.S +2878 -0
  315. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm64/jsimd.c +798 -0
  316. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/arm64/jsimd_neon.S +3433 -0
  317. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/gas-preprocessor.in +1 -0
  318. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-avx2.asm +578 -0
  319. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-mmx.asm +476 -0
  320. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolext-sse2.asm +503 -0
  321. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-avx2.asm +121 -0
  322. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-mmx.asm +121 -0
  323. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jccolor-sse2.asm +120 -0
  324. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-avx2.asm +113 -0
  325. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-mmx.asm +113 -0
  326. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgray-sse2.asm +112 -0
  327. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-avx2.asm +457 -0
  328. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-mmx.asm +355 -0
  329. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcgryext-sse2.asm +382 -0
  330. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jchuff-sse2.asm +424 -0
  331. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcphuff-sse2.asm +660 -0
  332. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-avx2.asm +388 -0
  333. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-mmx.asm +324 -0
  334. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jcsample-sse2.asm +351 -0
  335. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-avx2.asm +515 -0
  336. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-mmx.asm +404 -0
  337. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolext-sse2.asm +458 -0
  338. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-avx2.asm +118 -0
  339. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-mmx.asm +117 -0
  340. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdcolor-sse2.asm +117 -0
  341. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-avx2.asm +136 -0
  342. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-mmx.asm +123 -0
  343. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmerge-sse2.asm +135 -0
  344. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-avx2.asm +575 -0
  345. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-mmx.asm +460 -0
  346. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdmrgext-sse2.asm +517 -0
  347. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-avx2.asm +760 -0
  348. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-mmx.asm +731 -0
  349. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jdsample-sse2.asm +724 -0
  350. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctflt-3dn.asm +318 -0
  351. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctflt-sse.asm +369 -0
  352. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctfst-mmx.asm +395 -0
  353. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctfst-sse2.asm +403 -0
  354. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-avx2.asm +331 -0
  355. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-mmx.asm +620 -0
  356. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jfdctint-sse2.asm +633 -0
  357. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-3dn.asm +451 -0
  358. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-sse.asm +571 -0
  359. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctflt-sse2.asm +497 -0
  360. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctfst-mmx.asm +499 -0
  361. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctfst-sse2.asm +501 -0
  362. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-avx2.asm +453 -0
  363. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-mmx.asm +851 -0
  364. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctint-sse2.asm +858 -0
  365. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctred-mmx.asm +704 -0
  366. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jidctred-sse2.asm +592 -0
  367. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-3dn.asm +230 -0
  368. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-mmx.asm +276 -0
  369. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquant-sse.asm +208 -0
  370. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquantf-sse2.asm +168 -0
  371. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquanti-avx2.asm +188 -0
  372. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jquanti-sse2.asm +201 -0
  373. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jsimd.c +1253 -0
  374. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/i386/jsimdcpu.asm +135 -0
  375. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/jsimd.h +1083 -0
  376. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jccolext-mmi.c +483 -0
  377. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jccolor-mmi.c +148 -0
  378. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jcsample-mmi.c +100 -0
  379. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jcsample.h +28 -0
  380. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdcolext-mmi.c +424 -0
  381. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdcolor-mmi.c +139 -0
  382. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jdsample-mmi.c +245 -0
  383. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jfdctint-mmi.c +398 -0
  384. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jidctint-mmi.c +571 -0
  385. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jquanti-mmi.c +130 -0
  386. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jsimd.c +610 -0
  387. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/jsimd_mmi.h +57 -0
  388. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/loongson/loongson-mmintrin.h +1324 -0
  389. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd.c +1123 -0
  390. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd_dspr2.S +4479 -0
  391. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/mips/jsimd_dspr2_asm.h +292 -0
  392. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jcolsamp.inc +135 -0
  393. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jdct.inc +31 -0
  394. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jpeg_nbits_table.inc +4097 -0
  395. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdcfg.inc +93 -0
  396. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdcfg.inc.h +131 -0
  397. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/nasm/jsimdext.inc +479 -0
  398. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jccolext-altivec.c +269 -0
  399. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jccolor-altivec.c +116 -0
  400. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcgray-altivec.c +111 -0
  401. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcgryext-altivec.c +228 -0
  402. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcsample-altivec.c +159 -0
  403. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jcsample.h +28 -0
  404. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdcolext-altivec.c +276 -0
  405. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdcolor-altivec.c +106 -0
  406. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdmerge-altivec.c +130 -0
  407. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdmrgext-altivec.c +329 -0
  408. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jdsample-altivec.c +400 -0
  409. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jfdctfst-altivec.c +154 -0
  410. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jfdctint-altivec.c +258 -0
  411. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jidctfst-altivec.c +255 -0
  412. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jidctint-altivec.c +357 -0
  413. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jquanti-altivec.c +250 -0
  414. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jsimd.c +872 -0
  415. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/powerpc/jsimd_altivec.h +98 -0
  416. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolext-avx2.asm +558 -0
  417. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolext-sse2.asm +483 -0
  418. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolor-avx2.asm +121 -0
  419. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jccolor-sse2.asm +120 -0
  420. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgray-avx2.asm +113 -0
  421. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgray-sse2.asm +112 -0
  422. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgryext-avx2.asm +437 -0
  423. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcgryext-sse2.asm +362 -0
  424. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jchuff-sse2.asm +346 -0
  425. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcphuff-sse2.asm +637 -0
  426. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcsample-avx2.asm +366 -0
  427. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jcsample-sse2.asm +329 -0
  428. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolext-avx2.asm +495 -0
  429. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolext-sse2.asm +438 -0
  430. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolor-avx2.asm +118 -0
  431. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdcolor-sse2.asm +117 -0
  432. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmerge-avx2.asm +136 -0
  433. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmerge-sse2.asm +135 -0
  434. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmrgext-avx2.asm +593 -0
  435. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdmrgext-sse2.asm +535 -0
  436. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdsample-avx2.asm +695 -0
  437. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jdsample-sse2.asm +664 -0
  438. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctflt-sse.asm +355 -0
  439. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctfst-sse2.asm +389 -0
  440. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctint-avx2.asm +320 -0
  441. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jfdctint-sse2.asm +619 -0
  442. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctflt-sse2.asm +481 -0
  443. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctfst-sse2.asm +490 -0
  444. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctint-avx2.asm +417 -0
  445. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctint-sse2.asm +846 -0
  446. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jidctred-sse2.asm +573 -0
  447. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquantf-sse2.asm +154 -0
  448. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquanti-avx2.asm +162 -0
  449. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jquanti-sse2.asm +187 -0
  450. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jsimd.c +1076 -0
  451. data/epeg/vendor/libjpeg-turbo-2.0.4/simd/x86_64/jsimdcpu.asm +86 -0
  452. data/epeg/vendor/libjpeg-turbo-2.0.4/structure.txt +904 -0
  453. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/nightshot_iso_100.bmp +0 -0
  454. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/nightshot_iso_100.txt +25 -0
  455. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test.scan +5 -0
  456. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test1.icc +0 -0
  457. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test1.icc.txt +20 -0
  458. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test2.icc +0 -0
  459. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/test2.icc.txt +20 -0
  460. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testimgari.jpg +0 -0
  461. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testimgint.jpg +0 -0
  462. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig.jpg +0 -0
  463. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig.ppm +4 -0
  464. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/testorig12.jpg +0 -0
  465. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_5674_0098.bmp +0 -0
  466. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_6434_0018a.bmp +0 -0
  467. data/epeg/vendor/libjpeg-turbo-2.0.4/testimages/vgl_6548_0026a.bmp +0 -0
  468. data/epeg/vendor/libjpeg-turbo-2.0.4/tjbench.c +1031 -0
  469. data/epeg/vendor/libjpeg-turbo-2.0.4/tjbenchtest.in +256 -0
  470. data/epeg/vendor/libjpeg-turbo-2.0.4/tjbenchtest.java.in +215 -0
  471. data/epeg/vendor/libjpeg-turbo-2.0.4/tjexample.c +396 -0
  472. data/epeg/vendor/libjpeg-turbo-2.0.4/tjexampletest.in +149 -0
  473. data/epeg/vendor/libjpeg-turbo-2.0.4/tjexampletest.java.in +151 -0
  474. data/epeg/vendor/libjpeg-turbo-2.0.4/tjunittest.c +931 -0
  475. data/epeg/vendor/libjpeg-turbo-2.0.4/tjutil.c +70 -0
  476. data/epeg/vendor/libjpeg-turbo-2.0.4/tjutil.h +47 -0
  477. data/epeg/vendor/libjpeg-turbo-2.0.4/transupp.c +1628 -0
  478. data/epeg/vendor/libjpeg-turbo-2.0.4/transupp.h +210 -0
  479. data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-jni.c +1246 -0
  480. data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-mapfile +65 -0
  481. data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg-mapfile.jni +101 -0
  482. data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg.c +2152 -0
  483. data/epeg/vendor/libjpeg-turbo-2.0.4/turbojpeg.h +1744 -0
  484. data/epeg/vendor/libjpeg-turbo-2.0.4/usage.txt +635 -0
  485. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jconfig.h.in +34 -0
  486. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg62-memsrcdst.def +108 -0
  487. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg62.def +106 -0
  488. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg7-memsrcdst.def +110 -0
  489. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg7.def +108 -0
  490. data/epeg/vendor/libjpeg-turbo-2.0.4/win/jpeg8.def +111 -0
  491. data/epeg/vendor/libjpeg-turbo-2.0.4/wizard.txt +212 -0
  492. data/epeg/vendor/libjpeg-turbo-2.0.4/wrbmp.c +558 -0
  493. data/epeg/vendor/libjpeg-turbo-2.0.4/wrgif.c +413 -0
  494. data/epeg/vendor/libjpeg-turbo-2.0.4/wrjpgcom.1 +103 -0
  495. data/epeg/vendor/libjpeg-turbo-2.0.4/wrjpgcom.c +591 -0
  496. data/epeg/vendor/libjpeg-turbo-2.0.4/wrppm.c +365 -0
  497. data/epeg/vendor/libjpeg-turbo-2.0.4/wrrle.c +309 -0
  498. data/epeg/vendor/libjpeg-turbo-2.0.4/wrtarga.c +261 -0
  499. data/epeg.c +131 -0
  500. data/epeg.gemspec +18 -0
  501. data/extconf.rb +80 -0
  502. data/test.jpg +0 -0
  503. data/test.rb +42 -0
  504. metadata +546 -0
@@ -0,0 +1,635 @@
1
+ NOTE: This file was modified by The libjpeg-turbo Project to include only
2
+ information relevant to libjpeg-turbo and to wordsmith certain sections.
3
+
4
+ USAGE instructions for the Independent JPEG Group's JPEG software
5
+ =================================================================
6
+
7
+ This file describes usage of the JPEG conversion programs cjpeg and djpeg,
8
+ as well as the utility programs jpegtran, rdjpgcom and wrjpgcom. (See
9
+ the other documentation files if you wish to use the JPEG library within
10
+ your own programs.)
11
+
12
+ If you are on a Unix machine you may prefer to read the Unix-style manual
13
+ pages in files cjpeg.1, djpeg.1, jpegtran.1, rdjpgcom.1, wrjpgcom.1.
14
+
15
+
16
+ INTRODUCTION
17
+
18
+ These programs implement JPEG image encoding, decoding, and transcoding.
19
+ JPEG (pronounced "jay-peg") is a standardized compression method for
20
+ full-color and grayscale images.
21
+
22
+
23
+ GENERAL USAGE
24
+
25
+ We provide two programs, cjpeg to compress an image file into JPEG format,
26
+ and djpeg to decompress a JPEG file back into a conventional image format.
27
+
28
+ On Unix-like systems, you say:
29
+ cjpeg [switches] [imagefile] >jpegfile
30
+ or
31
+ djpeg [switches] [jpegfile] >imagefile
32
+ The programs read the specified input file, or standard input if none is
33
+ named. They always write to standard output (with trace/error messages to
34
+ standard error). These conventions are handy for piping images between
35
+ programs.
36
+
37
+ On most non-Unix systems, you say:
38
+ cjpeg [switches] imagefile jpegfile
39
+ or
40
+ djpeg [switches] jpegfile imagefile
41
+ i.e., both the input and output files are named on the command line. This
42
+ style is a little more foolproof, and it loses no functionality if you don't
43
+ have pipes. (You can get this style on Unix too, if you prefer, by defining
44
+ TWO_FILE_COMMANDLINE when you compile the programs; see install.txt.)
45
+
46
+ You can also say:
47
+ cjpeg [switches] -outfile jpegfile imagefile
48
+ or
49
+ djpeg [switches] -outfile imagefile jpegfile
50
+ This syntax works on all systems, so it is useful for scripts.
51
+
52
+ The currently supported image file formats are: PPM (PBMPLUS color format),
53
+ PGM (PBMPLUS grayscale format), BMP, Targa, and RLE (Utah Raster Toolkit
54
+ format). (RLE is supported only if the URT library is available, which it
55
+ isn't on most non-Unix systems.) cjpeg recognizes the input image format
56
+ automatically, with the exception of some Targa files. You have to tell djpeg
57
+ which format to generate.
58
+
59
+ JPEG files are in the defacto standard JFIF file format. There are other,
60
+ less widely used JPEG-based file formats, but we don't support them.
61
+
62
+ All switch names may be abbreviated; for example, -grayscale may be written
63
+ -gray or -gr. Most of the "basic" switches can be abbreviated to as little as
64
+ one letter. Upper and lower case are equivalent (-BMP is the same as -bmp).
65
+ British spellings are also accepted (e.g., -greyscale), though for brevity
66
+ these are not mentioned below.
67
+
68
+
69
+ CJPEG DETAILS
70
+
71
+ The basic command line switches for cjpeg are:
72
+
73
+ -quality N[,...] Scale quantization tables to adjust image quality.
74
+ Quality is 0 (worst) to 100 (best); default is 75.
75
+ (See below for more info.)
76
+
77
+ -grayscale Create monochrome JPEG file from color input.
78
+ Be sure to use this switch when compressing a grayscale
79
+ BMP file, because cjpeg isn't bright enough to notice
80
+ whether a BMP file uses only shades of gray. By
81
+ saying -grayscale, you'll get a smaller JPEG file that
82
+ takes less time to process.
83
+
84
+ -rgb Create RGB JPEG file.
85
+ Using this switch suppresses the conversion from RGB
86
+ colorspace input to the default YCbCr JPEG colorspace.
87
+
88
+ -optimize Perform optimization of entropy encoding parameters.
89
+ Without this, default encoding parameters are used.
90
+ -optimize usually makes the JPEG file a little smaller,
91
+ but cjpeg runs somewhat slower and needs much more
92
+ memory. Image quality and speed of decompression are
93
+ unaffected by -optimize.
94
+
95
+ -progressive Create progressive JPEG file (see below).
96
+
97
+ -targa Input file is Targa format. Targa files that contain
98
+ an "identification" field will not be automatically
99
+ recognized by cjpeg; for such files you must specify
100
+ -targa to make cjpeg treat the input as Targa format.
101
+ For most Targa files, you won't need this switch.
102
+
103
+ The -quality switch lets you trade off compressed file size against quality of
104
+ the reconstructed image: the higher the quality setting, the larger the JPEG
105
+ file, and the closer the output image will be to the original input. Normally
106
+ you want to use the lowest quality setting (smallest file) that decompresses
107
+ into something visually indistinguishable from the original image. For this
108
+ purpose the quality setting should generally be between 50 and 95 (the default
109
+ is 75) for photographic images. If you see defects at -quality 75, then go up
110
+ 5 or 10 counts at a time until you are happy with the output image. (The
111
+ optimal setting will vary from one image to another.)
112
+
113
+ -quality 100 will generate a quantization table of all 1's, minimizing loss
114
+ in the quantization step (but there is still information loss in subsampling,
115
+ as well as roundoff error.) For most images, specifying a quality value above
116
+ about 95 will increase the size of the compressed file dramatically, and while
117
+ the quality gain from these higher quality values is measurable (using metrics
118
+ such as PSNR or SSIM), it is rarely perceivable by human vision.
119
+
120
+ In the other direction, quality values below 50 will produce very small files
121
+ of low image quality. Settings around 5 to 10 might be useful in preparing an
122
+ index of a large image library, for example. Try -quality 2 (or so) for some
123
+ amusing Cubist effects. (Note: quality values below about 25 generate 2-byte
124
+ quantization tables, which are considered optional in the JPEG standard.
125
+ cjpeg emits a warning message when you give such a quality value, because some
126
+ other JPEG programs may be unable to decode the resulting file. Use -baseline
127
+ if you need to ensure compatibility at low quality values.)
128
+
129
+ The -quality option has been extended in this version of cjpeg to support
130
+ separate quality settings for luminance and chrominance (or, in general,
131
+ separate settings for every quantization table slot.) The principle is the
132
+ same as chrominance subsampling: since the human eye is more sensitive to
133
+ spatial changes in brightness than spatial changes in color, the chrominance
134
+ components can be quantized more than the luminance components without
135
+ incurring any visible image quality loss. However, unlike subsampling, this
136
+ feature reduces data in the frequency domain instead of the spatial domain,
137
+ which allows for more fine-grained control. This option is useful in
138
+ quality-sensitive applications, for which the artifacts generated by
139
+ subsampling may be unacceptable.
140
+
141
+ The -quality option accepts a comma-separated list of parameters, which
142
+ respectively refer to the quality levels that should be assigned to the
143
+ quantization table slots. If there are more q-table slots than parameters,
144
+ then the last parameter is replicated. Thus, if only one quality parameter is
145
+ given, this is used for both luminance and chrominance (slots 0 and 1,
146
+ respectively), preserving the legacy behavior of cjpeg v6b and prior. More (or
147
+ customized) quantization tables can be set with the -qtables option and
148
+ assigned to components with the -qslots option (see the "wizard" switches
149
+ below.)
150
+
151
+ JPEG files generated with separate luminance and chrominance quality are
152
+ fully compliant with standard JPEG decoders.
153
+
154
+ CAUTION: For this setting to be useful, be sure to pass an argument of
155
+ -sample 1x1 to cjpeg to disable chrominance subsampling. Otherwise, the
156
+ default subsampling level (2x2, AKA "4:2:0") will be used.
157
+
158
+ The -progressive switch creates a "progressive JPEG" file. In this type of
159
+ JPEG file, the data is stored in multiple scans of increasing quality. If the
160
+ file is being transmitted over a slow communications link, the decoder can use
161
+ the first scan to display a low-quality image very quickly, and can then
162
+ improve the display with each subsequent scan. The final image is exactly
163
+ equivalent to a standard JPEG file of the same quality setting, and the total
164
+ file size is about the same --- often a little smaller.
165
+
166
+ Switches for advanced users:
167
+
168
+ -arithmetic Use arithmetic coding. CAUTION: arithmetic coded JPEG
169
+ is not yet widely implemented, so many decoders will
170
+ be unable to view an arithmetic coded JPEG file at
171
+ all.
172
+
173
+ -dct int Use integer DCT method (default).
174
+ -dct fast Use fast integer DCT (less accurate).
175
+ In libjpeg-turbo, the fast method is generally about
176
+ 5-15% faster than the int method when using the
177
+ x86/x86-64 SIMD extensions (results may vary with other
178
+ SIMD implementations, or when using libjpeg-turbo
179
+ without SIMD extensions.) For quality levels of 90 and
180
+ below, there should be little or no perceptible
181
+ difference between the two algorithms. For quality
182
+ levels above 90, however, the difference between
183
+ the fast and the int methods becomes more pronounced.
184
+ With quality=97, for instance, the fast method incurs
185
+ generally about a 1-3 dB loss (in PSNR) relative to
186
+ the int method, but this can be larger for some images.
187
+ Do not use the fast method with quality levels above
188
+ 97. The algorithm often degenerates at quality=98 and
189
+ above and can actually produce a more lossy image than
190
+ if lower quality levels had been used. Also, in
191
+ libjpeg-turbo, the fast method is not fully accerated
192
+ for quality levels above 97, so it will be slower than
193
+ the int method.
194
+ -dct float Use floating-point DCT method.
195
+ The float method is mainly a legacy feature. It does
196
+ not produce significantly more accurate results than
197
+ the int method, and it is much slower. The float
198
+ method may also give different results on different
199
+ machines due to varying roundoff behavior, whereas the
200
+ integer methods should give the same results on all
201
+ machines.
202
+
203
+ -restart N Emit a JPEG restart marker every N MCU rows, or every
204
+ N MCU blocks if "B" is attached to the number.
205
+ -restart 0 (the default) means no restart markers.
206
+
207
+ -smooth N Smooth the input image to eliminate dithering noise.
208
+ N, ranging from 1 to 100, indicates the strength of
209
+ smoothing. 0 (the default) means no smoothing.
210
+
211
+ -maxmemory N Set limit for amount of memory to use in processing
212
+ large images. Value is in thousands of bytes, or
213
+ millions of bytes if "M" is attached to the number.
214
+ For example, -max 4m selects 4000000 bytes. If more
215
+ space is needed, an error will occur.
216
+
217
+ -verbose Enable debug printout. More -v's give more printout.
218
+ or -debug Also, version information is printed at startup.
219
+
220
+ The -restart option inserts extra markers that allow a JPEG decoder to
221
+ resynchronize after a transmission error. Without restart markers, any damage
222
+ to a compressed file will usually ruin the image from the point of the error
223
+ to the end of the image; with restart markers, the damage is usually confined
224
+ to the portion of the image up to the next restart marker. Of course, the
225
+ restart markers occupy extra space. We recommend -restart 1 for images that
226
+ will be transmitted across unreliable networks such as Usenet.
227
+
228
+ The -smooth option filters the input to eliminate fine-scale noise. This is
229
+ often useful when converting dithered images to JPEG: a moderate smoothing
230
+ factor of 10 to 50 gets rid of dithering patterns in the input file, resulting
231
+ in a smaller JPEG file and a better-looking image. Too large a smoothing
232
+ factor will visibly blur the image, however.
233
+
234
+ Switches for wizards:
235
+
236
+ -baseline Force baseline-compatible quantization tables to be
237
+ generated. This clamps quantization values to 8 bits
238
+ even at low quality settings. (This switch is poorly
239
+ named, since it does not ensure that the output is
240
+ actually baseline JPEG. For example, you can use
241
+ -baseline and -progressive together.)
242
+
243
+ -qtables file Use the quantization tables given in the specified
244
+ text file.
245
+
246
+ -qslots N[,...] Select which quantization table to use for each color
247
+ component.
248
+
249
+ -sample HxV[,...] Set JPEG sampling factors for each color component.
250
+
251
+ -scans file Use the scan script given in the specified text file.
252
+
253
+ The "wizard" switches are intended for experimentation with JPEG. If you
254
+ don't know what you are doing, DON'T USE THEM. These switches are documented
255
+ further in the file wizard.txt.
256
+
257
+
258
+ DJPEG DETAILS
259
+
260
+ The basic command line switches for djpeg are:
261
+
262
+ -colors N Reduce image to at most N colors. This reduces the
263
+ or -quantize N number of colors used in the output image, so that it
264
+ can be displayed on a colormapped display or stored in
265
+ a colormapped file format. For example, if you have
266
+ an 8-bit display, you'd need to reduce to 256 or fewer
267
+ colors. (-colors is the recommended name, -quantize
268
+ is provided only for backwards compatibility.)
269
+
270
+ -fast Select recommended processing options for fast, low
271
+ quality output. (The default options are chosen for
272
+ highest quality output.) Currently, this is equivalent
273
+ to "-dct fast -nosmooth -onepass -dither ordered".
274
+
275
+ -grayscale Force grayscale output even if JPEG file is color.
276
+ Useful for viewing on monochrome displays; also,
277
+ djpeg runs noticeably faster in this mode.
278
+
279
+ -rgb Force RGB output even if JPEG file is grayscale.
280
+
281
+ -scale M/N Scale the output image by a factor M/N. Currently
282
+ the scale factor must be M/8, where M is an integer
283
+ between 1 and 16 inclusive, or any reduced fraction
284
+ thereof (such as 1/2, 3/4, etc. Scaling is handy if
285
+ the image is larger than your screen; also, djpeg runs
286
+ much faster when scaling down the output.
287
+
288
+ -bmp Select BMP output format (Windows flavor). 8-bit
289
+ colormapped format is emitted if -colors or -grayscale
290
+ is specified, or if the JPEG file is grayscale;
291
+ otherwise, 24-bit full-color format is emitted.
292
+
293
+ -gif Select GIF output format. Since GIF does not support
294
+ more than 256 colors, -colors 256 is assumed (unless
295
+ you specify a smaller number of colors). If you
296
+ specify -fast, the default number of colors is 216.
297
+
298
+ -os2 Select BMP output format (OS/2 1.x flavor). 8-bit
299
+ colormapped format is emitted if -colors or -grayscale
300
+ is specified, or if the JPEG file is grayscale;
301
+ otherwise, 24-bit full-color format is emitted.
302
+
303
+ -pnm Select PBMPLUS (PPM/PGM) output format (this is the
304
+ default format). PGM is emitted if the JPEG file is
305
+ grayscale or if -grayscale is specified; otherwise
306
+ PPM is emitted.
307
+
308
+ -rle Select RLE output format. (Requires URT library.)
309
+
310
+ -targa Select Targa output format. Grayscale format is
311
+ emitted if the JPEG file is grayscale or if
312
+ -grayscale is specified; otherwise, colormapped format
313
+ is emitted if -colors is specified; otherwise, 24-bit
314
+ full-color format is emitted.
315
+
316
+ Switches for advanced users:
317
+
318
+ -dct int Use integer DCT method (default).
319
+ -dct fast Use fast integer DCT (less accurate).
320
+ In libjpeg-turbo, the fast method is generally about
321
+ 5-15% faster than the int method when using the
322
+ x86/x86-64 SIMD extensions (results may vary with other
323
+ SIMD implementations, or when using libjpeg-turbo
324
+ without SIMD extensions.) If the JPEG image was
325
+ compressed using a quality level of 85 or below, then
326
+ there should be little or no perceptible difference
327
+ between the two algorithms. When decompressing images
328
+ that were compressed using quality levels above 85,
329
+ however, the difference between the fast and int
330
+ methods becomes more pronounced. With images
331
+ compressed using quality=97, for instance, the fast
332
+ method incurs generally about a 4-6 dB loss (in PSNR)
333
+ relative to the int method, but this can be larger for
334
+ some images. If you can avoid it, do not use the fast
335
+ method when decompressing images that were compressed
336
+ using quality levels above 97. The algorithm often
337
+ degenerates for such images and can actually produce
338
+ a more lossy output image than if the JPEG image had
339
+ been compressed using lower quality levels.
340
+ -dct float Use floating-point DCT method.
341
+ The float method is mainly a legacy feature. It does
342
+ not produce significantly more accurate results than
343
+ the int method, and it is much slower. The float
344
+ method may also give different results on different
345
+ machines due to varying roundoff behavior, whereas the
346
+ integer methods should give the same results on all
347
+ machines.
348
+
349
+ -dither fs Use Floyd-Steinberg dithering in color quantization.
350
+ -dither ordered Use ordered dithering in color quantization.
351
+ -dither none Do not use dithering in color quantization.
352
+ By default, Floyd-Steinberg dithering is applied when
353
+ quantizing colors; this is slow but usually produces
354
+ the best results. Ordered dither is a compromise
355
+ between speed and quality; no dithering is fast but
356
+ usually looks awful. Note that these switches have
357
+ no effect unless color quantization is being done.
358
+ Ordered dither is only available in -onepass mode.
359
+
360
+ -map FILE Quantize to the colors used in the specified image
361
+ file. This is useful for producing multiple files
362
+ with identical color maps, or for forcing a predefined
363
+ set of colors to be used. The FILE must be a GIF
364
+ or PPM file. This option overrides -colors and
365
+ -onepass.
366
+
367
+ -nosmooth Use a faster, lower-quality upsampling routine.
368
+
369
+ -onepass Use one-pass instead of two-pass color quantization.
370
+ The one-pass method is faster and needs less memory,
371
+ but it produces a lower-quality image. -onepass is
372
+ ignored unless you also say -colors N. Also,
373
+ the one-pass method is always used for grayscale
374
+ output (the two-pass method is no improvement then).
375
+
376
+ -maxmemory N Set limit for amount of memory to use in processing
377
+ large images. Value is in thousands of bytes, or
378
+ millions of bytes if "M" is attached to the number.
379
+ For example, -max 4m selects 4000000 bytes. If more
380
+ space is needed, an error will occur.
381
+
382
+ -verbose Enable debug printout. More -v's give more printout.
383
+ or -debug Also, version information is printed at startup.
384
+
385
+
386
+ HINTS FOR CJPEG
387
+
388
+ Color GIF files are not the ideal input for JPEG; JPEG is really intended for
389
+ compressing full-color (24-bit) images. In particular, don't try to convert
390
+ cartoons, line drawings, and other images that have only a few distinct
391
+ colors. GIF works great on these, JPEG does not. If you want to convert a
392
+ GIF to JPEG, you should experiment with cjpeg's -quality and -smooth options
393
+ to get a satisfactory conversion. -smooth 10 or so is often helpful.
394
+
395
+ Avoid running an image through a series of JPEG compression/decompression
396
+ cycles. Image quality loss will accumulate; after ten or so cycles the image
397
+ may be noticeably worse than it was after one cycle. It's best to use a
398
+ lossless format while manipulating an image, then convert to JPEG format when
399
+ you are ready to file the image away.
400
+
401
+ The -optimize option to cjpeg is worth using when you are making a "final"
402
+ version for posting or archiving. It's also a win when you are using low
403
+ quality settings to make very small JPEG files; the percentage improvement
404
+ is often a lot more than it is on larger files. (At present, -optimize
405
+ mode is always selected when generating progressive JPEG files.)
406
+
407
+ Support for GIF input files was removed in cjpeg v6b due to concerns over
408
+ the Unisys LZW patent. Although this patent expired in 2006, cjpeg still
409
+ lacks GIF support, for these historical reasons. (Conversion of GIF files to
410
+ JPEG is usually a bad idea anyway.)
411
+
412
+
413
+ HINTS FOR DJPEG
414
+
415
+ To get a quick preview of an image, use the -grayscale and/or -scale switches.
416
+ "-grayscale -scale 1/8" is the fastest case.
417
+
418
+ Several options are available that trade off image quality to gain speed.
419
+ "-fast" turns on the recommended settings.
420
+
421
+ "-dct fast" and/or "-nosmooth" gain speed at a small sacrifice in quality.
422
+ When producing a color-quantized image, "-onepass -dither ordered" is fast but
423
+ much lower quality than the default behavior. "-dither none" may give
424
+ acceptable results in two-pass mode, but is seldom tolerable in one-pass mode.
425
+
426
+ To avoid the Unisys LZW patent (now expired), djpeg produces uncompressed GIF
427
+ files. These are larger than they should be, but are readable by standard GIF
428
+ decoders.
429
+
430
+
431
+ HINTS FOR BOTH PROGRAMS
432
+
433
+ If the memory needed by cjpeg or djpeg exceeds the limit specified by
434
+ -maxmemory, an error will occur. You can leave out -progressive and -optimize
435
+ (for cjpeg) or specify -onepass (for djpeg) to reduce memory usage.
436
+
437
+ On machines that have "environment" variables, you can define the environment
438
+ variable JPEGMEM to set the default memory limit. The value is specified as
439
+ described for the -maxmemory switch. JPEGMEM overrides the default value
440
+ specified when the program was compiled, and itself is overridden by an
441
+ explicit -maxmemory switch.
442
+
443
+
444
+ JPEGTRAN
445
+
446
+ jpegtran performs various useful transformations of JPEG files.
447
+ It can translate the coded representation from one variant of JPEG to another,
448
+ for example from baseline JPEG to progressive JPEG or vice versa. It can also
449
+ perform some rearrangements of the image data, for example turning an image
450
+ from landscape to portrait format by rotation. For EXIF files and JPEG files
451
+ containing Exif data, you may prefer to use exiftran instead.
452
+
453
+ jpegtran works by rearranging the compressed data (DCT coefficients), without
454
+ ever fully decoding the image. Therefore, its transformations are lossless:
455
+ there is no image degradation at all, which would not be true if you used
456
+ djpeg followed by cjpeg to accomplish the same conversion. But by the same
457
+ token, jpegtran cannot perform lossy operations such as changing the image
458
+ quality. However, while the image data is losslessly transformed, metadata
459
+ can be removed. See the -copy option for specifics.
460
+
461
+ jpegtran uses a command line syntax similar to cjpeg or djpeg.
462
+ On Unix-like systems, you say:
463
+ jpegtran [switches] [inputfile] >outputfile
464
+ On most non-Unix systems, you say:
465
+ jpegtran [switches] inputfile outputfile
466
+ where both the input and output files are JPEG files.
467
+
468
+ To specify the coded JPEG representation used in the output file,
469
+ jpegtran accepts a subset of the switches recognized by cjpeg:
470
+ -optimize Perform optimization of entropy encoding parameters.
471
+ -progressive Create progressive JPEG file.
472
+ -arithmetic Use arithmetic coding.
473
+ -restart N Emit a JPEG restart marker every N MCU rows, or every
474
+ N MCU blocks if "B" is attached to the number.
475
+ -scans file Use the scan script given in the specified text file.
476
+ See the previous discussion of cjpeg for more details about these switches.
477
+ If you specify none of these switches, you get a plain baseline-JPEG output
478
+ file. The quality setting and so forth are determined by the input file.
479
+
480
+ The image can be losslessly transformed by giving one of these switches:
481
+ -flip horizontal Mirror image horizontally (left-right).
482
+ -flip vertical Mirror image vertically (top-bottom).
483
+ -rotate 90 Rotate image 90 degrees clockwise.
484
+ -rotate 180 Rotate image 180 degrees.
485
+ -rotate 270 Rotate image 270 degrees clockwise (or 90 ccw).
486
+ -transpose Transpose image (across UL-to-LR axis).
487
+ -transverse Transverse transpose (across UR-to-LL axis).
488
+
489
+ The transpose transformation has no restrictions regarding image dimensions.
490
+ The other transformations operate rather oddly if the image dimensions are not
491
+ a multiple of the iMCU size (usually 8 or 16 pixels), because they can only
492
+ transform complete blocks of DCT coefficient data in the desired way.
493
+
494
+ jpegtran's default behavior when transforming an odd-size image is designed
495
+ to preserve exact reversibility and mathematical consistency of the
496
+ transformation set. As stated, transpose is able to flip the entire image
497
+ area. Horizontal mirroring leaves any partial iMCU column at the right edge
498
+ untouched, but is able to flip all rows of the image. Similarly, vertical
499
+ mirroring leaves any partial iMCU row at the bottom edge untouched, but is
500
+ able to flip all columns. The other transforms can be built up as sequences
501
+ of transpose and flip operations; for consistency, their actions on edge
502
+ pixels are defined to be the same as the end result of the corresponding
503
+ transpose-and-flip sequence.
504
+
505
+ For practical use, you may prefer to discard any untransformable edge pixels
506
+ rather than having a strange-looking strip along the right and/or bottom edges
507
+ of a transformed image. To do this, add the -trim switch:
508
+ -trim Drop non-transformable edge blocks.
509
+ Obviously, a transformation with -trim is not reversible, so strictly speaking
510
+ jpegtran with this switch is not lossless. Also, the expected mathematical
511
+ equivalences between the transformations no longer hold. For example,
512
+ "-rot 270 -trim" trims only the bottom edge, but "-rot 90 -trim" followed by
513
+ "-rot 180 -trim" trims both edges.
514
+
515
+ If you are only interested in perfect transformations, add the -perfect switch:
516
+ -perfect Fail with an error if the transformation is not
517
+ perfect.
518
+ For example, you may want to do
519
+ jpegtran -rot 90 -perfect foo.jpg || djpeg foo.jpg | pnmflip -r90 | cjpeg
520
+ to do a perfect rotation, if available, or an approximated one if not.
521
+
522
+ This version of jpegtran also offers a lossless crop option, which discards
523
+ data outside of a given image region but losslessly preserves what is inside.
524
+ Like the rotate and flip transforms, lossless crop is restricted by the current
525
+ JPEG format; the upper left corner of the selected region must fall on an iMCU
526
+ boundary. If it doesn't, then it is silently moved up and/or left to the
527
+ nearest iMCU boundary (the lower right corner is unchanged.) Thus, the output
528
+ image covers at least the requested region, but it may cover more. The
529
+ adjustment of the region dimensions may be optionally disabled by attaching an
530
+ 'f' character ("force") to the width or height number.
531
+
532
+ The image can be losslessly cropped by giving the switch:
533
+ -crop WxH+X+Y Crop to a rectangular region of width W and height H,
534
+ starting at point X,Y.
535
+
536
+ Other not-strictly-lossless transformation switches are:
537
+
538
+ -grayscale Force grayscale output.
539
+ This option discards the chrominance channels if the input image is YCbCr
540
+ (ie, a standard color JPEG), resulting in a grayscale JPEG file. The
541
+ luminance channel is preserved exactly, so this is a better method of reducing
542
+ to grayscale than decompression, conversion, and recompression. This switch
543
+ is particularly handy for fixing a monochrome picture that was mistakenly
544
+ encoded as a color JPEG. (In such a case, the space savings from getting rid
545
+ of the near-empty chroma channels won't be large; but the decoding time for
546
+ a grayscale JPEG is substantially less than that for a color JPEG.)
547
+
548
+ jpegtran also recognizes these switches that control what to do with "extra"
549
+ markers, such as comment blocks:
550
+ -copy none Copy no extra markers from source file. This setting
551
+ suppresses all comments and other metadata in the
552
+ source file.
553
+ -copy comments Copy only comment markers. This setting copies
554
+ comments from the source file but discards any other
555
+ metadata.
556
+ -copy all Copy all extra markers. This setting preserves
557
+ miscellaneous markers found in the source file, such
558
+ as JFIF thumbnails, Exif data, and Photoshop settings.
559
+ In some files, these extra markers can be sizable.
560
+ Note that this option will copy thumbnails as-is;
561
+ they will not be transformed.
562
+ The default behavior is -copy comments. (Note: in IJG releases v6 and v6a,
563
+ jpegtran always did the equivalent of -copy none.)
564
+
565
+ Additional switches recognized by jpegtran are:
566
+ -outfile filename
567
+ -maxmemory N
568
+ -verbose
569
+ -debug
570
+ These work the same as in cjpeg or djpeg.
571
+
572
+
573
+ THE COMMENT UTILITIES
574
+
575
+ The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file.
576
+ Although the standard doesn't actually define what COM blocks are for, they
577
+ are widely used to hold user-supplied text strings. This lets you add
578
+ annotations, titles, index terms, etc to your JPEG files, and later retrieve
579
+ them as text. COM blocks do not interfere with the image stored in the JPEG
580
+ file. The maximum size of a COM block is 64K, but you can have as many of
581
+ them as you like in one JPEG file.
582
+
583
+ We provide two utility programs to display COM block contents and add COM
584
+ blocks to a JPEG file.
585
+
586
+ rdjpgcom searches a JPEG file and prints the contents of any COM blocks on
587
+ standard output. The command line syntax is
588
+ rdjpgcom [-raw] [-verbose] [inputfilename]
589
+ The switch "-raw" (or just "-r") causes rdjpgcom to output non-printable
590
+ characters in JPEG comments. These characters are normally escaped for
591
+ security reasons.
592
+ The switch "-verbose" (or just "-v") causes rdjpgcom to also display the JPEG
593
+ image dimensions. If you omit the input file name from the command line,
594
+ the JPEG file is read from standard input. (This may not work on some
595
+ operating systems, if binary data can't be read from stdin.)
596
+
597
+ wrjpgcom adds a COM block, containing text you provide, to a JPEG file.
598
+ Ordinarily, the COM block is added after any existing COM blocks, but you
599
+ can delete the old COM blocks if you wish. wrjpgcom produces a new JPEG
600
+ file; it does not modify the input file. DO NOT try to overwrite the input
601
+ file by directing wrjpgcom's output back into it; on most systems this will
602
+ just destroy your file.
603
+
604
+ The command line syntax for wrjpgcom is similar to cjpeg's. On Unix-like
605
+ systems, it is
606
+ wrjpgcom [switches] [inputfilename]
607
+ The output file is written to standard output. The input file comes from
608
+ the named file, or from standard input if no input file is named.
609
+
610
+ On most non-Unix systems, the syntax is
611
+ wrjpgcom [switches] inputfilename outputfilename
612
+ where both input and output file names must be given explicitly.
613
+
614
+ wrjpgcom understands three switches:
615
+ -replace Delete any existing COM blocks from the file.
616
+ -comment "Comment text" Supply new COM text on command line.
617
+ -cfile name Read text for new COM block from named file.
618
+ (Switch names can be abbreviated.) If you have only one line of comment text
619
+ to add, you can provide it on the command line with -comment. The comment
620
+ text must be surrounded with quotes so that it is treated as a single
621
+ argument. Longer comments can be read from a text file.
622
+
623
+ If you give neither -comment nor -cfile, then wrjpgcom will read the comment
624
+ text from standard input. (In this case an input image file name MUST be
625
+ supplied, so that the source JPEG file comes from somewhere else.) You can
626
+ enter multiple lines, up to 64KB worth. Type an end-of-file indicator
627
+ (usually control-D or control-Z) to terminate the comment text entry.
628
+
629
+ wrjpgcom will not add a COM block if the provided comment string is empty.
630
+ Therefore -replace -comment "" can be used to delete all COM blocks from a
631
+ file.
632
+
633
+ These utility programs do not depend on the IJG JPEG library. In
634
+ particular, the source code for rdjpgcom is intended as an illustration of
635
+ the minimum amount of code required to parse a JPEG file header correctly.
@@ -0,0 +1,34 @@
1
+ #define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
2
+ #define LIBJPEG_TURBO_VERSION @VERSION@
3
+ #define LIBJPEG_TURBO_VERSION_NUMBER @LIBJPEG_TURBO_VERSION_NUMBER@
4
+
5
+ #cmakedefine C_ARITH_CODING_SUPPORTED
6
+ #cmakedefine D_ARITH_CODING_SUPPORTED
7
+ #cmakedefine MEM_SRCDST_SUPPORTED
8
+ #cmakedefine WITH_SIMD
9
+
10
+ #define BITS_IN_JSAMPLE @BITS_IN_JSAMPLE@ /* use 8 or 12 */
11
+
12
+ #define HAVE_STDDEF_H
13
+ #define HAVE_STDLIB_H
14
+ #undef NEED_SYS_TYPES_H
15
+ #undef NEED_BSD_STRINGS
16
+
17
+ #define HAVE_UNSIGNED_CHAR
18
+ #define HAVE_UNSIGNED_SHORT
19
+ #undef INCOMPLETE_TYPES_BROKEN
20
+ #undef RIGHT_SHIFT_IS_UNSIGNED
21
+ #undef __CHAR_UNSIGNED__
22
+
23
+ /* Define "boolean" as unsigned char, not int, per Windows custom */
24
+ #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
25
+ typedef unsigned char boolean;
26
+ #endif
27
+ #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
28
+
29
+ /* Define "INT32" as int, not long, per Windows custom */
30
+ #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
31
+ typedef short INT16;
32
+ typedef signed int INT32;
33
+ #endif
34
+ #define XMD_H /* prevent jmorecfg.h from redefining it */