@img/sharp-libvips-dev-wasm32 0.0.3

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 (475) hide show
  1. package/README.md +35 -0
  2. package/include/aom/aom.h +127 -0
  3. package/include/aom/aom_codec.h +577 -0
  4. package/include/aom/aom_decoder.h +257 -0
  5. package/include/aom/aom_encoder.h +1144 -0
  6. package/include/aom/aom_external_partition.h +452 -0
  7. package/include/aom/aom_frame_buffer.h +84 -0
  8. package/include/aom/aom_image.h +448 -0
  9. package/include/aom/aom_integer.h +68 -0
  10. package/include/aom/aomcx.h +2181 -0
  11. package/include/aom/aomdx.h +604 -0
  12. package/include/cgif.h +80 -0
  13. package/include/expat.h +1064 -0
  14. package/include/expat_config.h +140 -0
  15. package/include/expat_external.h +165 -0
  16. package/include/ffi.h +531 -0
  17. package/include/ffitarget.h +62 -0
  18. package/include/glib-2.0/gio/gaction.h +100 -0
  19. package/include/glib-2.0/gio/gactiongroup.h +163 -0
  20. package/include/glib-2.0/gio/gactiongroupexporter.h +47 -0
  21. package/include/glib-2.0/gio/gactionmap.h +101 -0
  22. package/include/glib-2.0/gio/gappinfo.h +369 -0
  23. package/include/glib-2.0/gio/gapplication.h +257 -0
  24. package/include/glib-2.0/gio/gapplicationcommandline.h +124 -0
  25. package/include/glib-2.0/gio/gasyncinitable.h +132 -0
  26. package/include/glib-2.0/gio/gasyncresult.h +87 -0
  27. package/include/glib-2.0/gio/gbufferedinputstream.h +135 -0
  28. package/include/glib-2.0/gio/gbufferedoutputstream.h +88 -0
  29. package/include/glib-2.0/gio/gbytesicon.h +54 -0
  30. package/include/glib-2.0/gio/gcancellable.h +120 -0
  31. package/include/glib-2.0/gio/gcharsetconverter.h +65 -0
  32. package/include/glib-2.0/gio/gcontenttype.h +84 -0
  33. package/include/glib-2.0/gio/gconverter.h +98 -0
  34. package/include/glib-2.0/gio/gconverterinputstream.h +82 -0
  35. package/include/glib-2.0/gio/gconverteroutputstream.h +82 -0
  36. package/include/glib-2.0/gio/gcredentials.h +87 -0
  37. package/include/glib-2.0/gio/gdatagrambased.h +146 -0
  38. package/include/glib-2.0/gio/gdatainputstream.h +182 -0
  39. package/include/glib-2.0/gio/gdataoutputstream.h +127 -0
  40. package/include/glib-2.0/gio/gdbusactiongroup.h +56 -0
  41. package/include/glib-2.0/gio/gdbusaddress.h +67 -0
  42. package/include/glib-2.0/gio/gdbusauthobserver.h +53 -0
  43. package/include/glib-2.0/gio/gdbusconnection.h +691 -0
  44. package/include/glib-2.0/gio/gdbuserror.h +111 -0
  45. package/include/glib-2.0/gio/gdbusinterface.h +83 -0
  46. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +129 -0
  47. package/include/glib-2.0/gio/gdbusintrospection.h +327 -0
  48. package/include/glib-2.0/gio/gdbusmenumodel.h +47 -0
  49. package/include/glib-2.0/gio/gdbusmessage.h +204 -0
  50. package/include/glib-2.0/gio/gdbusmethodinvocation.h +136 -0
  51. package/include/glib-2.0/gio/gdbusnameowning.h +117 -0
  52. package/include/glib-2.0/gio/gdbusnamewatching.h +104 -0
  53. package/include/glib-2.0/gio/gdbusobject.h +80 -0
  54. package/include/glib-2.0/gio/gdbusobjectmanager.h +96 -0
  55. package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +148 -0
  56. package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +95 -0
  57. package/include/glib-2.0/gio/gdbusobjectproxy.h +81 -0
  58. package/include/glib-2.0/gio/gdbusobjectskeleton.h +98 -0
  59. package/include/glib-2.0/gio/gdbusproxy.h +220 -0
  60. package/include/glib-2.0/gio/gdbusserver.h +62 -0
  61. package/include/glib-2.0/gio/gdbusutils.h +65 -0
  62. package/include/glib-2.0/gio/gdebugcontroller.h +81 -0
  63. package/include/glib-2.0/gio/gdebugcontrollerdbus.h +71 -0
  64. package/include/glib-2.0/gio/gdrive.h +274 -0
  65. package/include/glib-2.0/gio/gdtlsclientconnection.h +77 -0
  66. package/include/glib-2.0/gio/gdtlsconnection.h +230 -0
  67. package/include/glib-2.0/gio/gdtlsserverconnection.h +71 -0
  68. package/include/glib-2.0/gio/gemblem.h +63 -0
  69. package/include/glib-2.0/gio/gemblemedicon.h +83 -0
  70. package/include/glib-2.0/gio/gfile.h +1359 -0
  71. package/include/glib-2.0/gio/gfileattribute.h +86 -0
  72. package/include/glib-2.0/gio/gfileenumerator.h +154 -0
  73. package/include/glib-2.0/gio/gfileicon.h +59 -0
  74. package/include/glib-2.0/gio/gfileinfo.h +1546 -0
  75. package/include/glib-2.0/gio/gfileinputstream.h +116 -0
  76. package/include/glib-2.0/gio/gfileiostream.h +123 -0
  77. package/include/glib-2.0/gio/gfilemonitor.h +100 -0
  78. package/include/glib-2.0/gio/gfilenamecompleter.h +81 -0
  79. package/include/glib-2.0/gio/gfileoutputstream.h +124 -0
  80. package/include/glib-2.0/gio/gfilterinputstream.h +80 -0
  81. package/include/glib-2.0/gio/gfilteroutputstream.h +80 -0
  82. package/include/glib-2.0/gio/gicon.h +133 -0
  83. package/include/glib-2.0/gio/ginetaddress.h +125 -0
  84. package/include/glib-2.0/gio/ginetaddressmask.h +86 -0
  85. package/include/glib-2.0/gio/ginetsocketaddress.h +80 -0
  86. package/include/glib-2.0/gio/ginitable.h +107 -0
  87. package/include/glib-2.0/gio/ginputstream.h +218 -0
  88. package/include/glib-2.0/gio/gio-autocleanups.h +155 -0
  89. package/include/glib-2.0/gio/gio-visibility.h +952 -0
  90. package/include/glib-2.0/gio/gio.h +186 -0
  91. package/include/glib-2.0/gio/gioenums.h +2149 -0
  92. package/include/glib-2.0/gio/gioenumtypes.h +207 -0
  93. package/include/glib-2.0/gio/gioerror.h +58 -0
  94. package/include/glib-2.0/gio/giomodule.h +199 -0
  95. package/include/glib-2.0/gio/gioscheduler.h +56 -0
  96. package/include/glib-2.0/gio/giostream.h +137 -0
  97. package/include/glib-2.0/gio/giotypes.h +660 -0
  98. package/include/glib-2.0/gio/glistmodel.h +74 -0
  99. package/include/glib-2.0/gio/gliststore.h +97 -0
  100. package/include/glib-2.0/gio/gloadableicon.h +101 -0
  101. package/include/glib-2.0/gio/gmemoryinputstream.h +92 -0
  102. package/include/glib-2.0/gio/gmemorymonitor.h +64 -0
  103. package/include/glib-2.0/gio/gmemoryoutputstream.h +109 -0
  104. package/include/glib-2.0/gio/gmenu.h +184 -0
  105. package/include/glib-2.0/gio/gmenuexporter.h +55 -0
  106. package/include/glib-2.0/gio/gmenumodel.h +307 -0
  107. package/include/glib-2.0/gio/gmount.h +278 -0
  108. package/include/glib-2.0/gio/gmountoperation.h +179 -0
  109. package/include/glib-2.0/gio/gnativesocketaddress.h +67 -0
  110. package/include/glib-2.0/gio/gnativevolumemonitor.h +63 -0
  111. package/include/glib-2.0/gio/gnetworkaddress.h +82 -0
  112. package/include/glib-2.0/gio/gnetworking.h +81 -0
  113. package/include/glib-2.0/gio/gnetworkmonitor.h +101 -0
  114. package/include/glib-2.0/gio/gnetworkservice.h +77 -0
  115. package/include/glib-2.0/gio/gnotification.h +103 -0
  116. package/include/glib-2.0/gio/goutputstream.h +334 -0
  117. package/include/glib-2.0/gio/gpermission.h +129 -0
  118. package/include/glib-2.0/gio/gpollableinputstream.h +106 -0
  119. package/include/glib-2.0/gio/gpollableoutputstream.h +127 -0
  120. package/include/glib-2.0/gio/gpollableutils.h +66 -0
  121. package/include/glib-2.0/gio/gpowerprofilemonitor.h +65 -0
  122. package/include/glib-2.0/gio/gpropertyaction.h +49 -0
  123. package/include/glib-2.0/gio/gproxy.h +130 -0
  124. package/include/glib-2.0/gio/gproxyaddress.h +88 -0
  125. package/include/glib-2.0/gio/gproxyaddressenumerator.h +83 -0
  126. package/include/glib-2.0/gio/gproxyresolver.h +97 -0
  127. package/include/glib-2.0/gio/gremoteactiongroup.h +77 -0
  128. package/include/glib-2.0/gio/gresolver.h +299 -0
  129. package/include/glib-2.0/gio/gresource.h +132 -0
  130. package/include/glib-2.0/gio/gseekable.h +105 -0
  131. package/include/glib-2.0/gio/gsettings.h +347 -0
  132. package/include/glib-2.0/gio/gsettingsbackend.h +176 -0
  133. package/include/glib-2.0/gio/gsettingsschema.h +115 -0
  134. package/include/glib-2.0/gio/gsimpleaction.h +65 -0
  135. package/include/glib-2.0/gio/gsimpleactiongroup.h +99 -0
  136. package/include/glib-2.0/gio/gsimpleasyncresult.h +164 -0
  137. package/include/glib-2.0/gio/gsimpleiostream.h +47 -0
  138. package/include/glib-2.0/gio/gsimplepermission.h +47 -0
  139. package/include/glib-2.0/gio/gsimpleproxyresolver.h +91 -0
  140. package/include/glib-2.0/gio/gsocket.h +330 -0
  141. package/include/glib-2.0/gio/gsocketaddress.h +84 -0
  142. package/include/glib-2.0/gio/gsocketaddressenumerator.h +103 -0
  143. package/include/glib-2.0/gio/gsocketclient.h +199 -0
  144. package/include/glib-2.0/gio/gsocketconnectable.h +83 -0
  145. package/include/glib-2.0/gio/gsocketconnection.h +117 -0
  146. package/include/glib-2.0/gio/gsocketcontrolmessage.h +113 -0
  147. package/include/glib-2.0/gio/gsocketlistener.h +157 -0
  148. package/include/glib-2.0/gio/gsocketservice.h +95 -0
  149. package/include/glib-2.0/gio/gsrvtarget.h +60 -0
  150. package/include/glib-2.0/gio/gsubprocess.h +169 -0
  151. package/include/glib-2.0/gio/gsubprocesslauncher.h +121 -0
  152. package/include/glib-2.0/gio/gtask.h +207 -0
  153. package/include/glib-2.0/gio/gtcpconnection.h +71 -0
  154. package/include/glib-2.0/gio/gtcpwrapperconnection.h +71 -0
  155. package/include/glib-2.0/gio/gtestdbus.h +74 -0
  156. package/include/glib-2.0/gio/gthemedicon.h +70 -0
  157. package/include/glib-2.0/gio/gthreadedsocketservice.h +83 -0
  158. package/include/glib-2.0/gio/gtlsbackend.h +115 -0
  159. package/include/glib-2.0/gio/gtlscertificate.h +125 -0
  160. package/include/glib-2.0/gio/gtlsclientconnection.h +88 -0
  161. package/include/glib-2.0/gio/gtlsconnection.h +214 -0
  162. package/include/glib-2.0/gio/gtlsdatabase.h +249 -0
  163. package/include/glib-2.0/gio/gtlsfiledatabase.h +60 -0
  164. package/include/glib-2.0/gio/gtlsinteraction.h +150 -0
  165. package/include/glib-2.0/gio/gtlspassword.h +121 -0
  166. package/include/glib-2.0/gio/gtlsserverconnection.h +71 -0
  167. package/include/glib-2.0/gio/gunixconnection.h +102 -0
  168. package/include/glib-2.0/gio/gunixcredentialsmessage.h +89 -0
  169. package/include/glib-2.0/gio/gunixfdlist.h +97 -0
  170. package/include/glib-2.0/gio/gunixsocketaddress.h +83 -0
  171. package/include/glib-2.0/gio/gvfs.h +170 -0
  172. package/include/glib-2.0/gio/gvolume.h +255 -0
  173. package/include/glib-2.0/gio/gvolumemonitor.h +156 -0
  174. package/include/glib-2.0/gio/gzlibcompressor.h +64 -0
  175. package/include/glib-2.0/gio/gzlibdecompressor.h +60 -0
  176. package/include/glib-2.0/glib/deprecated/gallocator.h +88 -0
  177. package/include/glib-2.0/glib/deprecated/gcache.h +77 -0
  178. package/include/glib-2.0/glib/deprecated/gcompletion.h +85 -0
  179. package/include/glib-2.0/glib/deprecated/gmain.h +137 -0
  180. package/include/glib-2.0/glib/deprecated/grel.h +107 -0
  181. package/include/glib-2.0/glib/deprecated/gthread.h +295 -0
  182. package/include/glib-2.0/glib/galloca.h +147 -0
  183. package/include/glib-2.0/glib/garray.h +323 -0
  184. package/include/glib-2.0/glib/gasyncqueue.h +126 -0
  185. package/include/glib-2.0/glib/gatomic.h +587 -0
  186. package/include/glib-2.0/glib/gbacktrace.h +74 -0
  187. package/include/glib-2.0/glib/gbase64.h +63 -0
  188. package/include/glib-2.0/glib/gbitlock.h +78 -0
  189. package/include/glib-2.0/glib/gbookmarkfile.h +300 -0
  190. package/include/glib-2.0/glib/gbytes.h +99 -0
  191. package/include/glib-2.0/glib/gcharset.h +49 -0
  192. package/include/glib-2.0/glib/gchecksum.h +106 -0
  193. package/include/glib-2.0/glib/gconvert.h +179 -0
  194. package/include/glib-2.0/glib/gdataset.h +156 -0
  195. package/include/glib-2.0/glib/gdate.h +309 -0
  196. package/include/glib-2.0/glib/gdatetime.h +275 -0
  197. package/include/glib-2.0/glib/gdir.h +54 -0
  198. package/include/glib-2.0/glib/genviron.h +65 -0
  199. package/include/glib-2.0/glib/gerror.h +263 -0
  200. package/include/glib-2.0/glib/gfileutils.h +223 -0
  201. package/include/glib-2.0/glib/ggettext.h +65 -0
  202. package/include/glib-2.0/glib/ghash.h +206 -0
  203. package/include/glib-2.0/glib/ghmac.h +85 -0
  204. package/include/glib-2.0/glib/ghook.h +204 -0
  205. package/include/glib-2.0/glib/ghostutils.h +45 -0
  206. package/include/glib-2.0/glib/gi18n-lib.h +29 -0
  207. package/include/glib-2.0/glib/gi18n.h +34 -0
  208. package/include/glib-2.0/glib/giochannel.h +407 -0
  209. package/include/glib-2.0/glib/gkeyfile.h +332 -0
  210. package/include/glib-2.0/glib/glib-autocleanups.h +105 -0
  211. package/include/glib-2.0/glib/glib-typeof.h +47 -0
  212. package/include/glib-2.0/glib/glib-visibility.h +952 -0
  213. package/include/glib-2.0/glib/glist.h +179 -0
  214. package/include/glib-2.0/glib/gmacros.h +1425 -0
  215. package/include/glib-2.0/glib/gmain.h +862 -0
  216. package/include/glib-2.0/glib/gmappedfile.h +60 -0
  217. package/include/glib-2.0/glib/gmarkup.h +265 -0
  218. package/include/glib-2.0/glib/gmem.h +425 -0
  219. package/include/glib-2.0/glib/gmessages.h +690 -0
  220. package/include/glib-2.0/glib/gnode.h +309 -0
  221. package/include/glib-2.0/glib/goption.h +409 -0
  222. package/include/glib-2.0/glib/gpathbuf.h +90 -0
  223. package/include/glib-2.0/glib/gpattern.h +65 -0
  224. package/include/glib-2.0/glib/gpoll.h +122 -0
  225. package/include/glib-2.0/glib/gprimes.h +52 -0
  226. package/include/glib-2.0/glib/gprintf.h +59 -0
  227. package/include/glib-2.0/glib/gqsort.h +47 -0
  228. package/include/glib-2.0/glib/gquark.h +70 -0
  229. package/include/glib-2.0/glib/gqueue.h +205 -0
  230. package/include/glib-2.0/glib/grand.h +101 -0
  231. package/include/glib-2.0/glib/grcbox.h +91 -0
  232. package/include/glib-2.0/glib/grefcount.h +179 -0
  233. package/include/glib-2.0/glib/grefstring.h +59 -0
  234. package/include/glib-2.0/glib/gscanner.h +301 -0
  235. package/include/glib-2.0/glib/gsequence.h +175 -0
  236. package/include/glib-2.0/glib/gshell.h +59 -0
  237. package/include/glib-2.0/glib/gslice.h +117 -0
  238. package/include/glib-2.0/glib/gslist.h +166 -0
  239. package/include/glib-2.0/glib/gspawn.h +323 -0
  240. package/include/glib-2.0/glib/gstdio.h +231 -0
  241. package/include/glib-2.0/glib/gstrfuncs.h +504 -0
  242. package/include/glib-2.0/glib/gstring.h +296 -0
  243. package/include/glib-2.0/glib/gstringchunk.h +59 -0
  244. package/include/glib-2.0/glib/gstrvbuilder.h +69 -0
  245. package/include/glib-2.0/glib/gtestutils.h +763 -0
  246. package/include/glib-2.0/glib/gthread.h +603 -0
  247. package/include/glib-2.0/glib/gthreadpool.h +105 -0
  248. package/include/glib-2.0/glib/gtimer.h +80 -0
  249. package/include/glib-2.0/glib/gtimezone.h +98 -0
  250. package/include/glib-2.0/glib/gtrashstack.h +60 -0
  251. package/include/glib-2.0/glib/gtree.h +181 -0
  252. package/include/glib-2.0/glib/gtypes.h +591 -0
  253. package/include/glib-2.0/glib/gunicode.h +974 -0
  254. package/include/glib-2.0/glib/guri.h +420 -0
  255. package/include/glib-2.0/glib/gutils.h +479 -0
  256. package/include/glib-2.0/glib/guuid.h +42 -0
  257. package/include/glib-2.0/glib/gvariant.h +541 -0
  258. package/include/glib-2.0/glib/gvarianttype.h +384 -0
  259. package/include/glib-2.0/glib/gversion.h +57 -0
  260. package/include/glib-2.0/glib/gversionmacros.h +490 -0
  261. package/include/glib-2.0/glib/gwin32.h +142 -0
  262. package/include/glib-2.0/glib-object.h +46 -0
  263. package/include/glib-2.0/glib-unix.h +125 -0
  264. package/include/glib-2.0/glib.h +121 -0
  265. package/include/glib-2.0/gmodule/gmodule-visibility.h +952 -0
  266. package/include/glib-2.0/gmodule.h +147 -0
  267. package/include/glib-2.0/gobject/gbinding.h +156 -0
  268. package/include/glib-2.0/gobject/gbindinggroup.h +85 -0
  269. package/include/glib-2.0/gobject/gboxed.h +124 -0
  270. package/include/glib-2.0/gobject/gclosure.h +323 -0
  271. package/include/glib-2.0/gobject/genums.h +381 -0
  272. package/include/glib-2.0/gobject/glib-enumtypes.h +25 -0
  273. package/include/glib-2.0/gobject/glib-types.h +400 -0
  274. package/include/glib-2.0/gobject/gmarshal.h +434 -0
  275. package/include/glib-2.0/gobject/gobject-autocleanups.h +33 -0
  276. package/include/glib-2.0/gobject/gobject-visibility.h +952 -0
  277. package/include/glib-2.0/gobject/gobject.h +953 -0
  278. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +199 -0
  279. package/include/glib-2.0/gobject/gparam.h +477 -0
  280. package/include/glib-2.0/gobject/gparamspecs.h +1151 -0
  281. package/include/glib-2.0/gobject/gsignal.h +647 -0
  282. package/include/glib-2.0/gobject/gsignalgroup.h +98 -0
  283. package/include/glib-2.0/gobject/gsourceclosure.h +40 -0
  284. package/include/glib-2.0/gobject/gtype.h +2715 -0
  285. package/include/glib-2.0/gobject/gtypemodule.h +302 -0
  286. package/include/glib-2.0/gobject/gtypeplugin.h +136 -0
  287. package/include/glib-2.0/gobject/gvalue.h +212 -0
  288. package/include/glib-2.0/gobject/gvaluearray.h +106 -0
  289. package/include/glib-2.0/gobject/gvaluecollector.h +290 -0
  290. package/include/glib-2.0/gobject/gvaluetypes.h +318 -0
  291. package/include/hwy/aligned_allocator.h +211 -0
  292. package/include/hwy/base.h +1517 -0
  293. package/include/hwy/cache_control.h +108 -0
  294. package/include/hwy/detect_compiler_arch.h +281 -0
  295. package/include/hwy/detect_targets.h +644 -0
  296. package/include/hwy/foreach_target.h +340 -0
  297. package/include/hwy/highway.h +435 -0
  298. package/include/hwy/highway_export.h +74 -0
  299. package/include/hwy/nanobenchmark.h +171 -0
  300. package/include/hwy/ops/arm_neon-inl.h +8913 -0
  301. package/include/hwy/ops/arm_sve-inl.h +5105 -0
  302. package/include/hwy/ops/emu128-inl.h +2811 -0
  303. package/include/hwy/ops/generic_ops-inl.h +4745 -0
  304. package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
  305. package/include/hwy/ops/rvv-inl.h +5070 -0
  306. package/include/hwy/ops/scalar-inl.h +1995 -0
  307. package/include/hwy/ops/set_macros-inl.h +578 -0
  308. package/include/hwy/ops/shared-inl.h +539 -0
  309. package/include/hwy/ops/tuple-inl.h +125 -0
  310. package/include/hwy/ops/wasm_128-inl.h +5917 -0
  311. package/include/hwy/ops/x86_128-inl.h +11173 -0
  312. package/include/hwy/ops/x86_256-inl.h +7529 -0
  313. package/include/hwy/ops/x86_512-inl.h +6849 -0
  314. package/include/hwy/per_target.h +44 -0
  315. package/include/hwy/print-inl.h +62 -0
  316. package/include/hwy/print.h +75 -0
  317. package/include/hwy/robust_statistics.h +148 -0
  318. package/include/hwy/targets.h +338 -0
  319. package/include/hwy/timer-inl.h +200 -0
  320. package/include/hwy/timer.h +55 -0
  321. package/include/index.js +1 -0
  322. package/include/jconfig.h +37 -0
  323. package/include/jerror.h +335 -0
  324. package/include/jmorecfg.h +382 -0
  325. package/include/jpeglib.h +1211 -0
  326. package/include/lcms2.h +1958 -0
  327. package/include/lcms2_plugin.h +700 -0
  328. package/include/libexif/_stdint.h +2 -0
  329. package/include/libexif/exif-byte-order.h +48 -0
  330. package/include/libexif/exif-content.h +181 -0
  331. package/include/libexif/exif-data-type.h +46 -0
  332. package/include/libexif/exif-data.h +267 -0
  333. package/include/libexif/exif-entry.h +186 -0
  334. package/include/libexif/exif-format.h +65 -0
  335. package/include/libexif/exif-ifd.h +51 -0
  336. package/include/libexif/exif-loader.h +128 -0
  337. package/include/libexif/exif-log.h +116 -0
  338. package/include/libexif/exif-mem.h +91 -0
  339. package/include/libexif/exif-mnote-data.h +122 -0
  340. package/include/libexif/exif-tag.h +307 -0
  341. package/include/libexif/exif-utils.h +194 -0
  342. package/include/libheif/heif.h +2169 -0
  343. package/include/libheif/heif_cxx.h +1362 -0
  344. package/include/libheif/heif_plugin.h +306 -0
  345. package/include/libheif/heif_properties.h +138 -0
  346. package/include/libheif/heif_regions.h +866 -0
  347. package/include/libheif/heif_version.h +38 -0
  348. package/include/libimagequant.h +111 -0
  349. package/include/resvg.h +491 -0
  350. package/include/spng.h +537 -0
  351. package/include/tiff.h +899 -0
  352. package/include/tiffconf.h +145 -0
  353. package/include/tiffio.h +653 -0
  354. package/include/tiffvers.h +36 -0
  355. package/include/vips/VConnection8.h +144 -0
  356. package/include/vips/VError8.h +79 -0
  357. package/include/vips/VImage8.h +6329 -0
  358. package/include/vips/VInterpolate8.h +74 -0
  359. package/include/vips/VRegion8.h +154 -0
  360. package/include/vips/arithmetic.h +571 -0
  361. package/include/vips/basic.h +113 -0
  362. package/include/vips/buf.h +120 -0
  363. package/include/vips/colour.h +306 -0
  364. package/include/vips/connection.h +567 -0
  365. package/include/vips/conversion.h +357 -0
  366. package/include/vips/convolution.h +101 -0
  367. package/include/vips/create.h +161 -0
  368. package/include/vips/dbuf.h +101 -0
  369. package/include/vips/debug.h +106 -0
  370. package/include/vips/draw.h +113 -0
  371. package/include/vips/enumtypes.h +184 -0
  372. package/include/vips/error.h +142 -0
  373. package/include/vips/foreign.h +1033 -0
  374. package/include/vips/format.h +135 -0
  375. package/include/vips/freqfilt.h +64 -0
  376. package/include/vips/gate.h +90 -0
  377. package/include/vips/generate.h +92 -0
  378. package/include/vips/header.h +322 -0
  379. package/include/vips/histogram.h +85 -0
  380. package/include/vips/image.h +605 -0
  381. package/include/vips/interpolate.h +140 -0
  382. package/include/vips/memory.h +105 -0
  383. package/include/vips/morphology.h +73 -0
  384. package/include/vips/mosaicing.h +79 -0
  385. package/include/vips/object.h +720 -0
  386. package/include/vips/operation.h +183 -0
  387. package/include/vips/private.h +225 -0
  388. package/include/vips/rect.h +80 -0
  389. package/include/vips/region.h +238 -0
  390. package/include/vips/resample.h +123 -0
  391. package/include/vips/sbuf.h +143 -0
  392. package/include/vips/semaphore.h +77 -0
  393. package/include/vips/thread.h +75 -0
  394. package/include/vips/threadpool.h +159 -0
  395. package/include/vips/transform.h +89 -0
  396. package/include/vips/type.h +310 -0
  397. package/include/vips/util.h +451 -0
  398. package/include/vips/vector.h +63 -0
  399. package/include/vips/version.h +26 -0
  400. package/include/vips/vips.h +195 -0
  401. package/include/vips/vips8 +60 -0
  402. package/include/webp/decode.h +504 -0
  403. package/include/webp/demux.h +363 -0
  404. package/include/webp/encode.h +552 -0
  405. package/include/webp/mux.h +530 -0
  406. package/include/webp/mux_types.h +98 -0
  407. package/include/webp/sharpyuv/sharpyuv.h +103 -0
  408. package/include/webp/sharpyuv/sharpyuv_csp.h +60 -0
  409. package/include/webp/types.h +72 -0
  410. package/include/zconf.h +203 -0
  411. package/include/zlib.h +1859 -0
  412. package/include/zlib_name_mangling.h +8 -0
  413. package/lib/glib-2.0/include/glibconfig.h +220 -0
  414. package/lib/index.js +1 -0
  415. package/lib/libaom.a +0 -0
  416. package/lib/libcgif.a +0 -0
  417. package/lib/libexif.a +0 -0
  418. package/lib/libexif.la +41 -0
  419. package/lib/libexpat.a +0 -0
  420. package/lib/libexpat.la +41 -0
  421. package/lib/libffi.a +0 -0
  422. package/lib/libffi.la +41 -0
  423. package/lib/libgio-2.0.a +0 -0
  424. package/lib/libglib-2.0.a +0 -0
  425. package/lib/libgmodule-2.0.a +0 -0
  426. package/lib/libgobject-2.0.a +0 -0
  427. package/lib/libgthread-2.0.a +0 -0
  428. package/lib/libheif.a +0 -0
  429. package/lib/libhwy.a +0 -0
  430. package/lib/libimagequant.a +0 -0
  431. package/lib/libjpeg.a +0 -0
  432. package/lib/liblcms2.a +0 -0
  433. package/lib/libresvg.a +0 -0
  434. package/lib/libsharpyuv.a +0 -0
  435. package/lib/libsharpyuv.la +41 -0
  436. package/lib/libspng.a +0 -0
  437. package/lib/libtiff.a +0 -0
  438. package/lib/libtiff.la +41 -0
  439. package/lib/libvips-cpp.a +0 -0
  440. package/lib/libvips.a +0 -0
  441. package/lib/libwebp.a +0 -0
  442. package/lib/libwebp.la +41 -0
  443. package/lib/libwebpdemux.a +0 -0
  444. package/lib/libwebpdemux.la +41 -0
  445. package/lib/libwebpmux.a +0 -0
  446. package/lib/libwebpmux.la +41 -0
  447. package/lib/libz.a +0 -0
  448. package/lib/pkgconfig/aom.pc +14 -0
  449. package/lib/pkgconfig/cgif.pc +9 -0
  450. package/lib/pkgconfig/expat.pc +12 -0
  451. package/lib/pkgconfig/gio-2.0.pc +24 -0
  452. package/lib/pkgconfig/glib-2.0.pc +16 -0
  453. package/lib/pkgconfig/gmodule-2.0.pc +12 -0
  454. package/lib/pkgconfig/gmodule-export-2.0.pc +12 -0
  455. package/lib/pkgconfig/gmodule-no-export-2.0.pc +12 -0
  456. package/lib/pkgconfig/gobject-2.0.pc +10 -0
  457. package/lib/pkgconfig/gthread-2.0.pc +10 -0
  458. package/lib/pkgconfig/imagequant.pc +9 -0
  459. package/lib/pkgconfig/lcms2.pc +9 -0
  460. package/lib/pkgconfig/libexif.pc +12 -0
  461. package/lib/pkgconfig/libffi.pc +11 -0
  462. package/lib/pkgconfig/libheif.pc +23 -0
  463. package/lib/pkgconfig/libhwy.pc +10 -0
  464. package/lib/pkgconfig/libjpeg.pc +10 -0
  465. package/lib/pkgconfig/libsharpyuv.pc +11 -0
  466. package/lib/pkgconfig/libtiff-4.pc +12 -0
  467. package/lib/pkgconfig/libwebp.pc +12 -0
  468. package/lib/pkgconfig/libwebpdemux.pc +11 -0
  469. package/lib/pkgconfig/libwebpmux.pc +12 -0
  470. package/lib/pkgconfig/spng.pc +10 -0
  471. package/lib/pkgconfig/vips-cpp.pc +10 -0
  472. package/lib/pkgconfig/vips.pc +10 -0
  473. package/lib/pkgconfig/zlib.pc +14 -0
  474. package/package.json +31 -0
  475. package/versions.json +19 -0
