@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,200 @@
1
+ // Copyright 2023 Google LLC
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+
16
+ // High-resolution and high-precision timer
17
+
18
+ // Per-target include guard
19
+ #if defined(HIGHWAY_HWY_TIMER_INL_H_) == defined(HWY_TARGET_TOGGLE)
20
+ #ifdef HIGHWAY_HWY_TIMER_INL_H_
21
+ #undef HIGHWAY_HWY_TIMER_INL_H_
22
+ #else
23
+ #define HIGHWAY_HWY_TIMER_INL_H_
24
+ #endif
25
+
26
+ #include "hwy/highway.h"
27
+ #include "hwy/timer.h"
28
+
29
+ #if defined(_WIN32) || defined(_WIN64)
30
+ #ifndef NOMINMAX
31
+ #define NOMINMAX
32
+ #endif // NOMINMAX
33
+ #include <windows.h>
34
+ #endif
35
+
36
+ #if defined(__APPLE__)
37
+ #include <mach/mach.h>
38
+ #include <mach/mach_time.h>
39
+ #endif
40
+
41
+ #if defined(__HAIKU__)
42
+ #include <OS.h>
43
+ #endif
44
+
45
+ #if HWY_ARCH_PPC && defined(__GLIBC__) && defined(__powerpc64__)
46
+ #include <sys/platform/ppc.h> // NOLINT __ppc_get_timebase_freq
47
+ #endif
48
+
49
+ #if HWY_ARCH_X86 && HWY_COMPILER_MSVC
50
+ #include <intrin.h>
51
+ #endif
52
+
53
+ #include <time.h> // clock_gettime
54
+
55
+ HWY_BEFORE_NAMESPACE();
56
+ namespace hwy {
57
+ namespace HWY_NAMESPACE {
58
+ namespace timer {
59
+
60
+ // Ticks := platform-specific timer values (CPU cycles on x86). Must be
61
+ // unsigned to guarantee wraparound on overflow.
62
+ using Ticks = uint64_t;
63
+
64
+ // Start/Stop return absolute timestamps and must be placed immediately before
65
+ // and after the region to measure. We provide separate Start/Stop functions
66
+ // because they use different fences.
67
+ //
68
+ // Background: RDTSC is not 'serializing'; earlier instructions may complete
69
+ // after it, and/or later instructions may complete before it. 'Fences' ensure
70
+ // regions' elapsed times are independent of such reordering. The only
71
+ // documented unprivileged serializing instruction is CPUID, which acts as a
72
+ // full fence (no reordering across it in either direction). Unfortunately
73
+ // the latency of CPUID varies wildly (perhaps made worse by not initializing
74
+ // its EAX input). Because it cannot reliably be deducted from the region's
75
+ // elapsed time, it must not be included in the region to measure (i.e.
76
+ // between the two RDTSC).
77
+ //
78
+ // The newer RDTSCP is sometimes described as serializing, but it actually
79
+ // only serves as a half-fence with release semantics. Although all
80
+ // instructions in the region will complete before the final timestamp is
81
+ // captured, subsequent instructions may leak into the region and increase the
82
+ // elapsed time. Inserting another fence after the final RDTSCP would prevent
83
+ // such reordering without affecting the measured region.
84
+ //
85
+ // Fortunately, such a fence exists. The LFENCE instruction is only documented
86
+ // to delay later loads until earlier loads are visible. However, Intel's
87
+ // reference manual says it acts as a full fence (waiting until all earlier
88
+ // instructions have completed, and delaying later instructions until it
89
+ // completes). AMD assigns the same behavior to MFENCE.
90
+ //
91
+ // We need a fence before the initial RDTSC to prevent earlier instructions
92
+ // from leaking into the region, and arguably another after RDTSC to avoid
93
+ // region instructions from completing before the timestamp is recorded.
94
+ // When surrounded by fences, the additional RDTSCP half-fence provides no
95
+ // benefit, so the initial timestamp can be recorded via RDTSC, which has
96
+ // lower overhead than RDTSCP because it does not read TSC_AUX. In summary,
97
+ // we define Start = LFENCE/RDTSC/LFENCE; Stop = RDTSCP/LFENCE.
98
+ //
99
+ // Using Start+Start leads to higher variance and overhead than Stop+Stop.
100
+ // However, Stop+Stop includes an LFENCE in the region measurements, which
101
+ // adds a delay dependent on earlier loads. The combination of Start+Stop
102
+ // is faster than Start+Start and more consistent than Stop+Stop because
103
+ // the first LFENCE already delayed subsequent loads before the measured
104
+ // region. This combination seems not to have been considered in prior work:
105
+ // http://akaros.cs.berkeley.edu/lxr/akaros/kern/arch/x86/rdtsc_test.c
106
+ //
107
+ // Note: performance counters can measure 'exact' instructions-retired or
108
+ // (unhalted) cycle counts. The RDPMC instruction is not serializing and also
109
+ // requires fences. Unfortunately, it is not accessible on all OSes and we
110
+ // prefer to avoid kernel-mode drivers. Performance counters are also affected
111
+ // by several under/over-count errata, so we use the TSC instead.
112
+
113
+ // Returns a 64-bit timestamp in unit of 'ticks'; to convert to seconds,
114
+ // divide by InvariantTicksPerSecond.
115
+ inline Ticks Start() {
116
+ Ticks t;
117
+ #if HWY_ARCH_PPC && defined(__GLIBC__) && defined(__powerpc64__)
118
+ asm volatile("mfspr %0, %1" : "=r"(t) : "i"(268));
119
+ #elif HWY_ARCH_ARM_A64 && !HWY_COMPILER_MSVC
120
+ // pmccntr_el0 is privileged but cntvct_el0 is accessible in Linux and QEMU.
121
+ asm volatile("mrs %0, cntvct_el0" : "=r"(t));
122
+ #elif HWY_ARCH_X86 && HWY_COMPILER_MSVC
123
+ _ReadWriteBarrier();
124
+ _mm_lfence();
125
+ _ReadWriteBarrier();
126
+ t = __rdtsc();
127
+ _ReadWriteBarrier();
128
+ _mm_lfence();
129
+ _ReadWriteBarrier();
130
+ #elif HWY_ARCH_X86_64
131
+ asm volatile(
132
+ "lfence\n\t"
133
+ "rdtsc\n\t"
134
+ "shl $32, %%rdx\n\t"
135
+ "or %%rdx, %0\n\t"
136
+ "lfence"
137
+ : "=a"(t)
138
+ :
139
+ // "memory" avoids reordering. rdx = TSC >> 32.
140
+ // "cc" = flags modified by SHL.
141
+ : "rdx", "memory", "cc");
142
+ #elif HWY_ARCH_RVV
143
+ asm volatile("rdtime %0" : "=r"(t));
144
+ #elif defined(_WIN32) || defined(_WIN64)
145
+ LARGE_INTEGER counter;
146
+ (void)QueryPerformanceCounter(&counter);
147
+ t = counter.QuadPart;
148
+ #elif defined(__APPLE__)
149
+ t = mach_absolute_time();
150
+ #elif defined(__HAIKU__)
151
+ t = system_time_nsecs(); // since boot
152
+ #else // POSIX
153
+ timespec ts;
154
+ clock_gettime(CLOCK_MONOTONIC, &ts);
155
+ t = static_cast<Ticks>(ts.tv_sec * 1000000000LL + ts.tv_nsec);
156
+ #endif
157
+ return t;
158
+ }
159
+
160
+ // WARNING: on x86, caller must check HasRDTSCP before using this!
161
+ inline Ticks Stop() {
162
+ uint64_t t;
163
+ #if HWY_ARCH_PPC && defined(__GLIBC__) && defined(__powerpc64__)
164
+ asm volatile("mfspr %0, %1" : "=r"(t) : "i"(268));
165
+ #elif HWY_ARCH_ARM_A64 && !HWY_COMPILER_MSVC
166
+ // pmccntr_el0 is privileged but cntvct_el0 is accessible in Linux and QEMU.
167
+ asm volatile("mrs %0, cntvct_el0" : "=r"(t));
168
+ #elif HWY_ARCH_X86 && HWY_COMPILER_MSVC
169
+ _ReadWriteBarrier();
170
+ unsigned aux;
171
+ t = __rdtscp(&aux);
172
+ _ReadWriteBarrier();
173
+ _mm_lfence();
174
+ _ReadWriteBarrier();
175
+ #elif HWY_ARCH_X86_64
176
+ // Use inline asm because __rdtscp generates code to store TSC_AUX (ecx).
177
+ asm volatile(
178
+ "rdtscp\n\t"
179
+ "shl $32, %%rdx\n\t"
180
+ "or %%rdx, %0\n\t"
181
+ "lfence"
182
+ : "=a"(t)
183
+ :
184
+ // "memory" avoids reordering. rcx = TSC_AUX. rdx = TSC >> 32.
185
+ // "cc" = flags modified by SHL.
186
+ : "rcx", "rdx", "memory", "cc");
187
+ #else
188
+ t = Start();
189
+ #endif
190
+ return t;
191
+ }
192
+
193
+ } // namespace timer
194
+
195
+ // NOLINTNEXTLINE(google-readability-namespace-comments)
196
+ } // namespace HWY_NAMESPACE
197
+ } // namespace hwy
198
+ HWY_AFTER_NAMESPACE();
199
+
200
+ #endif // per-target include guard
@@ -0,0 +1,55 @@
1
+ // Copyright 2023 Google LLC
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+
16
+ #ifndef HIGHWAY_HWY_TIMER_H_
17
+ #define HIGHWAY_HWY_TIMER_H_
18
+
19
+ // Platform-specific timer functions. Provides Now() and functions for
20
+ // interpreting and converting the timer-inl.h Ticks.
21
+
22
+ #include <stdint.h>
23
+
24
+ #include "hwy/highway_export.h"
25
+
26
+ namespace hwy {
27
+ namespace platform {
28
+
29
+ // Returns current timestamp [in seconds] relative to an unspecified origin.
30
+ // Features: monotonic (no negative elapsed time), steady (unaffected by system
31
+ // time changes), high-resolution (on the order of microseconds).
32
+ // Uses InvariantTicksPerSecond and the baseline version of timer::Start().
33
+ HWY_DLLEXPORT double Now();
34
+
35
+ // Functions for use with timer-inl.h:
36
+
37
+ // Returns whether it is safe to call timer::Stop without executing an illegal
38
+ // instruction; if false, fills cpu100 (a pointer to a 100 character buffer)
39
+ // with the CPU brand string or an empty string if unknown.
40
+ HWY_DLLEXPORT bool HaveTimerStop(char* cpu100);
41
+
42
+ // Returns tick rate, useful for converting timer::Ticks to seconds. Invariant
43
+ // means the tick counter frequency is independent of CPU throttling or sleep.
44
+ // This call may be expensive, callers should cache the result.
45
+ HWY_DLLEXPORT double InvariantTicksPerSecond();
46
+
47
+ // Returns ticks elapsed in back to back timer calls, i.e. a function of the
48
+ // timer resolution (minimum measurable difference) and overhead.
49
+ // This call is expensive, callers should cache the result.
50
+ HWY_DLLEXPORT uint64_t TimerResolution();
51
+
52
+ } // namespace platform
53
+ } // namespace hwy
54
+
55
+ #endif // HIGHWAY_HWY_TIMER_H_
@@ -0,0 +1 @@
1
+ module.exports = __dirname;
@@ -0,0 +1,37 @@
1
+ /* Version ID for the JPEG library.
2
+ * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
3
+ */
4
+ #define JPEG_LIB_VERSION 80
5
+
6
+ /* libjpeg-turbo version */
7
+ #define LIBJPEG_TURBO_VERSION 4.1.5
8
+
9
+ /* libjpeg-turbo version in integer form */
10
+ #define LIBJPEG_TURBO_VERSION_NUMBER 4001005
11
+
12
+ /* Support arithmetic encoding */
13
+ #define C_ARITH_CODING_SUPPORTED 1
14
+
15
+ /* Support arithmetic decoding */
16
+ #define D_ARITH_CODING_SUPPORTED 1
17
+
18
+ /* Support in-memory source/destination managers */
19
+ /* #undef MEM_SRCDST_SUPPORTED */
20
+
21
+ /* Use accelerated SIMD routines. */
22
+ /* #undef WITH_SIMD */
23
+
24
+ /*
25
+ * Define BITS_IN_JSAMPLE as either
26
+ * 8 for 8-bit sample values (the usual setting)
27
+ * 12 for 12-bit sample values
28
+ * Only 8 and 12 are legal data precisions for lossy JPEG according to the
29
+ * JPEG standard, and the IJG code does not support anything else!
30
+ * We do not support run-time selection of data precision, sorry.
31
+ */
32
+
33
+ #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
34
+
35
+ /* Define if your (broken) compiler shifts signed values as if they were
36
+ unsigned. */
37
+ /* #undef RIGHT_SHIFT_IS_UNSIGNED */
@@ -0,0 +1,335 @@
1
+ /*
2
+ * jerror.h
3
+ *
4
+ * This file was part of the Independent JPEG Group's software:
5
+ * Copyright (C) 1994-1997, Thomas G. Lane.
6
+ * Modified 1997-2009 by Guido Vollbeding.
7
+ * libjpeg-turbo Modifications:
8
+ * Copyright (C) 2014, 2017, 2021-2022, D. R. Commander.
9
+ * For conditions of distribution and use, see the accompanying README.ijg
10
+ * file.
11
+ *
12
+ * This file defines the error and message codes for the JPEG library.
13
+ * Edit this file to add new codes, or to translate the message strings to
14
+ * some other language.
15
+ * A set of error-reporting macros are defined too. Some applications using
16
+ * the JPEG library may wish to include this file to get the error codes
17
+ * and/or the macros.
18
+ */
19
+
20
+ /*
21
+ * To define the enum list of message codes, include this file without
22
+ * defining macro JMESSAGE. To create a message string table, include it
23
+ * again with a suitable JMESSAGE definition (see jerror.c for an example).
24
+ */
25
+ #ifndef JMESSAGE
26
+ #ifndef JERROR_H
27
+ /* First time through, define the enum list */
28
+ #define JMAKE_ENUM_LIST
29
+ #else
30
+ /* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
31
+ #define JMESSAGE(code,string)
32
+ #endif /* JERROR_H */
33
+ #endif /* JMESSAGE */
34
+
35
+ #ifdef JMAKE_ENUM_LIST
36
+
37
+ typedef enum {
38
+
39
+ #define JMESSAGE(code,string) code ,
40
+
41
+ #endif /* JMAKE_ENUM_LIST */
42
+
43
+ JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! */
44
+
45
+ /* For maintenance convenience, list is alphabetical by message code name */
46
+ #if JPEG_LIB_VERSION < 70
47
+ JMESSAGE(JERR_ARITH_NOTIMPL, "Sorry, arithmetic coding is not implemented")
48
+ #endif
49
+ JMESSAGE(JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix")
50
+ JMESSAGE(JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix")
51
+ JMESSAGE(JERR_BAD_BUFFER_MODE, "Bogus buffer control mode")
52
+ JMESSAGE(JERR_BAD_COMPONENT_ID, "Invalid component ID %d in SOS")
53
+ #if JPEG_LIB_VERSION >= 70
54
+ JMESSAGE(JERR_BAD_CROP_SPEC, "Invalid crop request")
55
+ #endif
56
+ JMESSAGE(JERR_BAD_DCT_COEF, "DCT coefficient out of range")
57
+ JMESSAGE(JERR_BAD_DCTSIZE, "IDCT output block size %d not supported")
58
+ #if JPEG_LIB_VERSION >= 70
59
+ JMESSAGE(JERR_BAD_DROP_SAMPLING,
60
+ "Component index %d: mismatching sampling ratio %d:%d, %d:%d, %c")
61
+ #endif
62
+ JMESSAGE(JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition")
63
+ JMESSAGE(JERR_BAD_IN_COLORSPACE, "Bogus input colorspace")
64
+ JMESSAGE(JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace")
65
+ JMESSAGE(JERR_BAD_LENGTH, "Bogus marker length")
66
+ JMESSAGE(JERR_BAD_LIB_VERSION,
67
+ "Wrong JPEG library version: library is %d, caller expects %d")
68
+ JMESSAGE(JERR_BAD_MCU_SIZE, "Sampling factors too large for interleaved scan")
69
+ JMESSAGE(JERR_BAD_POOL_ID, "Invalid memory pool code %d")
70
+ JMESSAGE(JERR_BAD_PRECISION, "Unsupported JPEG data precision %d")
71
+ JMESSAGE(JERR_BAD_PROGRESSION,
72
+ "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d")
73
+ JMESSAGE(JERR_BAD_PROG_SCRIPT,
74
+ "Invalid progressive parameters at scan script entry %d")
75
+ JMESSAGE(JERR_BAD_SAMPLING, "Bogus sampling factors")
76
+ JMESSAGE(JERR_BAD_SCAN_SCRIPT, "Invalid scan script at entry %d")
77
+ JMESSAGE(JERR_BAD_STATE, "Improper call to JPEG library in state %d")
78
+ JMESSAGE(JERR_BAD_STRUCT_SIZE,
79
+ "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u")
80
+ JMESSAGE(JERR_BAD_VIRTUAL_ACCESS, "Bogus virtual array access")
81
+ JMESSAGE(JERR_BUFFER_SIZE, "Buffer passed to JPEG library is too small")
82
+ JMESSAGE(JERR_CANT_SUSPEND, "Suspension not allowed here")
83
+ JMESSAGE(JERR_CCIR601_NOTIMPL, "CCIR601 sampling not implemented yet")
84
+ JMESSAGE(JERR_COMPONENT_COUNT, "Too many color components: %d, max %d")
85
+ JMESSAGE(JERR_CONVERSION_NOTIMPL, "Unsupported color conversion request")
86
+ JMESSAGE(JERR_DAC_INDEX, "Bogus DAC index %d")
87
+ JMESSAGE(JERR_DAC_VALUE, "Bogus DAC value 0x%x")
88
+ JMESSAGE(JERR_DHT_INDEX, "Bogus DHT index %d")
89
+ JMESSAGE(JERR_DQT_INDEX, "Bogus DQT index %d")
90
+ JMESSAGE(JERR_EMPTY_IMAGE, "Empty JPEG image (DNL not supported)")
91
+ JMESSAGE(JERR_EMS_READ, "Read from EMS failed")
92
+ JMESSAGE(JERR_EMS_WRITE, "Write to EMS failed")
93
+ JMESSAGE(JERR_EOI_EXPECTED, "Didn't expect more than one scan")
94
+ JMESSAGE(JERR_FILE_READ, "Input file read error")
95
+ JMESSAGE(JERR_FILE_WRITE, "Output file write error --- out of disk space?")
96
+ JMESSAGE(JERR_FRACT_SAMPLE_NOTIMPL, "Fractional sampling not implemented yet")
97
+ JMESSAGE(JERR_HUFF_CLEN_OVERFLOW, "Huffman code size table overflow")
98
+ JMESSAGE(JERR_HUFF_MISSING_CODE, "Missing Huffman code table entry")
99
+ JMESSAGE(JERR_IMAGE_TOO_BIG, "Maximum supported image dimension is %u pixels")
100
+ JMESSAGE(JERR_INPUT_EMPTY, "Empty input file")
101
+ JMESSAGE(JERR_INPUT_EOF, "Premature end of input file")
102
+ JMESSAGE(JERR_MISMATCHED_QUANT_TABLE,
103
+ "Cannot transcode due to multiple use of quantization table %d")
104
+ JMESSAGE(JERR_MISSING_DATA, "Scan script does not transmit all data")
105
+ JMESSAGE(JERR_MODE_CHANGE, "Invalid color quantization mode change")
106
+ JMESSAGE(JERR_NOTIMPL, "Requested features are incompatible")
107
+ JMESSAGE(JERR_NOT_COMPILED, "Requested feature was omitted at compile time")
108
+ #if JPEG_LIB_VERSION >= 70
109
+ JMESSAGE(JERR_NO_ARITH_TABLE, "Arithmetic table 0x%02x was not defined")
110
+ #endif
111
+ JMESSAGE(JERR_NO_BACKING_STORE, "Backing store not supported")
112
+ JMESSAGE(JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined")
113
+ JMESSAGE(JERR_NO_IMAGE, "JPEG datastream contains no image")
114
+ JMESSAGE(JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined")
115
+ JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x")
116
+ JMESSAGE(JERR_OUT_OF_MEMORY, "Insufficient memory (case %d)")
117
+ JMESSAGE(JERR_QUANT_COMPONENTS,
118
+ "Cannot quantize more than %d color components")
119
+ JMESSAGE(JERR_QUANT_FEW_COLORS, "Cannot quantize to fewer than %d colors")
120
+ JMESSAGE(JERR_QUANT_MANY_COLORS, "Cannot quantize to more than %d colors")
121
+ JMESSAGE(JERR_SOF_DUPLICATE, "Invalid JPEG file structure: two SOF markers")
122
+ JMESSAGE(JERR_SOF_NO_SOS, "Invalid JPEG file structure: missing SOS marker")
123
+ JMESSAGE(JERR_SOF_UNSUPPORTED, "Unsupported JPEG process: SOF type 0x%02x")
124
+ JMESSAGE(JERR_SOI_DUPLICATE, "Invalid JPEG file structure: two SOI markers")
125
+ JMESSAGE(JERR_SOS_NO_SOF, "Invalid JPEG file structure: SOS before SOF")
126
+ JMESSAGE(JERR_TFILE_CREATE, "Failed to create temporary file %s")
127
+ JMESSAGE(JERR_TFILE_READ, "Read failed on temporary file")
128
+ JMESSAGE(JERR_TFILE_SEEK, "Seek failed on temporary file")
129
+ JMESSAGE(JERR_TFILE_WRITE,
130
+ "Write failed on temporary file --- out of disk space?")
131
+ JMESSAGE(JERR_TOO_LITTLE_DATA, "Application transferred too few scanlines")
132
+ JMESSAGE(JERR_UNKNOWN_MARKER, "Unsupported marker type 0x%02x")
133
+ JMESSAGE(JERR_VIRTUAL_BUG, "Virtual array controller messed up")
134
+ JMESSAGE(JERR_WIDTH_OVERFLOW, "Image too wide for this implementation")
135
+ JMESSAGE(JERR_XMS_READ, "Read from XMS failed")
136
+ JMESSAGE(JERR_XMS_WRITE, "Write to XMS failed")
137
+ JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT_SHORT)
138
+ JMESSAGE(JMSG_VERSION, JVERSION)
139
+ JMESSAGE(JTRC_16BIT_TABLES,
140
+ "Caution: quantization tables are too coarse for baseline JPEG")
141
+ JMESSAGE(JTRC_ADOBE,
142
+ "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d")
143
+ JMESSAGE(JTRC_APP0, "Unknown APP0 marker (not JFIF), length %u")
144
+ JMESSAGE(JTRC_APP14, "Unknown APP14 marker (not Adobe), length %u")
145
+ JMESSAGE(JTRC_DAC, "Define Arithmetic Table 0x%02x: 0x%02x")
146
+ JMESSAGE(JTRC_DHT, "Define Huffman Table 0x%02x")
147
+ JMESSAGE(JTRC_DQT, "Define Quantization Table %d precision %d")
148
+ JMESSAGE(JTRC_DRI, "Define Restart Interval %u")
149
+ JMESSAGE(JTRC_EMS_CLOSE, "Freed EMS handle %u")
150
+ JMESSAGE(JTRC_EMS_OPEN, "Obtained EMS handle %u")
151
+ JMESSAGE(JTRC_EOI, "End Of Image")
152
+ JMESSAGE(JTRC_HUFFBITS, " %3d %3d %3d %3d %3d %3d %3d %3d")
153
+ JMESSAGE(JTRC_JFIF, "JFIF APP0 marker: version %d.%02d, density %dx%d %d")
154
+ JMESSAGE(JTRC_JFIF_BADTHUMBNAILSIZE,
155
+ "Warning: thumbnail image size does not match data length %u")
156
+ JMESSAGE(JTRC_JFIF_EXTENSION, "JFIF extension marker: type 0x%02x, length %u")
157
+ JMESSAGE(JTRC_JFIF_THUMBNAIL, " with %d x %d thumbnail image")
158
+ JMESSAGE(JTRC_MISC_MARKER, "Miscellaneous marker 0x%02x, length %u")
159
+ JMESSAGE(JTRC_PARMLESS_MARKER, "Unexpected marker 0x%02x")
160
+ JMESSAGE(JTRC_QUANTVALS, " %4u %4u %4u %4u %4u %4u %4u %4u")
161
+ JMESSAGE(JTRC_QUANT_3_NCOLORS, "Quantizing to %d = %d*%d*%d colors")
162
+ JMESSAGE(JTRC_QUANT_NCOLORS, "Quantizing to %d colors")
163
+ JMESSAGE(JTRC_QUANT_SELECTED, "Selected %d colors for quantization")
164
+ JMESSAGE(JTRC_RECOVERY_ACTION, "At marker 0x%02x, recovery action %d")
165
+ JMESSAGE(JTRC_RST, "RST%d")
166
+ JMESSAGE(JTRC_SMOOTH_NOTIMPL,
167
+ "Smoothing not supported with nonstandard sampling ratios")
168
+ JMESSAGE(JTRC_SOF, "Start Of Frame 0x%02x: width=%u, height=%u, components=%d")
169
+ JMESSAGE(JTRC_SOF_COMPONENT, " Component %d: %dhx%dv q=%d")
170
+ JMESSAGE(JTRC_SOI, "Start of Image")
171
+ JMESSAGE(JTRC_SOS, "Start Of Scan: %d components")
172
+ JMESSAGE(JTRC_SOS_COMPONENT, " Component %d: dc=%d ac=%d")
173
+ JMESSAGE(JTRC_SOS_PARAMS, " Ss=%d, Se=%d, Ah=%d, Al=%d")
174
+ JMESSAGE(JTRC_TFILE_CLOSE, "Closed temporary file %s")
175
+ JMESSAGE(JTRC_TFILE_OPEN, "Opened temporary file %s")
176
+ JMESSAGE(JTRC_THUMB_JPEG,
177
+ "JFIF extension marker: JPEG-compressed thumbnail image, length %u")
178
+ JMESSAGE(JTRC_THUMB_PALETTE,
179
+ "JFIF extension marker: palette thumbnail image, length %u")
180
+ JMESSAGE(JTRC_THUMB_RGB,
181
+ "JFIF extension marker: RGB thumbnail image, length %u")
182
+ JMESSAGE(JTRC_UNKNOWN_IDS,
183
+ "Unrecognized component IDs %d %d %d, assuming YCbCr")
184
+ JMESSAGE(JTRC_XMS_CLOSE, "Freed XMS handle %u")
185
+ JMESSAGE(JTRC_XMS_OPEN, "Obtained XMS handle %u")
186
+ JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d")
187
+ #if JPEG_LIB_VERSION >= 70
188
+ JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
189
+ #endif
190
+ JMESSAGE(JWRN_BOGUS_PROGRESSION,
191
+ "Inconsistent progression sequence for component %d coefficient %d")
192
+ JMESSAGE(JWRN_EXTRANEOUS_DATA,
193
+ "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
194
+ JMESSAGE(JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment")
195
+ JMESSAGE(JWRN_HUFF_BAD_CODE, "Corrupt JPEG data: bad Huffman code")
196
+ JMESSAGE(JWRN_JFIF_MAJOR, "Warning: unknown JFIF revision number %d.%02d")
197
+ JMESSAGE(JWRN_JPEG_EOF, "Premature end of JPEG file")
198
+ JMESSAGE(JWRN_MUST_RESYNC,
199
+ "Corrupt JPEG data: found marker 0x%02x instead of RST%d")
200
+ JMESSAGE(JWRN_NOT_SEQUENTIAL, "Invalid SOS parameters for sequential JPEG")
201
+ JMESSAGE(JWRN_TOO_MUCH_DATA, "Application transferred too many scanlines")
202
+ #if JPEG_LIB_VERSION < 70
203
+ JMESSAGE(JERR_BAD_CROP_SPEC, "Invalid crop request")
204
+ #if defined(C_ARITH_CODING_SUPPORTED) || defined(D_ARITH_CODING_SUPPORTED)
205
+ JMESSAGE(JERR_NO_ARITH_TABLE, "Arithmetic table 0x%02x was not defined")
206
+ JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
207
+ #endif
208
+ #endif
209
+ JMESSAGE(JERR_BAD_PARAM, "Bogus parameter")
210
+ JMESSAGE(JERR_BAD_PARAM_VALUE, "Bogus parameter value")
211
+
212
+ JMESSAGE(JERR_UNSUPPORTED_SUSPEND, "I/O suspension not supported in scan optimization")
213
+ JMESSAGE(JWRN_BOGUS_ICC, "Corrupt JPEG data: bad ICC marker")
214
+ #if JPEG_LIB_VERSION < 70
215
+ JMESSAGE(JERR_BAD_DROP_SAMPLING,
216
+ "Component index %d: mismatching sampling ratio %d:%d, %d:%d, %c")
217
+ #endif
218
+
219
+ #ifdef JMAKE_ENUM_LIST
220
+
221
+ JMSG_LASTMSGCODE
222
+ } J_MESSAGE_CODE;
223
+
224
+ #undef JMAKE_ENUM_LIST
225
+ #endif /* JMAKE_ENUM_LIST */
226
+
227
+ /* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
228
+ #undef JMESSAGE
229
+
230
+
231
+ #ifndef JERROR_H
232
+ #define JERROR_H
233
+
234
+ /* Macros to simplify using the error and trace message stuff */
235
+ /* The first parameter is either type of cinfo pointer */
236
+
237
+ /* Fatal errors (print message and exit) */
238
+ #define ERREXIT(cinfo,code) \
239
+ ((cinfo)->err->msg_code = (code), \
240
+ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
241
+ #define ERREXIT1(cinfo,code,p1) \
242
+ ((cinfo)->err->msg_code = (code), \
243
+ (cinfo)->err->msg_parm.i[0] = (p1), \
244
+ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
245
+ #define ERREXIT2(cinfo,code,p1,p2) \
246
+ ((cinfo)->err->msg_code = (code), \
247
+ (cinfo)->err->msg_parm.i[0] = (p1), \
248
+ (cinfo)->err->msg_parm.i[1] = (p2), \
249
+ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
250
+ #define ERREXIT3(cinfo,code,p1,p2,p3) \
251
+ ((cinfo)->err->msg_code = (code), \
252
+ (cinfo)->err->msg_parm.i[0] = (p1), \
253
+ (cinfo)->err->msg_parm.i[1] = (p2), \
254
+ (cinfo)->err->msg_parm.i[2] = (p3), \
255
+ (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
256
+ #define ERREXIT4(cinfo,code,p1,p2,p3,p4) \
257
+ ((cinfo)->err->msg_code = (code), \
258
+ (cinfo)->err->msg_parm.i[0] = (p1), \
259
+ (cinfo)->err->msg_parm.i[1] = (p2), \
260
+ (cinfo)->err->msg_parm.i[2] = (p3), \
261
+ (cinfo)->err->msg_parm.i[3] = (p4), \
262
+ (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
263
+ #define ERREXIT6(cinfo, code, p1, p2, p3, p4, p5, p6) \
264
+ ((cinfo)->err->msg_code = (code), \
265
+ (cinfo)->err->msg_parm.i[0] = (p1), \
266
+ (cinfo)->err->msg_parm.i[1] = (p2), \
267
+ (cinfo)->err->msg_parm.i[2] = (p3), \
268
+ (cinfo)->err->msg_parm.i[3] = (p4), \
269
+ (cinfo)->err->msg_parm.i[4] = (p5), \
270
+ (cinfo)->err->msg_parm.i[5] = (p6), \
271
+ (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
272
+ #define ERREXITS(cinfo, code, str) \
273
+ ((cinfo)->err->msg_code = (code), \
274
+ strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
275
+ (cinfo)->err->msg_parm.s[JMSG_STR_PARM_MAX - 1] = '\0', \
276
+ (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
277
+
278
+ #define MAKESTMT(stuff) do { stuff } while (0)
279
+
280
+ /* Nonfatal errors (we can keep going, but the data is probably corrupt) */
281
+ #define WARNMS(cinfo,code) \
282
+ ((cinfo)->err->msg_code = (code), \
283
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))
284
+ #define WARNMS1(cinfo,code,p1) \
285
+ ((cinfo)->err->msg_code = (code), \
286
+ (cinfo)->err->msg_parm.i[0] = (p1), \
287
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))
288
+ #define WARNMS2(cinfo,code,p1,p2) \
289
+ ((cinfo)->err->msg_code = (code), \
290
+ (cinfo)->err->msg_parm.i[0] = (p1), \
291
+ (cinfo)->err->msg_parm.i[1] = (p2), \
292
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))
293
+
294
+ /* Informational/debugging messages */
295
+ #define TRACEMS(cinfo,lvl,code) \
296
+ ((cinfo)->err->msg_code = (code), \
297
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
298
+ #define TRACEMS1(cinfo,lvl,code,p1) \
299
+ ((cinfo)->err->msg_code = (code), \
300
+ (cinfo)->err->msg_parm.i[0] = (p1), \
301
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
302
+ #define TRACEMS2(cinfo,lvl,code,p1,p2) \
303
+ ((cinfo)->err->msg_code = (code), \
304
+ (cinfo)->err->msg_parm.i[0] = (p1), \
305
+ (cinfo)->err->msg_parm.i[1] = (p2), \
306
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
307
+ #define TRACEMS3(cinfo,lvl,code,p1,p2,p3) \
308
+ MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
309
+ _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); \
310
+ (cinfo)->err->msg_code = (code); \
311
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
312
+ #define TRACEMS4(cinfo,lvl,code,p1,p2,p3,p4) \
313
+ MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
314
+ _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
315
+ (cinfo)->err->msg_code = (code); \
316
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
317
+ #define TRACEMS5(cinfo,lvl,code,p1,p2,p3,p4,p5) \
318
+ MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
319
+ _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
320
+ _mp[4] = (p5); \
321
+ (cinfo)->err->msg_code = (code); \
322
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
323
+ #define TRACEMS8(cinfo,lvl,code,p1,p2,p3,p4,p5,p6,p7,p8) \
324
+ MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
325
+ _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
326
+ _mp[4] = (p5); _mp[5] = (p6); _mp[6] = (p7); _mp[7] = (p8); \
327
+ (cinfo)->err->msg_code = (code); \
328
+ (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
329
+ #define TRACEMSS(cinfo,lvl,code,str) \
330
+ ((cinfo)->err->msg_code = (code), \
331
+ strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
332
+ (cinfo)->err->msg_parm.s[JMSG_STR_PARM_MAX - 1] = '\0', \
333
+ (*(cinfo)->err->emit_message) ((j_common_ptr)(cinfo), (lvl)))
334
+
335
+ #endif /* JERROR_H */