@img/sharp-libvips-dev 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/README.md +47 -0
  2. package/cplusplus/VConnection.cpp +151 -0
  3. package/cplusplus/VError.cpp +49 -0
  4. package/cplusplus/VImage.cpp +1548 -0
  5. package/cplusplus/VInterpolate.cpp +62 -0
  6. package/cplusplus/VRegion.cpp +27 -0
  7. package/cplusplus/index.js +1 -0
  8. package/cplusplus/vips-operators.cpp +3760 -0
  9. package/include/aom/aom.h +127 -0
  10. package/include/aom/aom_codec.h +573 -0
  11. package/include/aom/aom_decoder.h +257 -0
  12. package/include/aom/aom_encoder.h +1137 -0
  13. package/include/aom/aom_external_partition.h +452 -0
  14. package/include/aom/aom_frame_buffer.h +84 -0
  15. package/include/aom/aom_image.h +448 -0
  16. package/include/aom/aom_integer.h +68 -0
  17. package/include/aom/aomcx.h +2112 -0
  18. package/include/aom/aomdx.h +604 -0
  19. package/include/archive.h +1212 -0
  20. package/include/archive_entry.h +723 -0
  21. package/include/cairo/cairo-deprecated.h +123 -0
  22. package/include/cairo/cairo-features.h +29 -0
  23. package/include/cairo/cairo-ft.h +118 -0
  24. package/include/cairo/cairo-gobject.h +192 -0
  25. package/include/cairo/cairo-svg.h +130 -0
  26. package/include/cairo/cairo-version.h +8 -0
  27. package/include/cairo/cairo.h +3281 -0
  28. package/include/cgif.h +80 -0
  29. package/include/expat.h +1064 -0
  30. package/include/expat_config.h +140 -0
  31. package/include/expat_external.h +165 -0
  32. package/include/ffi.h +531 -0
  33. package/include/ffitarget.h +164 -0
  34. package/include/fontconfig/fcfreetype.h +59 -0
  35. package/include/fontconfig/fcprivate.h +134 -0
  36. package/include/fontconfig/fontconfig.h +1158 -0
  37. package/include/freetype2/freetype/config/ftconfig.h +51 -0
  38. package/include/freetype2/freetype/config/ftheader.h +836 -0
  39. package/include/freetype2/freetype/config/ftmodule.h +21 -0
  40. package/include/freetype2/freetype/config/ftoption.h +1014 -0
  41. package/include/freetype2/freetype/config/ftstdlib.h +185 -0
  42. package/include/freetype2/freetype/config/integer-types.h +250 -0
  43. package/include/freetype2/freetype/config/mac-support.h +49 -0
  44. package/include/freetype2/freetype/config/public-macros.h +138 -0
  45. package/include/freetype2/freetype/freetype.h +5337 -0
  46. package/include/freetype2/freetype/ftadvanc.h +188 -0
  47. package/include/freetype2/freetype/ftbbox.h +101 -0
  48. package/include/freetype2/freetype/ftbdf.h +212 -0
  49. package/include/freetype2/freetype/ftbitmap.h +329 -0
  50. package/include/freetype2/freetype/ftbzip2.h +102 -0
  51. package/include/freetype2/freetype/ftcache.h +1087 -0
  52. package/include/freetype2/freetype/ftchapters.h +168 -0
  53. package/include/freetype2/freetype/ftcid.h +167 -0
  54. package/include/freetype2/freetype/ftcolor.h +1667 -0
  55. package/include/freetype2/freetype/ftdriver.h +1246 -0
  56. package/include/freetype2/freetype/fterrdef.h +283 -0
  57. package/include/freetype2/freetype/fterrors.h +296 -0
  58. package/include/freetype2/freetype/ftfntfmt.h +93 -0
  59. package/include/freetype2/freetype/ftgasp.h +143 -0
  60. package/include/freetype2/freetype/ftglyph.h +750 -0
  61. package/include/freetype2/freetype/ftgxval.h +354 -0
  62. package/include/freetype2/freetype/ftgzip.h +151 -0
  63. package/include/freetype2/freetype/ftimage.h +1284 -0
  64. package/include/freetype2/freetype/ftincrem.h +348 -0
  65. package/include/freetype2/freetype/ftlcdfil.h +323 -0
  66. package/include/freetype2/freetype/ftlist.h +296 -0
  67. package/include/freetype2/freetype/ftlzw.h +100 -0
  68. package/include/freetype2/freetype/ftmac.h +289 -0
  69. package/include/freetype2/freetype/ftmm.h +805 -0
  70. package/include/freetype2/freetype/ftmodapi.h +807 -0
  71. package/include/freetype2/freetype/ftmoderr.h +204 -0
  72. package/include/freetype2/freetype/ftotval.h +206 -0
  73. package/include/freetype2/freetype/ftoutln.h +588 -0
  74. package/include/freetype2/freetype/ftparams.h +218 -0
  75. package/include/freetype2/freetype/ftpfr.h +179 -0
  76. package/include/freetype2/freetype/ftrender.h +244 -0
  77. package/include/freetype2/freetype/ftsizes.h +159 -0
  78. package/include/freetype2/freetype/ftsnames.h +272 -0
  79. package/include/freetype2/freetype/ftstroke.h +773 -0
  80. package/include/freetype2/freetype/ftsynth.h +104 -0
  81. package/include/freetype2/freetype/ftsystem.h +350 -0
  82. package/include/freetype2/freetype/fttrigon.h +350 -0
  83. package/include/freetype2/freetype/fttypes.h +617 -0
  84. package/include/freetype2/freetype/ftwinfnt.h +276 -0
  85. package/include/freetype2/freetype/otsvg.h +336 -0
  86. package/include/freetype2/freetype/t1tables.h +793 -0
  87. package/include/freetype2/freetype/ttnameid.h +1235 -0
  88. package/include/freetype2/freetype/tttables.h +855 -0
  89. package/include/freetype2/freetype/tttags.h +124 -0
  90. package/include/freetype2/ft2build.h +42 -0
  91. package/include/fribidi/fribidi-arabic.h +81 -0
  92. package/include/fribidi/fribidi-begindecls.h +3 -0
  93. package/include/fribidi/fribidi-bidi-types-list.h +96 -0
  94. package/include/fribidi/fribidi-bidi-types.h +405 -0
  95. package/include/fribidi/fribidi-bidi.h +142 -0
  96. package/include/fribidi/fribidi-brackets.h +89 -0
  97. package/include/fribidi/fribidi-char-sets-list.h +54 -0
  98. package/include/fribidi/fribidi-char-sets.h +106 -0
  99. package/include/fribidi/fribidi-common.h +152 -0
  100. package/include/fribidi/fribidi-config.h +23 -0
  101. package/include/fribidi/fribidi-deprecated.h +175 -0
  102. package/include/fribidi/fribidi-enddecls.h +3 -0
  103. package/include/fribidi/fribidi-flags.h +72 -0
  104. package/include/fribidi/fribidi-joining-types-list.h +44 -0
  105. package/include/fribidi/fribidi-joining-types.h +249 -0
  106. package/include/fribidi/fribidi-joining.h +74 -0
  107. package/include/fribidi/fribidi-mirroring.h +86 -0
  108. package/include/fribidi/fribidi-shape.h +71 -0
  109. package/include/fribidi/fribidi-types.h +79 -0
  110. package/include/fribidi/fribidi-unicode-version.h +10 -0
  111. package/include/fribidi/fribidi-unicode.h +105 -0
  112. package/include/fribidi/fribidi.h +129 -0
  113. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +221 -0
  114. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +37 -0
  115. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +525 -0
  116. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +40 -0
  117. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +115 -0
  118. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +481 -0
  119. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +113 -0
  120. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +718 -0
  121. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +33 -0
  122. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +70 -0
  123. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +168 -0
  124. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +46 -0
  125. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +165 -0
  126. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +200 -0
  127. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +67 -0
  128. package/include/gio-unix-2.0/gio/gunixfdmessage.h +86 -0
  129. package/include/gio-unix-2.0/gio/gunixinputstream.h +85 -0
  130. package/include/gio-unix-2.0/gio/gunixmounts.h +172 -0
  131. package/include/gio-unix-2.0/gio/gunixoutputstream.h +84 -0
  132. package/include/glib-2.0/gio/gaction.h +100 -0
  133. package/include/glib-2.0/gio/gactiongroup.h +163 -0
  134. package/include/glib-2.0/gio/gactiongroupexporter.h +47 -0
  135. package/include/glib-2.0/gio/gactionmap.h +101 -0
  136. package/include/glib-2.0/gio/gappinfo.h +369 -0
  137. package/include/glib-2.0/gio/gapplication.h +257 -0
  138. package/include/glib-2.0/gio/gapplicationcommandline.h +124 -0
  139. package/include/glib-2.0/gio/gasyncinitable.h +132 -0
  140. package/include/glib-2.0/gio/gasyncresult.h +87 -0
  141. package/include/glib-2.0/gio/gbufferedinputstream.h +135 -0
  142. package/include/glib-2.0/gio/gbufferedoutputstream.h +88 -0
  143. package/include/glib-2.0/gio/gbytesicon.h +54 -0
  144. package/include/glib-2.0/gio/gcancellable.h +120 -0
  145. package/include/glib-2.0/gio/gcharsetconverter.h +65 -0
  146. package/include/glib-2.0/gio/gcontenttype.h +84 -0
  147. package/include/glib-2.0/gio/gconverter.h +98 -0
  148. package/include/glib-2.0/gio/gconverterinputstream.h +82 -0
  149. package/include/glib-2.0/gio/gconverteroutputstream.h +82 -0
  150. package/include/glib-2.0/gio/gcredentials.h +87 -0
  151. package/include/glib-2.0/gio/gdatagrambased.h +146 -0
  152. package/include/glib-2.0/gio/gdatainputstream.h +182 -0
  153. package/include/glib-2.0/gio/gdataoutputstream.h +127 -0
  154. package/include/glib-2.0/gio/gdbusactiongroup.h +56 -0
  155. package/include/glib-2.0/gio/gdbusaddress.h +67 -0
  156. package/include/glib-2.0/gio/gdbusauthobserver.h +53 -0
  157. package/include/glib-2.0/gio/gdbusconnection.h +691 -0
  158. package/include/glib-2.0/gio/gdbuserror.h +111 -0
  159. package/include/glib-2.0/gio/gdbusinterface.h +83 -0
  160. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +129 -0
  161. package/include/glib-2.0/gio/gdbusintrospection.h +327 -0
  162. package/include/glib-2.0/gio/gdbusmenumodel.h +47 -0
  163. package/include/glib-2.0/gio/gdbusmessage.h +204 -0
  164. package/include/glib-2.0/gio/gdbusmethodinvocation.h +136 -0
  165. package/include/glib-2.0/gio/gdbusnameowning.h +117 -0
  166. package/include/glib-2.0/gio/gdbusnamewatching.h +104 -0
  167. package/include/glib-2.0/gio/gdbusobject.h +80 -0
  168. package/include/glib-2.0/gio/gdbusobjectmanager.h +96 -0
  169. package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +148 -0
  170. package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +95 -0
  171. package/include/glib-2.0/gio/gdbusobjectproxy.h +81 -0
  172. package/include/glib-2.0/gio/gdbusobjectskeleton.h +98 -0
  173. package/include/glib-2.0/gio/gdbusproxy.h +220 -0
  174. package/include/glib-2.0/gio/gdbusserver.h +62 -0
  175. package/include/glib-2.0/gio/gdbusutils.h +65 -0
  176. package/include/glib-2.0/gio/gdebugcontroller.h +81 -0
  177. package/include/glib-2.0/gio/gdebugcontrollerdbus.h +71 -0
  178. package/include/glib-2.0/gio/gdrive.h +274 -0
  179. package/include/glib-2.0/gio/gdtlsclientconnection.h +77 -0
  180. package/include/glib-2.0/gio/gdtlsconnection.h +230 -0
  181. package/include/glib-2.0/gio/gdtlsserverconnection.h +71 -0
  182. package/include/glib-2.0/gio/gemblem.h +63 -0
  183. package/include/glib-2.0/gio/gemblemedicon.h +83 -0
  184. package/include/glib-2.0/gio/gfile.h +1359 -0
  185. package/include/glib-2.0/gio/gfileattribute.h +86 -0
  186. package/include/glib-2.0/gio/gfileenumerator.h +154 -0
  187. package/include/glib-2.0/gio/gfileicon.h +59 -0
  188. package/include/glib-2.0/gio/gfileinfo.h +1546 -0
  189. package/include/glib-2.0/gio/gfileinputstream.h +116 -0
  190. package/include/glib-2.0/gio/gfileiostream.h +123 -0
  191. package/include/glib-2.0/gio/gfilemonitor.h +100 -0
  192. package/include/glib-2.0/gio/gfilenamecompleter.h +81 -0
  193. package/include/glib-2.0/gio/gfileoutputstream.h +124 -0
  194. package/include/glib-2.0/gio/gfilterinputstream.h +80 -0
  195. package/include/glib-2.0/gio/gfilteroutputstream.h +80 -0
  196. package/include/glib-2.0/gio/gicon.h +133 -0
  197. package/include/glib-2.0/gio/ginetaddress.h +125 -0
  198. package/include/glib-2.0/gio/ginetaddressmask.h +86 -0
  199. package/include/glib-2.0/gio/ginetsocketaddress.h +80 -0
  200. package/include/glib-2.0/gio/ginitable.h +107 -0
  201. package/include/glib-2.0/gio/ginputstream.h +218 -0
  202. package/include/glib-2.0/gio/gio-autocleanups.h +155 -0
  203. package/include/glib-2.0/gio/gio-visibility.h +952 -0
  204. package/include/glib-2.0/gio/gio.h +186 -0
  205. package/include/glib-2.0/gio/gioenums.h +2149 -0
  206. package/include/glib-2.0/gio/gioenumtypes.h +207 -0
  207. package/include/glib-2.0/gio/gioerror.h +58 -0
  208. package/include/glib-2.0/gio/giomodule.h +199 -0
  209. package/include/glib-2.0/gio/gioscheduler.h +56 -0
  210. package/include/glib-2.0/gio/giostream.h +137 -0
  211. package/include/glib-2.0/gio/giotypes.h +660 -0
  212. package/include/glib-2.0/gio/glistmodel.h +74 -0
  213. package/include/glib-2.0/gio/gliststore.h +97 -0
  214. package/include/glib-2.0/gio/gloadableicon.h +101 -0
  215. package/include/glib-2.0/gio/gmemoryinputstream.h +92 -0
  216. package/include/glib-2.0/gio/gmemorymonitor.h +64 -0
  217. package/include/glib-2.0/gio/gmemoryoutputstream.h +109 -0
  218. package/include/glib-2.0/gio/gmenu.h +184 -0
  219. package/include/glib-2.0/gio/gmenuexporter.h +55 -0
  220. package/include/glib-2.0/gio/gmenumodel.h +307 -0
  221. package/include/glib-2.0/gio/gmount.h +278 -0
  222. package/include/glib-2.0/gio/gmountoperation.h +179 -0
  223. package/include/glib-2.0/gio/gnativesocketaddress.h +67 -0
  224. package/include/glib-2.0/gio/gnativevolumemonitor.h +63 -0
  225. package/include/glib-2.0/gio/gnetworkaddress.h +82 -0
  226. package/include/glib-2.0/gio/gnetworking.h +81 -0
  227. package/include/glib-2.0/gio/gnetworkmonitor.h +101 -0
  228. package/include/glib-2.0/gio/gnetworkservice.h +77 -0
  229. package/include/glib-2.0/gio/gnotification.h +103 -0
  230. package/include/glib-2.0/gio/goutputstream.h +334 -0
  231. package/include/glib-2.0/gio/gpermission.h +129 -0
  232. package/include/glib-2.0/gio/gpollableinputstream.h +106 -0
  233. package/include/glib-2.0/gio/gpollableoutputstream.h +127 -0
  234. package/include/glib-2.0/gio/gpollableutils.h +66 -0
  235. package/include/glib-2.0/gio/gpowerprofilemonitor.h +65 -0
  236. package/include/glib-2.0/gio/gpropertyaction.h +49 -0
  237. package/include/glib-2.0/gio/gproxy.h +130 -0
  238. package/include/glib-2.0/gio/gproxyaddress.h +88 -0
  239. package/include/glib-2.0/gio/gproxyaddressenumerator.h +83 -0
  240. package/include/glib-2.0/gio/gproxyresolver.h +97 -0
  241. package/include/glib-2.0/gio/gremoteactiongroup.h +77 -0
  242. package/include/glib-2.0/gio/gresolver.h +299 -0
  243. package/include/glib-2.0/gio/gresource.h +132 -0
  244. package/include/glib-2.0/gio/gseekable.h +105 -0
  245. package/include/glib-2.0/gio/gsettings.h +347 -0
  246. package/include/glib-2.0/gio/gsettingsbackend.h +176 -0
  247. package/include/glib-2.0/gio/gsettingsschema.h +115 -0
  248. package/include/glib-2.0/gio/gsimpleaction.h +65 -0
  249. package/include/glib-2.0/gio/gsimpleactiongroup.h +99 -0
  250. package/include/glib-2.0/gio/gsimpleasyncresult.h +164 -0
  251. package/include/glib-2.0/gio/gsimpleiostream.h +47 -0
  252. package/include/glib-2.0/gio/gsimplepermission.h +47 -0
  253. package/include/glib-2.0/gio/gsimpleproxyresolver.h +91 -0
  254. package/include/glib-2.0/gio/gsocket.h +330 -0
  255. package/include/glib-2.0/gio/gsocketaddress.h +84 -0
  256. package/include/glib-2.0/gio/gsocketaddressenumerator.h +103 -0
  257. package/include/glib-2.0/gio/gsocketclient.h +199 -0
  258. package/include/glib-2.0/gio/gsocketconnectable.h +83 -0
  259. package/include/glib-2.0/gio/gsocketconnection.h +117 -0
  260. package/include/glib-2.0/gio/gsocketcontrolmessage.h +113 -0
  261. package/include/glib-2.0/gio/gsocketlistener.h +157 -0
  262. package/include/glib-2.0/gio/gsocketservice.h +95 -0
  263. package/include/glib-2.0/gio/gsrvtarget.h +60 -0
  264. package/include/glib-2.0/gio/gsubprocess.h +169 -0
  265. package/include/glib-2.0/gio/gsubprocesslauncher.h +121 -0
  266. package/include/glib-2.0/gio/gtask.h +207 -0
  267. package/include/glib-2.0/gio/gtcpconnection.h +71 -0
  268. package/include/glib-2.0/gio/gtcpwrapperconnection.h +71 -0
  269. package/include/glib-2.0/gio/gtestdbus.h +74 -0
  270. package/include/glib-2.0/gio/gthemedicon.h +70 -0
  271. package/include/glib-2.0/gio/gthreadedsocketservice.h +83 -0
  272. package/include/glib-2.0/gio/gtlsbackend.h +115 -0
  273. package/include/glib-2.0/gio/gtlscertificate.h +125 -0
  274. package/include/glib-2.0/gio/gtlsclientconnection.h +88 -0
  275. package/include/glib-2.0/gio/gtlsconnection.h +214 -0
  276. package/include/glib-2.0/gio/gtlsdatabase.h +249 -0
  277. package/include/glib-2.0/gio/gtlsfiledatabase.h +60 -0
  278. package/include/glib-2.0/gio/gtlsinteraction.h +150 -0
  279. package/include/glib-2.0/gio/gtlspassword.h +121 -0
  280. package/include/glib-2.0/gio/gtlsserverconnection.h +71 -0
  281. package/include/glib-2.0/gio/gunixconnection.h +102 -0
  282. package/include/glib-2.0/gio/gunixcredentialsmessage.h +89 -0
  283. package/include/glib-2.0/gio/gunixfdlist.h +97 -0
  284. package/include/glib-2.0/gio/gunixsocketaddress.h +83 -0
  285. package/include/glib-2.0/gio/gvfs.h +170 -0
  286. package/include/glib-2.0/gio/gvolume.h +255 -0
  287. package/include/glib-2.0/gio/gvolumemonitor.h +156 -0
  288. package/include/glib-2.0/gio/gzlibcompressor.h +64 -0
  289. package/include/glib-2.0/gio/gzlibdecompressor.h +60 -0
  290. package/include/glib-2.0/glib/deprecated/gallocator.h +88 -0
  291. package/include/glib-2.0/glib/deprecated/gcache.h +77 -0
  292. package/include/glib-2.0/glib/deprecated/gcompletion.h +85 -0
  293. package/include/glib-2.0/glib/deprecated/gmain.h +137 -0
  294. package/include/glib-2.0/glib/deprecated/grel.h +107 -0
  295. package/include/glib-2.0/glib/deprecated/gthread.h +295 -0
  296. package/include/glib-2.0/glib/galloca.h +147 -0
  297. package/include/glib-2.0/glib/garray.h +323 -0
  298. package/include/glib-2.0/glib/gasyncqueue.h +126 -0
  299. package/include/glib-2.0/glib/gatomic.h +587 -0
  300. package/include/glib-2.0/glib/gbacktrace.h +74 -0
  301. package/include/glib-2.0/glib/gbase64.h +63 -0
  302. package/include/glib-2.0/glib/gbitlock.h +78 -0
  303. package/include/glib-2.0/glib/gbookmarkfile.h +300 -0
  304. package/include/glib-2.0/glib/gbytes.h +99 -0
  305. package/include/glib-2.0/glib/gcharset.h +49 -0
  306. package/include/glib-2.0/glib/gchecksum.h +106 -0
  307. package/include/glib-2.0/glib/gconvert.h +179 -0
  308. package/include/glib-2.0/glib/gdataset.h +156 -0
  309. package/include/glib-2.0/glib/gdate.h +309 -0
  310. package/include/glib-2.0/glib/gdatetime.h +275 -0
  311. package/include/glib-2.0/glib/gdir.h +54 -0
  312. package/include/glib-2.0/glib/genviron.h +65 -0
  313. package/include/glib-2.0/glib/gerror.h +263 -0
  314. package/include/glib-2.0/glib/gfileutils.h +223 -0
  315. package/include/glib-2.0/glib/ggettext.h +65 -0
  316. package/include/glib-2.0/glib/ghash.h +206 -0
  317. package/include/glib-2.0/glib/ghmac.h +85 -0
  318. package/include/glib-2.0/glib/ghook.h +204 -0
  319. package/include/glib-2.0/glib/ghostutils.h +45 -0
  320. package/include/glib-2.0/glib/gi18n-lib.h +38 -0
  321. package/include/glib-2.0/glib/gi18n.h +34 -0
  322. package/include/glib-2.0/glib/giochannel.h +407 -0
  323. package/include/glib-2.0/glib/gkeyfile.h +332 -0
  324. package/include/glib-2.0/glib/glib-autocleanups.h +105 -0
  325. package/include/glib-2.0/glib/glib-typeof.h +47 -0
  326. package/include/glib-2.0/glib/glib-visibility.h +952 -0
  327. package/include/glib-2.0/glib/glist.h +179 -0
  328. package/include/glib-2.0/glib/gmacros.h +1425 -0
  329. package/include/glib-2.0/glib/gmain.h +862 -0
  330. package/include/glib-2.0/glib/gmappedfile.h +60 -0
  331. package/include/glib-2.0/glib/gmarkup.h +265 -0
  332. package/include/glib-2.0/glib/gmem.h +425 -0
  333. package/include/glib-2.0/glib/gmessages.h +690 -0
  334. package/include/glib-2.0/glib/gnode.h +309 -0
  335. package/include/glib-2.0/glib/goption.h +409 -0
  336. package/include/glib-2.0/glib/gpathbuf.h +90 -0
  337. package/include/glib-2.0/glib/gpattern.h +65 -0
  338. package/include/glib-2.0/glib/gpoll.h +122 -0
  339. package/include/glib-2.0/glib/gprimes.h +52 -0
  340. package/include/glib-2.0/glib/gprintf.h +59 -0
  341. package/include/glib-2.0/glib/gqsort.h +47 -0
  342. package/include/glib-2.0/glib/gquark.h +70 -0
  343. package/include/glib-2.0/glib/gqueue.h +205 -0
  344. package/include/glib-2.0/glib/grand.h +101 -0
  345. package/include/glib-2.0/glib/grcbox.h +91 -0
  346. package/include/glib-2.0/glib/grefcount.h +179 -0
  347. package/include/glib-2.0/glib/grefstring.h +59 -0
  348. package/include/glib-2.0/glib/gscanner.h +301 -0
  349. package/include/glib-2.0/glib/gsequence.h +175 -0
  350. package/include/glib-2.0/glib/gshell.h +59 -0
  351. package/include/glib-2.0/glib/gslice.h +117 -0
  352. package/include/glib-2.0/glib/gslist.h +166 -0
  353. package/include/glib-2.0/glib/gspawn.h +323 -0
  354. package/include/glib-2.0/glib/gstdio.h +231 -0
  355. package/include/glib-2.0/glib/gstrfuncs.h +504 -0
  356. package/include/glib-2.0/glib/gstring.h +296 -0
  357. package/include/glib-2.0/glib/gstringchunk.h +59 -0
  358. package/include/glib-2.0/glib/gstrvbuilder.h +69 -0
  359. package/include/glib-2.0/glib/gtestutils.h +763 -0
  360. package/include/glib-2.0/glib/gthread.h +603 -0
  361. package/include/glib-2.0/glib/gthreadpool.h +105 -0
  362. package/include/glib-2.0/glib/gtimer.h +80 -0
  363. package/include/glib-2.0/glib/gtimezone.h +98 -0
  364. package/include/glib-2.0/glib/gtrashstack.h +60 -0
  365. package/include/glib-2.0/glib/gtree.h +181 -0
  366. package/include/glib-2.0/glib/gtypes.h +591 -0
  367. package/include/glib-2.0/glib/gunicode.h +974 -0
  368. package/include/glib-2.0/glib/guri.h +420 -0
  369. package/include/glib-2.0/glib/gutils.h +479 -0
  370. package/include/glib-2.0/glib/guuid.h +42 -0
  371. package/include/glib-2.0/glib/gvariant.h +541 -0
  372. package/include/glib-2.0/glib/gvarianttype.h +384 -0
  373. package/include/glib-2.0/glib/gversion.h +57 -0
  374. package/include/glib-2.0/glib/gversionmacros.h +490 -0
  375. package/include/glib-2.0/glib/gwin32.h +142 -0
  376. package/include/glib-2.0/glib-object.h +46 -0
  377. package/include/glib-2.0/glib-unix.h +125 -0
  378. package/include/glib-2.0/glib.h +121 -0
  379. package/include/glib-2.0/gmodule/gmodule-visibility.h +952 -0
  380. package/include/glib-2.0/gmodule.h +147 -0
  381. package/include/glib-2.0/gobject/gbinding.h +156 -0
  382. package/include/glib-2.0/gobject/gbindinggroup.h +85 -0
  383. package/include/glib-2.0/gobject/gboxed.h +124 -0
  384. package/include/glib-2.0/gobject/gclosure.h +323 -0
  385. package/include/glib-2.0/gobject/genums.h +381 -0
  386. package/include/glib-2.0/gobject/glib-enumtypes.h +25 -0
  387. package/include/glib-2.0/gobject/glib-types.h +400 -0
  388. package/include/glib-2.0/gobject/gmarshal.h +434 -0
  389. package/include/glib-2.0/gobject/gobject-autocleanups.h +33 -0
  390. package/include/glib-2.0/gobject/gobject-visibility.h +952 -0
  391. package/include/glib-2.0/gobject/gobject.h +953 -0
  392. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +199 -0
  393. package/include/glib-2.0/gobject/gparam.h +476 -0
  394. package/include/glib-2.0/gobject/gparamspecs.h +1151 -0
  395. package/include/glib-2.0/gobject/gsignal.h +647 -0
  396. package/include/glib-2.0/gobject/gsignalgroup.h +98 -0
  397. package/include/glib-2.0/gobject/gsourceclosure.h +40 -0
  398. package/include/glib-2.0/gobject/gtype.h +2703 -0
  399. package/include/glib-2.0/gobject/gtypemodule.h +302 -0
  400. package/include/glib-2.0/gobject/gtypeplugin.h +136 -0
  401. package/include/glib-2.0/gobject/gvalue.h +212 -0
  402. package/include/glib-2.0/gobject/gvaluearray.h +106 -0
  403. package/include/glib-2.0/gobject/gvaluecollector.h +290 -0
  404. package/include/glib-2.0/gobject/gvaluetypes.h +318 -0
  405. package/include/harfbuzz/hb-aat-layout.h +795 -0
  406. package/include/harfbuzz/hb-aat.h +38 -0
  407. package/include/harfbuzz/hb-blob.h +160 -0
  408. package/include/harfbuzz/hb-buffer.h +799 -0
  409. package/include/harfbuzz/hb-common.h +938 -0
  410. package/include/harfbuzz/hb-cplusplus.hh +223 -0
  411. package/include/harfbuzz/hb-deprecated.h +309 -0
  412. package/include/harfbuzz/hb-draw.h +340 -0
  413. package/include/harfbuzz/hb-face.h +187 -0
  414. package/include/harfbuzz/hb-features.h +119 -0
  415. package/include/harfbuzz/hb-font.h +1153 -0
  416. package/include/harfbuzz/hb-ft.h +145 -0
  417. package/include/harfbuzz/hb-glib.h +56 -0
  418. package/include/harfbuzz/hb-map.h +143 -0
  419. package/include/harfbuzz/hb-ot-color.h +155 -0
  420. package/include/harfbuzz/hb-ot-deprecated.h +147 -0
  421. package/include/harfbuzz/hb-ot-font.h +45 -0
  422. package/include/harfbuzz/hb-ot-layout.h +549 -0
  423. package/include/harfbuzz/hb-ot-math.h +333 -0
  424. package/include/harfbuzz/hb-ot-meta.h +72 -0
  425. package/include/harfbuzz/hb-ot-metrics.h +129 -0
  426. package/include/harfbuzz/hb-ot-name.h +164 -0
  427. package/include/harfbuzz/hb-ot-shape.h +53 -0
  428. package/include/harfbuzz/hb-ot-var.h +191 -0
  429. package/include/harfbuzz/hb-ot.h +49 -0
  430. package/include/harfbuzz/hb-paint.h +1029 -0
  431. package/include/harfbuzz/hb-set.h +203 -0
  432. package/include/harfbuzz/hb-shape-plan.h +122 -0
  433. package/include/harfbuzz/hb-shape.h +74 -0
  434. package/include/harfbuzz/hb-style.h +81 -0
  435. package/include/harfbuzz/hb-subset-repacker.h +81 -0
  436. package/include/harfbuzz/hb-subset.h +241 -0
  437. package/include/harfbuzz/hb-unicode.h +643 -0
  438. package/include/harfbuzz/hb-version.h +95 -0
  439. package/include/harfbuzz/hb.h +51 -0
  440. package/include/index.js +1 -0
  441. package/include/jconfig.h +37 -0
  442. package/include/jerror.h +335 -0
  443. package/include/jmorecfg.h +382 -0
  444. package/include/jpeglib.h +1210 -0
  445. package/include/lcms2.h +1958 -0
  446. package/include/lcms2_plugin.h +700 -0
  447. package/include/libexif/_stdint.h +2 -0
  448. package/include/libexif/exif-byte-order.h +48 -0
  449. package/include/libexif/exif-content.h +181 -0
  450. package/include/libexif/exif-data-type.h +46 -0
  451. package/include/libexif/exif-data.h +267 -0
  452. package/include/libexif/exif-entry.h +186 -0
  453. package/include/libexif/exif-format.h +65 -0
  454. package/include/libexif/exif-ifd.h +51 -0
  455. package/include/libexif/exif-loader.h +128 -0
  456. package/include/libexif/exif-log.h +116 -0
  457. package/include/libexif/exif-mem.h +91 -0
  458. package/include/libexif/exif-mnote-data.h +122 -0
  459. package/include/libexif/exif-tag.h +307 -0
  460. package/include/libexif/exif-utils.h +194 -0
  461. package/include/libheif/heif.h +2092 -0
  462. package/include/libheif/heif_cxx.h +1359 -0
  463. package/include/libheif/heif_plugin.h +306 -0
  464. package/include/libheif/heif_version.h +38 -0
  465. package/include/libimagequant.h +111 -0
  466. package/include/libpng16/png.h +3247 -0
  467. package/include/libpng16/pngconf.h +623 -0
  468. package/include/libpng16/pnglibconf.h +219 -0
  469. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +395 -0
  470. package/include/librsvg-2.0/librsvg/rsvg-features.h +184 -0
  471. package/include/librsvg-2.0/librsvg/rsvg-version.h +13 -0
  472. package/include/librsvg-2.0/librsvg/rsvg.h +1456 -0
  473. package/include/libxml2/libxml/HTMLparser.h +320 -0
  474. package/include/libxml2/libxml/HTMLtree.h +147 -0
  475. package/include/libxml2/libxml/SAX.h +204 -0
  476. package/include/libxml2/libxml/SAX2.h +173 -0
  477. package/include/libxml2/libxml/c14n.h +128 -0
  478. package/include/libxml2/libxml/catalog.h +182 -0
  479. package/include/libxml2/libxml/chvalid.h +230 -0
  480. package/include/libxml2/libxml/debugXML.h +217 -0
  481. package/include/libxml2/libxml/dict.h +81 -0
  482. package/include/libxml2/libxml/encoding.h +233 -0
  483. package/include/libxml2/libxml/entities.h +151 -0
  484. package/include/libxml2/libxml/globals.h +529 -0
  485. package/include/libxml2/libxml/hash.h +236 -0
  486. package/include/libxml2/libxml/list.h +137 -0
  487. package/include/libxml2/libxml/nanoftp.h +186 -0
  488. package/include/libxml2/libxml/nanohttp.h +81 -0
  489. package/include/libxml2/libxml/parser.h +1265 -0
  490. package/include/libxml2/libxml/parserInternals.h +662 -0
  491. package/include/libxml2/libxml/pattern.h +100 -0
  492. package/include/libxml2/libxml/relaxng.h +218 -0
  493. package/include/libxml2/libxml/schemasInternals.h +958 -0
  494. package/include/libxml2/libxml/schematron.h +142 -0
  495. package/include/libxml2/libxml/threads.h +94 -0
  496. package/include/libxml2/libxml/tree.h +1314 -0
  497. package/include/libxml2/libxml/uri.h +94 -0
  498. package/include/libxml2/libxml/valid.h +448 -0
  499. package/include/libxml2/libxml/xinclude.h +129 -0
  500. package/include/libxml2/libxml/xlink.h +189 -0
  501. package/include/libxml2/libxml/xmlIO.h +369 -0
  502. package/include/libxml2/libxml/xmlautomata.h +146 -0
  503. package/include/libxml2/libxml/xmlerror.h +919 -0
  504. package/include/libxml2/libxml/xmlexports.h +50 -0
  505. package/include/libxml2/libxml/xmlmemory.h +228 -0
  506. package/include/libxml2/libxml/xmlmodule.h +57 -0
  507. package/include/libxml2/libxml/xmlreader.h +428 -0
  508. package/include/libxml2/libxml/xmlregexp.h +222 -0
  509. package/include/libxml2/libxml/xmlsave.h +88 -0
  510. package/include/libxml2/libxml/xmlschemas.h +246 -0
  511. package/include/libxml2/libxml/xmlschemastypes.h +152 -0
  512. package/include/libxml2/libxml/xmlstring.h +140 -0
  513. package/include/libxml2/libxml/xmlunicode.h +202 -0
  514. package/include/libxml2/libxml/xmlversion.h +526 -0
  515. package/include/libxml2/libxml/xmlwriter.h +488 -0
  516. package/include/libxml2/libxml/xpath.h +575 -0
  517. package/include/libxml2/libxml/xpathInternals.h +632 -0
  518. package/include/libxml2/libxml/xpointer.h +137 -0
  519. package/include/orc-0.4/orc/orc-stdint.h +1 -0
  520. package/include/orc-0.4/orc/orc.h +16 -0
  521. package/include/orc-0.4/orc/orcarm.h +879 -0
  522. package/include/orc-0.4/orc/orcbytecode.h +35 -0
  523. package/include/orc-0.4/orc/orcbytecodes.h +255 -0
  524. package/include/orc-0.4/orc/orccode.h +53 -0
  525. package/include/orc-0.4/orc/orccompiler.h +176 -0
  526. package/include/orc-0.4/orc/orcconstant.h +39 -0
  527. package/include/orc-0.4/orc/orccpu.h +21 -0
  528. package/include/orc-0.4/orc/orccpuinsn.h +40 -0
  529. package/include/orc-0.4/orc/orcdebug.h +158 -0
  530. package/include/orc-0.4/orc/orcemulateopcodes.h +203 -0
  531. package/include/orc-0.4/orc/orcexecutor.h +135 -0
  532. package/include/orc-0.4/orc/orcfunctions.h +93 -0
  533. package/include/orc-0.4/orc/orcinstruction.h +39 -0
  534. package/include/orc-0.4/orc/orcinternal.h +46 -0
  535. package/include/orc-0.4/orc/orclimits.h +94 -0
  536. package/include/orc-0.4/orc/orcmips.h +229 -0
  537. package/include/orc-0.4/orc/orcmmx.h +79 -0
  538. package/include/orc-0.4/orc/orcneon.h +43 -0
  539. package/include/orc-0.4/orc/orconce.h +166 -0
  540. package/include/orc-0.4/orc/orcopcode.h +63 -0
  541. package/include/orc-0.4/orc/orcparse.h +27 -0
  542. package/include/orc-0.4/orc/orcpowerpc.h +209 -0
  543. package/include/orc-0.4/orc/orcprogram.h +192 -0
  544. package/include/orc-0.4/orc/orcrule.h +52 -0
  545. package/include/orc-0.4/orc/orcsse.h +55 -0
  546. package/include/orc-0.4/orc/orctarget.h +115 -0
  547. package/include/orc-0.4/orc/orcutils.h +238 -0
  548. package/include/orc-0.4/orc/orcvariable.h +81 -0
  549. package/include/orc-0.4/orc/orcx86.h +199 -0
  550. package/include/orc-0.4/orc/orcx86insn.h +672 -0
  551. package/include/pango-1.0/pango/pango-attributes.h +748 -0
  552. package/include/pango-1.0/pango/pango-bidi-type.h +117 -0
  553. package/include/pango-1.0/pango/pango-break.h +144 -0
  554. package/include/pango-1.0/pango/pango-color.h +75 -0
  555. package/include/pango-1.0/pango/pango-context.h +116 -0
  556. package/include/pango-1.0/pango/pango-coverage.h +108 -0
  557. package/include/pango-1.0/pango/pango-direction.h +72 -0
  558. package/include/pango-1.0/pango/pango-engine.h +457 -0
  559. package/include/pango-1.0/pango/pango-enum-types.h +120 -0
  560. package/include/pango-1.0/pango/pango-features.h +10 -0
  561. package/include/pango-1.0/pango/pango-font.h +699 -0
  562. package/include/pango-1.0/pango/pango-fontmap.h +132 -0
  563. package/include/pango-1.0/pango/pango-fontset-simple.h +64 -0
  564. package/include/pango-1.0/pango/pango-fontset.h +134 -0
  565. package/include/pango-1.0/pango/pango-glyph-item.h +175 -0
  566. package/include/pango-1.0/pango/pango-glyph.h +270 -0
  567. package/include/pango-1.0/pango/pango-gravity.h +137 -0
  568. package/include/pango-1.0/pango/pango-item.h +165 -0
  569. package/include/pango-1.0/pango/pango-language.h +70 -0
  570. package/include/pango-1.0/pango/pango-layout.h +554 -0
  571. package/include/pango-1.0/pango/pango-markup.h +52 -0
  572. package/include/pango-1.0/pango/pango-matrix.h +130 -0
  573. package/include/pango-1.0/pango/pango-modules.h +84 -0
  574. package/include/pango-1.0/pango/pango-ot.h +427 -0
  575. package/include/pango-1.0/pango/pango-renderer.h +290 -0
  576. package/include/pango-1.0/pango/pango-script.h +335 -0
  577. package/include/pango-1.0/pango/pango-tabs.h +117 -0
  578. package/include/pango-1.0/pango/pango-types.h +244 -0
  579. package/include/pango-1.0/pango/pango-utils.h +187 -0
  580. package/include/pango-1.0/pango/pango-version-macros.h +756 -0
  581. package/include/pango-1.0/pango/pango.h +54 -0
  582. package/include/pango-1.0/pango/pangocairo.h +220 -0
  583. package/include/pango-1.0/pango/pangofc-decoder.h +122 -0
  584. package/include/pango-1.0/pango/pangofc-font.h +120 -0
  585. package/include/pango-1.0/pango/pangofc-fontmap.h +244 -0
  586. package/include/pango-1.0/pango/pangoft2.h +158 -0
  587. package/include/pixman-1/pixman-version.h +54 -0
  588. package/include/pixman-1/pixman.h +1419 -0
  589. package/include/png.h +3247 -0
  590. package/include/pngconf.h +623 -0
  591. package/include/pnglibconf.h +219 -0
  592. package/include/spng.h +537 -0
  593. package/include/tiff.h +899 -0
  594. package/include/tiffconf.h +145 -0
  595. package/include/tiffio.h +653 -0
  596. package/include/tiffvers.h +36 -0
  597. package/include/vips/VConnection8.h +150 -0
  598. package/include/vips/VError8.h +76 -0
  599. package/include/vips/VImage8.h +6065 -0
  600. package/include/vips/VInterpolate8.h +77 -0
  601. package/include/vips/VRegion8.h +155 -0
  602. package/include/vips/arithmetic.h +571 -0
  603. package/include/vips/basic.h +113 -0
  604. package/include/vips/buf.h +118 -0
  605. package/include/vips/colour.h +306 -0
  606. package/include/vips/connection.h +570 -0
  607. package/include/vips/conversion.h +357 -0
  608. package/include/vips/convolution.h +95 -0
  609. package/include/vips/create.h +161 -0
  610. package/include/vips/dbuf.h +103 -0
  611. package/include/vips/debug.h +74 -0
  612. package/include/vips/draw.h +113 -0
  613. package/include/vips/enumtypes.h +181 -0
  614. package/include/vips/error.h +142 -0
  615. package/include/vips/foreign.h +993 -0
  616. package/include/vips/format.h +135 -0
  617. package/include/vips/freqfilt.h +64 -0
  618. package/include/vips/gate.h +82 -0
  619. package/include/vips/generate.h +92 -0
  620. package/include/vips/header.h +312 -0
  621. package/include/vips/histogram.h +85 -0
  622. package/include/vips/image.h +605 -0
  623. package/include/vips/interpolate.h +141 -0
  624. package/include/vips/memory.h +96 -0
  625. package/include/vips/morphology.h +73 -0
  626. package/include/vips/mosaicing.h +80 -0
  627. package/include/vips/object.h +706 -0
  628. package/include/vips/operation.h +182 -0
  629. package/include/vips/private.h +227 -0
  630. package/include/vips/rect.h +80 -0
  631. package/include/vips/region.h +238 -0
  632. package/include/vips/resample.h +123 -0
  633. package/include/vips/sbuf.h +144 -0
  634. package/include/vips/semaphore.h +77 -0
  635. package/include/vips/thread.h +72 -0
  636. package/include/vips/threadpool.h +160 -0
  637. package/include/vips/transform.h +89 -0
  638. package/include/vips/type.h +305 -0
  639. package/include/vips/util.h +406 -0
  640. package/include/vips/vector.h +183 -0
  641. package/include/vips/version.h +26 -0
  642. package/include/vips/vips.h +194 -0
  643. package/include/vips/vips8 +60 -0
  644. package/include/webp/decode.h +504 -0
  645. package/include/webp/demux.h +363 -0
  646. package/include/webp/encode.h +552 -0
  647. package/include/webp/mux.h +530 -0
  648. package/include/webp/mux_types.h +98 -0
  649. package/include/webp/sharpyuv/sharpyuv.h +103 -0
  650. package/include/webp/sharpyuv/sharpyuv_csp.h +60 -0
  651. package/include/webp/types.h +72 -0
  652. package/include/zconf.h +203 -0
  653. package/include/zlib.h +1855 -0
  654. package/include/zlib_name_mangling.h +8 -0
  655. package/package.json +30 -0
  656. package/versions.json +31 -0
