FFmpeg.avutil.g.cs 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  1. #if UNITY_EDITOR || UNITY_STANDALONE
  2. using System;
  3. using System.Runtime.InteropServices;
  4. namespace FFmpeg.AutoGen
  5. {
  6. public unsafe partial struct AVRational
  7. {
  8. public int @num;
  9. public int @den;
  10. }
  11. public unsafe partial struct av_intfloat32
  12. {
  13. public uint @i;
  14. public float @f;
  15. }
  16. public unsafe partial struct av_intfloat64
  17. {
  18. public ulong @i;
  19. public double @f;
  20. }
  21. public unsafe partial struct AVOptionRanges
  22. {
  23. }
  24. public unsafe partial struct AVClass
  25. {
  26. public sbyte* @class_name;
  27. public IntPtr @item_name;
  28. public AVOption* @option;
  29. public int @version;
  30. public int @log_level_offset_offset;
  31. public int @parent_log_context_offset;
  32. public IntPtr @child_next;
  33. public IntPtr @child_class_next;
  34. public AVClassCategory @category;
  35. public IntPtr @get_category;
  36. public IntPtr @query_ranges;
  37. }
  38. public unsafe partial struct AVOption
  39. {
  40. }
  41. public unsafe partial struct AVOptionRanges
  42. {
  43. }
  44. public unsafe partial struct AVFifoBuffer
  45. {
  46. public sbyte* @buffer;
  47. public sbyte* @rptr;
  48. public sbyte* @wptr;
  49. public sbyte* @end;
  50. public uint @rndx;
  51. public uint @wndx;
  52. }
  53. public unsafe partial struct AVAudioFifo
  54. {
  55. }
  56. public unsafe partial struct AVBPrint
  57. {
  58. }
  59. public unsafe partial struct AVOptionRanges
  60. {
  61. }
  62. public unsafe partial struct AVBuffer
  63. {
  64. }
  65. public unsafe partial struct AVBufferRef
  66. {
  67. public AVBuffer* @buffer;
  68. public sbyte* @data;
  69. public int @size;
  70. }
  71. public unsafe partial struct AVBufferPool
  72. {
  73. }
  74. public unsafe partial struct AVDictionaryEntry
  75. {
  76. public sbyte* @key;
  77. public sbyte* @value;
  78. }
  79. public unsafe partial struct AVDictionary
  80. {
  81. }
  82. public unsafe partial struct AVFrameSideData
  83. {
  84. public AVFrameSideDataType @type;
  85. public sbyte* @data;
  86. public int @size;
  87. public AVDictionary* @metadata;
  88. public AVBufferRef* @buf;
  89. }
  90. public unsafe partial struct AVFrame
  91. {
  92. public sbyte* @data0; public sbyte* @data1; public sbyte* @data2; public sbyte* @data3; public sbyte* @data4; public sbyte* @data5; public sbyte* @data6; public sbyte* @data7;
  93. public fixed int @linesize[8];
  94. public sbyte** @extended_data;
  95. public int @width;
  96. public int @height;
  97. public int @nb_samples;
  98. public int @format;
  99. public int @key_frame;
  100. public AVPictureType @pict_type;
  101. public AVRational @sample_aspect_ratio;
  102. public long @pts;
  103. public long @pkt_pts;
  104. public long @pkt_dts;
  105. public int @coded_picture_number;
  106. public int @display_picture_number;
  107. public int @quality;
  108. public void* @opaque;
  109. public fixed ulong @error[8];
  110. public int @repeat_pict;
  111. public int @interlaced_frame;
  112. public int @top_field_first;
  113. public int @palette_has_changed;
  114. public long @reordered_opaque;
  115. public int @sample_rate;
  116. public ulong @channel_layout;
  117. public AVBufferRef* @buf0; public AVBufferRef* @buf1; public AVBufferRef* @buf2; public AVBufferRef* @buf3; public AVBufferRef* @buf4; public AVBufferRef* @buf5; public AVBufferRef* @buf6; public AVBufferRef* @buf7;
  118. public AVBufferRef** @extended_buf;
  119. public int @nb_extended_buf;
  120. public AVFrameSideData** @side_data;
  121. public int @nb_side_data;
  122. public int @flags;
  123. public AVColorRange @color_range;
  124. public AVColorPrimaries @color_primaries;
  125. public AVColorTransferCharacteristic @color_trc;
  126. public AVColorSpace @colorspace;
  127. public AVChromaLocation @chroma_location;
  128. public long @best_effort_timestamp;
  129. public long @pkt_pos;
  130. public long @pkt_duration;
  131. public AVDictionary* @metadata;
  132. public int @decode_error_flags;
  133. public int @channels;
  134. public int @pkt_size;
  135. public sbyte* @qscale_table;
  136. public int @qstride;
  137. public int @qscale_type;
  138. public AVBufferRef* @qp_table_buf;
  139. }
  140. public unsafe partial struct AVOptionRanges
  141. {
  142. }
  143. public unsafe partial struct AVDictionary
  144. {
  145. }
  146. public unsafe partial struct AVOption
  147. {
  148. public sbyte* @name;
  149. public sbyte* @help;
  150. public int @offset;
  151. public AVOptionType @type;
  152. public default_val @default_val;
  153. public double @min;
  154. public double @max;
  155. public int @flags;
  156. public sbyte* @unit;
  157. }
  158. public unsafe partial struct default_val
  159. {
  160. public long @i64;
  161. public double @dbl;
  162. public sbyte* @str;
  163. public AVRational @q;
  164. }
  165. public unsafe partial struct AVOptionRange
  166. {
  167. public sbyte* @str;
  168. public double @value_min;
  169. public double @value_max;
  170. public double @component_min;
  171. public double @component_max;
  172. public int @is_range;
  173. }
  174. public unsafe partial struct AVOptionRanges
  175. {
  176. public AVOptionRange** @range;
  177. public int @nb_ranges;
  178. public int @nb_components;
  179. }
  180. public unsafe partial struct AVComponentDescriptor
  181. {
  182. public int @plane;
  183. public int @step;
  184. public int @offset;
  185. public int @shift;
  186. public int @depth;
  187. public int @step_minus1;
  188. public int @depth_minus1;
  189. public int @offset_plus1;
  190. }
  191. public unsafe partial struct AVPixFmtDescriptor
  192. {
  193. public sbyte* @name;
  194. public sbyte @nb_components;
  195. public sbyte @log2_chroma_w;
  196. public sbyte @log2_chroma_h;
  197. public ulong @flags;
  198. public AVComponentDescriptor @comp0; public AVComponentDescriptor @comp1; public AVComponentDescriptor @comp2; public AVComponentDescriptor @comp3;
  199. public sbyte* @alias;
  200. }
  201. public enum AVMediaType : int
  202. {
  203. @AVMEDIA_TYPE_UNKNOWN = -1,
  204. @AVMEDIA_TYPE_VIDEO = 0,
  205. @AVMEDIA_TYPE_AUDIO = 1,
  206. @AVMEDIA_TYPE_DATA = 2,
  207. @AVMEDIA_TYPE_SUBTITLE = 3,
  208. @AVMEDIA_TYPE_ATTACHMENT = 4,
  209. @AVMEDIA_TYPE_NB = 5,
  210. }
  211. public enum AVPictureType : int
  212. {
  213. @AV_PICTURE_TYPE_NONE = 0,
  214. @AV_PICTURE_TYPE_I = 1,
  215. @AV_PICTURE_TYPE_P = 2,
  216. @AV_PICTURE_TYPE_B = 3,
  217. @AV_PICTURE_TYPE_S = 4,
  218. @AV_PICTURE_TYPE_SI = 5,
  219. @AV_PICTURE_TYPE_SP = 6,
  220. @AV_PICTURE_TYPE_BI = 7,
  221. }
  222. public enum AVRounding : int
  223. {
  224. @AV_ROUND_ZERO = 0,
  225. @AV_ROUND_INF = 1,
  226. @AV_ROUND_DOWN = 2,
  227. @AV_ROUND_UP = 3,
  228. @AV_ROUND_NEAR_INF = 5,
  229. @AV_ROUND_PASS_MINMAX = 8192,
  230. }
  231. public enum AVClassCategory : int
  232. {
  233. @AV_CLASS_CATEGORY_NA = 0,
  234. @AV_CLASS_CATEGORY_INPUT = 1,
  235. @AV_CLASS_CATEGORY_OUTPUT = 2,
  236. @AV_CLASS_CATEGORY_MUXER = 3,
  237. @AV_CLASS_CATEGORY_DEMUXER = 4,
  238. @AV_CLASS_CATEGORY_ENCODER = 5,
  239. @AV_CLASS_CATEGORY_DECODER = 6,
  240. @AV_CLASS_CATEGORY_FILTER = 7,
  241. @AV_CLASS_CATEGORY_BITSTREAM_FILTER = 8,
  242. @AV_CLASS_CATEGORY_SWSCALER = 9,
  243. @AV_CLASS_CATEGORY_SWRESAMPLER = 10,
  244. @AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT = 40,
  245. @AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT = 41,
  246. @AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT = 42,
  247. @AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT = 43,
  248. @AV_CLASS_CATEGORY_DEVICE_OUTPUT = 44,
  249. @AV_CLASS_CATEGORY_DEVICE_INPUT = 45,
  250. @AV_CLASS_CATEGORY_NB = 46,
  251. }
  252. public enum AVPixelFormat : int
  253. {
  254. @AV_PIX_FMT_NONE = -1,
  255. @AV_PIX_FMT_YUV420P = 0,
  256. @AV_PIX_FMT_YUYV422 = 1,
  257. @AV_PIX_FMT_RGB24 = 2,
  258. @AV_PIX_FMT_BGR24 = 3,
  259. @AV_PIX_FMT_YUV422P = 4,
  260. @AV_PIX_FMT_YUV444P = 5,
  261. @AV_PIX_FMT_YUV410P = 6,
  262. @AV_PIX_FMT_YUV411P = 7,
  263. @AV_PIX_FMT_GRAY8 = 8,
  264. @AV_PIX_FMT_MONOWHITE = 9,
  265. @AV_PIX_FMT_MONOBLACK = 10,
  266. @AV_PIX_FMT_PAL8 = 11,
  267. @AV_PIX_FMT_YUVJ420P = 12,
  268. @AV_PIX_FMT_YUVJ422P = 13,
  269. @AV_PIX_FMT_YUVJ444P = 14,
  270. @AV_PIX_FMT_XVMC_MPEG2_MC = 15,
  271. @AV_PIX_FMT_XVMC_MPEG2_IDCT = 16,
  272. @AV_PIX_FMT_UYVY422 = 17,
  273. @AV_PIX_FMT_UYYVYY411 = 18,
  274. @AV_PIX_FMT_BGR8 = 19,
  275. @AV_PIX_FMT_BGR4 = 20,
  276. @AV_PIX_FMT_BGR4_BYTE = 21,
  277. @AV_PIX_FMT_RGB8 = 22,
  278. @AV_PIX_FMT_RGB4 = 23,
  279. @AV_PIX_FMT_RGB4_BYTE = 24,
  280. @AV_PIX_FMT_NV12 = 25,
  281. @AV_PIX_FMT_NV21 = 26,
  282. @AV_PIX_FMT_ARGB = 27,
  283. @AV_PIX_FMT_RGBA = 28,
  284. @AV_PIX_FMT_ABGR = 29,
  285. @AV_PIX_FMT_BGRA = 30,
  286. @AV_PIX_FMT_GRAY16BE = 31,
  287. @AV_PIX_FMT_GRAY16LE = 32,
  288. @AV_PIX_FMT_YUV440P = 33,
  289. @AV_PIX_FMT_YUVJ440P = 34,
  290. @AV_PIX_FMT_YUVA420P = 35,
  291. @AV_PIX_FMT_VDPAU_H264 = 36,
  292. @AV_PIX_FMT_VDPAU_MPEG1 = 37,
  293. @AV_PIX_FMT_VDPAU_MPEG2 = 38,
  294. @AV_PIX_FMT_VDPAU_WMV3 = 39,
  295. @AV_PIX_FMT_VDPAU_VC1 = 40,
  296. @AV_PIX_FMT_RGB48BE = 41,
  297. @AV_PIX_FMT_RGB48LE = 42,
  298. @AV_PIX_FMT_RGB565BE = 43,
  299. @AV_PIX_FMT_RGB565LE = 44,
  300. @AV_PIX_FMT_RGB555BE = 45,
  301. @AV_PIX_FMT_RGB555LE = 46,
  302. @AV_PIX_FMT_BGR565BE = 47,
  303. @AV_PIX_FMT_BGR565LE = 48,
  304. @AV_PIX_FMT_BGR555BE = 49,
  305. @AV_PIX_FMT_BGR555LE = 50,
  306. @AV_PIX_FMT_VAAPI_MOCO = 51,
  307. @AV_PIX_FMT_VAAPI_IDCT = 52,
  308. @AV_PIX_FMT_VAAPI_VLD = 53,
  309. @AV_PIX_FMT_VAAPI = 53,
  310. @AV_PIX_FMT_YUV420P16LE = 54,
  311. @AV_PIX_FMT_YUV420P16BE = 55,
  312. @AV_PIX_FMT_YUV422P16LE = 56,
  313. @AV_PIX_FMT_YUV422P16BE = 57,
  314. @AV_PIX_FMT_YUV444P16LE = 58,
  315. @AV_PIX_FMT_YUV444P16BE = 59,
  316. @AV_PIX_FMT_VDPAU_MPEG4 = 60,
  317. @AV_PIX_FMT_DXVA2_VLD = 61,
  318. @AV_PIX_FMT_RGB444LE = 62,
  319. @AV_PIX_FMT_RGB444BE = 63,
  320. @AV_PIX_FMT_BGR444LE = 64,
  321. @AV_PIX_FMT_BGR444BE = 65,
  322. @AV_PIX_FMT_YA8 = 66,
  323. @AV_PIX_FMT_Y400A = 66,
  324. @AV_PIX_FMT_GRAY8A = 66,
  325. @AV_PIX_FMT_BGR48BE = 67,
  326. @AV_PIX_FMT_BGR48LE = 68,
  327. @AV_PIX_FMT_YUV420P9BE = 69,
  328. @AV_PIX_FMT_YUV420P9LE = 70,
  329. @AV_PIX_FMT_YUV420P10BE = 71,
  330. @AV_PIX_FMT_YUV420P10LE = 72,
  331. @AV_PIX_FMT_YUV422P10BE = 73,
  332. @AV_PIX_FMT_YUV422P10LE = 74,
  333. @AV_PIX_FMT_YUV444P9BE = 75,
  334. @AV_PIX_FMT_YUV444P9LE = 76,
  335. @AV_PIX_FMT_YUV444P10BE = 77,
  336. @AV_PIX_FMT_YUV444P10LE = 78,
  337. @AV_PIX_FMT_YUV422P9BE = 79,
  338. @AV_PIX_FMT_YUV422P9LE = 80,
  339. @AV_PIX_FMT_VDA_VLD = 81,
  340. @AV_PIX_FMT_GBRP = 82,
  341. @AV_PIX_FMT_GBRP9BE = 83,
  342. @AV_PIX_FMT_GBRP9LE = 84,
  343. @AV_PIX_FMT_GBRP10BE = 85,
  344. @AV_PIX_FMT_GBRP10LE = 86,
  345. @AV_PIX_FMT_GBRP16BE = 87,
  346. @AV_PIX_FMT_GBRP16LE = 88,
  347. @AV_PIX_FMT_YUVA422P = 89,
  348. @AV_PIX_FMT_YUVA444P = 90,
  349. @AV_PIX_FMT_YUVA420P9BE = 91,
  350. @AV_PIX_FMT_YUVA420P9LE = 92,
  351. @AV_PIX_FMT_YUVA422P9BE = 93,
  352. @AV_PIX_FMT_YUVA422P9LE = 94,
  353. @AV_PIX_FMT_YUVA444P9BE = 95,
  354. @AV_PIX_FMT_YUVA444P9LE = 96,
  355. @AV_PIX_FMT_YUVA420P10BE = 97,
  356. @AV_PIX_FMT_YUVA420P10LE = 98,
  357. @AV_PIX_FMT_YUVA422P10BE = 99,
  358. @AV_PIX_FMT_YUVA422P10LE = 100,
  359. @AV_PIX_FMT_YUVA444P10BE = 101,
  360. @AV_PIX_FMT_YUVA444P10LE = 102,
  361. @AV_PIX_FMT_YUVA420P16BE = 103,
  362. @AV_PIX_FMT_YUVA420P16LE = 104,
  363. @AV_PIX_FMT_YUVA422P16BE = 105,
  364. @AV_PIX_FMT_YUVA422P16LE = 106,
  365. @AV_PIX_FMT_YUVA444P16BE = 107,
  366. @AV_PIX_FMT_YUVA444P16LE = 108,
  367. @AV_PIX_FMT_VDPAU = 109,
  368. @AV_PIX_FMT_XYZ12LE = 110,
  369. @AV_PIX_FMT_XYZ12BE = 111,
  370. @AV_PIX_FMT_NV16 = 112,
  371. @AV_PIX_FMT_NV20LE = 113,
  372. @AV_PIX_FMT_NV20BE = 114,
  373. @AV_PIX_FMT_RGBA64BE = 115,
  374. @AV_PIX_FMT_RGBA64LE = 116,
  375. @AV_PIX_FMT_BGRA64BE = 117,
  376. @AV_PIX_FMT_BGRA64LE = 118,
  377. @AV_PIX_FMT_YVYU422 = 119,
  378. @AV_PIX_FMT_VDA = 120,
  379. @AV_PIX_FMT_YA16BE = 121,
  380. @AV_PIX_FMT_YA16LE = 122,
  381. @AV_PIX_FMT_GBRAP = 123,
  382. @AV_PIX_FMT_GBRAP16BE = 124,
  383. @AV_PIX_FMT_GBRAP16LE = 125,
  384. @AV_PIX_FMT_QSV = 126,
  385. @AV_PIX_FMT_MMAL = 127,
  386. @AV_PIX_FMT_D3D11VA_VLD = 128,
  387. @AV_PIX_FMT_0RGB = 295,
  388. @AV_PIX_FMT_RGB0 = 296,
  389. @AV_PIX_FMT_0BGR = 297,
  390. @AV_PIX_FMT_BGR0 = 298,
  391. @AV_PIX_FMT_YUV420P12BE = 299,
  392. @AV_PIX_FMT_YUV420P12LE = 300,
  393. @AV_PIX_FMT_YUV420P14BE = 301,
  394. @AV_PIX_FMT_YUV420P14LE = 302,
  395. @AV_PIX_FMT_YUV422P12BE = 303,
  396. @AV_PIX_FMT_YUV422P12LE = 304,
  397. @AV_PIX_FMT_YUV422P14BE = 305,
  398. @AV_PIX_FMT_YUV422P14LE = 306,
  399. @AV_PIX_FMT_YUV444P12BE = 307,
  400. @AV_PIX_FMT_YUV444P12LE = 308,
  401. @AV_PIX_FMT_YUV444P14BE = 309,
  402. @AV_PIX_FMT_YUV444P14LE = 310,
  403. @AV_PIX_FMT_GBRP12BE = 311,
  404. @AV_PIX_FMT_GBRP12LE = 312,
  405. @AV_PIX_FMT_GBRP14BE = 313,
  406. @AV_PIX_FMT_GBRP14LE = 314,
  407. @AV_PIX_FMT_YUVJ411P = 315,
  408. @AV_PIX_FMT_BAYER_BGGR8 = 316,
  409. @AV_PIX_FMT_BAYER_RGGB8 = 317,
  410. @AV_PIX_FMT_BAYER_GBRG8 = 318,
  411. @AV_PIX_FMT_BAYER_GRBG8 = 319,
  412. @AV_PIX_FMT_BAYER_BGGR16LE = 320,
  413. @AV_PIX_FMT_BAYER_BGGR16BE = 321,
  414. @AV_PIX_FMT_BAYER_RGGB16LE = 322,
  415. @AV_PIX_FMT_BAYER_RGGB16BE = 323,
  416. @AV_PIX_FMT_BAYER_GBRG16LE = 324,
  417. @AV_PIX_FMT_BAYER_GBRG16BE = 325,
  418. @AV_PIX_FMT_BAYER_GRBG16LE = 326,
  419. @AV_PIX_FMT_BAYER_GRBG16BE = 327,
  420. @AV_PIX_FMT_YUV440P10LE = 328,
  421. @AV_PIX_FMT_YUV440P10BE = 329,
  422. @AV_PIX_FMT_YUV440P12LE = 330,
  423. @AV_PIX_FMT_YUV440P12BE = 331,
  424. @AV_PIX_FMT_AYUV64LE = 332,
  425. @AV_PIX_FMT_AYUV64BE = 333,
  426. @AV_PIX_FMT_VIDEOTOOLBOX = 334,
  427. @AV_PIX_FMT_P010LE = 335,
  428. @AV_PIX_FMT_P010BE = 336,
  429. @AV_PIX_FMT_NB = 337,
  430. }
  431. public enum AVColorPrimaries : int
  432. {
  433. @AVCOL_PRI_RESERVED0 = 0,
  434. @AVCOL_PRI_BT709 = 1,
  435. @AVCOL_PRI_UNSPECIFIED = 2,
  436. @AVCOL_PRI_RESERVED = 3,
  437. @AVCOL_PRI_BT470M = 4,
  438. @AVCOL_PRI_BT470BG = 5,
  439. @AVCOL_PRI_SMPTE170M = 6,
  440. @AVCOL_PRI_SMPTE240M = 7,
  441. @AVCOL_PRI_FILM = 8,
  442. @AVCOL_PRI_BT2020 = 9,
  443. @AVCOL_PRI_SMPTEST428_1 = 10,
  444. @AVCOL_PRI_NB = 11,
  445. }
  446. public enum AVColorTransferCharacteristic : int
  447. {
  448. @AVCOL_TRC_RESERVED0 = 0,
  449. @AVCOL_TRC_BT709 = 1,
  450. @AVCOL_TRC_UNSPECIFIED = 2,
  451. @AVCOL_TRC_RESERVED = 3,
  452. @AVCOL_TRC_GAMMA22 = 4,
  453. @AVCOL_TRC_GAMMA28 = 5,
  454. @AVCOL_TRC_SMPTE170M = 6,
  455. @AVCOL_TRC_SMPTE240M = 7,
  456. @AVCOL_TRC_LINEAR = 8,
  457. @AVCOL_TRC_LOG = 9,
  458. @AVCOL_TRC_LOG_SQRT = 10,
  459. @AVCOL_TRC_IEC61966_2_4 = 11,
  460. @AVCOL_TRC_BT1361_ECG = 12,
  461. @AVCOL_TRC_IEC61966_2_1 = 13,
  462. @AVCOL_TRC_BT2020_10 = 14,
  463. @AVCOL_TRC_BT2020_12 = 15,
  464. @AVCOL_TRC_SMPTEST2084 = 16,
  465. @AVCOL_TRC_SMPTEST428_1 = 17,
  466. @AVCOL_TRC_NB = 18,
  467. }
  468. public enum AVColorSpace : int
  469. {
  470. @AVCOL_SPC_RGB = 0,
  471. @AVCOL_SPC_BT709 = 1,
  472. @AVCOL_SPC_UNSPECIFIED = 2,
  473. @AVCOL_SPC_RESERVED = 3,
  474. @AVCOL_SPC_FCC = 4,
  475. @AVCOL_SPC_BT470BG = 5,
  476. @AVCOL_SPC_SMPTE170M = 6,
  477. @AVCOL_SPC_SMPTE240M = 7,
  478. @AVCOL_SPC_YCOCG = 8,
  479. @AVCOL_SPC_BT2020_NCL = 9,
  480. @AVCOL_SPC_BT2020_CL = 10,
  481. @AVCOL_SPC_NB = 11,
  482. }
  483. public enum AVColorRange : int
  484. {
  485. @AVCOL_RANGE_UNSPECIFIED = 0,
  486. @AVCOL_RANGE_MPEG = 1,
  487. @AVCOL_RANGE_JPEG = 2,
  488. @AVCOL_RANGE_NB = 3,
  489. }
  490. public enum AVChromaLocation : int
  491. {
  492. @AVCHROMA_LOC_UNSPECIFIED = 0,
  493. @AVCHROMA_LOC_LEFT = 1,
  494. @AVCHROMA_LOC_CENTER = 2,
  495. @AVCHROMA_LOC_TOPLEFT = 3,
  496. @AVCHROMA_LOC_TOP = 4,
  497. @AVCHROMA_LOC_BOTTOMLEFT = 5,
  498. @AVCHROMA_LOC_BOTTOM = 6,
  499. @AVCHROMA_LOC_NB = 7,
  500. }
  501. public enum AVSampleFormat : int
  502. {
  503. @AV_SAMPLE_FMT_NONE = -1,
  504. @AV_SAMPLE_FMT_U8 = 0,
  505. @AV_SAMPLE_FMT_S16 = 1,
  506. @AV_SAMPLE_FMT_S32 = 2,
  507. @AV_SAMPLE_FMT_FLT = 3,
  508. @AV_SAMPLE_FMT_DBL = 4,
  509. @AV_SAMPLE_FMT_U8P = 5,
  510. @AV_SAMPLE_FMT_S16P = 6,
  511. @AV_SAMPLE_FMT_S32P = 7,
  512. @AV_SAMPLE_FMT_FLTP = 8,
  513. @AV_SAMPLE_FMT_DBLP = 9,
  514. @AV_SAMPLE_FMT_NB = 10,
  515. }
  516. public enum AVMatrixEncoding : int
  517. {
  518. @AV_MATRIX_ENCODING_NONE = 0,
  519. @AV_MATRIX_ENCODING_DOLBY = 1,
  520. @AV_MATRIX_ENCODING_DPLII = 2,
  521. @AV_MATRIX_ENCODING_DPLIIX = 3,
  522. @AV_MATRIX_ENCODING_DPLIIZ = 4,
  523. @AV_MATRIX_ENCODING_DOLBYEX = 5,
  524. @AV_MATRIX_ENCODING_DOLBYHEADPHONE = 6,
  525. @AV_MATRIX_ENCODING_NB = 7,
  526. }
  527. public enum AVFrameSideDataType : int
  528. {
  529. @AV_FRAME_DATA_PANSCAN = 0,
  530. @AV_FRAME_DATA_A53_CC = 1,
  531. @AV_FRAME_DATA_STEREO3D = 2,
  532. @AV_FRAME_DATA_MATRIXENCODING = 3,
  533. @AV_FRAME_DATA_DOWNMIX_INFO = 4,
  534. @AV_FRAME_DATA_REPLAYGAIN = 5,
  535. @AV_FRAME_DATA_DISPLAYMATRIX = 6,
  536. @AV_FRAME_DATA_AFD = 7,
  537. @AV_FRAME_DATA_MOTION_VECTORS = 8,
  538. @AV_FRAME_DATA_SKIP_SAMPLES = 9,
  539. @AV_FRAME_DATA_AUDIO_SERVICE_TYPE = 10,
  540. @AV_FRAME_DATA_MASTERING_DISPLAY_METADATA = 11,
  541. @AV_FRAME_DATA_GOP_TIMECODE = 12,
  542. }
  543. public enum AVActiveFormatDescription : int
  544. {
  545. @AV_AFD_SAME = 8,
  546. @AV_AFD_4_3 = 9,
  547. @AV_AFD_16_9 = 10,
  548. @AV_AFD_14_9 = 11,
  549. @AV_AFD_4_3_SP_14_9 = 13,
  550. @AV_AFD_16_9_SP_14_9 = 14,
  551. @AV_AFD_SP_4_3 = 15,
  552. }
  553. public enum AVOptionType : int
  554. {
  555. @AV_OPT_TYPE_FLAGS = 0,
  556. @AV_OPT_TYPE_INT = 1,
  557. @AV_OPT_TYPE_INT64 = 2,
  558. @AV_OPT_TYPE_DOUBLE = 3,
  559. @AV_OPT_TYPE_FLOAT = 4,
  560. @AV_OPT_TYPE_STRING = 5,
  561. @AV_OPT_TYPE_RATIONAL = 6,
  562. @AV_OPT_TYPE_BINARY = 7,
  563. @AV_OPT_TYPE_DICT = 8,
  564. @AV_OPT_TYPE_CONST = 128,
  565. @AV_OPT_TYPE_IMAGE_SIZE = 1397316165,
  566. @AV_OPT_TYPE_PIXEL_FMT = 1346784596,
  567. @AV_OPT_TYPE_SAMPLE_FMT = 1397116244,
  568. @AV_OPT_TYPE_VIDEO_RATE = 1448231252,
  569. @AV_OPT_TYPE_DURATION = 1146442272,
  570. @AV_OPT_TYPE_COLOR = 1129270354,
  571. @AV_OPT_TYPE_CHANNEL_LAYOUT = 1128811585,
  572. @AV_OPT_TYPE_BOOL = 1112493900,
  573. }
  574. public enum av_opt_eval_flags : int
  575. {
  576. @AV_OPT_FLAG_IMPLICIT_KEY = 1,
  577. }
  578. public unsafe static partial class ffmpeg
  579. {
  580. public const int FF_LAMBDA_SHIFT = 7;
  581. public const int FF_LAMBDA_SCALE = (1<<FF_LAMBDA_SHIFT);
  582. public const int FF_QP2LAMBDA = 118;
  583. public const int FF_LAMBDA_MAX = (256*128-1);
  584. public const int FF_QUALITY_SCALE = FF_LAMBDA_SCALE;
  585. public const ulong AV_NOPTS_VALUE = 0x8000000000000000;
  586. public const int AV_TIME_BASE = 1000000;
  587. public const int LIBAVUTIL_VERSION_MAJOR = 55;
  588. public const int LIBAVUTIL_VERSION_MINOR = 17;
  589. public const int LIBAVUTIL_VERSION_MICRO = 103;
  590. public const bool FF_API_VDPAU = (LIBAVUTIL_VERSION_MAJOR<56);
  591. public const bool FF_API_XVMC = (LIBAVUTIL_VERSION_MAJOR<56);
  592. public const bool FF_API_OPT_TYPE_METADATA = (LIBAVUTIL_VERSION_MAJOR<56);
  593. public const bool FF_API_DLOG = (LIBAVUTIL_VERSION_MAJOR<56);
  594. public const bool FF_API_VAAPI = (LIBAVUTIL_VERSION_MAJOR<56);
  595. public const bool FF_API_FRAME_QP = (LIBAVUTIL_VERSION_MAJOR<56);
  596. public const bool FF_API_PLUS1_MINUS1 = (LIBAVUTIL_VERSION_MAJOR<56);
  597. public const bool FF_API_ERROR_FRAME = (LIBAVUTIL_VERSION_MAJOR<56);
  598. public const bool FF_API_CRC_BIG_TABLE = (LIBAVUTIL_VERSION_MAJOR<56);
  599. public const int AV_HAVE_BIGENDIAN = 0;
  600. public const int AV_HAVE_FAST_UNALIGNED = 1;
  601. public const int AV_HAVE_INCOMPATIBLE_LIBAV_ABI = 0;
  602. public const int AVERROR_EXPERIMENTAL = (-0x2bb2afa8);
  603. public const int AVERROR_INPUT_CHANGED = (-0x636e6701);
  604. public const int AVERROR_OUTPUT_CHANGED = (-0x636e6702);
  605. public const int AV_ERROR_MAX_STRING_SIZE = 64;
  606. public const double M_E = 2.7182818284590452354;
  607. public const double M_LN2 = 0.69314718055994530942;
  608. public const double M_LN10 = 2.30258509299404568402;
  609. public const double M_LOG2_10 = 3.32192809488736234787;
  610. public const double M_PHI = 1.61803398874989484820;
  611. public const double M_PI = 3.14159265358979323846;
  612. public const double M_PI_2 = 1.57079632679489661923;
  613. public const double M_SQRT1_2 = 0.70710678118654752440;
  614. public const double M_SQRT2 = 1.41421356237309504880;
  615. public const int AV_LOG_QUIET = -8;
  616. public const int AV_LOG_PANIC = 0;
  617. public const int AV_LOG_FATAL = 8;
  618. public const int AV_LOG_ERROR = 16;
  619. public const int AV_LOG_WARNING = 24;
  620. public const int AV_LOG_INFO = 32;
  621. public const int AV_LOG_VERBOSE = 40;
  622. public const int AV_LOG_DEBUG = 48;
  623. public const int AV_LOG_TRACE = 56;
  624. public const int AV_LOG_MAX_OFFSET = (AV_LOG_TRACE-AV_LOG_QUIET);
  625. public const int AV_LOG_SKIP_REPEATED = 1;
  626. public const int AV_LOG_PRINT_LEVEL = 2;
  627. public const int AVPALETTE_SIZE = 1024;
  628. public const int AVPALETTE_COUNT = 256;
  629. public const int AV_CH_FRONT_LEFT = 0x00000001;
  630. public const int AV_CH_FRONT_RIGHT = 0x00000002;
  631. public const int AV_CH_FRONT_CENTER = 0x00000004;
  632. public const int AV_CH_LOW_FREQUENCY = 0x00000008;
  633. public const int AV_CH_BACK_LEFT = 0x00000010;
  634. public const int AV_CH_BACK_RIGHT = 0x00000020;
  635. public const int AV_CH_FRONT_LEFT_OF_CENTER = 0x00000040;
  636. public const int AV_CH_FRONT_RIGHT_OF_CENTER = 0x00000080;
  637. public const int AV_CH_BACK_CENTER = 0x00000100;
  638. public const int AV_CH_SIDE_LEFT = 0x00000200;
  639. public const int AV_CH_SIDE_RIGHT = 0x00000400;
  640. public const int AV_CH_TOP_CENTER = 0x00000800;
  641. public const int AV_CH_TOP_FRONT_LEFT = 0x00001000;
  642. public const int AV_CH_TOP_FRONT_CENTER = 0x00002000;
  643. public const int AV_CH_TOP_FRONT_RIGHT = 0x00004000;
  644. public const int AV_CH_TOP_BACK_LEFT = 0x00008000;
  645. public const int AV_CH_TOP_BACK_CENTER = 0x00010000;
  646. public const int AV_CH_TOP_BACK_RIGHT = 0x00020000;
  647. public const int AV_CH_STEREO_LEFT = 0x20000000;
  648. public const int AV_CH_STEREO_RIGHT = 0x40000000;
  649. public const ulong AV_CH_WIDE_LEFT = 0x0000000080000000UL;
  650. public const ulong AV_CH_WIDE_RIGHT = 0x0000000100000000UL;
  651. public const ulong AV_CH_SURROUND_DIRECT_LEFT = 0x0000000200000000UL;
  652. public const ulong AV_CH_SURROUND_DIRECT_RIGHT = 0x0000000400000000UL;
  653. public const ulong AV_CH_LOW_FREQUENCY_2 = 0x0000000800000000UL;
  654. public const ulong AV_CH_LAYOUT_NATIVE = 0x8000000000000000UL;
  655. public const int AV_CH_LAYOUT_MONO = (AV_CH_FRONT_CENTER);
  656. public const int AV_CH_LAYOUT_STEREO = (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT);
  657. public const int AV_CH_LAYOUT_2POINT1 = (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY);
  658. public const int AV_CH_LAYOUT_2_1 = (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER);
  659. public const int AV_CH_LAYOUT_SURROUND = (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER);
  660. public const int AV_CH_LAYOUT_3POINT1 = (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY);
  661. public const int AV_CH_LAYOUT_4POINT0 = (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER);
  662. public const int AV_CH_LAYOUT_4POINT1 = (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY);
  663. public const int AV_CH_LAYOUT_2_2 = (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT);
  664. public const int AV_CH_LAYOUT_QUAD = (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT);
  665. public const int AV_CH_LAYOUT_5POINT0 = (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT);
  666. public const int AV_CH_LAYOUT_5POINT1 = (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY);
  667. public const int AV_CH_LAYOUT_5POINT0_BACK = (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT);
  668. public const int AV_CH_LAYOUT_5POINT1_BACK = (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY);
  669. public const int AV_CH_LAYOUT_6POINT0 = (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER);
  670. public const int AV_CH_LAYOUT_6POINT0_FRONT = (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER);
  671. public const int AV_CH_LAYOUT_HEXAGONAL = (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER);
  672. public const int AV_CH_LAYOUT_6POINT1 = (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER);
  673. public const int AV_CH_LAYOUT_6POINT1_BACK = (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER);
  674. public const int AV_CH_LAYOUT_6POINT1_FRONT = (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY);
  675. public const int AV_CH_LAYOUT_7POINT0 = (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT);
  676. public const int AV_CH_LAYOUT_7POINT0_FRONT = (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER);
  677. public const int AV_CH_LAYOUT_7POINT1 = (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT);
  678. public const int AV_CH_LAYOUT_7POINT1_WIDE = (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER);
  679. public const int AV_CH_LAYOUT_7POINT1_WIDE_BACK = (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER);
  680. public const int AV_CH_LAYOUT_OCTAGONAL = (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT);
  681. public const ulong AV_CH_LAYOUT_HEXADECAGONAL = (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT);
  682. public const int AV_CH_LAYOUT_STEREO_DOWNMIX = (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT);
  683. public const uint AV_CPU_FLAG_FORCE = 0x80000000;
  684. public const int AV_CPU_FLAG_MMX = 0x0001;
  685. public const int AV_CPU_FLAG_MMXEXT = 0x0002;
  686. public const int AV_CPU_FLAG_MMX2 = 0x0002;
  687. public const int AV_CPU_FLAG_3DNOW = 0x0004;
  688. public const int AV_CPU_FLAG_SSE = 0x0008;
  689. public const int AV_CPU_FLAG_SSE2 = 0x0010;
  690. public const int AV_CPU_FLAG_SSE2SLOW = 0x40000000;
  691. public const int AV_CPU_FLAG_3DNOWEXT = 0x0020;
  692. public const int AV_CPU_FLAG_SSE3 = 0x0040;
  693. public const int AV_CPU_FLAG_SSE3SLOW = 0x20000000;
  694. public const int AV_CPU_FLAG_SSSE3 = 0x0080;
  695. public const int AV_CPU_FLAG_ATOM = 0x10000000;
  696. public const int AV_CPU_FLAG_SSE4 = 0x0100;
  697. public const int AV_CPU_FLAG_SSE42 = 0x0200;
  698. public const int AV_CPU_FLAG_AESNI = 0x80000;
  699. public const int AV_CPU_FLAG_AVX = 0x4000;
  700. public const int AV_CPU_FLAG_AVXSLOW = 0x8000000;
  701. public const int AV_CPU_FLAG_XOP = 0x0400;
  702. public const int AV_CPU_FLAG_FMA4 = 0x0800;
  703. public const int AV_CPU_FLAG_CMOV = 0x1000;
  704. public const int AV_CPU_FLAG_AVX2 = 0x8000;
  705. public const int AV_CPU_FLAG_FMA3 = 0x10000;
  706. public const int AV_CPU_FLAG_BMI1 = 0x20000;
  707. public const int AV_CPU_FLAG_BMI2 = 0x40000;
  708. public const int AV_CPU_FLAG_ALTIVEC = 0x0001;
  709. public const int AV_CPU_FLAG_VSX = 0x0002;
  710. public const int AV_CPU_FLAG_POWER8 = 0x0004;
  711. public const int AV_CPU_FLAG_ARMV5TE = (1<<0);
  712. public const int AV_CPU_FLAG_ARMV6 = (1<<1);
  713. public const int AV_CPU_FLAG_ARMV6T2 = (1<<2);
  714. public const int AV_CPU_FLAG_VFP = (1<<3);
  715. public const int AV_CPU_FLAG_VFPV3 = (1<<4);
  716. public const int AV_CPU_FLAG_NEON = (1<<5);
  717. public const int AV_CPU_FLAG_ARMV8 = (1<<6);
  718. public const int AV_CPU_FLAG_VFP_VM = (1<<7);
  719. public const int AV_CPU_FLAG_SETEND = (1<<16);
  720. public const int AV_BUFFER_FLAG_READONLY = (1<<0);
  721. public const int AV_DICT_MATCH_CASE = 1;
  722. public const int AV_DICT_IGNORE_SUFFIX = 2;
  723. public const int AV_DICT_DONT_STRDUP_KEY = 4;
  724. public const int AV_DICT_DONT_STRDUP_VAL = 8;
  725. public const int AV_DICT_DONT_OVERWRITE = 16;
  726. public const int AV_DICT_APPEND = 32;
  727. public const int AV_NUM_DATA_POINTERS = 8;
  728. public const int AV_FRAME_FLAG_CORRUPT = (1<<0);
  729. public const int FF_DECODE_ERROR_INVALID_BITSTREAM = 1;
  730. public const int FF_DECODE_ERROR_MISSING_REFERENCE = 2;
  731. public const int AV_OPT_FLAG_ENCODING_PARAM = 1;
  732. public const int AV_OPT_FLAG_DECODING_PARAM = 2;
  733. public const int AV_OPT_FLAG_METADATA = 4;
  734. public const int AV_OPT_FLAG_AUDIO_PARAM = 8;
  735. public const int AV_OPT_FLAG_VIDEO_PARAM = 16;
  736. public const int AV_OPT_FLAG_SUBTITLE_PARAM = 32;
  737. public const int AV_OPT_FLAG_EXPORT = 64;
  738. public const int AV_OPT_FLAG_READONLY = 128;
  739. public const int AV_OPT_FLAG_FILTERING_PARAM = (1<<16);
  740. public const int AV_OPT_SEARCH_CHILDREN = (1<<0);
  741. public const int AV_OPT_SEARCH_FAKE_OBJ = (1<<1);
  742. public const int AV_OPT_ALLOW_NULL = (1<<2);
  743. public const int AV_OPT_MULTI_COMPONENT_RANGE = (1<<12);
  744. public const int AV_OPT_SERIALIZE_SKIP_DEFAULTS = 0x00000001;
  745. public const int AV_OPT_SERIALIZE_OPT_FLAGS_EXACT = 0x00000002;
  746. public const int AV_PIX_FMT_FLAG_BE = (1<<0);
  747. public const int AV_PIX_FMT_FLAG_PAL = (1<<1);
  748. public const int AV_PIX_FMT_FLAG_BITSTREAM = (1<<2);
  749. public const int AV_PIX_FMT_FLAG_HWACCEL = (1<<3);
  750. public const int AV_PIX_FMT_FLAG_PLANAR = (1<<4);
  751. public const int AV_PIX_FMT_FLAG_RGB = (1<<5);
  752. public const int AV_PIX_FMT_FLAG_PSEUDOPAL = (1<<6);
  753. public const int AV_PIX_FMT_FLAG_ALPHA = (1<<7);
  754. public const int FF_LOSS_RESOLUTION = 0x0001;
  755. public const int FF_LOSS_DEPTH = 0x0002;
  756. public const int FF_LOSS_COLORSPACE = 0x0004;
  757. public const int FF_LOSS_ALPHA = 0x0008;
  758. public const int FF_LOSS_COLORQUANT = 0x0010;
  759. public const int FF_LOSS_CHROMA = 0x0020;
  760. #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
  761. private const string libavutil = "EasyMovieTexture";
  762. #else
  763. private const string libavutil = "avutil-55";
  764. #endif
  765. [DllImport(libavutil, EntryPoint = "avutil_version", CallingConvention = CallingConvention.Cdecl)]
  766. public static extern uint avutil_version();
  767. [DllImport(libavutil, EntryPoint = "av_version_info", CallingConvention = CallingConvention.Cdecl)]
  768. public static extern string av_version_info();
  769. [DllImport(libavutil, EntryPoint = "avutil_configuration", CallingConvention = CallingConvention.Cdecl)]
  770. public static extern string avutil_configuration();
  771. [DllImport(libavutil, EntryPoint = "avutil_license", CallingConvention = CallingConvention.Cdecl)]
  772. public static extern string avutil_license();
  773. [DllImport(libavutil, EntryPoint = "av_get_media_type_string", CallingConvention = CallingConvention.Cdecl)]
  774. public static extern string av_get_media_type_string(AVMediaType @media_type);
  775. [DllImport(libavutil, EntryPoint = "av_get_picture_type_char", CallingConvention = CallingConvention.Cdecl)]
  776. public static extern sbyte av_get_picture_type_char(AVPictureType @pict_type);
  777. [DllImport(libavutil, EntryPoint = "av_log2", CallingConvention = CallingConvention.Cdecl)]
  778. public static extern int av_log2(uint @v);
  779. [DllImport(libavutil, EntryPoint = "av_log2_16bit", CallingConvention = CallingConvention.Cdecl)]
  780. public static extern int av_log2_16bit(uint @v);
  781. [DllImport(libavutil, EntryPoint = "av_strerror", CallingConvention = CallingConvention.Cdecl)]
  782. public static extern int av_strerror(int @errnum, IntPtr @errbuf, ulong @errbuf_size);
  783. [DllImport(libavutil, EntryPoint = "av_malloc", CallingConvention = CallingConvention.Cdecl)]
  784. public static extern void* av_malloc(ulong @size);
  785. [DllImport(libavutil, EntryPoint = "av_realloc", CallingConvention = CallingConvention.Cdecl)]
  786. public static extern void* av_realloc(void* @ptr, ulong @size);
  787. [DllImport(libavutil, EntryPoint = "av_realloc_f", CallingConvention = CallingConvention.Cdecl)]
  788. public static extern void* av_realloc_f(void* @ptr, ulong @nelem, ulong @elsize);
  789. [DllImport(libavutil, EntryPoint = "av_reallocp", CallingConvention = CallingConvention.Cdecl)]
  790. public static extern int av_reallocp(void* @ptr, ulong @size);
  791. [DllImport(libavutil, EntryPoint = "av_realloc_array", CallingConvention = CallingConvention.Cdecl)]
  792. public static extern void* av_realloc_array(void* @ptr, ulong @nmemb, ulong @size);
  793. [DllImport(libavutil, EntryPoint = "av_reallocp_array", CallingConvention = CallingConvention.Cdecl)]
  794. public static extern int av_reallocp_array(void* @ptr, ulong @nmemb, ulong @size);
  795. [DllImport(libavutil, EntryPoint = "av_free", CallingConvention = CallingConvention.Cdecl)]
  796. public static extern void av_free(void* @ptr);
  797. [DllImport(libavutil, EntryPoint = "av_mallocz", CallingConvention = CallingConvention.Cdecl)]
  798. public static extern void* av_mallocz(ulong @size);
  799. [DllImport(libavutil, EntryPoint = "av_calloc", CallingConvention = CallingConvention.Cdecl)]
  800. public static extern void* av_calloc(ulong @nmemb, ulong @size);
  801. [DllImport(libavutil, EntryPoint = "av_strdup", CallingConvention = CallingConvention.Cdecl)]
  802. public static extern sbyte* av_strdup([MarshalAs(UnmanagedType.LPStr)] string @s);
  803. [DllImport(libavutil, EntryPoint = "av_strndup", CallingConvention = CallingConvention.Cdecl)]
  804. public static extern sbyte* av_strndup([MarshalAs(UnmanagedType.LPStr)] string @s, ulong @len);
  805. [DllImport(libavutil, EntryPoint = "av_memdup", CallingConvention = CallingConvention.Cdecl)]
  806. public static extern void* av_memdup(void* @p, ulong @size);
  807. [DllImport(libavutil, EntryPoint = "av_freep", CallingConvention = CallingConvention.Cdecl)]
  808. public static extern void av_freep(void* @ptr);
  809. [DllImport(libavutil, EntryPoint = "av_dynarray_add", CallingConvention = CallingConvention.Cdecl)]
  810. public static extern void av_dynarray_add(void* @tab_ptr, int* @nb_ptr, void* @elem);
  811. [DllImport(libavutil, EntryPoint = "av_dynarray_add_nofree", CallingConvention = CallingConvention.Cdecl)]
  812. public static extern int av_dynarray_add_nofree(void* @tab_ptr, int* @nb_ptr, void* @elem);
  813. [DllImport(libavutil, EntryPoint = "av_dynarray2_add", CallingConvention = CallingConvention.Cdecl)]
  814. public static extern void* av_dynarray2_add(void** @tab_ptr, int* @nb_ptr, ulong @elem_size, sbyte* @elem_data);
  815. [DllImport(libavutil, EntryPoint = "av_max_alloc", CallingConvention = CallingConvention.Cdecl)]
  816. public static extern void av_max_alloc(ulong @max);
  817. [DllImport(libavutil, EntryPoint = "av_memcpy_backptr", CallingConvention = CallingConvention.Cdecl)]
  818. public static extern void av_memcpy_backptr(sbyte* @dst, int @back, int @cnt);
  819. [DllImport(libavutil, EntryPoint = "av_fast_realloc", CallingConvention = CallingConvention.Cdecl)]
  820. public static extern void* av_fast_realloc(void* @ptr, uint* @size, ulong @min_size);
  821. [DllImport(libavutil, EntryPoint = "av_fast_malloc", CallingConvention = CallingConvention.Cdecl)]
  822. public static extern void av_fast_malloc(void* @ptr, uint* @size, ulong @min_size);
  823. [DllImport(libavutil, EntryPoint = "av_fast_mallocz", CallingConvention = CallingConvention.Cdecl)]
  824. public static extern void av_fast_mallocz(void* @ptr, uint* @size, ulong @min_size);
  825. [DllImport(libavutil, EntryPoint = "av_reduce", CallingConvention = CallingConvention.Cdecl)]
  826. public static extern int av_reduce(int* @dst_num, int* @dst_den, long @num, long @den, long @max);
  827. [DllImport(libavutil, EntryPoint = "av_mul_q", CallingConvention = CallingConvention.Cdecl)]
  828. public static extern AVRational av_mul_q(AVRational @b, AVRational @c);
  829. [DllImport(libavutil, EntryPoint = "av_div_q", CallingConvention = CallingConvention.Cdecl)]
  830. public static extern AVRational av_div_q(AVRational @b, AVRational @c);
  831. [DllImport(libavutil, EntryPoint = "av_add_q", CallingConvention = CallingConvention.Cdecl)]
  832. public static extern AVRational av_add_q(AVRational @b, AVRational @c);
  833. [DllImport(libavutil, EntryPoint = "av_sub_q", CallingConvention = CallingConvention.Cdecl)]
  834. public static extern AVRational av_sub_q(AVRational @b, AVRational @c);
  835. [DllImport(libavutil, EntryPoint = "av_d2q", CallingConvention = CallingConvention.Cdecl)]
  836. public static extern AVRational av_d2q(double @d, int @max);
  837. [DllImport(libavutil, EntryPoint = "av_nearer_q", CallingConvention = CallingConvention.Cdecl)]
  838. public static extern int av_nearer_q(AVRational @q, AVRational @q1, AVRational @q2);
  839. [DllImport(libavutil, EntryPoint = "av_find_nearest_q_idx", CallingConvention = CallingConvention.Cdecl)]
  840. public static extern int av_find_nearest_q_idx(AVRational @q, AVRational* @q_list);
  841. [DllImport(libavutil, EntryPoint = "av_q2intfloat", CallingConvention = CallingConvention.Cdecl)]
  842. public static extern uint av_q2intfloat(AVRational @q);
  843. [DllImport(libavutil, EntryPoint = "av_gcd", CallingConvention = CallingConvention.Cdecl)]
  844. public static extern long av_gcd(long @a, long @b);
  845. [DllImport(libavutil, EntryPoint = "av_rescale", CallingConvention = CallingConvention.Cdecl)]
  846. public static extern long av_rescale(long @a, long @b, long @c);
  847. [DllImport(libavutil, EntryPoint = "av_rescale_rnd", CallingConvention = CallingConvention.Cdecl)]
  848. public static extern long av_rescale_rnd(long @a, long @b, long @c, AVRounding @param3);
  849. [DllImport(libavutil, EntryPoint = "av_rescale_q", CallingConvention = CallingConvention.Cdecl)]
  850. public static extern long av_rescale_q(long @a, AVRational @bq, AVRational @cq);
  851. [DllImport(libavutil, EntryPoint = "av_rescale_q_rnd", CallingConvention = CallingConvention.Cdecl)]
  852. public static extern long av_rescale_q_rnd(long @a, AVRational @bq, AVRational @cq, AVRounding @param3);
  853. [DllImport(libavutil, EntryPoint = "av_compare_ts", CallingConvention = CallingConvention.Cdecl)]
  854. public static extern int av_compare_ts(long @ts_a, AVRational @tb_a, long @ts_b, AVRational @tb_b);
  855. [DllImport(libavutil, EntryPoint = "av_compare_mod", CallingConvention = CallingConvention.Cdecl)]
  856. public static extern long av_compare_mod(ulong @a, ulong @b, ulong @mod);
  857. [DllImport(libavutil, EntryPoint = "av_rescale_delta", CallingConvention = CallingConvention.Cdecl)]
  858. public static extern long av_rescale_delta(AVRational @in_tb, long @in_ts, AVRational @fs_tb, int @duration, long* @last, AVRational @out_tb);
  859. [DllImport(libavutil, EntryPoint = "av_add_stable", CallingConvention = CallingConvention.Cdecl)]
  860. public static extern long av_add_stable(AVRational @ts_tb, long @ts, AVRational @inc_tb, long @inc);
  861. [DllImport(libavutil, EntryPoint = "av_log", CallingConvention = CallingConvention.Cdecl)]
  862. public static extern void av_log(void* @avcl, int @level, [MarshalAs(UnmanagedType.LPStr)] string @fmt);
  863. [DllImport(libavutil, EntryPoint = "av_vlog", CallingConvention = CallingConvention.Cdecl)]
  864. public static extern void av_vlog(void* @avcl, int @level, [MarshalAs(UnmanagedType.LPStr)] string @fmt, sbyte* @vl);
  865. [DllImport(libavutil, EntryPoint = "av_log_get_level", CallingConvention = CallingConvention.Cdecl)]
  866. public static extern int av_log_get_level();
  867. [DllImport(libavutil, EntryPoint = "av_log_set_level", CallingConvention = CallingConvention.Cdecl)]
  868. public static extern void av_log_set_level(int @level);
  869. [DllImport(libavutil, EntryPoint = "av_log_set_callback", CallingConvention = CallingConvention.Cdecl)]
  870. public static extern void av_log_set_callback(IntPtr* @callback);
  871. [DllImport(libavutil, EntryPoint = "av_log_default_callback", CallingConvention = CallingConvention.Cdecl)]
  872. public static extern void av_log_default_callback(void* @avcl, int @level, [MarshalAs(UnmanagedType.LPStr)] string @fmt, sbyte* @vl);
  873. [DllImport(libavutil, EntryPoint = "av_default_item_name", CallingConvention = CallingConvention.Cdecl)]
  874. public static extern string av_default_item_name(void* @ctx);
  875. [DllImport(libavutil, EntryPoint = "av_default_get_category", CallingConvention = CallingConvention.Cdecl)]
  876. public static extern AVClassCategory av_default_get_category(void* @ptr);
  877. [DllImport(libavutil, EntryPoint = "av_log_format_line", CallingConvention = CallingConvention.Cdecl)]
  878. public static extern void av_log_format_line(void* @ptr, int @level, [MarshalAs(UnmanagedType.LPStr)] string @fmt, sbyte* @vl, IntPtr @line, int @line_size, int* @print_prefix);
  879. [DllImport(libavutil, EntryPoint = "av_log_set_flags", CallingConvention = CallingConvention.Cdecl)]
  880. public static extern void av_log_set_flags(int @arg);
  881. [DllImport(libavutil, EntryPoint = "av_log_get_flags", CallingConvention = CallingConvention.Cdecl)]
  882. public static extern int av_log_get_flags();
  883. [DllImport(libavutil, EntryPoint = "av_int_list_length_for_size", CallingConvention = CallingConvention.Cdecl)]
  884. public static extern uint av_int_list_length_for_size(uint @elsize, void* @list, ulong @term);
  885. [DllImport(libavutil, EntryPoint = "av_fopen_utf8", CallingConvention = CallingConvention.Cdecl)]
  886. public static extern _iobuf* av_fopen_utf8([MarshalAs(UnmanagedType.LPStr)] string @path, [MarshalAs(UnmanagedType.LPStr)] string @mode);
  887. [DllImport(libavutil, EntryPoint = "av_get_time_base_q", CallingConvention = CallingConvention.Cdecl)]
  888. public static extern AVRational av_get_time_base_q();
  889. [DllImport(libavutil, EntryPoint = "av_fifo_alloc", CallingConvention = CallingConvention.Cdecl)]
  890. public static extern AVFifoBuffer* av_fifo_alloc(uint @size);
  891. [DllImport(libavutil, EntryPoint = "av_fifo_alloc_array", CallingConvention = CallingConvention.Cdecl)]
  892. public static extern AVFifoBuffer* av_fifo_alloc_array(ulong @nmemb, ulong @size);
  893. [DllImport(libavutil, EntryPoint = "av_fifo_free", CallingConvention = CallingConvention.Cdecl)]
  894. public static extern void av_fifo_free(AVFifoBuffer* @f);
  895. [DllImport(libavutil, EntryPoint = "av_fifo_freep", CallingConvention = CallingConvention.Cdecl)]
  896. public static extern void av_fifo_freep(AVFifoBuffer** @f);
  897. [DllImport(libavutil, EntryPoint = "av_fifo_reset", CallingConvention = CallingConvention.Cdecl)]
  898. public static extern void av_fifo_reset(AVFifoBuffer* @f);
  899. [DllImport(libavutil, EntryPoint = "av_fifo_size", CallingConvention = CallingConvention.Cdecl)]
  900. public static extern int av_fifo_size(AVFifoBuffer* @f);
  901. [DllImport(libavutil, EntryPoint = "av_fifo_space", CallingConvention = CallingConvention.Cdecl)]
  902. public static extern int av_fifo_space(AVFifoBuffer* @f);
  903. [DllImport(libavutil, EntryPoint = "av_fifo_generic_peek_at", CallingConvention = CallingConvention.Cdecl)]
  904. public static extern int av_fifo_generic_peek_at(AVFifoBuffer* @f, void* @dest, int @offset, int @buf_size, IntPtr* @func);
  905. [DllImport(libavutil, EntryPoint = "av_fifo_generic_peek", CallingConvention = CallingConvention.Cdecl)]
  906. public static extern int av_fifo_generic_peek(AVFifoBuffer* @f, void* @dest, int @buf_size, IntPtr* @func);
  907. [DllImport(libavutil, EntryPoint = "av_fifo_generic_read", CallingConvention = CallingConvention.Cdecl)]
  908. public static extern int av_fifo_generic_read(AVFifoBuffer* @f, void* @dest, int @buf_size, IntPtr* @func);
  909. [DllImport(libavutil, EntryPoint = "av_fifo_generic_write", CallingConvention = CallingConvention.Cdecl)]
  910. public static extern int av_fifo_generic_write(AVFifoBuffer* @f, void* @src, int @size, IntPtr* @func);
  911. [DllImport(libavutil, EntryPoint = "av_fifo_realloc2", CallingConvention = CallingConvention.Cdecl)]
  912. public static extern int av_fifo_realloc2(AVFifoBuffer* @f, uint @size);
  913. [DllImport(libavutil, EntryPoint = "av_fifo_grow", CallingConvention = CallingConvention.Cdecl)]
  914. public static extern int av_fifo_grow(AVFifoBuffer* @f, uint @additional_space);
  915. [DllImport(libavutil, EntryPoint = "av_fifo_drain", CallingConvention = CallingConvention.Cdecl)]
  916. public static extern void av_fifo_drain(AVFifoBuffer* @f, int @size);
  917. [DllImport(libavutil, EntryPoint = "av_get_sample_fmt_name", CallingConvention = CallingConvention.Cdecl)]
  918. public static extern string av_get_sample_fmt_name(AVSampleFormat @sample_fmt);
  919. [DllImport(libavutil, EntryPoint = "av_get_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  920. public static extern AVSampleFormat av_get_sample_fmt([MarshalAs(UnmanagedType.LPStr)] string @name);
  921. [DllImport(libavutil, EntryPoint = "av_get_alt_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  922. public static extern AVSampleFormat av_get_alt_sample_fmt(AVSampleFormat @sample_fmt, int @planar);
  923. [DllImport(libavutil, EntryPoint = "av_get_packed_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  924. public static extern AVSampleFormat av_get_packed_sample_fmt(AVSampleFormat @sample_fmt);
  925. [DllImport(libavutil, EntryPoint = "av_get_planar_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  926. public static extern AVSampleFormat av_get_planar_sample_fmt(AVSampleFormat @sample_fmt);
  927. [DllImport(libavutil, EntryPoint = "av_get_sample_fmt_string", CallingConvention = CallingConvention.Cdecl)]
  928. public static extern sbyte* av_get_sample_fmt_string(IntPtr @buf, int @buf_size, AVSampleFormat @sample_fmt);
  929. [DllImport(libavutil, EntryPoint = "av_get_bytes_per_sample", CallingConvention = CallingConvention.Cdecl)]
  930. public static extern int av_get_bytes_per_sample(AVSampleFormat @sample_fmt);
  931. [DllImport(libavutil, EntryPoint = "av_sample_fmt_is_planar", CallingConvention = CallingConvention.Cdecl)]
  932. public static extern int av_sample_fmt_is_planar(AVSampleFormat @sample_fmt);
  933. [DllImport(libavutil, EntryPoint = "av_samples_get_buffer_size", CallingConvention = CallingConvention.Cdecl)]
  934. public static extern int av_samples_get_buffer_size(int* @linesize, int @nb_channels, int @nb_samples, AVSampleFormat @sample_fmt, int @align);
  935. [DllImport(libavutil, EntryPoint = "av_samples_fill_arrays", CallingConvention = CallingConvention.Cdecl)]
  936. public static extern int av_samples_fill_arrays(sbyte** @audio_data, int* @linesize, sbyte* @buf, int @nb_channels, int @nb_samples, AVSampleFormat @sample_fmt, int @align);
  937. [DllImport(libavutil, EntryPoint = "av_samples_alloc", CallingConvention = CallingConvention.Cdecl)]
  938. public static extern int av_samples_alloc(sbyte** @audio_data, int* @linesize, int @nb_channels, int @nb_samples, AVSampleFormat @sample_fmt, int @align);
  939. [DllImport(libavutil, EntryPoint = "av_samples_alloc_array_and_samples", CallingConvention = CallingConvention.Cdecl)]
  940. public static extern int av_samples_alloc_array_and_samples(sbyte*** @audio_data, int* @linesize, int @nb_channels, int @nb_samples, AVSampleFormat @sample_fmt, int @align);
  941. [DllImport(libavutil, EntryPoint = "av_samples_copy", CallingConvention = CallingConvention.Cdecl)]
  942. public static extern int av_samples_copy(sbyte** @dst, sbyte** @src, int @dst_offset, int @src_offset, int @nb_samples, int @nb_channels, AVSampleFormat @sample_fmt);
  943. [DllImport(libavutil, EntryPoint = "av_samples_set_silence", CallingConvention = CallingConvention.Cdecl)]
  944. public static extern int av_samples_set_silence(sbyte** @audio_data, int @offset, int @nb_samples, int @nb_channels, AVSampleFormat @sample_fmt);
  945. [DllImport(libavutil, EntryPoint = "av_audio_fifo_free", CallingConvention = CallingConvention.Cdecl)]
  946. public static extern void av_audio_fifo_free(AVAudioFifo* @af);
  947. [DllImport(libavutil, EntryPoint = "av_audio_fifo_alloc", CallingConvention = CallingConvention.Cdecl)]
  948. public static extern AVAudioFifo* av_audio_fifo_alloc(AVSampleFormat @sample_fmt, int @channels, int @nb_samples);
  949. [DllImport(libavutil, EntryPoint = "av_audio_fifo_realloc", CallingConvention = CallingConvention.Cdecl)]
  950. public static extern int av_audio_fifo_realloc(AVAudioFifo* @af, int @nb_samples);
  951. [DllImport(libavutil, EntryPoint = "av_audio_fifo_write", CallingConvention = CallingConvention.Cdecl)]
  952. public static extern int av_audio_fifo_write(AVAudioFifo* @af, void** @data, int @nb_samples);
  953. [DllImport(libavutil, EntryPoint = "av_audio_fifo_peek", CallingConvention = CallingConvention.Cdecl)]
  954. public static extern int av_audio_fifo_peek(AVAudioFifo* @af, void** @data, int @nb_samples);
  955. [DllImport(libavutil, EntryPoint = "av_audio_fifo_read", CallingConvention = CallingConvention.Cdecl)]
  956. public static extern int av_audio_fifo_read(AVAudioFifo* @af, void** @data, int @nb_samples);
  957. [DllImport(libavutil, EntryPoint = "av_audio_fifo_drain", CallingConvention = CallingConvention.Cdecl)]
  958. public static extern int av_audio_fifo_drain(AVAudioFifo* @af, int @nb_samples);
  959. [DllImport(libavutil, EntryPoint = "av_audio_fifo_reset", CallingConvention = CallingConvention.Cdecl)]
  960. public static extern void av_audio_fifo_reset(AVAudioFifo* @af);
  961. [DllImport(libavutil, EntryPoint = "av_audio_fifo_size", CallingConvention = CallingConvention.Cdecl)]
  962. public static extern int av_audio_fifo_size(AVAudioFifo* @af);
  963. [DllImport(libavutil, EntryPoint = "av_audio_fifo_space", CallingConvention = CallingConvention.Cdecl)]
  964. public static extern int av_audio_fifo_space(AVAudioFifo* @af);
  965. [DllImport(libavutil, EntryPoint = "av_get_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  966. public static extern ulong av_get_channel_layout([MarshalAs(UnmanagedType.LPStr)] string @name);
  967. [DllImport(libavutil, EntryPoint = "av_get_channel_layout_string", CallingConvention = CallingConvention.Cdecl)]
  968. public static extern void av_get_channel_layout_string(IntPtr @buf, int @buf_size, int @nb_channels, ulong @channel_layout);
  969. [DllImport(libavutil, EntryPoint = "av_bprint_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  970. public static extern void av_bprint_channel_layout(AVBPrint* @bp, int @nb_channels, ulong @channel_layout);
  971. [DllImport(libavutil, EntryPoint = "av_get_channel_layout_nb_channels", CallingConvention = CallingConvention.Cdecl)]
  972. public static extern int av_get_channel_layout_nb_channels(ulong @channel_layout);
  973. [DllImport(libavutil, EntryPoint = "av_get_default_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  974. public static extern long av_get_default_channel_layout(int @nb_channels);
  975. [DllImport(libavutil, EntryPoint = "av_get_channel_layout_channel_index", CallingConvention = CallingConvention.Cdecl)]
  976. public static extern int av_get_channel_layout_channel_index(ulong @channel_layout, ulong @channel);
  977. [DllImport(libavutil, EntryPoint = "av_channel_layout_extract_channel", CallingConvention = CallingConvention.Cdecl)]
  978. public static extern ulong av_channel_layout_extract_channel(ulong @channel_layout, int @index);
  979. [DllImport(libavutil, EntryPoint = "av_get_channel_name", CallingConvention = CallingConvention.Cdecl)]
  980. public static extern string av_get_channel_name(ulong @channel);
  981. [DllImport(libavutil, EntryPoint = "av_get_channel_description", CallingConvention = CallingConvention.Cdecl)]
  982. public static extern string av_get_channel_description(ulong @channel);
  983. [DllImport(libavutil, EntryPoint = "av_get_standard_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  984. public static extern int av_get_standard_channel_layout(uint @index, ulong* @layout, sbyte** @name);
  985. [DllImport(libavutil, EntryPoint = "av_get_cpu_flags", CallingConvention = CallingConvention.Cdecl)]
  986. public static extern int av_get_cpu_flags();
  987. [DllImport(libavutil, EntryPoint = "av_force_cpu_flags", CallingConvention = CallingConvention.Cdecl)]
  988. public static extern void av_force_cpu_flags(int @flags);
  989. [DllImport(libavutil, EntryPoint = "av_set_cpu_flags_mask", CallingConvention = CallingConvention.Cdecl)]
  990. public static extern void av_set_cpu_flags_mask(int @mask);
  991. [DllImport(libavutil, EntryPoint = "av_parse_cpu_flags", CallingConvention = CallingConvention.Cdecl)]
  992. public static extern int av_parse_cpu_flags([MarshalAs(UnmanagedType.LPStr)] string @s);
  993. [DllImport(libavutil, EntryPoint = "av_parse_cpu_caps", CallingConvention = CallingConvention.Cdecl)]
  994. public static extern int av_parse_cpu_caps(uint* @flags, [MarshalAs(UnmanagedType.LPStr)] string @s);
  995. [DllImport(libavutil, EntryPoint = "av_cpu_count", CallingConvention = CallingConvention.Cdecl)]
  996. public static extern int av_cpu_count();
  997. [DllImport(libavutil, EntryPoint = "av_buffer_alloc", CallingConvention = CallingConvention.Cdecl)]
  998. public static extern AVBufferRef* av_buffer_alloc(int @size);
  999. [DllImport(libavutil, EntryPoint = "av_buffer_allocz", CallingConvention = CallingConvention.Cdecl)]
  1000. public static extern AVBufferRef* av_buffer_allocz(int @size);
  1001. [DllImport(libavutil, EntryPoint = "av_buffer_create", CallingConvention = CallingConvention.Cdecl)]
  1002. public static extern AVBufferRef* av_buffer_create(sbyte* @data, int @size, IntPtr* @free, void* @opaque, int @flags);
  1003. [DllImport(libavutil, EntryPoint = "av_buffer_default_free", CallingConvention = CallingConvention.Cdecl)]
  1004. public static extern void av_buffer_default_free(void* @opaque, sbyte* @data);
  1005. [DllImport(libavutil, EntryPoint = "av_buffer_ref", CallingConvention = CallingConvention.Cdecl)]
  1006. public static extern AVBufferRef* av_buffer_ref(AVBufferRef* @buf);
  1007. [DllImport(libavutil, EntryPoint = "av_buffer_unref", CallingConvention = CallingConvention.Cdecl)]
  1008. public static extern void av_buffer_unref(AVBufferRef** @buf);
  1009. [DllImport(libavutil, EntryPoint = "av_buffer_is_writable", CallingConvention = CallingConvention.Cdecl)]
  1010. public static extern int av_buffer_is_writable(AVBufferRef* @buf);
  1011. [DllImport(libavutil, EntryPoint = "av_buffer_get_opaque", CallingConvention = CallingConvention.Cdecl)]
  1012. public static extern void* av_buffer_get_opaque(AVBufferRef* @buf);
  1013. [DllImport(libavutil, EntryPoint = "av_buffer_get_ref_count", CallingConvention = CallingConvention.Cdecl)]
  1014. public static extern int av_buffer_get_ref_count(AVBufferRef* @buf);
  1015. [DllImport(libavutil, EntryPoint = "av_buffer_make_writable", CallingConvention = CallingConvention.Cdecl)]
  1016. public static extern int av_buffer_make_writable(AVBufferRef** @buf);
  1017. [DllImport(libavutil, EntryPoint = "av_buffer_realloc", CallingConvention = CallingConvention.Cdecl)]
  1018. public static extern int av_buffer_realloc(AVBufferRef** @buf, int @size);
  1019. [DllImport(libavutil, EntryPoint = "av_buffer_pool_init", CallingConvention = CallingConvention.Cdecl)]
  1020. public static extern AVBufferPool* av_buffer_pool_init(int @size, IntPtr* @alloc);
  1021. [DllImport(libavutil, EntryPoint = "av_buffer_pool_uninit", CallingConvention = CallingConvention.Cdecl)]
  1022. public static extern void av_buffer_pool_uninit(AVBufferPool** @pool);
  1023. [DllImport(libavutil, EntryPoint = "av_buffer_pool_get", CallingConvention = CallingConvention.Cdecl)]
  1024. public static extern AVBufferRef* av_buffer_pool_get(AVBufferPool* @pool);
  1025. [DllImport(libavutil, EntryPoint = "av_dict_get", CallingConvention = CallingConvention.Cdecl)]
  1026. public static extern AVDictionaryEntry* av_dict_get(AVDictionary* @m, [MarshalAs(UnmanagedType.LPStr)] string @key, AVDictionaryEntry* @prev, int @flags);
  1027. [DllImport(libavutil, EntryPoint = "av_dict_count", CallingConvention = CallingConvention.Cdecl)]
  1028. public static extern int av_dict_count(AVDictionary* @m);
  1029. [DllImport(libavutil, EntryPoint = "av_dict_set", CallingConvention = CallingConvention.Cdecl)]
  1030. public static extern int av_dict_set(AVDictionary** @pm, [MarshalAs(UnmanagedType.LPStr)] string @key, [MarshalAs(UnmanagedType.LPStr)] string @value, int @flags);
  1031. [DllImport(libavutil, EntryPoint = "av_dict_set_int", CallingConvention = CallingConvention.Cdecl)]
  1032. public static extern int av_dict_set_int(AVDictionary** @pm, [MarshalAs(UnmanagedType.LPStr)] string @key, long @value, int @flags);
  1033. [DllImport(libavutil, EntryPoint = "av_dict_parse_string", CallingConvention = CallingConvention.Cdecl)]
  1034. public static extern int av_dict_parse_string(AVDictionary** @pm, [MarshalAs(UnmanagedType.LPStr)] string @str, [MarshalAs(UnmanagedType.LPStr)] string @key_val_sep, [MarshalAs(UnmanagedType.LPStr)] string @pairs_sep, int @flags);
  1035. [DllImport(libavutil, EntryPoint = "av_dict_copy", CallingConvention = CallingConvention.Cdecl)]
  1036. public static extern int av_dict_copy(AVDictionary** @dst, AVDictionary* @src, int @flags);
  1037. [DllImport(libavutil, EntryPoint = "av_dict_free", CallingConvention = CallingConvention.Cdecl)]
  1038. public static extern void av_dict_free(AVDictionary** @m);
  1039. [DllImport(libavutil, EntryPoint = "av_dict_get_string", CallingConvention = CallingConvention.Cdecl)]
  1040. public static extern int av_dict_get_string(AVDictionary* @m, sbyte** @buffer, sbyte @key_val_sep, sbyte @pairs_sep);
  1041. [DllImport(libavutil, EntryPoint = "av_frame_get_best_effort_timestamp", CallingConvention = CallingConvention.Cdecl)]
  1042. public static extern long av_frame_get_best_effort_timestamp(AVFrame* @frame);
  1043. [DllImport(libavutil, EntryPoint = "av_frame_set_best_effort_timestamp", CallingConvention = CallingConvention.Cdecl)]
  1044. public static extern void av_frame_set_best_effort_timestamp(AVFrame* @frame, long @val);
  1045. [DllImport(libavutil, EntryPoint = "av_frame_get_pkt_duration", CallingConvention = CallingConvention.Cdecl)]
  1046. public static extern long av_frame_get_pkt_duration(AVFrame* @frame);
  1047. [DllImport(libavutil, EntryPoint = "av_frame_set_pkt_duration", CallingConvention = CallingConvention.Cdecl)]
  1048. public static extern void av_frame_set_pkt_duration(AVFrame* @frame, long @val);
  1049. [DllImport(libavutil, EntryPoint = "av_frame_get_pkt_pos", CallingConvention = CallingConvention.Cdecl)]
  1050. public static extern long av_frame_get_pkt_pos(AVFrame* @frame);
  1051. [DllImport(libavutil, EntryPoint = "av_frame_set_pkt_pos", CallingConvention = CallingConvention.Cdecl)]
  1052. public static extern void av_frame_set_pkt_pos(AVFrame* @frame, long @val);
  1053. [DllImport(libavutil, EntryPoint = "av_frame_get_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  1054. public static extern long av_frame_get_channel_layout(AVFrame* @frame);
  1055. [DllImport(libavutil, EntryPoint = "av_frame_set_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  1056. public static extern void av_frame_set_channel_layout(AVFrame* @frame, long @val);
  1057. [DllImport(libavutil, EntryPoint = "av_frame_get_channels", CallingConvention = CallingConvention.Cdecl)]
  1058. public static extern int av_frame_get_channels(AVFrame* @frame);
  1059. [DllImport(libavutil, EntryPoint = "av_frame_set_channels", CallingConvention = CallingConvention.Cdecl)]
  1060. public static extern void av_frame_set_channels(AVFrame* @frame, int @val);
  1061. [DllImport(libavutil, EntryPoint = "av_frame_get_sample_rate", CallingConvention = CallingConvention.Cdecl)]
  1062. public static extern int av_frame_get_sample_rate(AVFrame* @frame);
  1063. [DllImport(libavutil, EntryPoint = "av_frame_set_sample_rate", CallingConvention = CallingConvention.Cdecl)]
  1064. public static extern void av_frame_set_sample_rate(AVFrame* @frame, int @val);
  1065. [DllImport(libavutil, EntryPoint = "av_frame_get_metadata", CallingConvention = CallingConvention.Cdecl)]
  1066. public static extern AVDictionary* av_frame_get_metadata(AVFrame* @frame);
  1067. [DllImport(libavutil, EntryPoint = "av_frame_set_metadata", CallingConvention = CallingConvention.Cdecl)]
  1068. public static extern void av_frame_set_metadata(AVFrame* @frame, AVDictionary* @val);
  1069. [DllImport(libavutil, EntryPoint = "av_frame_get_decode_error_flags", CallingConvention = CallingConvention.Cdecl)]
  1070. public static extern int av_frame_get_decode_error_flags(AVFrame* @frame);
  1071. [DllImport(libavutil, EntryPoint = "av_frame_set_decode_error_flags", CallingConvention = CallingConvention.Cdecl)]
  1072. public static extern void av_frame_set_decode_error_flags(AVFrame* @frame, int @val);
  1073. [DllImport(libavutil, EntryPoint = "av_frame_get_pkt_size", CallingConvention = CallingConvention.Cdecl)]
  1074. public static extern int av_frame_get_pkt_size(AVFrame* @frame);
  1075. [DllImport(libavutil, EntryPoint = "av_frame_set_pkt_size", CallingConvention = CallingConvention.Cdecl)]
  1076. public static extern void av_frame_set_pkt_size(AVFrame* @frame, int @val);
  1077. [DllImport(libavutil, EntryPoint = "avpriv_frame_get_metadatap", CallingConvention = CallingConvention.Cdecl)]
  1078. public static extern AVDictionary** avpriv_frame_get_metadatap(AVFrame* @frame);
  1079. [DllImport(libavutil, EntryPoint = "av_frame_get_qp_table", CallingConvention = CallingConvention.Cdecl)]
  1080. public static extern sbyte* av_frame_get_qp_table(AVFrame* @f, int* @stride, int* @type);
  1081. [DllImport(libavutil, EntryPoint = "av_frame_set_qp_table", CallingConvention = CallingConvention.Cdecl)]
  1082. public static extern int av_frame_set_qp_table(AVFrame* @f, AVBufferRef* @buf, int @stride, int @type);
  1083. [DllImport(libavutil, EntryPoint = "av_frame_get_colorspace", CallingConvention = CallingConvention.Cdecl)]
  1084. public static extern AVColorSpace av_frame_get_colorspace(AVFrame* @frame);
  1085. [DllImport(libavutil, EntryPoint = "av_frame_set_colorspace", CallingConvention = CallingConvention.Cdecl)]
  1086. public static extern void av_frame_set_colorspace(AVFrame* @frame, AVColorSpace @val);
  1087. [DllImport(libavutil, EntryPoint = "av_frame_get_color_range", CallingConvention = CallingConvention.Cdecl)]
  1088. public static extern AVColorRange av_frame_get_color_range(AVFrame* @frame);
  1089. [DllImport(libavutil, EntryPoint = "av_frame_set_color_range", CallingConvention = CallingConvention.Cdecl)]
  1090. public static extern void av_frame_set_color_range(AVFrame* @frame, AVColorRange @val);
  1091. [DllImport(libavutil, EntryPoint = "av_get_colorspace_name", CallingConvention = CallingConvention.Cdecl)]
  1092. public static extern string av_get_colorspace_name(AVColorSpace @val);
  1093. [DllImport(libavutil, EntryPoint = "av_frame_alloc", CallingConvention = CallingConvention.Cdecl)]
  1094. public static extern AVFrame* av_frame_alloc();
  1095. [DllImport(libavutil, EntryPoint = "av_frame_free", CallingConvention = CallingConvention.Cdecl)]
  1096. public static extern void av_frame_free(AVFrame** @frame);
  1097. [DllImport(libavutil, EntryPoint = "av_frame_ref", CallingConvention = CallingConvention.Cdecl)]
  1098. public static extern int av_frame_ref(AVFrame* @dst, AVFrame* @src);
  1099. [DllImport(libavutil, EntryPoint = "av_frame_clone", CallingConvention = CallingConvention.Cdecl)]
  1100. public static extern AVFrame* av_frame_clone(AVFrame* @src);
  1101. [DllImport(libavutil, EntryPoint = "av_frame_unref", CallingConvention = CallingConvention.Cdecl)]
  1102. public static extern void av_frame_unref(AVFrame* @frame);
  1103. [DllImport(libavutil, EntryPoint = "av_frame_move_ref", CallingConvention = CallingConvention.Cdecl)]
  1104. public static extern void av_frame_move_ref(AVFrame* @dst, AVFrame* @src);
  1105. [DllImport(libavutil, EntryPoint = "av_frame_get_buffer", CallingConvention = CallingConvention.Cdecl)]
  1106. public static extern int av_frame_get_buffer(AVFrame* @frame, int @align);
  1107. [DllImport(libavutil, EntryPoint = "av_frame_is_writable", CallingConvention = CallingConvention.Cdecl)]
  1108. public static extern int av_frame_is_writable(AVFrame* @frame);
  1109. [DllImport(libavutil, EntryPoint = "av_frame_make_writable", CallingConvention = CallingConvention.Cdecl)]
  1110. public static extern int av_frame_make_writable(AVFrame* @frame);
  1111. [DllImport(libavutil, EntryPoint = "av_frame_copy", CallingConvention = CallingConvention.Cdecl)]
  1112. public static extern int av_frame_copy(AVFrame* @dst, AVFrame* @src);
  1113. [DllImport(libavutil, EntryPoint = "av_frame_copy_props", CallingConvention = CallingConvention.Cdecl)]
  1114. public static extern int av_frame_copy_props(AVFrame* @dst, AVFrame* @src);
  1115. [DllImport(libavutil, EntryPoint = "av_frame_get_plane_buffer", CallingConvention = CallingConvention.Cdecl)]
  1116. public static extern AVBufferRef* av_frame_get_plane_buffer(AVFrame* @frame, int @plane);
  1117. [DllImport(libavutil, EntryPoint = "av_frame_new_side_data", CallingConvention = CallingConvention.Cdecl)]
  1118. public static extern AVFrameSideData* av_frame_new_side_data(AVFrame* @frame, AVFrameSideDataType @type, int @size);
  1119. [DllImport(libavutil, EntryPoint = "av_frame_get_side_data", CallingConvention = CallingConvention.Cdecl)]
  1120. public static extern AVFrameSideData* av_frame_get_side_data(AVFrame* @frame, AVFrameSideDataType @type);
  1121. [DllImport(libavutil, EntryPoint = "av_frame_remove_side_data", CallingConvention = CallingConvention.Cdecl)]
  1122. public static extern void av_frame_remove_side_data(AVFrame* @frame, AVFrameSideDataType @type);
  1123. [DllImport(libavutil, EntryPoint = "av_frame_side_data_name", CallingConvention = CallingConvention.Cdecl)]
  1124. public static extern string av_frame_side_data_name(AVFrameSideDataType @type);
  1125. [DllImport(libavutil, EntryPoint = "av_opt_show2", CallingConvention = CallingConvention.Cdecl)]
  1126. public static extern int av_opt_show2(void* @obj, void* @av_log_obj, int @req_flags, int @rej_flags);
  1127. [DllImport(libavutil, EntryPoint = "av_opt_set_defaults", CallingConvention = CallingConvention.Cdecl)]
  1128. public static extern void av_opt_set_defaults(void* @s);
  1129. [DllImport(libavutil, EntryPoint = "av_opt_set_defaults2", CallingConvention = CallingConvention.Cdecl)]
  1130. public static extern void av_opt_set_defaults2(void* @s, int @mask, int @flags);
  1131. [DllImport(libavutil, EntryPoint = "av_set_options_string", CallingConvention = CallingConvention.Cdecl)]
  1132. public static extern int av_set_options_string(void* @ctx, [MarshalAs(UnmanagedType.LPStr)] string @opts, [MarshalAs(UnmanagedType.LPStr)] string @key_val_sep, [MarshalAs(UnmanagedType.LPStr)] string @pairs_sep);
  1133. [DllImport(libavutil, EntryPoint = "av_opt_set_from_string", CallingConvention = CallingConvention.Cdecl)]
  1134. public static extern int av_opt_set_from_string(void* @ctx, [MarshalAs(UnmanagedType.LPStr)] string @opts, string[] @shorthand, [MarshalAs(UnmanagedType.LPStr)] string @key_val_sep, [MarshalAs(UnmanagedType.LPStr)] string @pairs_sep);
  1135. [DllImport(libavutil, EntryPoint = "av_opt_free", CallingConvention = CallingConvention.Cdecl)]
  1136. public static extern void av_opt_free(void* @obj);
  1137. [DllImport(libavutil, EntryPoint = "av_opt_flag_is_set", CallingConvention = CallingConvention.Cdecl)]
  1138. public static extern int av_opt_flag_is_set(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @field_name, [MarshalAs(UnmanagedType.LPStr)] string @flag_name);
  1139. [DllImport(libavutil, EntryPoint = "av_opt_set_dict", CallingConvention = CallingConvention.Cdecl)]
  1140. public static extern int av_opt_set_dict(void* @obj, AVDictionary** @options);
  1141. [DllImport(libavutil, EntryPoint = "av_opt_set_dict2", CallingConvention = CallingConvention.Cdecl)]
  1142. public static extern int av_opt_set_dict2(void* @obj, AVDictionary** @options, int @search_flags);
  1143. [DllImport(libavutil, EntryPoint = "av_opt_get_key_value", CallingConvention = CallingConvention.Cdecl)]
  1144. public static extern int av_opt_get_key_value(sbyte** @ropts, [MarshalAs(UnmanagedType.LPStr)] string @key_val_sep, [MarshalAs(UnmanagedType.LPStr)] string @pairs_sep, uint @flags, sbyte** @rkey, sbyte** @rval);
  1145. [DllImport(libavutil, EntryPoint = "av_opt_eval_flags", CallingConvention = CallingConvention.Cdecl)]
  1146. public static extern int av_opt_eval_flags(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, int* @flags_out);
  1147. [DllImport(libavutil, EntryPoint = "av_opt_eval_int", CallingConvention = CallingConvention.Cdecl)]
  1148. public static extern int av_opt_eval_int(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, int* @int_out);
  1149. [DllImport(libavutil, EntryPoint = "av_opt_eval_int64", CallingConvention = CallingConvention.Cdecl)]
  1150. public static extern int av_opt_eval_int64(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, long* @int64_out);
  1151. [DllImport(libavutil, EntryPoint = "av_opt_eval_float", CallingConvention = CallingConvention.Cdecl)]
  1152. public static extern int av_opt_eval_float(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, float* @float_out);
  1153. [DllImport(libavutil, EntryPoint = "av_opt_eval_double", CallingConvention = CallingConvention.Cdecl)]
  1154. public static extern int av_opt_eval_double(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, double* @double_out);
  1155. [DllImport(libavutil, EntryPoint = "av_opt_eval_q", CallingConvention = CallingConvention.Cdecl)]
  1156. public static extern int av_opt_eval_q(void* @obj, AVOption* @o, [MarshalAs(UnmanagedType.LPStr)] string @val, AVRational* @q_out);
  1157. [DllImport(libavutil, EntryPoint = "av_opt_find", CallingConvention = CallingConvention.Cdecl)]
  1158. public static extern AVOption* av_opt_find(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, [MarshalAs(UnmanagedType.LPStr)] string @unit, int @opt_flags, int @search_flags);
  1159. [DllImport(libavutil, EntryPoint = "av_opt_find2", CallingConvention = CallingConvention.Cdecl)]
  1160. public static extern AVOption* av_opt_find2(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, [MarshalAs(UnmanagedType.LPStr)] string @unit, int @opt_flags, int @search_flags, void** @target_obj);
  1161. [DllImport(libavutil, EntryPoint = "av_opt_next", CallingConvention = CallingConvention.Cdecl)]
  1162. public static extern AVOption* av_opt_next(void* @obj, AVOption* @prev);
  1163. [DllImport(libavutil, EntryPoint = "av_opt_child_next", CallingConvention = CallingConvention.Cdecl)]
  1164. public static extern void* av_opt_child_next(void* @obj, void* @prev);
  1165. [DllImport(libavutil, EntryPoint = "av_opt_child_class_next", CallingConvention = CallingConvention.Cdecl)]
  1166. public static extern AVClass* av_opt_child_class_next(AVClass* @parent, AVClass* @prev);
  1167. [DllImport(libavutil, EntryPoint = "av_opt_set", CallingConvention = CallingConvention.Cdecl)]
  1168. public static extern int av_opt_set(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, [MarshalAs(UnmanagedType.LPStr)] string @val, int @search_flags);
  1169. [DllImport(libavutil, EntryPoint = "av_opt_set_int", CallingConvention = CallingConvention.Cdecl)]
  1170. public static extern int av_opt_set_int(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, long @val, int @search_flags);
  1171. [DllImport(libavutil, EntryPoint = "av_opt_set_double", CallingConvention = CallingConvention.Cdecl)]
  1172. public static extern int av_opt_set_double(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, double @val, int @search_flags);
  1173. [DllImport(libavutil, EntryPoint = "av_opt_set_q", CallingConvention = CallingConvention.Cdecl)]
  1174. public static extern int av_opt_set_q(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, AVRational @val, int @search_flags);
  1175. [DllImport(libavutil, EntryPoint = "av_opt_set_bin", CallingConvention = CallingConvention.Cdecl)]
  1176. public static extern int av_opt_set_bin(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, sbyte* @val, int @size, int @search_flags);
  1177. [DllImport(libavutil, EntryPoint = "av_opt_set_image_size", CallingConvention = CallingConvention.Cdecl)]
  1178. public static extern int av_opt_set_image_size(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @w, int @h, int @search_flags);
  1179. [DllImport(libavutil, EntryPoint = "av_opt_set_pixel_fmt", CallingConvention = CallingConvention.Cdecl)]
  1180. public static extern int av_opt_set_pixel_fmt(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, AVPixelFormat @fmt, int @search_flags);
  1181. [DllImport(libavutil, EntryPoint = "av_opt_set_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  1182. public static extern int av_opt_set_sample_fmt(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, AVSampleFormat @fmt, int @search_flags);
  1183. [DllImport(libavutil, EntryPoint = "av_opt_set_video_rate", CallingConvention = CallingConvention.Cdecl)]
  1184. public static extern int av_opt_set_video_rate(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, AVRational @val, int @search_flags);
  1185. [DllImport(libavutil, EntryPoint = "av_opt_set_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  1186. public static extern int av_opt_set_channel_layout(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, long @ch_layout, int @search_flags);
  1187. [DllImport(libavutil, EntryPoint = "av_opt_set_dict_val", CallingConvention = CallingConvention.Cdecl)]
  1188. public static extern int av_opt_set_dict_val(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, AVDictionary* @val, int @search_flags);
  1189. [DllImport(libavutil, EntryPoint = "av_opt_get", CallingConvention = CallingConvention.Cdecl)]
  1190. public static extern int av_opt_get(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, sbyte** @out_val);
  1191. [DllImport(libavutil, EntryPoint = "av_opt_get_int", CallingConvention = CallingConvention.Cdecl)]
  1192. public static extern int av_opt_get_int(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, long* @out_val);
  1193. [DllImport(libavutil, EntryPoint = "av_opt_get_double", CallingConvention = CallingConvention.Cdecl)]
  1194. public static extern int av_opt_get_double(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, double* @out_val);
  1195. [DllImport(libavutil, EntryPoint = "av_opt_get_q", CallingConvention = CallingConvention.Cdecl)]
  1196. public static extern int av_opt_get_q(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, AVRational* @out_val);
  1197. [DllImport(libavutil, EntryPoint = "av_opt_get_image_size", CallingConvention = CallingConvention.Cdecl)]
  1198. public static extern int av_opt_get_image_size(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, int* @w_out, int* @h_out);
  1199. [DllImport(libavutil, EntryPoint = "av_opt_get_pixel_fmt", CallingConvention = CallingConvention.Cdecl)]
  1200. public static extern int av_opt_get_pixel_fmt(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, AVPixelFormat* @out_fmt);
  1201. [DllImport(libavutil, EntryPoint = "av_opt_get_sample_fmt", CallingConvention = CallingConvention.Cdecl)]
  1202. public static extern int av_opt_get_sample_fmt(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, AVSampleFormat* @out_fmt);
  1203. [DllImport(libavutil, EntryPoint = "av_opt_get_video_rate", CallingConvention = CallingConvention.Cdecl)]
  1204. public static extern int av_opt_get_video_rate(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, AVRational* @out_val);
  1205. [DllImport(libavutil, EntryPoint = "av_opt_get_channel_layout", CallingConvention = CallingConvention.Cdecl)]
  1206. public static extern int av_opt_get_channel_layout(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, long* @ch_layout);
  1207. [DllImport(libavutil, EntryPoint = "av_opt_get_dict_val", CallingConvention = CallingConvention.Cdecl)]
  1208. public static extern int av_opt_get_dict_val(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags, AVDictionary** @out_val);
  1209. [DllImport(libavutil, EntryPoint = "av_opt_ptr", CallingConvention = CallingConvention.Cdecl)]
  1210. public static extern void* av_opt_ptr(AVClass* @avclass, void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name);
  1211. [DllImport(libavutil, EntryPoint = "av_opt_freep_ranges", CallingConvention = CallingConvention.Cdecl)]
  1212. public static extern void av_opt_freep_ranges(AVOptionRanges** @ranges);
  1213. [DllImport(libavutil, EntryPoint = "av_opt_query_ranges", CallingConvention = CallingConvention.Cdecl)]
  1214. public static extern int av_opt_query_ranges(AVOptionRanges** @param0, void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @key, int @flags);
  1215. [DllImport(libavutil, EntryPoint = "av_opt_copy", CallingConvention = CallingConvention.Cdecl)]
  1216. public static extern int av_opt_copy(void* @dest, void* @src);
  1217. [DllImport(libavutil, EntryPoint = "av_opt_query_ranges_default", CallingConvention = CallingConvention.Cdecl)]
  1218. public static extern int av_opt_query_ranges_default(AVOptionRanges** @param0, void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @key, int @flags);
  1219. [DllImport(libavutil, EntryPoint = "av_opt_is_set_to_default", CallingConvention = CallingConvention.Cdecl)]
  1220. public static extern int av_opt_is_set_to_default(void* @obj, AVOption* @o);
  1221. [DllImport(libavutil, EntryPoint = "av_opt_is_set_to_default_by_name", CallingConvention = CallingConvention.Cdecl)]
  1222. public static extern int av_opt_is_set_to_default_by_name(void* @obj, [MarshalAs(UnmanagedType.LPStr)] string @name, int @search_flags);
  1223. [DllImport(libavutil, EntryPoint = "av_opt_serialize", CallingConvention = CallingConvention.Cdecl)]
  1224. public static extern int av_opt_serialize(void* @obj, int @opt_flags, int @flags, sbyte** @buffer, sbyte @key_val_sep, sbyte @pairs_sep);
  1225. [DllImport(libavutil, EntryPoint = "av_read_image_line", CallingConvention = CallingConvention.Cdecl)]
  1226. public static extern void av_read_image_line(ushort* @dst, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @linesize, AVPixFmtDescriptor* @desc, int @x, int @y, int @c, int @w, int @read_pal_component);
  1227. [DllImport(libavutil, EntryPoint = "av_write_image_line", CallingConvention = CallingConvention.Cdecl)]
  1228. public static extern void av_write_image_line(ushort* @src, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @linesize, AVPixFmtDescriptor* @desc, int @x, int @y, int @c, int @w);
  1229. [DllImport(libavutil, EntryPoint = "av_get_pix_fmt", CallingConvention = CallingConvention.Cdecl)]
  1230. public static extern AVPixelFormat av_get_pix_fmt([MarshalAs(UnmanagedType.LPStr)] string @name);
  1231. [DllImport(libavutil, EntryPoint = "av_get_pix_fmt_name", CallingConvention = CallingConvention.Cdecl)]
  1232. public static extern string av_get_pix_fmt_name(AVPixelFormat @pix_fmt);
  1233. [DllImport(libavutil, EntryPoint = "av_get_pix_fmt_string", CallingConvention = CallingConvention.Cdecl)]
  1234. public static extern sbyte* av_get_pix_fmt_string(IntPtr @buf, int @buf_size, AVPixelFormat @pix_fmt);
  1235. [DllImport(libavutil, EntryPoint = "av_get_bits_per_pixel", CallingConvention = CallingConvention.Cdecl)]
  1236. public static extern int av_get_bits_per_pixel(AVPixFmtDescriptor* @pixdesc);
  1237. [DllImport(libavutil, EntryPoint = "av_get_padded_bits_per_pixel", CallingConvention = CallingConvention.Cdecl)]
  1238. public static extern int av_get_padded_bits_per_pixel(AVPixFmtDescriptor* @pixdesc);
  1239. [DllImport(libavutil, EntryPoint = "av_pix_fmt_desc_get", CallingConvention = CallingConvention.Cdecl)]
  1240. public static extern AVPixFmtDescriptor* av_pix_fmt_desc_get(AVPixelFormat @pix_fmt);
  1241. [DllImport(libavutil, EntryPoint = "av_pix_fmt_desc_next", CallingConvention = CallingConvention.Cdecl)]
  1242. public static extern AVPixFmtDescriptor* av_pix_fmt_desc_next(AVPixFmtDescriptor* @prev);
  1243. [DllImport(libavutil, EntryPoint = "av_pix_fmt_desc_get_id", CallingConvention = CallingConvention.Cdecl)]
  1244. public static extern AVPixelFormat av_pix_fmt_desc_get_id(AVPixFmtDescriptor* @desc);
  1245. [DllImport(libavutil, EntryPoint = "av_pix_fmt_get_chroma_sub_sample", CallingConvention = CallingConvention.Cdecl)]
  1246. public static extern int av_pix_fmt_get_chroma_sub_sample(AVPixelFormat @pix_fmt, int* @h_shift, int* @v_shift);
  1247. [DllImport(libavutil, EntryPoint = "av_pix_fmt_count_planes", CallingConvention = CallingConvention.Cdecl)]
  1248. public static extern int av_pix_fmt_count_planes(AVPixelFormat @pix_fmt);
  1249. [DllImport(libavutil, EntryPoint = "av_pix_fmt_swap_endianness", CallingConvention = CallingConvention.Cdecl)]
  1250. public static extern AVPixelFormat av_pix_fmt_swap_endianness(AVPixelFormat @pix_fmt);
  1251. [DllImport(libavutil, EntryPoint = "av_get_pix_fmt_loss", CallingConvention = CallingConvention.Cdecl)]
  1252. public static extern int av_get_pix_fmt_loss(AVPixelFormat @dst_pix_fmt, AVPixelFormat @src_pix_fmt, int @has_alpha);
  1253. [DllImport(libavutil, EntryPoint = "av_find_best_pix_fmt_of_2", CallingConvention = CallingConvention.Cdecl)]
  1254. public static extern AVPixelFormat av_find_best_pix_fmt_of_2(AVPixelFormat @dst_pix_fmt1, AVPixelFormat @dst_pix_fmt2, AVPixelFormat @src_pix_fmt, int @has_alpha, int* @loss_ptr);
  1255. [DllImport(libavutil, EntryPoint = "av_color_range_name", CallingConvention = CallingConvention.Cdecl)]
  1256. public static extern string av_color_range_name(AVColorRange @range);
  1257. [DllImport(libavutil, EntryPoint = "av_color_primaries_name", CallingConvention = CallingConvention.Cdecl)]
  1258. public static extern string av_color_primaries_name(AVColorPrimaries @primaries);
  1259. [DllImport(libavutil, EntryPoint = "av_color_transfer_name", CallingConvention = CallingConvention.Cdecl)]
  1260. public static extern string av_color_transfer_name(AVColorTransferCharacteristic @transfer);
  1261. [DllImport(libavutil, EntryPoint = "av_color_space_name", CallingConvention = CallingConvention.Cdecl)]
  1262. public static extern string av_color_space_name(AVColorSpace @space);
  1263. [DllImport(libavutil, EntryPoint = "av_chroma_location_name", CallingConvention = CallingConvention.Cdecl)]
  1264. public static extern string av_chroma_location_name(AVChromaLocation @location);
  1265. [DllImport(libavutil, EntryPoint = "av_image_fill_max_pixsteps", CallingConvention = CallingConvention.Cdecl)]
  1266. public static extern void av_image_fill_max_pixsteps([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @max_pixsteps, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @max_pixstep_comps, AVPixFmtDescriptor* @pixdesc);
  1267. [DllImport(libavutil, EntryPoint = "av_image_get_linesize", CallingConvention = CallingConvention.Cdecl)]
  1268. public static extern int av_image_get_linesize(AVPixelFormat @pix_fmt, int @width, int @plane);
  1269. [DllImport(libavutil, EntryPoint = "av_image_fill_linesizes", CallingConvention = CallingConvention.Cdecl)]
  1270. public static extern int av_image_fill_linesizes([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @linesizes, AVPixelFormat @pix_fmt, int @width);
  1271. [DllImport(libavutil, EntryPoint = "av_image_fill_pointers", CallingConvention = CallingConvention.Cdecl)]
  1272. public static extern int av_image_fill_pointers([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @data, AVPixelFormat @pix_fmt, int @height, sbyte* @ptr, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @linesizes);
  1273. [DllImport(libavutil, EntryPoint = "av_image_alloc", CallingConvention = CallingConvention.Cdecl)]
  1274. public static extern int av_image_alloc([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @pointers, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @linesizes, int @w, int @h, AVPixelFormat @pix_fmt, int @align);
  1275. [DllImport(libavutil, EntryPoint = "av_image_copy_plane", CallingConvention = CallingConvention.Cdecl)]
  1276. public static extern void av_image_copy_plane(sbyte* @dst, int @dst_linesize, sbyte* @src, int @src_linesize, int @bytewidth, int @height);
  1277. [DllImport(libavutil, EntryPoint = "av_image_copy", CallingConvention = CallingConvention.Cdecl)]
  1278. public static extern void av_image_copy([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @dst_data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @dst_linesizes, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @src_data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @src_linesizes, AVPixelFormat @pix_fmt, int @width, int @height);
  1279. [DllImport(libavutil, EntryPoint = "av_image_fill_arrays", CallingConvention = CallingConvention.Cdecl)]
  1280. public static extern int av_image_fill_arrays([MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @dst_data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @dst_linesize, sbyte* @src, AVPixelFormat @pix_fmt, int @width, int @height, int @align);
  1281. [DllImport(libavutil, EntryPoint = "av_image_get_buffer_size", CallingConvention = CallingConvention.Cdecl)]
  1282. public static extern int av_image_get_buffer_size(AVPixelFormat @pix_fmt, int @width, int @height, int @align);
  1283. [DllImport(libavutil, EntryPoint = "av_image_copy_to_buffer", CallingConvention = CallingConvention.Cdecl)]
  1284. public static extern int av_image_copy_to_buffer(sbyte* @dst, int @dst_size, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] sbyte*[] @src_data, [MarshalAs(UnmanagedType.LPArray, SizeConst=4)] int[] @src_linesize, AVPixelFormat @pix_fmt, int @width, int @height, int @align);
  1285. [DllImport(libavutil, EntryPoint = "av_image_check_size", CallingConvention = CallingConvention.Cdecl)]
  1286. public static extern int av_image_check_size(uint @w, uint @h, int @log_offset, void* @log_ctx);
  1287. [DllImport(libavutil, EntryPoint = "av_image_check_sar", CallingConvention = CallingConvention.Cdecl)]
  1288. public static extern int av_image_check_sar(uint @w, uint @h, AVRational @sar);
  1289. }
  1290. }
  1291. #endif