nbis-wrapper-js 0.0.1

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 (689) hide show
  1. package/README.md +102 -0
  2. package/dist/scripts/test-nbis-versions.js +17 -0
  3. package/dist/src/an2ktool.d.ts +14 -0
  4. package/dist/src/an2ktool.js +48 -0
  5. package/dist/src/bozorth3.d.ts +43 -0
  6. package/dist/src/bozorth3.js +145 -0
  7. package/dist/src/chkan2k.d.ts +14 -0
  8. package/dist/src/chkan2k.js +34 -0
  9. package/dist/src/cjp2k.d.ts +21 -0
  10. package/dist/src/cjp2k.js +54 -0
  11. package/dist/src/cjpeg.d.ts +24 -0
  12. package/dist/src/cjpeg.js +60 -0
  13. package/dist/src/cjpegb.d.ts +19 -0
  14. package/dist/src/cjpegb.js +47 -0
  15. package/dist/src/cjpegl.d.ts +24 -0
  16. package/dist/src/cjpegl.js +54 -0
  17. package/dist/src/cwsq.d.ts +18 -0
  18. package/dist/src/cwsq.js +44 -0
  19. package/dist/src/datainfo.d.ts +8 -0
  20. package/dist/src/datainfo.js +20 -0
  21. package/dist/src/djp2k.d.ts +20 -0
  22. package/dist/src/djp2k.js +53 -0
  23. package/dist/src/djpeg.d.ts +25 -0
  24. package/dist/src/djpeg.js +63 -0
  25. package/dist/src/djpegb.d.ts +14 -0
  26. package/dist/src/djpegb.js +39 -0
  27. package/dist/src/djpegl.d.ts +14 -0
  28. package/dist/src/djpegl.js +39 -0
  29. package/dist/src/dwsq.d.ts +13 -0
  30. package/dist/src/dwsq.js +36 -0
  31. package/dist/src/index.d.ts +26 -0
  32. package/dist/src/index.js +57 -0
  33. package/dist/src/intr2not.d.ts +22 -0
  34. package/dist/src/intr2not.js +48 -0
  35. package/dist/src/jpegtran.d.ts +24 -0
  36. package/dist/src/jpegtran.js +88 -0
  37. package/dist/src/mindtct.d.ts +24 -0
  38. package/dist/src/mindtct.js +45 -0
  39. package/dist/src/nbis-runtime.d.ts +23 -0
  40. package/dist/src/nbis-runtime.js +111 -0
  41. package/dist/src/nfiq.d.ts +36 -0
  42. package/dist/src/nfiq.js +93 -0
  43. package/dist/src/not2intr.d.ts +22 -0
  44. package/dist/src/not2intr.js +48 -0
  45. package/dist/src/rdjpgcom.d.ts +11 -0
  46. package/dist/src/rdjpgcom.js +27 -0
  47. package/dist/src/rdwsqcom.d.ts +8 -0
  48. package/dist/src/rdwsqcom.js +20 -0
  49. package/dist/src/rgb2ycc.d.ts +23 -0
  50. package/dist/src/rgb2ycc.js +51 -0
  51. package/dist/src/wrjpgcom.d.ts +20 -0
  52. package/dist/src/wrjpgcom.js +41 -0
  53. package/dist/src/wrwsqcom.d.ts +15 -0
  54. package/dist/src/wrwsqcom.js +27 -0
  55. package/dist/src/ycc2rgb.d.ts +23 -0
  56. package/dist/src/ycc2rgb.js +51 -0
  57. package/dist/test/nbis-versions.test.d.ts +1 -0
  58. package/dist/test/nbis-versions.test.js +37 -0
  59. package/libnbis/nbis_arm64_darwin/bin/an2k2iaf +0 -0
  60. package/libnbis/nbis_arm64_darwin/bin/an2k2txt +0 -0
  61. package/libnbis/nbis_arm64_darwin/bin/an2ktool +0 -0
  62. package/libnbis/nbis_arm64_darwin/bin/asc2bin +0 -0
  63. package/libnbis/nbis_arm64_darwin/bin/bin2asc +0 -0
  64. package/libnbis/nbis_arm64_darwin/bin/bozorth3 +0 -0
  65. package/libnbis/nbis_arm64_darwin/bin/chgdesc +0 -0
  66. package/libnbis/nbis_arm64_darwin/bin/chkan2k +0 -0
  67. package/libnbis/nbis_arm64_darwin/bin/cjp2k +0 -0
  68. package/libnbis/nbis_arm64_darwin/bin/cjpeg +0 -0
  69. package/libnbis/nbis_arm64_darwin/bin/cjpegb +0 -0
  70. package/libnbis/nbis_arm64_darwin/bin/cjpegl +0 -0
  71. package/libnbis/nbis_arm64_darwin/bin/cmbmcs +0 -0
  72. package/libnbis/nbis_arm64_darwin/bin/cropcoeff +0 -0
  73. package/libnbis/nbis_arm64_darwin/bin/cwsq +0 -0
  74. package/libnbis/nbis_arm64_darwin/bin/datainfo +0 -0
  75. package/libnbis/nbis_arm64_darwin/bin/diffbyts +0 -0
  76. package/libnbis/nbis_arm64_darwin/bin/djp2k +0 -0
  77. package/libnbis/nbis_arm64_darwin/bin/djpeg +0 -0
  78. package/libnbis/nbis_arm64_darwin/bin/djpegb +0 -0
  79. package/libnbis/nbis_arm64_darwin/bin/djpegl +0 -0
  80. package/libnbis/nbis_arm64_darwin/bin/djpeglsd +0 -0
  81. package/libnbis/nbis_arm64_darwin/bin/dlwsqcom +0 -0
  82. package/libnbis/nbis_arm64_darwin/bin/dpyan2k +0 -0
  83. package/libnbis/nbis_arm64_darwin/bin/dpyimage +0 -0
  84. package/libnbis/nbis_arm64_darwin/bin/dwsq +0 -0
  85. package/libnbis/nbis_arm64_darwin/bin/dwsq14 +0 -0
  86. package/libnbis/nbis_arm64_darwin/bin/eva_evt +0 -0
  87. package/libnbis/nbis_arm64_darwin/bin/fing2pat +0 -0
  88. package/libnbis/nbis_arm64_darwin/bin/fixwts +0 -0
  89. package/libnbis/nbis_arm64_darwin/bin/histogen +0 -0
  90. package/libnbis/nbis_arm64_darwin/bin/iaf2an2k +0 -0
  91. package/libnbis/nbis_arm64_darwin/bin/intr2not +0 -0
  92. package/libnbis/nbis_arm64_darwin/bin/jpegtran +0 -0
  93. package/libnbis/nbis_arm64_darwin/bin/kltran +0 -0
  94. package/libnbis/nbis_arm64_darwin/bin/lintran +0 -0
  95. package/libnbis/nbis_arm64_darwin/bin/meancov +0 -0
  96. package/libnbis/nbis_arm64_darwin/bin/mindtct +0 -0
  97. package/libnbis/nbis_arm64_darwin/bin/mkoas +0 -0
  98. package/libnbis/nbis_arm64_darwin/bin/mktran +0 -0
  99. package/libnbis/nbis_arm64_darwin/bin/mlp +0 -0
  100. package/libnbis/nbis_arm64_darwin/bin/mlpfeats +0 -0
  101. package/libnbis/nbis_arm64_darwin/bin/nfiq +0 -0
  102. package/libnbis/nbis_arm64_darwin/bin/nfseg +0 -0
  103. package/libnbis/nbis_arm64_darwin/bin/not2intr +0 -0
  104. package/libnbis/nbis_arm64_darwin/bin/oas2pics +0 -0
  105. package/libnbis/nbis_arm64_darwin/bin/optosf +0 -0
  106. package/libnbis/nbis_arm64_darwin/bin/optrws +0 -0
  107. package/libnbis/nbis_arm64_darwin/bin/optrwsgw +0 -0
  108. package/libnbis/nbis_arm64_darwin/bin/pcasys +0 -0
  109. package/libnbis/nbis_arm64_darwin/bin/pcasysx +0 -0
  110. package/libnbis/nbis_arm64_darwin/bin/rdimgwh +0 -0
  111. package/libnbis/nbis_arm64_darwin/bin/rdjpgcom +0 -0
  112. package/libnbis/nbis_arm64_darwin/bin/rdwsqcom +0 -0
  113. package/libnbis/nbis_arm64_darwin/bin/rgb2ycc +0 -0
  114. package/libnbis/nbis_arm64_darwin/bin/rwpics +0 -0
  115. package/libnbis/nbis_arm64_darwin/bin/sd_rfmt +0 -0
  116. package/libnbis/nbis_arm64_darwin/bin/stackms +0 -0
  117. package/libnbis/nbis_arm64_darwin/bin/txt2an2k +0 -0
  118. package/libnbis/nbis_arm64_darwin/bin/wrjpgcom +0 -0
  119. package/libnbis/nbis_arm64_darwin/bin/wrwsqcom +0 -0
  120. package/libnbis/nbis_arm64_darwin/bin/ycc2rgb +0 -0
  121. package/libnbis/nbis_arm64_darwin/bin/znormdat +0 -0
  122. package/libnbis/nbis_arm64_darwin/bin/znormpat +0 -0
  123. package/libnbis/nbis_arm64_darwin/include/an2k.h +885 -0
  124. package/libnbis/nbis_arm64_darwin/include/an2k.h.src +885 -0
  125. package/libnbis/nbis_arm64_darwin/include/an2kseg.h +77 -0
  126. package/libnbis/nbis_arm64_darwin/include/binops.h +94 -0
  127. package/libnbis/nbis_arm64_darwin/include/bitmasks.h +50 -0
  128. package/libnbis/nbis_arm64_darwin/include/bits.h +63 -0
  129. package/libnbis/nbis_arm64_darwin/include/bozorth.h +295 -0
  130. package/libnbis/nbis_arm64_darwin/include/bz_array.h +141 -0
  131. package/libnbis/nbis_arm64_darwin/include/cderror.h +132 -0
  132. package/libnbis/nbis_arm64_darwin/include/cdjpeg.h +184 -0
  133. package/libnbis/nbis_arm64_darwin/include/chkan2k.h +338 -0
  134. package/libnbis/nbis_arm64_darwin/include/computil.h +53 -0
  135. package/libnbis/nbis_arm64_darwin/include/crc32.h +441 -0
  136. package/libnbis/nbis_arm64_darwin/include/datafile.h +95 -0
  137. package/libnbis/nbis_arm64_darwin/include/dataio.h +70 -0
  138. package/libnbis/nbis_arm64_darwin/include/deflate.h +331 -0
  139. package/libnbis/nbis_arm64_darwin/include/defs.h +82 -0
  140. package/libnbis/nbis_arm64_darwin/include/dilate.h +57 -0
  141. package/libnbis/nbis_arm64_darwin/include/display.h +255 -0
  142. package/libnbis/nbis_arm64_darwin/include/dpy.h +71 -0
  143. package/libnbis/nbis_arm64_darwin/include/dpyan2k.h +72 -0
  144. package/libnbis/nbis_arm64_darwin/include/dpydepth.h +78 -0
  145. package/libnbis/nbis_arm64_darwin/include/dpyimage.h +110 -0
  146. package/libnbis/nbis_arm64_darwin/include/dpyx.h +107 -0
  147. package/libnbis/nbis_arm64_darwin/include/event.h +62 -0
  148. package/libnbis/nbis_arm64_darwin/include/f2c.h +271 -0
  149. package/libnbis/nbis_arm64_darwin/include/fet.h +96 -0
  150. package/libnbis/nbis_arm64_darwin/include/findblob.h +116 -0
  151. package/libnbis/nbis_arm64_darwin/include/fixup.h +52 -0
  152. package/libnbis/nbis_arm64_darwin/include/gr_cm.h +51 -0
  153. package/libnbis/nbis_arm64_darwin/include/grp4comp.h +185 -0
  154. package/libnbis/nbis_arm64_darwin/include/grp4deco.h +157 -0
  155. package/libnbis/nbis_arm64_darwin/include/grphcs.h +91 -0
  156. package/libnbis/nbis_arm64_darwin/include/histogen.h +99 -0
  157. package/libnbis/nbis_arm64_darwin/include/ihead.h +169 -0
  158. package/libnbis/nbis_arm64_darwin/include/img_io.h +89 -0
  159. package/libnbis/nbis_arm64_darwin/include/imgavg.h +52 -0
  160. package/libnbis/nbis_arm64_darwin/include/imgboost.h +55 -0
  161. package/libnbis/nbis_arm64_darwin/include/imgdec.h +58 -0
  162. package/libnbis/nbis_arm64_darwin/include/imgdecod.h +65 -0
  163. package/libnbis/nbis_arm64_darwin/include/imgsnip.h +56 -0
  164. package/libnbis/nbis_arm64_darwin/include/imgtype.h +85 -0
  165. package/libnbis/nbis_arm64_darwin/include/imgutil.h +80 -0
  166. package/libnbis/nbis_arm64_darwin/include/inffast.h +11 -0
  167. package/libnbis/nbis_arm64_darwin/include/inffixed.h +94 -0
  168. package/libnbis/nbis_arm64_darwin/include/inflate.h +115 -0
  169. package/libnbis/nbis_arm64_darwin/include/inftrees.h +55 -0
  170. package/libnbis/nbis_arm64_darwin/include/intrlv.h +68 -0
  171. package/libnbis/nbis_arm64_darwin/include/invbyte.h +45 -0
  172. package/libnbis/nbis_arm64_darwin/include/ioutil.h +76 -0
  173. package/libnbis/nbis_arm64_darwin/include/jchuff.h +47 -0
  174. package/libnbis/nbis_arm64_darwin/include/jconfig.h +89 -0
  175. package/libnbis/nbis_arm64_darwin/include/jdct.h +176 -0
  176. package/libnbis/nbis_arm64_darwin/include/jdhuff.h +201 -0
  177. package/libnbis/nbis_arm64_darwin/include/jerror.h +335 -0
  178. package/libnbis/nbis_arm64_darwin/include/jinclude.h +91 -0
  179. package/libnbis/nbis_arm64_darwin/include/jmemsys.h +198 -0
  180. package/libnbis/nbis_arm64_darwin/include/jmorecfg.h +407 -0
  181. package/libnbis/nbis_arm64_darwin/include/jpeg2k.h +95 -0
  182. package/libnbis/nbis_arm64_darwin/include/jpegb.h +95 -0
  183. package/libnbis/nbis_arm64_darwin/include/jpegint.h +392 -0
  184. package/libnbis/nbis_arm64_darwin/include/jpegl.h +303 -0
  185. package/libnbis/nbis_arm64_darwin/include/jpeglib.h +1096 -0
  186. package/libnbis/nbis_arm64_darwin/include/jpeglsd4.h +55 -0
  187. package/libnbis/nbis_arm64_darwin/include/jversion.h +14 -0
  188. package/libnbis/nbis_arm64_darwin/include/lfs.h +1249 -0
  189. package/libnbis/nbis_arm64_darwin/include/little.h +81 -0
  190. package/libnbis/nbis_arm64_darwin/include/log.h +69 -0
  191. package/libnbis/nbis_arm64_darwin/include/masks.h +45 -0
  192. package/libnbis/nbis_arm64_darwin/include/memalloc.h +88 -0
  193. package/libnbis/nbis_arm64_darwin/include/mlp/fmt_msgs.h +57 -0
  194. package/libnbis/nbis_arm64_darwin/include/mlp/get_phr.h +54 -0
  195. package/libnbis/nbis_arm64_darwin/include/mlp/lbfgs_dr.h +51 -0
  196. package/libnbis/nbis_arm64_darwin/include/mlp/lims.h +51 -0
  197. package/libnbis/nbis_arm64_darwin/include/mlp/macros.h +53 -0
  198. package/libnbis/nbis_arm64_darwin/include/mlp/mtch_pnm.h +61 -0
  199. package/libnbis/nbis_arm64_darwin/include/mlp/rd_words.h +51 -0
  200. package/libnbis/nbis_arm64_darwin/include/mlp/scg.h +55 -0
  201. package/libnbis/nbis_arm64_darwin/include/mlp/tda.h +69 -0
  202. package/libnbis/nbis_arm64_darwin/include/mlp.h +545 -0
  203. package/libnbis/nbis_arm64_darwin/include/mlpcla.h +77 -0
  204. package/libnbis/nbis_arm64_darwin/include/morph.h +60 -0
  205. package/libnbis/nbis_arm64_darwin/include/mytime.h +106 -0
  206. package/libnbis/nbis_arm64_darwin/include/nfiq.h +100 -0
  207. package/libnbis/nbis_arm64_darwin/include/nfseg.h +154 -0
  208. package/libnbis/nbis_arm64_darwin/include/nistcom.h +108 -0
  209. package/libnbis/nbis_arm64_darwin/include/openjp2/bio.h +134 -0
  210. package/libnbis/nbis_arm64_darwin/include/openjp2/cidx_manager.h +68 -0
  211. package/libnbis/nbis_arm64_darwin/include/openjp2/cio.h +399 -0
  212. package/libnbis/nbis_arm64_darwin/include/openjp2/dwt.h +122 -0
  213. package/libnbis/nbis_arm64_darwin/include/openjp2/event.h +102 -0
  214. package/libnbis/nbis_arm64_darwin/include/openjp2/function_list.h +131 -0
  215. package/libnbis/nbis_arm64_darwin/include/openjp2/image.h +68 -0
  216. package/libnbis/nbis_arm64_darwin/include/openjp2/indexbox_manager.h +148 -0
  217. package/libnbis/nbis_arm64_darwin/include/openjp2/invert.h +64 -0
  218. package/libnbis/nbis_arm64_darwin/include/openjp2/j2k.h +842 -0
  219. package/libnbis/nbis_arm64_darwin/include/openjp2/jp2.h +500 -0
  220. package/libnbis/nbis_arm64_darwin/include/openjp2/mct.h +155 -0
  221. package/libnbis/nbis_arm64_darwin/include/openjp2/mqc.h +207 -0
  222. package/libnbis/nbis_arm64_darwin/include/openjp2/openjpeg.h +1563 -0
  223. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_clock.h +59 -0
  224. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_codec.h +165 -0
  225. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_includes.h +180 -0
  226. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_intmath.h +178 -0
  227. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_inttypes.h +48 -0
  228. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_malloc.h +185 -0
  229. package/libnbis/nbis_arm64_darwin/include/openjp2/opj_stdint.h +52 -0
  230. package/libnbis/nbis_arm64_darwin/include/openjp2/pi.h +188 -0
  231. package/libnbis/nbis_arm64_darwin/include/openjp2/raw.h +106 -0
  232. package/libnbis/nbis_arm64_darwin/include/openjp2/t1.h +163 -0
  233. package/libnbis/nbis_arm64_darwin/include/openjp2/t1_luts.h +143 -0
  234. package/libnbis/nbis_arm64_darwin/include/openjp2/t2.h +133 -0
  235. package/libnbis/nbis_arm64_darwin/include/openjp2/tcd.h +354 -0
  236. package/libnbis/nbis_arm64_darwin/include/openjp2/tgt.h +146 -0
  237. package/libnbis/nbis_arm64_darwin/include/optrws_r.h +59 -0
  238. package/libnbis/nbis_arm64_darwin/include/parsargs.h +60 -0
  239. package/libnbis/nbis_arm64_darwin/include/pca.h +262 -0
  240. package/libnbis/nbis_arm64_darwin/include/png.h +3544 -0
  241. package/libnbis/nbis_arm64_darwin/include/png_dec.h +74 -0
  242. package/libnbis/nbis_arm64_darwin/include/pngconf.h +1487 -0
  243. package/libnbis/nbis_arm64_darwin/include/rgb_ycc.h +85 -0
  244. package/libnbis/nbis_arm64_darwin/include/sunrast.h +97 -0
  245. package/libnbis/nbis_arm64_darwin/include/swap.h +137 -0
  246. package/libnbis/nbis_arm64_darwin/include/swapbyte.h +53 -0
  247. package/libnbis/nbis_arm64_darwin/include/table.h +58 -0
  248. package/libnbis/nbis_arm64_darwin/include/thresh.h +51 -0
  249. package/libnbis/nbis_arm64_darwin/include/transupp.h +135 -0
  250. package/libnbis/nbis_arm64_darwin/include/trees.h +128 -0
  251. package/libnbis/nbis_arm64_darwin/include/usagemcs.h +93 -0
  252. package/libnbis/nbis_arm64_darwin/include/usebsd.h +78 -0
  253. package/libnbis/nbis_arm64_darwin/include/util.h +98 -0
  254. package/libnbis/nbis_arm64_darwin/include/version.h +55 -0
  255. package/libnbis/nbis_arm64_darwin/include/wsq.h +340 -0
  256. package/libnbis/nbis_arm64_darwin/include/zconf.h +332 -0
  257. package/libnbis/nbis_arm64_darwin/include/zconf.in.h +332 -0
  258. package/libnbis/nbis_arm64_darwin/include/zlib.h +1357 -0
  259. package/libnbis/nbis_arm64_darwin/include/zutil.h +269 -0
  260. package/libnbis/nbis_arm64_darwin/lib/libnbis.a +0 -0
  261. package/libnbis/nbis_arm64_darwin/man/man1/an2k2iaf.1 +69 -0
  262. package/libnbis/nbis_arm64_darwin/man/man1/an2k2txt.1 +129 -0
  263. package/libnbis/nbis_arm64_darwin/man/man1/an2ktool.1 +267 -0
  264. package/libnbis/nbis_arm64_darwin/man/man1/asc2bin.1 +38 -0
  265. package/libnbis/nbis_arm64_darwin/man/man1/bin2asc.1 +39 -0
  266. package/libnbis/nbis_arm64_darwin/man/man1/bozorth3.1 +246 -0
  267. package/libnbis/nbis_arm64_darwin/man/man1/chgdesc.1 +54 -0
  268. package/libnbis/nbis_arm64_darwin/man/man1/chkan2k.1 +426 -0
  269. package/libnbis/nbis_arm64_darwin/man/man1/cjp2k.1 +20 -0
  270. package/libnbis/nbis_arm64_darwin/man/man1/cjpeg.1 +296 -0
  271. package/libnbis/nbis_arm64_darwin/man/man1/cjpegb.1 +188 -0
  272. package/libnbis/nbis_arm64_darwin/man/man1/cjpegl.1 +234 -0
  273. package/libnbis/nbis_arm64_darwin/man/man1/cmbmcs.1 +85 -0
  274. package/libnbis/nbis_arm64_darwin/man/man1/cropcoeff.1 +70 -0
  275. package/libnbis/nbis_arm64_darwin/man/man1/cwsq.1 +145 -0
  276. package/libnbis/nbis_arm64_darwin/man/man1/datainfo.1 +59 -0
  277. package/libnbis/nbis_arm64_darwin/man/man1/diffbyts.1 +71 -0
  278. package/libnbis/nbis_arm64_darwin/man/man1/djp2k.1 +21 -0
  279. package/libnbis/nbis_arm64_darwin/man/man1/djpeg.1 +257 -0
  280. package/libnbis/nbis_arm64_darwin/man/man1/djpegb.1 +140 -0
  281. package/libnbis/nbis_arm64_darwin/man/man1/djpegl.1 +143 -0
  282. package/libnbis/nbis_arm64_darwin/man/man1/djpeglsd.1 +158 -0
  283. package/libnbis/nbis_arm64_darwin/man/man1/dpyan2k.1 +179 -0
  284. package/libnbis/nbis_arm64_darwin/man/man1/dpyimage.1 +233 -0
  285. package/libnbis/nbis_arm64_darwin/man/man1/dwsq.1 +112 -0
  286. package/libnbis/nbis_arm64_darwin/man/man1/dwsq14.1 +120 -0
  287. package/libnbis/nbis_arm64_darwin/man/man1/eva_evt.1 +77 -0
  288. package/libnbis/nbis_arm64_darwin/man/man1/fing2pat.1 +61 -0
  289. package/libnbis/nbis_arm64_darwin/man/man1/fixwts.1 +46 -0
  290. package/libnbis/nbis_arm64_darwin/man/man1/histogen.1 +67 -0
  291. package/libnbis/nbis_arm64_darwin/man/man1/iaf2an2k.1 +63 -0
  292. package/libnbis/nbis_arm64_darwin/man/man1/imgcmp.1 +66 -0
  293. package/libnbis/nbis_arm64_darwin/man/man1/imginfo.1 +43 -0
  294. package/libnbis/nbis_arm64_darwin/man/man1/intr2not.1 +147 -0
  295. package/libnbis/nbis_arm64_darwin/man/man1/jp2codec.1 +240 -0
  296. package/libnbis/nbis_arm64_darwin/man/man1/jpegtran.1 +242 -0
  297. package/libnbis/nbis_arm64_darwin/man/man1/kltran.1 +92 -0
  298. package/libnbis/nbis_arm64_darwin/man/man1/lintran.1 +92 -0
  299. package/libnbis/nbis_arm64_darwin/man/man1/meancov.1 +92 -0
  300. package/libnbis/nbis_arm64_darwin/man/man1/mindtct.1 +240 -0
  301. package/libnbis/nbis_arm64_darwin/man/man1/mkoas.1 +194 -0
  302. package/libnbis/nbis_arm64_darwin/man/man1/mktran.1 +72 -0
  303. package/libnbis/nbis_arm64_darwin/man/man1/mlp.1 +680 -0
  304. package/libnbis/nbis_arm64_darwin/man/man1/mlpfeats.1 +52 -0
  305. package/libnbis/nbis_arm64_darwin/man/man1/nfiq.1 +131 -0
  306. package/libnbis/nbis_arm64_darwin/man/man1/nfseg.1 +232 -0
  307. package/libnbis/nbis_arm64_darwin/man/man1/not2intr.1 +150 -0
  308. package/libnbis/nbis_arm64_darwin/man/man1/oas2pics.1 +55 -0
  309. package/libnbis/nbis_arm64_darwin/man/man1/optosf.1 +131 -0
  310. package/libnbis/nbis_arm64_darwin/man/man1/optrws.1 +213 -0
  311. package/libnbis/nbis_arm64_darwin/man/man1/pcasys.1 +244 -0
  312. package/libnbis/nbis_arm64_darwin/man/man1/pcasysx.1 +149 -0
  313. package/libnbis/nbis_arm64_darwin/man/man1/rdimgwh.1 +74 -0
  314. package/libnbis/nbis_arm64_darwin/man/man1/rdjpgcom.1 +57 -0
  315. package/libnbis/nbis_arm64_darwin/man/man1/rdwsqcom.1 +43 -0
  316. package/libnbis/nbis_arm64_darwin/man/man1/record_selector.1 +386 -0
  317. package/libnbis/nbis_arm64_darwin/man/man1/rgb2ycc.1 +175 -0
  318. package/libnbis/nbis_arm64_darwin/man/man1/rwpics.1 +104 -0
  319. package/libnbis/nbis_arm64_darwin/man/man1/sd_rfmt.1 +88 -0
  320. package/libnbis/nbis_arm64_darwin/man/man1/stackms.1 +68 -0
  321. package/libnbis/nbis_arm64_darwin/man/man1/txt2an2k.1 +130 -0
  322. package/libnbis/nbis_arm64_darwin/man/man1/wrjpgcom.1 +107 -0
  323. package/libnbis/nbis_arm64_darwin/man/man1/wrwsqcom.1 +51 -0
  324. package/libnbis/nbis_arm64_darwin/man/man1/ycc2rgb.1 +183 -0
  325. package/libnbis/nbis_arm64_darwin/man/man1/znormdat.1 +50 -0
  326. package/libnbis/nbis_arm64_darwin/man/man1/znormpat.1 +51 -0
  327. package/libnbis/nbis_arm64_darwin/nbis/an2k/chkan2k/default.conf +451 -0
  328. package/libnbis/nbis_arm64_darwin/nbis/an2k/chkan2k/nist-samples.conf +39 -0
  329. package/libnbis/nbis_arm64_darwin/nbis/nfiq/spec +428 -0
  330. package/libnbis/nbis_arm64_darwin/nbis/nfiq/znorm.dat +11 -0
  331. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/a.pct +0 -0
  332. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/a_c.pct +0 -0
  333. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/biga.pct +0 -0
  334. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/bigl.pct +0 -0
  335. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/bigr.pct +0 -0
  336. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/bigs.pct +0 -0
  337. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/bigt.pct +0 -0
  338. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/bigw.pct +0 -0
  339. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/conf.pct +0 -0
  340. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/digits.pct +0 -0
  341. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/h_c.pct +0 -0
  342. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/l.pct +0 -0
  343. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/note.txt +2 -0
  344. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/pcasys.pct +0 -0
  345. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/point.pct +0 -0
  346. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/r.pct +0 -0
  347. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/s.pct +0 -0
  348. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/sub_0.pct +0 -0
  349. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/sub_1.pct +0 -0
  350. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/t.pct +0 -0
  351. package/libnbis/nbis_arm64_darwin/nbis/pcasys/images/w.pct +0 -0
  352. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/all.txt +2700 -0
  353. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/all_with_class.txt +2700 -0
  354. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/first10.txt +10 -0
  355. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/first20.txt +20 -0
  356. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/first30.txt +30 -0
  357. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/first50.txt +50 -0
  358. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/mkoas.prs +15 -0
  359. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/note.txt +31 -0
  360. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/oas.prs +54 -0
  361. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/optosf.prs +29 -0
  362. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/optrws.prs +57 -0
  363. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/pcasys.mlp +120 -0
  364. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/pcasys.pnn +120 -0
  365. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/pcasys.prs +120 -0
  366. package/libnbis/nbis_arm64_darwin/nbis/pcasys/parms/pcasysx.prs +25 -0
  367. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/mlp/mlp_tmat.bin +0 -0
  368. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/mlp/mlp_wts.bin +3523 -0
  369. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/mlp/note.txt +7 -0
  370. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/pnn/note.txt +6 -0
  371. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/pnn/pnn_tmat.bin +0 -0
  372. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/pnn/procls.asc +24311 -0
  373. package/libnbis/nbis_arm64_darwin/nbis/pcasys/weights/pnn/profvs.bin +0 -0
  374. package/libnbis/nbis_x86-64_linux/bin/an2k2iaf +0 -0
  375. package/libnbis/nbis_x86-64_linux/bin/an2k2txt +0 -0
  376. package/libnbis/nbis_x86-64_linux/bin/an2ktool +0 -0
  377. package/libnbis/nbis_x86-64_linux/bin/asc2bin +0 -0
  378. package/libnbis/nbis_x86-64_linux/bin/bin2asc +0 -0
  379. package/libnbis/nbis_x86-64_linux/bin/bozorth3 +0 -0
  380. package/libnbis/nbis_x86-64_linux/bin/chgdesc +0 -0
  381. package/libnbis/nbis_x86-64_linux/bin/chkan2k +0 -0
  382. package/libnbis/nbis_x86-64_linux/bin/cjp2k +0 -0
  383. package/libnbis/nbis_x86-64_linux/bin/cjpeg +0 -0
  384. package/libnbis/nbis_x86-64_linux/bin/cjpegb +0 -0
  385. package/libnbis/nbis_x86-64_linux/bin/cjpegl +0 -0
  386. package/libnbis/nbis_x86-64_linux/bin/cmbmcs +0 -0
  387. package/libnbis/nbis_x86-64_linux/bin/cropcoeff +0 -0
  388. package/libnbis/nbis_x86-64_linux/bin/cwsq +0 -0
  389. package/libnbis/nbis_x86-64_linux/bin/datainfo +0 -0
  390. package/libnbis/nbis_x86-64_linux/bin/diffbyts +0 -0
  391. package/libnbis/nbis_x86-64_linux/bin/djp2k +0 -0
  392. package/libnbis/nbis_x86-64_linux/bin/djpeg +0 -0
  393. package/libnbis/nbis_x86-64_linux/bin/djpegb +0 -0
  394. package/libnbis/nbis_x86-64_linux/bin/djpegl +0 -0
  395. package/libnbis/nbis_x86-64_linux/bin/djpeglsd +0 -0
  396. package/libnbis/nbis_x86-64_linux/bin/dlwsqcom +0 -0
  397. package/libnbis/nbis_x86-64_linux/bin/dpyan2k +0 -0
  398. package/libnbis/nbis_x86-64_linux/bin/dpyimage +0 -0
  399. package/libnbis/nbis_x86-64_linux/bin/dwsq +0 -0
  400. package/libnbis/nbis_x86-64_linux/bin/dwsq14 +0 -0
  401. package/libnbis/nbis_x86-64_linux/bin/eva_evt +0 -0
  402. package/libnbis/nbis_x86-64_linux/bin/fing2pat +0 -0
  403. package/libnbis/nbis_x86-64_linux/bin/fixwts +0 -0
  404. package/libnbis/nbis_x86-64_linux/bin/histogen +0 -0
  405. package/libnbis/nbis_x86-64_linux/bin/iaf2an2k +0 -0
  406. package/libnbis/nbis_x86-64_linux/bin/intr2not +0 -0
  407. package/libnbis/nbis_x86-64_linux/bin/jpegtran +0 -0
  408. package/libnbis/nbis_x86-64_linux/bin/kltran +0 -0
  409. package/libnbis/nbis_x86-64_linux/bin/lintran +0 -0
  410. package/libnbis/nbis_x86-64_linux/bin/meancov +0 -0
  411. package/libnbis/nbis_x86-64_linux/bin/mindtct +0 -0
  412. package/libnbis/nbis_x86-64_linux/bin/mkoas +0 -0
  413. package/libnbis/nbis_x86-64_linux/bin/mktran +0 -0
  414. package/libnbis/nbis_x86-64_linux/bin/mlp +0 -0
  415. package/libnbis/nbis_x86-64_linux/bin/mlpfeats +0 -0
  416. package/libnbis/nbis_x86-64_linux/bin/nfiq +0 -0
  417. package/libnbis/nbis_x86-64_linux/bin/nfseg +0 -0
  418. package/libnbis/nbis_x86-64_linux/bin/not2intr +0 -0
  419. package/libnbis/nbis_x86-64_linux/bin/oas2pics +0 -0
  420. package/libnbis/nbis_x86-64_linux/bin/optosf +0 -0
  421. package/libnbis/nbis_x86-64_linux/bin/optrws +0 -0
  422. package/libnbis/nbis_x86-64_linux/bin/optrwsgw +0 -0
  423. package/libnbis/nbis_x86-64_linux/bin/pcasys +0 -0
  424. package/libnbis/nbis_x86-64_linux/bin/pcasysx +0 -0
  425. package/libnbis/nbis_x86-64_linux/bin/rdimgwh +0 -0
  426. package/libnbis/nbis_x86-64_linux/bin/rdjpgcom +0 -0
  427. package/libnbis/nbis_x86-64_linux/bin/rdwsqcom +0 -0
  428. package/libnbis/nbis_x86-64_linux/bin/rgb2ycc +0 -0
  429. package/libnbis/nbis_x86-64_linux/bin/rwpics +0 -0
  430. package/libnbis/nbis_x86-64_linux/bin/sd_rfmt +0 -0
  431. package/libnbis/nbis_x86-64_linux/bin/stackms +0 -0
  432. package/libnbis/nbis_x86-64_linux/bin/txt2an2k +0 -0
  433. package/libnbis/nbis_x86-64_linux/bin/wrjpgcom +0 -0
  434. package/libnbis/nbis_x86-64_linux/bin/wrwsqcom +0 -0
  435. package/libnbis/nbis_x86-64_linux/bin/ycc2rgb +0 -0
  436. package/libnbis/nbis_x86-64_linux/bin/znormdat +0 -0
  437. package/libnbis/nbis_x86-64_linux/bin/znormpat +0 -0
  438. package/libnbis/nbis_x86-64_linux/include/an2k.h +885 -0
  439. package/libnbis/nbis_x86-64_linux/include/an2k.h.src +885 -0
  440. package/libnbis/nbis_x86-64_linux/include/an2kseg.h +77 -0
  441. package/libnbis/nbis_x86-64_linux/include/binops.h +94 -0
  442. package/libnbis/nbis_x86-64_linux/include/bitmasks.h +50 -0
  443. package/libnbis/nbis_x86-64_linux/include/bits.h +63 -0
  444. package/libnbis/nbis_x86-64_linux/include/bozorth.h +295 -0
  445. package/libnbis/nbis_x86-64_linux/include/bz_array.h +141 -0
  446. package/libnbis/nbis_x86-64_linux/include/cderror.h +132 -0
  447. package/libnbis/nbis_x86-64_linux/include/cdjpeg.h +184 -0
  448. package/libnbis/nbis_x86-64_linux/include/chkan2k.h +338 -0
  449. package/libnbis/nbis_x86-64_linux/include/computil.h +53 -0
  450. package/libnbis/nbis_x86-64_linux/include/crc32.h +441 -0
  451. package/libnbis/nbis_x86-64_linux/include/datafile.h +95 -0
  452. package/libnbis/nbis_x86-64_linux/include/dataio.h +70 -0
  453. package/libnbis/nbis_x86-64_linux/include/deflate.h +331 -0
  454. package/libnbis/nbis_x86-64_linux/include/defs.h +82 -0
  455. package/libnbis/nbis_x86-64_linux/include/dilate.h +57 -0
  456. package/libnbis/nbis_x86-64_linux/include/display.h +255 -0
  457. package/libnbis/nbis_x86-64_linux/include/dpy.h +71 -0
  458. package/libnbis/nbis_x86-64_linux/include/dpyan2k.h +72 -0
  459. package/libnbis/nbis_x86-64_linux/include/dpydepth.h +78 -0
  460. package/libnbis/nbis_x86-64_linux/include/dpyimage.h +110 -0
  461. package/libnbis/nbis_x86-64_linux/include/dpyx.h +107 -0
  462. package/libnbis/nbis_x86-64_linux/include/event.h +62 -0
  463. package/libnbis/nbis_x86-64_linux/include/f2c.h +271 -0
  464. package/libnbis/nbis_x86-64_linux/include/fet.h +96 -0
  465. package/libnbis/nbis_x86-64_linux/include/findblob.h +116 -0
  466. package/libnbis/nbis_x86-64_linux/include/fixup.h +52 -0
  467. package/libnbis/nbis_x86-64_linux/include/gr_cm.h +51 -0
  468. package/libnbis/nbis_x86-64_linux/include/grp4comp.h +185 -0
  469. package/libnbis/nbis_x86-64_linux/include/grp4deco.h +157 -0
  470. package/libnbis/nbis_x86-64_linux/include/grphcs.h +91 -0
  471. package/libnbis/nbis_x86-64_linux/include/histogen.h +99 -0
  472. package/libnbis/nbis_x86-64_linux/include/ihead.h +169 -0
  473. package/libnbis/nbis_x86-64_linux/include/img_io.h +89 -0
  474. package/libnbis/nbis_x86-64_linux/include/imgavg.h +52 -0
  475. package/libnbis/nbis_x86-64_linux/include/imgboost.h +55 -0
  476. package/libnbis/nbis_x86-64_linux/include/imgdec.h +58 -0
  477. package/libnbis/nbis_x86-64_linux/include/imgdecod.h +65 -0
  478. package/libnbis/nbis_x86-64_linux/include/imgsnip.h +56 -0
  479. package/libnbis/nbis_x86-64_linux/include/imgtype.h +85 -0
  480. package/libnbis/nbis_x86-64_linux/include/imgutil.h +80 -0
  481. package/libnbis/nbis_x86-64_linux/include/inffast.h +11 -0
  482. package/libnbis/nbis_x86-64_linux/include/inffixed.h +94 -0
  483. package/libnbis/nbis_x86-64_linux/include/inflate.h +115 -0
  484. package/libnbis/nbis_x86-64_linux/include/inftrees.h +55 -0
  485. package/libnbis/nbis_x86-64_linux/include/intrlv.h +68 -0
  486. package/libnbis/nbis_x86-64_linux/include/invbyte.h +45 -0
  487. package/libnbis/nbis_x86-64_linux/include/ioutil.h +76 -0
  488. package/libnbis/nbis_x86-64_linux/include/jchuff.h +47 -0
  489. package/libnbis/nbis_x86-64_linux/include/jconfig.h +89 -0
  490. package/libnbis/nbis_x86-64_linux/include/jdct.h +176 -0
  491. package/libnbis/nbis_x86-64_linux/include/jdhuff.h +201 -0
  492. package/libnbis/nbis_x86-64_linux/include/jerror.h +335 -0
  493. package/libnbis/nbis_x86-64_linux/include/jinclude.h +91 -0
  494. package/libnbis/nbis_x86-64_linux/include/jmemsys.h +198 -0
  495. package/libnbis/nbis_x86-64_linux/include/jmorecfg.h +407 -0
  496. package/libnbis/nbis_x86-64_linux/include/jpeg2k.h +95 -0
  497. package/libnbis/nbis_x86-64_linux/include/jpegb.h +95 -0
  498. package/libnbis/nbis_x86-64_linux/include/jpegint.h +392 -0
  499. package/libnbis/nbis_x86-64_linux/include/jpegl.h +303 -0
  500. package/libnbis/nbis_x86-64_linux/include/jpeglib.h +1096 -0
  501. package/libnbis/nbis_x86-64_linux/include/jpeglsd4.h +55 -0
  502. package/libnbis/nbis_x86-64_linux/include/jversion.h +14 -0
  503. package/libnbis/nbis_x86-64_linux/include/lfs.h +1249 -0
  504. package/libnbis/nbis_x86-64_linux/include/little.h +81 -0
  505. package/libnbis/nbis_x86-64_linux/include/log.h +69 -0
  506. package/libnbis/nbis_x86-64_linux/include/masks.h +45 -0
  507. package/libnbis/nbis_x86-64_linux/include/memalloc.h +88 -0
  508. package/libnbis/nbis_x86-64_linux/include/mlp/fmt_msgs.h +57 -0
  509. package/libnbis/nbis_x86-64_linux/include/mlp/get_phr.h +54 -0
  510. package/libnbis/nbis_x86-64_linux/include/mlp/lbfgs_dr.h +51 -0
  511. package/libnbis/nbis_x86-64_linux/include/mlp/lims.h +51 -0
  512. package/libnbis/nbis_x86-64_linux/include/mlp/macros.h +53 -0
  513. package/libnbis/nbis_x86-64_linux/include/mlp/mtch_pnm.h +61 -0
  514. package/libnbis/nbis_x86-64_linux/include/mlp/rd_words.h +51 -0
  515. package/libnbis/nbis_x86-64_linux/include/mlp/scg.h +55 -0
  516. package/libnbis/nbis_x86-64_linux/include/mlp/tda.h +69 -0
  517. package/libnbis/nbis_x86-64_linux/include/mlp.h +545 -0
  518. package/libnbis/nbis_x86-64_linux/include/mlpcla.h +77 -0
  519. package/libnbis/nbis_x86-64_linux/include/morph.h +60 -0
  520. package/libnbis/nbis_x86-64_linux/include/mytime.h +106 -0
  521. package/libnbis/nbis_x86-64_linux/include/nfiq.h +100 -0
  522. package/libnbis/nbis_x86-64_linux/include/nfseg.h +154 -0
  523. package/libnbis/nbis_x86-64_linux/include/nistcom.h +108 -0
  524. package/libnbis/nbis_x86-64_linux/include/openjp2/bio.h +134 -0
  525. package/libnbis/nbis_x86-64_linux/include/openjp2/cidx_manager.h +68 -0
  526. package/libnbis/nbis_x86-64_linux/include/openjp2/cio.h +399 -0
  527. package/libnbis/nbis_x86-64_linux/include/openjp2/dwt.h +122 -0
  528. package/libnbis/nbis_x86-64_linux/include/openjp2/event.h +102 -0
  529. package/libnbis/nbis_x86-64_linux/include/openjp2/function_list.h +131 -0
  530. package/libnbis/nbis_x86-64_linux/include/openjp2/image.h +68 -0
  531. package/libnbis/nbis_x86-64_linux/include/openjp2/indexbox_manager.h +148 -0
  532. package/libnbis/nbis_x86-64_linux/include/openjp2/invert.h +64 -0
  533. package/libnbis/nbis_x86-64_linux/include/openjp2/j2k.h +842 -0
  534. package/libnbis/nbis_x86-64_linux/include/openjp2/jp2.h +500 -0
  535. package/libnbis/nbis_x86-64_linux/include/openjp2/mct.h +155 -0
  536. package/libnbis/nbis_x86-64_linux/include/openjp2/mqc.h +207 -0
  537. package/libnbis/nbis_x86-64_linux/include/openjp2/openjpeg.h +1563 -0
  538. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_clock.h +59 -0
  539. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_codec.h +165 -0
  540. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_includes.h +180 -0
  541. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_intmath.h +178 -0
  542. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_inttypes.h +48 -0
  543. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_malloc.h +185 -0
  544. package/libnbis/nbis_x86-64_linux/include/openjp2/opj_stdint.h +52 -0
  545. package/libnbis/nbis_x86-64_linux/include/openjp2/pi.h +188 -0
  546. package/libnbis/nbis_x86-64_linux/include/openjp2/raw.h +106 -0
  547. package/libnbis/nbis_x86-64_linux/include/openjp2/t1.h +163 -0
  548. package/libnbis/nbis_x86-64_linux/include/openjp2/t1_luts.h +143 -0
  549. package/libnbis/nbis_x86-64_linux/include/openjp2/t2.h +133 -0
  550. package/libnbis/nbis_x86-64_linux/include/openjp2/tcd.h +354 -0
  551. package/libnbis/nbis_x86-64_linux/include/openjp2/tgt.h +146 -0
  552. package/libnbis/nbis_x86-64_linux/include/optrws_r.h +59 -0
  553. package/libnbis/nbis_x86-64_linux/include/parsargs.h +60 -0
  554. package/libnbis/nbis_x86-64_linux/include/pca.h +262 -0
  555. package/libnbis/nbis_x86-64_linux/include/png.h +3544 -0
  556. package/libnbis/nbis_x86-64_linux/include/png_dec.h +74 -0
  557. package/libnbis/nbis_x86-64_linux/include/pngconf.h +1479 -0
  558. package/libnbis/nbis_x86-64_linux/include/rgb_ycc.h +85 -0
  559. package/libnbis/nbis_x86-64_linux/include/sunrast.h +97 -0
  560. package/libnbis/nbis_x86-64_linux/include/swap.h +137 -0
  561. package/libnbis/nbis_x86-64_linux/include/swapbyte.h +53 -0
  562. package/libnbis/nbis_x86-64_linux/include/table.h +58 -0
  563. package/libnbis/nbis_x86-64_linux/include/thresh.h +51 -0
  564. package/libnbis/nbis_x86-64_linux/include/transupp.h +135 -0
  565. package/libnbis/nbis_x86-64_linux/include/trees.h +128 -0
  566. package/libnbis/nbis_x86-64_linux/include/usagemcs.h +93 -0
  567. package/libnbis/nbis_x86-64_linux/include/usebsd.h +78 -0
  568. package/libnbis/nbis_x86-64_linux/include/util.h +98 -0
  569. package/libnbis/nbis_x86-64_linux/include/version.h +55 -0
  570. package/libnbis/nbis_x86-64_linux/include/wsq.h +340 -0
  571. package/libnbis/nbis_x86-64_linux/include/zconf.h +332 -0
  572. package/libnbis/nbis_x86-64_linux/include/zconf.in.h +332 -0
  573. package/libnbis/nbis_x86-64_linux/include/zlib.h +1357 -0
  574. package/libnbis/nbis_x86-64_linux/include/zutil.h +269 -0
  575. package/libnbis/nbis_x86-64_linux/lib/libnbis.a +0 -0
  576. package/libnbis/nbis_x86-64_linux/man/man1/an2k2iaf.1 +69 -0
  577. package/libnbis/nbis_x86-64_linux/man/man1/an2k2txt.1 +129 -0
  578. package/libnbis/nbis_x86-64_linux/man/man1/an2ktool.1 +267 -0
  579. package/libnbis/nbis_x86-64_linux/man/man1/asc2bin.1 +38 -0
  580. package/libnbis/nbis_x86-64_linux/man/man1/bin2asc.1 +39 -0
  581. package/libnbis/nbis_x86-64_linux/man/man1/bozorth3.1 +246 -0
  582. package/libnbis/nbis_x86-64_linux/man/man1/chgdesc.1 +54 -0
  583. package/libnbis/nbis_x86-64_linux/man/man1/chkan2k.1 +426 -0
  584. package/libnbis/nbis_x86-64_linux/man/man1/cjp2k.1 +20 -0
  585. package/libnbis/nbis_x86-64_linux/man/man1/cjpeg.1 +296 -0
  586. package/libnbis/nbis_x86-64_linux/man/man1/cjpegb.1 +188 -0
  587. package/libnbis/nbis_x86-64_linux/man/man1/cjpegl.1 +234 -0
  588. package/libnbis/nbis_x86-64_linux/man/man1/cmbmcs.1 +85 -0
  589. package/libnbis/nbis_x86-64_linux/man/man1/cropcoeff.1 +70 -0
  590. package/libnbis/nbis_x86-64_linux/man/man1/cwsq.1 +145 -0
  591. package/libnbis/nbis_x86-64_linux/man/man1/datainfo.1 +59 -0
  592. package/libnbis/nbis_x86-64_linux/man/man1/diffbyts.1 +71 -0
  593. package/libnbis/nbis_x86-64_linux/man/man1/djp2k.1 +21 -0
  594. package/libnbis/nbis_x86-64_linux/man/man1/djpeg.1 +257 -0
  595. package/libnbis/nbis_x86-64_linux/man/man1/djpegb.1 +140 -0
  596. package/libnbis/nbis_x86-64_linux/man/man1/djpegl.1 +143 -0
  597. package/libnbis/nbis_x86-64_linux/man/man1/djpeglsd.1 +158 -0
  598. package/libnbis/nbis_x86-64_linux/man/man1/dpyan2k.1 +179 -0
  599. package/libnbis/nbis_x86-64_linux/man/man1/dpyimage.1 +233 -0
  600. package/libnbis/nbis_x86-64_linux/man/man1/dwsq.1 +112 -0
  601. package/libnbis/nbis_x86-64_linux/man/man1/dwsq14.1 +120 -0
  602. package/libnbis/nbis_x86-64_linux/man/man1/eva_evt.1 +77 -0
  603. package/libnbis/nbis_x86-64_linux/man/man1/fing2pat.1 +61 -0
  604. package/libnbis/nbis_x86-64_linux/man/man1/fixwts.1 +46 -0
  605. package/libnbis/nbis_x86-64_linux/man/man1/histogen.1 +67 -0
  606. package/libnbis/nbis_x86-64_linux/man/man1/iaf2an2k.1 +63 -0
  607. package/libnbis/nbis_x86-64_linux/man/man1/imgcmp.1 +66 -0
  608. package/libnbis/nbis_x86-64_linux/man/man1/imginfo.1 +43 -0
  609. package/libnbis/nbis_x86-64_linux/man/man1/intr2not.1 +147 -0
  610. package/libnbis/nbis_x86-64_linux/man/man1/jp2codec.1 +240 -0
  611. package/libnbis/nbis_x86-64_linux/man/man1/jpegtran.1 +242 -0
  612. package/libnbis/nbis_x86-64_linux/man/man1/kltran.1 +92 -0
  613. package/libnbis/nbis_x86-64_linux/man/man1/lintran.1 +92 -0
  614. package/libnbis/nbis_x86-64_linux/man/man1/meancov.1 +92 -0
  615. package/libnbis/nbis_x86-64_linux/man/man1/mindtct.1 +240 -0
  616. package/libnbis/nbis_x86-64_linux/man/man1/mkoas.1 +194 -0
  617. package/libnbis/nbis_x86-64_linux/man/man1/mktran.1 +72 -0
  618. package/libnbis/nbis_x86-64_linux/man/man1/mlp.1 +680 -0
  619. package/libnbis/nbis_x86-64_linux/man/man1/mlpfeats.1 +52 -0
  620. package/libnbis/nbis_x86-64_linux/man/man1/nfiq.1 +131 -0
  621. package/libnbis/nbis_x86-64_linux/man/man1/nfseg.1 +232 -0
  622. package/libnbis/nbis_x86-64_linux/man/man1/not2intr.1 +150 -0
  623. package/libnbis/nbis_x86-64_linux/man/man1/oas2pics.1 +55 -0
  624. package/libnbis/nbis_x86-64_linux/man/man1/optosf.1 +131 -0
  625. package/libnbis/nbis_x86-64_linux/man/man1/optrws.1 +213 -0
  626. package/libnbis/nbis_x86-64_linux/man/man1/pcasys.1 +244 -0
  627. package/libnbis/nbis_x86-64_linux/man/man1/pcasysx.1 +149 -0
  628. package/libnbis/nbis_x86-64_linux/man/man1/rdimgwh.1 +74 -0
  629. package/libnbis/nbis_x86-64_linux/man/man1/rdjpgcom.1 +57 -0
  630. package/libnbis/nbis_x86-64_linux/man/man1/rdwsqcom.1 +43 -0
  631. package/libnbis/nbis_x86-64_linux/man/man1/record_selector.1 +386 -0
  632. package/libnbis/nbis_x86-64_linux/man/man1/rgb2ycc.1 +175 -0
  633. package/libnbis/nbis_x86-64_linux/man/man1/rwpics.1 +104 -0
  634. package/libnbis/nbis_x86-64_linux/man/man1/sd_rfmt.1 +88 -0
  635. package/libnbis/nbis_x86-64_linux/man/man1/stackms.1 +68 -0
  636. package/libnbis/nbis_x86-64_linux/man/man1/txt2an2k.1 +130 -0
  637. package/libnbis/nbis_x86-64_linux/man/man1/wrjpgcom.1 +107 -0
  638. package/libnbis/nbis_x86-64_linux/man/man1/wrwsqcom.1 +51 -0
  639. package/libnbis/nbis_x86-64_linux/man/man1/ycc2rgb.1 +183 -0
  640. package/libnbis/nbis_x86-64_linux/man/man1/znormdat.1 +50 -0
  641. package/libnbis/nbis_x86-64_linux/man/man1/znormpat.1 +51 -0
  642. package/libnbis/nbis_x86-64_linux/nbis/an2k/chkan2k/default.conf +451 -0
  643. package/libnbis/nbis_x86-64_linux/nbis/an2k/chkan2k/nist-samples.conf +39 -0
  644. package/libnbis/nbis_x86-64_linux/nbis/nfiq/spec +428 -0
  645. package/libnbis/nbis_x86-64_linux/nbis/nfiq/znorm.dat +11 -0
  646. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/a.pct +0 -0
  647. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/a_c.pct +0 -0
  648. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/biga.pct +0 -0
  649. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/bigl.pct +0 -0
  650. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/bigr.pct +0 -0
  651. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/bigs.pct +0 -0
  652. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/bigt.pct +0 -0
  653. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/bigw.pct +0 -0
  654. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/conf.pct +0 -0
  655. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/digits.pct +0 -0
  656. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/h_c.pct +0 -0
  657. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/l.pct +0 -0
  658. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/note.txt +2 -0
  659. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/pcasys.pct +0 -0
  660. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/point.pct +0 -0
  661. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/r.pct +0 -0
  662. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/s.pct +0 -0
  663. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/sub_0.pct +0 -0
  664. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/sub_1.pct +0 -0
  665. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/t.pct +0 -0
  666. package/libnbis/nbis_x86-64_linux/nbis/pcasys/images/w.pct +0 -0
  667. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/all.txt +2700 -0
  668. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/all_with_class.txt +2700 -0
  669. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/first10.txt +10 -0
  670. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/first20.txt +20 -0
  671. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/first30.txt +30 -0
  672. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/first50.txt +50 -0
  673. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/mkoas.prs +15 -0
  674. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/note.txt +31 -0
  675. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/oas.prs +54 -0
  676. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/optosf.prs +29 -0
  677. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/optrws.prs +57 -0
  678. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/pcasys.mlp +120 -0
  679. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/pcasys.pnn +120 -0
  680. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/pcasys.prs +120 -0
  681. package/libnbis/nbis_x86-64_linux/nbis/pcasys/parms/pcasysx.prs +25 -0
  682. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/mlp/mlp_tmat.bin +0 -0
  683. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/mlp/mlp_wts.bin +3523 -0
  684. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/mlp/note.txt +7 -0
  685. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/pnn/note.txt +6 -0
  686. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/pnn/pnn_tmat.bin +0 -0
  687. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/pnn/procls.asc +24311 -0
  688. package/libnbis/nbis_x86-64_linux/nbis/pcasys/weights/pnn/profvs.bin +0 -0
  689. package/package.json +51 -0
