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,1479 @@
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
+ # include <fp.h>
374
+ # endif
375
+ # else
376
+ # include <math.h>
377
+ # endif
378
+ # if defined(_AMIGA) && defined(__SASC) && defined(_M68881)
379
+ /* Amiga SAS/C: We must include builtin FPU functions when compiling using
380
+ * MATH=68881
381
+ */
382
+ # include <m68881.h>
383
+ # endif
384
+ #endif
385
+
386
+ /* Codewarrior on NT has linking problems without this. */
387
+ #if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__)
388
+ # define PNG_ALWAYS_EXTERN
389
+ #endif
390
+
391
+ /* This provides the non-ANSI (far) memory allocation routines. */
392
+ #if defined(__TURBOC__) && defined(__MSDOS__)
393
+ # include <mem.h>
394
+ # include <alloc.h>
395
+ #endif
396
+
397
+ /* I have no idea why is this necessary... */
398
+ #if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \
399
+ defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__))
400
+ # include <malloc.h>
401
+ #endif
402
+
403
+ /* This controls how fine the dithering gets. As this allocates
404
+ * a largish chunk of memory (32K), those who are not as concerned
405
+ * with dithering quality can decrease some or all of these.
406
+ */
407
+ #ifndef PNG_DITHER_RED_BITS
408
+ # define PNG_DITHER_RED_BITS 5
409
+ #endif
410
+ #ifndef PNG_DITHER_GREEN_BITS
411
+ # define PNG_DITHER_GREEN_BITS 5
412
+ #endif
413
+ #ifndef PNG_DITHER_BLUE_BITS
414
+ # define PNG_DITHER_BLUE_BITS 5
415
+ #endif
416
+
417
+ /* This controls how fine the gamma correction becomes when you
418
+ * are only interested in 8 bits anyway. Increasing this value
419
+ * results in more memory being used, and more pow() functions
420
+ * being called to fill in the gamma tables. Don't set this value
421
+ * less then 8, and even that may not work (I haven't tested it).
422
+ */
423
+
424
+ #ifndef PNG_MAX_GAMMA_8
425
+ # define PNG_MAX_GAMMA_8 11
426
+ #endif
427
+
428
+ /* This controls how much a difference in gamma we can tolerate before
429
+ * we actually start doing gamma conversion.
430
+ */
431
+ #ifndef PNG_GAMMA_THRESHOLD
432
+ # define PNG_GAMMA_THRESHOLD 0.05
433
+ #endif
434
+
435
+ #endif /* PNG_INTERNAL */
436
+
437
+ /* The following uses const char * instead of char * for error
438
+ * and warning message functions, so some compilers won't complain.
439
+ * If you do not want to use const, define PNG_NO_CONST here.
440
+ */
441
+
442
+ #ifndef PNG_NO_CONST
443
+ # define PNG_CONST const
444
+ #else
445
+ # define PNG_CONST
446
+ #endif
447
+
448
+ /* The following defines give you the ability to remove code from the
449
+ * library that you will not be using. I wish I could figure out how to
450
+ * automate this, but I can't do that without making it seriously hard
451
+ * on the users. So if you are not using an ability, change the #define
452
+ * to and #undef, and that part of the library will not be compiled. If
453
+ * your linker can't find a function, you may want to make sure the
454
+ * ability is defined here. Some of these depend upon some others being
455
+ * defined. I haven't figured out all the interactions here, so you may
456
+ * have to experiment awhile to get everything to compile. If you are
457
+ * creating or using a shared library, you probably shouldn't touch this,
458
+ * as it will affect the size of the structures, and this will cause bad
459
+ * things to happen if the library and/or application ever change.
460
+ */
461
+
462
+ /* Any features you will not be using can be undef'ed here */
463
+
464
+ /* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user
465
+ * to turn it off with "*TRANSFORMS_NOT_SUPPORTED" or *PNG_NO_*_TRANSFORMS
466
+ * on the compile line, then pick and choose which ones to define without
467
+ * having to edit this file. It is safe to use the *TRANSFORMS_NOT_SUPPORTED
468
+ * if you only want to have a png-compliant reader/writer but don't need
469
+ * any of the extra transformations. This saves about 80 kbytes in a
470
+ * typical installation of the library. (PNG_NO_* form added in version
471
+ * 1.0.1c, for consistency)
472
+ */
473
+
474
+ /* The size of the png_text structure changed in libpng-1.0.6 when
475
+ * iTXt support was added. iTXt support was turned off by default through
476
+ * libpng-1.2.x, to support old apps that malloc the png_text structure
477
+ * instead of calling png_set_text() and letting libpng malloc it. It
478
+ * was turned on by default in libpng-1.3.0.
479
+ */
480
+
481
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
482
+ # ifndef PNG_NO_iTXt_SUPPORTED
483
+ # define PNG_NO_iTXt_SUPPORTED
484
+ # endif
485
+ # ifndef PNG_NO_READ_iTXt
486
+ # define PNG_NO_READ_iTXt
487
+ # endif
488
+ # ifndef PNG_NO_WRITE_iTXt
489
+ # define PNG_NO_WRITE_iTXt
490
+ # endif
491
+ #endif
492
+
493
+ #if !defined(PNG_NO_iTXt_SUPPORTED)
494
+ # if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
495
+ # define PNG_READ_iTXt
496
+ # endif
497
+ # if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt)
498
+ # define PNG_WRITE_iTXt
499
+ # endif
500
+ #endif
501
+
502
+ /* The following support, added after version 1.0.0, can be turned off here en
503
+ * masse by defining PNG_LEGACY_SUPPORTED in case you need binary compatibility
504
+ * with old applications that require the length of png_struct and png_info
505
+ * to remain unchanged.
506
+ */
507
+
508
+ #ifdef PNG_LEGACY_SUPPORTED
509
+ # define PNG_NO_FREE_ME
510
+ # define PNG_NO_READ_UNKNOWN_CHUNKS
511
+ # define PNG_NO_WRITE_UNKNOWN_CHUNKS
512
+ # define PNG_NO_READ_USER_CHUNKS
513
+ # define PNG_NO_READ_iCCP
514
+ # define PNG_NO_WRITE_iCCP
515
+ # define PNG_NO_READ_iTXt
516
+ # define PNG_NO_WRITE_iTXt
517
+ # define PNG_NO_READ_sCAL
518
+ # define PNG_NO_WRITE_sCAL
519
+ # define PNG_NO_READ_sPLT
520
+ # define PNG_NO_WRITE_sPLT
521
+ # define PNG_NO_INFO_IMAGE
522
+ # define PNG_NO_READ_RGB_TO_GRAY
523
+ # define PNG_NO_READ_USER_TRANSFORM
524
+ # define PNG_NO_WRITE_USER_TRANSFORM
525
+ # define PNG_NO_USER_MEM
526
+ # define PNG_NO_READ_EMPTY_PLTE
527
+ # define PNG_NO_MNG_FEATURES
528
+ # define PNG_NO_FIXED_POINT_SUPPORTED
529
+ #endif
530
+
531
+ /* Ignore attempt to turn off both floating and fixed point support */
532
+ #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \
533
+ !defined(PNG_NO_FIXED_POINT_SUPPORTED)
534
+ # define PNG_FIXED_POINT_SUPPORTED
535
+ #endif
536
+
537
+ #ifndef PNG_NO_FREE_ME
538
+ # define PNG_FREE_ME_SUPPORTED
539
+ #endif
540
+
541
+ #if defined(PNG_READ_SUPPORTED)
542
+
543
+ #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
544
+ !defined(PNG_NO_READ_TRANSFORMS)
545
+ # define PNG_READ_TRANSFORMS_SUPPORTED
546
+ #endif
547
+
548
+ #ifdef PNG_READ_TRANSFORMS_SUPPORTED
549
+ # ifndef PNG_NO_READ_EXPAND
550
+ # define PNG_READ_EXPAND_SUPPORTED
551
+ # endif
552
+ # ifndef PNG_NO_READ_SHIFT
553
+ # define PNG_READ_SHIFT_SUPPORTED
554
+ # endif
555
+ # ifndef PNG_NO_READ_PACK
556
+ # define PNG_READ_PACK_SUPPORTED
557
+ # endif
558
+ # ifndef PNG_NO_READ_BGR
559
+ # define PNG_READ_BGR_SUPPORTED
560
+ # endif
561
+ # ifndef PNG_NO_READ_SWAP
562
+ # define PNG_READ_SWAP_SUPPORTED
563
+ # endif
564
+ # ifndef PNG_NO_READ_PACKSWAP
565
+ # define PNG_READ_PACKSWAP_SUPPORTED
566
+ # endif
567
+ # ifndef PNG_NO_READ_INVERT
568
+ # define PNG_READ_INVERT_SUPPORTED
569
+ # endif
570
+ # ifndef PNG_NO_READ_DITHER
571
+ # define PNG_READ_DITHER_SUPPORTED
572
+ # endif
573
+ # ifndef PNG_NO_READ_BACKGROUND
574
+ # define PNG_READ_BACKGROUND_SUPPORTED
575
+ # endif
576
+ # ifndef PNG_NO_READ_16_TO_8
577
+ # define PNG_READ_16_TO_8_SUPPORTED
578
+ # endif
579
+ # ifndef PNG_NO_READ_FILLER
580
+ # define PNG_READ_FILLER_SUPPORTED
581
+ # endif
582
+ # ifndef PNG_NO_READ_GAMMA
583
+ # define PNG_READ_GAMMA_SUPPORTED
584
+ # endif
585
+ # ifndef PNG_NO_READ_GRAY_TO_RGB
586
+ # define PNG_READ_GRAY_TO_RGB_SUPPORTED
587
+ # endif
588
+ # ifndef PNG_NO_READ_SWAP_ALPHA
589
+ # define PNG_READ_SWAP_ALPHA_SUPPORTED
590
+ # endif
591
+ # ifndef PNG_NO_READ_INVERT_ALPHA
592
+ # define PNG_READ_INVERT_ALPHA_SUPPORTED
593
+ # endif
594
+ # ifndef PNG_NO_READ_STRIP_ALPHA
595
+ # define PNG_READ_STRIP_ALPHA_SUPPORTED
596
+ # endif
597
+ # ifndef PNG_NO_READ_USER_TRANSFORM
598
+ # define PNG_READ_USER_TRANSFORM_SUPPORTED
599
+ # endif
600
+ # ifndef PNG_NO_READ_RGB_TO_GRAY
601
+ # define PNG_READ_RGB_TO_GRAY_SUPPORTED
602
+ # endif
603
+ #endif /* PNG_READ_TRANSFORMS_SUPPORTED */
604
+
605
+ #if !defined(PNG_NO_PROGRESSIVE_READ) && \
606
+ !defined(PNG_PROGRESSIVE_READ_SUPPORTED) /* if you don't do progressive */
607
+ # define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
608
+ #endif /* about interlacing capability! You'll */
609
+ /* still have interlacing unless you change the following line: */
610
+
611
+ #define PNG_READ_INTERLACING_SUPPORTED /* required in PNG-compliant decoders */
612
+
613
+ #ifndef PNG_NO_READ_COMPOSITE_NODIV
614
+ # ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */
615
+ # define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */
616
+ # endif
617
+ #endif
618
+
619
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
620
+ /* Deprecated, will be removed from version 2.0.0.
621
+ Use PNG_MNG_FEATURES_SUPPORTED instead. */
622
+ #ifndef PNG_NO_READ_EMPTY_PLTE
623
+ # define PNG_READ_EMPTY_PLTE_SUPPORTED
624
+ #endif
625
+ #endif
626
+
627
+ #endif /* PNG_READ_SUPPORTED */
628
+
629
+ #if defined(PNG_WRITE_SUPPORTED)
630
+
631
+ # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
632
+ !defined(PNG_NO_WRITE_TRANSFORMS)
633
+ # define PNG_WRITE_TRANSFORMS_SUPPORTED
634
+ #endif
635
+
636
+ #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
637
+ # ifndef PNG_NO_WRITE_SHIFT
638
+ # define PNG_WRITE_SHIFT_SUPPORTED
639
+ # endif
640
+ # ifndef PNG_NO_WRITE_PACK
641
+ # define PNG_WRITE_PACK_SUPPORTED
642
+ # endif
643
+ # ifndef PNG_NO_WRITE_BGR
644
+ # define PNG_WRITE_BGR_SUPPORTED
645
+ # endif
646
+ # ifndef PNG_NO_WRITE_SWAP
647
+ # define PNG_WRITE_SWAP_SUPPORTED
648
+ # endif
649
+ # ifndef PNG_NO_WRITE_PACKSWAP
650
+ # define PNG_WRITE_PACKSWAP_SUPPORTED
651
+ # endif
652
+ # ifndef PNG_NO_WRITE_INVERT
653
+ # define PNG_WRITE_INVERT_SUPPORTED
654
+ # endif
655
+ # ifndef PNG_NO_WRITE_FILLER
656
+ # define PNG_WRITE_FILLER_SUPPORTED /* same as WRITE_STRIP_ALPHA */
657
+ # endif
658
+ # ifndef PNG_NO_WRITE_SWAP_ALPHA
659
+ # define PNG_WRITE_SWAP_ALPHA_SUPPORTED
660
+ # endif
661
+ # ifndef PNG_NO_WRITE_INVERT_ALPHA
662
+ # define PNG_WRITE_INVERT_ALPHA_SUPPORTED
663
+ # endif
664
+ # ifndef PNG_NO_WRITE_USER_TRANSFORM
665
+ # define PNG_WRITE_USER_TRANSFORM_SUPPORTED
666
+ # endif
667
+ #endif /* PNG_WRITE_TRANSFORMS_SUPPORTED */
668
+
669
+ #if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \
670
+ !defined(PNG_WRITE_INTERLACING_SUPPORTED)
671
+ #define PNG_WRITE_INTERLACING_SUPPORTED /* not required for PNG-compliant
672
+ encoders, but can cause trouble
673
+ if left undefined */
674
+ #endif
675
+
676
+ #if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \
677
+ !defined(PNG_WRITE_WEIGHTED_FILTER) && \
678
+ defined(PNG_FLOATING_POINT_SUPPORTED)
679
+ # define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
680
+ #endif
681
+
682
+ #ifndef PNG_NO_WRITE_FLUSH
683
+ # define PNG_WRITE_FLUSH_SUPPORTED
684
+ #endif
685
+
686
+ #if defined(PNG_1_0_X) || defined (PNG_1_2_X)
687
+ /* Deprecated, see PNG_MNG_FEATURES_SUPPORTED, above */
688
+ #ifndef PNG_NO_WRITE_EMPTY_PLTE
689
+ # define PNG_WRITE_EMPTY_PLTE_SUPPORTED
690
+ #endif
691
+ #endif
692
+
693
+ #endif /* PNG_WRITE_SUPPORTED */
694
+
695
+ #ifndef PNG_1_0_X
696
+ # ifndef PNG_NO_ERROR_NUMBERS
697
+ # define PNG_ERROR_NUMBERS_SUPPORTED
698
+ # endif
699
+ #endif /* PNG_1_0_X */
700
+
701
+ #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
702
+ defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
703
+ # ifndef PNG_NO_USER_TRANSFORM_PTR
704
+ # define PNG_USER_TRANSFORM_PTR_SUPPORTED
705
+ # endif
706
+ #endif
707
+
708
+ #ifndef PNG_NO_STDIO
709
+ # define PNG_TIME_RFC1123_SUPPORTED
710
+ #endif
711
+
712
+ /* This adds extra functions in pngget.c for accessing data from the
713
+ * info pointer (added in version 0.99)
714
+ * png_get_image_width()
715
+ * png_get_image_height()
716
+ * png_get_bit_depth()
717
+ * png_get_color_type()
718
+ * png_get_compression_type()
719
+ * png_get_filter_type()
720
+ * png_get_interlace_type()
721
+ * png_get_pixel_aspect_ratio()
722
+ * png_get_pixels_per_meter()
723
+ * png_get_x_offset_pixels()
724
+ * png_get_y_offset_pixels()
725
+ * png_get_x_offset_microns()
726
+ * png_get_y_offset_microns()
727
+ */
728
+ #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED)
729
+ # define PNG_EASY_ACCESS_SUPPORTED
730
+ #endif
731
+
732
+ /* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
733
+ * and removed from version 1.2.20. The following will be removed
734
+ * from libpng-1.4.0
735
+ */
736
+
737
+ #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE)
738
+ # ifndef PNG_OPTIMIZED_CODE_SUPPORTED
739
+ # define PNG_OPTIMIZED_CODE_SUPPORTED
740
+ # endif
741
+ #endif
742
+
743
+ #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE)
744
+ # ifndef PNG_ASSEMBLER_CODE_SUPPORTED
745
+ # define PNG_ASSEMBLER_CODE_SUPPORTED
746
+ # endif
747
+
748
+ # if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4)
749
+ /* work around 64-bit gcc compiler bugs in gcc-3.x */
750
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
751
+ # define PNG_NO_MMX_CODE
752
+ # endif
753
+ # endif
754
+
755
+ # if defined(__APPLE__)
756
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
757
+ # define PNG_NO_MMX_CODE
758
+ # endif
759
+ # endif
760
+
761
+ # if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh))
762
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
763
+ # define PNG_NO_MMX_CODE
764
+ # endif
765
+ # endif
766
+
767
+ # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
768
+ # define PNG_MMX_CODE_SUPPORTED
769
+ # endif
770
+
771
+ #endif
772
+ /* end of obsolete code to be removed from libpng-1.4.0 */
773
+
774
+ #if !defined(PNG_1_0_X)
775
+ #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
776
+ # define PNG_USER_MEM_SUPPORTED
777
+ #endif
778
+ #endif /* PNG_1_0_X */
779
+
780
+ /* Added at libpng-1.2.6 */
781
+ #if !defined(PNG_1_0_X)
782
+ #ifndef PNG_SET_USER_LIMITS_SUPPORTED
783
+ #if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED)
784
+ # define PNG_SET_USER_LIMITS_SUPPORTED
785
+ #endif
786
+ #endif
787
+ #endif /* PNG_1_0_X */
788
+
789
+ /* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGS no matter
790
+ * how large, set these limits to 0x7fffffffL
791
+ */
792
+ #ifndef PNG_USER_WIDTH_MAX
793
+ # define PNG_USER_WIDTH_MAX 1000000L
794
+ #endif
795
+ #ifndef PNG_USER_HEIGHT_MAX
796
+ # define PNG_USER_HEIGHT_MAX 1000000L
797
+ #endif
798
+
799
+ /* These are currently experimental features, define them if you want */
800
+
801
+ /* very little testing */
802
+ /*
803
+ #ifdef PNG_READ_SUPPORTED
804
+ # ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
805
+ # define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
806
+ # endif
807
+ #endif
808
+ */
809
+
810
+ /* This is only for PowerPC big-endian and 680x0 systems */
811
+ /* some testing */
812
+ /*
813
+ #ifndef PNG_READ_BIG_ENDIAN_SUPPORTED
814
+ # define PNG_READ_BIG_ENDIAN_SUPPORTED
815
+ #endif
816
+ */
817
+
818
+ /* Buggy compilers (e.g., gcc 2.7.2.2) need this */
819
+ /*
820
+ #define PNG_NO_POINTER_INDEXING
821
+ */
822
+
823
+ /* These functions are turned off by default, as they will be phased out. */
824
+ /*
825
+ #define PNG_USELESS_TESTS_SUPPORTED
826
+ #define PNG_CORRECT_PALETTE_SUPPORTED
827
+ */
828
+
829
+ /* Any chunks you are not interested in, you can undef here. The
830
+ * ones that allocate memory may be expecially important (hIST,
831
+ * tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info
832
+ * a bit smaller.
833
+ */
834
+
835
+ #if defined(PNG_READ_SUPPORTED) && \
836
+ !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
837
+ !defined(PNG_NO_READ_ANCILLARY_CHUNKS)
838
+ # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
839
+ #endif
840
+
841
+ #if defined(PNG_WRITE_SUPPORTED) && \
842
+ !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
843
+ !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS)
844
+ # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
845
+ #endif
846
+
847
+ #ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
848
+
849
+ #ifdef PNG_NO_READ_TEXT
850
+ # define PNG_NO_READ_iTXt
851
+ # define PNG_NO_READ_tEXt
852
+ # define PNG_NO_READ_zTXt
853
+ #endif
854
+ #ifndef PNG_NO_READ_bKGD
855
+ # define PNG_READ_bKGD_SUPPORTED
856
+ # define PNG_bKGD_SUPPORTED
857
+ #endif
858
+ #ifndef PNG_NO_READ_cHRM
859
+ # define PNG_READ_cHRM_SUPPORTED
860
+ # define PNG_cHRM_SUPPORTED
861
+ #endif
862
+ #ifndef PNG_NO_READ_gAMA
863
+ # define PNG_READ_gAMA_SUPPORTED
864
+ # define PNG_gAMA_SUPPORTED
865
+ #endif
866
+ #ifndef PNG_NO_READ_hIST
867
+ # define PNG_READ_hIST_SUPPORTED
868
+ # define PNG_hIST_SUPPORTED
869
+ #endif
870
+ #ifndef PNG_NO_READ_iCCP
871
+ # define PNG_READ_iCCP_SUPPORTED
872
+ # define PNG_iCCP_SUPPORTED
873
+ #endif
874
+ #ifndef PNG_NO_READ_iTXt
875
+ # ifndef PNG_READ_iTXt_SUPPORTED
876
+ # define PNG_READ_iTXt_SUPPORTED
877
+ # endif
878
+ # ifndef PNG_iTXt_SUPPORTED
879
+ # define PNG_iTXt_SUPPORTED
880
+ # endif
881
+ #endif
882
+ #ifndef PNG_NO_READ_oFFs
883
+ # define PNG_READ_oFFs_SUPPORTED
884
+ # define PNG_oFFs_SUPPORTED
885
+ #endif
886
+ #ifndef PNG_NO_READ_pCAL
887
+ # define PNG_READ_pCAL_SUPPORTED
888
+ # define PNG_pCAL_SUPPORTED
889
+ #endif
890
+ #ifndef PNG_NO_READ_sCAL
891
+ # define PNG_READ_sCAL_SUPPORTED
892
+ # define PNG_sCAL_SUPPORTED
893
+ #endif
894
+ #ifndef PNG_NO_READ_pHYs
895
+ # define PNG_READ_pHYs_SUPPORTED
896
+ # define PNG_pHYs_SUPPORTED
897
+ #endif
898
+ #ifndef PNG_NO_READ_sBIT
899
+ # define PNG_READ_sBIT_SUPPORTED
900
+ # define PNG_sBIT_SUPPORTED
901
+ #endif
902
+ #ifndef PNG_NO_READ_sPLT
903
+ # define PNG_READ_sPLT_SUPPORTED
904
+ # define PNG_sPLT_SUPPORTED
905
+ #endif
906
+ #ifndef PNG_NO_READ_sRGB
907
+ # define PNG_READ_sRGB_SUPPORTED
908
+ # define PNG_sRGB_SUPPORTED
909
+ #endif
910
+ #ifndef PNG_NO_READ_tEXt
911
+ # define PNG_READ_tEXt_SUPPORTED
912
+ # define PNG_tEXt_SUPPORTED
913
+ #endif
914
+ #ifndef PNG_NO_READ_tIME
915
+ # define PNG_READ_tIME_SUPPORTED
916
+ # define PNG_tIME_SUPPORTED
917
+ #endif
918
+ #ifndef PNG_NO_READ_tRNS
919
+ # define PNG_READ_tRNS_SUPPORTED
920
+ # define PNG_tRNS_SUPPORTED
921
+ #endif
922
+ #ifndef PNG_NO_READ_zTXt
923
+ # define PNG_READ_zTXt_SUPPORTED
924
+ # define PNG_zTXt_SUPPORTED
925
+ #endif
926
+ #ifndef PNG_NO_READ_UNKNOWN_CHUNKS
927
+ # define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
928
+ # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
929
+ # define PNG_UNKNOWN_CHUNKS_SUPPORTED
930
+ # endif
931
+ # ifndef PNG_NO_HANDLE_AS_UNKNOWN
932
+ # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
933
+ # endif
934
+ #endif
935
+ #if !defined(PNG_NO_READ_USER_CHUNKS) && \
936
+ defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
937
+ # define PNG_READ_USER_CHUNKS_SUPPORTED
938
+ # define PNG_USER_CHUNKS_SUPPORTED
939
+ # ifdef PNG_NO_READ_UNKNOWN_CHUNKS
940
+ # undef PNG_NO_READ_UNKNOWN_CHUNKS
941
+ # endif
942
+ # ifdef PNG_NO_HANDLE_AS_UNKNOWN
943
+ # undef PNG_NO_HANDLE_AS_UNKNOWN
944
+ # endif
945
+ #endif
946
+ #ifndef PNG_NO_READ_OPT_PLTE
947
+ # define PNG_READ_OPT_PLTE_SUPPORTED /* only affects support of the */
948
+ #endif /* optional PLTE chunk in RGB and RGBA images */
949
+ #if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
950
+ defined(PNG_READ_zTXt_SUPPORTED)
951
+ # define PNG_READ_TEXT_SUPPORTED
952
+ # define PNG_TEXT_SUPPORTED
953
+ #endif
954
+
955
+ #endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */
956
+
957
+ #ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
958
+
959
+ #ifdef PNG_NO_WRITE_TEXT
960
+ # define PNG_NO_WRITE_iTXt
961
+ # define PNG_NO_WRITE_tEXt
962
+ # define PNG_NO_WRITE_zTXt
963
+ #endif
964
+ #ifndef PNG_NO_WRITE_bKGD
965
+ # define PNG_WRITE_bKGD_SUPPORTED
966
+ # ifndef PNG_bKGD_SUPPORTED
967
+ # define PNG_bKGD_SUPPORTED
968
+ # endif
969
+ #endif
970
+ #ifndef PNG_NO_WRITE_cHRM
971
+ # define PNG_WRITE_cHRM_SUPPORTED
972
+ # ifndef PNG_cHRM_SUPPORTED
973
+ # define PNG_cHRM_SUPPORTED
974
+ # endif
975
+ #endif
976
+ #ifndef PNG_NO_WRITE_gAMA
977
+ # define PNG_WRITE_gAMA_SUPPORTED
978
+ # ifndef PNG_gAMA_SUPPORTED
979
+ # define PNG_gAMA_SUPPORTED
980
+ # endif
981
+ #endif
982
+ #ifndef PNG_NO_WRITE_hIST
983
+ # define PNG_WRITE_hIST_SUPPORTED
984
+ # ifndef PNG_hIST_SUPPORTED
985
+ # define PNG_hIST_SUPPORTED
986
+ # endif
987
+ #endif
988
+ #ifndef PNG_NO_WRITE_iCCP
989
+ # define PNG_WRITE_iCCP_SUPPORTED
990
+ # ifndef PNG_iCCP_SUPPORTED
991
+ # define PNG_iCCP_SUPPORTED
992
+ # endif
993
+ #endif
994
+ #ifndef PNG_NO_WRITE_iTXt
995
+ # ifndef PNG_WRITE_iTXt_SUPPORTED
996
+ # define PNG_WRITE_iTXt_SUPPORTED
997
+ # endif
998
+ # ifndef PNG_iTXt_SUPPORTED
999
+ # define PNG_iTXt_SUPPORTED
1000
+ # endif
1001
+ #endif
1002
+ #ifndef PNG_NO_WRITE_oFFs
1003
+ # define PNG_WRITE_oFFs_SUPPORTED
1004
+ # ifndef PNG_oFFs_SUPPORTED
1005
+ # define PNG_oFFs_SUPPORTED
1006
+ # endif
1007
+ #endif
1008
+ #ifndef PNG_NO_WRITE_pCAL
1009
+ # define PNG_WRITE_pCAL_SUPPORTED
1010
+ # ifndef PNG_pCAL_SUPPORTED
1011
+ # define PNG_pCAL_SUPPORTED
1012
+ # endif
1013
+ #endif
1014
+ #ifndef PNG_NO_WRITE_sCAL
1015
+ # define PNG_WRITE_sCAL_SUPPORTED
1016
+ # ifndef PNG_sCAL_SUPPORTED
1017
+ # define PNG_sCAL_SUPPORTED
1018
+ # endif
1019
+ #endif
1020
+ #ifndef PNG_NO_WRITE_pHYs
1021
+ # define PNG_WRITE_pHYs_SUPPORTED
1022
+ # ifndef PNG_pHYs_SUPPORTED
1023
+ # define PNG_pHYs_SUPPORTED
1024
+ # endif
1025
+ #endif
1026
+ #ifndef PNG_NO_WRITE_sBIT
1027
+ # define PNG_WRITE_sBIT_SUPPORTED
1028
+ # ifndef PNG_sBIT_SUPPORTED
1029
+ # define PNG_sBIT_SUPPORTED
1030
+ # endif
1031
+ #endif
1032
+ #ifndef PNG_NO_WRITE_sPLT
1033
+ # define PNG_WRITE_sPLT_SUPPORTED
1034
+ # ifndef PNG_sPLT_SUPPORTED
1035
+ # define PNG_sPLT_SUPPORTED
1036
+ # endif
1037
+ #endif
1038
+ #ifndef PNG_NO_WRITE_sRGB
1039
+ # define PNG_WRITE_sRGB_SUPPORTED
1040
+ # ifndef PNG_sRGB_SUPPORTED
1041
+ # define PNG_sRGB_SUPPORTED
1042
+ # endif
1043
+ #endif
1044
+ #ifndef PNG_NO_WRITE_tEXt
1045
+ # define PNG_WRITE_tEXt_SUPPORTED
1046
+ # ifndef PNG_tEXt_SUPPORTED
1047
+ # define PNG_tEXt_SUPPORTED
1048
+ # endif
1049
+ #endif
1050
+ #ifndef PNG_NO_WRITE_tIME
1051
+ # define PNG_WRITE_tIME_SUPPORTED
1052
+ # ifndef PNG_tIME_SUPPORTED
1053
+ # define PNG_tIME_SUPPORTED
1054
+ # endif
1055
+ #endif
1056
+ #ifndef PNG_NO_WRITE_tRNS
1057
+ # define PNG_WRITE_tRNS_SUPPORTED
1058
+ # ifndef PNG_tRNS_SUPPORTED
1059
+ # define PNG_tRNS_SUPPORTED
1060
+ # endif
1061
+ #endif
1062
+ #ifndef PNG_NO_WRITE_zTXt
1063
+ # define PNG_WRITE_zTXt_SUPPORTED
1064
+ # ifndef PNG_zTXt_SUPPORTED
1065
+ # define PNG_zTXt_SUPPORTED
1066
+ # endif
1067
+ #endif
1068
+ #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
1069
+ # define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
1070
+ # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
1071
+ # define PNG_UNKNOWN_CHUNKS_SUPPORTED
1072
+ # endif
1073
+ # ifndef PNG_NO_HANDLE_AS_UNKNOWN
1074
+ # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
1075
+ # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
1076
+ # endif
1077
+ # endif
1078
+ #endif
1079
+ #if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \
1080
+ defined(PNG_WRITE_zTXt_SUPPORTED)
1081
+ # define PNG_WRITE_TEXT_SUPPORTED
1082
+ # ifndef PNG_TEXT_SUPPORTED
1083
+ # define PNG_TEXT_SUPPORTED
1084
+ # endif
1085
+ #endif
1086
+
1087
+ #endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
1088
+
1089
+ /* Turn this off to disable png_read_png() and
1090
+ * png_write_png() and leave the row_pointers member
1091
+ * out of the info structure.
1092
+ */
1093
+ #ifndef PNG_NO_INFO_IMAGE
1094
+ # define PNG_INFO_IMAGE_SUPPORTED
1095
+ #endif
1096
+
1097
+ /* need the time information for reading tIME chunks */
1098
+ #if defined(PNG_tIME_SUPPORTED)
1099
+ # if !defined(_WIN32_WCE)
1100
+ /* "time.h" functions are not supported on WindowsCE */
1101
+ # include <time.h>
1102
+ # endif
1103
+ #endif
1104
+
1105
+ /* Some typedefs to get us started. These should be safe on most of the
1106
+ * common platforms. The typedefs should be at least as large as the
1107
+ * numbers suggest (a png_uint_32 must be at least 32 bits long), but they
1108
+ * don't have to be exactly that size. Some compilers dislike passing
1109
+ * unsigned shorts as function parameters, so you may be better off using
1110
+ * unsigned int for png_uint_16. Likewise, for 64-bit systems, you may
1111
+ * want to have unsigned int for png_uint_32 instead of unsigned long.
1112
+ */
1113
+
1114
+ typedef unsigned long png_uint_32;
1115
+ typedef long png_int_32;
1116
+ typedef unsigned short png_uint_16;
1117
+ typedef short png_int_16;
1118
+ typedef unsigned char png_byte;
1119
+
1120
+ /* This is usually size_t. It is typedef'ed just in case you need it to
1121
+ change (I'm not sure if you will or not, so I thought I'd be safe) */
1122
+ #ifdef PNG_SIZE_T
1123
+ typedef PNG_SIZE_T png_size_t;
1124
+ # define png_sizeof(x) png_convert_size(sizeof (x))
1125
+ #else
1126
+ typedef size_t png_size_t;
1127
+ # define png_sizeof(x) sizeof (x)
1128
+ #endif
1129
+
1130
+ /* The following is needed for medium model support. It cannot be in the
1131
+ * PNG_INTERNAL section. Needs modification for other compilers besides
1132
+ * MSC. Model independent support declares all arrays and pointers to be
1133
+ * large using the far keyword. The zlib version used must also support
1134
+ * model independent data. As of version zlib 1.0.4, the necessary changes
1135
+ * have been made in zlib. The USE_FAR_KEYWORD define triggers other
1136
+ * changes that are needed. (Tim Wegner)
1137
+ */
1138
+
1139
+ /* Separate compiler dependencies (problem here is that zlib.h always
1140
+ defines FAR. (SJT) */
1141
+ #ifdef __BORLANDC__
1142
+ # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
1143
+ # define LDATA 1
1144
+ # else
1145
+ # define LDATA 0
1146
+ # endif
1147
+ /* GRR: why is Cygwin in here? Cygwin is not Borland C... */
1148
+ # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
1149
+ # define PNG_MAX_MALLOC_64K
1150
+ # if (LDATA != 1)
1151
+ # ifndef FAR
1152
+ # define FAR __far
1153
+ # endif
1154
+ # define USE_FAR_KEYWORD
1155
+ # endif /* LDATA != 1 */
1156
+ /* Possibly useful for moving data out of default segment.
1157
+ * Uncomment it if you want. Could also define FARDATA as
1158
+ * const if your compiler supports it. (SJT)
1159
+ # define FARDATA FAR
1160
+ */
1161
+ # endif /* __WIN32__, __FLAT__, __CYGWIN__ */
1162
+ #endif /* __BORLANDC__ */
1163
+
1164
+
1165
+ /* Suggest testing for specific compiler first before testing for
1166
+ * FAR. The Watcom compiler defines both __MEDIUM__ and M_I86MM,
1167
+ * making reliance oncertain keywords suspect. (SJT)
1168
+ */
1169
+
1170
+ /* MSC Medium model */
1171
+ #if defined(FAR)
1172
+ # if defined(M_I86MM)
1173
+ # define USE_FAR_KEYWORD
1174
+ # define FARDATA FAR
1175
+ # include <dos.h>
1176
+ # endif
1177
+ #endif
1178
+
1179
+ /* SJT: default case */
1180
+ #ifndef FAR
1181
+ # define FAR
1182
+ #endif
1183
+
1184
+ /* At this point FAR is always defined */
1185
+ #ifndef FARDATA
1186
+ # define FARDATA
1187
+ #endif
1188
+
1189
+ /* Typedef for floating-point numbers that are converted
1190
+ to fixed-point with a multiple of 100,000, e.g., int_gamma */
1191
+ typedef png_int_32 png_fixed_point;
1192
+
1193
+ /* Add typedefs for pointers */
1194
+ typedef void FAR * png_voidp;
1195
+ typedef png_byte FAR * png_bytep;
1196
+ typedef png_uint_32 FAR * png_uint_32p;
1197
+ typedef png_int_32 FAR * png_int_32p;
1198
+ typedef png_uint_16 FAR * png_uint_16p;
1199
+ typedef png_int_16 FAR * png_int_16p;
1200
+ typedef PNG_CONST char FAR * png_const_charp;
1201
+ typedef char FAR * png_charp;
1202
+ typedef png_fixed_point FAR * png_fixed_point_p;
1203
+
1204
+ #ifndef PNG_NO_STDIO
1205
+ #if defined(_WIN32_WCE)
1206
+ typedef HANDLE png_FILE_p;
1207
+ #else
1208
+ typedef FILE * png_FILE_p;
1209
+ #endif
1210
+ #endif
1211
+
1212
+ #ifdef PNG_FLOATING_POINT_SUPPORTED
1213
+ typedef double FAR * png_doublep;
1214
+ #endif
1215
+
1216
+ /* Pointers to pointers; i.e. arrays */
1217
+ typedef png_byte FAR * FAR * png_bytepp;
1218
+ typedef png_uint_32 FAR * FAR * png_uint_32pp;
1219
+ typedef png_int_32 FAR * FAR * png_int_32pp;
1220
+ typedef png_uint_16 FAR * FAR * png_uint_16pp;
1221
+ typedef png_int_16 FAR * FAR * png_int_16pp;
1222
+ typedef PNG_CONST char FAR * FAR * png_const_charpp;
1223
+ typedef char FAR * FAR * png_charpp;
1224
+ typedef png_fixed_point FAR * FAR * png_fixed_point_pp;
1225
+ #ifdef PNG_FLOATING_POINT_SUPPORTED
1226
+ typedef double FAR * FAR * png_doublepp;
1227
+ #endif
1228
+
1229
+ /* Pointers to pointers to pointers; i.e., pointer to array */
1230
+ typedef char FAR * FAR * FAR * png_charppp;
1231
+
1232
+ #if defined(PNG_1_0_X) || defined(PNG_1_2_X)
1233
+ /* SPC - Is this stuff deprecated? */
1234
+ /* It'll be removed as of libpng-1.3.0 - GR-P */
1235
+ /* libpng typedefs for types in zlib. If zlib changes
1236
+ * or another compression library is used, then change these.
1237
+ * Eliminates need to change all the source files.
1238
+ */
1239
+ typedef charf * png_zcharp;
1240
+ typedef charf * FAR * png_zcharpp;
1241
+ typedef z_stream FAR * png_zstreamp;
1242
+ #endif /* (PNG_1_0_X) || defined(PNG_1_2_X) */
1243
+
1244
+ /*
1245
+ * Define PNG_BUILD_DLL if the module being built is a Windows
1246
+ * LIBPNG DLL.
1247
+ *
1248
+ * Define PNG_USE_DLL if you want to *link* to the Windows LIBPNG DLL.
1249
+ * It is equivalent to Microsoft predefined macro _DLL that is
1250
+ * automatically defined when you compile using the share
1251
+ * version of the CRT (C Run-Time library)
1252
+ *
1253
+ * The cygwin mods make this behavior a little different:
1254
+ * Define PNG_BUILD_DLL if you are building a dll for use with cygwin
1255
+ * Define PNG_STATIC if you are building a static library for use with cygwin,
1256
+ * -or- if you are building an application that you want to link to the
1257
+ * static library.
1258
+ * PNG_USE_DLL is defined by default (no user action needed) unless one of
1259
+ * the other flags is defined.
1260
+ */
1261
+
1262
+ #if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
1263
+ # define PNG_DLL
1264
+ #endif
1265
+ /* If CYGWIN, then disallow GLOBAL ARRAYS unless building a static lib.
1266
+ * When building a static lib, default to no GLOBAL ARRAYS, but allow
1267
+ * command-line override
1268
+ */
1269
+ #if defined(__CYGWIN__)
1270
+ # if !defined(PNG_STATIC)
1271
+ # if defined(PNG_USE_GLOBAL_ARRAYS)
1272
+ # undef PNG_USE_GLOBAL_ARRAYS
1273
+ # endif
1274
+ # if !defined(PNG_USE_LOCAL_ARRAYS)
1275
+ # define PNG_USE_LOCAL_ARRAYS
1276
+ # endif
1277
+ # else
1278
+ # if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
1279
+ # if defined(PNG_USE_GLOBAL_ARRAYS)
1280
+ # undef PNG_USE_GLOBAL_ARRAYS
1281
+ # endif
1282
+ # endif
1283
+ # endif
1284
+ # if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1285
+ # define PNG_USE_LOCAL_ARRAYS
1286
+ # endif
1287
+ #endif
1288
+
1289
+ /* Do not use global arrays (helps with building DLL's)
1290
+ * They are no longer used in libpng itself, since version 1.0.5c,
1291
+ * but might be required for some pre-1.0.5c applications.
1292
+ */
1293
+ #if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
1294
+ # if defined(PNG_NO_GLOBAL_ARRAYS) || \
1295
+ (defined(__GNUC__) && defined(PNG_DLL)) || defined(_MSC_VER)
1296
+ # define PNG_USE_LOCAL_ARRAYS
1297
+ # else
1298
+ # define PNG_USE_GLOBAL_ARRAYS
1299
+ # endif
1300
+ #endif
1301
+
1302
+ #if defined(__CYGWIN__)
1303
+ # undef PNGAPI
1304
+ # define PNGAPI __cdecl
1305
+ # undef PNG_IMPEXP
1306
+ # define PNG_IMPEXP
1307
+ #endif
1308
+
1309
+ /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
1310
+ * you may get warnings regarding the linkage of png_zalloc and png_zfree.
1311
+ * Don't ignore those warnings; you must also reset the default calling
1312
+ * convention in your compiler to match your PNGAPI, and you must build
1313
+ * zlib and your applications the same way you build libpng.
1314
+ */
1315
+
1316
+ #if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
1317
+ # ifndef PNG_NO_MODULEDEF
1318
+ # define PNG_NO_MODULEDEF
1319
+ # endif
1320
+ #endif
1321
+
1322
+ #if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF)
1323
+ # define PNG_IMPEXP
1324
+ #endif
1325
+
1326
+ #if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
1327
+ (( defined(_Windows) || defined(_WINDOWS) || \
1328
+ defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
1329
+
1330
+ # ifndef PNGAPI
1331
+ # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
1332
+ # define PNGAPI __cdecl
1333
+ # else
1334
+ # define PNGAPI _cdecl
1335
+ # endif
1336
+ # endif
1337
+
1338
+ # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \
1339
+ 0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */)
1340
+ # define PNG_IMPEXP
1341
+ # endif
1342
+
1343
+ # if !defined(PNG_IMPEXP)
1344
+
1345
+ # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
1346
+ # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
1347
+
1348
+ /* Borland/Microsoft */
1349
+ # if defined(_MSC_VER) || defined(__BORLANDC__)
1350
+ # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
1351
+ # define PNG_EXPORT PNG_EXPORT_TYPE1
1352
+ # else
1353
+ # define PNG_EXPORT PNG_EXPORT_TYPE2
1354
+ # if defined(PNG_BUILD_DLL)
1355
+ # define PNG_IMPEXP __export
1356
+ # else
1357
+ # define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in
1358
+ VC++ */
1359
+ # endif /* Exists in Borland C++ for
1360
+ C++ classes (== huge) */
1361
+ # endif
1362
+ # endif
1363
+
1364
+ # if !defined(PNG_IMPEXP)
1365
+ # if defined(PNG_BUILD_DLL)
1366
+ # define PNG_IMPEXP __declspec(dllexport)
1367
+ # else
1368
+ # define PNG_IMPEXP __declspec(dllimport)
1369
+ # endif
1370
+ # endif
1371
+ # endif /* PNG_IMPEXP */
1372
+ #else /* !(DLL || non-cygwin WINDOWS) */
1373
+ # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
1374
+ # ifndef PNGAPI
1375
+ # define PNGAPI _System
1376
+ # endif
1377
+ # else
1378
+ # if 0 /* ... other platforms, with other meanings */
1379
+ # endif
1380
+ # endif
1381
+ #endif
1382
+
1383
+ #ifndef PNGAPI
1384
+ # define PNGAPI
1385
+ #endif
1386
+ #ifndef PNG_IMPEXP
1387
+ # define PNG_IMPEXP
1388
+ #endif
1389
+
1390
+ #ifdef PNG_BUILDSYMS
1391
+ # ifndef PNG_EXPORT
1392
+ # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END
1393
+ # endif
1394
+ # ifdef PNG_USE_GLOBAL_ARRAYS
1395
+ # ifndef PNG_EXPORT_VAR
1396
+ # define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT
1397
+ # endif
1398
+ # endif
1399
+ #endif
1400
+
1401
+ #ifndef PNG_EXPORT
1402
+ # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
1403
+ #endif
1404
+
1405
+ #ifdef PNG_USE_GLOBAL_ARRAYS
1406
+ # ifndef PNG_EXPORT_VAR
1407
+ # define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type
1408
+ # endif
1409
+ #endif
1410
+
1411
+ /* User may want to use these so they are not in PNG_INTERNAL. Any library
1412
+ * functions that are passed far data must be model independent.
1413
+ */
1414
+
1415
+ #ifndef PNG_ABORT
1416
+ # define PNG_ABORT() abort()
1417
+ #endif
1418
+
1419
+ #ifdef PNG_SETJMP_SUPPORTED
1420
+ # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
1421
+ #else
1422
+ # define png_jmpbuf(png_ptr) \
1423
+ (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
1424
+ #endif
1425
+
1426
+ #if defined(USE_FAR_KEYWORD) /* memory model independent fns */
1427
+ /* use this to make far-to-near assignments */
1428
+ # define CHECK 1
1429
+ # define NOCHECK 0
1430
+ # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK))
1431
+ # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK))
1432
+ # define png_snprintf _fsnprintf /* Added to v 1.2.19 */
1433
+ # define png_strlen _fstrlen
1434
+ # define png_memcmp _fmemcmp /* SJT: added */
1435
+ # define png_memcpy _fmemcpy
1436
+ # define png_memset _fmemset
1437
+ #else /* use the usual functions */
1438
+ # define CVT_PTR(ptr) (ptr)
1439
+ # define CVT_PTR_NOCHECK(ptr) (ptr)
1440
+ # ifndef PNG_NO_SNPRINTF
1441
+ # ifdef _MSC_VER
1442
+ # define png_snprintf _snprintf /* Added to v 1.2.19 */
1443
+ # define png_snprintf2 _snprintf
1444
+ # define png_snprintf6 _snprintf
1445
+ # else
1446
+ # define png_snprintf snprintf /* Added to v 1.2.19 */
1447
+ # define png_snprintf2 snprintf
1448
+ # define png_snprintf6 snprintf
1449
+ # endif
1450
+ # else
1451
+ /* You don't have or don't want to use snprintf(). Caution: Using
1452
+ * sprintf instead of snprintf exposes your application to accidental
1453
+ * or malevolent buffer overflows. If you don't have snprintf()
1454
+ * as a general rule you should provide one (you can get one from
1455
+ * Portable OpenSSH). */
1456
+ # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
1457
+ # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
1458
+ # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
1459
+ sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
1460
+ # endif
1461
+ # define png_strlen strlen
1462
+ # define png_memcmp memcmp /* SJT: added */
1463
+ # define png_memcpy memcpy
1464
+ # define png_memset memset
1465
+ #endif
1466
+ /* End of memory model independent support */
1467
+
1468
+ /* Just a little check that someone hasn't tried to define something
1469
+ * contradictory.
1470
+ */
1471
+ #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K)
1472
+ # undef PNG_ZBUF_SIZE
1473
+ # define PNG_ZBUF_SIZE 65536L
1474
+ #endif
1475
+
1476
+ /* Added at libpng-1.2.8 */
1477
+ #endif /* PNG_VERSION_INFO_ONLY */
1478
+
1479
+ #endif /* PNGCONF_H */