@basemaps/lambda-tiler 6.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (708) hide show
  1. package/CHANGELOG.md +981 -0
  2. package/LICENSE +21 -0
  3. package/README.md +3 -0
  4. package/build/__test__/index.test.d.ts +2 -0
  5. package/build/__test__/index.test.d.ts.map +1 -0
  6. package/build/__test__/index.test.js +45 -0
  7. package/build/__test__/tiff.cache.test.d.ts +2 -0
  8. package/build/__test__/tiff.cache.test.d.ts.map +1 -0
  9. package/build/__test__/tiff.cache.test.js +58 -0
  10. package/build/__test__/tile.cache.key.test.d.ts +2 -0
  11. package/build/__test__/tile.cache.key.test.d.ts.map +1 -0
  12. package/build/__test__/tile.cache.key.test.js +49 -0
  13. package/build/__test__/tile.set.cache.test.d.ts +2 -0
  14. package/build/__test__/tile.set.cache.test.d.ts.map +1 -0
  15. package/build/__test__/tile.set.cache.test.js +120 -0
  16. package/build/__test__/tile.set.test.d.ts +2 -0
  17. package/build/__test__/tile.set.test.d.ts.map +1 -0
  18. package/build/__test__/tile.set.test.js +16 -0
  19. package/build/__test__/wmts.capability.test.d.ts +2 -0
  20. package/build/__test__/wmts.capability.test.d.ts.map +1 -0
  21. package/build/__test__/wmts.capability.test.js +193 -0
  22. package/build/__test__/xyz.test.d.ts +2 -0
  23. package/build/__test__/xyz.test.d.ts.map +1 -0
  24. package/build/__test__/xyz.test.js +282 -0
  25. package/build/__test__/xyz.util.d.ts +10 -0
  26. package/build/__test__/xyz.util.d.ts.map +1 -0
  27. package/build/__test__/xyz.util.js +48 -0
  28. package/build/api.key.d.ts +2 -0
  29. package/build/api.key.d.ts.map +1 -0
  30. package/build/api.key.js +23 -0
  31. package/build/cli/dump.d.ts +2 -0
  32. package/build/cli/dump.d.ts.map +1 -0
  33. package/build/cli/dump.js +48 -0
  34. package/build/cli/serve.d.ts +2 -0
  35. package/build/cli/serve.d.ts.map +1 -0
  36. package/build/cli/serve.js +116 -0
  37. package/build/cli/tile.set.local.d.ts +12 -0
  38. package/build/cli/tile.set.local.d.ts.map +1 -0
  39. package/build/cli/tile.set.local.js +39 -0
  40. package/build/cli/validate.d.ts +2 -0
  41. package/build/cli/validate.d.ts.map +1 -0
  42. package/build/cli/validate.js +47 -0
  43. package/build/index.d.ts +4 -0
  44. package/build/index.d.ts.map +1 -0
  45. package/build/index.js +29 -0
  46. package/build/router.d.ts +15 -0
  47. package/build/router.d.ts.map +1 -0
  48. package/build/router.js +47 -0
  49. package/build/routes/__test__/attribution.test.d.ts +2 -0
  50. package/build/routes/__test__/attribution.test.d.ts.map +1 -0
  51. package/build/routes/__test__/attribution.test.js +419 -0
  52. package/build/routes/__test__/health.test.d.ts +2 -0
  53. package/build/routes/__test__/health.test.d.ts.map +1 -0
  54. package/build/routes/__test__/health.test.js +68 -0
  55. package/build/routes/api.d.ts +5 -0
  56. package/build/routes/api.d.ts.map +1 -0
  57. package/build/routes/api.js +16 -0
  58. package/build/routes/attribution.d.ts +10 -0
  59. package/build/routes/attribution.d.ts.map +1 -0
  60. package/build/routes/attribution.js +199 -0
  61. package/build/routes/health.d.ts +19 -0
  62. package/build/routes/health.d.ts.map +1 -0
  63. package/build/routes/health.js +75 -0
  64. package/build/routes/tile.d.ts +23 -0
  65. package/build/routes/tile.d.ts.map +1 -0
  66. package/build/routes/tile.etag.d.ts +11 -0
  67. package/build/routes/tile.etag.d.ts.map +1 -0
  68. package/build/routes/tile.etag.js +29 -0
  69. package/build/routes/tile.js +180 -0
  70. package/build/tiff.cache.d.ts +17 -0
  71. package/build/tiff.cache.d.ts.map +1 -0
  72. package/build/tiff.cache.js +45 -0
  73. package/build/tile.set.cache.d.ts +21 -0
  74. package/build/tile.set.cache.d.ts.map +1 -0
  75. package/build/tile.set.cache.js +96 -0
  76. package/build/tile.set.d.ts +20 -0
  77. package/build/tile.set.d.ts.map +1 -0
  78. package/build/tile.set.js +20 -0
  79. package/build/tile.set.raster.d.ts +47 -0
  80. package/build/tile.set.raster.d.ts.map +1 -0
  81. package/build/tile.set.raster.js +181 -0
  82. package/build/tile.set.vector.d.ts +16 -0
  83. package/build/tile.set.vector.d.ts.map +1 -0
  84. package/build/tile.set.vector.js +51 -0
  85. package/build/validate.d.ts +16 -0
  86. package/build/validate.d.ts.map +1 -0
  87. package/build/validate.js +31 -0
  88. package/build/wmts.capability.d.ts +24 -0
  89. package/build/wmts.capability.d.ts.map +1 -0
  90. package/build/wmts.capability.js +173 -0
  91. package/bundle.sh +11 -0
  92. package/dist/index.js +27642 -0
  93. package/dist/node_modules/ansi-regex/index.js +4 -0
  94. package/dist/node_modules/ansi-regex/license +21 -0
  95. package/dist/node_modules/ansi-regex/package.json +108 -0
  96. package/dist/node_modules/ansi-regex/readme.md +39 -0
  97. package/dist/node_modules/aproba/LICENSE +14 -0
  98. package/dist/node_modules/aproba/README.md +94 -0
  99. package/dist/node_modules/aproba/index.js +105 -0
  100. package/dist/node_modules/aproba/package.json +62 -0
  101. package/dist/node_modules/are-we-there-yet/CHANGES.md +37 -0
  102. package/dist/node_modules/are-we-there-yet/LICENSE +5 -0
  103. package/dist/node_modules/are-we-there-yet/README.md +195 -0
  104. package/dist/node_modules/are-we-there-yet/index.js +4 -0
  105. package/dist/node_modules/are-we-there-yet/package.json +63 -0
  106. package/dist/node_modules/are-we-there-yet/tracker-base.js +11 -0
  107. package/dist/node_modules/are-we-there-yet/tracker-group.js +107 -0
  108. package/dist/node_modules/are-we-there-yet/tracker-stream.js +36 -0
  109. package/dist/node_modules/are-we-there-yet/tracker.js +30 -0
  110. package/dist/node_modules/base64-js/LICENSE +21 -0
  111. package/dist/node_modules/base64-js/README.md +34 -0
  112. package/dist/node_modules/base64-js/base64js.min.js +1 -0
  113. package/dist/node_modules/base64-js/index.d.ts +3 -0
  114. package/dist/node_modules/base64-js/index.js +150 -0
  115. package/dist/node_modules/base64-js/package.json +75 -0
  116. package/dist/node_modules/bl/.travis.yml +17 -0
  117. package/dist/node_modules/bl/BufferList.js +396 -0
  118. package/dist/node_modules/bl/LICENSE.md +13 -0
  119. package/dist/node_modules/bl/README.md +247 -0
  120. package/dist/node_modules/bl/bl.js +84 -0
  121. package/dist/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  122. package/dist/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +136 -0
  123. package/dist/node_modules/bl/node_modules/readable-stream/LICENSE +47 -0
  124. package/dist/node_modules/bl/node_modules/readable-stream/README.md +106 -0
  125. package/dist/node_modules/bl/node_modules/readable-stream/errors-browser.js +127 -0
  126. package/dist/node_modules/bl/node_modules/readable-stream/errors.js +116 -0
  127. package/dist/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +17 -0
  128. package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  129. package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  130. package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  131. package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  132. package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  133. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  134. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  135. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  136. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  137. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  138. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  139. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  140. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  141. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  142. package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  143. package/dist/node_modules/bl/node_modules/readable-stream/package.json +97 -0
  144. package/dist/node_modules/bl/node_modules/readable-stream/readable-browser.js +9 -0
  145. package/dist/node_modules/bl/node_modules/readable-stream/readable.js +16 -0
  146. package/dist/node_modules/bl/package.json +69 -0
  147. package/dist/node_modules/bl/test/convert.js +21 -0
  148. package/dist/node_modules/bl/test/indexOf.js +492 -0
  149. package/dist/node_modules/bl/test/isBufferList.js +32 -0
  150. package/dist/node_modules/bl/test/test.js +869 -0
  151. package/dist/node_modules/buffer/AUTHORS.md +70 -0
  152. package/dist/node_modules/buffer/LICENSE +21 -0
  153. package/dist/node_modules/buffer/README.md +410 -0
  154. package/dist/node_modules/buffer/index.d.ts +186 -0
  155. package/dist/node_modules/buffer/index.js +1817 -0
  156. package/dist/node_modules/buffer/package.json +127 -0
  157. package/dist/node_modules/chownr/LICENSE +15 -0
  158. package/dist/node_modules/chownr/README.md +3 -0
  159. package/dist/node_modules/chownr/chownr.js +167 -0
  160. package/dist/node_modules/chownr/package.json +62 -0
  161. package/dist/node_modules/code-point-at/index.js +32 -0
  162. package/dist/node_modules/code-point-at/license +21 -0
  163. package/dist/node_modules/code-point-at/package.json +70 -0
  164. package/dist/node_modules/code-point-at/readme.md +32 -0
  165. package/dist/node_modules/color/LICENSE +21 -0
  166. package/dist/node_modules/color/README.md +123 -0
  167. package/dist/node_modules/color/index.js +482 -0
  168. package/dist/node_modules/color/package.json +72 -0
  169. package/dist/node_modules/color-convert/CHANGELOG.md +54 -0
  170. package/dist/node_modules/color-convert/LICENSE +21 -0
  171. package/dist/node_modules/color-convert/README.md +68 -0
  172. package/dist/node_modules/color-convert/conversions.js +868 -0
  173. package/dist/node_modules/color-convert/index.js +78 -0
  174. package/dist/node_modules/color-convert/package.json +81 -0
  175. package/dist/node_modules/color-convert/route.js +97 -0
  176. package/dist/node_modules/color-name/.eslintrc.json +43 -0
  177. package/dist/node_modules/color-name/LICENSE +8 -0
  178. package/dist/node_modules/color-name/README.md +11 -0
  179. package/dist/node_modules/color-name/index.js +152 -0
  180. package/dist/node_modules/color-name/package.json +54 -0
  181. package/dist/node_modules/color-name/test.js +7 -0
  182. package/dist/node_modules/color-string/LICENSE +21 -0
  183. package/dist/node_modules/color-string/README.md +62 -0
  184. package/dist/node_modules/color-string/index.js +242 -0
  185. package/dist/node_modules/color-string/package.json +81 -0
  186. package/dist/node_modules/console-control-strings/LICENSE +13 -0
  187. package/dist/node_modules/console-control-strings/README.md +145 -0
  188. package/dist/node_modules/console-control-strings/README.md~ +140 -0
  189. package/dist/node_modules/console-control-strings/index.js +125 -0
  190. package/dist/node_modules/console-control-strings/package.json +61 -0
  191. package/dist/node_modules/core-util-is/LICENSE +19 -0
  192. package/dist/node_modules/core-util-is/README.md +3 -0
  193. package/dist/node_modules/core-util-is/lib/util.js +107 -0
  194. package/dist/node_modules/core-util-is/package.json +68 -0
  195. package/dist/node_modules/decompress-response/index.d.ts +29 -0
  196. package/dist/node_modules/decompress-response/index.js +40 -0
  197. package/dist/node_modules/decompress-response/license +9 -0
  198. package/dist/node_modules/decompress-response/package.json +82 -0
  199. package/dist/node_modules/decompress-response/readme.md +52 -0
  200. package/dist/node_modules/deep-extend/CHANGELOG.md +46 -0
  201. package/dist/node_modules/deep-extend/LICENSE +20 -0
  202. package/dist/node_modules/deep-extend/README.md +91 -0
  203. package/dist/node_modules/deep-extend/index.js +1 -0
  204. package/dist/node_modules/deep-extend/lib/deep-extend.js +150 -0
  205. package/dist/node_modules/deep-extend/package.json +92 -0
  206. package/dist/node_modules/delegates/History.md +22 -0
  207. package/dist/node_modules/delegates/License +20 -0
  208. package/dist/node_modules/delegates/Makefile +8 -0
  209. package/dist/node_modules/delegates/Readme.md +94 -0
  210. package/dist/node_modules/delegates/index.js +121 -0
  211. package/dist/node_modules/delegates/package.json +48 -0
  212. package/dist/node_modules/delegates/test/index.js +94 -0
  213. package/dist/node_modules/detect-libc/LICENSE +201 -0
  214. package/dist/node_modules/detect-libc/README.md +78 -0
  215. package/dist/node_modules/detect-libc/bin/detect-libc.js +18 -0
  216. package/dist/node_modules/detect-libc/lib/detect-libc.js +92 -0
  217. package/dist/node_modules/detect-libc/package.json +71 -0
  218. package/dist/node_modules/end-of-stream/LICENSE +21 -0
  219. package/dist/node_modules/end-of-stream/README.md +54 -0
  220. package/dist/node_modules/end-of-stream/index.js +94 -0
  221. package/dist/node_modules/end-of-stream/package.json +66 -0
  222. package/dist/node_modules/expand-template/.travis.yml +6 -0
  223. package/dist/node_modules/expand-template/LICENSE +21 -0
  224. package/dist/node_modules/expand-template/README.md +43 -0
  225. package/dist/node_modules/expand-template/index.js +26 -0
  226. package/dist/node_modules/expand-template/package.json +60 -0
  227. package/dist/node_modules/expand-template/test.js +67 -0
  228. package/dist/node_modules/fs-constants/LICENSE +21 -0
  229. package/dist/node_modules/fs-constants/README.md +26 -0
  230. package/dist/node_modules/fs-constants/browser.js +1 -0
  231. package/dist/node_modules/fs-constants/index.js +1 -0
  232. package/dist/node_modules/fs-constants/package.json +47 -0
  233. package/dist/node_modules/gauge/CHANGELOG.md +160 -0
  234. package/dist/node_modules/gauge/LICENSE +13 -0
  235. package/dist/node_modules/gauge/README.md +399 -0
  236. package/dist/node_modules/gauge/base-theme.js +14 -0
  237. package/dist/node_modules/gauge/error.js +24 -0
  238. package/dist/node_modules/gauge/has-color.js +12 -0
  239. package/dist/node_modules/gauge/index.js +233 -0
  240. package/dist/node_modules/gauge/package.json +91 -0
  241. package/dist/node_modules/gauge/plumbing.js +48 -0
  242. package/dist/node_modules/gauge/process.js +3 -0
  243. package/dist/node_modules/gauge/progress-bar.js +35 -0
  244. package/dist/node_modules/gauge/render-template.js +181 -0
  245. package/dist/node_modules/gauge/set-immediate.js +7 -0
  246. package/dist/node_modules/gauge/set-interval.js +3 -0
  247. package/dist/node_modules/gauge/spin.js +5 -0
  248. package/dist/node_modules/gauge/template-item.js +73 -0
  249. package/dist/node_modules/gauge/theme-set.js +115 -0
  250. package/dist/node_modules/gauge/themes.js +54 -0
  251. package/dist/node_modules/gauge/wide-truncate.js +25 -0
  252. package/dist/node_modules/github-from-package/.travis.yml +4 -0
  253. package/dist/node_modules/github-from-package/LICENSE +18 -0
  254. package/dist/node_modules/github-from-package/example/package.json +8 -0
  255. package/dist/node_modules/github-from-package/example/url.js +3 -0
  256. package/dist/node_modules/github-from-package/index.js +17 -0
  257. package/dist/node_modules/github-from-package/package.json +58 -0
  258. package/dist/node_modules/github-from-package/readme.markdown +53 -0
  259. package/dist/node_modules/github-from-package/test/a.json +8 -0
  260. package/dist/node_modules/github-from-package/test/b.json +5 -0
  261. package/dist/node_modules/github-from-package/test/c.json +5 -0
  262. package/dist/node_modules/github-from-package/test/d.json +7 -0
  263. package/dist/node_modules/github-from-package/test/e.json +5 -0
  264. package/dist/node_modules/github-from-package/test/url.js +19 -0
  265. package/dist/node_modules/has-unicode/LICENSE +14 -0
  266. package/dist/node_modules/has-unicode/README.md +43 -0
  267. package/dist/node_modules/has-unicode/index.js +16 -0
  268. package/dist/node_modules/has-unicode/package.json +58 -0
  269. package/dist/node_modules/ieee754/LICENSE +11 -0
  270. package/dist/node_modules/ieee754/README.md +51 -0
  271. package/dist/node_modules/ieee754/index.d.ts +10 -0
  272. package/dist/node_modules/ieee754/index.js +85 -0
  273. package/dist/node_modules/ieee754/package.json +84 -0
  274. package/dist/node_modules/inherits/LICENSE +16 -0
  275. package/dist/node_modules/inherits/README.md +42 -0
  276. package/dist/node_modules/inherits/inherits.js +9 -0
  277. package/dist/node_modules/inherits/inherits_browser.js +27 -0
  278. package/dist/node_modules/inherits/package.json +65 -0
  279. package/dist/node_modules/ini/LICENSE +15 -0
  280. package/dist/node_modules/ini/README.md +102 -0
  281. package/dist/node_modules/ini/ini.js +206 -0
  282. package/dist/node_modules/ini/package.json +66 -0
  283. package/dist/node_modules/is-arrayish/LICENSE +21 -0
  284. package/dist/node_modules/is-arrayish/README.md +16 -0
  285. package/dist/node_modules/is-arrayish/index.js +9 -0
  286. package/dist/node_modules/is-arrayish/package.json +77 -0
  287. package/dist/node_modules/is-arrayish/yarn-error.log +1443 -0
  288. package/dist/node_modules/is-fullwidth-code-point/index.js +46 -0
  289. package/dist/node_modules/is-fullwidth-code-point/license +21 -0
  290. package/dist/node_modules/is-fullwidth-code-point/package.json +77 -0
  291. package/dist/node_modules/is-fullwidth-code-point/readme.md +39 -0
  292. package/dist/node_modules/isarray/.travis.yml +4 -0
  293. package/dist/node_modules/isarray/Makefile +6 -0
  294. package/dist/node_modules/isarray/README.md +60 -0
  295. package/dist/node_modules/isarray/component.json +19 -0
  296. package/dist/node_modules/isarray/index.js +5 -0
  297. package/dist/node_modules/isarray/package.json +73 -0
  298. package/dist/node_modules/isarray/test.js +20 -0
  299. package/dist/node_modules/lru-cache/LICENSE +15 -0
  300. package/dist/node_modules/lru-cache/README.md +166 -0
  301. package/dist/node_modules/lru-cache/index.js +334 -0
  302. package/dist/node_modules/lru-cache/package.json +69 -0
  303. package/dist/node_modules/mimic-response/index.d.ts +17 -0
  304. package/dist/node_modules/mimic-response/index.js +38 -0
  305. package/dist/node_modules/mimic-response/license +9 -0
  306. package/dist/node_modules/mimic-response/package.json +74 -0
  307. package/dist/node_modules/mimic-response/readme.md +57 -0
  308. package/dist/node_modules/minimist/.travis.yml +8 -0
  309. package/dist/node_modules/minimist/LICENSE +18 -0
  310. package/dist/node_modules/minimist/example/parse.js +2 -0
  311. package/dist/node_modules/minimist/index.js +245 -0
  312. package/dist/node_modules/minimist/package.json +74 -0
  313. package/dist/node_modules/minimist/readme.markdown +95 -0
  314. package/dist/node_modules/minimist/test/all_bool.js +32 -0
  315. package/dist/node_modules/minimist/test/bool.js +178 -0
  316. package/dist/node_modules/minimist/test/dash.js +31 -0
  317. package/dist/node_modules/minimist/test/default_bool.js +35 -0
  318. package/dist/node_modules/minimist/test/dotted.js +22 -0
  319. package/dist/node_modules/minimist/test/kv_short.js +16 -0
  320. package/dist/node_modules/minimist/test/long.js +31 -0
  321. package/dist/node_modules/minimist/test/num.js +36 -0
  322. package/dist/node_modules/minimist/test/parse.js +197 -0
  323. package/dist/node_modules/minimist/test/parse_modified.js +9 -0
  324. package/dist/node_modules/minimist/test/proto.js +44 -0
  325. package/dist/node_modules/minimist/test/short.js +67 -0
  326. package/dist/node_modules/minimist/test/stop_early.js +15 -0
  327. package/dist/node_modules/minimist/test/unknown.js +102 -0
  328. package/dist/node_modules/minimist/test/whitespace.js +8 -0
  329. package/dist/node_modules/mkdirp-classic/LICENSE +21 -0
  330. package/dist/node_modules/mkdirp-classic/README.md +18 -0
  331. package/dist/node_modules/mkdirp-classic/index.js +98 -0
  332. package/dist/node_modules/mkdirp-classic/package.json +47 -0
  333. package/dist/node_modules/napi-build-utils/LICENSE +21 -0
  334. package/dist/node_modules/napi-build-utils/README.md +48 -0
  335. package/dist/node_modules/napi-build-utils/index.js +213 -0
  336. package/dist/node_modules/napi-build-utils/index.md +81 -0
  337. package/dist/node_modules/napi-build-utils/package.json +68 -0
  338. package/dist/node_modules/node-abi/.github/workflows/update-abi.yml +41 -0
  339. package/dist/node_modules/node-abi/.travis.yml +17 -0
  340. package/dist/node_modules/node-abi/CODE_OF_CONDUCT.md +73 -0
  341. package/dist/node_modules/node-abi/CONTRIBUTING.md +53 -0
  342. package/dist/node_modules/node-abi/LICENSE +21 -0
  343. package/dist/node_modules/node-abi/README.md +50 -0
  344. package/dist/node_modules/node-abi/abi_registry.json +144 -0
  345. package/dist/node_modules/node-abi/index.js +176 -0
  346. package/dist/node_modules/node-abi/node_modules/semver/CHANGELOG.md +39 -0
  347. package/dist/node_modules/node-abi/node_modules/semver/LICENSE +15 -0
  348. package/dist/node_modules/node-abi/node_modules/semver/README.md +412 -0
  349. package/dist/node_modules/node-abi/node_modules/semver/bin/semver +160 -0
  350. package/dist/node_modules/node-abi/node_modules/semver/package.json +60 -0
  351. package/dist/node_modules/node-abi/node_modules/semver/range.bnf +16 -0
  352. package/dist/node_modules/node-abi/node_modules/semver/semver.js +1483 -0
  353. package/dist/node_modules/node-abi/package.json +65 -0
  354. package/dist/node_modules/node-abi/scripts/update-abi-registry.js +119 -0
  355. package/dist/node_modules/node-abi/test/index.js +174 -0
  356. package/dist/node_modules/node-addon-api/CHANGELOG.md +722 -0
  357. package/dist/node_modules/node-addon-api/LICENSE.md +13 -0
  358. package/dist/node_modules/node-addon-api/README.md +293 -0
  359. package/dist/node_modules/node-addon-api/common.gypi +21 -0
  360. package/dist/node_modules/node-addon-api/except.gypi +16 -0
  361. package/dist/node_modules/node-addon-api/index.js +11 -0
  362. package/dist/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
  363. package/dist/node_modules/node-addon-api/napi-inl.h +5671 -0
  364. package/dist/node_modules/node-addon-api/napi.h +2727 -0
  365. package/dist/node_modules/node-addon-api/node_api.gyp +9 -0
  366. package/dist/node_modules/node-addon-api/noexcept.gypi +16 -0
  367. package/dist/node_modules/node-addon-api/nothing.c +0 -0
  368. package/dist/node_modules/node-addon-api/package-support.json +21 -0
  369. package/dist/node_modules/node-addon-api/package.json +393 -0
  370. package/dist/node_modules/node-addon-api/tools/README.md +73 -0
  371. package/dist/node_modules/node-addon-api/tools/check-napi.js +100 -0
  372. package/dist/node_modules/node-addon-api/tools/clang-format.js +67 -0
  373. package/dist/node_modules/node-addon-api/tools/conversion.js +309 -0
  374. package/dist/node_modules/npmlog/CHANGELOG.md +49 -0
  375. package/dist/node_modules/npmlog/LICENSE +15 -0
  376. package/dist/node_modules/npmlog/README.md +216 -0
  377. package/dist/node_modules/npmlog/log.js +309 -0
  378. package/dist/node_modules/npmlog/package.json +61 -0
  379. package/dist/node_modules/number-is-nan/index.js +4 -0
  380. package/dist/node_modules/number-is-nan/license +21 -0
  381. package/dist/node_modules/number-is-nan/package.json +67 -0
  382. package/dist/node_modules/number-is-nan/readme.md +28 -0
  383. package/dist/node_modules/object-assign/index.js +90 -0
  384. package/dist/node_modules/object-assign/license +21 -0
  385. package/dist/node_modules/object-assign/package.json +74 -0
  386. package/dist/node_modules/object-assign/readme.md +61 -0
  387. package/dist/node_modules/once/LICENSE +15 -0
  388. package/dist/node_modules/once/README.md +79 -0
  389. package/dist/node_modules/once/once.js +42 -0
  390. package/dist/node_modules/once/package.json +68 -0
  391. package/dist/node_modules/prebuild-install/CHANGELOG.md +81 -0
  392. package/dist/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  393. package/dist/node_modules/prebuild-install/LICENSE +21 -0
  394. package/dist/node_modules/prebuild-install/README.md +139 -0
  395. package/dist/node_modules/prebuild-install/asset.js +44 -0
  396. package/dist/node_modules/prebuild-install/bin.js +78 -0
  397. package/dist/node_modules/prebuild-install/download.js +142 -0
  398. package/dist/node_modules/prebuild-install/error.js +14 -0
  399. package/dist/node_modules/prebuild-install/help.txt +16 -0
  400. package/dist/node_modules/prebuild-install/index.js +1 -0
  401. package/dist/node_modules/prebuild-install/log.js +25 -0
  402. package/dist/node_modules/prebuild-install/package.json +127 -0
  403. package/dist/node_modules/prebuild-install/proxy.js +35 -0
  404. package/dist/node_modules/prebuild-install/rc.js +60 -0
  405. package/dist/node_modules/prebuild-install/util.js +143 -0
  406. package/dist/node_modules/process-nextick-args/index.js +45 -0
  407. package/dist/node_modules/process-nextick-args/license.md +19 -0
  408. package/dist/node_modules/process-nextick-args/package.json +50 -0
  409. package/dist/node_modules/process-nextick-args/readme.md +18 -0
  410. package/dist/node_modules/pump/.travis.yml +5 -0
  411. package/dist/node_modules/pump/LICENSE +21 -0
  412. package/dist/node_modules/pump/README.md +65 -0
  413. package/dist/node_modules/pump/index.js +82 -0
  414. package/dist/node_modules/pump/package.json +60 -0
  415. package/dist/node_modules/pump/test-browser.js +66 -0
  416. package/dist/node_modules/pump/test-node.js +53 -0
  417. package/dist/node_modules/rc/LICENSE.APACHE2 +15 -0
  418. package/dist/node_modules/rc/LICENSE.BSD +26 -0
  419. package/dist/node_modules/rc/LICENSE.MIT +24 -0
  420. package/dist/node_modules/rc/README.md +227 -0
  421. package/dist/node_modules/rc/browser.js +7 -0
  422. package/dist/node_modules/rc/cli.js +4 -0
  423. package/dist/node_modules/rc/index.js +53 -0
  424. package/dist/node_modules/rc/lib/utils.js +104 -0
  425. package/dist/node_modules/rc/package.json +64 -0
  426. package/dist/node_modules/rc/test/ini.js +16 -0
  427. package/dist/node_modules/rc/test/nested-env-vars.js +50 -0
  428. package/dist/node_modules/rc/test/test.js +59 -0
  429. package/dist/node_modules/readable-stream/.travis.yml +34 -0
  430. package/dist/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  431. package/dist/node_modules/readable-stream/GOVERNANCE.md +136 -0
  432. package/dist/node_modules/readable-stream/LICENSE +47 -0
  433. package/dist/node_modules/readable-stream/README.md +58 -0
  434. package/dist/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  435. package/dist/node_modules/readable-stream/duplex-browser.js +1 -0
  436. package/dist/node_modules/readable-stream/duplex.js +1 -0
  437. package/dist/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  438. package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  439. package/dist/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  440. package/dist/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  441. package/dist/node_modules/readable-stream/lib/_stream_writable.js +687 -0
  442. package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +79 -0
  443. package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +74 -0
  444. package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  445. package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  446. package/dist/node_modules/readable-stream/package.json +81 -0
  447. package/dist/node_modules/readable-stream/passthrough.js +1 -0
  448. package/dist/node_modules/readable-stream/readable-browser.js +7 -0
  449. package/dist/node_modules/readable-stream/readable.js +19 -0
  450. package/dist/node_modules/readable-stream/transform.js +1 -0
  451. package/dist/node_modules/readable-stream/writable-browser.js +1 -0
  452. package/dist/node_modules/readable-stream/writable.js +8 -0
  453. package/dist/node_modules/safe-buffer/LICENSE +21 -0
  454. package/dist/node_modules/safe-buffer/README.md +584 -0
  455. package/dist/node_modules/safe-buffer/index.d.ts +187 -0
  456. package/dist/node_modules/safe-buffer/index.js +62 -0
  457. package/dist/node_modules/safe-buffer/package.json +64 -0
  458. package/dist/node_modules/semver/CHANGELOG.md +111 -0
  459. package/dist/node_modules/semver/LICENSE +15 -0
  460. package/dist/node_modules/semver/README.md +566 -0
  461. package/dist/node_modules/semver/bin/semver.js +173 -0
  462. package/dist/node_modules/semver/classes/comparator.js +135 -0
  463. package/dist/node_modules/semver/classes/index.js +5 -0
  464. package/dist/node_modules/semver/classes/range.js +510 -0
  465. package/dist/node_modules/semver/classes/semver.js +287 -0
  466. package/dist/node_modules/semver/functions/clean.js +6 -0
  467. package/dist/node_modules/semver/functions/cmp.js +48 -0
  468. package/dist/node_modules/semver/functions/coerce.js +51 -0
  469. package/dist/node_modules/semver/functions/compare-build.js +7 -0
  470. package/dist/node_modules/semver/functions/compare-loose.js +3 -0
  471. package/dist/node_modules/semver/functions/compare.js +5 -0
  472. package/dist/node_modules/semver/functions/diff.js +23 -0
  473. package/dist/node_modules/semver/functions/eq.js +3 -0
  474. package/dist/node_modules/semver/functions/gt.js +3 -0
  475. package/dist/node_modules/semver/functions/gte.js +3 -0
  476. package/dist/node_modules/semver/functions/inc.js +15 -0
  477. package/dist/node_modules/semver/functions/lt.js +3 -0
  478. package/dist/node_modules/semver/functions/lte.js +3 -0
  479. package/dist/node_modules/semver/functions/major.js +3 -0
  480. package/dist/node_modules/semver/functions/minor.js +3 -0
  481. package/dist/node_modules/semver/functions/neq.js +3 -0
  482. package/dist/node_modules/semver/functions/parse.js +33 -0
  483. package/dist/node_modules/semver/functions/patch.js +3 -0
  484. package/dist/node_modules/semver/functions/prerelease.js +6 -0
  485. package/dist/node_modules/semver/functions/rcompare.js +3 -0
  486. package/dist/node_modules/semver/functions/rsort.js +3 -0
  487. package/dist/node_modules/semver/functions/satisfies.js +10 -0
  488. package/dist/node_modules/semver/functions/sort.js +3 -0
  489. package/dist/node_modules/semver/functions/valid.js +6 -0
  490. package/dist/node_modules/semver/index.js +48 -0
  491. package/dist/node_modules/semver/internal/constants.js +17 -0
  492. package/dist/node_modules/semver/internal/debug.js +9 -0
  493. package/dist/node_modules/semver/internal/identifiers.js +23 -0
  494. package/dist/node_modules/semver/internal/parse-options.js +11 -0
  495. package/dist/node_modules/semver/internal/re.js +182 -0
  496. package/dist/node_modules/semver/package.json +73 -0
  497. package/dist/node_modules/semver/preload.js +2 -0
  498. package/dist/node_modules/semver/range.bnf +16 -0
  499. package/dist/node_modules/semver/ranges/gtr.js +4 -0
  500. package/dist/node_modules/semver/ranges/intersects.js +7 -0
  501. package/dist/node_modules/semver/ranges/ltr.js +4 -0
  502. package/dist/node_modules/semver/ranges/max-satisfying.js +25 -0
  503. package/dist/node_modules/semver/ranges/min-satisfying.js +24 -0
  504. package/dist/node_modules/semver/ranges/min-version.js +60 -0
  505. package/dist/node_modules/semver/ranges/outside.js +80 -0
  506. package/dist/node_modules/semver/ranges/simplify.js +44 -0
  507. package/dist/node_modules/semver/ranges/subset.js +222 -0
  508. package/dist/node_modules/semver/ranges/to-comparators.js +8 -0
  509. package/dist/node_modules/semver/ranges/valid.js +11 -0
  510. package/dist/node_modules/set-blocking/CHANGELOG.md +26 -0
  511. package/dist/node_modules/set-blocking/LICENSE.txt +14 -0
  512. package/dist/node_modules/set-blocking/README.md +31 -0
  513. package/dist/node_modules/set-blocking/index.js +7 -0
  514. package/dist/node_modules/set-blocking/package.json +70 -0
  515. package/dist/node_modules/sharp/LICENSE +191 -0
  516. package/dist/node_modules/sharp/README.md +117 -0
  517. package/dist/node_modules/sharp/binding.gyp +230 -0
  518. package/dist/node_modules/sharp/build/Release/sharp.node +0 -0
  519. package/dist/node_modules/sharp/install/can-compile.js +11 -0
  520. package/dist/node_modules/sharp/install/dll-copy.js +37 -0
  521. package/dist/node_modules/sharp/install/libvips.js +180 -0
  522. package/dist/node_modules/sharp/lib/agent.js +40 -0
  523. package/dist/node_modules/sharp/lib/channel.js +167 -0
  524. package/dist/node_modules/sharp/lib/colour.js +130 -0
  525. package/dist/node_modules/sharp/lib/composite.js +178 -0
  526. package/dist/node_modules/sharp/lib/constructor.js +392 -0
  527. package/dist/node_modules/sharp/lib/index.js +13 -0
  528. package/dist/node_modules/sharp/lib/input.js +429 -0
  529. package/dist/node_modules/sharp/lib/is.js +129 -0
  530. package/dist/node_modules/sharp/lib/libvips.js +123 -0
  531. package/dist/node_modules/sharp/lib/operation.js +648 -0
  532. package/dist/node_modules/sharp/lib/output.js +1035 -0
  533. package/dist/node_modules/sharp/lib/platform.js +25 -0
  534. package/dist/node_modules/sharp/lib/resize.js +454 -0
  535. package/dist/node_modules/sharp/lib/utility.js +179 -0
  536. package/dist/node_modules/sharp/package.json +427 -0
  537. package/dist/node_modules/sharp/src/common.cc +827 -0
  538. package/dist/node_modules/sharp/src/common.h +308 -0
  539. package/dist/node_modules/sharp/src/libvips/cplusplus/VConnection.cpp +178 -0
  540. package/dist/node_modules/sharp/src/libvips/cplusplus/VError.cpp +50 -0
  541. package/dist/node_modules/sharp/src/libvips/cplusplus/VImage.cpp +1467 -0
  542. package/dist/node_modules/sharp/src/libvips/cplusplus/VInterpolate.cpp +76 -0
  543. package/dist/node_modules/sharp/src/libvips/cplusplus/vips-operators.cpp +3526 -0
  544. package/dist/node_modules/sharp/src/metadata.cc +271 -0
  545. package/dist/node_modules/sharp/src/metadata.h +90 -0
  546. package/dist/node_modules/sharp/src/operations.cc +285 -0
  547. package/dist/node_modules/sharp/src/operations.h +102 -0
  548. package/dist/node_modules/sharp/src/pipeline.cc +1516 -0
  549. package/dist/node_modules/sharp/src/pipeline.h +325 -0
  550. package/dist/node_modules/sharp/src/sharp.cc +52 -0
  551. package/dist/node_modules/sharp/src/stats.cc +193 -0
  552. package/dist/node_modules/sharp/src/stats.h +70 -0
  553. package/dist/node_modules/sharp/src/utilities.cc +243 -0
  554. package/dist/node_modules/sharp/src/utilities.h +29 -0
  555. package/dist/node_modules/sharp/vendor/8.10.6/THIRD-PARTY-NOTICES.md +42 -0
  556. package/dist/node_modules/sharp/vendor/8.10.6/lib/libvips-cpp.so.42 +0 -0
  557. package/dist/node_modules/sharp/vendor/8.10.6/platform.json +1 -0
  558. package/dist/node_modules/sharp/vendor/8.10.6/versions.json +31 -0
  559. package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
  560. package/dist/node_modules/signal-exit/README.md +39 -0
  561. package/dist/node_modules/signal-exit/index.js +200 -0
  562. package/dist/node_modules/signal-exit/package.json +66 -0
  563. package/dist/node_modules/signal-exit/signals.js +53 -0
  564. package/dist/node_modules/simple-concat/.travis.yml +3 -0
  565. package/dist/node_modules/simple-concat/LICENSE +20 -0
  566. package/dist/node_modules/simple-concat/README.md +44 -0
  567. package/dist/node_modules/simple-concat/index.js +15 -0
  568. package/dist/node_modules/simple-concat/package.json +72 -0
  569. package/dist/node_modules/simple-concat/test/basic.js +41 -0
  570. package/dist/node_modules/simple-get/LICENSE +20 -0
  571. package/dist/node_modules/simple-get/README.md +319 -0
  572. package/dist/node_modules/simple-get/index.js +99 -0
  573. package/dist/node_modules/simple-get/package.json +79 -0
  574. package/dist/node_modules/simple-swizzle/LICENSE +21 -0
  575. package/dist/node_modules/simple-swizzle/README.md +39 -0
  576. package/dist/node_modules/simple-swizzle/index.js +29 -0
  577. package/dist/node_modules/simple-swizzle/package.json +71 -0
  578. package/dist/node_modules/string-width/index.js +37 -0
  579. package/dist/node_modules/string-width/license +21 -0
  580. package/dist/node_modules/string-width/package.json +89 -0
  581. package/dist/node_modules/string-width/readme.md +42 -0
  582. package/dist/node_modules/string_decoder/.travis.yml +50 -0
  583. package/dist/node_modules/string_decoder/LICENSE +48 -0
  584. package/dist/node_modules/string_decoder/README.md +47 -0
  585. package/dist/node_modules/string_decoder/lib/string_decoder.js +296 -0
  586. package/dist/node_modules/string_decoder/package.json +61 -0
  587. package/dist/node_modules/strip-ansi/index.js +6 -0
  588. package/dist/node_modules/strip-ansi/license +21 -0
  589. package/dist/node_modules/strip-ansi/package.json +102 -0
  590. package/dist/node_modules/strip-ansi/readme.md +33 -0
  591. package/dist/node_modules/strip-json-comments/index.js +70 -0
  592. package/dist/node_modules/strip-json-comments/license +21 -0
  593. package/dist/node_modules/strip-json-comments/package.json +74 -0
  594. package/dist/node_modules/strip-json-comments/readme.md +64 -0
  595. package/dist/node_modules/tar-fs/.travis.yml +6 -0
  596. package/dist/node_modules/tar-fs/LICENSE +21 -0
  597. package/dist/node_modules/tar-fs/README.md +165 -0
  598. package/dist/node_modules/tar-fs/index.js +351 -0
  599. package/dist/node_modules/tar-fs/package.json +69 -0
  600. package/dist/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  601. package/dist/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  602. package/dist/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  603. package/dist/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  604. package/dist/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  605. package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  606. package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  607. package/dist/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  608. package/dist/node_modules/tar-fs/test/fixtures/e/file +0 -0
  609. package/dist/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  610. package/dist/node_modules/tar-fs/test/index.js +346 -0
  611. package/dist/node_modules/tar-stream/LICENSE +21 -0
  612. package/dist/node_modules/tar-stream/README.md +168 -0
  613. package/dist/node_modules/tar-stream/extract.js +257 -0
  614. package/dist/node_modules/tar-stream/headers.js +295 -0
  615. package/dist/node_modules/tar-stream/index.js +2 -0
  616. package/dist/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  617. package/dist/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +136 -0
  618. package/dist/node_modules/tar-stream/node_modules/readable-stream/LICENSE +47 -0
  619. package/dist/node_modules/tar-stream/node_modules/readable-stream/README.md +106 -0
  620. package/dist/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +127 -0
  621. package/dist/node_modules/tar-stream/node_modules/readable-stream/errors.js +116 -0
  622. package/dist/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +17 -0
  623. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  624. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  625. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  626. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  627. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  628. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  629. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  630. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  631. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  632. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  633. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  634. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  635. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  636. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  637. package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  638. package/dist/node_modules/tar-stream/node_modules/readable-stream/package.json +97 -0
  639. package/dist/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +9 -0
  640. package/dist/node_modules/tar-stream/node_modules/readable-stream/readable.js +16 -0
  641. package/dist/node_modules/tar-stream/pack.js +255 -0
  642. package/dist/node_modules/tar-stream/package.json +90 -0
  643. package/dist/node_modules/tar-stream/sandbox.js +11 -0
  644. package/dist/node_modules/tunnel-agent/LICENSE +55 -0
  645. package/dist/node_modules/tunnel-agent/README.md +4 -0
  646. package/dist/node_modules/tunnel-agent/index.js +244 -0
  647. package/dist/node_modules/tunnel-agent/package.json +56 -0
  648. package/dist/node_modules/util-deprecate/History.md +16 -0
  649. package/dist/node_modules/util-deprecate/LICENSE +24 -0
  650. package/dist/node_modules/util-deprecate/README.md +53 -0
  651. package/dist/node_modules/util-deprecate/browser.js +67 -0
  652. package/dist/node_modules/util-deprecate/node.js +6 -0
  653. package/dist/node_modules/util-deprecate/package.json +58 -0
  654. package/dist/node_modules/wide-align/LICENSE +14 -0
  655. package/dist/node_modules/wide-align/README.md +47 -0
  656. package/dist/node_modules/wide-align/align.js +65 -0
  657. package/dist/node_modules/wide-align/package.json +66 -0
  658. package/dist/node_modules/wrappy/LICENSE +15 -0
  659. package/dist/node_modules/wrappy/README.md +36 -0
  660. package/dist/node_modules/wrappy/package.json +58 -0
  661. package/dist/node_modules/wrappy/wrappy.js +33 -0
  662. package/dist/node_modules/yallist/LICENSE +15 -0
  663. package/dist/node_modules/yallist/README.md +204 -0
  664. package/dist/node_modules/yallist/iterator.js +8 -0
  665. package/dist/node_modules/yallist/package.json +62 -0
  666. package/dist/node_modules/yallist/yallist.js +426 -0
  667. package/dist/package-lock.json +507 -0
  668. package/dist/package.json +62 -0
  669. package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
  670. package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
  671. package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
  672. package/package.json +64 -0
  673. package/src/__test__/index.test.ts +57 -0
  674. package/src/__test__/tiff.cache.test.ts +73 -0
  675. package/src/__test__/tile.cache.key.test.ts +56 -0
  676. package/src/__test__/tile.set.cache.test.ts +143 -0
  677. package/src/__test__/tile.set.test.ts +19 -0
  678. package/src/__test__/wmts.capability.test.ts +265 -0
  679. package/src/__test__/xyz.test.ts +333 -0
  680. package/src/__test__/xyz.util.ts +58 -0
  681. package/src/api.key.ts +23 -0
  682. package/src/cli/dump.ts +62 -0
  683. package/src/cli/serve.ts +148 -0
  684. package/src/cli/tile.set.local.ts +51 -0
  685. package/src/cli/validate.ts +49 -0
  686. package/src/index.ts +31 -0
  687. package/src/router.ts +56 -0
  688. package/src/routes/__test__/attribution.test.ts +441 -0
  689. package/src/routes/__test__/health.test.ts +89 -0
  690. package/src/routes/api.ts +19 -0
  691. package/src/routes/attribution.ts +245 -0
  692. package/src/routes/health.ts +84 -0
  693. package/src/routes/tile.etag.ts +36 -0
  694. package/src/routes/tile.ts +198 -0
  695. package/src/tiff.cache.ts +51 -0
  696. package/src/tile.set.cache.ts +107 -0
  697. package/src/tile.set.raster.ts +209 -0
  698. package/src/tile.set.ts +44 -0
  699. package/src/tile.set.vector.ts +50 -0
  700. package/src/validate.ts +32 -0
  701. package/src/wmts.capability.ts +203 -0
  702. package/static/expected_tile_2193_153_255_z7.png +0 -0
  703. package/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
  704. package/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
  705. package/test-dump.js +6 -0
  706. package/test-imagery.js +3 -0
  707. package/tsconfig.json +15 -0
  708. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,3526 @@