@@ -0,0 +1,1137 @@
1
+ /*
2
+ * Copyright (c) 2016, Alliance for Open Media. All rights reserved
3
+ *
4
+ * This source code is subject to the terms of the BSD 2 Clause License and
5
+ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6
+ * was not distributed with this source code in the LICENSE file, you can
7
+ * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8
+ * Media Patent License 1.0 was not distributed with this source code in the
9
+ * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10
+ */
11
+ #ifndef AOM_AOM_AOM_ENCODER_H_
12
+ #define AOM_AOM_AOM_ENCODER_H_
13
+
14
+ /*!\defgroup encoder Encoder Algorithm Interface
15
+ * \ingroup codec
16
+ * This abstraction allows applications using this encoder to easily support
17
+ * multiple video formats with minimal code duplication. This section describes
18
+ * the interface common to all encoders.
19
+ * @{
20
+ */
21
+
22
+ /*!\file
23
+ * \brief Describes the encoder algorithm interface to applications.
24
+ *
25
+ * This file describes the interface between an application and a
26
+ * video encoder algorithm.
27
+ *
28
+ */
29
+ #ifdef __cplusplus
30
+ extern "C" {
31
+ #endif
32
+
33
+ #include "aom/aom_codec.h"
34
+ #include "aom/aom_external_partition.h"
35
+
36
+ /*!\brief Current ABI version number
37
+ *
38
+ * \hideinitializer
39
+ * \internal
40
+ * If this file is altered in any way that changes the ABI, this value
41
+ * must be bumped. Examples include, but are not limited to, changing
42
+ * types, removing or reassigning enums, adding/removing/rearranging
43
+ * fields to structures
44
+ *
45
+ * Note: In the definition of AOM_ENCODER_ABI_VERSION, 3 is the value of
46
+ * AOM_EXT_PART_ABI_VERSION in libaom v3.2.0. The old value of
47
+ * AOM_EXT_PART_ABI_VERSION is used so as to not break the ABI version check in
48
+ * aom_codec_enc_init_ver() when an application compiled against libaom v3.2.0
49
+ * passes the old value of AOM_ENCODER_ABI_VERSION to aom_codec_enc_init_ver().
50
+ * The external partition API is still experimental. When it is declared stable,
51
+ * we will replace 3 with AOM_EXT_PART_ABI_VERSION in the definition of
52
+ * AOM_ENCODER_ABI_VERSION.
53
+ */
54
+ #define AOM_ENCODER_ABI_VERSION \
55
+ (10 + AOM_CODEC_ABI_VERSION + /*AOM_EXT_PART_ABI_VERSION=*/3)
56
+
57
+ /*! \brief Encoder capabilities bitfield
58
+ *
59
+ * Each encoder advertises the capabilities it supports as part of its
60
+ * ::aom_codec_iface_t interface structure. Capabilities are extra
61
+ * interfaces or functionality, and are not required to be supported
62
+ * by an encoder.
63
+ *
64
+ * The available flags are specified by AOM_CODEC_CAP_* defines.
65
+ */
66
+ #define AOM_CODEC_CAP_PSNR 0x10000 /**< Can issue PSNR packets */
67
+
68
+ /*! Can support input images at greater than 8 bitdepth.
69
+ */
70
+ #define AOM_CODEC_CAP_HIGHBITDEPTH 0x40000
71
+
72
+ /*! \brief Initialization-time Feature Enabling
73
+ *
74
+ * Certain codec features must be known at initialization time, to allow
75
+ * for proper memory allocation.
76
+ *
77
+ * The available flags are specified by AOM_CODEC_USE_* defines.
78
+ */
79
+ #define AOM_CODEC_USE_PSNR 0x10000 /**< Calculate PSNR on each frame */
80
+ #define AOM_CODEC_USE_HIGHBITDEPTH 0x40000 /**< Use high bitdepth */
81
+
82
+ /*!\brief Generic fixed size buffer structure
83
+ *
84
+ * This structure is able to hold a reference to any fixed size buffer.
85
+ */
86
+ typedef struct aom_fixed_buf {
87
+ void *buf; /**< Pointer to the data. Does NOT own the data! */
88
+ size_t sz; /**< Length of the buffer, in chars */
89
+ } aom_fixed_buf_t; /**< alias for struct aom_fixed_buf */
90
+
91
+ /*!\brief Error Resilient flags
92
+ *
93
+ * These flags define which error resilient features to enable in the
94
+ * encoder. The flags are specified through the
95
+ * aom_codec_enc_cfg::g_error_resilient variable.
96
+ */
97
+ typedef uint32_t aom_codec_er_flags_t;
98
+ /*!\brief Improve resiliency against losses of whole frames */
99
+ #define AOM_ERROR_RESILIENT_DEFAULT 0x1
100
+
101
+ /*!\brief Encoder output packet variants
102
+ *
103
+ * This enumeration lists the different kinds of data packets that can be
104
+ * returned by calls to aom_codec_get_cx_data(). Algorithms \ref MAY
105
+ * extend this list to provide additional functionality.
106
+ */
107
+ enum aom_codec_cx_pkt_kind {
108
+ AOM_CODEC_CX_FRAME_PKT, /**< Compressed video frame */
109
+ AOM_CODEC_STATS_PKT, /**< Two-pass statistics for this frame */
110
+ AOM_CODEC_FPMB_STATS_PKT, /**< first pass mb statistics for this frame */
111
+ AOM_CODEC_PSNR_PKT, /**< PSNR statistics for this frame */
112
+ AOM_CODEC_CUSTOM_PKT = 256 /**< Algorithm extensions */
113
+ };
114
+
115
+ /*!\brief Encoder output packet
116
+ *
117
+ * This structure contains the different kinds of output data the encoder
118
+ * may produce while compressing a frame.
119
+ */
120
+ typedef struct aom_codec_cx_pkt {
121
+ enum aom_codec_cx_pkt_kind kind; /**< packet variant */
122
+ union {
123
+ struct {
124
+ void *buf; /**< compressed data buffer */
125
+ size_t sz; /**< length of compressed data */
126
+ /*!\brief time stamp to show frame (in timebase units) */
127
+ aom_codec_pts_t pts;
128
+ /*!\brief duration to show frame (in timebase units) */
129
+ unsigned long duration;
130
+ aom_codec_frame_flags_t flags; /**< flags for this frame */
131
+ /*!\brief the partition id defines the decoding order of the partitions.
132
+ * Only applicable when "output partition" mode is enabled. First
133
+ * partition has id 0.*/
134
+ int partition_id;
135
+ /*!\brief size of the visible frame in this packet */
136
+ size_t vis_frame_size;
137
+ } frame; /**< data for compressed frame packet */
138
+ aom_fixed_buf_t twopass_stats; /**< data for two-pass packet */
139
+ aom_fixed_buf_t firstpass_mb_stats; /**< first pass mb packet */
140
+ struct aom_psnr_pkt {
141
+ unsigned int samples[4]; /**< Number of samples, total/y/u/v */
142
+ uint64_t sse[4]; /**< sum squared error, total/y/u/v */
143
+ double psnr[4]; /**< PSNR, total/y/u/v */
144
+ /*!\brief Number of samples, total/y/u/v when
145
+ * input bit-depth < stream bit-depth.*/
146
+ unsigned int samples_hbd[4];
147
+ /*!\brief sum squared error, total/y/u/v when
148
+ * input bit-depth < stream bit-depth.*/
149
+ uint64_t sse_hbd[4];
150
+ /*!\brief PSNR, total/y/u/v when
151
+ * input bit-depth < stream bit-depth.*/
152
+ double psnr_hbd[4];
153
+ } psnr; /**< data for PSNR packet */
154
+ aom_fixed_buf_t raw; /**< data for arbitrary packets */
155
+ } data; /**< packet data */
156
+ } aom_codec_cx_pkt_t; /**< alias for struct aom_codec_cx_pkt */
157
+
158
+ /*!\brief Rational Number
159
+ *
160
+ * This structure holds a fractional value.
161
+ */
162
+ typedef struct aom_rational {
163
+ int num; /**< fraction numerator */
164
+ int den; /**< fraction denominator */
165
+ } aom_rational_t; /**< alias for struct aom_rational */
166
+
167
+ /*!\brief Multi-pass Encoding Pass
168
+ *
169
+ * AOM_RC_LAST_PASS is kept for backward compatibility.
170
+ * If passes is not given and pass==2, the codec will assume passes=2.
171
+ * For new code, it is recommended to use AOM_RC_SECOND_PASS and set
172
+ * the "passes" member to 2 via the key & val API for two-pass encoding.
173
+ */
174
+ enum aom_enc_pass {
175
+ AOM_RC_ONE_PASS = 0, /**< Single pass mode */
176
+ AOM_RC_FIRST_PASS = 1, /**< First pass of multi-pass mode */
177
+ AOM_RC_SECOND_PASS = 2, /**< Second pass of multi-pass mode */
178
+ AOM_RC_THIRD_PASS = 3, /**< Third pass of multi-pass mode */
179
+ AOM_RC_LAST_PASS = 2, /**< Final pass of two-pass mode */
180
+ };
181
+
182
+ /*!\brief Rate control mode */
183
+ enum aom_rc_mode {
184
+ AOM_VBR, /**< Variable Bit Rate (VBR) mode */
185
+ AOM_CBR, /**< Constant Bit Rate (CBR) mode */
186
+ AOM_CQ, /**< Constrained Quality (CQ) mode */
187
+ AOM_Q, /**< Constant Quality (Q) mode */
188
+ };
189
+
190
+ /*!\brief Keyframe placement mode.
191
+ *
192
+ * This enumeration determines whether keyframes are placed automatically by
193
+ * the encoder or whether this behavior is disabled. Older releases of this
194
+ * SDK were implemented such that AOM_KF_FIXED meant keyframes were disabled.
195
+ * This name is confusing for this behavior, so the new symbols to be used
196
+ * are AOM_KF_AUTO and AOM_KF_DISABLED.
197
+ */
198
+ enum aom_kf_mode {
199
+ AOM_KF_FIXED, /**< deprecated, implies AOM_KF_DISABLED */
200
+ AOM_KF_AUTO, /**< Encoder determines optimal placement automatically */
201
+ AOM_KF_DISABLED = 0 /**< Encoder does not place keyframes. */
202
+ };
203
+
204
+ /*!\brief Frame super-resolution mode. */
205
+ typedef enum {
206
+ /**< Frame super-resolution is disabled for all frames. */
207
+ AOM_SUPERRES_NONE,
208
+ /**< All frames are coded at the specified scale and super-resolved. */
209
+ AOM_SUPERRES_FIXED,
210
+ /**< All frames are coded at a random scale and super-resolved. */
211
+ AOM_SUPERRES_RANDOM,
212
+ /**< Super-resolution scale for each frame is determined based on the q index
213
+ of that frame. */
214
+ AOM_SUPERRES_QTHRESH,
215
+ /**< Full-resolution or super-resolution and the scale (in case of
216
+ super-resolution) are automatically selected for each frame. */
217
+ AOM_SUPERRES_AUTO,
218
+ } aom_superres_mode;
219
+
220
+ /*!\brief Encoder Config Options
221
+ *
222
+ * This type allows to enumerate and control flags defined for encoder control
223
+ * via config file at runtime.
224
+ */
225
+ typedef struct cfg_options {
226
+ /*!\brief Indicate init by cfg file
227
+ * 0 or 1
228
+ */
229
+ unsigned int init_by_cfg_file;
230
+ /*!\brief Superblock size
231
+ * 0, 64 or 128
232
+ */
233
+ unsigned int super_block_size;
234
+ /*!\brief max partition size
235
+ * 8, 16, 32, 64, 128
236
+ */
237
+ unsigned int max_partition_size;
238
+ /*!\brief min partition size
239
+ * 8, 16, 32, 64, 128
240
+ */
241
+ unsigned int min_partition_size;
242
+ /*!\brief disable AB Shape partition type
243
+ *
244
+ */
245
+ unsigned int disable_ab_partition_type;
246
+ /*!\brief disable rectangular partition type
247
+ *
248
+ */
249
+ unsigned int disable_rect_partition_type;
250
+ /*!\brief disable 1:4/4:1 partition type
251
+ *
252
+ */
253
+ unsigned int disable_1to4_partition_type;
254
+ /*!\brief disable flip and identity transform type
255
+ *
256
+ */
257
+ unsigned int disable_flip_idtx;
258
+ /*!\brief disable CDEF filter
259
+ *
260
+ */
261
+ unsigned int disable_cdef;
262
+ /*!\brief disable Loop Restoration Filter
263
+ *
264
+ */
265
+ unsigned int disable_lr;
266
+ /*!\brief disable OBMC
267
+ *
268
+ */
269
+ unsigned int disable_obmc;
270
+ /*!\brief disable Warped Motion
271
+ *
272
+ */
273
+ unsigned int disable_warp_motion;
274
+ /*!\brief disable global motion
275
+ *
276
+ */
277
+ unsigned int disable_global_motion;
278
+ /*!\brief disable dist weighted compound
279
+ *
280
+ */
281
+ unsigned int disable_dist_wtd_comp;
282
+ /*!\brief disable diff weighted compound
283
+ *
284
+ */
285
+ unsigned int disable_diff_wtd_comp;
286
+ /*!\brief disable inter/intra compound
287
+ *
288
+ */
289
+ unsigned int disable_inter_intra_comp;
290
+ /*!\brief disable masked compound
291
+ *
292
+ */
293
+ unsigned int disable_masked_comp;
294
+ /*!\brief disable one sided compound
295
+ *
296
+ */
297
+ unsigned int disable_one_sided_comp;
298
+ /*!\brief disable Palette
299
+ *
300
+ */
301
+ unsigned int disable_palette;
302
+ /*!\brief disable Intra Block Copy
303
+ *
304
+ */
305
+ unsigned int disable_intrabc;
306
+ /*!\brief disable chroma from luma
307
+ *
308
+ */
309
+ unsigned int disable_cfl;
310
+ /*!\brief disable intra smooth mode
311
+ *
312
+ */
313
+ unsigned int disable_smooth_intra;
314
+ /*!\brief disable filter intra
315
+ *
316
+ */
317
+ unsigned int disable_filter_intra;
318
+ /*!\brief disable dual filter
319
+ *
320
+ */
321
+ unsigned int disable_dual_filter;
322
+ /*!\brief disable intra angle delta
323
+ *
324
+ */
325
+ unsigned int disable_intra_angle_delta;
326
+ /*!\brief disable intra edge filter
327
+ *
328
+ */
329
+ unsigned int disable_intra_edge_filter;
330
+ /*!\brief disable 64x64 transform
331
+ *
332
+ */
333
+ unsigned int disable_tx_64x64;
334
+ /*!\brief disable smooth inter/intra
335
+ *
336
+ */
337
+ unsigned int disable_smooth_inter_intra;
338
+ /*!\brief disable inter/inter wedge comp
339
+ *
340
+ */
341
+ unsigned int disable_inter_inter_wedge;
342
+ /*!\brief disable inter/intra wedge comp
343
+ *
344
+ */
345
+ unsigned int disable_inter_intra_wedge;
346
+ /*!\brief disable paeth intra
347
+ *
348
+ */
349
+ unsigned int disable_paeth_intra;
350
+ /*!\brief disable trellis quantization
351
+ *
352
+ */
353
+ unsigned int disable_trellis_quant;
354
+ /*!\brief disable ref frame MV
355
+ *
356
+ */
357
+ unsigned int disable_ref_frame_mv;
358
+ /*!\brief use reduced reference frame set
359
+ *
360
+ */
361
+ unsigned int reduced_reference_set;
362
+ /*!\brief use reduced transform type set
363
+ *
364
+ */
365
+ unsigned int reduced_tx_type_set;
366
+ } cfg_options_t;
367
+
368
+ /*!\brief Encoded Frame Flags
369
+ *
370
+ * This type indicates a bitfield to be passed to aom_codec_encode(), defining
371
+ * per-frame boolean values. By convention, bits common to all codecs will be
372
+ * named AOM_EFLAG_*, and bits specific to an algorithm will be named
373
+ * /algo/_eflag_*. The lower order 16 bits are reserved for common use.
374
+ */
375
+ typedef long aom_enc_frame_flags_t;
376
+ /*!\brief Force this frame to be a keyframe */
377
+ #define AOM_EFLAG_FORCE_KF (1 << 0)
378
+
379
+ /*!\brief Encoder configuration structure
380
+ *
381
+ * This structure contains the encoder settings that have common representations
382
+ * across all codecs. This doesn't imply that all codecs support all features,
383
+ * however.
384
+ */
385
+ typedef struct aom_codec_enc_cfg {
386
+ /*
387
+ * generic settings (g)
388
+ */
389
+
390
+ /*!\brief Algorithm specific "usage" value
391
+ *
392
+ * Algorithms may define multiple values for usage, which may convey the
393
+ * intent of how the application intends to use the stream. If this value
394
+ * is non-zero, consult the documentation for the codec to determine its
395
+ * meaning.
396
+ */
397
+ unsigned int g_usage;
398
+
399
+ /*!\brief Maximum number of threads to use
400
+ *
401
+ * For multi-threaded implementations, use no more than this number of
402
+ * threads. The codec may use fewer threads than allowed. The value
403
+ * 0 is equivalent to the value 1.
404
+ */
405
+ unsigned int g_threads;
406
+
407
+ /*!\brief Bitstream profile to use
408
+ *
409
+ * Some codecs support a notion of multiple bitstream profiles. Typically
410
+ * this maps to a set of features that are turned on or off. Often the
411
+ * profile to use is determined by the features of the intended decoder.
412
+ * Consult the documentation for the codec to determine the valid values
413
+ * for this parameter, or set to zero for a sane default.
414
+ */
415
+ unsigned int g_profile; /**< profile of bitstream to use */
416
+
417
+ /*!\brief Width of the frame
418
+ *
419
+ * This value identifies the presentation resolution of the frame,
420
+ * in pixels. Note that the frames passed as input to the encoder must
421
+ * have this resolution. Frames will be presented by the decoder in this
422
+ * resolution, independent of any spatial resampling the encoder may do.
423
+ */
424
+ unsigned int g_w;
425
+
426
+ /*!\brief Height of the frame
427
+ *
428
+ * This value identifies the presentation resolution of the frame,
429
+ * in pixels. Note that the frames passed as input to the encoder must
430
+ * have this resolution. Frames will be presented by the decoder in this
431
+ * resolution, independent of any spatial resampling the encoder may do.
432
+ */
433
+ unsigned int g_h;
434
+
435
+ /*!\brief Max number of frames to encode
436
+ *
437
+ * If force video mode is off (the default) and g_limit is 1, the encoder
438
+ * will encode a still picture (still_picture is set to 1 in the sequence
439
+ * header OBU). If in addition full_still_picture_hdr is 0 (the default),
440
+ * the encoder will use a reduced header (reduced_still_picture_header is
441
+ * set to 1 in the sequence header OBU) for the still picture.
442
+ */
443
+ unsigned int g_limit;
444
+
445
+ /*!\brief Forced maximum width of the frame
446
+ *
447
+ * If this value is non-zero then it is used to force the maximum frame
448
+ * width written in write_sequence_header().
449
+ */
450
+ unsigned int g_forced_max_frame_width;
451
+
452
+ /*!\brief Forced maximum height of the frame
453
+ *
454
+ * If this value is non-zero then it is used to force the maximum frame
455
+ * height written in write_sequence_header().
456
+ */
457
+ unsigned int g_forced_max_frame_height;
458
+
459
+ /*!\brief Bit-depth of the codec
460
+ *
461
+ * This value identifies the bit_depth of the codec,
462
+ * Only certain bit-depths are supported as identified in the
463
+ * aom_bit_depth_t enum.
464
+ */
465
+ aom_bit_depth_t g_bit_depth;
466
+
467
+ /*!\brief Bit-depth of the input frames
468
+ *
469
+ * This value identifies the bit_depth of the input frames in bits.
470
+ * Note that the frames passed as input to the encoder must have
471
+ * this bit-depth.
472
+ */
473
+ unsigned int g_input_bit_depth;
474
+
475
+ /*!\brief Stream timebase units
476
+ *
477
+ * Indicates the smallest interval of time, in seconds, used by the stream.
478
+ * For fixed frame rate material, or variable frame rate material where
479
+ * frames are timed at a multiple of a given clock (ex: video capture),
480
+ * the \ref RECOMMENDED method is to set the timebase to the reciprocal
481
+ * of the frame rate (ex: 1001/30000 for 29.970 Hz NTSC). This allows the
482
+ * pts to correspond to the frame number, which can be handy. For
483
+ * re-encoding video from containers with absolute time timestamps, the
484
+ * \ref RECOMMENDED method is to set the timebase to that of the parent
485
+ * container or multimedia framework (ex: 1/1000 for ms, as in FLV).
486
+ */
487
+ struct aom_rational g_timebase;
488
+
489
+ /*!\brief Enable error resilient modes.
490
+ *
491
+ * The error resilient bitfield indicates to the encoder which features
492
+ * it should enable to take measures for streaming over lossy or noisy
493
+ * links.
494
+ */
495
+ aom_codec_er_flags_t g_error_resilient;
496
+
497
+ /*!\brief Multi-pass Encoding Mode
498
+ *
499
+ * This value should be set to the current phase for multi-pass encoding.
500
+ * For single pass, set to #AOM_RC_ONE_PASS.
501
+ */
502
+ enum aom_enc_pass g_pass;
503
+
504
+ /*!\brief Allow lagged encoding
505
+ *
506
+ * If set, this value allows the encoder to consume a number of input
507
+ * frames before producing output frames. This allows the encoder to
508
+ * base decisions for the current frame on future frames. This does
509
+ * increase the latency of the encoding pipeline, so it is not appropriate
510
+ * in all situations (ex: realtime encoding).
511
+ *
512
+ * Note that this is a maximum value -- the encoder may produce frames
513
+ * sooner than the given limit. Set this value to 0 to disable this
514
+ * feature.
515
+ */
516
+ unsigned int g_lag_in_frames;
517
+
518
+ /*
519
+ * rate control settings (rc)
520
+ */
521
+
522
+ /*!\brief Temporal resampling configuration, if supported by the codec.
523
+ *
524
+ * Temporal resampling allows the codec to "drop" frames as a strategy to
525
+ * meet its target data rate. This can cause temporal discontinuities in
526
+ * the encoded video, which may appear as stuttering during playback. This
527
+ * trade-off is often acceptable, but for many applications is not. It can
528
+ * be disabled in these cases.
529
+ *
530
+ * Note that not all codecs support this feature. All aom AVx codecs do.
531
+ * For other codecs, consult the documentation for that algorithm.
532
+ *
533
+ * This threshold is described as a percentage of the target data buffer.
534
+ * When the data buffer falls below this percentage of fullness, a
535
+ * dropped frame is indicated. Set the threshold to zero (0) to disable
536
+ * this feature.
537
+ */
538
+ unsigned int rc_dropframe_thresh;
539
+
540
+ /*!\brief Mode for spatial resampling, if supported by the codec.
541
+ *
542
+ * Spatial resampling allows the codec to compress a lower resolution
543
+ * version of the frame, which is then upscaled by the decoder to the
544
+ * correct presentation resolution. This increases visual quality at
545
+ * low data rates, at the expense of CPU time on the encoder/decoder.
546
+ */
547
+ unsigned int rc_resize_mode;
548
+
549
+ /*!\brief Frame resize denominator.
550
+ *
551
+ * The denominator for resize to use, assuming 8 as the numerator.
552
+ *
553
+ * Valid denominators are 8 - 16 for now.
554
+ */
555
+ unsigned int rc_resize_denominator;
556
+
557
+ /*!\brief Keyframe resize denominator.
558
+ *
559
+ * The denominator for resize to use, assuming 8 as the numerator.
560
+ *
561
+ * Valid denominators are 8 - 16 for now.
562
+ */
563
+ unsigned int rc_resize_kf_denominator;
564
+
565
+ /*!\brief Frame super-resolution scaling mode.
566
+ *
567
+ * Similar to spatial resampling, frame super-resolution integrates
568
+ * upscaling after the encode/decode process. Taking control of upscaling and
569
+ * using restoration filters should allow it to outperform normal resizing.
570
+ */
571
+ aom_superres_mode rc_superres_mode;
572
+
573
+ /*!\brief Frame super-resolution denominator.
574
+ *
575
+ * The denominator for superres to use. If fixed it will only change if the
576
+ * cumulative scale change over resizing and superres is greater than 1/2;
577
+ * this forces superres to reduce scaling.
578
+ *
579
+ * Valid denominators are 8 to 16.
580
+ *
581
+ * Used only by AOM_SUPERRES_FIXED.
582
+ */
583
+ unsigned int rc_superres_denominator;
584
+
585
+ /*!\brief Keyframe super-resolution denominator.
586
+ *
587
+ * The denominator for superres to use. If fixed it will only change if the
588
+ * cumulative scale change over resizing and superres is greater than 1/2;
589
+ * this forces superres to reduce scaling.
590
+ *
591
+ * Valid denominators are 8 - 16 for now.
592
+ */
593
+ unsigned int rc_superres_kf_denominator;
594
+
595
+ /*!\brief Frame super-resolution q threshold.
596
+ *
597
+ * The q level threshold after which superres is used.
598
+ * Valid values are 1 to 63.
599
+ *
600
+ * Used only by AOM_SUPERRES_QTHRESH
601
+ */
602
+ unsigned int rc_superres_qthresh;
603
+
604
+ /*!\brief Keyframe super-resolution q threshold.
605
+ *
606
+ * The q level threshold after which superres is used for key frames.
607
+ * Valid values are 1 to 63.
608
+ *
609
+ * Used only by AOM_SUPERRES_QTHRESH
610
+ */
611
+ unsigned int rc_superres_kf_qthresh;
612
+
613
+ /*!\brief Rate control algorithm to use.
614
+ *
615
+ * Indicates whether the end usage of this stream is to be streamed over
616
+ * a bandwidth constrained link, indicating that Constant Bit Rate (CBR)
617
+ * mode should be used, or whether it will be played back on a high
618
+ * bandwidth link, as from a local disk, where higher variations in
619
+ * bitrate are acceptable.
620
+ */
621
+ enum aom_rc_mode rc_end_usage;
622
+
623
+ /*!\brief Two-pass stats buffer.
624
+ *
625
+ * A buffer containing all of the stats packets produced in the first
626
+ * pass, concatenated.
627
+ */
628
+ aom_fixed_buf_t rc_twopass_stats_in;
629
+
630
+ /*!\brief first pass mb stats buffer.
631
+ *
632
+ * A buffer containing all of the first pass mb stats packets produced
633
+ * in the first pass, concatenated.
634
+ */
635
+ aom_fixed_buf_t rc_firstpass_mb_stats_in;
636
+
637
+ /*!\brief Target data rate
638
+ *
639
+ * Target bitrate to use for this stream, in kilobits per second.
640
+ */
641
+ unsigned int rc_target_bitrate;
642
+
643
+ /*
644
+ * quantizer settings
645
+ */
646
+
647
+ /*!\brief Minimum (Best Quality) Quantizer
648
+ *
649
+ * The quantizer is the most direct control over the quality of the
650
+ * encoded image. The range of valid values for the quantizer is codec
651
+ * specific. Consult the documentation for the codec to determine the
652
+ * values to use. To determine the range programmatically, call
653
+ * aom_codec_enc_config_default() with a usage value of 0.
654
+ */
655
+ unsigned int rc_min_quantizer;
656
+
657
+ /*!\brief Maximum (Worst Quality) Quantizer
658
+ *
659
+ * The quantizer is the most direct control over the quality of the
660
+ * encoded image. The range of valid values for the quantizer is codec
661
+ * specific. Consult the documentation for the codec to determine the
662
+ * values to use. To determine the range programmatically, call
663
+ * aom_codec_enc_config_default() with a usage value of 0.
664
+ */
665
+ unsigned int rc_max_quantizer;
666
+
667
+ /*
668
+ * bitrate tolerance
669
+ */
670
+
671
+ /*!\brief Rate control adaptation undershoot control
672
+ *
673
+ * This value, controls the tolerance of the VBR algorithm to undershoot
674
+ * and is used as a trigger threshold for more aggressive adaptation of Q.
675
+ *
676
+ * Valid values in the range 0-100.
677
+ */
678
+ unsigned int rc_undershoot_pct;
679
+
680
+ /*!\brief Rate control adaptation overshoot control
681
+ *
682
+ * This value, controls the tolerance of the VBR algorithm to overshoot
683
+ * and is used as a trigger threshold for more aggressive adaptation of Q.
684
+ *
685
+ * Valid values in the range 0-100.
686
+ */
687
+ unsigned int rc_overshoot_pct;
688
+
689
+ /*
690
+ * decoder buffer model parameters
691
+ */
692
+
693
+ /*!\brief Decoder Buffer Size
694
+ *
695
+ * This value indicates the amount of data that may be buffered by the
696
+ * decoding application. Note that this value is expressed in units of
697
+ * time (milliseconds). For example, a value of 5000 indicates that the
698
+ * client will buffer (at least) 5000ms worth of encoded data. Use the
699
+ * target bitrate (#rc_target_bitrate) to convert to bits/bytes, if
700
+ * necessary.
701
+ */
702
+ unsigned int rc_buf_sz;
703
+
704
+ /*!\brief Decoder Buffer Initial Size
705
+ *
706
+ * This value indicates the amount of data that will be buffered by the
707
+ * decoding application prior to beginning playback. This value is
708
+ * expressed in units of time (milliseconds). Use the target bitrate
709
+ * (#rc_target_bitrate) to convert to bits/bytes, if necessary.
710
+ */
711
+ unsigned int rc_buf_initial_sz;
712
+
713
+ /*!\brief Decoder Buffer Optimal Size
714
+ *
715
+ * This value indicates the amount of data that the encoder should try
716
+ * to maintain in the decoder's buffer. This value is expressed in units
717
+ * of time (milliseconds). Use the target bitrate (#rc_target_bitrate)
718
+ * to convert to bits/bytes, if necessary.
719
+ */
720
+ unsigned int rc_buf_optimal_sz;
721
+
722
+ /*
723
+ * 2 pass rate control parameters
724
+ */
725
+
726
+ /*!\brief Two-pass mode CBR/VBR bias
727
+ *
728
+ * Bias, expressed on a scale of 0 to 100, for determining target size
729
+ * for the current frame. The value 0 indicates the optimal CBR mode
730
+ * value should be used. The value 100 indicates the optimal VBR mode
731
+ * value should be used. Values in between indicate which way the
732
+ * encoder should "lean."
733
+ */
734
+ unsigned int rc_2pass_vbr_bias_pct;
735
+
736
+ /*!\brief Two-pass mode per-GOP minimum bitrate
737
+ *
738
+ * This value, expressed as a percentage of the target bitrate, indicates
739
+ * the minimum bitrate to be used for a single GOP (aka "section")
740
+ */
741
+ unsigned int rc_2pass_vbr_minsection_pct;
742
+
743
+ /*!\brief Two-pass mode per-GOP maximum bitrate
744
+ *
745
+ * This value, expressed as a percentage of the target bitrate, indicates
746
+ * the maximum bitrate to be used for a single GOP (aka "section")
747
+ */
748
+ unsigned int rc_2pass_vbr_maxsection_pct;
749
+
750
+ /*
751
+ * keyframing settings (kf)
752
+ */
753
+
754
+ /*!\brief Option to enable forward reference key frame
755
+ *
756
+ */
757
+ int fwd_kf_enabled;
758
+
759
+ /*!\brief Keyframe placement mode
760
+ *
761
+ * This value indicates whether the encoder should place keyframes at a
762
+ * fixed interval, or determine the optimal placement automatically
763
+ * (as governed by the #kf_min_dist and #kf_max_dist parameters)
764
+ */
765
+ enum aom_kf_mode kf_mode;
766
+
767
+ /*!\brief Keyframe minimum interval
768
+ *
769
+ * This value, expressed as a number of frames, prevents the encoder from
770
+ * placing a keyframe nearer than kf_min_dist to the previous keyframe. At
771
+ * least kf_min_dist frames non-keyframes will be coded before the next
772
+ * keyframe. Set kf_min_dist equal to kf_max_dist for a fixed interval.
773
+ */
774
+ unsigned int kf_min_dist;
775
+
776
+ /*!\brief Keyframe maximum interval
777
+ *
778
+ * This value, expressed as a number of frames, forces the encoder to code
779
+ * a keyframe if one has not been coded in the last kf_max_dist frames.
780
+ * A value of 0 implies all frames will be keyframes. Set kf_min_dist
781
+ * equal to kf_max_dist for a fixed interval.
782
+ */
783
+ unsigned int kf_max_dist;
784
+
785
+ /*!\brief sframe interval
786
+ *
787
+ * This value, expressed as a number of frames, forces the encoder to code
788
+ * an S-Frame every sframe_dist frames.
789
+ */
790
+ unsigned int sframe_dist;
791
+
792
+ /*!\brief sframe insertion mode
793
+ *
794
+ * This value must be set to 1 or 2, and tells the encoder how to insert
795
+ * S-Frames. It will only have an effect if sframe_dist != 0.
796
+ *
797
+ * If altref is enabled:
798
+ * - if sframe_mode == 1, the considered frame will be made into an
799
+ * S-Frame only if it is an altref frame
800
+ * - if sframe_mode == 2, the next altref frame will be made into an
801
+ * S-Frame.
802
+ *
803
+ * Otherwise: the considered frame will be made into an S-Frame.
804
+ */
805
+ unsigned int sframe_mode;
806
+
807
+ /*!\brief Tile coding mode
808
+ *
809
+ * This value indicates the tile coding mode.
810
+ * A value of 0 implies a normal non-large-scale tile coding. A value of 1
811
+ * implies a large-scale tile coding.
812
+ */
813
+ unsigned int large_scale_tile;
814
+
815
+ /*!\brief Monochrome mode
816
+ *
817
+ * If this is nonzero, the encoder will generate a monochrome stream
818
+ * with no chroma planes.
819
+ */
820
+ unsigned int monochrome;
821
+
822
+ /*!\brief full_still_picture_hdr
823
+ *
824
+ * If this is nonzero, the encoder will generate a full header
825
+ * (reduced_still_picture_header is set to 0 in the sequence header OBU) even
826
+ * for still picture encoding. If this is zero (the default), a reduced
827
+ * header (reduced_still_picture_header is set to 1 in the sequence header
828
+ * OBU) is used for still picture encoding. This flag has no effect when a
829
+ * regular video with more than a single frame is encoded.
830
+ */
831
+ unsigned int full_still_picture_hdr;
832
+
833
+ /*!\brief Bitstream syntax mode
834
+ *
835
+ * This value indicates the bitstream syntax mode.
836
+ * A value of 0 indicates bitstream is saved as Section 5 bitstream. A value
837
+ * of 1 indicates the bitstream is saved in Annex-B format
838
+ */
839
+ unsigned int save_as_annexb;
840
+
841
+ /*!\brief Number of explicit tile widths specified
842
+ *
843
+ * This value indicates the number of tile widths specified
844
+ * A value of 0 implies no tile widths are specified.
845
+ * Tile widths are given in the array tile_widths[]
846
+ */
847
+ int tile_width_count;
848
+
849
+ /*!\brief Number of explicit tile heights specified
850
+ *
851
+ * This value indicates the number of tile heights specified
852
+ * A value of 0 implies no tile heights are specified.
853
+ * Tile heights are given in the array tile_heights[]
854
+ */
855
+ int tile_height_count;
856
+
857
+ /*!\brief Maximum number of tile widths in tile widths array
858
+ *
859
+ * This define gives the maximum number of elements in the tile_widths array.
860
+ */
861
+ #define MAX_TILE_WIDTHS 64 // maximum tile width array length
862
+
863
+ /*!\brief Array of specified tile widths
864
+ *
865
+ * This array specifies tile widths (and may be empty)
866
+ * The number of widths specified is given by tile_width_count
867
+ */
868
+ int tile_widths[MAX_TILE_WIDTHS];
869
+
870
+ /*!\brief Maximum number of tile heights in tile heights array.
871
+ *
872
+ * This define gives the maximum number of elements in the tile_heights array.
873
+ */
874
+ #define MAX_TILE_HEIGHTS 64 // maximum tile height array length
875
+
876
+ /*!\brief Array of specified tile heights
877
+ *
878
+ * This array specifies tile heights (and may be empty)
879
+ * The number of heights specified is given by tile_height_count
880
+ */
881
+ int tile_heights[MAX_TILE_HEIGHTS];
882
+
883
+ /*!\brief Whether encoder should use fixed QP offsets.
884
+ *
885
+ * If a value of 1 is provided, encoder will use fixed QP offsets for frames
886
+ * at different levels of the pyramid.
887
+ * If a value of 0 is provided, encoder will NOT use fixed QP offsets.
888
+ * Note: This option is only relevant for --end-usage=q.
889
+ */
890
+ unsigned int use_fixed_qp_offsets;
891
+
892
+ /*!\brief Deprecated and ignored. DO NOT USE.
893
+ *
894
+ * TODO(aomedia:3269): Remove fixed_qp_offsets in libaom v4.0.0.
895
+ */
896
+ int fixed_qp_offsets[5];
897
+
898
+ /*!\brief Options defined per config file
899
+ *
900
+ */
901
+ cfg_options_t encoder_cfg;
902
+ } aom_codec_enc_cfg_t; /**< alias for struct aom_codec_enc_cfg */
903
+
904
+ /*!\brief Initialize an encoder instance
905
+ *
906
+ * Initializes a encoder context using the given interface. Applications
907
+ * should call the aom_codec_enc_init convenience macro instead of this
908
+ * function directly, to ensure that the ABI version number parameter
909
+ * is properly initialized.
910
+ *
911
+ * If the library was configured with -DCONFIG_MULTITHREAD=0, this call
912
+ * is not thread safe and should be guarded with a lock if being used
913
+ * in a multithreaded context.
914
+ *
915
+ * \param[in] ctx Pointer to this instance's context.
916
+ * \param[in] iface Pointer to the algorithm interface to use.
917
+ * \param[in] cfg Configuration to use, if known.
918
+ * \param[in] flags Bitfield of AOM_CODEC_USE_* flags
919
+ * \param[in] ver ABI version number. Must be set to
920
+ * AOM_ENCODER_ABI_VERSION
921
+ * \retval #AOM_CODEC_OK
922
+ * The decoder algorithm initialized.
923
+ * \retval #AOM_CODEC_MEM_ERROR
924
+ * Memory allocation failed.
925
+ */
926
+ aom_codec_err_t aom_codec_enc_init_ver(aom_codec_ctx_t *ctx,
927
+ aom_codec_iface_t *iface,
928
+ const aom_codec_enc_cfg_t *cfg,
929
+ aom_codec_flags_t flags, int ver);
930
+
931
+ /*!\brief Convenience macro for aom_codec_enc_init_ver()
932
+ *
933
+ * Ensures the ABI version parameter is properly set.
934
+ */
935
+ #define aom_codec_enc_init(ctx, iface, cfg, flags) \
936
+ aom_codec_enc_init_ver(ctx, iface, cfg, flags, AOM_ENCODER_ABI_VERSION)
937
+
938
+ /*!\brief Get the default configuration for a usage.
939
+ *
940
+ * Initializes an encoder configuration structure with default values. Supports
941
+ * the notion of "usages" so that an algorithm may offer different default
942
+ * settings depending on the user's intended goal. This function \ref SHOULD
943
+ * be called by all applications to initialize the configuration structure
944
+ * before specializing the configuration with application specific values.
945
+ *
946
+ * \param[in] iface Pointer to the algorithm interface to use.
947
+ * \param[out] cfg Configuration buffer to populate.
948
+ * \param[in] usage Algorithm specific usage value. For AV1, must be
949
+ * set to AOM_USAGE_GOOD_QUALITY (0),
950
+ * AOM_USAGE_REALTIME (1), or AOM_USAGE_ALL_INTRA (2).
951
+ *
952
+ * \retval #AOM_CODEC_OK
953
+ * The configuration was populated.
954
+ * \retval #AOM_CODEC_INCAPABLE
955
+ * Interface is not an encoder interface.
956
+ * \retval #AOM_CODEC_INVALID_PARAM
957
+ * A parameter was NULL, or the usage value was not recognized.
958
+ */
959
+ aom_codec_err_t aom_codec_enc_config_default(aom_codec_iface_t *iface,
960
+ aom_codec_enc_cfg_t *cfg,
961
+ unsigned int usage);
962
+
963
+ /*!\brief Set or change configuration
964
+ *
965
+ * Reconfigures an encoder instance according to the given configuration.
966
+ *
967
+ * \param[in] ctx Pointer to this instance's context
968
+ * \param[in] cfg Configuration buffer to use
969
+ *
970
+ * \retval #AOM_CODEC_OK
971
+ * The configuration was populated.
972
+ * \retval #AOM_CODEC_INCAPABLE
973
+ * Interface is not an encoder interface.
974
+ * \retval #AOM_CODEC_INVALID_PARAM
975
+ * A parameter was NULL, or the usage value was not recognized.
976
+ */
977
+ aom_codec_err_t aom_codec_enc_config_set(aom_codec_ctx_t *ctx,
978
+ const aom_codec_enc_cfg_t *cfg);
979
+
980
+ /*!\brief Get global stream headers
981
+ *
982
+ * Retrieves a stream level global header packet, if supported by the codec.
983
+ * Calls to this function should be deferred until all configuration information
984
+ * has been passed to libaom. Otherwise the global header data may be
985
+ * invalidated by additional configuration changes.
986
+ *
987
+ * The AV1 implementation of this function returns an OBU. The OBU returned is
988
+ * in Low Overhead Bitstream Format. Specifically, the obu_has_size_field bit is
989
+ * set, and the buffer contains the obu_size field for the returned OBU.
990
+ *
991
+ * \param[in] ctx Pointer to this instance's context
992
+ *
993
+ * \retval NULL
994
+ * Encoder does not support global header, or an error occurred while
995
+ * generating the global header.
996
+ *
997
+ * \retval Non-NULL
998
+ * Pointer to buffer containing global header packet. The caller owns the
999
+ * memory associated with this buffer, and must free the 'buf' member of the
1000
+ * aom_fixed_buf_t as well as the aom_fixed_buf_t pointer. Memory returned
1001
+ * must be freed via call to free().
1002
+ */
1003
+ aom_fixed_buf_t *aom_codec_get_global_headers(aom_codec_ctx_t *ctx);
1004
+
1005
+ /*!\brief usage parameter analogous to AV1 GOOD QUALITY mode. */
1006
+ #define AOM_USAGE_GOOD_QUALITY (0)
1007
+ /*!\brief usage parameter analogous to AV1 REALTIME mode. */
1008
+ #define AOM_USAGE_REALTIME (1)
1009
+ /*!\brief usage parameter analogous to AV1 all intra mode. */
1010
+ #define AOM_USAGE_ALL_INTRA (2)
1011
+
1012
+ /*!\brief Encode a frame
1013
+ *
1014
+ * Encodes a video frame at the given "presentation time." The presentation
1015
+ * time stamp (PTS) \ref MUST be strictly increasing.
1016
+ *
1017
+ * When the last frame has been passed to the encoder, this function should
1018
+ * continue to be called in a loop, with the img parameter set to NULL. This
1019
+ * will signal the end-of-stream condition to the encoder and allow it to
1020
+ * encode any held buffers. Encoding is complete when aom_codec_encode() is
1021
+ * called with img set to NULL and aom_codec_get_cx_data() returns no data.
1022
+ *
1023
+ * \param[in] ctx Pointer to this instance's context
1024
+ * \param[in] img Image data to encode, NULL to flush.
1025
+ * Encoding sample values outside the range
1026
+ * [0..(1<<img->bit_depth)-1] is undefined behavior.
1027
+ * \param[in] pts Presentation time stamp, in timebase units. If img
1028
+ * is NULL, pts is ignored.
1029
+ * \param[in] duration Duration to show frame, in timebase units. If img
1030
+ * is not NULL, duration must be nonzero. If img is
1031
+ * NULL, duration is ignored.
1032
+ * \param[in] flags Flags to use for encoding this frame.
1033
+ *
1034
+ * \retval #AOM_CODEC_OK
1035
+ * The configuration was populated.
1036
+ * \retval #AOM_CODEC_INCAPABLE
1037
+ * Interface is not an encoder interface.
1038
+ * \retval #AOM_CODEC_INVALID_PARAM
1039
+ * A parameter was NULL, the image format is unsupported, etc.
1040
+ */
1041
+ aom_codec_err_t aom_codec_encode(aom_codec_ctx_t *ctx, const aom_image_t *img,
1042
+ aom_codec_pts_t pts, unsigned long duration,
1043
+ aom_enc_frame_flags_t flags);
1044
+
1045
+ /*!\brief Set compressed data output buffer
1046
+ *
1047
+ * Sets the buffer that the codec should output the compressed data
1048
+ * into. This call effectively sets the buffer pointer returned in the
1049
+ * next AOM_CODEC_CX_FRAME_PKT packet. Subsequent packets will be
1050
+ * appended into this buffer. The buffer is preserved across frames,
1051
+ * so applications must periodically call this function after flushing
1052
+ * the accumulated compressed data to disk or to the network to reset
1053
+ * the pointer to the buffer's head.
1054
+ *
1055
+ * `pad_before` bytes will be skipped before writing the compressed
1056
+ * data, and `pad_after` bytes will be appended to the packet. The size
1057
+ * of the packet will be the sum of the size of the actual compressed
1058
+ * data, pad_before, and pad_after. The padding bytes will be preserved
1059
+ * (not overwritten).
1060
+ *
1061
+ * Note that calling this function does not guarantee that the returned
1062
+ * compressed data will be placed into the specified buffer. In the
1063
+ * event that the encoded data will not fit into the buffer provided,
1064
+ * the returned packet \ref MAY point to an internal buffer, as it would
1065
+ * if this call were never used. In this event, the output packet will
1066
+ * NOT have any padding, and the application must free space and copy it
1067
+ * to the proper place. This is of particular note in configurations
1068
+ * that may output multiple packets for a single encoded frame (e.g., lagged
1069
+ * encoding) or if the application does not reset the buffer periodically.
1070
+ *
1071
+ * Applications may restore the default behavior of the codec providing
1072
+ * the compressed data buffer by calling this function with a NULL
1073
+ * buffer.
1074
+ *
1075
+ * Applications \ref MUSTNOT call this function during iteration of
1076
+ * aom_codec_get_cx_data().
1077
+ *
1078
+ * \param[in] ctx Pointer to this instance's context
1079
+ * \param[in] buf Buffer to store compressed data into
1080
+ * \param[in] pad_before Bytes to skip before writing compressed data
1081
+ * \param[in] pad_after Bytes to skip after writing compressed data
1082
+ *
1083
+ * \retval #AOM_CODEC_OK
1084
+ * The buffer was set successfully.
1085
+ * \retval #AOM_CODEC_INVALID_PARAM
1086
+ * A parameter was NULL, the image format is unsupported, etc.
1087
+ */
1088
+ aom_codec_err_t aom_codec_set_cx_data_buf(aom_codec_ctx_t *ctx,
1089
+ const aom_fixed_buf_t *buf,
1090
+ unsigned int pad_before,
1091
+ unsigned int pad_after);
1092
+
1093
+ /*!\brief Encoded data iterator
1094
+ *
1095
+ * Iterates over a list of data packets to be passed from the encoder to the
1096
+ * application. The different kinds of packets available are enumerated in
1097
+ * #aom_codec_cx_pkt_kind.
1098
+ *
1099
+ * #AOM_CODEC_CX_FRAME_PKT packets should be passed to the application's
1100
+ * muxer. Multiple compressed frames may be in the list.
1101
+ * #AOM_CODEC_STATS_PKT packets should be appended to a global buffer.
1102
+ *
1103
+ * The application \ref MUST silently ignore any packet kinds that it does
1104
+ * not recognize or support.
1105
+ *
1106
+ * The data buffers returned from this function are only guaranteed to be
1107
+ * valid until the application makes another call to any aom_codec_* function.
1108
+ *
1109
+ * \param[in] ctx Pointer to this instance's context
1110
+ * \param[in,out] iter Iterator storage, initialized to NULL
1111
+ *
1112
+ * \return Returns a pointer to an output data packet (compressed frame data,
1113
+ * two-pass statistics, etc.) or NULL to signal end-of-list.
1114
+ *
1115
+ */
1116
+ const aom_codec_cx_pkt_t *aom_codec_get_cx_data(aom_codec_ctx_t *ctx,
1117
+ aom_codec_iter_t *iter);
1118
+
1119
+ /*!\brief Get Preview Frame
1120
+ *
1121
+ * Returns an image that can be used as a preview. Shows the image as it would
1122
+ * exist at the decompressor. The application \ref MUST NOT write into this
1123
+ * image buffer.
1124
+ *
1125
+ * \param[in] ctx Pointer to this instance's context
1126
+ *
1127
+ * \return Returns a pointer to a preview image, or NULL if no image is
1128
+ * available.
1129
+ *
1130
+ */
1131
+ const aom_image_t *aom_codec_get_preview_frame(aom_codec_ctx_t *ctx);
1132
+
1133
+ /*!@} - end defgroup encoder*/
1134
+ #ifdef __cplusplus
1135
+ }
1136
+ #endif
1137
+ #endif // AOM_AOM_AOM_ENCODER_H_