@@ -0,0 +1,720 @@
1
+ /* abstract base class for all vips objects
2
+ */
3
+
4
+ /*
5
+
6
+ Copyright (C) 1991-2003 The National Gallery
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation; either
11
+ version 2.1 of the License, or (at your option) any later version.
12
+
13
+ This library is distributed in the hope that it will be useful,
14
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ Lesser General Public License for more details.
17
+
18
+ You should have received a copy of the GNU Lesser General Public
19
+ License along with this library; if not, write to the Free Software
20
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
+ 02110-1301 USA
22
+
23
+ */
24
+
25
+ /*
26
+
27
+ These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
28
+
29
+ */
30
+
31
+ #ifndef VIPS_OBJECT_H
32
+ #define VIPS_OBJECT_H
33
+
34
+ #include <glib.h>
35
+ #include <glib-object.h>
36
+ #include <vips/buf.h>
37
+ #include <vips/basic.h>
38
+
39
+ #ifdef __cplusplus
40
+ extern "C" {
41
+ #endif /*__cplusplus*/
42
+
43
+ /* Handy!
44
+ */
45
+ #ifdef VIPS_DEBUG
46
+ #define VIPS_UNREF(X) \
47
+ G_STMT_START \
48
+ { \
49
+ if (X) { \
50
+ g_assert(G_OBJECT(X)->ref_count > 0); \
51
+ g_object_unref(X); \
52
+ (X) = 0; \
53
+ } \
54
+ } \
55
+ G_STMT_END
56
+ #else /*!VIPS_DEBUG*/
57
+ #define VIPS_UNREF(X) VIPS_FREEF(g_object_unref, (X))
58
+ #endif /*VIPS_DEBUG*/
59
+
60
+ typedef struct _VipsObject VipsObject;
61
+ typedef struct _VipsObjectClass VipsObjectClass;
62
+
63
+ /* Track extra stuff for arguments to objects
64
+ */
65
+
66
+ typedef enum /*< flags >*/ {
67
+ VIPS_ARGUMENT_NONE = 0,
68
+ VIPS_ARGUMENT_REQUIRED = 1,
69
+ VIPS_ARGUMENT_CONSTRUCT = 2,
70
+ VIPS_ARGUMENT_SET_ONCE = 4,
71
+ VIPS_ARGUMENT_SET_ALWAYS = 8,
72
+ VIPS_ARGUMENT_INPUT = 16,
73
+ VIPS_ARGUMENT_OUTPUT = 32,
74
+ VIPS_ARGUMENT_DEPRECATED = 64,
75
+ VIPS_ARGUMENT_MODIFY = 128,
76
+ VIPS_ARGUMENT_NON_HASHABLE = 256
77
+ } VipsArgumentFlags;
78
+
79
+ /* Useful flag combinations. User-visible ones are:
80
+ *
81
+ * VIPS_ARGUMENT_REQUIRED_INPUT Eg. the "left" argument for an add operation
82
+ *
83
+ * VIPS_ARGUMENT_OPTIONAL_INPUT Eg. the "caption" for an object
84
+ *
85
+ * VIPS_ARGUMENT_REQUIRED_OUTPUT Eg. the "result" of an add operation
86
+ *
87
+ * VIPS_ARGUMENT_OPTIONAL_OUTPUT Eg. the x pos of the image minimum
88
+ *
89
+ * Other combinations are used internally, eg. supplying the cast-table for an
90
+ * arithmetic operation
91
+ */
92
+
93
+ #define VIPS_ARGUMENT_REQUIRED_INPUT \
94
+ (VIPS_ARGUMENT_INPUT | \
95
+ VIPS_ARGUMENT_REQUIRED | \
96
+ VIPS_ARGUMENT_CONSTRUCT)
97
+
98
+ #define VIPS_ARGUMENT_OPTIONAL_INPUT \
99
+ (VIPS_ARGUMENT_INPUT | \
100
+ VIPS_ARGUMENT_CONSTRUCT)
101
+
102
+ #define VIPS_ARGUMENT_REQUIRED_OUTPUT \
103
+ (VIPS_ARGUMENT_OUTPUT | \
104
+ VIPS_ARGUMENT_REQUIRED | \
105
+ VIPS_ARGUMENT_CONSTRUCT)
106
+
107
+ #define VIPS_ARGUMENT_OPTIONAL_OUTPUT \
108
+ (VIPS_ARGUMENT_OUTPUT | \
109
+ VIPS_ARGUMENT_CONSTRUCT)
110
+
111
+ #define VIPS_ARG_IMAGE(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET) \
112
+ { \
113
+ GParamSpec *pspec; \
114
+ \
115
+ pspec = g_param_spec_object((NAME), (LONG), (DESC), \
116
+ VIPS_TYPE_IMAGE, \
117
+ (GParamFlags) (G_PARAM_READWRITE)); \
118
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
119
+ vips_argument_get_id(), pspec); \
120
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
121
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
122
+ }
123
+
124
+ #define VIPS_ARG_OBJECT(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, TYPE) \
125
+ { \
126
+ GParamSpec *pspec; \
127
+ \
128
+ pspec = g_param_spec_object((NAME), (LONG), (DESC), \
129
+ TYPE, \
130
+ (GParamFlags) (G_PARAM_READWRITE)); \
131
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
132
+ vips_argument_get_id(), pspec); \
133
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
134
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
135
+ }
136
+
137
+ #define VIPS_ARG_INTERPOLATE(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET) \
138
+ VIPS_ARG_OBJECT(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, VIPS_TYPE_INTERPOLATE)
139
+
140
+ #define VIPS_ARG_BOOL(CLASS, NAME, PRIORITY, LONG, DESC, \
141
+ FLAGS, OFFSET, VALUE) \
142
+ { \
143
+ GParamSpec *pspec; \
144
+ \
145
+ pspec = g_param_spec_boolean((NAME), (LONG), (DESC), \
146
+ (VALUE), \
147
+ (GParamFlags) (G_PARAM_READWRITE)); \
148
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
149
+ vips_argument_get_id(), pspec); \
150
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
151
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
152
+ }
153
+
154
+ #define VIPS_ARG_DOUBLE(CLASS, NAME, PRIORITY, LONG, DESC, \
155
+ FLAGS, OFFSET, MIN, MAX, VALUE) \
156
+ { \
157
+ GParamSpec *pspec; \
158
+ \
159
+ pspec = g_param_spec_double((NAME), (LONG), (DESC), \
160
+ (MIN), (MAX), (VALUE), \
161
+ (GParamFlags) (G_PARAM_READWRITE)); \
162
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
163
+ vips_argument_get_id(), pspec); \
164
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
165
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
166
+ }
167
+
168
+ #define VIPS_ARG_BOXED(CLASS, NAME, PRIORITY, LONG, DESC, \
169
+ FLAGS, OFFSET, TYPE) \
170
+ { \
171
+ GParamSpec *pspec; \
172
+ \
173
+ pspec = g_param_spec_boxed((NAME), (LONG), (DESC), \
174
+ (TYPE), \
175
+ (GParamFlags) (G_PARAM_READWRITE)); \
176
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
177
+ vips_argument_get_id(), pspec); \
178
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
179
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
180
+ }
181
+
182
+ #define VIPS_ARG_INT(CLASS, NAME, PRIORITY, LONG, DESC, \
183
+ FLAGS, OFFSET, MIN, MAX, VALUE) \
184
+ { \
185
+ GParamSpec *pspec; \
186
+ \
187
+ pspec = g_param_spec_int((NAME), (LONG), (DESC), \
188
+ (MIN), (MAX), (VALUE), \
189
+ (GParamFlags) (G_PARAM_READWRITE)); \
190
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
191
+ vips_argument_get_id(), pspec); \
192
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
193
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
194
+ }
195
+
196
+ #define VIPS_ARG_UINT64(CLASS, NAME, PRIORITY, LONG, DESC, \
197
+ FLAGS, OFFSET, MIN, MAX, VALUE) \
198
+ { \
199
+ GParamSpec *pspec; \
200
+ \
201
+ pspec = g_param_spec_uint64((NAME), (LONG), (DESC), \
202
+ (MIN), (MAX), (VALUE), \
203
+ (GParamFlags) (G_PARAM_READWRITE)); \
204
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
205
+ vips_argument_get_id(), pspec); \
206
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
207
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
208
+ }
209
+
210
+ #define VIPS_ARG_ENUM(CLASS, NAME, PRIORITY, LONG, DESC, \
211
+ FLAGS, OFFSET, TYPE, VALUE) \
212
+ { \
213
+ GParamSpec *pspec; \
214
+ \
215
+ pspec = g_param_spec_enum((NAME), (LONG), (DESC), \
216
+ (TYPE), (VALUE), \
217
+ (GParamFlags) (G_PARAM_READWRITE)); \
218
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
219
+ vips_argument_get_id(), pspec); \
220
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
221
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
222
+ }
223
+
224
+ #define VIPS_ARG_FLAGS(CLASS, NAME, PRIORITY, LONG, DESC, \
225
+ FLAGS, OFFSET, TYPE, VALUE) \
226
+ { \
227
+ GParamSpec *pspec; \
228
+ \
229
+ pspec = g_param_spec_flags((NAME), (LONG), (DESC), \
230
+ (TYPE), (VALUE), \
231
+ (GParamFlags) (G_PARAM_READWRITE)); \
232
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
233
+ vips_argument_get_id(), pspec); \
234
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
235
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
236
+ }
237
+
238
+ #define VIPS_ARG_STRING(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, \
239
+ VALUE) \
240
+ { \
241
+ GParamSpec *pspec; \
242
+ \
243
+ pspec = g_param_spec_string((NAME), (LONG), (DESC), \
244
+ (VALUE), \
245
+ (GParamFlags) (G_PARAM_READWRITE)); \
246
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
247
+ vips_argument_get_id(), pspec); \
248
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
249
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
250
+ }
251
+
252
+ #define VIPS_ARG_POINTER(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET) \
253
+ { \
254
+ GParamSpec *pspec; \
255
+ \
256
+ pspec = g_param_spec_pointer((NAME), (LONG), (DESC), \
257
+ (GParamFlags) (G_PARAM_READWRITE)); \
258
+ g_object_class_install_property(G_OBJECT_CLASS(CLASS), \
259
+ vips_argument_get_id(), pspec); \
260
+ vips_object_class_install_argument(VIPS_OBJECT_CLASS(CLASS), \
261
+ pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
262
+ }
263
+
264
+ /* Keep one of these for every argument.
265
+ */
266
+ typedef struct _VipsArgument {
267
+ GParamSpec *pspec; /* pspec for this argument */
268
+
269
+ /* More stuff, see below */
270
+ } VipsArgument;
271
+
272
+ /* Keep one of these in the class struct for every argument.
273
+ */
274
+ typedef struct _VipsArgumentClass {
275
+ VipsArgument parent;
276
+
277
+ /* The class of the object we are an arg for.
278
+ */
279
+ VipsObjectClass *object_class;
280
+
281
+ VipsArgumentFlags flags;
282
+ int priority; /* Order args by this */
283
+ guint offset; /* G_STRUCT_OFFSET of member in object */
284
+ } VipsArgumentClass;
285
+
286
+ /* Keep one of these in the object struct for every argument instance.
287
+ */
288
+ typedef struct _VipsArgumentInstance {
289
+ VipsArgument parent;
290
+
291
+ /* The class we are part of.
292
+ */
293
+ VipsArgumentClass *argument_class;
294
+
295
+ /* The object we are attached to.
296
+ */
297
+ VipsObject *object;
298
+
299
+ /* Has been set.
300
+ */
301
+ gboolean assigned;
302
+
303
+ /* If this is an output argument, keep the id of our "close" handler
304
+ * here.
305
+ */
306
+ gulong close_id;
307
+
308
+ /* We need to listen for "invalidate" on input images and send our own
309
+ * "invalidate" out. If we go, we need to disconnect.
310
+ */
311
+ gulong invalidate_id;
312
+ } VipsArgumentInstance;
313
+
314
+ /* Need to look up our VipsArgument structs from a pspec. Just hash the
315
+ * pointer (ie. we assume pspecs are never shared, is this correct?)
316
+ */
317
+ typedef GHashTable VipsArgumentTable;
318
+
319
+ VIPS_API
320
+ int vips_argument_get_id(void);
321
+ void vips__object_set_member(VipsObject *object, GParamSpec *pspec,
322
+ GObject **member, GObject *argument);
323
+ typedef void *(*VipsArgumentMapFn)(VipsObject *object, GParamSpec *pspec,
324
+ VipsArgumentClass *argument_class,
325
+ VipsArgumentInstance *argument_instance, void *a, void *b);
326
+ VIPS_API
327
+ void *vips_argument_map(VipsObject *object,
328
+ VipsArgumentMapFn fn, void *a, void *b);
329
+ VIPS_API
330
+ int vips_object_get_args(VipsObject *object,
331
+ const char ***names, int **flags, int *n_args);
332
+ typedef void *(*VipsArgumentClassMapFn)(VipsObjectClass *object_class,
333
+ GParamSpec *pspec,
334
+ VipsArgumentClass *argument_class, void *a, void *b);
335
+ VIPS_API
336
+ void *vips_argument_class_map(VipsObjectClass *object_class,
337
+ VipsArgumentClassMapFn fn, void *a, void *b);
338
+ VIPS_API
339
+ gboolean vips_argument_class_needsstring(VipsArgumentClass *argument_class);
340
+ VIPS_API
341
+ int vips_object_get_argument(VipsObject *object, const char *name,
342
+ GParamSpec **pspec,
343
+ VipsArgumentClass **argument_class,
344
+ VipsArgumentInstance **argument_instance);
345
+ VIPS_API
346
+ gboolean vips_object_argument_isset(VipsObject *object, const char *name);
347
+ VIPS_API
348
+ VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object,
349
+ const char *name);
350
+ VIPS_API
351
+ int vips_object_get_argument_priority(VipsObject *object, const char *name);
352
+
353
+ /* We have to loop over an objects args in several places, and we can't always
354
+ * use vips_argument_map(), the preferred looper. Have the loop code as a
355
+ * macro as well for these odd cases.
356
+ */
357
+ #define VIPS_ARGUMENT_FOR_ALL(OBJECT, PSPEC, ARG_CLASS, ARG_INSTANCE) \
358
+ { \
359
+ VipsObjectClass *object_class = VIPS_OBJECT_GET_CLASS(OBJECT); \
360
+ GSList *p; \
361
+ \
362
+ for (p = object_class->argument_table_traverse; p; p = p->next) { \
363
+ VipsArgumentClass *ARG_CLASS = \
364
+ (VipsArgumentClass *) p->data; \
365
+ VipsArgument *argument = (VipsArgument *) argument_class; \
366
+ GParamSpec *PSPEC = argument->pspec; \
367
+ VipsArgumentInstance *ARG_INSTANCE G_GNUC_UNUSED = \
368
+ vips__argument_get_instance(argument_class, \
369
+ VIPS_OBJECT(OBJECT));
370
+
371
+ #define VIPS_ARGUMENT_FOR_ALL_END \
372
+ } \
373
+ }
374
+
375
+ /* And some macros to collect args from a va list.
376
+ *
377
+ * Use something like this:
378
+ *
379
+ * GParamSpec *pspec;
380
+ * VipsArgumentClass *argument_class;
381
+ * VipsArgumentInstance *argument_instance;
382
+ *
383
+ * if (vips_object_get_argument(VIPS_OBJECT(operation), name,
384
+ * &pspec, &argument_class, &argument_instance))
385
+ * return -1;
386
+ *
387
+ * VIPS_ARGUMENT_COLLECT_SET(pspec, argument_class, ap);
388
+ *
389
+ * GValue value holds the value of an input argument, do
390
+ * something with it
391
+ *
392
+ * VIPS_ARGUMENT_COLLECT_GET(pspec, argument_class, ap);
393
+ *
394
+ * void **arg points to where to write an output argument
395
+ *
396
+ * VIPS_ARGUMENT_COLLECT_END
397
+ */
398
+ #define VIPS_ARGUMENT_COLLECT_SET(PSPEC, ARG_CLASS, AP) \
399
+ if ((ARG_CLASS->flags & VIPS_ARGUMENT_INPUT)) { \
400
+ GValue value = G_VALUE_INIT; \
401
+ gchar *error = NULL; \
402
+ \
403
+ /* Input args are given inline, eg. ("factor", 12.0) \
404
+ * and must be collected. \
405
+ */ \
406
+ G_VALUE_COLLECT_INIT(&value, \
407
+ G_PARAM_SPEC_VALUE_TYPE(PSPEC), AP, 0, &error); \
408
+ \
409
+ /* Don't bother with the error message. \
410
+ */ \
411
+ if (error) { \
412
+ VIPS_DEBUG_MSG("VIPS_OBJECT_COLLECT_SET: err\n"); \
413
+ g_free(error); \
414
+ }
415
+
416
+ #define VIPS_ARGUMENT_COLLECT_GET(PSPEC, ARG_CLASS, AP) \
417
+ g_value_unset(&value); \
418
+ } \
419
+ else if ((ARG_CLASS->flags & VIPS_ARGUMENT_OUTPUT)) \
420
+ { \
421
+ void **arg G_GNUC_UNUSED; \
422
+ \
423
+ /* Output args are a pointer to where to send the \
424
+ * result. \
425
+ */ \
426
+ arg = va_arg(AP, void **);
427
+
428
+ #define VIPS_ARGUMENT_COLLECT_END \
429
+ }
430
+
431
+ #define VIPS_TYPE_OBJECT (vips_object_get_type())
432
+ #define VIPS_OBJECT(obj) \
433
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), VIPS_TYPE_OBJECT, VipsObject))
434
+ #define VIPS_OBJECT_CLASS(klass) \
435
+ (G_TYPE_CHECK_CLASS_CAST((klass), VIPS_TYPE_OBJECT, VipsObjectClass))
436
+ #define VIPS_IS_OBJECT(obj) \
437
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), VIPS_TYPE_OBJECT))
438
+ #define VIPS_IS_OBJECT_CLASS(klass) \
439
+ (G_TYPE_CHECK_CLASS_TYPE((klass), VIPS_TYPE_OBJECT))
440
+ #define VIPS_OBJECT_GET_CLASS(obj) \
441
+ (G_TYPE_INSTANCE_GET_CLASS((obj), VIPS_TYPE_OBJECT, VipsObjectClass))
442
+
443
+ struct _VipsObject {
444
+ GObject parent_instance;
445
+
446
+ /* Set after ->build() has run successfully: construct is fully done
447
+ * and checked.
448
+ */
449
+ gboolean constructed;
450
+
451
+ /* Set for static objects which are allocated at startup and never
452
+ * freed. These objects are omitted from leak reports.
453
+ */
454
+ gboolean static_object;
455
+
456
+ /* Table of argument instances for this class and any derived classes.
457
+ */
458
+ VipsArgumentTable *argument_table;
459
+
460
+ /* Class properties (see below), duplicated in the instance so we can
461
+ * get at them easily via the property system.
462
+ */
463
+ char *nickname;
464
+ char *description;
465
+
466
+ /* The pre/post/close callbacks are all fire-once.
467
+ */
468
+ gboolean preclose;
469
+ gboolean close;
470
+ gboolean postclose;
471
+
472
+ /* Total memory allocated relative to this object, handy for
473
+ * profiling.
474
+ */
475
+ size_t local_memory;
476
+ };
477
+
478
+ struct _VipsObjectClass {
479
+ GObjectClass parent_class;
480
+
481
+ /* Build the object ... all argument properties have been set,
482
+ * now build the thing.
483
+ */
484
+ int (*build)(VipsObject *object);
485
+
486
+ /* Just after build ... the object is fully ready for work.
487
+ */
488
+ int (*postbuild)(VipsObject *object, void *data);
489
+
490
+ /* Try to print something about the class, handy for help displays.
491
+ * Keep to one line.
492
+ */
493
+ void (*summary_class)(struct _VipsObjectClass *cls, VipsBuf *buf);
494
+
495
+ /* Try to print a one-line summary for the object, the user can see
496
+ * this output via things like "header fred.tif", --vips-cache-trace,
497
+ * etc.
498
+ */
499
+ void (*summary)(VipsObject *object, VipsBuf *buf);
500
+
501
+ /* Try to print everything about the object, handy for debugging.
502
+ */
503
+ void (*dump)(VipsObject *object, VipsBuf *buf);
504
+
505
+ /* Sanity-check the object. Print messages and stuff.
506
+ * Handy for debugging.
507
+ */
508
+ void (*sanity)(VipsObject *object, VipsBuf *buf);
509
+
510
+ /* Rewind. Save and restore any stuff that needs to survive a
511
+ * dispose().
512
+ */
513
+ void (*rewind)(VipsObject *object);
514
+
515
+ /* Just before close, everything is still alive.
516
+ */
517
+ void (*preclose)(VipsObject *object);
518
+
519
+ /* Close, time to free stuff.
520
+ */
521
+ void (*close)(VipsObject *object);
522
+
523
+ /* Post-close, everything is dead, except the VipsObject pointer.
524
+ * Useful for eg. deleting the file associated with a temp image.
525
+ */
526
+ void (*postclose)(VipsObject *object);
527
+
528
+ /* The CLI interface. Implement these four to get CLI input and output
529
+ * for your object.
530
+ */
531
+
532
+ /* Given a command-line arg (eg. a filename), make an instance of the
533
+ * object. Just do the g_object_new(), don't call _build().
534
+ *
535
+ * Don't call this directly, see vips_object_new_from_string().
536
+ */
537
+ VipsObject *(*new_from_string)(const char *string);
538
+
539
+ /* The inverse of ^^. Given an object, output what ->new_from_string()
540
+ * would have been given to make that object.
541
+ */
542
+ void (*to_string)(VipsObject *object, VipsBuf *buf);
543
+
544
+ /* Does this output arg need an arg from the command line? Image
545
+ * output, for example, needs a filename to write to.
546
+ */
547
+ gboolean output_needs_arg;
548
+
549
+ /* Write the object to the string. Return 0 for success, or -1 on
550
+ * error, setting vips_error(). string is NULL if output_needs_arg()
551
+ * was FALSE.
552
+ */
553
+ int (*output_to_arg)(VipsObject *object, const char *string);
554
+
555
+ /* Class nickname, eg. "VipsInterpolateBicubic" has "bicubic" as a
556
+ * nickname. Not internationalised.
557
+ */
558
+ const char *nickname;
559
+
560
+ /* Class description. Used for help messages, so internationalised.
561
+ */
562
+ const char *description;
563
+
564
+ /* Hash from pspec to VipsArgumentClass.
565
+ *
566
+ * This records the VipsArgumentClass for every pspec used in
567
+ * VipsObject and any subclass (ie. everywhere), so it's huge. Don't
568
+ * loop over this hash! Fine for lookups though.
569
+ */
570
+ VipsArgumentTable *argument_table;
571
+
572
+ /* A sorted (by priority) list of the VipsArgumentClass for this class
573
+ * and any superclasses. This is small and specific to this class.
574
+ *
575
+ * Use the stored GType to work out when to restart the list for a
576
+ * subclass.
577
+ */
578
+ GSList *argument_table_traverse;
579
+ GType argument_table_traverse_gtype;
580
+
581
+ /* This class is deprecated and therefore hidden from various UI bits.
582
+ *
583
+ * VipsOperation has a deprecated flag, use that in preference to this
584
+ * if you can.
585
+ */
586
+ gboolean deprecated;
587
+
588
+ /* Reserved for future expansion.
589
+ */
590
+ void (*_vips_reserved1)(void);
591
+ void (*_vips_reserved2)(void);
592
+ void (*_vips_reserved3)(void);
593
+ void (*_vips_reserved4)(void);
594
+ };
595
+
596
+ VIPS_API
597
+ gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value);
598
+ VIPS_API
599
+ void vips_object_set_property(GObject *gobject,
600
+ guint property_id, const GValue *value, GParamSpec *pspec);
601
+ VIPS_API
602
+ void vips_object_get_property(GObject *gobject,
603
+ guint property_id, GValue *value, GParamSpec *pspec);
604
+
605
+ VIPS_API
606
+ void vips_object_preclose(VipsObject *object);
607
+ VIPS_API
608
+ int vips_object_build(VipsObject *object);
609
+
610
+ VIPS_API
611
+ void vips_object_summary_class(VipsObjectClass *klass, VipsBuf *buf);
612
+ VIPS_API
613
+ void vips_object_summary(VipsObject *object, VipsBuf *buf);
614
+ VIPS_API
615
+ void vips_object_dump(VipsObject *object, VipsBuf *buf);
616
+
617
+ VIPS_API
618
+ void vips_object_print_summary_class(VipsObjectClass *klass);
619
+ VIPS_API
620
+ void vips_object_print_summary(VipsObject *object);
621
+ VIPS_API
622
+ void vips_object_print_dump(VipsObject *object);
623
+ VIPS_API
624
+ void vips_object_print_name(VipsObject *object);
625
+
626
+ VIPS_API
627
+ gboolean vips_object_sanity(VipsObject *object);
628
+
629
+ /* Don't put spaces around void here, it breaks gtk-doc.
630
+ */
631
+ VIPS_API
632
+ GType vips_object_get_type(void);
633
+
634
+ VIPS_API
635
+ void vips_object_class_install_argument(VipsObjectClass *cls,
636
+ GParamSpec *pspec, VipsArgumentFlags flags,
637
+ int priority, guint offset);
638
+ VIPS_API
639
+ int vips_object_set_argument_from_string(VipsObject *object,
640
+ const char *name, const char *value);
641
+ VIPS_API
642
+ gboolean vips_object_argument_needsstring(VipsObject *object,
643
+ const char *name);
644
+ VIPS_API
645
+ int vips_object_get_argument_to_string(VipsObject *object,
646
+ const char *name, const char *arg);
647
+ VIPS_API
648
+ int vips_object_set_required(VipsObject *object, const char *value);
649
+
650
+ typedef void *(*VipsObjectSetArguments)(VipsObject *object, void *a, void *b);
651
+ VIPS_API
652
+ VipsObject *vips_object_new(GType type,
653
+ VipsObjectSetArguments set, void *a, void *b);
654
+
655
+ VIPS_API
656
+ int vips_object_set_valist(VipsObject *object, va_list ap);
657
+ VIPS_API
658
+ int vips_object_set(VipsObject *object, ...)
659
+ G_GNUC_NULL_TERMINATED;
660
+ VIPS_API
661
+ int vips_object_set_from_string(VipsObject *object, const char *string);
662
+
663
+ VIPS_API
664
+ VipsObject *vips_object_new_from_string(VipsObjectClass *object_class,
665
+ const char *p);
666
+ VIPS_API
667
+ void vips_object_to_string(VipsObject *object, VipsBuf *buf);
668
+
669
+ VIPS_API
670
+ void *vips_object_map(VipsSListMap2Fn fn, void *a, void *b);
671
+
672
+ typedef void *(*VipsTypeMapFn)(GType type, void *a);
673
+ typedef void *(*VipsTypeMap2Fn)(GType type, void *a, void *b);
674
+ typedef void *(*VipsClassMapFn)(VipsObjectClass *cls, void *a);
675
+ VIPS_API
676
+ void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b);
677
+ VIPS_API
678
+ void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a);
679
+ VIPS_API
680
+ int vips_type_depth(GType type);
681
+ VIPS_API
682
+ GType vips_type_find(const char *basename, const char *nickname);
683
+ VIPS_API
684
+ const char *vips_nickname_find(GType type);
685
+
686
+ VIPS_API
687
+ void *vips_class_map_all(GType type, VipsClassMapFn fn, void *a);
688
+ VIPS_API
689
+ const VipsObjectClass *vips_class_find(const char *basename,
690
+ const char *nickname);
691
+
692
+ VIPS_API
693
+ VipsObject **vips_object_local_array(VipsObject *parent, int n);
694
+
695
+ VIPS_API
696
+ void vips_object_local_cb(VipsObject *vobject, GObject *gobject);
697
+ #define vips_object_local(V, G) \
698
+ (g_signal_connect(V, "close", G_CALLBACK(vips_object_local_cb), G))
699
+
700
+ VIPS_API
701
+ void vips_object_set_static(VipsObject *object, gboolean static_object);
702
+ VIPS_API
703
+ void vips_object_print_all(void);
704
+ VIPS_API
705
+ void vips_object_sanity_all(void);
706
+
707
+ VIPS_API
708
+ void vips_object_rewind(VipsObject *object);
709
+
710
+ VIPS_API
711
+ void vips_object_unref_outputs(VipsObject *object);
712
+
713
+ VIPS_API
714
+ const char *vips_object_get_description(VipsObject *object);
715
+
716
+ #ifdef __cplusplus
717
+ }
718
+ #endif /*__cplusplus*/
719
+
720
+ #endif /*VIPS_OBJECT_H*/