1
+ // bodies for vips operations
2
+ // Sun 5 Jul 22:36:37 BST 2020
3
+ // this file is generated automatically, do not edit!
4
+
5
+ VImage VImage::CMC2LCh( VOption *options ) const
6
+ {
7
+ VImage out;
8
+
9
+ call( "CMC2LCh",
10
+ (options ? options : VImage::option())->
11
+ set( "in", *this )->
12
+ set( "out", &out ) );
13
+
14
+ return( out );
15
+ }
16
+
17
+ VImage VImage::CMYK2XYZ( VOption *options ) const
18
+ {
19
+ VImage out;
20
+
21
+ call( "CMYK2XYZ",
22
+ (options ? options : VImage::option())->
23
+ set( "in", *this )->
24
+ set( "out", &out ) );
25
+
26
+ return( out );
27
+ }
28
+
29
+ VImage VImage::HSV2sRGB( VOption *options ) const
30
+ {
31
+ VImage out;
32
+
33
+ call( "HSV2sRGB",
34
+ (options ? options : VImage::option())->
35
+ set( "in", *this )->
36
+ set( "out", &out ) );
37
+
38
+ return( out );
39
+ }
40
+
41
+ VImage VImage::LCh2CMC( VOption *options ) const
42
+ {
43
+ VImage out;
44
+
45
+ call( "LCh2CMC",
46
+ (options ? options : VImage::option())->
47
+ set( "in", *this )->
48
+ set( "out", &out ) );
49
+
50
+ return( out );
51
+ }
52
+
53
+ VImage VImage::LCh2Lab( VOption *options ) const
54
+ {
55
+ VImage out;
56
+
57
+ call( "LCh2Lab",
58
+ (options ? options : VImage::option())->
59
+ set( "in", *this )->
60
+ set( "out", &out ) );
61
+
62
+ return( out );
63
+ }
64
+
65
+ VImage VImage::Lab2LCh( VOption *options ) const
66
+ {
67
+ VImage out;
68
+
69
+ call( "Lab2LCh",
70
+ (options ? options : VImage::option())->
71
+ set( "in", *this )->
72
+ set( "out", &out ) );
73
+
74
+ return( out );
75
+ }
76
+
77
+ VImage VImage::Lab2LabQ( VOption *options ) const
78
+ {
79
+ VImage out;
80
+
81
+ call( "Lab2LabQ",
82
+ (options ? options : VImage::option())->
83
+ set( "in", *this )->
84
+ set( "out", &out ) );
85
+
86
+ return( out );
87
+ }
88
+
89
+ VImage VImage::Lab2LabS( VOption *options ) const
90
+ {
91
+ VImage out;
92
+
93
+ call( "Lab2LabS",
94
+ (options ? options : VImage::option())->
95
+ set( "in", *this )->
96
+ set( "out", &out ) );
97
+
98
+ return( out );
99
+ }
100
+
101
+ VImage VImage::Lab2XYZ( VOption *options ) const
102
+ {
103
+ VImage out;
104
+
105
+ call( "Lab2XYZ",
106
+ (options ? options : VImage::option())->
107
+ set( "in", *this )->
108
+ set( "out", &out ) );
109
+
110
+ return( out );
111
+ }
112
+
113
+ VImage VImage::LabQ2Lab( VOption *options ) const
114
+ {
115
+ VImage out;
116
+
117
+ call( "LabQ2Lab",
118
+ (options ? options : VImage::option())->
119
+ set( "in", *this )->
120
+ set( "out", &out ) );
121
+
122
+ return( out );
123
+ }
124
+
125
+ VImage VImage::LabQ2LabS( VOption *options ) const
126
+ {
127
+ VImage out;
128
+
129
+ call( "LabQ2LabS",
130
+ (options ? options : VImage::option())->
131
+ set( "in", *this )->
132
+ set( "out", &out ) );
133
+
134
+ return( out );
135
+ }
136
+
137
+ VImage VImage::LabQ2sRGB( VOption *options ) const
138
+ {
139
+ VImage out;
140
+
141
+ call( "LabQ2sRGB",
142
+ (options ? options : VImage::option())->
143
+ set( "in", *this )->
144
+ set( "out", &out ) );
145
+
146
+ return( out );
147
+ }
148
+
149
+ VImage VImage::LabS2Lab( VOption *options ) const
150
+ {
151
+ VImage out;
152
+
153
+ call( "LabS2Lab",
154
+ (options ? options : VImage::option())->
155
+ set( "in", *this )->
156
+ set( "out", &out ) );
157
+
158
+ return( out );
159
+ }
160
+
161
+ VImage VImage::LabS2LabQ( VOption *options ) const
162
+ {
163
+ VImage out;
164
+
165
+ call( "LabS2LabQ",
166
+ (options ? options : VImage::option())->
167
+ set( "in", *this )->
168
+ set( "out", &out ) );
169
+
170
+ return( out );
171
+ }
172
+
173
+ VImage VImage::XYZ2CMYK( VOption *options ) const
174
+ {
175
+ VImage out;
176
+
177
+ call( "XYZ2CMYK",
178
+ (options ? options : VImage::option())->
179
+ set( "in", *this )->
180
+ set( "out", &out ) );
181
+
182
+ return( out );
183
+ }
184
+
185
+ VImage VImage::XYZ2Lab( VOption *options ) const
186
+ {
187
+ VImage out;
188
+
189
+ call( "XYZ2Lab",
190
+ (options ? options : VImage::option())->
191
+ set( "in", *this )->
192
+ set( "out", &out ) );
193
+
194
+ return( out );
195
+ }
196
+
197
+ VImage VImage::XYZ2Yxy( VOption *options ) const
198
+ {
199
+ VImage out;
200
+
201
+ call( "XYZ2Yxy",
202
+ (options ? options : VImage::option())->
203
+ set( "in", *this )->
204
+ set( "out", &out ) );
205
+
206
+ return( out );
207
+ }
208
+
209
+ VImage VImage::XYZ2scRGB( VOption *options ) const
210
+ {
211
+ VImage out;
212
+
213
+ call( "XYZ2scRGB",
214
+ (options ? options : VImage::option())->
215
+ set( "in", *this )->
216
+ set( "out", &out ) );
217
+
218
+ return( out );
219
+ }
220
+
221
+ VImage VImage::Yxy2XYZ( VOption *options ) const
222
+ {
223
+ VImage out;
224
+
225
+ call( "Yxy2XYZ",
226
+ (options ? options : VImage::option())->
227
+ set( "in", *this )->
228
+ set( "out", &out ) );
229
+
230
+ return( out );
231
+ }
232
+
233
+ VImage VImage::abs( VOption *options ) const
234
+ {
235
+ VImage out;
236
+
237
+ call( "abs",
238
+ (options ? options : VImage::option())->
239
+ set( "in", *this )->
240
+ set( "out", &out ) );
241
+
242
+ return( out );
243
+ }
244
+
245
+ VImage VImage::add( VImage right, VOption *options ) const
246
+ {
247
+ VImage out;
248
+
249
+ call( "add",
250
+ (options ? options : VImage::option())->
251
+ set( "left", *this )->
252
+ set( "out", &out )->
253
+ set( "right", right ) );
254
+
255
+ return( out );
256
+ }
257
+
258
+ VImage VImage::affine( std::vector<double> matrix, VOption *options ) const
259
+ {
260
+ VImage out;
261
+
262
+ call( "affine",
263
+ (options ? options : VImage::option())->
264
+ set( "in", *this )->
265
+ set( "out", &out )->
266
+ set( "matrix", matrix ) );
267
+
268
+ return( out );
269
+ }
270
+
271
+ VImage VImage::analyzeload( const char *filename, VOption *options )
272
+ {
273
+ VImage out;
274
+
275
+ call( "analyzeload",
276
+ (options ? options : VImage::option())->
277
+ set( "out", &out )->
278
+ set( "filename", filename ) );
279
+
280
+ return( out );
281
+ }
282
+
283
+ VImage VImage::arrayjoin( std::vector<VImage> in, VOption *options )
284
+ {
285
+ VImage out;
286
+
287
+ call( "arrayjoin",
288
+ (options ? options : VImage::option())->
289
+ set( "out", &out )->
290
+ set( "in", in ) );
291
+
292
+ return( out );
293
+ }
294
+
295
+ VImage VImage::autorot( VOption *options ) const
296
+ {
297
+ VImage out;
298
+
299
+ call( "autorot",
300
+ (options ? options : VImage::option())->
301
+ set( "in", *this )->
302
+ set( "out", &out ) );
303
+
304
+ return( out );
305
+ }
306
+
307
+ double VImage::avg( VOption *options ) const
308
+ {
309
+ double out;
310
+
311
+ call( "avg",
312
+ (options ? options : VImage::option())->
313
+ set( "in", *this )->
314
+ set( "out", &out ) );
315
+
316
+ return( out );
317
+ }
318
+
319
+ VImage VImage::bandbool( VipsOperationBoolean boolean, VOption *options ) const
320
+ {
321
+ VImage out;
322
+
323
+ call( "bandbool",
324
+ (options ? options : VImage::option())->
325
+ set( "in", *this )->
326
+ set( "out", &out )->
327
+ set( "boolean", boolean ) );
328
+
329
+ return( out );
330
+ }
331
+
332
+ VImage VImage::bandfold( VOption *options ) const
333
+ {
334
+ VImage out;
335
+
336
+ call( "bandfold",
337
+ (options ? options : VImage::option())->
338
+ set( "in", *this )->
339
+ set( "out", &out ) );
340
+
341
+ return( out );
342
+ }
343
+
344
+ VImage VImage::bandjoin( std::vector<VImage> in, VOption *options )
345
+ {
346
+ VImage out;
347
+
348
+ call( "bandjoin",
349
+ (options ? options : VImage::option())->
350
+ set( "out", &out )->
351
+ set( "in", in ) );
352
+
353
+ return( out );
354
+ }
355
+
356
+ VImage VImage::bandjoin_const( std::vector<double> c, VOption *options ) const
357
+ {
358
+ VImage out;
359
+
360
+ call( "bandjoin_const",
361
+ (options ? options : VImage::option())->
362
+ set( "in", *this )->
363
+ set( "out", &out )->
364
+ set( "c", c ) );
365
+
366
+ return( out );
367
+ }
368
+
369
+ VImage VImage::bandmean( VOption *options ) const
370
+ {
371
+ VImage out;
372
+
373
+ call( "bandmean",
374
+ (options ? options : VImage::option())->
375
+ set( "in", *this )->
376
+ set( "out", &out ) );
377
+
378
+ return( out );
379
+ }
380
+
381
+ VImage VImage::bandrank( std::vector<VImage> in, VOption *options )
382
+ {
383
+ VImage out;
384
+
385
+ call( "bandrank",
386
+ (options ? options : VImage::option())->
387
+ set( "out", &out )->
388
+ set( "in", in ) );
389
+
390
+ return( out );
391
+ }
392
+
393
+ VImage VImage::bandunfold( VOption *options ) const
394
+ {
395
+ VImage out;
396
+
397
+ call( "bandunfold",
398
+ (options ? options : VImage::option())->
399
+ set( "in", *this )->
400
+ set( "out", &out ) );
401
+
402
+ return( out );
403
+ }
404
+
405
+ VImage VImage::black( int width, int height, VOption *options )
406
+ {
407
+ VImage out;
408
+
409
+ call( "black",
410
+ (options ? options : VImage::option())->
411
+ set( "out", &out )->
412
+ set( "width", width )->
413
+ set( "height", height ) );
414
+
415
+ return( out );
416
+ }
417
+
418
+ VImage VImage::boolean( VImage right, VipsOperationBoolean boolean, VOption *options ) const
419
+ {
420
+ VImage out;
421
+
422
+ call( "boolean",
423
+ (options ? options : VImage::option())->
424
+ set( "left", *this )->
425
+ set( "out", &out )->
426
+ set( "right", right )->
427
+ set( "boolean", boolean ) );
428
+
429
+ return( out );
430
+ }
431
+
432
+ VImage VImage::boolean_const( VipsOperationBoolean boolean, std::vector<double> c, VOption *options ) const
433
+ {
434
+ VImage out;
435
+
436
+ call( "boolean_const",
437
+ (options ? options : VImage::option())->
438
+ set( "in", *this )->
439
+ set( "out", &out )->
440
+ set( "boolean", boolean )->
441
+ set( "c", c ) );
442
+
443
+ return( out );
444
+ }
445
+
446
+ VImage VImage::buildlut( VOption *options ) const
447
+ {
448
+ VImage out;
449
+
450
+ call( "buildlut",
451
+ (options ? options : VImage::option())->
452
+ set( "in", *this )->
453
+ set( "out", &out ) );
454
+
455
+ return( out );
456
+ }
457
+
458
+ VImage VImage::byteswap( VOption *options ) const
459
+ {
460
+ VImage out;
461
+
462
+ call( "byteswap",
463
+ (options ? options : VImage::option())->
464
+ set( "in", *this )->
465
+ set( "out", &out ) );
466
+
467
+ return( out );
468
+ }
469
+
470
+ VImage VImage::cache( VOption *options ) const
471
+ {
472
+ VImage out;
473
+
474
+ call( "cache",
475
+ (options ? options : VImage::option())->
476
+ set( "in", *this )->
477
+ set( "out", &out ) );
478
+
479
+ return( out );
480
+ }
481
+
482
+ VImage VImage::canny( VOption *options ) const
483
+ {
484
+ VImage out;
485
+
486
+ call( "canny",
487
+ (options ? options : VImage::option())->
488
+ set( "in", *this )->
489
+ set( "out", &out ) );
490
+
491
+ return( out );
492
+ }
493
+
494
+ VImage VImage::case_image( std::vector<VImage> cases, VOption *options ) const
495
+ {
496
+ VImage out;
497
+
498
+ call( "case",
499
+ (options ? options : VImage::option())->
500
+ set( "index", *this )->
501
+ set( "out", &out )->
502
+ set( "cases", cases ) );
503
+
504
+ return( out );
505
+ }
506
+
507
+ VImage VImage::cast( VipsBandFormat format, VOption *options ) const
508
+ {
509
+ VImage out;
510
+
511
+ call( "cast",
512
+ (options ? options : VImage::option())->
513
+ set( "in", *this )->
514
+ set( "out", &out )->
515
+ set( "format", format ) );
516
+
517
+ return( out );
518
+ }
519
+
520
+ VImage VImage::colourspace( VipsInterpretation space, VOption *options ) const
521
+ {
522
+ VImage out;
523
+
524
+ call( "colourspace",
525
+ (options ? options : VImage::option())->
526
+ set( "in", *this )->
527
+ set( "out", &out )->
528
+ set( "space", space ) );
529
+
530
+ return( out );
531
+ }
532
+
533
+ VImage VImage::compass( VImage mask, VOption *options ) const
534
+ {
535
+ VImage out;
536
+
537
+ call( "compass",
538
+ (options ? options : VImage::option())->
539
+ set( "in", *this )->
540
+ set( "out", &out )->
541
+ set( "mask", mask ) );
542
+
543
+ return( out );
544
+ }
545
+
546
+ VImage VImage::complex( VipsOperationComplex cmplx, VOption *options ) const
547
+ {
548
+ VImage out;
549
+
550
+ call( "complex",
551
+ (options ? options : VImage::option())->
552
+ set( "in", *this )->
553
+ set( "out", &out )->
554
+ set( "cmplx", cmplx ) );
555
+
556
+ return( out );
557
+ }
558
+
559
+ VImage VImage::complex2( VImage right, VipsOperationComplex2 cmplx, VOption *options ) const
560
+ {
561
+ VImage out;
562
+
563
+ call( "complex2",
564
+ (options ? options : VImage::option())->
565
+ set( "left", *this )->
566
+ set( "out", &out )->
567
+ set( "right", right )->
568
+ set( "cmplx", cmplx ) );
569
+
570
+ return( out );
571
+ }
572
+
573
+ VImage VImage::complexform( VImage right, VOption *options ) const
574
+ {
575
+ VImage out;
576
+
577
+ call( "complexform",
578
+ (options ? options : VImage::option())->
579
+ set( "left", *this )->
580
+ set( "out", &out )->
581
+ set( "right", right ) );
582
+
583
+ return( out );
584
+ }
585
+
586
+ VImage VImage::complexget( VipsOperationComplexget get, VOption *options ) const
587
+ {
588
+ VImage out;
589
+
590
+ call( "complexget",
591
+ (options ? options : VImage::option())->
592
+ set( "in", *this )->
593
+ set( "out", &out )->
594
+ set( "get", get ) );
595
+
596
+ return( out );
597
+ }
598
+
599
+ VImage VImage::composite( std::vector<VImage> in, std::vector<int> mode, VOption *options )
600
+ {
601
+ VImage out;
602
+
603
+ call( "composite",
604
+ (options ? options : VImage::option())->
605
+ set( "out", &out )->
606
+ set( "in", in )->
607
+ set( "mode", mode ) );
608
+
609
+ return( out );
610
+ }
611
+
612
+ VImage VImage::composite2( VImage overlay, VipsBlendMode mode, VOption *options ) const
613
+ {
614
+ VImage out;
615
+
616
+ call( "composite2",
617
+ (options ? options : VImage::option())->
618
+ set( "base", *this )->
619
+ set( "out", &out )->
620
+ set( "overlay", overlay )->
621
+ set( "mode", mode ) );
622
+
623
+ return( out );
624
+ }
625
+
626
+ VImage VImage::conv( VImage mask, VOption *options ) const
627
+ {
628
+ VImage out;
629
+
630
+ call( "conv",
631
+ (options ? options : VImage::option())->
632
+ set( "in", *this )->
633
+ set( "out", &out )->
634
+ set( "mask", mask ) );
635
+
636
+ return( out );
637
+ }
638
+
639
+ VImage VImage::conva( VImage mask, VOption *options ) const
640
+ {
641
+ VImage out;
642
+
643
+ call( "conva",
644
+ (options ? options : VImage::option())->
645
+ set( "in", *this )->
646
+ set( "out", &out )->
647
+ set( "mask", mask ) );
648
+
649
+ return( out );
650
+ }
651
+
652
+ VImage VImage::convasep( VImage mask, VOption *options ) const
653
+ {
654
+ VImage out;
655
+
656
+ call( "convasep",
657
+ (options ? options : VImage::option())->
658
+ set( "in", *this )->
659
+ set( "out", &out )->
660
+ set( "mask", mask ) );
661
+
662
+ return( out );
663
+ }
664
+
665
+ VImage VImage::convf( VImage mask, VOption *options ) const
666
+ {
667
+ VImage out;
668
+
669
+ call( "convf",
670
+ (options ? options : VImage::option())->
671
+ set( "in", *this )->
672
+ set( "out", &out )->
673
+ set( "mask", mask ) );
674
+
675
+ return( out );
676
+ }
677
+
678
+ VImage VImage::convi( VImage mask, VOption *options ) const
679
+ {
680
+ VImage out;
681
+
682
+ call( "convi",
683
+ (options ? options : VImage::option())->
684
+ set( "in", *this )->
685
+ set( "out", &out )->
686
+ set( "mask", mask ) );
687
+
688
+ return( out );
689
+ }
690
+
691
+ VImage VImage::convsep( VImage mask, VOption *options ) const
692
+ {
693
+ VImage out;
694
+
695
+ call( "convsep",
696
+ (options ? options : VImage::option())->
697
+ set( "in", *this )->
698
+ set( "out", &out )->
699
+ set( "mask", mask ) );
700
+
701
+ return( out );
702
+ }
703
+
704
+ VImage VImage::copy( VOption *options ) const
705
+ {
706
+ VImage out;
707
+
708
+ call( "copy",
709
+ (options ? options : VImage::option())->
710
+ set( "in", *this )->
711
+ set( "out", &out ) );
712
+
713
+ return( out );
714
+ }
715
+
716
+ double VImage::countlines( VipsDirection direction, VOption *options ) const
717
+ {
718
+ double nolines;
719
+
720
+ call( "countlines",
721
+ (options ? options : VImage::option())->
722
+ set( "in", *this )->
723
+ set( "nolines", &nolines )->
724
+ set( "direction", direction ) );
725
+
726
+ return( nolines );
727
+ }
728
+
729
+ VImage VImage::crop( int left, int top, int width, int height, VOption *options ) const
730
+ {
731
+ VImage out;
732
+
733
+ call( "crop",
734
+ (options ? options : VImage::option())->
735
+ set( "input", *this )->
736
+ set( "out", &out )->
737
+ set( "left", left )->
738
+ set( "top", top )->
739
+ set( "width", width )->
740
+ set( "height", height ) );
741
+
742
+ return( out );
743
+ }
744
+
745
+ VImage VImage::csvload( const char *filename, VOption *options )
746
+ {
747
+ VImage out;
748
+
749
+ call( "csvload",
750
+ (options ? options : VImage::option())->
751
+ set( "out", &out )->
752
+ set( "filename", filename ) );
753
+
754
+ return( out );
755
+ }
756
+
757
+ VImage VImage::csvload_source( VSource source, VOption *options )
758
+ {
759
+ VImage out;
760
+
761
+ call( "csvload_source",
762
+ (options ? options : VImage::option())->
763
+ set( "out", &out )->
764
+ set( "source", source ) );
765
+
766
+ return( out );
767
+ }
768
+
769
+ void VImage::csvsave( const char *filename, VOption *options ) const
770
+ {
771
+ call( "csvsave",
772
+ (options ? options : VImage::option())->
773
+ set( "in", *this )->
774
+ set( "filename", filename ) );
775
+ }
776
+
777
+ void VImage::csvsave_target( VTarget target, VOption *options ) const
778
+ {
779
+ call( "csvsave_target",
780
+ (options ? options : VImage::option())->
781
+ set( "in", *this )->
782
+ set( "target", target ) );
783
+ }
784
+
785
+ VImage VImage::dE00( VImage right, VOption *options ) const
786
+ {
787
+ VImage out;
788
+
789
+ call( "dE00",
790
+ (options ? options : VImage::option())->
791
+ set( "left", *this )->
792
+ set( "out", &out )->
793
+ set( "right", right ) );
794
+
795
+ return( out );
796
+ }
797
+
798
+ VImage VImage::dE76( VImage right, VOption *options ) const
799
+ {
800
+ VImage out;
801
+
802
+ call( "dE76",
803
+ (options ? options : VImage::option())->
804
+ set( "left", *this )->
805
+ set( "out", &out )->
806
+ set( "right", right ) );
807
+
808
+ return( out );
809
+ }
810
+
811
+ VImage VImage::dECMC( VImage right, VOption *options ) const
812
+ {
813
+ VImage out;
814
+
815
+ call( "dECMC",
816
+ (options ? options : VImage::option())->
817
+ set( "left", *this )->
818
+ set( "out", &out )->
819
+ set( "right", right ) );
820
+
821
+ return( out );
822
+ }
823
+
824
+ double VImage::deviate( VOption *options ) const
825
+ {
826
+ double out;
827
+
828
+ call( "deviate",
829
+ (options ? options : VImage::option())->
830
+ set( "in", *this )->
831
+ set( "out", &out ) );
832
+
833
+ return( out );
834
+ }
835
+
836
+ VImage VImage::divide( VImage right, VOption *options ) const
837
+ {
838
+ VImage out;
839
+
840
+ call( "divide",
841
+ (options ? options : VImage::option())->
842
+ set( "left", *this )->
843
+ set( "out", &out )->
844
+ set( "right", right ) );
845
+
846
+ return( out );
847
+ }
848
+
849
+ void VImage::draw_circle( std::vector<double> ink, int cx, int cy, int radius, VOption *options ) const
850
+ {
851
+ call( "draw_circle",
852
+ (options ? options : VImage::option())->
853
+ set( "image", *this )->
854
+ set( "ink", ink )->
855
+ set( "cx", cx )->
856
+ set( "cy", cy )->
857
+ set( "radius", radius ) );
858
+ }
859
+
860
+ void VImage::draw_flood( std::vector<double> ink, int x, int y, VOption *options ) const
861
+ {
862
+ call( "draw_flood",
863
+ (options ? options : VImage::option())->
864
+ set( "image", *this )->
865
+ set( "ink", ink )->
866
+ set( "x", x )->
867
+ set( "y", y ) );
868
+ }
869
+
870
+ void VImage::draw_image( VImage sub, int x, int y, VOption *options ) const
871
+ {
872
+ call( "draw_image",
873
+ (options ? options : VImage::option())->
874
+ set( "image", *this )->
875
+ set( "sub", sub )->
876
+ set( "x", x )->
877
+ set( "y", y ) );
878
+ }
879
+
880
+ void VImage::draw_line( std::vector<double> ink, int x1, int y1, int x2, int y2, VOption *options ) const
881
+ {
882
+ call( "draw_line",
883
+ (options ? options : VImage::option())->
884
+ set( "image", *this )->
885
+ set( "ink", ink )->
886
+ set( "x1", x1 )->
887
+ set( "y1", y1 )->
888
+ set( "x2", x2 )->
889
+ set( "y2", y2 ) );
890
+ }
891
+
892
+ void VImage::draw_mask( std::vector<double> ink, VImage mask, int x, int y, VOption *options ) const
893
+ {
894
+ call( "draw_mask",
895
+ (options ? options : VImage::option())->
896
+ set( "image", *this )->
897
+ set( "ink", ink )->
898
+ set( "mask", mask )->
899
+ set( "x", x )->
900
+ set( "y", y ) );
901
+ }
902
+
903
+ void VImage::draw_rect( std::vector<double> ink, int left, int top, int width, int height, VOption *options ) const
904
+ {
905
+ call( "draw_rect",
906
+ (options ? options : VImage::option())->
907
+ set( "image", *this )->
908
+ set( "ink", ink )->
909
+ set( "left", left )->
910
+ set( "top", top )->
911
+ set( "width", width )->
912
+ set( "height", height ) );
913
+ }
914
+
915
+ void VImage::draw_smudge( int left, int top, int width, int height, VOption *options ) const
916
+ {
917
+ call( "draw_smudge",
918
+ (options ? options : VImage::option())->
919
+ set( "image", *this )->
920
+ set( "left", left )->
921
+ set( "top", top )->
922
+ set( "width", width )->
923
+ set( "height", height ) );
924
+ }
925
+
926
+ void VImage::dzsave( const char *filename, VOption *options ) const
927
+ {
928
+ call( "dzsave",
929
+ (options ? options : VImage::option())->
930
+ set( "in", *this )->
931
+ set( "filename", filename ) );
932
+ }
933
+
934
+ VipsBlob *VImage::dzsave_buffer( VOption *options ) const
935
+ {
936
+ VipsBlob *buffer;
937
+
938
+ call( "dzsave_buffer",
939
+ (options ? options : VImage::option())->
940
+ set( "in", *this )->
941
+ set( "buffer", &buffer ) );
942
+
943
+ return( buffer );
944
+ }
945
+
946
+ VImage VImage::embed( int x, int y, int width, int height, VOption *options ) const
947
+ {
948
+ VImage out;
949
+
950
+ call( "embed",
951
+ (options ? options : VImage::option())->
952
+ set( "in", *this )->
953
+ set( "out", &out )->
954
+ set( "x", x )->
955
+ set( "y", y )->
956
+ set( "width", width )->
957
+ set( "height", height ) );
958
+
959
+ return( out );
960
+ }
961
+
962
+ VImage VImage::extract_area( int left, int top, int width, int height, VOption *options ) const
963
+ {
964
+ VImage out;
965
+
966
+ call( "extract_area",
967
+ (options ? options : VImage::option())->
968
+ set( "input", *this )->
969
+ set( "out", &out )->
970
+ set( "left", left )->
971
+ set( "top", top )->
972
+ set( "width", width )->
973
+ set( "height", height ) );
974
+
975
+ return( out );
976
+ }
977
+
978
+ VImage VImage::extract_band( int band, VOption *options ) const
979
+ {
980
+ VImage out;
981
+
982
+ call( "extract_band",
983
+ (options ? options : VImage::option())->
984
+ set( "in", *this )->
985
+ set( "out", &out )->
986
+ set( "band", band ) );
987
+
988
+ return( out );
989
+ }
990
+
991
+ VImage VImage::eye( int width, int height, VOption *options )
992
+ {
993
+ VImage out;
994
+
995
+ call( "eye",
996
+ (options ? options : VImage::option())->
997
+ set( "out", &out )->
998
+ set( "width", width )->
999
+ set( "height", height ) );
1000
+
1001
+ return( out );
1002
+ }
1003
+
1004
+ VImage VImage::falsecolour( VOption *options ) const
1005
+ {
1006
+ VImage out;
1007
+
1008
+ call( "falsecolour",
1009
+ (options ? options : VImage::option())->
1010
+ set( "in", *this )->
1011
+ set( "out", &out ) );
1012
+
1013
+ return( out );
1014
+ }
1015
+
1016
+ VImage VImage::fastcor( VImage ref, VOption *options ) const
1017
+ {
1018
+ VImage out;
1019
+
1020
+ call( "fastcor",
1021
+ (options ? options : VImage::option())->
1022
+ set( "in", *this )->
1023
+ set( "out", &out )->
1024
+ set( "ref", ref ) );
1025
+
1026
+ return( out );
1027
+ }
1028
+
1029
+ VImage VImage::fill_nearest( VOption *options ) const
1030
+ {
1031
+ VImage out;
1032
+
1033
+ call( "fill_nearest",
1034
+ (options ? options : VImage::option())->
1035
+ set( "in", *this )->
1036
+ set( "out", &out ) );
1037
+
1038
+ return( out );
1039
+ }
1040
+
1041
+ int VImage::find_trim( int *top, int *width, int *height, VOption *options ) const
1042
+ {
1043
+ int left;
1044
+
1045
+ call( "find_trim",
1046
+ (options ? options : VImage::option())->
1047
+ set( "in", *this )->
1048
+ set( "left", &left )->
1049
+ set( "top", top )->
1050
+ set( "width", width )->
1051
+ set( "height", height ) );
1052
+
1053
+ return( left );
1054
+ }
1055
+
1056
+ VImage VImage::fitsload( const char *filename, VOption *options )
1057
+ {
1058
+ VImage out;
1059
+
1060
+ call( "fitsload",
1061
+ (options ? options : VImage::option())->
1062
+ set( "out", &out )->
1063
+ set( "filename", filename ) );
1064
+
1065
+ return( out );
1066
+ }
1067
+
1068
+ void VImage::fitssave( const char *filename, VOption *options ) const
1069
+ {
1070
+ call( "fitssave",
1071
+ (options ? options : VImage::option())->
1072
+ set( "in", *this )->
1073
+ set( "filename", filename ) );
1074
+ }
1075
+
1076
+ VImage VImage::flatten( VOption *options ) const
1077
+ {
1078
+ VImage out;
1079
+
1080
+ call( "flatten",
1081
+ (options ? options : VImage::option())->
1082
+ set( "in", *this )->
1083
+ set( "out", &out ) );
1084
+
1085
+ return( out );
1086
+ }
1087
+
1088
+ VImage VImage::flip( VipsDirection direction, VOption *options ) const
1089
+ {
1090
+ VImage out;
1091
+
1092
+ call( "flip",
1093
+ (options ? options : VImage::option())->
1094
+ set( "in", *this )->
1095
+ set( "out", &out )->
1096
+ set( "direction", direction ) );
1097
+
1098
+ return( out );
1099
+ }
1100
+
1101
+ VImage VImage::float2rad( VOption *options ) const
1102
+ {
1103
+ VImage out;
1104
+
1105
+ call( "float2rad",
1106
+ (options ? options : VImage::option())->
1107
+ set( "in", *this )->
1108
+ set( "out", &out ) );
1109
+
1110
+ return( out );
1111
+ }
1112
+
1113
+ VImage VImage::fractsurf( int width, int height, double fractal_dimension, VOption *options )
1114
+ {
1115
+ VImage out;
1116
+
1117
+ call( "fractsurf",
1118
+ (options ? options : VImage::option())->
1119
+ set( "out", &out )->
1120
+ set( "width", width )->
1121
+ set( "height", height )->
1122
+ set( "fractal_dimension", fractal_dimension ) );
1123
+
1124
+ return( out );
1125
+ }
1126
+
1127
+ VImage VImage::freqmult( VImage mask, VOption *options ) const
1128
+ {
1129
+ VImage out;
1130
+
1131
+ call( "freqmult",
1132
+ (options ? options : VImage::option())->
1133
+ set( "in", *this )->
1134
+ set( "out", &out )->
1135
+ set( "mask", mask ) );
1136
+
1137
+ return( out );
1138
+ }
1139
+
1140
+ VImage VImage::fwfft( VOption *options ) const
1141
+ {
1142
+ VImage out;
1143
+
1144
+ call( "fwfft",
1145
+ (options ? options : VImage::option())->
1146
+ set( "in", *this )->
1147
+ set( "out", &out ) );
1148
+
1149
+ return( out );
1150
+ }
1151
+
1152
+ VImage VImage::gamma( VOption *options ) const
1153
+ {
1154
+ VImage out;
1155
+
1156
+ call( "gamma",
1157
+ (options ? options : VImage::option())->
1158
+ set( "in", *this )->
1159
+ set( "out", &out ) );
1160
+
1161
+ return( out );
1162
+ }
1163
+
1164
+ VImage VImage::gaussblur( double sigma, VOption *options ) const
1165
+ {
1166
+ VImage out;
1167
+
1168
+ call( "gaussblur",
1169
+ (options ? options : VImage::option())->
1170
+ set( "in", *this )->
1171
+ set( "out", &out )->
1172
+ set( "sigma", sigma ) );
1173
+
1174
+ return( out );
1175
+ }
1176
+
1177
+ VImage VImage::gaussmat( double sigma, double min_ampl, VOption *options )
1178
+ {
1179
+ VImage out;
1180
+
1181
+ call( "gaussmat",
1182
+ (options ? options : VImage::option())->
1183
+ set( "out", &out )->
1184
+ set( "sigma", sigma )->
1185
+ set( "min_ampl", min_ampl ) );
1186
+
1187
+ return( out );
1188
+ }
1189
+
1190
+ VImage VImage::gaussnoise( int width, int height, VOption *options )
1191
+ {
1192
+ VImage out;
1193
+
1194
+ call( "gaussnoise",
1195
+ (options ? options : VImage::option())->
1196
+ set( "out", &out )->
1197
+ set( "width", width )->
1198
+ set( "height", height ) );
1199
+
1200
+ return( out );
1201
+ }
1202
+
1203
+ std::vector<double> VImage::getpoint( int x, int y, VOption *options ) const
1204
+ {
1205
+ std::vector<double> out_array;
1206
+
1207
+ call( "getpoint",
1208
+ (options ? options : VImage::option())->
1209
+ set( "in", *this )->
1210
+ set( "out_array", &out_array )->
1211
+ set( "x", x )->
1212
+ set( "y", y ) );
1213
+
1214
+ return( out_array );
1215
+ }
1216
+
1217
+ VImage VImage::gifload( const char *filename, VOption *options )
1218
+ {
1219
+ VImage out;
1220
+
1221
+ call( "gifload",
1222
+ (options ? options : VImage::option())->
1223
+ set( "out", &out )->
1224
+ set( "filename", filename ) );
1225
+
1226
+ return( out );
1227
+ }
1228
+
1229
+ VImage VImage::gifload_buffer( VipsBlob *buffer, VOption *options )
1230
+ {
1231
+ VImage out;
1232
+
1233
+ call( "gifload_buffer",
1234
+ (options ? options : VImage::option())->
1235
+ set( "out", &out )->
1236
+ set( "buffer", buffer ) );
1237
+
1238
+ return( out );
1239
+ }
1240
+
1241
+ VImage VImage::gifload_source( VSource source, VOption *options )
1242
+ {
1243
+ VImage out;
1244
+
1245
+ call( "gifload_source",
1246
+ (options ? options : VImage::option())->
1247
+ set( "out", &out )->
1248
+ set( "source", source ) );
1249
+
1250
+ return( out );
1251
+ }
1252
+
1253
+ VImage VImage::globalbalance( VOption *options ) const
1254
+ {
1255
+ VImage out;
1256
+
1257
+ call( "globalbalance",
1258
+ (options ? options : VImage::option())->
1259
+ set( "in", *this )->
1260
+ set( "out", &out ) );
1261
+
1262
+ return( out );
1263
+ }
1264
+
1265
+ VImage VImage::gravity( VipsCompassDirection direction, int width, int height, VOption *options ) const
1266
+ {
1267
+ VImage out;
1268
+
1269
+ call( "gravity",
1270
+ (options ? options : VImage::option())->
1271
+ set( "in", *this )->
1272
+ set( "out", &out )->
1273
+ set( "direction", direction )->
1274
+ set( "width", width )->
1275
+ set( "height", height ) );
1276
+
1277
+ return( out );
1278
+ }
1279
+
1280
+ VImage VImage::grey( int width, int height, VOption *options )
1281
+ {
1282
+ VImage out;
1283
+
1284
+ call( "grey",
1285
+ (options ? options : VImage::option())->
1286
+ set( "out", &out )->
1287
+ set( "width", width )->
1288
+ set( "height", height ) );
1289
+
1290
+ return( out );
1291
+ }
1292
+
1293
+ VImage VImage::grid( int tile_height, int across, int down, VOption *options ) const
1294
+ {
1295
+ VImage out;
1296
+
1297
+ call( "grid",
1298
+ (options ? options : VImage::option())->
1299
+ set( "in", *this )->
1300
+ set( "out", &out )->
1301
+ set( "tile_height", tile_height )->
1302
+ set( "across", across )->
1303
+ set( "down", down ) );
1304
+
1305
+ return( out );
1306
+ }
1307
+
1308
+ VImage VImage::heifload( const char *filename, VOption *options )
1309
+ {
1310
+ VImage out;
1311
+
1312
+ call( "heifload",
1313
+ (options ? options : VImage::option())->
1314
+ set( "out", &out )->
1315
+ set( "filename", filename ) );
1316
+
1317
+ return( out );
1318
+ }
1319
+
1320
+ VImage VImage::heifload_buffer( VipsBlob *buffer, VOption *options )
1321
+ {
1322
+ VImage out;
1323
+
1324
+ call( "heifload_buffer",
1325
+ (options ? options : VImage::option())->
1326
+ set( "out", &out )->
1327
+ set( "buffer", buffer ) );
1328
+
1329
+ return( out );
1330
+ }
1331
+
1332
+ VImage VImage::heifload_source( VSource source, VOption *options )
1333
+ {
1334
+ VImage out;
1335
+
1336
+ call( "heifload_source",
1337
+ (options ? options : VImage::option())->
1338
+ set( "out", &out )->
1339
+ set( "source", source ) );
1340
+
1341
+ return( out );
1342
+ }
1343
+
1344
+ void VImage::heifsave( const char *filename, VOption *options ) const
1345
+ {
1346
+ call( "heifsave",
1347
+ (options ? options : VImage::option())->
1348
+ set( "in", *this )->
1349
+ set( "filename", filename ) );
1350
+ }
1351
+
1352
+ VipsBlob *VImage::heifsave_buffer( VOption *options ) const
1353
+ {
1354
+ VipsBlob *buffer;
1355
+
1356
+ call( "heifsave_buffer",
1357
+ (options ? options : VImage::option())->
1358
+ set( "in", *this )->
1359
+ set( "buffer", &buffer ) );
1360
+
1361
+ return( buffer );
1362
+ }
1363
+
1364
+ void VImage::heifsave_target( VTarget target, VOption *options ) const
1365
+ {
1366
+ call( "heifsave_target",
1367
+ (options ? options : VImage::option())->
1368
+ set( "in", *this )->
1369
+ set( "target", target ) );
1370
+ }
1371
+
1372
+ VImage VImage::hist_cum( VOption *options ) const
1373
+ {
1374
+ VImage out;
1375
+
1376
+ call( "hist_cum",
1377
+ (options ? options : VImage::option())->
1378
+ set( "in", *this )->
1379
+ set( "out", &out ) );
1380
+
1381
+ return( out );
1382
+ }
1383
+
1384
+ double VImage::hist_entropy( VOption *options ) const
1385
+ {
1386
+ double out;
1387
+
1388
+ call( "hist_entropy",
1389
+ (options ? options : VImage::option())->
1390
+ set( "in", *this )->
1391
+ set( "out", &out ) );
1392
+
1393
+ return( out );
1394
+ }
1395
+
1396
+ VImage VImage::hist_equal( VOption *options ) const
1397
+ {
1398
+ VImage out;
1399
+
1400
+ call( "hist_equal",
1401
+ (options ? options : VImage::option())->
1402
+ set( "in", *this )->
1403
+ set( "out", &out ) );
1404
+
1405
+ return( out );
1406
+ }
1407
+
1408
+ VImage VImage::hist_find( VOption *options ) const
1409
+ {
1410
+ VImage out;
1411
+
1412
+ call( "hist_find",
1413
+ (options ? options : VImage::option())->
1414
+ set( "in", *this )->
1415
+ set( "out", &out ) );
1416
+
1417
+ return( out );
1418
+ }
1419
+
1420
+ VImage VImage::hist_find_indexed( VImage index, VOption *options ) const
1421
+ {
1422
+ VImage out;
1423
+
1424
+ call( "hist_find_indexed",
1425
+ (options ? options : VImage::option())->
1426
+ set( "in", *this )->
1427
+ set( "out", &out )->
1428
+ set( "index", index ) );
1429
+
1430
+ return( out );
1431
+ }
1432
+
1433
+ VImage VImage::hist_find_ndim( VOption *options ) const
1434
+ {
1435
+ VImage out;
1436
+
1437
+ call( "hist_find_ndim",
1438
+ (options ? options : VImage::option())->
1439
+ set( "in", *this )->
1440
+ set( "out", &out ) );
1441
+
1442
+ return( out );
1443
+ }
1444
+
1445
+ bool VImage::hist_ismonotonic( VOption *options ) const
1446
+ {
1447
+ bool monotonic;
1448
+
1449
+ call( "hist_ismonotonic",
1450
+ (options ? options : VImage::option())->
1451
+ set( "in", *this )->
1452
+ set( "monotonic", &monotonic ) );
1453
+
1454
+ return( monotonic );
1455
+ }
1456
+
1457
+ VImage VImage::hist_local( int width, int height, VOption *options ) const
1458
+ {
1459
+ VImage out;
1460
+
1461
+ call( "hist_local",
1462
+ (options ? options : VImage::option())->
1463
+ set( "in", *this )->
1464
+ set( "out", &out )->
1465
+ set( "width", width )->
1466
+ set( "height", height ) );
1467
+
1468
+ return( out );
1469
+ }
1470
+
1471
+ VImage VImage::hist_match( VImage ref, VOption *options ) const
1472
+ {
1473
+ VImage out;
1474
+
1475
+ call( "hist_match",
1476
+ (options ? options : VImage::option())->
1477
+ set( "in", *this )->
1478
+ set( "out", &out )->
1479
+ set( "ref", ref ) );
1480
+
1481
+ return( out );
1482
+ }
1483
+
1484
+ VImage VImage::hist_norm( VOption *options ) const
1485
+ {
1486
+ VImage out;
1487
+
1488
+ call( "hist_norm",
1489
+ (options ? options : VImage::option())->
1490
+ set( "in", *this )->
1491
+ set( "out", &out ) );
1492
+
1493
+ return( out );
1494
+ }
1495
+
1496
+ VImage VImage::hist_plot( VOption *options ) const
1497
+ {
1498
+ VImage out;
1499
+
1500
+ call( "hist_plot",
1501
+ (options ? options : VImage::option())->
1502
+ set( "in", *this )->
1503
+ set( "out", &out ) );
1504
+
1505
+ return( out );
1506
+ }
1507
+
1508
+ VImage VImage::hough_circle( VOption *options ) const
1509
+ {
1510
+ VImage out;
1511
+
1512
+ call( "hough_circle",
1513
+ (options ? options : VImage::option())->
1514
+ set( "in", *this )->
1515
+ set( "out", &out ) );
1516
+
1517
+ return( out );
1518
+ }
1519
+
1520
+ VImage VImage::hough_line( VOption *options ) const
1521
+ {
1522
+ VImage out;
1523
+
1524
+ call( "hough_line",
1525
+ (options ? options : VImage::option())->
1526
+ set( "in", *this )->
1527
+ set( "out", &out ) );
1528
+
1529
+ return( out );
1530
+ }
1531
+
1532
+ VImage VImage::icc_export( VOption *options ) const
1533
+ {
1534
+ VImage out;
1535
+
1536
+ call( "icc_export",
1537
+ (options ? options : VImage::option())->
1538
+ set( "in", *this )->
1539
+ set( "out", &out ) );
1540
+
1541
+ return( out );
1542
+ }
1543
+
1544
+ VImage VImage::icc_import( VOption *options ) const
1545
+ {
1546
+ VImage out;
1547
+
1548
+ call( "icc_import",
1549
+ (options ? options : VImage::option())->
1550
+ set( "in", *this )->
1551
+ set( "out", &out ) );
1552
+
1553
+ return( out );
1554
+ }
1555
+
1556
+ VImage VImage::icc_transform( const char *output_profile, VOption *options ) const
1557
+ {
1558
+ VImage out;
1559
+
1560
+ call( "icc_transform",
1561
+ (options ? options : VImage::option())->
1562
+ set( "in", *this )->
1563
+ set( "out", &out )->
1564
+ set( "output_profile", output_profile ) );
1565
+
1566
+ return( out );
1567
+ }
1568
+
1569
+ VImage VImage::identity( VOption *options )
1570
+ {
1571
+ VImage out;
1572
+
1573
+ call( "identity",
1574
+ (options ? options : VImage::option())->
1575
+ set( "out", &out ) );
1576
+
1577
+ return( out );
1578
+ }
1579
+
1580
+ VImage VImage::ifthenelse( VImage in1, VImage in2, VOption *options ) const
1581
+ {
1582
+ VImage out;
1583
+
1584
+ call( "ifthenelse",
1585
+ (options ? options : VImage::option())->
1586
+ set( "cond", *this )->
1587
+ set( "out", &out )->
1588
+ set( "in1", in1 )->
1589
+ set( "in2", in2 ) );
1590
+
1591
+ return( out );
1592
+ }
1593
+
1594
+ VImage VImage::insert( VImage sub, int x, int y, VOption *options ) const
1595
+ {
1596
+ VImage out;
1597
+
1598
+ call( "insert",
1599
+ (options ? options : VImage::option())->
1600
+ set( "main", *this )->
1601
+ set( "out", &out )->
1602
+ set( "sub", sub )->
1603
+ set( "x", x )->
1604
+ set( "y", y ) );
1605
+
1606
+ return( out );
1607
+ }
1608
+
1609
+ VImage VImage::invert( VOption *options ) const
1610
+ {
1611
+ VImage out;
1612
+
1613
+ call( "invert",
1614
+ (options ? options : VImage::option())->
1615
+ set( "in", *this )->
1616
+ set( "out", &out ) );
1617
+
1618
+ return( out );
1619
+ }
1620
+
1621
+ VImage VImage::invertlut( VOption *options ) const
1622
+ {
1623
+ VImage out;
1624
+
1625
+ call( "invertlut",
1626
+ (options ? options : VImage::option())->
1627
+ set( "in", *this )->
1628
+ set( "out", &out ) );
1629
+
1630
+ return( out );
1631
+ }
1632
+
1633
+ VImage VImage::invfft( VOption *options ) const
1634
+ {
1635
+ VImage out;
1636
+
1637
+ call( "invfft",
1638
+ (options ? options : VImage::option())->
1639
+ set( "in", *this )->
1640
+ set( "out", &out ) );
1641
+
1642
+ return( out );
1643
+ }
1644
+
1645
+ VImage VImage::join( VImage in2, VipsDirection direction, VOption *options ) const
1646
+ {
1647
+ VImage out;
1648
+
1649
+ call( "join",
1650
+ (options ? options : VImage::option())->
1651
+ set( "in1", *this )->
1652
+ set( "out", &out )->
1653
+ set( "in2", in2 )->
1654
+ set( "direction", direction ) );
1655
+
1656
+ return( out );
1657
+ }
1658
+
1659
+ VImage VImage::jpegload( const char *filename, VOption *options )
1660
+ {
1661
+ VImage out;
1662
+
1663
+ call( "jpegload",
1664
+ (options ? options : VImage::option())->
1665
+ set( "out", &out )->
1666
+ set( "filename", filename ) );
1667
+
1668
+ return( out );
1669
+ }
1670
+
1671
+ VImage VImage::jpegload_buffer( VipsBlob *buffer, VOption *options )
1672
+ {
1673
+ VImage out;
1674
+
1675
+ call( "jpegload_buffer",
1676
+ (options ? options : VImage::option())->
1677
+ set( "out", &out )->
1678
+ set( "buffer", buffer ) );
1679
+
1680
+ return( out );
1681
+ }
1682
+
1683
+ VImage VImage::jpegload_source( VSource source, VOption *options )
1684
+ {
1685
+ VImage out;
1686
+
1687
+ call( "jpegload_source",
1688
+ (options ? options : VImage::option())->
1689
+ set( "out", &out )->
1690
+ set( "source", source ) );
1691
+
1692
+ return( out );
1693
+ }
1694
+
1695
+ void VImage::jpegsave( const char *filename, VOption *options ) const
1696
+ {
1697
+ call( "jpegsave",
1698
+ (options ? options : VImage::option())->
1699
+ set( "in", *this )->
1700
+ set( "filename", filename ) );
1701
+ }
1702
+
1703
+ VipsBlob *VImage::jpegsave_buffer( VOption *options ) const
1704
+ {
1705
+ VipsBlob *buffer;
1706
+
1707
+ call( "jpegsave_buffer",
1708
+ (options ? options : VImage::option())->
1709
+ set( "in", *this )->
1710
+ set( "buffer", &buffer ) );
1711
+
1712
+ return( buffer );
1713
+ }
1714
+
1715
+ void VImage::jpegsave_mime( VOption *options ) const
1716
+ {
1717
+ call( "jpegsave_mime",
1718
+ (options ? options : VImage::option())->
1719
+ set( "in", *this ) );
1720
+ }
1721
+
1722
+ void VImage::jpegsave_target( VTarget target, VOption *options ) const
1723
+ {
1724
+ call( "jpegsave_target",
1725
+ (options ? options : VImage::option())->
1726
+ set( "in", *this )->
1727
+ set( "target", target ) );
1728
+ }
1729
+
1730
+ VImage VImage::labelregions( VOption *options ) const
1731
+ {
1732
+ VImage mask;
1733
+
1734
+ call( "labelregions",
1735
+ (options ? options : VImage::option())->
1736
+ set( "in", *this )->
1737
+ set( "mask", &mask ) );
1738
+
1739
+ return( mask );
1740
+ }
1741
+
1742
+ VImage VImage::linear( std::vector<double> a, std::vector<double> b, VOption *options ) const
1743
+ {
1744
+ VImage out;
1745
+
1746
+ call( "linear",
1747
+ (options ? options : VImage::option())->
1748
+ set( "in", *this )->
1749
+ set( "out", &out )->
1750
+ set( "a", a )->
1751
+ set( "b", b ) );
1752
+
1753
+ return( out );
1754
+ }
1755
+
1756
+ VImage VImage::linecache( VOption *options ) const
1757
+ {
1758
+ VImage out;
1759
+
1760
+ call( "linecache",
1761
+ (options ? options : VImage::option())->
1762
+ set( "in", *this )->
1763
+ set( "out", &out ) );
1764
+
1765
+ return( out );
1766
+ }
1767
+
1768
+ VImage VImage::logmat( double sigma, double min_ampl, VOption *options )
1769
+ {
1770
+ VImage out;
1771
+
1772
+ call( "logmat",
1773
+ (options ? options : VImage::option())->
1774
+ set( "out", &out )->
1775
+ set( "sigma", sigma )->
1776
+ set( "min_ampl", min_ampl ) );
1777
+
1778
+ return( out );
1779
+ }
1780
+
1781
+ VImage VImage::magickload( const char *filename, VOption *options )
1782
+ {
1783
+ VImage out;
1784
+
1785
+ call( "magickload",
1786
+ (options ? options : VImage::option())->
1787
+ set( "out", &out )->
1788
+ set( "filename", filename ) );
1789
+
1790
+ return( out );
1791
+ }
1792
+
1793
+ VImage VImage::magickload_buffer( VipsBlob *buffer, VOption *options )
1794
+ {
1795
+ VImage out;
1796
+
1797
+ call( "magickload_buffer",
1798
+ (options ? options : VImage::option())->
1799
+ set( "out", &out )->
1800
+ set( "buffer", buffer ) );
1801
+
1802
+ return( out );
1803
+ }
1804
+
1805
+ void VImage::magicksave( const char *filename, VOption *options ) const
1806
+ {
1807
+ call( "magicksave",
1808
+ (options ? options : VImage::option())->
1809
+ set( "in", *this )->
1810
+ set( "filename", filename ) );
1811
+ }
1812
+
1813
+ VipsBlob *VImage::magicksave_buffer( VOption *options ) const
1814
+ {
1815
+ VipsBlob *buffer;
1816
+
1817
+ call( "magicksave_buffer",
1818
+ (options ? options : VImage::option())->
1819
+ set( "in", *this )->
1820
+ set( "buffer", &buffer ) );
1821
+
1822
+ return( buffer );
1823
+ }
1824
+
1825
+ VImage VImage::mapim( VImage index, VOption *options ) const
1826
+ {
1827
+ VImage out;
1828
+
1829
+ call( "mapim",
1830
+ (options ? options : VImage::option())->
1831
+ set( "in", *this )->
1832
+ set( "out", &out )->
1833
+ set( "index", index ) );
1834
+
1835
+ return( out );
1836
+ }
1837
+
1838
+ VImage VImage::maplut( VImage lut, VOption *options ) const
1839
+ {
1840
+ VImage out;
1841
+
1842
+ call( "maplut",
1843
+ (options ? options : VImage::option())->
1844
+ set( "in", *this )->
1845
+ set( "out", &out )->
1846
+ set( "lut", lut ) );
1847
+
1848
+ return( out );
1849
+ }
1850
+
1851
+ VImage VImage::mask_butterworth( int width, int height, double order, double frequency_cutoff, double amplitude_cutoff, VOption *options )
1852
+ {
1853
+ VImage out;
1854
+
1855
+ call( "mask_butterworth",
1856
+ (options ? options : VImage::option())->
1857
+ set( "out", &out )->
1858
+ set( "width", width )->
1859
+ set( "height", height )->
1860
+ set( "order", order )->
1861
+ set( "frequency_cutoff", frequency_cutoff )->
1862
+ set( "amplitude_cutoff", amplitude_cutoff ) );
1863
+
1864
+ return( out );
1865
+ }
1866
+
1867
+ VImage VImage::mask_butterworth_band( int width, int height, double order, double frequency_cutoff_x, double frequency_cutoff_y, double radius, double amplitude_cutoff, VOption *options )
1868
+ {
1869
+ VImage out;
1870
+
1871
+ call( "mask_butterworth_band",
1872
+ (options ? options : VImage::option())->
1873
+ set( "out", &out )->
1874
+ set( "width", width )->
1875
+ set( "height", height )->
1876
+ set( "order", order )->
1877
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
1878
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
1879
+ set( "radius", radius )->
1880
+ set( "amplitude_cutoff", amplitude_cutoff ) );
1881
+
1882
+ return( out );
1883
+ }
1884
+
1885
+ VImage VImage::mask_butterworth_ring( int width, int height, double order, double frequency_cutoff, double amplitude_cutoff, double ringwidth, VOption *options )
1886
+ {
1887
+ VImage out;
1888
+
1889
+ call( "mask_butterworth_ring",
1890
+ (options ? options : VImage::option())->
1891
+ set( "out", &out )->
1892
+ set( "width", width )->
1893
+ set( "height", height )->
1894
+ set( "order", order )->
1895
+ set( "frequency_cutoff", frequency_cutoff )->
1896
+ set( "amplitude_cutoff", amplitude_cutoff )->
1897
+ set( "ringwidth", ringwidth ) );
1898
+
1899
+ return( out );
1900
+ }
1901
+
1902
+ VImage VImage::mask_fractal( int width, int height, double fractal_dimension, VOption *options )
1903
+ {
1904
+ VImage out;
1905
+
1906
+ call( "mask_fractal",
1907
+ (options ? options : VImage::option())->
1908
+ set( "out", &out )->
1909
+ set( "width", width )->
1910
+ set( "height", height )->
1911
+ set( "fractal_dimension", fractal_dimension ) );
1912
+
1913
+ return( out );
1914
+ }
1915
+
1916
+ VImage VImage::mask_gaussian( int width, int height, double frequency_cutoff, double amplitude_cutoff, VOption *options )
1917
+ {
1918
+ VImage out;
1919
+
1920
+ call( "mask_gaussian",
1921
+ (options ? options : VImage::option())->
1922
+ set( "out", &out )->
1923
+ set( "width", width )->
1924
+ set( "height", height )->
1925
+ set( "frequency_cutoff", frequency_cutoff )->
1926
+ set( "amplitude_cutoff", amplitude_cutoff ) );
1927
+
1928
+ return( out );
1929
+ }
1930
+
1931
+ VImage VImage::mask_gaussian_band( int width, int height, double frequency_cutoff_x, double frequency_cutoff_y, double radius, double amplitude_cutoff, VOption *options )
1932
+ {
1933
+ VImage out;
1934
+
1935
+ call( "mask_gaussian_band",
1936
+ (options ? options : VImage::option())->
1937
+ set( "out", &out )->
1938
+ set( "width", width )->
1939
+ set( "height", height )->
1940
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
1941
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
1942
+ set( "radius", radius )->
1943
+ set( "amplitude_cutoff", amplitude_cutoff ) );
1944
+
1945
+ return( out );
1946
+ }
1947
+
1948
+ VImage VImage::mask_gaussian_ring( int width, int height, double frequency_cutoff, double amplitude_cutoff, double ringwidth, VOption *options )
1949
+ {
1950
+ VImage out;
1951
+
1952
+ call( "mask_gaussian_ring",
1953
+ (options ? options : VImage::option())->
1954
+ set( "out", &out )->
1955
+ set( "width", width )->
1956
+ set( "height", height )->
1957
+ set( "frequency_cutoff", frequency_cutoff )->
1958
+ set( "amplitude_cutoff", amplitude_cutoff )->
1959
+ set( "ringwidth", ringwidth ) );
1960
+
1961
+ return( out );
1962
+ }
1963
+
1964
+ VImage VImage::mask_ideal( int width, int height, double frequency_cutoff, VOption *options )
1965
+ {
1966
+ VImage out;
1967
+
1968
+ call( "mask_ideal",
1969
+ (options ? options : VImage::option())->
1970
+ set( "out", &out )->
1971
+ set( "width", width )->
1972
+ set( "height", height )->
1973
+ set( "frequency_cutoff", frequency_cutoff ) );
1974
+
1975
+ return( out );
1976
+ }
1977
+
1978
+ VImage VImage::mask_ideal_band( int width, int height, double frequency_cutoff_x, double frequency_cutoff_y, double radius, VOption *options )
1979
+ {
1980
+ VImage out;
1981
+
1982
+ call( "mask_ideal_band",
1983
+ (options ? options : VImage::option())->
1984
+ set( "out", &out )->
1985
+ set( "width", width )->
1986
+ set( "height", height )->
1987
+ set( "frequency_cutoff_x", frequency_cutoff_x )->
1988
+ set( "frequency_cutoff_y", frequency_cutoff_y )->
1989
+ set( "radius", radius ) );
1990
+
1991
+ return( out );
1992
+ }
1993
+
1994
+ VImage VImage::mask_ideal_ring( int width, int height, double frequency_cutoff, double ringwidth, VOption *options )
1995
+ {
1996
+ VImage out;
1997
+
1998
+ call( "mask_ideal_ring",
1999
+ (options ? options : VImage::option())->
2000
+ set( "out", &out )->
2001
+ set( "width", width )->
2002
+ set( "height", height )->
2003
+ set( "frequency_cutoff", frequency_cutoff )->
2004
+ set( "ringwidth", ringwidth ) );
2005
+
2006
+ return( out );
2007
+ }
2008
+
2009
+ VImage VImage::match( VImage sec, int xr1, int yr1, int xs1, int ys1, int xr2, int yr2, int xs2, int ys2, VOption *options ) const
2010
+ {
2011
+ VImage out;
2012
+
2013
+ call( "match",
2014
+ (options ? options : VImage::option())->
2015
+ set( "ref", *this )->
2016
+ set( "out", &out )->
2017
+ set( "sec", sec )->
2018
+ set( "xr1", xr1 )->
2019
+ set( "yr1", yr1 )->
2020
+ set( "xs1", xs1 )->
2021
+ set( "ys1", ys1 )->
2022
+ set( "xr2", xr2 )->
2023
+ set( "yr2", yr2 )->
2024
+ set( "xs2", xs2 )->
2025
+ set( "ys2", ys2 ) );
2026
+
2027
+ return( out );
2028
+ }
2029
+
2030
+ VImage VImage::math( VipsOperationMath math, VOption *options ) const
2031
+ {
2032
+ VImage out;
2033
+
2034
+ call( "math",
2035
+ (options ? options : VImage::option())->
2036
+ set( "in", *this )->
2037
+ set( "out", &out )->
2038
+ set( "math", math ) );
2039
+
2040
+ return( out );
2041
+ }
2042
+
2043
+ VImage VImage::math2( VImage right, VipsOperationMath2 math2, VOption *options ) const
2044
+ {
2045
+ VImage out;
2046
+
2047
+ call( "math2",
2048
+ (options ? options : VImage::option())->
2049
+ set( "left", *this )->
2050
+ set( "out", &out )->
2051
+ set( "right", right )->
2052
+ set( "math2", math2 ) );
2053
+
2054
+ return( out );
2055
+ }
2056
+
2057
+ VImage VImage::math2_const( VipsOperationMath2 math2, std::vector<double> c, VOption *options ) const
2058
+ {
2059
+ VImage out;
2060
+
2061
+ call( "math2_const",
2062
+ (options ? options : VImage::option())->
2063
+ set( "in", *this )->
2064
+ set( "out", &out )->
2065
+ set( "math2", math2 )->
2066
+ set( "c", c ) );
2067
+
2068
+ return( out );
2069
+ }
2070
+
2071
+ VImage VImage::matload( const char *filename, VOption *options )
2072
+ {
2073
+ VImage out;
2074
+
2075
+ call( "matload",
2076
+ (options ? options : VImage::option())->
2077
+ set( "out", &out )->
2078
+ set( "filename", filename ) );
2079
+
2080
+ return( out );
2081
+ }
2082
+
2083
+ VImage VImage::matrixinvert( VOption *options ) const
2084
+ {
2085
+ VImage out;
2086
+
2087
+ call( "matrixinvert",
2088
+ (options ? options : VImage::option())->
2089
+ set( "in", *this )->
2090
+ set( "out", &out ) );
2091
+
2092
+ return( out );
2093
+ }
2094
+
2095
+ VImage VImage::matrixload( const char *filename, VOption *options )
2096
+ {
2097
+ VImage out;
2098
+
2099
+ call( "matrixload",
2100
+ (options ? options : VImage::option())->
2101
+ set( "out", &out )->
2102
+ set( "filename", filename ) );
2103
+
2104
+ return( out );
2105
+ }
2106
+
2107
+ VImage VImage::matrixload_source( VSource source, VOption *options )
2108
+ {
2109
+ VImage out;
2110
+
2111
+ call( "matrixload_source",
2112
+ (options ? options : VImage::option())->
2113
+ set( "out", &out )->
2114
+ set( "source", source ) );
2115
+
2116
+ return( out );
2117
+ }
2118
+
2119
+ void VImage::matrixprint( VOption *options ) const
2120
+ {
2121
+ call( "matrixprint",
2122
+ (options ? options : VImage::option())->
2123
+ set( "in", *this ) );
2124
+ }
2125
+
2126
+ void VImage::matrixsave( const char *filename, VOption *options ) const
2127
+ {
2128
+ call( "matrixsave",
2129
+ (options ? options : VImage::option())->
2130
+ set( "in", *this )->
2131
+ set( "filename", filename ) );
2132
+ }
2133
+
2134
+ void VImage::matrixsave_target( VTarget target, VOption *options ) const
2135
+ {
2136
+ call( "matrixsave_target",
2137
+ (options ? options : VImage::option())->
2138
+ set( "in", *this )->
2139
+ set( "target", target ) );
2140
+ }
2141
+
2142
+ double VImage::max( VOption *options ) const
2143
+ {
2144
+ double out;
2145
+
2146
+ call( "max",
2147
+ (options ? options : VImage::option())->
2148
+ set( "in", *this )->
2149
+ set( "out", &out ) );
2150
+
2151
+ return( out );
2152
+ }
2153
+
2154
+ VImage VImage::measure( int h, int v, VOption *options ) const
2155
+ {
2156
+ VImage out;
2157
+
2158
+ call( "measure",
2159
+ (options ? options : VImage::option())->
2160
+ set( "in", *this )->
2161
+ set( "out", &out )->
2162
+ set( "h", h )->
2163
+ set( "v", v ) );
2164
+
2165
+ return( out );
2166
+ }
2167
+
2168
+ VImage VImage::merge( VImage sec, VipsDirection direction, int dx, int dy, VOption *options ) const
2169
+ {
2170
+ VImage out;
2171
+
2172
+ call( "merge",
2173
+ (options ? options : VImage::option())->
2174
+ set( "ref", *this )->
2175
+ set( "out", &out )->
2176
+ set( "sec", sec )->
2177
+ set( "direction", direction )->
2178
+ set( "dx", dx )->
2179
+ set( "dy", dy ) );
2180
+
2181
+ return( out );
2182
+ }
2183
+
2184
+ double VImage::min( VOption *options ) const
2185
+ {
2186
+ double out;
2187
+
2188
+ call( "min",
2189
+ (options ? options : VImage::option())->
2190
+ set( "in", *this )->
2191
+ set( "out", &out ) );
2192
+
2193
+ return( out );
2194
+ }
2195
+
2196
+ VImage VImage::morph( VImage mask, VipsOperationMorphology morph, VOption *options ) const
2197
+ {
2198
+ VImage out;
2199
+
2200
+ call( "morph",
2201
+ (options ? options : VImage::option())->
2202
+ set( "in", *this )->
2203
+ set( "out", &out )->
2204
+ set( "mask", mask )->
2205
+ set( "morph", morph ) );
2206
+
2207
+ return( out );
2208
+ }
2209
+
2210
+ VImage VImage::mosaic( VImage sec, VipsDirection direction, int xref, int yref, int xsec, int ysec, VOption *options ) const
2211
+ {
2212
+ VImage out;
2213
+
2214
+ call( "mosaic",
2215
+ (options ? options : VImage::option())->
2216
+ set( "ref", *this )->
2217
+ set( "out", &out )->
2218
+ set( "sec", sec )->
2219
+ set( "direction", direction )->
2220
+ set( "xref", xref )->
2221
+ set( "yref", yref )->
2222
+ set( "xsec", xsec )->
2223
+ set( "ysec", ysec ) );
2224
+
2225
+ return( out );
2226
+ }
2227
+
2228
+ VImage VImage::mosaic1( VImage sec, VipsDirection direction, int xr1, int yr1, int xs1, int ys1, int xr2, int yr2, int xs2, int ys2, VOption *options ) const
2229
+ {
2230
+ VImage out;
2231
+
2232
+ call( "mosaic1",
2233
+ (options ? options : VImage::option())->
2234
+ set( "ref", *this )->
2235
+ set( "out", &out )->
2236
+ set( "sec", sec )->
2237
+ set( "direction", direction )->
2238
+ set( "xr1", xr1 )->
2239
+ set( "yr1", yr1 )->
2240
+ set( "xs1", xs1 )->
2241
+ set( "ys1", ys1 )->
2242
+ set( "xr2", xr2 )->
2243
+ set( "yr2", yr2 )->
2244
+ set( "xs2", xs2 )->
2245
+ set( "ys2", ys2 ) );
2246
+
2247
+ return( out );
2248
+ }
2249
+
2250
+ VImage VImage::msb( VOption *options ) const
2251
+ {
2252
+ VImage out;
2253
+
2254
+ call( "msb",
2255
+ (options ? options : VImage::option())->
2256
+ set( "in", *this )->
2257
+ set( "out", &out ) );
2258
+
2259
+ return( out );
2260
+ }
2261
+
2262
+ VImage VImage::multiply( VImage right, VOption *options ) const
2263
+ {
2264
+ VImage out;
2265
+
2266
+ call( "multiply",
2267
+ (options ? options : VImage::option())->
2268
+ set( "left", *this )->
2269
+ set( "out", &out )->
2270
+ set( "right", right ) );
2271
+
2272
+ return( out );
2273
+ }
2274
+
2275
+ VImage VImage::niftiload( const char *filename, VOption *options )
2276
+ {
2277
+ VImage out;
2278
+
2279
+ call( "niftiload",
2280
+ (options ? options : VImage::option())->
2281
+ set( "out", &out )->
2282
+ set( "filename", filename ) );
2283
+
2284
+ return( out );
2285
+ }
2286
+
2287
+ void VImage::niftisave( const char *filename, VOption *options ) const
2288
+ {
2289
+ call( "niftisave",
2290
+ (options ? options : VImage::option())->
2291
+ set( "in", *this )->
2292
+ set( "filename", filename ) );
2293
+ }
2294
+
2295
+ VImage VImage::openexrload( const char *filename, VOption *options )
2296
+ {
2297
+ VImage out;
2298
+
2299
+ call( "openexrload",
2300
+ (options ? options : VImage::option())->
2301
+ set( "out", &out )->
2302
+ set( "filename", filename ) );
2303
+
2304
+ return( out );
2305
+ }
2306
+
2307
+ VImage VImage::openslideload( const char *filename, VOption *options )
2308
+ {
2309
+ VImage out;
2310
+
2311
+ call( "openslideload",
2312
+ (options ? options : VImage::option())->
2313
+ set( "out", &out )->
2314
+ set( "filename", filename ) );
2315
+
2316
+ return( out );
2317
+ }
2318
+
2319
+ VImage VImage::pdfload( const char *filename, VOption *options )
2320
+ {
2321
+ VImage out;
2322
+
2323
+ call( "pdfload",
2324
+ (options ? options : VImage::option())->
2325
+ set( "out", &out )->
2326
+ set( "filename", filename ) );
2327
+
2328
+ return( out );
2329
+ }
2330
+
2331
+ VImage VImage::pdfload_buffer( VipsBlob *buffer, VOption *options )
2332
+ {
2333
+ VImage out;
2334
+
2335
+ call( "pdfload_buffer",
2336
+ (options ? options : VImage::option())->
2337
+ set( "out", &out )->
2338
+ set( "buffer", buffer ) );
2339
+
2340
+ return( out );
2341
+ }
2342
+
2343
+ VImage VImage::pdfload_source( VSource source, VOption *options )
2344
+ {
2345
+ VImage out;
2346
+
2347
+ call( "pdfload_source",
2348
+ (options ? options : VImage::option())->
2349
+ set( "out", &out )->
2350
+ set( "source", source ) );
2351
+
2352
+ return( out );
2353
+ }
2354
+
2355
+ int VImage::percent( double percent, VOption *options ) const
2356
+ {
2357
+ int threshold;
2358
+
2359
+ call( "percent",
2360
+ (options ? options : VImage::option())->
2361
+ set( "in", *this )->
2362
+ set( "threshold", &threshold )->
2363
+ set( "percent", percent ) );
2364
+
2365
+ return( threshold );
2366
+ }
2367
+
2368
+ VImage VImage::perlin( int width, int height, VOption *options )
2369
+ {
2370
+ VImage out;
2371
+
2372
+ call( "perlin",
2373
+ (options ? options : VImage::option())->
2374
+ set( "out", &out )->
2375
+ set( "width", width )->
2376
+ set( "height", height ) );
2377
+
2378
+ return( out );
2379
+ }
2380
+
2381
+ VImage VImage::phasecor( VImage in2, VOption *options ) const
2382
+ {
2383
+ VImage out;
2384
+
2385
+ call( "phasecor",
2386
+ (options ? options : VImage::option())->
2387
+ set( "in", *this )->
2388
+ set( "out", &out )->
2389
+ set( "in2", in2 ) );
2390
+
2391
+ return( out );
2392
+ }
2393
+
2394
+ VImage VImage::pngload( const char *filename, VOption *options )
2395
+ {
2396
+ VImage out;
2397
+
2398
+ call( "pngload",
2399
+ (options ? options : VImage::option())->
2400
+ set( "out", &out )->
2401
+ set( "filename", filename ) );
2402
+
2403
+ return( out );
2404
+ }
2405
+
2406
+ VImage VImage::pngload_buffer( VipsBlob *buffer, VOption *options )
2407
+ {
2408
+ VImage out;
2409
+
2410
+ call( "pngload_buffer",
2411
+ (options ? options : VImage::option())->
2412
+ set( "out", &out )->
2413
+ set( "buffer", buffer ) );
2414
+
2415
+ return( out );
2416
+ }
2417
+
2418
+ VImage VImage::pngload_source( VSource source, VOption *options )
2419
+ {
2420
+ VImage out;
2421
+
2422
+ call( "pngload_source",
2423
+ (options ? options : VImage::option())->
2424
+ set( "out", &out )->
2425
+ set( "source", source ) );
2426
+
2427
+ return( out );
2428
+ }
2429
+
2430
+ void VImage::pngsave( const char *filename, VOption *options ) const
2431
+ {
2432
+ call( "pngsave",
2433
+ (options ? options : VImage::option())->
2434
+ set( "in", *this )->
2435
+ set( "filename", filename ) );
2436
+ }
2437
+
2438
+ VipsBlob *VImage::pngsave_buffer( VOption *options ) const
2439
+ {
2440
+ VipsBlob *buffer;
2441
+
2442
+ call( "pngsave_buffer",
2443
+ (options ? options : VImage::option())->
2444
+ set( "in", *this )->
2445
+ set( "buffer", &buffer ) );
2446
+
2447
+ return( buffer );
2448
+ }
2449
+
2450
+ void VImage::pngsave_target( VTarget target, VOption *options ) const
2451
+ {
2452
+ call( "pngsave_target",
2453
+ (options ? options : VImage::option())->
2454
+ set( "in", *this )->
2455
+ set( "target", target ) );
2456
+ }
2457
+
2458
+ VImage VImage::ppmload( const char *filename, VOption *options )
2459
+ {
2460
+ VImage out;
2461
+
2462
+ call( "ppmload",
2463
+ (options ? options : VImage::option())->
2464
+ set( "out", &out )->
2465
+ set( "filename", filename ) );
2466
+
2467
+ return( out );
2468
+ }
2469
+
2470
+ VImage VImage::ppmload_source( VSource source, VOption *options )
2471
+ {
2472
+ VImage out;
2473
+
2474
+ call( "ppmload_source",
2475
+ (options ? options : VImage::option())->
2476
+ set( "out", &out )->
2477
+ set( "source", source ) );
2478
+
2479
+ return( out );
2480
+ }
2481
+
2482
+ void VImage::ppmsave( const char *filename, VOption *options ) const
2483
+ {
2484
+ call( "ppmsave",
2485
+ (options ? options : VImage::option())->
2486
+ set( "in", *this )->
2487
+ set( "filename", filename ) );
2488
+ }
2489
+
2490
+ void VImage::ppmsave_target( VTarget target, VOption *options ) const
2491
+ {
2492
+ call( "ppmsave_target",
2493
+ (options ? options : VImage::option())->
2494
+ set( "in", *this )->
2495
+ set( "target", target ) );
2496
+ }
2497
+
2498
+ VImage VImage::premultiply( VOption *options ) const
2499
+ {
2500
+ VImage out;
2501
+
2502
+ call( "premultiply",
2503
+ (options ? options : VImage::option())->
2504
+ set( "in", *this )->
2505
+ set( "out", &out ) );
2506
+
2507
+ return( out );
2508
+ }
2509
+
2510
+ VImage VImage::profile( VImage *rows, VOption *options ) const
2511
+ {
2512
+ VImage columns;
2513
+
2514
+ call( "profile",
2515
+ (options ? options : VImage::option())->
2516
+ set( "in", *this )->
2517
+ set( "columns", &columns )->
2518
+ set( "rows", rows ) );
2519
+
2520
+ return( columns );
2521
+ }
2522
+
2523
+ VipsBlob *VImage::profile_load( const char *name, VOption *options )
2524
+ {
2525
+ VipsBlob *profile;
2526
+
2527
+ call( "profile_load",
2528
+ (options ? options : VImage::option())->
2529
+ set( "profile", &profile )->
2530
+ set( "name", name ) );
2531
+
2532
+ return( profile );
2533
+ }
2534
+
2535
+ VImage VImage::project( VImage *rows, VOption *options ) const
2536
+ {
2537
+ VImage columns;
2538
+
2539
+ call( "project",
2540
+ (options ? options : VImage::option())->
2541
+ set( "in", *this )->
2542
+ set( "columns", &columns )->
2543
+ set( "rows", rows ) );
2544
+
2545
+ return( columns );
2546
+ }
2547
+
2548
+ VImage VImage::quadratic( VImage coeff, VOption *options ) const
2549
+ {
2550
+ VImage out;
2551
+
2552
+ call( "quadratic",
2553
+ (options ? options : VImage::option())->
2554
+ set( "in", *this )->
2555
+ set( "out", &out )->
2556
+ set( "coeff", coeff ) );
2557
+
2558
+ return( out );
2559
+ }
2560
+
2561
+ VImage VImage::rad2float( VOption *options ) const
2562
+ {
2563
+ VImage out;
2564
+
2565
+ call( "rad2float",
2566
+ (options ? options : VImage::option())->
2567
+ set( "in", *this )->
2568
+ set( "out", &out ) );
2569
+
2570
+ return( out );
2571
+ }
2572
+
2573
+ VImage VImage::radload( const char *filename, VOption *options )
2574
+ {
2575
+ VImage out;
2576
+
2577
+ call( "radload",
2578
+ (options ? options : VImage::option())->
2579
+ set( "out", &out )->
2580
+ set( "filename", filename ) );
2581
+
2582
+ return( out );
2583
+ }
2584
+
2585
+ VImage VImage::radload_buffer( VipsBlob *buffer, VOption *options )
2586
+ {
2587
+ VImage out;
2588
+
2589
+ call( "radload_buffer",
2590
+ (options ? options : VImage::option())->
2591
+ set( "out", &out )->
2592
+ set( "buffer", buffer ) );
2593
+
2594
+ return( out );
2595
+ }
2596
+
2597
+ VImage VImage::radload_source( VSource source, VOption *options )
2598
+ {
2599
+ VImage out;
2600
+
2601
+ call( "radload_source",
2602
+ (options ? options : VImage::option())->
2603
+ set( "out", &out )->
2604
+ set( "source", source ) );
2605
+
2606
+ return( out );
2607
+ }
2608
+
2609
+ void VImage::radsave( const char *filename, VOption *options ) const
2610
+ {
2611
+ call( "radsave",
2612
+ (options ? options : VImage::option())->
2613
+ set( "in", *this )->
2614
+ set( "filename", filename ) );
2615
+ }
2616
+
2617
+ VipsBlob *VImage::radsave_buffer( VOption *options ) const
2618
+ {
2619
+ VipsBlob *buffer;
2620
+
2621
+ call( "radsave_buffer",
2622
+ (options ? options : VImage::option())->
2623
+ set( "in", *this )->
2624
+ set( "buffer", &buffer ) );
2625
+
2626
+ return( buffer );
2627
+ }
2628
+
2629
+ void VImage::radsave_target( VTarget target, VOption *options ) const
2630
+ {
2631
+ call( "radsave_target",
2632
+ (options ? options : VImage::option())->
2633
+ set( "in", *this )->
2634
+ set( "target", target ) );
2635
+ }
2636
+
2637
+ VImage VImage::rank( int width, int height, int index, VOption *options ) const
2638
+ {
2639
+ VImage out;
2640
+
2641
+ call( "rank",
2642
+ (options ? options : VImage::option())->
2643
+ set( "in", *this )->
2644
+ set( "out", &out )->
2645
+ set( "width", width )->
2646
+ set( "height", height )->
2647
+ set( "index", index ) );
2648
+
2649
+ return( out );
2650
+ }
2651
+
2652
+ VImage VImage::rawload( const char *filename, int width, int height, int bands, VOption *options )
2653
+ {
2654
+ VImage out;
2655
+
2656
+ call( "rawload",
2657
+ (options ? options : VImage::option())->
2658
+ set( "out", &out )->
2659
+ set( "filename", filename )->
2660
+ set( "width", width )->
2661
+ set( "height", height )->
2662
+ set( "bands", bands ) );
2663
+
2664
+ return( out );
2665
+ }
2666
+
2667
+ void VImage::rawsave( const char *filename, VOption *options ) const
2668
+ {
2669
+ call( "rawsave",
2670
+ (options ? options : VImage::option())->
2671
+ set( "in", *this )->
2672
+ set( "filename", filename ) );
2673
+ }
2674
+
2675
+ void VImage::rawsave_fd( int fd, VOption *options ) const
2676
+ {
2677
+ call( "rawsave_fd",
2678
+ (options ? options : VImage::option())->
2679
+ set( "in", *this )->
2680
+ set( "fd", fd ) );
2681
+ }
2682
+
2683
+ VImage VImage::recomb( VImage m, VOption *options ) const
2684
+ {
2685
+ VImage out;
2686
+
2687
+ call( "recomb",
2688
+ (options ? options : VImage::option())->
2689
+ set( "in", *this )->
2690
+ set( "out", &out )->
2691
+ set( "m", m ) );
2692
+
2693
+ return( out );
2694
+ }
2695
+
2696
+ VImage VImage::reduce( double hshrink, double vshrink, VOption *options ) const
2697
+ {
2698
+ VImage out;
2699
+
2700
+ call( "reduce",
2701
+ (options ? options : VImage::option())->
2702
+ set( "in", *this )->
2703
+ set( "out", &out )->
2704
+ set( "hshrink", hshrink )->
2705
+ set( "vshrink", vshrink ) );
2706
+
2707
+ return( out );
2708
+ }
2709
+
2710
+ VImage VImage::reduceh( double hshrink, VOption *options ) const
2711
+ {
2712
+ VImage out;
2713
+
2714
+ call( "reduceh",
2715
+ (options ? options : VImage::option())->
2716
+ set( "in", *this )->
2717
+ set( "out", &out )->
2718
+ set( "hshrink", hshrink ) );
2719
+
2720
+ return( out );
2721
+ }
2722
+
2723
+ VImage VImage::reducev( double vshrink, VOption *options ) const
2724
+ {
2725
+ VImage out;
2726
+
2727
+ call( "reducev",
2728
+ (options ? options : VImage::option())->
2729
+ set( "in", *this )->
2730
+ set( "out", &out )->
2731
+ set( "vshrink", vshrink ) );
2732
+
2733
+ return( out );
2734
+ }
2735
+
2736
+ VImage VImage::relational( VImage right, VipsOperationRelational relational, VOption *options ) const
2737
+ {
2738
+ VImage out;
2739
+
2740
+ call( "relational",
2741
+ (options ? options : VImage::option())->
2742
+ set( "left", *this )->
2743
+ set( "out", &out )->
2744
+ set( "right", right )->
2745
+ set( "relational", relational ) );
2746
+
2747
+ return( out );
2748
+ }
2749
+
2750
+ VImage VImage::relational_const( VipsOperationRelational relational, std::vector<double> c, VOption *options ) const
2751
+ {
2752
+ VImage out;
2753
+
2754
+ call( "relational_const",
2755
+ (options ? options : VImage::option())->
2756
+ set( "in", *this )->
2757
+ set( "out", &out )->
2758
+ set( "relational", relational )->
2759
+ set( "c", c ) );
2760
+
2761
+ return( out );
2762
+ }
2763
+
2764
+ VImage VImage::remainder( VImage right, VOption *options ) const
2765
+ {
2766
+ VImage out;
2767
+
2768
+ call( "remainder",
2769
+ (options ? options : VImage::option())->
2770
+ set( "left", *this )->
2771
+ set( "out", &out )->
2772
+ set( "right", right ) );
2773
+
2774
+ return( out );
2775
+ }
2776
+
2777
+ VImage VImage::remainder_const( std::vector<double> c, VOption *options ) const
2778
+ {
2779
+ VImage out;
2780
+
2781
+ call( "remainder_const",
2782
+ (options ? options : VImage::option())->
2783
+ set( "in", *this )->
2784
+ set( "out", &out )->
2785
+ set( "c", c ) );
2786
+
2787
+ return( out );
2788
+ }
2789
+
2790
+ VImage VImage::replicate( int across, int down, VOption *options ) const
2791
+ {
2792
+ VImage out;
2793
+
2794
+ call( "replicate",
2795
+ (options ? options : VImage::option())->
2796
+ set( "in", *this )->
2797
+ set( "out", &out )->
2798
+ set( "across", across )->
2799
+ set( "down", down ) );
2800
+
2801
+ return( out );
2802
+ }
2803
+
2804
+ VImage VImage::resize( double scale, VOption *options ) const
2805
+ {
2806
+ VImage out;
2807
+
2808
+ call( "resize",
2809
+ (options ? options : VImage::option())->
2810
+ set( "in", *this )->
2811
+ set( "out", &out )->
2812
+ set( "scale", scale ) );
2813
+
2814
+ return( out );
2815
+ }
2816
+
2817
+ VImage VImage::rot( VipsAngle angle, VOption *options ) const
2818
+ {
2819
+ VImage out;
2820
+
2821
+ call( "rot",
2822
+ (options ? options : VImage::option())->
2823
+ set( "in", *this )->
2824
+ set( "out", &out )->
2825
+ set( "angle", angle ) );
2826
+
2827
+ return( out );
2828
+ }
2829
+
2830
+ VImage VImage::rot45( VOption *options ) const
2831
+ {
2832
+ VImage out;
2833
+
2834
+ call( "rot45",
2835
+ (options ? options : VImage::option())->
2836
+ set( "in", *this )->
2837
+ set( "out", &out ) );
2838
+
2839
+ return( out );
2840
+ }
2841
+
2842
+ VImage VImage::rotate( double angle, VOption *options ) const
2843
+ {
2844
+ VImage out;
2845
+
2846
+ call( "rotate",
2847
+ (options ? options : VImage::option())->
2848
+ set( "in", *this )->
2849
+ set( "out", &out )->
2850
+ set( "angle", angle ) );
2851
+
2852
+ return( out );
2853
+ }
2854
+
2855
+ VImage VImage::round( VipsOperationRound round, VOption *options ) const
2856
+ {
2857
+ VImage out;
2858
+
2859
+ call( "round",
2860
+ (options ? options : VImage::option())->
2861
+ set( "in", *this )->
2862
+ set( "out", &out )->
2863
+ set( "round", round ) );
2864
+
2865
+ return( out );
2866
+ }
2867
+
2868
+ VImage VImage::sRGB2HSV( VOption *options ) const
2869
+ {
2870
+ VImage out;
2871
+
2872
+ call( "sRGB2HSV",
2873
+ (options ? options : VImage::option())->
2874
+ set( "in", *this )->
2875
+ set( "out", &out ) );
2876
+
2877
+ return( out );
2878
+ }
2879
+
2880
+ VImage VImage::sRGB2scRGB( VOption *options ) const
2881
+ {
2882
+ VImage out;
2883
+
2884
+ call( "sRGB2scRGB",
2885
+ (options ? options : VImage::option())->
2886
+ set( "in", *this )->
2887
+ set( "out", &out ) );
2888
+
2889
+ return( out );
2890
+ }
2891
+
2892
+ VImage VImage::scRGB2BW( VOption *options ) const
2893
+ {
2894
+ VImage out;
2895
+
2896
+ call( "scRGB2BW",
2897
+ (options ? options : VImage::option())->
2898
+ set( "in", *this )->
2899
+ set( "out", &out ) );
2900
+
2901
+ return( out );
2902
+ }
2903
+
2904
+ VImage VImage::scRGB2XYZ( VOption *options ) const
2905
+ {
2906
+ VImage out;
2907
+
2908
+ call( "scRGB2XYZ",
2909
+ (options ? options : VImage::option())->
2910
+ set( "in", *this )->
2911
+ set( "out", &out ) );
2912
+
2913
+ return( out );
2914
+ }
2915
+
2916
+ VImage VImage::scRGB2sRGB( VOption *options ) const
2917
+ {
2918
+ VImage out;
2919
+
2920
+ call( "scRGB2sRGB",
2921
+ (options ? options : VImage::option())->
2922
+ set( "in", *this )->
2923
+ set( "out", &out ) );
2924
+
2925
+ return( out );
2926
+ }
2927
+
2928
+ VImage VImage::scale( VOption *options ) const
2929
+ {
2930
+ VImage out;
2931
+
2932
+ call( "scale",
2933
+ (options ? options : VImage::option())->
2934
+ set( "in", *this )->
2935
+ set( "out", &out ) );
2936
+
2937
+ return( out );
2938
+ }
2939
+
2940
+ VImage VImage::sequential( VOption *options ) const
2941
+ {
2942
+ VImage out;
2943
+
2944
+ call( "sequential",
2945
+ (options ? options : VImage::option())->
2946
+ set( "in", *this )->
2947
+ set( "out", &out ) );
2948
+
2949
+ return( out );
2950
+ }
2951
+
2952
+ VImage VImage::sharpen( VOption *options ) const
2953
+ {
2954
+ VImage out;
2955
+
2956
+ call( "sharpen",
2957
+ (options ? options : VImage::option())->
2958
+ set( "in", *this )->
2959
+ set( "out", &out ) );
2960
+
2961
+ return( out );
2962
+ }
2963
+
2964
+ VImage VImage::shrink( double hshrink, double vshrink, VOption *options ) const
2965
+ {
2966
+ VImage out;
2967
+
2968
+ call( "shrink",
2969
+ (options ? options : VImage::option())->
2970
+ set( "in", *this )->
2971
+ set( "out", &out )->
2972
+ set( "hshrink", hshrink )->
2973
+ set( "vshrink", vshrink ) );
2974
+
2975
+ return( out );
2976
+ }
2977
+
2978
+ VImage VImage::shrinkh( int hshrink, VOption *options ) const
2979
+ {
2980
+ VImage out;
2981
+
2982
+ call( "shrinkh",
2983
+ (options ? options : VImage::option())->
2984
+ set( "in", *this )->
2985
+ set( "out", &out )->
2986
+ set( "hshrink", hshrink ) );
2987
+
2988
+ return( out );
2989
+ }
2990
+
2991
+ VImage VImage::shrinkv( int vshrink, VOption *options ) const
2992
+ {
2993
+ VImage out;
2994
+
2995
+ call( "shrinkv",
2996
+ (options ? options : VImage::option())->
2997
+ set( "in", *this )->
2998
+ set( "out", &out )->
2999
+ set( "vshrink", vshrink ) );
3000
+
3001
+ return( out );
3002
+ }
3003
+
3004
+ VImage VImage::sign( VOption *options ) const
3005
+ {
3006
+ VImage out;
3007
+
3008
+ call( "sign",
3009
+ (options ? options : VImage::option())->
3010
+ set( "in", *this )->
3011
+ set( "out", &out ) );
3012
+
3013
+ return( out );
3014
+ }
3015
+
3016
+ VImage VImage::similarity( VOption *options ) const
3017
+ {
3018
+ VImage out;
3019
+
3020
+ call( "similarity",
3021
+ (options ? options : VImage::option())->
3022
+ set( "in", *this )->
3023
+ set( "out", &out ) );
3024
+
3025
+ return( out );
3026
+ }
3027
+
3028
+ VImage VImage::sines( int width, int height, VOption *options )
3029
+ {
3030
+ VImage out;
3031
+
3032
+ call( "sines",
3033
+ (options ? options : VImage::option())->
3034
+ set( "out", &out )->
3035
+ set( "width", width )->
3036
+ set( "height", height ) );
3037
+
3038
+ return( out );
3039
+ }
3040
+
3041
+ VImage VImage::smartcrop( int width, int height, VOption *options ) const
3042
+ {
3043
+ VImage out;
3044
+
3045
+ call( "smartcrop",
3046
+ (options ? options : VImage::option())->
3047
+ set( "input", *this )->
3048
+ set( "out", &out )->
3049
+ set( "width", width )->
3050
+ set( "height", height ) );
3051
+
3052
+ return( out );
3053
+ }
3054
+
3055
+ VImage VImage::sobel( VOption *options ) const
3056
+ {
3057
+ VImage out;
3058
+
3059
+ call( "sobel",
3060
+ (options ? options : VImage::option())->
3061
+ set( "in", *this )->
3062
+ set( "out", &out ) );
3063
+
3064
+ return( out );
3065
+ }
3066
+
3067
+ VImage VImage::spcor( VImage ref, VOption *options ) const
3068
+ {
3069
+ VImage out;
3070
+
3071
+ call( "spcor",
3072
+ (options ? options : VImage::option())->
3073
+ set( "in", *this )->
3074
+ set( "out", &out )->
3075
+ set( "ref", ref ) );
3076
+
3077
+ return( out );
3078
+ }
3079
+
3080
+ VImage VImage::spectrum( VOption *options ) const
3081
+ {
3082
+ VImage out;
3083
+
3084
+ call( "spectrum",
3085
+ (options ? options : VImage::option())->
3086
+ set( "in", *this )->
3087
+ set( "out", &out ) );
3088
+
3089
+ return( out );
3090
+ }
3091
+
3092
+ VImage VImage::stats( VOption *options ) const
3093
+ {
3094
+ VImage out;
3095
+
3096
+ call( "stats",
3097
+ (options ? options : VImage::option())->
3098
+ set( "in", *this )->
3099
+ set( "out", &out ) );
3100
+
3101
+ return( out );
3102
+ }
3103
+
3104
+ VImage VImage::stdif( int width, int height, VOption *options ) const
3105
+ {
3106
+ VImage out;
3107
+
3108
+ call( "stdif",
3109
+ (options ? options : VImage::option())->
3110
+ set( "in", *this )->
3111
+ set( "out", &out )->
3112
+ set( "width", width )->
3113
+ set( "height", height ) );
3114
+
3115
+ return( out );
3116
+ }
3117
+
3118
+ VImage VImage::subsample( int xfac, int yfac, VOption *options ) const
3119
+ {
3120
+ VImage out;
3121
+
3122
+ call( "subsample",
3123
+ (options ? options : VImage::option())->
3124
+ set( "input", *this )->
3125
+ set( "out", &out )->
3126
+ set( "xfac", xfac )->
3127
+ set( "yfac", yfac ) );
3128
+
3129
+ return( out );
3130
+ }
3131
+
3132
+ VImage VImage::subtract( VImage right, VOption *options ) const
3133
+ {
3134
+ VImage out;
3135
+
3136
+ call( "subtract",
3137
+ (options ? options : VImage::option())->
3138
+ set( "left", *this )->
3139
+ set( "out", &out )->
3140
+ set( "right", right ) );
3141
+
3142
+ return( out );
3143
+ }
3144
+
3145
+ VImage VImage::sum( std::vector<VImage> in, VOption *options )
3146
+ {
3147
+ VImage out;
3148
+
3149
+ call( "sum",
3150
+ (options ? options : VImage::option())->
3151
+ set( "out", &out )->
3152
+ set( "in", in ) );
3153
+
3154
+ return( out );
3155
+ }
3156
+
3157
+ VImage VImage::svgload( const char *filename, VOption *options )
3158
+ {
3159
+ VImage out;
3160
+
3161
+ call( "svgload",
3162
+ (options ? options : VImage::option())->
3163
+ set( "out", &out )->
3164
+ set( "filename", filename ) );
3165
+
3166
+ return( out );
3167
+ }
3168
+
3169
+ VImage VImage::svgload_buffer( VipsBlob *buffer, VOption *options )
3170
+ {
3171
+ VImage out;
3172
+
3173
+ call( "svgload_buffer",
3174
+ (options ? options : VImage::option())->
3175
+ set( "out", &out )->
3176
+ set( "buffer", buffer ) );
3177
+
3178
+ return( out );
3179
+ }
3180
+
3181
+ VImage VImage::svgload_source( VSource source, VOption *options )
3182
+ {
3183
+ VImage out;
3184
+
3185
+ call( "svgload_source",
3186
+ (options ? options : VImage::option())->
3187
+ set( "out", &out )->
3188
+ set( "source", source ) );
3189
+
3190
+ return( out );
3191
+ }
3192
+
3193
+ VImage VImage::switch_image( std::vector<VImage> tests, VOption *options )
3194
+ {
3195
+ VImage out;
3196
+
3197
+ call( "switch",
3198
+ (options ? options : VImage::option())->
3199
+ set( "out", &out )->
3200
+ set( "tests", tests ) );
3201
+
3202
+ return( out );
3203
+ }
3204
+
3205
+ void VImage::system( const char *cmd_format, VOption *options )
3206
+ {
3207
+ call( "system",
3208
+ (options ? options : VImage::option())->
3209
+ set( "cmd_format", cmd_format ) );
3210
+ }
3211
+
3212
+ VImage VImage::text( const char *text, VOption *options )
3213
+ {
3214
+ VImage out;
3215
+
3216
+ call( "text",
3217
+ (options ? options : VImage::option())->
3218
+ set( "out", &out )->
3219
+ set( "text", text ) );
3220
+
3221
+ return( out );
3222
+ }
3223
+
3224
+ VImage VImage::thumbnail( const char *filename, int width, VOption *options )
3225
+ {
3226
+ VImage out;
3227
+
3228
+ call( "thumbnail",
3229
+ (options ? options : VImage::option())->
3230
+ set( "out", &out )->
3231
+ set( "filename", filename )->
3232
+ set( "width", width ) );
3233
+
3234
+ return( out );
3235
+ }
3236
+
3237
+ VImage VImage::thumbnail_buffer( VipsBlob *buffer, int width, VOption *options )
3238
+ {
3239
+ VImage out;
3240
+
3241
+ call( "thumbnail_buffer",
3242
+ (options ? options : VImage::option())->
3243
+ set( "out", &out )->
3244
+ set( "buffer", buffer )->
3245
+ set( "width", width ) );
3246
+
3247
+ return( out );
3248
+ }
3249
+
3250
+ VImage VImage::thumbnail_image( int width, VOption *options ) const
3251
+ {
3252
+ VImage out;
3253
+
3254
+ call( "thumbnail_image",
3255
+ (options ? options : VImage::option())->
3256
+ set( "in", *this )->
3257
+ set( "out", &out )->
3258
+ set( "width", width ) );
3259
+
3260
+ return( out );
3261
+ }
3262
+
3263
+ VImage VImage::thumbnail_source( VSource source, int width, VOption *options )
3264
+ {
3265
+ VImage out;
3266
+
3267
+ call( "thumbnail_source",
3268
+ (options ? options : VImage::option())->
3269
+ set( "out", &out )->
3270
+ set( "source", source )->
3271
+ set( "width", width ) );
3272
+
3273
+ return( out );
3274
+ }
3275
+
3276
+ VImage VImage::tiffload( const char *filename, VOption *options )
3277
+ {
3278
+ VImage out;
3279
+
3280
+ call( "tiffload",
3281
+ (options ? options : VImage::option())->
3282
+ set( "out", &out )->
3283
+ set( "filename", filename ) );
3284
+
3285
+ return( out );
3286
+ }
3287
+
3288
+ VImage VImage::tiffload_buffer( VipsBlob *buffer, VOption *options )
3289
+ {
3290
+ VImage out;
3291
+
3292
+ call( "tiffload_buffer",
3293
+ (options ? options : VImage::option())->
3294
+ set( "out", &out )->
3295
+ set( "buffer", buffer ) );
3296
+
3297
+ return( out );
3298
+ }
3299
+
3300
+ VImage VImage::tiffload_source( VSource source, VOption *options )
3301
+ {
3302
+ VImage out;
3303
+
3304
+ call( "tiffload_source",
3305
+ (options ? options : VImage::option())->
3306
+ set( "out", &out )->
3307
+ set( "source", source ) );
3308
+
3309
+ return( out );
3310
+ }
3311
+
3312
+ void VImage::tiffsave( const char *filename, VOption *options ) const
3313
+ {
3314
+ call( "tiffsave",
3315
+ (options ? options : VImage::option())->
3316
+ set( "in", *this )->
3317
+ set( "filename", filename ) );
3318
+ }
3319
+
3320
+ VipsBlob *VImage::tiffsave_buffer( VOption *options ) const
3321
+ {
3322
+ VipsBlob *buffer;
3323
+
3324
+ call( "tiffsave_buffer",
3325
+ (options ? options : VImage::option())->
3326
+ set( "in", *this )->
3327
+ set( "buffer", &buffer ) );
3328
+
3329
+ return( buffer );
3330
+ }
3331
+
3332
+ VImage VImage::tilecache( VOption *options ) const
3333
+ {
3334
+ VImage out;
3335
+
3336
+ call( "tilecache",
3337
+ (options ? options : VImage::option())->
3338
+ set( "in", *this )->
3339
+ set( "out", &out ) );
3340
+
3341
+ return( out );
3342
+ }
3343
+
3344
+ VImage VImage::tonelut( VOption *options )
3345
+ {
3346
+ VImage out;
3347
+
3348
+ call( "tonelut",
3349
+ (options ? options : VImage::option())->
3350
+ set( "out", &out ) );
3351
+
3352
+ return( out );
3353
+ }
3354
+
3355
+ VImage VImage::transpose3d( VOption *options ) const
3356
+ {
3357
+ VImage out;
3358
+
3359
+ call( "transpose3d",
3360
+ (options ? options : VImage::option())->
3361
+ set( "in", *this )->
3362
+ set( "out", &out ) );
3363
+
3364
+ return( out );
3365
+ }
3366
+
3367
+ VImage VImage::unpremultiply( VOption *options ) const
3368
+ {
3369
+ VImage out;
3370
+
3371
+ call( "unpremultiply",
3372
+ (options ? options : VImage::option())->
3373
+ set( "in", *this )->
3374
+ set( "out", &out ) );
3375
+
3376
+ return( out );
3377
+ }
3378
+
3379
+ VImage VImage::vipsload( const char *filename, VOption *options )
3380
+ {
3381
+ VImage out;
3382
+
3383
+ call( "vipsload",
3384
+ (options ? options : VImage::option())->
3385
+ set( "out", &out )->
3386
+ set( "filename", filename ) );
3387
+
3388
+ return( out );
3389
+ }
3390
+
3391
+ void VImage::vipssave( const char *filename, VOption *options ) const
3392
+ {
3393
+ call( "vipssave",
3394
+ (options ? options : VImage::option())->
3395
+ set( "in", *this )->
3396
+ set( "filename", filename ) );
3397
+ }
3398
+
3399
+ VImage VImage::webpload( const char *filename, VOption *options )
3400
+ {
3401
+ VImage out;
3402
+
3403
+ call( "webpload",
3404
+ (options ? options : VImage::option())->
3405
+ set( "out", &out )->
3406
+ set( "filename", filename ) );
3407
+
3408
+ return( out );
3409
+ }
3410
+
3411
+ VImage VImage::webpload_buffer( VipsBlob *buffer, VOption *options )
3412
+ {
3413
+ VImage out;
3414
+
3415
+ call( "webpload_buffer",
3416
+ (options ? options : VImage::option())->
3417
+ set( "out", &out )->
3418
+ set( "buffer", buffer ) );
3419
+
3420
+ return( out );
3421
+ }
3422
+
3423
+ VImage VImage::webpload_source( VSource source, VOption *options )
3424
+ {
3425
+ VImage out;
3426
+
3427
+ call( "webpload_source",
3428
+ (options ? options : VImage::option())->
3429
+ set( "out", &out )->
3430
+ set( "source", source ) );
3431
+
3432
+ return( out );
3433
+ }
3434
+
3435
+ void VImage::webpsave( const char *filename, VOption *options ) const
3436
+ {
3437
+ call( "webpsave",
3438
+ (options ? options : VImage::option())->
3439
+ set( "in", *this )->
3440
+ set( "filename", filename ) );
3441
+ }
3442
+
3443
+ VipsBlob *VImage::webpsave_buffer( VOption *options ) const
3444
+ {
3445
+ VipsBlob *buffer;
3446
+
3447
+ call( "webpsave_buffer",
3448
+ (options ? options : VImage::option())->
3449
+ set( "in", *this )->
3450
+ set( "buffer", &buffer ) );
3451
+
3452
+ return( buffer );
3453
+ }
3454
+
3455
+ void VImage::webpsave_target( VTarget target, VOption *options ) const
3456
+ {
3457
+ call( "webpsave_target",
3458
+ (options ? options : VImage::option())->
3459
+ set( "in", *this )->
3460
+ set( "target", target ) );
3461
+ }
3462
+
3463
+ VImage VImage::worley( int width, int height, VOption *options )
3464
+ {
3465
+ VImage out;
3466
+
3467
+ call( "worley",
3468
+ (options ? options : VImage::option())->
3469
+ set( "out", &out )->
3470
+ set( "width", width )->
3471
+ set( "height", height ) );
3472
+
3473
+ return( out );
3474
+ }
3475
+
3476
+ VImage VImage::wrap( VOption *options ) const
3477
+ {
3478
+ VImage out;
3479
+
3480
+ call( "wrap",
3481
+ (options ? options : VImage::option())->
3482
+ set( "in", *this )->
3483
+ set( "out", &out ) );
3484
+
3485
+ return( out );
3486
+ }
3487
+
3488
+ VImage VImage::xyz( int width, int height, VOption *options )
3489
+ {
3490
+ VImage out;
3491
+
3492
+ call( "xyz",
3493
+ (options ? options : VImage::option())->
3494
+ set( "out", &out )->
3495
+ set( "width", width )->
3496
+ set( "height", height ) );
3497
+
3498
+ return( out );
3499
+ }
3500
+
3501
+ VImage VImage::zone( int width, int height, VOption *options )
3502
+ {
3503
+ VImage out;
3504
+
3505
+ call( "zone",
3506
+ (options ? options : VImage::option())->
3507
+ set( "out", &out )->
3508
+ set( "width", width )->
3509
+ set( "height", height ) );
3510
+
3511
+ return( out );
3512
+ }
3513
+
3514
+ VImage VImage::zoom( int xfac, int yfac, VOption *options ) const
3515
+ {
3516
+ VImage out;
3517
+
3518
+ call( "zoom",
3519
+ (options ? options : VImage::option())->
3520
+ set( "input", *this )->
3521
+ set( "out", &out )->
3522
+ set( "xfac", xfac )->
3523
+ set( "yfac", yfac ) );
3524
+
3525
+ return( out );
3526
+ }