@@ -0,0 +1,1487 @@
1
+
2
+ /* pngconf.h - machine configurable file for libpng
3
+ *
4
+ * libpng version 1.2.23 - November 6, 2007
5
+ * For conditions of distribution and use, see copyright notice in png.h
6
+ * Copyright (c) 1998-2007 Glenn Randers-Pehrson
7
+ * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
+ * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
+ */
10
+
11
+ /* Any machine specific code is near the front of this file, so if you
12
+ * are configuring libpng for a machine, you may want to read the section
13
+ * starting here down to where it starts to typedef png_color, png_text,
14
+ * and png_info.
15
+ */
16
+
17
+ #ifndef PNGCONF_H
18
+ #define PNGCONF_H
19
+
20
+ #define PNG_1_2_X
21
+
22
+ /*
23
+ * PNG_USER_CONFIG has to be defined on the compiler command line. This
24
+ * includes the resource compiler for Windows DLL configurations.
25
+ */
26
+ #ifdef PNG_USER_CONFIG
27
+ # ifndef PNG_USER_PRIVATEBUILD
28
+ # define PNG_USER_PRIVATEBUILD
29
+ # endif
30
+ #include "pngusr.h"
31
+ #endif
32
+
33
+ /* PNG_CONFIGURE_LIBPNG is set by the "configure" script. */
34
+ #ifdef PNG_CONFIGURE_LIBPNG
35
+ #ifdef HAVE_CONFIG_H
36
+ #include "config.h"
37
+ #endif
38
+ #endif
39
+
40
+ /*
41
+ * Added at libpng-1.2.8
42
+ *
43
+ * If you create a private DLL you need to define in "pngusr.h" the followings:
44
+ * #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of
45
+ * the DLL was built>
46
+ * e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons."
47
+ * #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to
48
+ * distinguish your DLL from those of the official release. These
49
+ * correspond to the trailing letters that come after the version
50
+ * number and must match your private DLL name>
51
+ * e.g. // private DLL "libpng13gx.dll"
52
+ * #define PNG_USER_DLLFNAME_POSTFIX "gx"
53
+ *
54
+ * The following macros are also at your disposal if you want to complete the
55
+ * DLL VERSIONINFO structure.
56
+ * - PNG_USER_VERSIONINFO_COMMENTS
57
+ * - PNG_USER_VERSIONINFO_COMPANYNAME
58
+ * - PNG_USER_VERSIONINFO_LEGALTRADEMARKS
59
+ */
60
+
61
+ #ifdef __STDC__
62
+ #ifdef SPECIALBUILD
63
+ # pragma message("PNG_LIBPNG_SPECIALBUILD (and deprecated SPECIALBUILD)\
64
+ are now LIBPNG reserved macros. Use PNG_USER_PRIVATEBUILD instead.")
65
+ #endif
66
+
67
+ #ifdef PRIVATEBUILD
68
+ # pragma message("PRIVATEBUILD is deprecated.\
69
+ Use PNG_USER_PRIVATEBUILD instead.")
70
+ # define PNG_USER_PRIVATEBUILD PRIVATEBUILD
71
+ #endif
72
+ #endif /* __STDC__ */
73
+
74
+ #ifndef PNG_VERSION_INFO_ONLY
75
+
76
+ /* End of material added to libpng-1.2.8 */
77
+
78
+ /* Added at libpng-1.2.19, removed at libpng-1.2.20 because it caused trouble
79
+ Restored at libpng-1.2.21 */
80
+ #if !defined(PNG_NO_WARN_UNINITIALIZED_ROW) && \
81
+ !defined(PNG_WARN_UNINITIALIZED_ROW)
82
+ # define PNG_WARN_UNINITIALIZED_ROW 1
83
+ #endif
84
+ /* End of material added at libpng-1.2.19/1.2.21 */
85
+
86
+ /* This is the size of the compression buffer, and thus the size of
87
+ * an IDAT chunk. Make this whatever size you feel is best for your
88
+ * machine. One of these will be allocated per png_struct. When this
89
+ * is full, it writes the data to the disk, and does some other
90
+ * calculations. Making this an extremely small size will slow
91
+ * the library down, but you may want to experiment to determine
92
+ * where it becomes significant, if you are concerned with memory
93
+ * usage. Note that zlib allocates at least 32Kb also. For readers,
94
+ * this describes the size of the buffer available to read the data in.
95
+ * Unless this gets smaller than the size of a row (compressed),
96
+ * it should not make much difference how big this is.
97
+ */
98
+
99
+ #ifndef PNG_ZBUF_SIZE
100
+ # define PNG_ZBUF_SIZE 8192
101
+ #endif
102
+
103
+ /* Enable if you want a write-only libpng */
104
+
105
+ #ifndef PNG_NO_READ_SUPPORTED
106
+ # define PNG_READ_SUPPORTED
107
+ #endif
108
+
109
+ /* Enable if you want a read-only libpng */
110
+
111
+ #ifndef PNG_NO_WRITE_SUPPORTED
112
+ # define PNG_WRITE_SUPPORTED
113
+ #endif
114
+
115
+ /* Enabled by default in 1.2.0. You can disable this if you don't need to
116
+ support PNGs that are embedded in MNG datastreams */
117
+ #if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES)
118
+ # ifndef PNG_MNG_FEATURES_SUPPORTED
119
+ # define PNG_MNG_FEATURES_SUPPORTED
120
+ # endif
121
+ #endif
122
+
123
+ #ifndef PNG_NO_FLOATING_POINT_SUPPORTED
124
+ # ifndef PNG_FLOATING_POINT_SUPPORTED
125
+ # define PNG_FLOATING_POINT_SUPPORTED
126
+ # endif
127
+ #endif
128
+
129
+ /* If you are running on a machine where you cannot allocate more
130
+ * than 64K of memory at once, uncomment this. While libpng will not
131
+ * normally need that much memory in a chunk (unless you load up a very
132
+ * large file), zlib needs to know how big of a chunk it can use, and
133
+ * libpng thus makes sure to check any memory allocation to verify it
134
+ * will fit into memory.
135
+ #define PNG_MAX_MALLOC_64K
136
+ */
137
+ #if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K)
138
+ # define PNG_MAX_MALLOC_64K
139
+ #endif
140
+
141
+ /* Special munging to support doing things the 'cygwin' way:
142
+ * 'Normal' png-on-win32 defines/defaults:
143
+ * PNG_BUILD_DLL -- building dll
144
+ * PNG_USE_DLL -- building an application, linking to dll
145
+ * (no define) -- building static library, or building an
146
+ * application and linking to the static lib
147
+ * 'Cygwin' defines/defaults:
148
+ * PNG_BUILD_DLL -- (ignored) building the dll
149
+ * (no define) -- (ignored) building an application, linking to the dll
150
+ * PNG_STATIC -- (ignored) building the static lib, or building an
151
+ * application that links to the static lib.
152
+ * ALL_STATIC -- (ignored) building various static libs, or building an
153
+ * application that links to the static libs.
154
+ * Thus,
155
+ * a cygwin user should define either PNG_BUILD_DLL or PNG_STATIC, and
156
+ * this bit of #ifdefs will define the 'correct' config variables based on
157
+ * that. If a cygwin user *wants* to define 'PNG_USE_DLL' that's okay, but
158
+ * unnecessary.
159
+ *
160
+ * Also, the precedence order is:
161
+ * ALL_STATIC (since we can't #undef something outside our namespace)
162
+ * PNG_BUILD_DLL
163
+ * PNG_STATIC
164
+ * (nothing) == PNG_USE_DLL
165
+ *
166
+ * CYGWIN (2002-01-20): The preceding is now obsolete. With the advent
167
+ * of auto-import in binutils, we no longer need to worry about
168
+ * __declspec(dllexport) / __declspec(dllimport) and friends. Therefore,
169
+ * we don't need to worry about PNG_STATIC or ALL_STATIC when it comes
170
+ * to __declspec() stuff. However, we DO need to worry about
171
+ * PNG_BUILD_DLL and PNG_STATIC because those change some defaults
172
+ * such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed.
173
+ */
174
+ #if defined(__CYGWIN__)
175
+ # if defined(ALL_STATIC)
176
+ # if defined(PNG_BUILD_DLL)
177
+ # undef PNG_BUILD_DLL
178
+ # endif
179
+ # if defined(PNG_USE_DLL)
180
+ # undef PNG_USE_DLL
181
+ # endif
182
+ # if defined(PNG_DLL)
183
+ # undef PNG_DLL
184
+ # endif
185
+ # if !defined(PNG_STATIC)
186
+ # define PNG_STATIC
187
+ # endif
188
+ # else
189
+ # if defined (PNG_BUILD_DLL)
190
+ # if defined(PNG_STATIC)
191
+ # undef PNG_STATIC
192
+ # endif
193
+ # if defined(PNG_USE_DLL)
194
+ # undef PNG_USE_DLL
195
+ # endif
196
+ # if !defined(PNG_DLL)
197
+ # define PNG_DLL
198
+ # endif
199
+ # else
200
+ # if defined(PNG_STATIC)
201
+ # if defined(PNG_USE_DLL)
202
+ # undef PNG_USE_DLL
203
+ # endif
204
+ # if defined(PNG_DLL)
205
+ # undef PNG_DLL
206
+ # endif
207
+ # else
208
+ # if !defined(PNG_USE_DLL)
209
+ # define PNG_USE_DLL
210
+ # endif
211
+ # if !defined(PNG_DLL)
212
+ # define PNG_DLL
213
+ # endif
214
+ # endif
215
+ # endif
216
+ # endif
217
+ #endif
218
+
219
+ /* This protects us against compilers that run on a windowing system
220
+ * and thus don't have or would rather us not use the stdio types:
221
+ * stdin, stdout, and stderr. The only one currently used is stderr
222
+ * in png_error() and png_warning(). #defining PNG_NO_CONSOLE_IO will
223
+ * prevent these from being compiled and used. #defining PNG_NO_STDIO
224
+ * will also prevent these, plus will prevent the entire set of stdio
225
+ * macros and functions (FILE *, printf, etc.) from being compiled and used,
226
+ * unless (PNG_DEBUG > 0) has been #defined.
227
+ *
228
+ * #define PNG_NO_CONSOLE_IO
229
+ * #define PNG_NO_STDIO
230
+ */
231
+
232
+ #if defined(_WIN32_WCE)
233
+ # include <windows.h>
234
+ /* Console I/O functions are not supported on WindowsCE */
235
+ # define PNG_NO_CONSOLE_IO
236
+ # ifdef PNG_DEBUG
237
+ # undef PNG_DEBUG
238
+ # endif
239
+ #endif
240
+
241
+ #ifdef PNG_BUILD_DLL
242
+ # ifndef PNG_CONSOLE_IO_SUPPORTED
243
+ # ifndef PNG_NO_CONSOLE_IO
244
+ # define PNG_NO_CONSOLE_IO
245
+ # endif
246
+ # endif
247
+ #endif
248
+
249
+ # ifdef PNG_NO_STDIO
250
+ # ifndef PNG_NO_CONSOLE_IO
251
+ # define PNG_NO_CONSOLE_IO
252
+ # endif
253
+ # ifdef PNG_DEBUG
254
+ # if (PNG_DEBUG > 0)
255
+ # include <stdio.h>
256
+ # endif
257
+ # endif
258
+ # else
259
+ # if !defined(_WIN32_WCE)
260
+ /* "stdio.h" functions are not supported on WindowsCE */
261
+ # include <stdio.h>
262
+ # endif
263
+ # endif
264
+
265
+ /* This macro protects us against machines that don't have function
266
+ * prototypes (ie K&R style headers). If your compiler does not handle
267
+ * function prototypes, define this macro and use the included ansi2knr.
268
+ * I've always been able to use _NO_PROTO as the indicator, but you may
269
+ * need to drag the empty declaration out in front of here, or change the
270
+ * ifdef to suit your own needs.
271
+ */
272
+ #ifndef PNGARG
273
+
274
+ #ifdef OF /* zlib prototype munger */
275
+ # define PNGARG(arglist) OF(arglist)
276
+ #else
277
+
278
+ #ifdef _NO_PROTO
279
+ # define PNGARG(arglist) ()
280
+ # ifndef PNG_TYPECAST_NULL
281
+ # define PNG_TYPECAST_NULL
282
+ # endif
283
+ #else
284
+ # define PNGARG(arglist) arglist
285
+ #endif /* _NO_PROTO */
286
+
287
+
288
+ #endif /* OF */
289
+
290
+ #endif /* PNGARG */
291
+
292
+ /* Try to determine if we are compiling on a Mac. Note that testing for
293
+ * just __MWERKS__ is not good enough, because the Codewarrior is now used
294
+ * on non-Mac platforms.
295
+ */
296
+ #ifndef MACOS
297
+ # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
298
+ defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
299
+ # define MACOS
300
+ # endif
301
+ #endif
302
+
303
+ /* enough people need this for various reasons to include it here */
304
+ #if !defined(MACOS) && !defined(RISCOS) && !defined(_WIN32_WCE)
305
+ # include <sys/types.h>
306
+ #endif
307
+
308
+ #if !defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED)
309
+ # define PNG_SETJMP_SUPPORTED
310
+ #endif
311
+
312
+ #ifdef PNG_SETJMP_SUPPORTED
313
+ /* This is an attempt to force a single setjmp behaviour on Linux. If
314
+ * the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
315
+ */
316
+
317
+ # ifdef __linux__
318
+ # ifdef _BSD_SOURCE
319
+ # define PNG_SAVE_BSD_SOURCE
320
+ # undef _BSD_SOURCE
321
+ # endif
322
+ # ifdef _SETJMP_H
323
+ /* If you encounter a compiler error here, see the explanation
324
+ * near the end of INSTALL.
325
+ */
326
+ __png.h__ already includes setjmp.h;
327
+ __dont__ include it again.;
328
+ # endif
329
+ # endif /* __linux__ */
330
+
331
+ /* include setjmp.h for error handling */
332
+ # include <setjmp.h>
333
+
334
+ # ifdef __linux__
335
+ # ifdef PNG_SAVE_BSD_SOURCE
336
+ # define _BSD_SOURCE
337
+ # undef PNG_SAVE_BSD_SOURCE
338
+ # endif
339
+ # endif /* __linux__ */
340
+ #endif /* PNG_SETJMP_SUPPORTED */
341
+
342
+ #ifdef BSD
343
+ # include <strings.h>
344
+ #else
345
+ # include <string.h>
346
+ #endif
347
+
348
+ /* Other defines for things like memory and the like can go here. */
349
+ #ifdef PNG_INTERNAL
350
+
351
+ #include <stdlib.h>
352
+
353
+ /* The functions exported by PNG_EXTERN are PNG_INTERNAL functions, which
354
+ * aren't usually used outside the library (as far as I know), so it is
355
+ * debatable if they should be exported at all. In the future, when it is
356
+ * possible to have run-time registry of chunk-handling functions, some of
357
+ * these will be made available again.
358
+ #define PNG_EXTERN extern
359
+ */
360
+ #define PNG_EXTERN
361
+
362
+ /* Other defines specific to compilers can go here. Try to keep
363
+ * them inside an appropriate ifdef/endif pair for portability.
364
+ */
365
+
366
+ #if defined(PNG_FLOATING_POINT_SUPPORTED)
367
+ # if defined(MACOS)
368
+ /* We need to check that <math.h> hasn't already been included earlier
369
+ * as it seems it doesn't agree with <fp.h>, yet we should really use
370
+ * <fp.h> if possible.
371
+ */
372
+ # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__)
373
+ # if defined(__has_include)
374
+ # if __has_include(<fp.h>)
375
+ # include <fp.h>
376
+ # else
377
+ # include <math.h>
378
+ # endif
379
+ # else
380
+ # include <fp.h>
381
+ # endif
382
+ # endif
383
+ # else
384
+ # include <math.h>
385
+ # endif
386
+ # if defined(_AMIGA) && defined(__SASC) && defined(_M68881)
387
+ /* Amiga SAS/C: We must include builtin FPU functions when compiling using
388
+ * MATH=68881
389
+ */
390
+ # include <m68881.h>
391
+ # endif
392
+ #endif
393
+
394
+ /* Codewarrior on NT has linking problems without this. */
395
+ #if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__)
396
+ # define PNG_ALWAYS_EXTERN
397
+ #endif
398
+
399
+ /* This provides the non-ANSI (far) memory allocation routines. */
400
+ #if defined(__TURBOC__) && defined(__MSDOS__)
401
+ # include <mem.h>
402
+ # include <alloc.h>
403
+ #endif
404
+
405
+ /* I have no idea why is this necessary... */
406
+ #if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \
407
+ defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__))
408
+ # include <malloc.h>
409
+ #endif
410
+
411
+ /* This controls how fine the dithering gets. As this allocates
412
+ * a largish chunk of memory (32K), those who are not as concerned
413
+ * with dithering quality can decrease some or all of these.
414
+ */
415
+ #ifndef PNG_DITHER_RED_BITS
416
+ # define PNG_DITHER_RED_BITS 5
417
+ #endif
418
+ #ifndef PNG_DITHER_GREEN_BITS
419
+ # define PNG_DITHER_GREEN_BITS 5
420
+ #endif
421
+ #ifndef PNG_DITHER_BLUE_BITS
422
+ # define PNG_DITHER_BLUE_BITS 5
423
+ #endif
424
+
425
+ /* This controls how fine the gamma correction becomes when you
426
+ * are only interested in 8 bits anyway. Increasing this value
427
+ * results in more memory being used, and more pow() functions
428
+ * being called to fill in the gamma tables. Don't set this value
429
+ * less then 8, and even that may not work (I haven't tested it).
430
+ */
431
+
432
+ #ifndef PNG_MAX_GAMMA_8
433
+ # define PNG_MAX_GAMMA_8 11
434
+ #endif
435
+
436
+ /* This controls how much a difference in gamma we can tolerate before
437
+ * we actually start doing gamma conversion.
438
+ */
439
+ #ifndef PNG_GAMMA_THRESHOLD
440
+ # define PNG_GAMMA_THRESHOLD 0.05
441
+ #endif
442
+
443
+ #endif /* PNG_INTERNAL */
444
+
445
+ /* The following uses const char * instead of char * for error
446
+ * and warning message functions, so some compilers won't complain.
447
+ * If you do not want to use const, define PNG_NO_CONST here.
448
+ */
449
+
450
+ #ifndef PNG_NO_CONST
451
+ # define PNG_CONST const
452
+ #else
453
+ # define PNG_CONST
454
+ #endif
455
+
456
+ /* The following defines give you the ability to remove code from the
457
+ * library that you will not be using. I wish I could figure out how to
458
+ * automate this, but I can't do that without making it seriously hard
459
+ * on the users. So if you are not using an ability, change the #define
460
+ * to and #undef, and that part of the library will not be compiled. If
461
+ * your linker can't find a function, you may want to make sure the
462
+ * ability is defined here. Some of these depend upon some others being
463
+ * defined. I haven't figured out all the interactions here, so you may
464
+ * have to experiment awhile to get everything to compile. If you are
465
+ * creating or using a shared library, you probably shouldn't touch this,
466
+ * as it will affect the size of the structures, and this will cause bad
467
+ * things to happen if the library and/or application ever change.
468
+ */
469
+
470
+ /* Any features you will not be using can be undef'ed here */
471
+
472
+ /* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user
473
+ * to turn it off with "*TRANSFORMS_NOT_SUPPORTED" or *PNG_NO_*_TRANSFORMS
474
+ * on the compile line, then pick and choose which ones to define without
475
+ * having to edit this file. It is safe to use the *TRANSFORMS_NOT_SUPPORTED
476
+ * if you only want to have a png-compliant reader/writer but don't need
477
+ * any of the extra transformations. This saves about 80 kbytes in a
478
+ * typical installation of the library. (PNG_NO_* form added in version
479
+ * 1.0.1c, for consistency)
480
+ */
481
+
482
+ /* The size of the png_text structure changed in libpng-1.0.6 when
483
+ * iTXt support was added. iTXt support was turned off by default through
484
+ * libpng-1.2.x, to support old apps that malloc the png_text structure
485
+ * instead of calling png_set_text() and letting libpng malloc it. It
486
+ * was turned on by default in libpng-1.3.0.
487
+ */
488
+
489
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
490
+ # ifndef PNG_NO_iTXt_SUPPORTED
491
+ # define PNG_NO_iTXt_SUPPORTED
492
+ # endif
493
+ # ifndef PNG_NO_READ_iTXt
494
+ # define PNG_NO_READ_iTXt
495
+ # endif
496
+ # ifndef PNG_NO_WRITE_iTXt
497
+ # define PNG_NO_WRITE_iTXt
498
+ # endif
499
+ #endif
500
+
501
+ #if !defined(PNG_NO_iTXt_SUPPORTED)
502
+ # if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
503
+ # define PNG_READ_iTXt
504
+ # endif
505
+ # if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt)
506
+ # define PNG_WRITE_iTXt
507
+ # endif
508
+ #endif
509
+
510
+ /* The following support, added after version 1.0.0, can be turned off here en
511
+ * masse by defining PNG_LEGACY_SUPPORTED in case you need binary compatibility
512
+ * with old applications that require the length of png_struct and png_info
513
+ * to remain unchanged.
514
+ */
515
+
516
+ #ifdef PNG_LEGACY_SUPPORTED
517
+ # define PNG_NO_FREE_ME
518
+ # define PNG_NO_READ_UNKNOWN_CHUNKS
519
+ # define PNG_NO_WRITE_UNKNOWN_CHUNKS
520
+ # define PNG_NO_READ_USER_CHUNKS
521
+ # define PNG_NO_READ_iCCP
522
+ # define PNG_NO_WRITE_iCCP
523
+ # define PNG_NO_READ_iTXt
524
+ # define PNG_NO_WRITE_iTXt
525
+ # define PNG_NO_READ_sCAL
526
+ # define PNG_NO_WRITE_sCAL
527
+ # define PNG_NO_READ_sPLT
528
+ # define PNG_NO_WRITE_sPLT
529
+ # define PNG_NO_INFO_IMAGE
530
+ # define PNG_NO_READ_RGB_TO_GRAY
531
+ # define PNG_NO_READ_USER_TRANSFORM
532
+ # define PNG_NO_WRITE_USER_TRANSFORM
533
+ # define PNG_NO_USER_MEM
534
+ # define PNG_NO_READ_EMPTY_PLTE
535
+ # define PNG_NO_MNG_FEATURES
536
+ # define PNG_NO_FIXED_POINT_SUPPORTED
537
+ #endif
538
+
539
+ /* Ignore attempt to turn off both floating and fixed point support */
540
+ #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \
541
+ !defined(PNG_NO_FIXED_POINT_SUPPORTED)
542
+ # define PNG_FIXED_POINT_SUPPORTED
543
+ #endif
544
+
545
+ #ifndef PNG_NO_FREE_ME
546
+ # define PNG_FREE_ME_SUPPORTED
547
+ #endif
548
+
549
+ #if defined(PNG_READ_SUPPORTED)
550
+
551
+ #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
552
+ !defined(PNG_NO_READ_TRANSFORMS)
553
+ # define PNG_READ_TRANSFORMS_SUPPORTED
554
+ #endif
555
+
556
+ #ifdef PNG_READ_TRANSFORMS_SUPPORTED
557
+ # ifndef PNG_NO_READ_EXPAND
558
+ # define PNG_READ_EXPAND_SUPPORTED
559
+ # endif
560
+ # ifndef PNG_NO_READ_SHIFT
561
+ # define PNG_READ_SHIFT_SUPPORTED
562
+ # endif
563
+ # ifndef PNG_NO_READ_PACK
564
+ # define PNG_READ_PACK_SUPPORTED
565
+ # endif
566
+ # ifndef PNG_NO_READ_BGR
567
+ # define PNG_READ_BGR_SUPPORTED
568
+ # endif
569
+ # ifndef PNG_NO_READ_SWAP
570
+ # define PNG_READ_SWAP_SUPPORTED
571
+ # endif
572
+ # ifndef PNG_NO_READ_PACKSWAP
573
+ # define PNG_READ_PACKSWAP_SUPPORTED
574
+ # endif
575
+ # ifndef PNG_NO_READ_INVERT
576
+ # define PNG_READ_INVERT_SUPPORTED
577
+ # endif
578
+ # ifndef PNG_NO_READ_DITHER
579
+ # define PNG_READ_DITHER_SUPPORTED
580
+ # endif
581
+ # ifndef PNG_NO_READ_BACKGROUND
582
+ # define PNG_READ_BACKGROUND_SUPPORTED
583
+ # endif
584
+ # ifndef PNG_NO_READ_16_TO_8
585
+ # define PNG_READ_16_TO_8_SUPPORTED
586
+ # endif
587
+ # ifndef PNG_NO_READ_FILLER
588
+ # define PNG_READ_FILLER_SUPPORTED
589
+ # endif
590
+ # ifndef PNG_NO_READ_GAMMA
591
+ # define PNG_READ_GAMMA_SUPPORTED
592
+ # endif
593
+ # ifndef PNG_NO_READ_GRAY_TO_RGB
594
+ # define PNG_READ_GRAY_TO_RGB_SUPPORTED
595
+ # endif
596
+ # ifndef PNG_NO_READ_SWAP_ALPHA
597
+ # define PNG_READ_SWAP_ALPHA_SUPPORTED
598
+ # endif
599
+ # ifndef PNG_NO_READ_INVERT_ALPHA
600
+ # define PNG_READ_INVERT_ALPHA_SUPPORTED
601
+ # endif
602
+ # ifndef PNG_NO_READ_STRIP_ALPHA
603
+ # define PNG_READ_STRIP_ALPHA_SUPPORTED
604
+ # endif
605
+ # ifndef PNG_NO_READ_USER_TRANSFORM
606
+ # define PNG_READ_USER_TRANSFORM_SUPPORTED
607
+ # endif
608
+ # ifndef PNG_NO_READ_RGB_TO_GRAY
609
+ # define PNG_READ_RGB_TO_GRAY_SUPPORTED
610
+ # endif
611
+ #endif /* PNG_READ_TRANSFORMS_SUPPORTED */
612
+
613
+ #if !defined(PNG_NO_PROGRESSIVE_READ) && \
614
+ !defined(PNG_PROGRESSIVE_READ_SUPPORTED) /* if you don't do progressive */
615
+ # define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
616
+ #endif /* about interlacing capability! You'll */
617
+ /* still have interlacing unless you change the following line: */
618
+
619
+ #define PNG_READ_INTERLACING_SUPPORTED /* required in PNG-compliant decoders */
620
+
621
+ #ifndef PNG_NO_READ_COMPOSITE_NODIV
622
+ # ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */
623
+ # define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */
624
+ # endif
625
+ #endif
626
+
627
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
628
+ /* Deprecated, will be removed from version 2.0.0.
629
+ Use PNG_MNG_FEATURES_SUPPORTED instead. */
630
+ #ifndef PNG_NO_READ_EMPTY_PLTE
631
+ # define PNG_READ_EMPTY_PLTE_SUPPORTED
632
+ #endif
633
+ #endif
634
+
635
+ #endif /* PNG_READ_SUPPORTED */
636
+
637
+ #if defined(PNG_WRITE_SUPPORTED)
638
+
639
+ # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
640
+ !defined(PNG_NO_WRITE_TRANSFORMS)
641
+ # define PNG_WRITE_TRANSFORMS_SUPPORTED
642
+ #endif
643
+
644
+ #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
645
+ # ifndef PNG_NO_WRITE_SHIFT
646
+ # define PNG_WRITE_SHIFT_SUPPORTED
647
+ # endif
648
+ # ifndef PNG_NO_WRITE_PACK
649
+ # define PNG_WRITE_PACK_SUPPORTED
650
+ # endif
651
+ # ifndef PNG_NO_WRITE_BGR
652
+ # define PNG_WRITE_BGR_SUPPORTED
653
+ # endif
654
+ # ifndef PNG_NO_WRITE_SWAP
655
+ # define PNG_WRITE_SWAP_SUPPORTED
656
+ # endif
657
+ # ifndef PNG_NO_WRITE_PACKSWAP
658
+ # define PNG_WRITE_PACKSWAP_SUPPORTED
659
+ # endif
660
+ # ifndef PNG_NO_WRITE_INVERT
661
+ # define PNG_WRITE_INVERT_SUPPORTED
662
+ # endif
663
+ # ifndef PNG_NO_WRITE_FILLER
664
+ # define PNG_WRITE_FILLER_SUPPORTED /* same as WRITE_STRIP_ALPHA */
665
+ # endif
666
+ # ifndef PNG_NO_WRITE_SWAP_ALPHA
667
+ # define PNG_WRITE_SWAP_ALPHA_SUPPORTED
668
+ # endif
669
+ # ifndef PNG_NO_WRITE_INVERT_ALPHA
670
+ # define PNG_WRITE_INVERT_ALPHA_SUPPORTED
671
+ # endif
672
+ # ifndef PNG_NO_WRITE_USER_TRANSFORM
673
+ # define PNG_WRITE_USER_TRANSFORM_SUPPORTED
674
+ # endif
675
+ #endif /* PNG_WRITE_TRANSFORMS_SUPPORTED */
676
+
677
+ #if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \
678
+ !defined(PNG_WRITE_INTERLACING_SUPPORTED)
679
+ #define PNG_WRITE_INTERLACING_SUPPORTED /* not required for PNG-compliant
680
+ encoders, but can cause trouble
681
+ if left undefined */
682
+ #endif
683
+
684
+ #if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \
685
+ !defined(PNG_WRITE_WEIGHTED_FILTER) && \
686
+ defined(PNG_FLOATING_POINT_SUPPORTED)
687
+ # define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
688
+ #endif
689
+
690
+ #ifndef PNG_NO_WRITE_FLUSH
691
+ # define PNG_WRITE_FLUSH_SUPPORTED
692
+ #endif
693
+
694
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
695
+ /* Deprecated, see PNG_MNG_FEATURES_SUPPORTED, above */
696
+ #ifndef PNG_NO_WRITE_EMPTY_PLTE
697
+ # define PNG_WRITE_EMPTY_PLTE_SUPPORTED
698
+ #endif
699
+ #endif
700
+
701
+ #endif /* PNG_WRITE_SUPPORTED */
702
+
703
+ #ifndef PNG_1_0_X
704
+ # ifndef PNG_NO_ERROR_NUMBERS
705
+ # define PNG_ERROR_NUMBERS_SUPPORTED
706
+ # endif
707
+ #endif /* PNG_1_0_X */
708
+
709
+ #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
710
+ defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
711
+ # ifndef PNG_NO_USER_TRANSFORM_PTR
712
+ # define PNG_USER_TRANSFORM_PTR_SUPPORTED
713
+ # endif
714
+ #endif
715
+
716
+ #ifndef PNG_NO_STDIO
717
+ # define PNG_TIME_RFC1123_SUPPORTED
718
+ #endif
719
+
720
+ /* This adds extra functions in pngget.c for accessing data from the
721
+ * info pointer (added in version 0.99)
722
+ * png_get_image_width()
723
+ * png_get_image_height()
724
+ * png_get_bit_depth()
725
+ * png_get_color_type()
726
+ * png_get_compression_type()
727
+ * png_get_filter_type()
728
+ * png_get_interlace_type()
729
+ * png_get_pixel_aspect_ratio()
730
+ * png_get_pixels_per_meter()
731
+ * png_get_x_offset_pixels()
732
+ * png_get_y_offset_pixels()
733
+ * png_get_x_offset_microns()
734
+ * png_get_y_offset_microns()
735
+ */
736
+ #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED)
737
+ # define PNG_EASY_ACCESS_SUPPORTED
738
+ #endif
739
+
740
+ /* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
741
+ * and removed from version 1.2.20. The following will be removed
742
+ * from libpng-1.4.0
743
+ */
744
+
745
+ #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE)
746
+ # ifndef PNG_OPTIMIZED_CODE_SUPPORTED
747
+ # define PNG_OPTIMIZED_CODE_SUPPORTED
748
+ # endif
749
+ #endif
750
+
751
+ #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE)
752
+ # ifndef PNG_ASSEMBLER_CODE_SUPPORTED
753
+ # define PNG_ASSEMBLER_CODE_SUPPORTED
754
+ # endif
755
+
756
+ # if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4)
757
+ /* work around 64-bit gcc compiler bugs in gcc-3.x */
758
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
759
+ # define PNG_NO_MMX_CODE
760
+ # endif
761
+ # endif
762
+
763
+ # if defined(__APPLE__)
764
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
765
+ # define PNG_NO_MMX_CODE
766
+ # endif
767
+ # endif
768
+
769
+ # if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh))
770
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
771
+ # define PNG_NO_MMX_CODE
772
+ # endif
773
+ # endif
774
+
775
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
776
+ # define PNG_MMX_CODE_SUPPORTED
777
+ # endif
778
+
779
+ #endif
780
+ /* end of obsolete code to be removed from libpng-1.4.0 */
781
+
782
+ #if !defined(PNG_1_0_X)
783
+ #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
784
+ # define PNG_USER_MEM_SUPPORTED
785
+ #endif
786
+ #endif /* PNG_1_0_X */
787
+
788
+ /* Added at libpng-1.2.6 */
789
+ #if !defined(PNG_1_0_X)
790
+ #ifndef PNG_SET_USER_LIMITS_SUPPORTED
791
+ #if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED)
792
+ # define PNG_SET_USER_LIMITS_SUPPORTED
793
+ #endif
794
+ #endif
795
+ #endif /* PNG_1_0_X */
796
+
797
+ /* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGS no matter
798
+ * how large, set these limits to 0x7fffffffL
799
+ */
800
+ #ifndef PNG_USER_WIDTH_MAX
801
+ # define PNG_USER_WIDTH_MAX 1000000L
802
+ #endif
803
+ #ifndef PNG_USER_HEIGHT_MAX
804
+ # define PNG_USER_HEIGHT_MAX 1000000L
805
+ #endif
806
+
807
+ /* These are currently experimental features, define them if you want */
808
+
809
+ /* very little testing */
810
+ /*
811
+ #ifdef PNG_READ_SUPPORTED
812
+ # ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
813
+ # define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
814
+ # endif
815
+ #endif
816
+ */
817
+
818
+ /* This is only for PowerPC big-endian and 680x0 systems */
819
+ /* some testing */
820
+ /*
821
+ #ifndef PNG_READ_BIG_ENDIAN_SUPPORTED
822
+ # define PNG_READ_BIG_ENDIAN_SUPPORTED
823
+ #endif
824
+ */
825
+
826
+ /* Buggy compilers (e.g., gcc 2.7.2.2) need this */
827
+ /*
828
+ #define PNG_NO_POINTER_INDEXING
829
+ */
830
+
831
+ /* These functions are turned off by default, as they will be phased out. */
832
+ /*
833
+ #define PNG_USELESS_TESTS_SUPPORTED
834
+ #define PNG_CORRECT_PALETTE_SUPPORTED
835
+ */
836
+
837
+ /* Any chunks you are not interested in, you can undef here. The
838
+ * ones that allocate memory may be expecially important (hIST,
839
+ * tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info
840
+ * a bit smaller.
841
+ */
842
+
843
+ #if defined(PNG_READ_SUPPORTED) && \
844
+ !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
845
+ !defined(PNG_NO_READ_ANCILLARY_CHUNKS)
846
+ # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
847
+ #endif
848
+
849
+ #if defined(PNG_WRITE_SUPPORTED) && \
850
+ !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
851
+ !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS)
852
+ # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
853
+ #endif
854
+
855
+ #ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
856
+
857
+ #ifdef PNG_NO_READ_TEXT
858
+ # define PNG_NO_READ_iTXt
859
+ # define PNG_NO_READ_tEXt
860
+ # define PNG_NO_READ_zTXt
861
+ #endif
862
+ #ifndef PNG_NO_READ_bKGD
863
+ # define PNG_READ_bKGD_SUPPORTED
864
+ # define PNG_bKGD_SUPPORTED
865
+ #endif
866
+ #ifndef PNG_NO_READ_cHRM
867
+ # define PNG_READ_cHRM_SUPPORTED
868
+ # define PNG_cHRM_SUPPORTED
869
+ #endif
870
+ #ifndef PNG_NO_READ_gAMA
871
+ # define PNG_READ_gAMA_SUPPORTED
872
+ # define PNG_gAMA_SUPPORTED
873
+ #endif
874
+ #ifndef PNG_NO_READ_hIST
875
+ # define PNG_READ_hIST_SUPPORTED
876
+ # define PNG_hIST_SUPPORTED
877
+ #endif
878
+ #ifndef PNG_NO_READ_iCCP
879
+ # define PNG_READ_iCCP_SUPPORTED
880
+ # define PNG_iCCP_SUPPORTED
881
+ #endif
882
+ #ifndef PNG_NO_READ_iTXt
883
+ # ifndef PNG_READ_iTXt_SUPPORTED
884
+ # define PNG_READ_iTXt_SUPPORTED
885
+ # endif
886
+ # ifndef PNG_iTXt_SUPPORTED
887
+ # define PNG_iTXt_SUPPORTED
888
+ # endif
889
+ #endif
890
+ #ifndef PNG_NO_READ_oFFs
891
+ # define PNG_READ_oFFs_SUPPORTED
892
+ # define PNG_oFFs_SUPPORTED
893
+ #endif
894
+ #ifndef PNG_NO_READ_pCAL
895
+ # define PNG_READ_pCAL_SUPPORTED
896
+ # define PNG_pCAL_SUPPORTED
897
+ #endif
898
+ #ifndef PNG_NO_READ_sCAL
899
+ # define PNG_READ_sCAL_SUPPORTED
900
+ # define PNG_sCAL_SUPPORTED
901
+ #endif
902
+ #ifndef PNG_NO_READ_pHYs
903
+ # define PNG_READ_pHYs_SUPPORTED
904
+ # define PNG_pHYs_SUPPORTED
905
+ #endif
906
+ #ifndef PNG_NO_READ_sBIT
907
+ # define PNG_READ_sBIT_SUPPORTED
908
+ # define PNG_sBIT_SUPPORTED
909
+ #endif
910
+ #ifndef PNG_NO_READ_sPLT
911
+ # define PNG_READ_sPLT_SUPPORTED
912
+ # define PNG_sPLT_SUPPORTED
913
+ #endif
914
+ #ifndef PNG_NO_READ_sRGB
915
+ # define PNG_READ_sRGB_SUPPORTED
916
+ # define PNG_sRGB_SUPPORTED
917
+ #endif
918
+ #ifndef PNG_NO_READ_tEXt
919
+ # define PNG_READ_tEXt_SUPPORTED
920
+ # define PNG_tEXt_SUPPORTED
921
+ #endif
922
+ #ifndef PNG_NO_READ_tIME
923
+ # define PNG_READ_tIME_SUPPORTED
924
+ # define PNG_tIME_SUPPORTED
925
+ #endif
926
+ #ifndef PNG_NO_READ_tRNS
927
+ # define PNG_READ_tRNS_SUPPORTED
928
+ # define PNG_tRNS_SUPPORTED
929
+ #endif
930
+ #ifndef PNG_NO_READ_zTXt
931
+ # define PNG_READ_zTXt_SUPPORTED
932
+ # define PNG_zTXt_SUPPORTED
933
+ #endif
934
+ #ifndef PNG_NO_READ_UNKNOWN_CHUNKS
935
+ # define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
936
+ # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
937
+ # define PNG_UNKNOWN_CHUNKS_SUPPORTED
938
+ # endif
939
+ # ifndef PNG_NO_HANDLE_AS_UNKNOWN
940
+ # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
941
+ # endif
942
+ #endif
943
+ #if !defined(PNG_NO_READ_USER_CHUNKS) && \
944
+ defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
945
+ # define PNG_READ_USER_CHUNKS_SUPPORTED
946
+ # define PNG_USER_CHUNKS_SUPPORTED
947
+ # ifdef PNG_NO_READ_UNKNOWN_CHUNKS
948
+ # undef PNG_NO_READ_UNKNOWN_CHUNKS
949
+ # endif
950
+ # ifdef PNG_NO_HANDLE_AS_UNKNOWN
951
+ # undef PNG_NO_HANDLE_AS_UNKNOWN
952
+ # endif
953
+ #endif
954
+ #ifndef PNG_NO_READ_OPT_PLTE
955
+ # define PNG_READ_OPT_PLTE_SUPPORTED /* only affects support of the */
956
+ #endif /* optional PLTE chunk in RGB and RGBA images */
957
+ #if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
958
+ defined(PNG_READ_zTXt_SUPPORTED)
959
+ # define PNG_READ_TEXT_SUPPORTED
960
+ # define PNG_TEXT_SUPPORTED
961
+ #endif
962
+
963
+ #endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */
964
+
965
+ #ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
966
+
967
+ #ifdef PNG_NO_WRITE_TEXT
968
+ # define PNG_NO_WRITE_iTXt
969
+ # define PNG_NO_WRITE_tEXt
970
+ # define PNG_NO_WRITE_zTXt
971
+ #endif
972
+ #ifndef PNG_NO_WRITE_bKGD
973
+ # define PNG_WRITE_bKGD_SUPPORTED
974
+ # ifndef PNG_bKGD_SUPPORTED
975
+ # define PNG_bKGD_SUPPORTED
976
+ # endif
977
+ #endif
978
+ #ifndef PNG_NO_WRITE_cHRM
979
+ # define PNG_WRITE_cHRM_SUPPORTED
980
+ # ifndef PNG_cHRM_SUPPORTED
981
+ # define PNG_cHRM_SUPPORTED
982
+ # endif
983
+ #endif
984
+ #ifndef PNG_NO_WRITE_gAMA
985
+ # define PNG_WRITE_gAMA_SUPPORTED
986
+ # ifndef PNG_gAMA_SUPPORTED
987
+ # define PNG_gAMA_SUPPORTED
988
+ # endif
989
+ #endif
990
+ #ifndef PNG_NO_WRITE_hIST
991
+ # define PNG_WRITE_hIST_SUPPORTED
992
+ # ifndef PNG_hIST_SUPPORTED
993
+ # define PNG_hIST_SUPPORTED
994
+ # endif
995
+ #endif
996
+ #ifndef PNG_NO_WRITE_iCCP
997
+ # define PNG_WRITE_iCCP_SUPPORTED
998
+ # ifndef PNG_iCCP_SUPPORTED
999
+ # define PNG_iCCP_SUPPORTED
1000
+ # endif
1001
+ #endif
1002
+ #ifndef PNG_NO_WRITE_iTXt
1003
+ # ifndef PNG_WRITE_iTXt_SUPPORTED
1004
+ # define PNG_WRITE_iTXt_SUPPORTED
1005
+ # endif
1006
+ # ifndef PNG_iTXt_SUPPORTED
1007
+ # define PNG_iTXt_SUPPORTED
1008
+ # endif
1009
+ #endif
1010
+ #ifndef PNG_NO_WRITE_oFFs
1011
+ # define PNG_WRITE_oFFs_SUPPORTED
1012
+ # ifndef PNG_oFFs_SUPPORTED
1013
+ # define PNG_oFFs_SUPPORTED
1014
+ # endif
1015
+ #endif
1016
+ #ifndef PNG_NO_WRITE_pCAL
1017
+ # define PNG_WRITE_pCAL_SUPPORTED
1018
+ # ifndef PNG_pCAL_SUPPORTED
1019
+ # define PNG_pCAL_SUPPORTED
1020
+ # endif
1021
+ #endif
1022
+ #ifndef PNG_NO_WRITE_sCAL
1023
+ # define PNG_WRITE_sCAL_SUPPORTED
1024
+ # ifndef PNG_sCAL_SUPPORTED
1025
+ # define PNG_sCAL_SUPPORTED
1026
+ # endif
1027
+ #endif
1028
+ #ifndef PNG_NO_WRITE_pHYs
1029
+ # define PNG_WRITE_pHYs_SUPPORTED
1030
+ # ifndef PNG_pHYs_SUPPORTED
1031
+ # define PNG_pHYs_SUPPORTED
1032
+ # endif
1033
+ #endif
1034
+ #ifndef PNG_NO_WRITE_sBIT
1035
+ # define PNG_WRITE_sBIT_SUPPORTED
1036
+ # ifndef PNG_sBIT_SUPPORTED
1037
+ # define PNG_sBIT_SUPPORTED
1038
+ # endif
1039
+ #endif
1040
+ #ifndef PNG_NO_WRITE_sPLT
1041
+ # define PNG_WRITE_sPLT_SUPPORTED
1042
+ # ifndef PNG_sPLT_SUPPORTED
1043
+ # define PNG_sPLT_SUPPORTED
1044
+ # endif
1045
+ #endif
1046
+ #ifndef PNG_NO_WRITE_sRGB
1047
+ # define PNG_WRITE_sRGB_SUPPORTED
1048
+ # ifndef PNG_sRGB_SUPPORTED
1049
+ # define PNG_sRGB_SUPPORTED
1050
+ # endif
1051
+ #endif
1052
+ #ifndef PNG_NO_WRITE_tEXt
1053
+ # define PNG_WRITE_tEXt_SUPPORTED
1054
+ # ifndef PNG_tEXt_SUPPORTED
1055
+ # define PNG_tEXt_SUPPORTED
1056
+ # endif
1057
+ #endif
1058
+ #ifndef PNG_NO_WRITE_tIME
1059
+ # define PNG_WRITE_tIME_SUPPORTED
1060
+ # ifndef PNG_tIME_SUPPORTED
1061
+ # define PNG_tIME_SUPPORTED
1062
+ # endif
1063
+ #endif
1064
+ #ifndef PNG_NO_WRITE_tRNS
1065
+ # define PNG_WRITE_tRNS_SUPPORTED
1066
+ # ifndef PNG_tRNS_SUPPORTED
1067
+ # define PNG_tRNS_SUPPORTED
1068
+ # endif
1069
+ #endif
1070
+ #ifndef PNG_NO_WRITE_zTXt
1071
+ # define PNG_WRITE_zTXt_SUPPORTED
1072
+ # ifndef PNG_zTXt_SUPPORTED
1073
+ # define PNG_zTXt_SUPPORTED
1074
+ # endif
1075
+ #endif
1076
+ #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
1077
+ # define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
1078
+ # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
1079
+ # define PNG_UNKNOWN_CHUNKS_SUPPORTED
1080
+ # endif
1081
+ # ifndef PNG_NO_HANDLE_AS_UNKNOWN
1082
+ # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
1083
+ # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
1084
+ # endif
1085
+ # endif
1086
+ #endif
1087
+ #if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \
1088
+ defined(PNG_WRITE_zTXt_SUPPORTED)
1089
+ # define PNG_WRITE_TEXT_SUPPORTED
1090
+ # ifndef PNG_TEXT_SUPPORTED
1091
+ # define PNG_TEXT_SUPPORTED
1092
+ # endif
1093
+ #endif
1094
+
1095
+ #endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
1096
+
1097
+ /* Turn this off to disable png_read_png() and
1098
+ * png_write_png() and leave the row_pointers member
1099
+ * out of the info structure.
1100
+ */
1101
+ #ifndef PNG_NO_INFO_IMAGE
1102
+ # define PNG_INFO_IMAGE_SUPPORTED
1103
+ #endif
1104
+
1105
+ /* need the time information for reading tIME chunks */
1106
+ #if defined(PNG_tIME_SUPPORTED)
1107
+ # if !defined(_WIN32_WCE)
1108
+ /* "time.h" functions are not supported on WindowsCE */
1109
+ # include <time.h>
1110
+ # endif
1111
+ #endif
1112
+
1113
+ /* Some typedefs to get us started. These should be safe on most of the
1114
+ * common platforms. The typedefs should be at least as large as the
1115
+ * numbers suggest (a png_uint_32 must be at least 32 bits long), but they
1116
+ * don't have to be exactly that size. Some compilers dislike passing
1117
+ * unsigned shorts as function parameters, so you may be better off using
1118
+ * unsigned int for png_uint_16. Likewise, for 64-bit systems, you may
1119
+ * want to have unsigned int for png_uint_32 instead of unsigned long.
1120
+ */
1121
+
1122
+ typedef unsigned long png_uint_32;
1123
+ typedef long png_int_32;
1124
+ typedef unsigned short png_uint_16;
1125
+ typedef short png_int_16;
1126
+ typedef unsigned char png_byte;
1127
+
1128
+ /* This is usually size_t. It is typedef'ed just in case you need it to
1129
+ change (I'm not sure if you will or not, so I thought I'd be safe) */
1130
+ #ifdef PNG_SIZE_T
1131
+ typedef PNG_SIZE_T png_size_t;
1132
+ # define png_sizeof(x) png_convert_size(sizeof (x))
1133
+ #else
1134
+ typedef size_t png_size_t;
1135
+ # define png_sizeof(x) sizeof (x)
1136
+ #endif
1137
+
1138
+ /* The following is needed for medium model support. It cannot be in the
1139
+ * PNG_INTERNAL section. Needs modification for other compilers besides
1140
+ * MSC. Model independent support declares all arrays and pointers to be
1141
+ * large using the far keyword. The zlib version used must also support
1142
+ * model independent data. As of version zlib 1.0.4, the necessary changes
1143
+ * have been made in zlib. The USE_FAR_KEYWORD define triggers other
1144
+ * changes that are needed. (Tim Wegner)
1145
+ */
1146
+
1147
+ /* Separate compiler dependencies (problem here is that zlib.h always
1148
+ defines FAR. (SJT) */
1149
+ #ifdef __BORLANDC__
1150
+ # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
1151
+ # define LDATA 1
1152
+ # else
1153
+ # define LDATA 0
1154
+ # endif
1155
+ /* GRR: why is Cygwin in here? Cygwin is not Borland C... */
1156
+ # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
1157
+ # define PNG_MAX_MALLOC_64K
1158
+ # if (LDATA != 1)
1159
+ # ifndef FAR
1160
+ # define FAR __far
1161
+ # endif
1162
+ # define USE_FAR_KEYWORD
1163
+ # endif /* LDATA != 1 */
1164
+ /* Possibly useful for moving data out of default segment.
1165
+ * Uncomment it if you want. Could also define FARDATA as
1166
+ * const if your compiler supports it. (SJT)
1167
+ # define FARDATA FAR
1168
+ */
1169
+ # endif /* __WIN32__, __FLAT__, __CYGWIN__ */
1170
+ #endif /* __BORLANDC__ */
1171
+
1172
+
1173
+ /* Suggest testing for specific compiler first before testing for
1174
+ * FAR. The Watcom compiler defines both __MEDIUM__ and M_I86MM,
1175
+ * making reliance oncertain keywords suspect. (SJT)
1176
+ */
1177
+
1178
+ /* MSC Medium model */
1179
+ #if defined(FAR)
1180
+ # if defined(M_I86MM)
1181
+ # define USE_FAR_KEYWORD
1182
+ # define FARDATA FAR
1183
+ # include <dos.h>
1184
+ # endif
1185
+ #endif
1186
+
1187
+ /* SJT: default case */
1188
+ #ifndef FAR
1189
+ # define FAR
1190
+ #endif
1191
+
1192
+ /* At this point FAR is always defined */
1193
+ #ifndef FARDATA
1194
+ # define FARDATA
1195
+ #endif
1196
+
1197
+ /* Typedef for floating-point numbers that are converted
1198
+ to fixed-point with a multiple of 100,000, e.g., int_gamma */
1199
+ typedef png_int_32 png_fixed_point;
1200
+
1201
+ /* Add typedefs for pointers */
1202
+ typedef void FAR * png_voidp;
1203
+ typedef png_byte FAR * png_bytep;
1204
+ typedef png_uint_32 FAR * png_uint_32p;
1205
+ typedef png_int_32 FAR * png_int_32p;
1206
+ typedef png_uint_16 FAR * png_uint_16p;
1207
+ typedef png_int_16 FAR * png_int_16p;
1208
+ typedef PNG_CONST char FAR * png_const_charp;
1209
+ typedef char FAR * png_charp;
1210
+ typedef png_fixed_point FAR * png_fixed_point_p;
1211
+
1212
+ #ifndef PNG_NO_STDIO
1213
+ #if defined(_WIN32_WCE)
1214
+ typedef HANDLE png_FILE_p;
1215
+ #else
1216
+ typedef FILE * png_FILE_p;
1217
+ #endif
1218
+ #endif
1219
+
1220
+ #ifdef PNG_FLOATING_POINT_SUPPORTED
1221
+ typedef double FAR * png_doublep;
1222
+ #endif
1223
+
1224
+ /* Pointers to pointers; i.e. arrays */
1225
+ typedef png_byte FAR * FAR * png_bytepp;
1226
+ typedef png_uint_32 FAR * FAR * png_uint_32pp;
1227
+ typedef png_int_32 FAR * FAR * png_int_32pp;
1228
+ typedef png_uint_16 FAR * FAR * png_uint_16pp;
1229
+ typedef png_int_16 FAR * FAR * png_int_16pp;
1230
+ typedef PNG_CONST char FAR * FAR * png_const_charpp;
1231
+ typedef char FAR * FAR * png_charpp;
1232
+ typedef png_fixed_point FAR * FAR * png_fixed_point_pp;
1233
+ #ifdef PNG_FLOATING_POINT_SUPPORTED
1234
+ typedef double FAR * FAR * png_doublepp;
1235
+ #endif
1236
+
1237
+ /* Pointers to pointers to pointers; i.e., pointer to array */
1238
+ typedef char FAR * FAR * FAR * png_charppp;
1239
+
1240
+ #if defined(PNG_1_0_X) || defined(PNG_1_2_X)
1241
+ /* SPC - Is this stuff deprecated? */
1242
+ /* It'll be removed as of libpng-1.3.0 - GR-P */
1243
+ /* libpng typedefs for types in zlib. If zlib changes
1244
+ * or another compression library is used, then change these.
1245
+ * Eliminates need to change all the source files.
1246
+ */
1247
+ typedef charf * png_zcharp;
1248
+ typedef charf * FAR * png_zcharpp;
1249
+ typedef z_stream FAR * png_zstreamp;
1250
+ #endif /* (PNG_1_0_X) || defined(PNG_1_2_X) */
1251
+
1252
+ /*
1253
+ * Define PNG_BUILD_DLL if the module being built is a Windows
1254
+ * LIBPNG DLL.
1255
+ *
1256
+ * Define PNG_USE_DLL if you want to *link* to the Windows LIBPNG DLL.
1257
+ * It is equivalent to Microsoft predefined macro _DLL that is
1258
+ * automatically defined when you compile using the share
1259
+ * version of the CRT (C Run-Time library)
1260
+ *
1261
+ * The cygwin mods make this behavior a little different:
1262
+ * Define PNG_BUILD_DLL if you are building a dll for use with cygwin
1263
+ * Define PNG_STATIC if you are building a static library for use with cygwin,
1264
+ * -or- if you are building an application that you want to link to the
1265
+ * static library.
1266
+ * PNG_USE_DLL is defined by default (no user action needed) unless one of
1267
+ * the other flags is defined.
1268
+ */
1269
+
1270
+ #if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
1271
+ # define PNG_DLL
1272
+ #endif
1273
+ /* If CYGWIN, then disallow GLOBAL ARRAYS unless building a static lib.
1274
+ * When building a static lib, default to no GLOBAL ARRAYS, but allow
1275
+ * command-line override
1276
+ */
1277
+ #if defined(__CYGWIN__)
1278
+ # if !defined(PNG_STATIC)
1279
+ # if defined(PNG_USE_GLOBAL_ARRAYS)
1280
+ # undef PNG_USE_GLOBAL_ARRAYS
1281
+ # endif
1282
+ # if !defined(PNG_USE_LOCAL_ARRAYS)
1283
+ # define PNG_USE_LOCAL_ARRAYS
1284
+ # endif
1285
+ # else
1286
+ # if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
1287
+ # if defined(PNG_USE_GLOBAL_ARRAYS)
1288
+ # undef PNG_USE_GLOBAL_ARRAYS
1289
+ # endif
1290
+ # endif
1291
+ # endif
1292
+ # if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1293
+ # define PNG_USE_LOCAL_ARRAYS
1294
+ # endif
1295
+ #endif
1296
+
1297
+ /* Do not use global arrays (helps with building DLL's)
1298
+ * They are no longer used in libpng itself, since version 1.0.5c,
1299
+ * but might be required for some pre-1.0.5c applications.
1300
+ */
1301
+ #if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1302
+ # if defined(PNG_NO_GLOBAL_ARRAYS) || \
1303
+ (defined(__GNUC__) && defined(PNG_DLL)) || defined(_MSC_VER)
1304
+ # define PNG_USE_LOCAL_ARRAYS
1305
+ # else
1306
+ # define PNG_USE_GLOBAL_ARRAYS
1307
+ # endif
1308
+ #endif
1309
+
1310
+ #if defined(__CYGWIN__)
1311
+ # undef PNGAPI
1312
+ # define PNGAPI __cdecl
1313
+ # undef PNG_IMPEXP
1314
+ # define PNG_IMPEXP
1315
+ #endif
1316
+
1317
+ /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
1318
+ * you may get warnings regarding the linkage of png_zalloc and png_zfree.
1319
+ * Don't ignore those warnings; you must also reset the default calling
1320
+ * convention in your compiler to match your PNGAPI, and you must build
1321
+ * zlib and your applications the same way you build libpng.
1322
+ */
1323
+
1324
+ #if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
1325
+ # ifndef PNG_NO_MODULEDEF
1326
+ # define PNG_NO_MODULEDEF
1327
+ # endif
1328
+ #endif
1329
+
1330
+ #if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF)
1331
+ # define PNG_IMPEXP
1332
+ #endif
1333
+
1334
+ #if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
1335
+ (( defined(_Windows) || defined(_WINDOWS) || \
1336
+ defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
1337
+
1338
+ # ifndef PNGAPI
1339
+ # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
1340
+ # define PNGAPI __cdecl
1341
+ # else
1342
+ # define PNGAPI _cdecl
1343
+ # endif
1344
+ # endif
1345
+
1346
+ # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \
1347
+ 0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */)
1348
+ # define PNG_IMPEXP
1349
+ # endif
1350
+
1351
+ # if !defined(PNG_IMPEXP)
1352
+
1353
+ # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
1354
+ # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
1355
+
1356
+ /* Borland/Microsoft */
1357
+ # if defined(_MSC_VER) || defined(__BORLANDC__)
1358
+ # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
1359
+ # define PNG_EXPORT PNG_EXPORT_TYPE1
1360
+ # else
1361
+ # define PNG_EXPORT PNG_EXPORT_TYPE2
1362
+ # if defined(PNG_BUILD_DLL)
1363
+ # define PNG_IMPEXP __export
1364
+ # else
1365
+ # define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in
1366
+ VC++ */
1367
+ # endif /* Exists in Borland C++ for
1368
+ C++ classes (== huge) */
1369
+ # endif
1370
+ # endif
1371
+
1372
+ # if !defined(PNG_IMPEXP)
1373
+ # if defined(PNG_BUILD_DLL)
1374
+ # define PNG_IMPEXP __declspec(dllexport)
1375
+ # else
1376
+ # define PNG_IMPEXP __declspec(dllimport)
1377
+ # endif
1378
+ # endif
1379
+ # endif /* PNG_IMPEXP */
1380
+ #else /* !(DLL || non-cygwin WINDOWS) */
1381
+ # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
1382
+ # ifndef PNGAPI
1383
+ # define PNGAPI _System
1384
+ # endif
1385
+ # else
1386
+ # if 0 /* ... other platforms, with other meanings */
1387
+ # endif
1388
+ # endif
1389
+ #endif
1390
+
1391
+ #ifndef PNGAPI
1392
+ # define PNGAPI
1393
+ #endif
1394
+ #ifndef PNG_IMPEXP
1395
+ # define PNG_IMPEXP
1396
+ #endif
1397
+
1398
+ #ifdef PNG_BUILDSYMS
1399
+ # ifndef PNG_EXPORT
1400
+ # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END
1401
+ # endif
1402
+ # ifdef PNG_USE_GLOBAL_ARRAYS
1403
+ # ifndef PNG_EXPORT_VAR
1404
+ # define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT
1405
+ # endif
1406
+ # endif
1407
+ #endif
1408
+
1409
+ #ifndef PNG_EXPORT
1410
+ # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
1411
+ #endif
1412
+
1413
+ #ifdef PNG_USE_GLOBAL_ARRAYS
1414
+ # ifndef PNG_EXPORT_VAR
1415
+ # define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type
1416
+ # endif
1417
+ #endif
1418
+
1419
+ /* User may want to use these so they are not in PNG_INTERNAL. Any library
1420
+ * functions that are passed far data must be model independent.
1421
+ */
1422
+
1423
+ #ifndef PNG_ABORT
1424
+ # define PNG_ABORT() abort()
1425
+ #endif
1426
+
1427
+ #ifdef PNG_SETJMP_SUPPORTED
1428
+ # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
1429
+ #else
1430
+ # define png_jmpbuf(png_ptr) \
1431
+ (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
1432
+ #endif
1433
+
1434
+ #if defined(USE_FAR_KEYWORD) /* memory model independent fns */
1435
+ /* use this to make far-to-near assignments */
1436
+ # define CHECK 1
1437
+ # define NOCHECK 0
1438
+ # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK))
1439
+ # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK))
1440
+ # define png_snprintf _fsnprintf /* Added to v 1.2.19 */
1441
+ # define png_strlen _fstrlen
1442
+ # define png_memcmp _fmemcmp /* SJT: added */
1443
+ # define png_memcpy _fmemcpy
1444
+ # define png_memset _fmemset
1445
+ #else /* use the usual functions */
1446
+ # define CVT_PTR(ptr) (ptr)
1447
+ # define CVT_PTR_NOCHECK(ptr) (ptr)
1448
+ # ifndef PNG_NO_SNPRINTF
1449
+ # ifdef _MSC_VER
1450
+ # define png_snprintf _snprintf /* Added to v 1.2.19 */
1451
+ # define png_snprintf2 _snprintf
1452
+ # define png_snprintf6 _snprintf
1453
+ # else
1454
+ # define png_snprintf snprintf /* Added to v 1.2.19 */
1455
+ # define png_snprintf2 snprintf
1456
+ # define png_snprintf6 snprintf
1457
+ # endif
1458
+ # else
1459
+ /* You don't have or don't want to use snprintf(). Caution: Using
1460
+ * sprintf instead of snprintf exposes your application to accidental
1461
+ * or malevolent buffer overflows. If you don't have snprintf()
1462
+ * as a general rule you should provide one (you can get one from
1463
+ * Portable OpenSSH). */
1464
+ # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
1465
+ # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
1466
+ # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
1467
+ sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
1468
+ # endif
1469
+ # define png_strlen strlen
1470
+ # define png_memcmp memcmp /* SJT: added */
1471
+ # define png_memcpy memcpy
1472
+ # define png_memset memset
1473
+ #endif
1474
+ /* End of memory model independent support */
1475
+
1476
+ /* Just a little check that someone hasn't tried to define something
1477
+ * contradictory.
1478
+ */
1479
+ #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K)
1480
+ # undef PNG_ZBUF_SIZE
1481
+ # define PNG_ZBUF_SIZE 65536L
1482
+ #endif
1483
+
1484
+ /* Added at libpng-1.2.8 */
1485
+ #endif /* PNG_VERSION_INFO_ONLY */
1486
+
1487
+ #endif /* PNGCONF_H */