epeg 1.0

Sign up to get free protection for your applications and to get access to all the features.
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,828 @@
1
+ Building libjpeg-turbo
2
+ ======================
3
+
4
+
5
+ Build Requirements
6
+ ------------------
7
+
8
+
9
+ ### All Systems
10
+
11
+ - [CMake](http://www.cmake.org) v2.8.12 or later
12
+
13
+ - [NASM](http://www.nasm.us) or [YASM](http://yasm.tortall.net)
14
+ (if building x86 or x86-64 SIMD extensions)
15
+ * If using NASM, 2.10 or later is required.
16
+ * If using NASM, 2.10 or later (except 2.11.08) is required for an x86-64 Mac
17
+ build (2.11.08 does not work properly with libjpeg-turbo's x86-64 SIMD code
18
+ when building macho64 objects.)
19
+ * If using YASM, 1.2.0 or later is required.
20
+ * If building on macOS, NASM or YASM can be obtained from
21
+ [MacPorts](http://www.macports.org/) or [Homebrew](http://brew.sh/).
22
+ - NOTE: Currently, if it is desirable to hide the SIMD function symbols in
23
+ Mac executables or shared libraries that statically link with
24
+ libjpeg-turbo, then NASM 2.14 or later or YASM must be used when
25
+ building libjpeg-turbo.
26
+ * If building on Windows, **nasm.exe**/**yasm.exe** should be in your `PATH`.
27
+ * NASM and YASM are located in the CRB (Code Ready Builder) repository on
28
+ Red Hat Enterprise Linux 8 and in the PowerTools repository on CentOS 8,
29
+ which is not enabled by default.
30
+
31
+ The binary RPMs released by the NASM project do not work on older Linux
32
+ systems, such as Red Hat Enterprise Linux 5. On such systems, you can easily
33
+ build and install NASM from a source RPM by downloading one of the SRPMs from
34
+
35
+ <http://www.nasm.us/pub/nasm/releasebuilds>
36
+
37
+ and executing the following as root:
38
+
39
+ ARCH=`uname -m`
40
+ rpmbuild --rebuild nasm-{version}.src.rpm
41
+ rpm -Uvh /usr/src/redhat/RPMS/$ARCH/nasm-{version}.$ARCH.rpm
42
+
43
+ NOTE: the NASM build will fail if texinfo is not installed.
44
+
45
+
46
+ ### Un*x Platforms (including Linux, Mac, FreeBSD, Solaris, and Cygwin)
47
+
48
+ - GCC v4.1 (or later) or Clang recommended for best performance
49
+
50
+ - If building the TurboJPEG Java wrapper, JDK or OpenJDK 1.5 or later is
51
+ required. Most modern Linux distributions, as well as Solaris 10 and later,
52
+ include JDK or OpenJDK. On OS X 10.5 and 10.6, it will be necessary to
53
+ install the Java Developer Package, which can be downloaded from
54
+ <http://developer.apple.com/downloads> (Apple ID required.) For other
55
+ systems, you can obtain the Oracle Java Development Kit from
56
+ <http://www.oracle.com/technetwork/java/javase/downloads>.
57
+
58
+ * If using JDK 11 or later, CMake 3.10.x or later must also be used.
59
+
60
+ ### Windows
61
+
62
+ - Microsoft Visual C++ 2005 or later
63
+
64
+ If you don't already have Visual C++, then the easiest way to get it is by
65
+ installing the
66
+ [Windows SDK](http://msdn.microsoft.com/en-us/windows/bb980924.aspx).
67
+ The Windows SDK includes both 32-bit and 64-bit Visual C++ compilers and
68
+ everything necessary to build libjpeg-turbo.
69
+
70
+ * You can also use Microsoft Visual Studio Express/Community Edition, which
71
+ is a free download. (NOTE: versions prior to 2012 can only be used to
72
+ build 32-bit code.)
73
+ * If you intend to build libjpeg-turbo from the command line, then add the
74
+ appropriate compiler and SDK directories to the `INCLUDE`, `LIB`, and
75
+ `PATH` environment variables. This is generally accomplished by
76
+ executing `vcvars32.bat` or `vcvars64.bat` and `SetEnv.cmd`.
77
+ `vcvars32.bat` and `vcvars64.bat` are part of Visual C++ and are located in
78
+ the same directory as the compiler. `SetEnv.cmd` is part of the Windows
79
+ SDK. You can pass optional arguments to `SetEnv.cmd` to specify a 32-bit
80
+ or 64-bit build environment.
81
+
82
+ ... OR ...
83
+
84
+ - MinGW
85
+
86
+ [MSYS2](http://msys2.github.io/) or [tdm-gcc](http://tdm-gcc.tdragon.net/)
87
+ recommended if building on a Windows machine. Both distributions install a
88
+ Start Menu link that can be used to launch a command prompt with the
89
+ appropriate compiler paths automatically set.
90
+
91
+ - If building the TurboJPEG Java wrapper, JDK 1.5 or later is required. This
92
+ can be downloaded from
93
+ <http://www.oracle.com/technetwork/java/javase/downloads>.
94
+
95
+ * If using JDK 11 or later, CMake 3.10.x or later must also be used.
96
+
97
+
98
+ Out-of-Tree Builds
99
+ ------------------
100
+
101
+ Binary objects, libraries, and executables are generated in the directory from
102
+ which CMake is executed (the "binary directory"), and this directory need not
103
+ necessarily be the same as the libjpeg-turbo source directory. You can create
104
+ multiple independent binary directories, in which different versions of
105
+ libjpeg-turbo can be built from the same source tree using different compilers
106
+ or settings. In the sections below, *{build_directory}* refers to the binary
107
+ directory, whereas *{source_directory}* refers to the libjpeg-turbo source
108
+ directory. For in-tree builds, these directories are the same.
109
+
110
+
111
+ Build Procedure
112
+ ---------------
113
+
114
+ NOTE: The build procedures below assume that CMake is invoked from the command
115
+ line, but all of these procedures can be adapted to the CMake GUI as
116
+ well.
117
+
118
+
119
+ ### Un*x
120
+
121
+ The following procedure will build libjpeg-turbo on Unix and Unix-like systems.
122
+ (On Solaris, this generates a 32-bit build. See "Build Recipes" below for
123
+ 64-bit build instructions.)
124
+
125
+ cd {build_directory}
126
+ cmake -G"Unix Makefiles" [additional CMake flags] {source_directory}
127
+ make
128
+
129
+ This will generate the following files under *{build_directory}*:
130
+
131
+ **libjpeg.a**<br>
132
+ Static link library for the libjpeg API
133
+
134
+ **libjpeg.so.{version}** (Linux, Unix)<br>
135
+ **libjpeg.{version}.dylib** (Mac)<br>
136
+ **cygjpeg-{version}.dll** (Cygwin)<br>
137
+ Shared library for the libjpeg API
138
+
139
+ By default, *{version}* is 62.2.0, 7.2.0, or 8.1.2, depending on whether
140
+ libjpeg v6b (default), v7, or v8 emulation is enabled. If using Cygwin,
141
+ *{version}* is 62, 7, or 8.
142
+
143
+ **libjpeg.so** (Linux, Unix)<br>
144
+ **libjpeg.dylib** (Mac)<br>
145
+ Development symlink for the libjpeg API
146
+
147
+ **libjpeg.dll.a** (Cygwin)<br>
148
+ Import library for the libjpeg API
149
+
150
+ **libturbojpeg.a**<br>
151
+ Static link library for the TurboJPEG API
152
+
153
+ **libturbojpeg.so.0.2.0** (Linux, Unix)<br>
154
+ **libturbojpeg.0.2.0.dylib** (Mac)<br>
155
+ **cygturbojpeg-0.dll** (Cygwin)<br>
156
+ Shared library for the TurboJPEG API
157
+
158
+ **libturbojpeg.so** (Linux, Unix)<br>
159
+ **libturbojpeg.dylib** (Mac)<br>
160
+ Development symlink for the TurboJPEG API
161
+
162
+ **libturbojpeg.dll.a** (Cygwin)<br>
163
+ Import library for the TurboJPEG API
164
+
165
+
166
+ ### Visual C++ (Command Line)
167
+
168
+ cd {build_directory}
169
+ cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release [additional CMake flags] {source_directory}
170
+ nmake
171
+
172
+ This will build either a 32-bit or a 64-bit version of libjpeg-turbo, depending
173
+ on which version of **cl.exe** is in the `PATH`.
174
+
175
+ The following files will be generated under *{build_directory}*:
176
+
177
+ **jpeg-static.lib**<br>
178
+ Static link library for the libjpeg API
179
+
180
+ **jpeg{version}.dll**<br>
181
+ DLL for the libjpeg API
182
+
183
+ **jpeg.lib**<br>
184
+ Import library for the libjpeg API
185
+
186
+ **turbojpeg-static.lib**<br>
187
+ Static link library for the TurboJPEG API
188
+
189
+ **turbojpeg.dll**<br>
190
+ DLL for the TurboJPEG API
191
+
192
+ **turbojpeg.lib**<br>
193
+ Import library for the TurboJPEG API
194
+
195
+ *{version}* is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
196
+ v8 emulation is enabled.
197
+
198
+
199
+ ### Visual C++ (IDE)
200
+
201
+ Choose the appropriate CMake generator option for your version of Visual Studio
202
+ (run `cmake` with no arguments for a list of available generators.) For
203
+ instance:
204
+
205
+ cd {build_directory}
206
+ cmake -G"Visual Studio 10" [additional CMake flags] {source_directory}
207
+
208
+ NOTE: Add "Win64" to the generator name (for example, "Visual Studio 10 Win64")
209
+ to build a 64-bit version of libjpeg-turbo. A separate build directory must be
210
+ used for 32-bit and 64-bit builds.
211
+
212
+ You can then open **ALL_BUILD.vcproj** in Visual Studio and build one of the
213
+ configurations in that project ("Debug", "Release", etc.) to generate a full
214
+ build of libjpeg-turbo.
215
+
216
+ This will generate the following files under *{build_directory}*:
217
+
218
+ **{configuration}/jpeg-static.lib**<br>
219
+ Static link library for the libjpeg API
220
+
221
+ **{configuration}/jpeg{version}.dll**<br>
222
+ DLL for the libjpeg API
223
+
224
+ **{configuration}/jpeg.lib**<br>
225
+ Import library for the libjpeg API
226
+
227
+ **{configuration}/turbojpeg-static.lib**<br>
228
+ Static link library for the TurboJPEG API
229
+
230
+ **{configuration}/turbojpeg.dll**<br>
231
+ DLL for the TurboJPEG API
232
+
233
+ **{configuration}/turbojpeg.lib**<br>
234
+ Import library for the TurboJPEG API
235
+
236
+ *{configuration}* is Debug, Release, RelWithDebInfo, or MinSizeRel, depending
237
+ on the configuration you built in the IDE, and *{version}* is 62, 7, or 8,
238
+ depending on whether libjpeg v6b (default), v7, or v8 emulation is enabled.
239
+
240
+
241
+ ### MinGW
242
+
243
+ NOTE: This assumes that you are building on a Windows machine using the MSYS
244
+ environment. If you are cross-compiling on a Un*x platform (including Mac and
245
+ Cygwin), then see "Build Recipes" below.
246
+
247
+ cd {build_directory}
248
+ cmake -G"MSYS Makefiles" [additional CMake flags] {source_directory}
249
+ make
250
+
251
+ This will generate the following files under *{build_directory}*:
252
+
253
+ **libjpeg.a**<br>
254
+ Static link library for the libjpeg API
255
+
256
+ **libjpeg-{version}.dll**<br>
257
+ DLL for the libjpeg API
258
+
259
+ **libjpeg.dll.a**<br>
260
+ Import library for the libjpeg API
261
+
262
+ **libturbojpeg.a**<br>
263
+ Static link library for the TurboJPEG API
264
+
265
+ **libturbojpeg.dll**<br>
266
+ DLL for the TurboJPEG API
267
+
268
+ **libturbojpeg.dll.a**<br>
269
+ Import library for the TurboJPEG API
270
+
271
+ *{version}* is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
272
+ v8 emulation is enabled.
273
+
274
+
275
+ ### Debug Build
276
+
277
+ Add `-DCMAKE_BUILD_TYPE=Debug` to the CMake command line. Or, if building
278
+ with NMake, remove `-DCMAKE_BUILD_TYPE=Release` (Debug builds are the default
279
+ with NMake.)
280
+
281
+
282
+ ### libjpeg v7 or v8 API/ABI Emulation
283
+
284
+ Add `-DWITH_JPEG7=1` to the CMake command line to build a version of
285
+ libjpeg-turbo that is API/ABI-compatible with libjpeg v7. Add `-DWITH_JPEG8=1`
286
+ to the CMake command line to build a version of libjpeg-turbo that is
287
+ API/ABI-compatible with libjpeg v8. See [README.md](README.md) for more
288
+ information about libjpeg v7 and v8 emulation.
289
+
290
+
291
+ ### In-Memory Source/Destination Managers
292
+
293
+ When using libjpeg v6b or v7 API/ABI emulation, add `-DWITH_MEM_SRCDST=0` to
294
+ the CMake command line to build a version of libjpeg-turbo that lacks the
295
+ `jpeg_mem_src()` and `jpeg_mem_dest()` functions. These functions were not
296
+ part of the original libjpeg v6b and v7 APIs, so removing them ensures strict
297
+ conformance with those APIs. See [README.md](README.md) for more information.
298
+
299
+
300
+ ### Arithmetic Coding Support
301
+
302
+ Since the patent on arithmetic coding has expired, this functionality has been
303
+ included in this release of libjpeg-turbo. libjpeg-turbo's implementation is
304
+ based on the implementation in libjpeg v8, but it works when emulating libjpeg
305
+ v7 or v6b as well. The default is to enable both arithmetic encoding and
306
+ decoding, but those who have philosophical objections to arithmetic coding can
307
+ add `-DWITH_ARITH_ENC=0` or `-DWITH_ARITH_DEC=0` to the CMake command line to
308
+ disable encoding or decoding (respectively.)
309
+
310
+
311
+ ### TurboJPEG Java Wrapper
312
+
313
+ Add `-DWITH_JAVA=1` to the CMake command line to incorporate an optional Java
314
+ Native Interface (JNI) wrapper into the TurboJPEG shared library and build the
315
+ Java front-end classes to support it. This allows the TurboJPEG shared library
316
+ to be used directly from Java applications. See [java/README](java/README) for
317
+ more details.
318
+
319
+ If Java is not in your `PATH`, or if you wish to use an alternate JDK to
320
+ build/test libjpeg-turbo, then (prior to running CMake) set the `JAVA_HOME`
321
+ environment variable to the location of the JDK that you wish to use. The
322
+ `Java_JAVAC_EXECUTABLE`, `Java_JAVA_EXECUTABLE`, and `Java_JAR_EXECUTABLE`
323
+ CMake variables can also be used to specify alternate commands or locations for
324
+ javac, jar, and java (respectively.) You can also set the
325
+ `CMAKE_JAVA_COMPILE_FLAGS` CMake variable or the `JAVAFLAGS` environment
326
+ variable to specify arguments that should be passed to the Java compiler when
327
+ building the TurboJPEG classes, and the `JAVAARGS` CMake variable to specify
328
+ arguments that should be passed to the JRE when running the TurboJPEG Java unit
329
+ tests.
330
+
331
+
332
+ Build Recipes
333
+ -------------
334
+
335
+
336
+ ### 32-bit Build on 64-bit Linux/Unix/Mac
337
+
338
+ Use export/setenv to set the following environment variables before running
339
+ CMake:
340
+
341
+ CFLAGS=-m32
342
+ LDFLAGS=-m32
343
+
344
+
345
+ ### 64-bit Build on Solaris
346
+
347
+ Use export/setenv to set the following environment variables before running
348
+ CMake:
349
+
350
+ CFLAGS=-m64
351
+ LDFLAGS=-m64
352
+
353
+
354
+ ### Other Compilers
355
+
356
+ On Un*x systems, prior to running CMake, you can set the `CC` environment
357
+ variable to the command used to invoke the C compiler.
358
+
359
+
360
+ ### 32-bit MinGW Build on Un*x (including Mac and Cygwin)
361
+
362
+ Create a file called **toolchain.cmake** under *{build_directory}*, with the
363
+ following contents:
364
+
365
+ set(CMAKE_SYSTEM_NAME Windows)
366
+ set(CMAKE_SYSTEM_PROCESSOR X86)
367
+ set(CMAKE_C_COMPILER {mingw_binary_path}/i686-w64-mingw32-gcc)
368
+ set(CMAKE_RC_COMPILER {mingw_binary_path}/i686-w64-mingw32-windres)
369
+
370
+ *{mingw\_binary\_path}* is the directory under which the MinGW binaries are
371
+ located (usually **/usr/bin**.) Next, execute the following commands:
372
+
373
+ cd {build_directory}
374
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
375
+ [additional CMake flags] {source_directory}
376
+ make
377
+
378
+
379
+ ### 64-bit MinGW Build on Un*x (including Mac and Cygwin)
380
+
381
+ Create a file called **toolchain.cmake** under *{build_directory}*, with the
382
+ following contents:
383
+
384
+ set(CMAKE_SYSTEM_NAME Windows)
385
+ set(CMAKE_SYSTEM_PROCESSOR AMD64)
386
+ set(CMAKE_C_COMPILER {mingw_binary_path}/x86_64-w64-mingw32-gcc)
387
+ set(CMAKE_RC_COMPILER {mingw_binary_path}/x86_64-w64-mingw32-windres)
388
+
389
+ *{mingw\_binary\_path}* is the directory under which the MinGW binaries are
390
+ located (usually **/usr/bin**.) Next, execute the following commands:
391
+
392
+ cd {build_directory}
393
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
394
+ [additional CMake flags] {source_directory}
395
+ make
396
+
397
+
398
+ Building libjpeg-turbo for iOS
399
+ ------------------------------
400
+
401
+ iOS platforms, such as the iPhone and iPad, use ARM processors, and all
402
+ currently supported models include NEON instructions. Thus, they can take
403
+ advantage of libjpeg-turbo's SIMD extensions to significantly accelerate JPEG
404
+ compression/decompression. This section describes how to build libjpeg-turbo
405
+ for these platforms.
406
+
407
+
408
+ ### Additional build requirements
409
+
410
+ - For configurations that require [gas-preprocessor.pl]
411
+ (https://raw.githubusercontent.com/libjpeg-turbo/gas-preprocessor/master/gas-preprocessor.pl),
412
+ it should be installed in your `PATH`.
413
+
414
+
415
+ ### ARMv7 (32-bit)
416
+
417
+ **gas-preprocessor.pl required**
418
+
419
+ The following scripts demonstrate how to build libjpeg-turbo to run on the
420
+ iPhone 3GS-4S/iPad 1st-3rd Generation and newer:
421
+
422
+ #### Xcode 4.2 and earlier (LLVM-GCC)
423
+
424
+ IOS_PLATFORMDIR=/Developer/Platforms/iPhoneOS.platform
425
+ IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
426
+ export CFLAGS="-mfloat-abi=softfp -march=armv7 -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -miphoneos-version-min=3.0"
427
+
428
+ cd {build_directory}
429
+
430
+ cat <<EOF >toolchain.cmake
431
+ set(CMAKE_SYSTEM_NAME Darwin)
432
+ set(CMAKE_SYSTEM_PROCESSOR arm)
433
+ set(CMAKE_C_COMPILER ${IOS_PLATFORMDIR}/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2)
434
+ EOF
435
+
436
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
437
+ -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} \
438
+ [additional CMake flags] {source_directory}
439
+ make
440
+
441
+ #### Xcode 4.3-4.6 (LLVM-GCC)
442
+
443
+ Same as above, but replace the first line with:
444
+
445
+ IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
446
+
447
+ #### Xcode 5 and later (Clang)
448
+
449
+ IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
450
+ IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
451
+ export CFLAGS="-mfloat-abi=softfp -arch armv7 -miphoneos-version-min=3.0"
452
+ export ASMFLAGS="-no-integrated-as"
453
+
454
+ cd {build_directory}
455
+
456
+ cat <<EOF >toolchain.cmake
457
+ set(CMAKE_SYSTEM_NAME Darwin)
458
+ set(CMAKE_SYSTEM_PROCESSOR arm)
459
+ set(CMAKE_C_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)
460
+ EOF
461
+
462
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
463
+ -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} \
464
+ [additional CMake flags] {source_directory}
465
+ make
466
+
467
+
468
+ ### ARMv7s (32-bit)
469
+
470
+ **gas-preprocessor.pl required**
471
+
472
+ The following scripts demonstrate how to build libjpeg-turbo to run on the
473
+ iPhone 5/iPad 4th Generation and newer:
474
+
475
+ #### Xcode 4.5-4.6 (LLVM-GCC)
476
+
477
+ IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
478
+ IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
479
+ export CFLAGS="-Wall -mfloat-abi=softfp -march=armv7s -mcpu=swift -mtune=swift -mfpu=neon -miphoneos-version-min=6.0"
480
+
481
+ cd {build_directory}
482
+
483
+ cat <<EOF >toolchain.cmake
484
+ set(CMAKE_SYSTEM_NAME Darwin)
485
+ set(CMAKE_SYSTEM_PROCESSOR arm)
486
+ set(CMAKE_C_COMPILER ${IOS_PLATFORMDIR}/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2)
487
+ EOF
488
+
489
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
490
+ -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} \
491
+ [additional CMake flags] {source_directory}
492
+ make
493
+
494
+ #### Xcode 5 and later (Clang)
495
+
496
+ Same as the ARMv7 build procedure for Xcode 5 and later, except replace the
497
+ compiler flags as follows:
498
+
499
+ export CFLAGS="-Wall -mfloat-abi=softfp -arch armv7s -miphoneos-version-min=6.0"
500
+
501
+
502
+ ### ARMv8 (64-bit)
503
+
504
+ **gas-preprocessor.pl required if using Xcode < 6**
505
+
506
+ The following script demonstrates how to build libjpeg-turbo to run on the
507
+ iPhone 5S/iPad Mini 2/iPad Air and newer.
508
+
509
+ IOS_PLATFORMDIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
510
+ IOS_SYSROOT=($IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS*.sdk)
511
+ export CFLAGS="-Wall -arch arm64 -miphoneos-version-min=7.0 -funwind-tables"
512
+
513
+ cd {build_directory}
514
+
515
+ cat <<EOF >toolchain.cmake
516
+ set(CMAKE_SYSTEM_NAME Darwin)
517
+ set(CMAKE_SYSTEM_PROCESSOR aarch64)
518
+ set(CMAKE_C_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)
519
+ EOF
520
+
521
+ cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
522
+ -DCMAKE_OSX_SYSROOT=${IOS_SYSROOT[0]} \
523
+ [additional CMake flags] {source_directory}
524
+ make
525
+
526
+ Once built, lipo can be used to combine the ARMv7, v7s, and/or v8 variants into
527
+ a universal library.
528
+
529
+
530
+ Building libjpeg-turbo for Android
531
+ ----------------------------------
532
+
533
+ Building libjpeg-turbo for Android platforms requires v13b or later of the
534
+ [Android NDK](https://developer.android.com/tools/sdk/ndk).
535
+
536
+
537
+ ### ARMv7 (32-bit)
538
+
539
+ The following is a general recipe script that can be modified for your specific
540
+ needs.
541
+
542
+ # Set these variables to suit your needs
543
+ NDK_PATH={full path to the NDK directory-- for example,
544
+ /opt/android/android-ndk-r16b}
545
+ TOOLCHAIN={"gcc" or "clang"-- "gcc" must be used with NDK r16b and earlier,
546
+ and "clang" must be used with NDK r17c and later}
547
+ ANDROID_VERSION={the minimum version of Android to support-- for example,
548
+ "16", "19", etc.}
549
+
550
+ cd {build_directory}
551
+ cmake -G"Unix Makefiles" \
552
+ -DANDROID_ABI=armeabi-v7a \
553
+ -DANDROID_ARM_MODE=arm \
554
+ -DANDROID_PLATFORM=android-${ANDROID_VERSION} \
555
+ -DANDROID_TOOLCHAIN=${TOOLCHAIN} \
556
+ -DCMAKE_ASM_FLAGS="--target=arm-linux-androideabi${ANDROID_VERSION}" \
557
+ -DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
558
+ [additional CMake flags] {source_directory}
559
+ make
560
+
561
+
562
+ ### ARMv8 (64-bit)
563
+
564
+ The following is a general recipe script that can be modified for your specific
565
+ needs.
566
+
567
+ # Set these variables to suit your needs
568
+ NDK_PATH={full path to the NDK directory-- for example,
569
+ /opt/android/android-ndk-r16b}
570
+ TOOLCHAIN={"gcc" or "clang"-- "gcc" must be used with NDK r14b and earlier,
571
+ and "clang" must be used with NDK r17c and later}
572
+ ANDROID_VERSION={the minimum version of Android to support. "21" or later
573
+ is required for a 64-bit build.}
574
+
575
+ cd {build_directory}
576
+ cmake -G"Unix Makefiles" \
577
+ -DANDROID_ABI=arm64-v8a \
578
+ -DANDROID_ARM_MODE=arm \
579
+ -DANDROID_PLATFORM=android-${ANDROID_VERSION} \
580
+ -DANDROID_TOOLCHAIN=${TOOLCHAIN} \
581
+ -DCMAKE_ASM_FLAGS="--target=aarch64-linux-android${ANDROID_VERSION}" \
582
+ -DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
583
+ [additional CMake flags] {source_directory}
584
+ make
585
+
586
+
587
+ ### x86 (32-bit)
588
+
589
+ The following is a general recipe script that can be modified for your specific
590
+ needs.
591
+
592
+ # Set these variables to suit your needs
593
+ NDK_PATH={full path to the NDK directory-- for example,
594
+ /opt/android/android-ndk-r16b}
595
+ TOOLCHAIN={"gcc" or "clang"-- "gcc" must be used with NDK r14b and earlier,
596
+ and "clang" must be used with NDK r17c and later}
597
+ ANDROID_VERSION={The minimum version of Android to support-- for example,
598
+ "16", "19", etc.}
599
+
600
+ cd {build_directory}
601
+ cmake -G"Unix Makefiles" \
602
+ -DANDROID_ABI=x86 \
603
+ -DANDROID_PLATFORM=android-${ANDROID_VERSION} \
604
+ -DANDROID_TOOLCHAIN=${TOOLCHAIN} \
605
+ -DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
606
+ [additional CMake flags] {source_directory}
607
+ make
608
+
609
+
610
+ ### x86-64 (64-bit)
611
+
612
+ The following is a general recipe script that can be modified for your specific
613
+ needs.
614
+
615
+ # Set these variables to suit your needs
616
+ NDK_PATH={full path to the NDK directory-- for example,
617
+ /opt/android/android-ndk-r16b}
618
+ TOOLCHAIN={"gcc" or "clang"-- "gcc" must be used with NDK r14b and earlier,
619
+ and "clang" must be used with NDK r17c and later}
620
+ ANDROID_VERSION={the minimum version of Android to support. "21" or later
621
+ is required for a 64-bit build.}
622
+
623
+ cd {build_directory}
624
+ cmake -G"Unix Makefiles" \
625
+ -DANDROID_ABI=x86_64 \
626
+ -DANDROID_PLATFORM=android-${ANDROID_VERSION} \
627
+ -DANDROID_TOOLCHAIN=${TOOLCHAIN} \
628
+ -DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
629
+ [additional CMake flags] {source_directory}
630
+ make
631
+
632
+
633
+ Advanced CMake Options
634
+ ----------------------
635
+
636
+ To list and configure other CMake options not specifically mentioned in this
637
+ guide, run
638
+
639
+ ccmake {source_directory}
640
+
641
+ or
642
+
643
+ cmake-gui {source_directory}
644
+
645
+ from the build directory after initially configuring the build. CCMake is a
646
+ text-based interactive version of CMake, and CMake-GUI is a GUI version. Both
647
+ will display all variables that are relevant to the libjpeg-turbo build, their
648
+ current values, and a help string describing what they do.
649
+
650
+
651
+ Installing libjpeg-turbo
652
+ ========================
653
+
654
+ You can use the build system to install libjpeg-turbo (as opposed to creating
655
+ an installer package.) To do this, run `make install` or `nmake install`
656
+ (or build the "install" target in the Visual Studio IDE.) Running
657
+ `make uninstall` or `nmake uninstall` (or building the "uninstall" target in
658
+ the Visual Studio IDE) will uninstall libjpeg-turbo.
659
+
660
+ The `CMAKE_INSTALL_PREFIX` CMake variable can be modified in order to install
661
+ libjpeg-turbo into a directory of your choosing. If you don't specify
662
+ `CMAKE_INSTALL_PREFIX`, then the default is:
663
+
664
+ **c:\libjpeg-turbo**<br>
665
+ Visual Studio 32-bit build
666
+
667
+ **c:\libjpeg-turbo64**<br>
668
+ Visual Studio 64-bit build
669
+
670
+ **c:\libjpeg-turbo-gcc**<br>
671
+ MinGW 32-bit build
672
+
673
+ **c:\libjpeg-turbo-gcc64**<br>
674
+ MinGW 64-bit build
675
+
676
+ **/opt/libjpeg-turbo**<br>
677
+ Un*x
678
+
679
+ The default value of `CMAKE_INSTALL_PREFIX` causes the libjpeg-turbo files to
680
+ be installed with a directory structure resembling that of the official
681
+ libjpeg-turbo binary packages. Changing the value of `CMAKE_INSTALL_PREFIX`
682
+ (for instance, to **/usr/local**) causes the libjpeg-turbo files to be
683
+ installed with a directory structure that conforms to GNU standards.
684
+
685
+ The `CMAKE_INSTALL_BINDIR`, `CMAKE_INSTALL_DATAROOTDIR`,
686
+ `CMAKE_INSTALL_DOCDIR`, `CMAKE_INSTALL_INCLUDEDIR`, `CMAKE_INSTALL_JAVADIR`,
687
+ `CMAKE_INSTALL_LIBDIR`, and `CMAKE_INSTALL_MANDIR` CMake variables allow a
688
+ finer degree of control over where specific files in the libjpeg-turbo
689
+ distribution should be installed. These directory variables can either be
690
+ specified as absolute paths or as paths relative to `CMAKE_INSTALL_PREFIX` (for
691
+ instance, setting `CMAKE_INSTALL_DOCDIR` to **doc** would cause the
692
+ documentation to be installed in **${CMAKE\_INSTALL\_PREFIX}/doc**.) If a
693
+ directory variable contains the name of another directory variable in angle
694
+ brackets, then its final value will depend on the final value of that other
695
+ variable. For instance, the default value of `CMAKE_INSTALL_MANDIR` is
696
+ **\<CMAKE\_INSTALL\_DATAROOTDIR\>/man**.
697
+
698
+ NOTE: If setting one of these directory variables to a relative path using the
699
+ CMake command line, you must specify that the variable is of type `PATH`.
700
+ For example:
701
+
702
+ cmake -G"{generator type}" -DCMAKE_INSTALL_LIBDIR:PATH=lib {source_directory}
703
+
704
+ Otherwise, CMake will assume that the path is relative to the build directory
705
+ rather than the install directory.
706
+
707
+
708
+ Creating Distribution Packages
709
+ ==============================
710
+
711
+ The following commands can be used to create various types of distribution
712
+ packages:
713
+
714
+
715
+ Linux
716
+ -----
717
+
718
+ make rpm
719
+
720
+ Create Red Hat-style binary RPM package. Requires RPM v4 or later.
721
+
722
+ make srpm
723
+
724
+ This runs `make dist` to create a pristine source tarball, then creates a
725
+ Red Hat-style source RPM package from the tarball. Requires RPM v4 or later.
726
+
727
+ make deb
728
+
729
+ Create Debian-style binary package. Requires dpkg.
730
+
731
+
732
+ Mac
733
+ ---
734
+
735
+ make dmg
736
+
737
+ Create Mac package/disk image. This requires pkgbuild and productbuild, which
738
+ are installed by default on OS X 10.7 and later and which can be obtained by
739
+ installing Xcode 3.2.6 (with the "Unix Development" option) on OS X 10.6.
740
+ Packages built in this manner can be installed on OS X 10.5 and later, but they
741
+ must be built on OS X 10.6 or later.
742
+
743
+ make udmg
744
+
745
+ This creates a Mac package/disk image that contains universal x86-64/i386/ARM
746
+ binaries. The following CMake variables control which architectures are
747
+ included in the universal binaries. Setting any of these variables to an empty
748
+ string excludes that architecture from the package.
749
+
750
+ * `OSX_32BIT_BUILD`: Directory containing an i386 (32-bit) Mac build of
751
+ libjpeg-turbo (default: *{source_directory}*/osxx86)
752
+ * `IOS_ARMV7_BUILD`: Directory containing an ARMv7 (32-bit) iOS build of
753
+ libjpeg-turbo (default: *{source_directory}*/iosarmv7)
754
+ * `IOS_ARMV7S_BUILD`: Directory containing an ARMv7s (32-bit) iOS build of
755
+ libjpeg-turbo (default: *{source_directory}*/iosarmv7s)
756
+ * `IOS_ARMV8_BUILD`: Directory containing an ARMv8 (64-bit) iOS build of
757
+ libjpeg-turbo (default: *{source_directory}*/iosarmv8)
758
+
759
+ You should first use CMake to configure i386, ARMv7, ARMv7s, and/or ARMv8
760
+ sub-builds of libjpeg-turbo (see "Build Recipes" and "Building libjpeg-turbo
761
+ for iOS" above) in build directories that match those specified in the
762
+ aforementioned CMake variables. Next, configure the primary build of
763
+ libjpeg-turbo as an out-of-tree build, and build it. Once the primary build
764
+ has been built, run `make udmg` from the build directory. The packaging system
765
+ will build the sub-builds, use lipo to combine them into a single set of
766
+ universal binaries, then package the universal binaries in the same manner as
767
+ `make dmg`.
768
+
769
+
770
+ Cygwin
771
+ ------
772
+
773
+ make cygwinpkg
774
+
775
+ Build a Cygwin binary package.
776
+
777
+
778
+ Windows
779
+ -------
780
+
781
+ If using NMake:
782
+
783
+ cd {build_directory}
784
+ nmake installer
785
+
786
+ If using MinGW:
787
+
788
+ cd {build_directory}
789
+ make installer
790
+
791
+ If using the Visual Studio IDE, build the "installer" target.
792
+
793
+ The installer package (libjpeg-turbo-*{version}*[-gcc|-vc][64].exe) will be
794
+ located under *{build_directory}*. If building using the Visual Studio IDE,
795
+ then the installer package will be located in a subdirectory with the same name
796
+ as the configuration you built (such as *{build_directory}*\Debug\ or
797
+ *{build_directory}*\Release\).
798
+
799
+ Building a Windows installer requires the
800
+ [Nullsoft Install System](http://nsis.sourceforge.net/). makensis.exe should
801
+ be in your `PATH`.
802
+
803
+
804
+ Regression testing
805
+ ==================
806
+
807
+ The most common way to test libjpeg-turbo is by invoking `make test` (Un*x) or
808
+ `nmake test` (Windows command line) or by building the "RUN_TESTS" target
809
+ (Visual Studio IDE), once the build has completed. This runs a series of tests
810
+ to ensure that mathematical compatibility has been maintained between
811
+ libjpeg-turbo and libjpeg v6b. This also invokes the TurboJPEG unit tests,
812
+ which ensure that the colorspace extensions, YUV encoding, decompression
813
+ scaling, and other features of the TurboJPEG C and Java APIs are working
814
+ properly (and, by extension, that the equivalent features of the underlying
815
+ libjpeg API are also working.)
816
+
817
+ Invoking `make testclean` (Un*x) or `nmake testclean` (Windows command line) or
818
+ building the "testclean" target (Visual Studio IDE) will clean up the output
819
+ images generated by the tests.
820
+
821
+ On Un*x platforms, more extensive tests of the TurboJPEG C and Java wrappers
822
+ can be run by invoking `make tjtest`. These extended TurboJPEG tests
823
+ essentially iterate through all of the available features of the TurboJPEG APIs
824
+ that are not covered by the TurboJPEG unit tests (including the lossless
825
+ transform options) and compare the images generated by each feature to images
826
+ generated using the equivalent feature in the libjpeg API. The extended
827
+ TurboJPEG tests are meant to test for regressions in the TurboJPEG wrappers,
828
+ not in the underlying libjpeg API library.