FFmpeg.avcodec.g.cs 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817
  1. #if UNITY_EDITOR || UNITY_STANDALONE
  2. using System;
  3. using System.Runtime.InteropServices;
  4. namespace FFmpeg.AutoGen
  5. {
  6. public unsafe partial struct AVBuffer
  7. {
  8. }
  9. public unsafe partial struct AVBufferPool
  10. {
  11. }
  12. public unsafe partial struct AVBPrint
  13. {
  14. }
  15. public unsafe partial struct AVDictionary
  16. {
  17. }
  18. public unsafe partial struct AVCodecDescriptor
  19. {
  20. public AVCodecID @id;
  21. public AVMediaType @type;
  22. public sbyte* @name;
  23. public sbyte* @long_name;
  24. public int @props;
  25. public sbyte** @mime_types;
  26. public AVProfile* @profiles;
  27. }
  28. public unsafe partial struct AVProfile
  29. {
  30. }
  31. public unsafe partial struct RcOverride
  32. {
  33. public int @start_frame;
  34. public int @end_frame;
  35. public int @qscale;
  36. public float @quality_factor;
  37. }
  38. public unsafe partial struct AVPanScan
  39. {
  40. public int @id;
  41. public int @width;
  42. public int @height;
  43. public fixed short @position0[2]; public fixed short @position1[2]; public fixed short @position2[2];
  44. }
  45. public unsafe partial struct AVCPBProperties
  46. {
  47. public int @max_bitrate;
  48. public int @min_bitrate;
  49. public int @avg_bitrate;
  50. public int @buffer_size;
  51. public ulong @vbv_delay;
  52. }
  53. public unsafe partial struct AVPacketSideData
  54. {
  55. public sbyte* @data;
  56. public int @size;
  57. public AVPacketSideDataType @type;
  58. }
  59. public unsafe partial struct AVPacket
  60. {
  61. public AVBufferRef* @buf;
  62. public long @pts;
  63. public long @dts;
  64. public sbyte* @data;
  65. public int @size;
  66. public int @stream_index;
  67. public int @flags;
  68. public AVPacketSideData* @side_data;
  69. public int @side_data_elems;
  70. public long @duration;
  71. public long @pos;
  72. public long @convergence_duration;
  73. }
  74. public unsafe partial struct AVCodecInternal
  75. {
  76. }
  77. public unsafe partial struct AVCodecContext
  78. {
  79. public AVClass* @av_class;
  80. public int @log_level_offset;
  81. public AVMediaType @codec_type;
  82. public AVCodec* @codec;
  83. public fixed sbyte @codec_name[32];
  84. public AVCodecID @codec_id;
  85. public uint @codec_tag;
  86. public uint @stream_codec_tag;
  87. public void* @priv_data;
  88. public AVCodecInternal* @internal;
  89. public void* @opaque;
  90. public long @bit_rate;
  91. public int @bit_rate_tolerance;
  92. public int @global_quality;
  93. public int @compression_level;
  94. public int @flags;
  95. public int @flags2;
  96. public sbyte* @extradata;
  97. public int @extradata_size;
  98. public AVRational @time_base;
  99. public int @ticks_per_frame;
  100. public int @delay;
  101. public int @width;
  102. public int @height;
  103. public int @coded_width;
  104. public int @coded_height;
  105. public int @gop_size;
  106. public AVPixelFormat @pix_fmt;
  107. public int @me_method;
  108. public IntPtr @draw_horiz_band;
  109. public IntPtr @get_format;
  110. public int @max_b_frames;
  111. public float @b_quant_factor;
  112. public int @rc_strategy;
  113. public int @b_frame_strategy;
  114. public float @b_quant_offset;
  115. public int @has_b_frames;
  116. public int @mpeg_quant;
  117. public float @i_quant_factor;
  118. public float @i_quant_offset;
  119. public float @lumi_masking;
  120. public float @temporal_cplx_masking;
  121. public float @spatial_cplx_masking;
  122. public float @p_masking;
  123. public float @dark_masking;
  124. public int @slice_count;
  125. public int @prediction_method;
  126. public int* @slice_offset;
  127. public AVRational @sample_aspect_ratio;
  128. public int @me_cmp;
  129. public int @me_sub_cmp;
  130. public int @mb_cmp;
  131. public int @ildct_cmp;
  132. public int @dia_size;
  133. public int @last_predictor_count;
  134. public int @pre_me;
  135. public int @me_pre_cmp;
  136. public int @pre_dia_size;
  137. public int @me_subpel_quality;
  138. public int @dtg_active_format;
  139. public int @me_range;
  140. public int @intra_quant_bias;
  141. public int @inter_quant_bias;
  142. public int @slice_flags;
  143. public int @xvmc_acceleration;
  144. public int @mb_decision;
  145. public ushort* @intra_matrix;
  146. public ushort* @inter_matrix;
  147. public int @scenechange_threshold;
  148. public int @noise_reduction;
  149. public int @me_threshold;
  150. public int @mb_threshold;
  151. public int @intra_dc_precision;
  152. public int @skip_top;
  153. public int @skip_bottom;
  154. public float @border_masking;
  155. public int @mb_lmin;
  156. public int @mb_lmax;
  157. public int @me_penalty_compensation;
  158. public int @bidir_refine;
  159. public int @brd_scale;
  160. public int @keyint_min;
  161. public int @refs;
  162. public int @chromaoffset;
  163. public int @scenechange_factor;
  164. public int @mv0_threshold;
  165. public int @b_sensitivity;
  166. public AVColorPrimaries @color_primaries;
  167. public AVColorTransferCharacteristic @color_trc;
  168. public AVColorSpace @colorspace;
  169. public AVColorRange @color_range;
  170. public AVChromaLocation @chroma_sample_location;
  171. public int @slices;
  172. public AVFieldOrder @field_order;
  173. public int @sample_rate;
  174. public int @channels;
  175. public AVSampleFormat @sample_fmt;
  176. public int @frame_size;
  177. public int @frame_number;
  178. public int @block_align;
  179. public int @cutoff;
  180. public ulong @channel_layout;
  181. public ulong @request_channel_layout;
  182. public AVAudioServiceType @audio_service_type;
  183. public AVSampleFormat @request_sample_fmt;
  184. public IntPtr @get_buffer2;
  185. public int @refcounted_frames;
  186. public float @qcompress;
  187. public float @qblur;
  188. public int @qmin;
  189. public int @qmax;
  190. public int @max_qdiff;
  191. public float @rc_qsquish;
  192. public float @rc_qmod_amp;
  193. public int @rc_qmod_freq;
  194. public int @rc_buffer_size;
  195. public int @rc_override_count;
  196. public RcOverride* @rc_override;
  197. public sbyte* @rc_eq;
  198. public long @rc_max_rate;
  199. public long @rc_min_rate;
  200. public float @rc_buffer_aggressivity;
  201. public float @rc_initial_cplx;
  202. public float @rc_max_available_vbv_use;
  203. public float @rc_min_vbv_overflow_use;
  204. public int @rc_initial_buffer_occupancy;
  205. public int @coder_type;
  206. public int @context_model;
  207. public int @lmin;
  208. public int @lmax;
  209. public int @frame_skip_threshold;
  210. public int @frame_skip_factor;
  211. public int @frame_skip_exp;
  212. public int @frame_skip_cmp;
  213. public int @trellis;
  214. public int @min_prediction_order;
  215. public int @max_prediction_order;
  216. public long @timecode_frame_start;
  217. public IntPtr @rtp_callback;
  218. public int @rtp_payload_size;
  219. public int @mv_bits;
  220. public int @header_bits;
  221. public int @i_tex_bits;
  222. public int @p_tex_bits;
  223. public int @i_count;
  224. public int @p_count;
  225. public int @skip_count;
  226. public int @misc_bits;
  227. public int @frame_bits;
  228. public sbyte* @stats_out;
  229. public sbyte* @stats_in;
  230. public int @workaround_bugs;
  231. public int @strict_std_compliance;
  232. public int @error_concealment;
  233. public int @debug;
  234. public int @debug_mv;
  235. public int @err_recognition;
  236. public long @reordered_opaque;
  237. public AVHWAccel* @hwaccel;
  238. public void* @hwaccel_context;
  239. public fixed ulong @error[8];
  240. public int @dct_algo;
  241. public int @idct_algo;
  242. public int @bits_per_coded_sample;
  243. public int @bits_per_raw_sample;
  244. public int @lowres;
  245. public AVFrame* @coded_frame;
  246. public int @thread_count;
  247. public int @thread_type;
  248. public int @active_thread_type;
  249. public int @thread_safe_callbacks;
  250. public IntPtr @execute;
  251. public IntPtr @execute2;
  252. public int @nsse_weight;
  253. public int @profile;
  254. public int @level;
  255. public AVDiscard @skip_loop_filter;
  256. public AVDiscard @skip_idct;
  257. public AVDiscard @skip_frame;
  258. public sbyte* @subtitle_header;
  259. public int @subtitle_header_size;
  260. public int @error_rate;
  261. public ulong @vbv_delay;
  262. public int @side_data_only_packets;
  263. public int @initial_padding;
  264. public AVRational @framerate;
  265. public AVPixelFormat @sw_pix_fmt;
  266. public AVRational @pkt_timebase;
  267. public AVCodecDescriptor* @codec_descriptor;
  268. public long @pts_correction_num_faulty_pts;
  269. public long @pts_correction_num_faulty_dts;
  270. public long @pts_correction_last_pts;
  271. public long @pts_correction_last_dts;
  272. public sbyte* @sub_charenc;
  273. public int @sub_charenc_mode;
  274. public int @skip_alpha;
  275. public int @seek_preroll;
  276. public ushort* @chroma_intra_matrix;
  277. public sbyte* @dump_separator;
  278. public sbyte* @codec_whitelist;
  279. public uint @properties;
  280. public AVPacketSideData* @coded_side_data;
  281. public int @nb_coded_side_data;
  282. }
  283. public unsafe partial struct AVHWAccel
  284. {
  285. }
  286. public unsafe partial struct AVCodec
  287. {
  288. }
  289. public unsafe partial struct AVProfile
  290. {
  291. public int @profile;
  292. public sbyte* @name;
  293. }
  294. public unsafe partial struct AVCodecDefault
  295. {
  296. }
  297. public unsafe partial struct AVSubtitle
  298. {
  299. }
  300. public unsafe partial struct AVCodec
  301. {
  302. public sbyte* @name;
  303. public sbyte* @long_name;
  304. public AVMediaType @type;
  305. public AVCodecID @id;
  306. public int @capabilities;
  307. public AVRational* @supported_framerates;
  308. public AVPixelFormat* @pix_fmts;
  309. public int* @supported_samplerates;
  310. public AVSampleFormat* @sample_fmts;
  311. public ulong* @channel_layouts;
  312. public sbyte @max_lowres;
  313. public AVClass* @priv_class;
  314. public AVProfile* @profiles;
  315. public int @priv_data_size;
  316. public AVCodec* @next;
  317. public IntPtr @init_thread_copy;
  318. public IntPtr @update_thread_context;
  319. public AVCodecDefault* @defaults;
  320. public IntPtr @init_static_data;
  321. public IntPtr @init;
  322. public IntPtr @encode_sub;
  323. public IntPtr @encode2;
  324. public IntPtr @decode;
  325. public IntPtr @close;
  326. public IntPtr @flush;
  327. public int @caps_internal;
  328. }
  329. public unsafe partial struct MpegEncContext
  330. {
  331. }
  332. public unsafe partial struct AVHWAccel
  333. {
  334. public sbyte* @name;
  335. public AVMediaType @type;
  336. public AVCodecID @id;
  337. public AVPixelFormat @pix_fmt;
  338. public int @capabilities;
  339. public AVHWAccel* @next;
  340. public IntPtr @alloc_frame;
  341. public IntPtr @start_frame;
  342. public IntPtr @decode_slice;
  343. public IntPtr @end_frame;
  344. public int @frame_priv_data_size;
  345. public IntPtr @decode_mb;
  346. public IntPtr @init;
  347. public IntPtr @uninit;
  348. public int @priv_data_size;
  349. }
  350. public unsafe partial struct AVPicture
  351. {
  352. public sbyte* @data0; public sbyte* @data1; public sbyte* @data2; public sbyte* @data3; public sbyte* @data4; public sbyte* @data5; public sbyte* @data6; public sbyte* @data7;
  353. public fixed int @linesize[8];
  354. }
  355. public unsafe partial struct AVSubtitleRect
  356. {
  357. public int @x;
  358. public int @y;
  359. public int @w;
  360. public int @h;
  361. public int @nb_colors;
  362. public AVPicture @pict;
  363. public sbyte* @data0; public sbyte* @data1; public sbyte* @data2; public sbyte* @data3;
  364. public fixed int @linesize[4];
  365. public AVSubtitleType @type;
  366. public sbyte* @text;
  367. public sbyte* @ass;
  368. public int @flags;
  369. }
  370. public unsafe partial struct AVSubtitle
  371. {
  372. public ushort @format;
  373. public uint @start_display_time;
  374. public uint @end_display_time;
  375. public uint @num_rects;
  376. public AVSubtitleRect** @rects;
  377. public long @pts;
  378. }
  379. public unsafe partial struct AVCodecParserContext
  380. {
  381. public void* @priv_data;
  382. public AVCodecParser* @parser;
  383. public long @frame_offset;
  384. public long @cur_offset;
  385. public long @next_frame_offset;
  386. public int @pict_type;
  387. public int @repeat_pict;
  388. public long @pts;
  389. public long @dts;
  390. public long @last_pts;
  391. public long @last_dts;
  392. public int @fetch_timestamp;
  393. public int @cur_frame_start_index;
  394. public fixed long @cur_frame_offset[4];
  395. public fixed long @cur_frame_pts[4];
  396. public fixed long @cur_frame_dts[4];
  397. public int @flags;
  398. public long @offset;
  399. public fixed long @cur_frame_end[4];
  400. public int @key_frame;
  401. public long @convergence_duration;
  402. public int @dts_sync_point;
  403. public int @dts_ref_dts_delta;
  404. public int @pts_dts_delta;
  405. public fixed long @cur_frame_pos[4];
  406. public long @pos;
  407. public long @last_pos;
  408. public int @duration;
  409. public AVFieldOrder @field_order;
  410. public AVPictureStructure @picture_structure;
  411. public int @output_picture_number;
  412. public int @width;
  413. public int @height;
  414. public int @coded_width;
  415. public int @coded_height;
  416. public int @format;
  417. }
  418. public unsafe partial struct AVCodecParser
  419. {
  420. }
  421. public unsafe partial struct AVCodecParser
  422. {
  423. public fixed int @codec_ids[5];
  424. public int @priv_data_size;
  425. public IntPtr @parser_init;
  426. public IntPtr @parser_parse;
  427. public IntPtr @parser_close;
  428. public IntPtr @split;
  429. public AVCodecParser* @next;
  430. }
  431. public unsafe partial struct ReSampleContext
  432. {
  433. }
  434. public unsafe partial struct AVResampleContext
  435. {
  436. }
  437. public unsafe partial struct AVBitStreamFilterContext
  438. {
  439. public void* @priv_data;
  440. public AVBitStreamFilter* @filter;
  441. public AVCodecParserContext* @parser;
  442. public AVBitStreamFilterContext* @next;
  443. public sbyte* @args;
  444. }
  445. public unsafe partial struct AVBitStreamFilter
  446. {
  447. }
  448. public unsafe partial struct AVBitStreamFilter
  449. {
  450. public sbyte* @name;
  451. public int @priv_data_size;
  452. public IntPtr @filter;
  453. public IntPtr @close;
  454. public AVBitStreamFilter* @next;
  455. }
  456. public enum AVCodecID : int
  457. {
  458. @AV_CODEC_ID_NONE = 0,
  459. @AV_CODEC_ID_MPEG1VIDEO = 1,
  460. @AV_CODEC_ID_MPEG2VIDEO = 2,
  461. @AV_CODEC_ID_MPEG2VIDEO_XVMC = 3,
  462. @AV_CODEC_ID_H261 = 4,
  463. @AV_CODEC_ID_H263 = 5,
  464. @AV_CODEC_ID_RV10 = 6,
  465. @AV_CODEC_ID_RV20 = 7,
  466. @AV_CODEC_ID_MJPEG = 8,
  467. @AV_CODEC_ID_MJPEGB = 9,
  468. @AV_CODEC_ID_LJPEG = 10,
  469. @AV_CODEC_ID_SP5X = 11,
  470. @AV_CODEC_ID_JPEGLS = 12,
  471. @AV_CODEC_ID_MPEG4 = 13,
  472. @AV_CODEC_ID_RAWVIDEO = 14,
  473. @AV_CODEC_ID_MSMPEG4V1 = 15,
  474. @AV_CODEC_ID_MSMPEG4V2 = 16,
  475. @AV_CODEC_ID_MSMPEG4V3 = 17,
  476. @AV_CODEC_ID_WMV1 = 18,
  477. @AV_CODEC_ID_WMV2 = 19,
  478. @AV_CODEC_ID_H263P = 20,
  479. @AV_CODEC_ID_H263I = 21,
  480. @AV_CODEC_ID_FLV1 = 22,
  481. @AV_CODEC_ID_SVQ1 = 23,
  482. @AV_CODEC_ID_SVQ3 = 24,
  483. @AV_CODEC_ID_DVVIDEO = 25,
  484. @AV_CODEC_ID_HUFFYUV = 26,
  485. @AV_CODEC_ID_CYUV = 27,
  486. @AV_CODEC_ID_H264 = 28,
  487. @AV_CODEC_ID_INDEO3 = 29,
  488. @AV_CODEC_ID_VP3 = 30,
  489. @AV_CODEC_ID_THEORA = 31,
  490. @AV_CODEC_ID_ASV1 = 32,
  491. @AV_CODEC_ID_ASV2 = 33,
  492. @AV_CODEC_ID_FFV1 = 34,
  493. @AV_CODEC_ID_4XM = 35,
  494. @AV_CODEC_ID_VCR1 = 36,
  495. @AV_CODEC_ID_CLJR = 37,
  496. @AV_CODEC_ID_MDEC = 38,
  497. @AV_CODEC_ID_ROQ = 39,
  498. @AV_CODEC_ID_INTERPLAY_VIDEO = 40,
  499. @AV_CODEC_ID_XAN_WC3 = 41,
  500. @AV_CODEC_ID_XAN_WC4 = 42,
  501. @AV_CODEC_ID_RPZA = 43,
  502. @AV_CODEC_ID_CINEPAK = 44,
  503. @AV_CODEC_ID_WS_VQA = 45,
  504. @AV_CODEC_ID_MSRLE = 46,
  505. @AV_CODEC_ID_MSVIDEO1 = 47,
  506. @AV_CODEC_ID_IDCIN = 48,
  507. @AV_CODEC_ID_8BPS = 49,
  508. @AV_CODEC_ID_SMC = 50,
  509. @AV_CODEC_ID_FLIC = 51,
  510. @AV_CODEC_ID_TRUEMOTION1 = 52,
  511. @AV_CODEC_ID_VMDVIDEO = 53,
  512. @AV_CODEC_ID_MSZH = 54,
  513. @AV_CODEC_ID_ZLIB = 55,
  514. @AV_CODEC_ID_QTRLE = 56,
  515. @AV_CODEC_ID_TSCC = 57,
  516. @AV_CODEC_ID_ULTI = 58,
  517. @AV_CODEC_ID_QDRAW = 59,
  518. @AV_CODEC_ID_VIXL = 60,
  519. @AV_CODEC_ID_QPEG = 61,
  520. @AV_CODEC_ID_PNG = 62,
  521. @AV_CODEC_ID_PPM = 63,
  522. @AV_CODEC_ID_PBM = 64,
  523. @AV_CODEC_ID_PGM = 65,
  524. @AV_CODEC_ID_PGMYUV = 66,
  525. @AV_CODEC_ID_PAM = 67,
  526. @AV_CODEC_ID_FFVHUFF = 68,
  527. @AV_CODEC_ID_RV30 = 69,
  528. @AV_CODEC_ID_RV40 = 70,
  529. @AV_CODEC_ID_VC1 = 71,
  530. @AV_CODEC_ID_WMV3 = 72,
  531. @AV_CODEC_ID_LOCO = 73,
  532. @AV_CODEC_ID_WNV1 = 74,
  533. @AV_CODEC_ID_AASC = 75,
  534. @AV_CODEC_ID_INDEO2 = 76,
  535. @AV_CODEC_ID_FRAPS = 77,
  536. @AV_CODEC_ID_TRUEMOTION2 = 78,
  537. @AV_CODEC_ID_BMP = 79,
  538. @AV_CODEC_ID_CSCD = 80,
  539. @AV_CODEC_ID_MMVIDEO = 81,
  540. @AV_CODEC_ID_ZMBV = 82,
  541. @AV_CODEC_ID_AVS = 83,
  542. @AV_CODEC_ID_SMACKVIDEO = 84,
  543. @AV_CODEC_ID_NUV = 85,
  544. @AV_CODEC_ID_KMVC = 86,
  545. @AV_CODEC_ID_FLASHSV = 87,
  546. @AV_CODEC_ID_CAVS = 88,
  547. @AV_CODEC_ID_JPEG2000 = 89,
  548. @AV_CODEC_ID_VMNC = 90,
  549. @AV_CODEC_ID_VP5 = 91,
  550. @AV_CODEC_ID_VP6 = 92,
  551. @AV_CODEC_ID_VP6F = 93,
  552. @AV_CODEC_ID_TARGA = 94,
  553. @AV_CODEC_ID_DSICINVIDEO = 95,
  554. @AV_CODEC_ID_TIERTEXSEQVIDEO = 96,
  555. @AV_CODEC_ID_TIFF = 97,
  556. @AV_CODEC_ID_GIF = 98,
  557. @AV_CODEC_ID_DXA = 99,
  558. @AV_CODEC_ID_DNXHD = 100,
  559. @AV_CODEC_ID_THP = 101,
  560. @AV_CODEC_ID_SGI = 102,
  561. @AV_CODEC_ID_C93 = 103,
  562. @AV_CODEC_ID_BETHSOFTVID = 104,
  563. @AV_CODEC_ID_PTX = 105,
  564. @AV_CODEC_ID_TXD = 106,
  565. @AV_CODEC_ID_VP6A = 107,
  566. @AV_CODEC_ID_AMV = 108,
  567. @AV_CODEC_ID_VB = 109,
  568. @AV_CODEC_ID_PCX = 110,
  569. @AV_CODEC_ID_SUNRAST = 111,
  570. @AV_CODEC_ID_INDEO4 = 112,
  571. @AV_CODEC_ID_INDEO5 = 113,
  572. @AV_CODEC_ID_MIMIC = 114,
  573. @AV_CODEC_ID_RL2 = 115,
  574. @AV_CODEC_ID_ESCAPE124 = 116,
  575. @AV_CODEC_ID_DIRAC = 117,
  576. @AV_CODEC_ID_BFI = 118,
  577. @AV_CODEC_ID_CMV = 119,
  578. @AV_CODEC_ID_MOTIONPIXELS = 120,
  579. @AV_CODEC_ID_TGV = 121,
  580. @AV_CODEC_ID_TGQ = 122,
  581. @AV_CODEC_ID_TQI = 123,
  582. @AV_CODEC_ID_AURA = 124,
  583. @AV_CODEC_ID_AURA2 = 125,
  584. @AV_CODEC_ID_V210X = 126,
  585. @AV_CODEC_ID_TMV = 127,
  586. @AV_CODEC_ID_V210 = 128,
  587. @AV_CODEC_ID_DPX = 129,
  588. @AV_CODEC_ID_MAD = 130,
  589. @AV_CODEC_ID_FRWU = 131,
  590. @AV_CODEC_ID_FLASHSV2 = 132,
  591. @AV_CODEC_ID_CDGRAPHICS = 133,
  592. @AV_CODEC_ID_R210 = 134,
  593. @AV_CODEC_ID_ANM = 135,
  594. @AV_CODEC_ID_BINKVIDEO = 136,
  595. @AV_CODEC_ID_IFF_ILBM = 137,
  596. @AV_CODEC_ID_KGV1 = 138,
  597. @AV_CODEC_ID_YOP = 139,
  598. @AV_CODEC_ID_VP8 = 140,
  599. @AV_CODEC_ID_PICTOR = 141,
  600. @AV_CODEC_ID_ANSI = 142,
  601. @AV_CODEC_ID_A64_MULTI = 143,
  602. @AV_CODEC_ID_A64_MULTI5 = 144,
  603. @AV_CODEC_ID_R10K = 145,
  604. @AV_CODEC_ID_MXPEG = 146,
  605. @AV_CODEC_ID_LAGARITH = 147,
  606. @AV_CODEC_ID_PRORES = 148,
  607. @AV_CODEC_ID_JV = 149,
  608. @AV_CODEC_ID_DFA = 150,
  609. @AV_CODEC_ID_WMV3IMAGE = 151,
  610. @AV_CODEC_ID_VC1IMAGE = 152,
  611. @AV_CODEC_ID_UTVIDEO = 153,
  612. @AV_CODEC_ID_BMV_VIDEO = 154,
  613. @AV_CODEC_ID_VBLE = 155,
  614. @AV_CODEC_ID_DXTORY = 156,
  615. @AV_CODEC_ID_V410 = 157,
  616. @AV_CODEC_ID_XWD = 158,
  617. @AV_CODEC_ID_CDXL = 159,
  618. @AV_CODEC_ID_XBM = 160,
  619. @AV_CODEC_ID_ZEROCODEC = 161,
  620. @AV_CODEC_ID_MSS1 = 162,
  621. @AV_CODEC_ID_MSA1 = 163,
  622. @AV_CODEC_ID_TSCC2 = 164,
  623. @AV_CODEC_ID_MTS2 = 165,
  624. @AV_CODEC_ID_CLLC = 166,
  625. @AV_CODEC_ID_MSS2 = 167,
  626. @AV_CODEC_ID_VP9 = 168,
  627. @AV_CODEC_ID_AIC = 169,
  628. @AV_CODEC_ID_ESCAPE130 = 170,
  629. @AV_CODEC_ID_G2M = 171,
  630. @AV_CODEC_ID_WEBP = 172,
  631. @AV_CODEC_ID_HNM4_VIDEO = 173,
  632. @AV_CODEC_ID_HEVC = 174,
  633. @AV_CODEC_ID_FIC = 175,
  634. @AV_CODEC_ID_ALIAS_PIX = 176,
  635. @AV_CODEC_ID_BRENDER_PIX = 177,
  636. @AV_CODEC_ID_PAF_VIDEO = 178,
  637. @AV_CODEC_ID_EXR = 179,
  638. @AV_CODEC_ID_VP7 = 180,
  639. @AV_CODEC_ID_SANM = 181,
  640. @AV_CODEC_ID_SGIRLE = 182,
  641. @AV_CODEC_ID_MVC1 = 183,
  642. @AV_CODEC_ID_MVC2 = 184,
  643. @AV_CODEC_ID_HQX = 185,
  644. @AV_CODEC_ID_TDSC = 186,
  645. @AV_CODEC_ID_HQ_HQA = 187,
  646. @AV_CODEC_ID_HAP = 188,
  647. @AV_CODEC_ID_DDS = 189,
  648. @AV_CODEC_ID_DXV = 190,
  649. @AV_CODEC_ID_SCREENPRESSO = 191,
  650. @AV_CODEC_ID_RSCC = 192,
  651. @AV_CODEC_ID_Y41P = 32768,
  652. @AV_CODEC_ID_AVRP = 32769,
  653. @AV_CODEC_ID_012V = 32770,
  654. @AV_CODEC_ID_AVUI = 32771,
  655. @AV_CODEC_ID_AYUV = 32772,
  656. @AV_CODEC_ID_TARGA_Y216 = 32773,
  657. @AV_CODEC_ID_V308 = 32774,
  658. @AV_CODEC_ID_V408 = 32775,
  659. @AV_CODEC_ID_YUV4 = 32776,
  660. @AV_CODEC_ID_AVRN = 32777,
  661. @AV_CODEC_ID_CPIA = 32778,
  662. @AV_CODEC_ID_XFACE = 32779,
  663. @AV_CODEC_ID_SNOW = 32780,
  664. @AV_CODEC_ID_SMVJPEG = 32781,
  665. @AV_CODEC_ID_APNG = 32782,
  666. @AV_CODEC_ID_DAALA = 32783,
  667. @AV_CODEC_ID_CFHD = 32784,
  668. @AV_CODEC_ID_FIRST_AUDIO = 65536,
  669. @AV_CODEC_ID_PCM_S16LE = 65536,
  670. @AV_CODEC_ID_PCM_S16BE = 65537,
  671. @AV_CODEC_ID_PCM_U16LE = 65538,
  672. @AV_CODEC_ID_PCM_U16BE = 65539,
  673. @AV_CODEC_ID_PCM_S8 = 65540,
  674. @AV_CODEC_ID_PCM_U8 = 65541,
  675. @AV_CODEC_ID_PCM_MULAW = 65542,
  676. @AV_CODEC_ID_PCM_ALAW = 65543,
  677. @AV_CODEC_ID_PCM_S32LE = 65544,
  678. @AV_CODEC_ID_PCM_S32BE = 65545,
  679. @AV_CODEC_ID_PCM_U32LE = 65546,
  680. @AV_CODEC_ID_PCM_U32BE = 65547,
  681. @AV_CODEC_ID_PCM_S24LE = 65548,
  682. @AV_CODEC_ID_PCM_S24BE = 65549,
  683. @AV_CODEC_ID_PCM_U24LE = 65550,
  684. @AV_CODEC_ID_PCM_U24BE = 65551,
  685. @AV_CODEC_ID_PCM_S24DAUD = 65552,
  686. @AV_CODEC_ID_PCM_ZORK = 65553,
  687. @AV_CODEC_ID_PCM_S16LE_PLANAR = 65554,
  688. @AV_CODEC_ID_PCM_DVD = 65555,
  689. @AV_CODEC_ID_PCM_F32BE = 65556,
  690. @AV_CODEC_ID_PCM_F32LE = 65557,
  691. @AV_CODEC_ID_PCM_F64BE = 65558,
  692. @AV_CODEC_ID_PCM_F64LE = 65559,
  693. @AV_CODEC_ID_PCM_BLURAY = 65560,
  694. @AV_CODEC_ID_PCM_LXF = 65561,
  695. @AV_CODEC_ID_S302M = 65562,
  696. @AV_CODEC_ID_PCM_S8_PLANAR = 65563,
  697. @AV_CODEC_ID_PCM_S24LE_PLANAR = 65564,
  698. @AV_CODEC_ID_PCM_S32LE_PLANAR = 65565,
  699. @AV_CODEC_ID_PCM_S16BE_PLANAR = 65566,
  700. @AV_CODEC_ID_ADPCM_IMA_QT = 69632,
  701. @AV_CODEC_ID_ADPCM_IMA_WAV = 69633,
  702. @AV_CODEC_ID_ADPCM_IMA_DK3 = 69634,
  703. @AV_CODEC_ID_ADPCM_IMA_DK4 = 69635,
  704. @AV_CODEC_ID_ADPCM_IMA_WS = 69636,
  705. @AV_CODEC_ID_ADPCM_IMA_SMJPEG = 69637,
  706. @AV_CODEC_ID_ADPCM_MS = 69638,
  707. @AV_CODEC_ID_ADPCM_4XM = 69639,
  708. @AV_CODEC_ID_ADPCM_XA = 69640,
  709. @AV_CODEC_ID_ADPCM_ADX = 69641,
  710. @AV_CODEC_ID_ADPCM_EA = 69642,
  711. @AV_CODEC_ID_ADPCM_G726 = 69643,
  712. @AV_CODEC_ID_ADPCM_CT = 69644,
  713. @AV_CODEC_ID_ADPCM_SWF = 69645,
  714. @AV_CODEC_ID_ADPCM_YAMAHA = 69646,
  715. @AV_CODEC_ID_ADPCM_SBPRO_4 = 69647,
  716. @AV_CODEC_ID_ADPCM_SBPRO_3 = 69648,
  717. @AV_CODEC_ID_ADPCM_SBPRO_2 = 69649,
  718. @AV_CODEC_ID_ADPCM_THP = 69650,
  719. @AV_CODEC_ID_ADPCM_IMA_AMV = 69651,
  720. @AV_CODEC_ID_ADPCM_EA_R1 = 69652,
  721. @AV_CODEC_ID_ADPCM_EA_R3 = 69653,
  722. @AV_CODEC_ID_ADPCM_EA_R2 = 69654,
  723. @AV_CODEC_ID_ADPCM_IMA_EA_SEAD = 69655,
  724. @AV_CODEC_ID_ADPCM_IMA_EA_EACS = 69656,
  725. @AV_CODEC_ID_ADPCM_EA_XAS = 69657,
  726. @AV_CODEC_ID_ADPCM_EA_MAXIS_XA = 69658,
  727. @AV_CODEC_ID_ADPCM_IMA_ISS = 69659,
  728. @AV_CODEC_ID_ADPCM_G722 = 69660,
  729. @AV_CODEC_ID_ADPCM_IMA_APC = 69661,
  730. @AV_CODEC_ID_ADPCM_VIMA = 69662,
  731. @AV_CODEC_ID_VIMA = 69662,
  732. @AV_CODEC_ID_ADPCM_AFC = 71680,
  733. @AV_CODEC_ID_ADPCM_IMA_OKI = 71681,
  734. @AV_CODEC_ID_ADPCM_DTK = 71682,
  735. @AV_CODEC_ID_ADPCM_IMA_RAD = 71683,
  736. @AV_CODEC_ID_ADPCM_G726LE = 71684,
  737. @AV_CODEC_ID_ADPCM_THP_LE = 71685,
  738. @AV_CODEC_ID_ADPCM_PSX = 71686,
  739. @AV_CODEC_ID_ADPCM_AICA = 71687,
  740. @AV_CODEC_ID_AMR_NB = 73728,
  741. @AV_CODEC_ID_AMR_WB = 73729,
  742. @AV_CODEC_ID_RA_144 = 77824,
  743. @AV_CODEC_ID_RA_288 = 77825,
  744. @AV_CODEC_ID_ROQ_DPCM = 81920,
  745. @AV_CODEC_ID_INTERPLAY_DPCM = 81921,
  746. @AV_CODEC_ID_XAN_DPCM = 81922,
  747. @AV_CODEC_ID_SOL_DPCM = 81923,
  748. @AV_CODEC_ID_SDX2_DPCM = 83968,
  749. @AV_CODEC_ID_MP2 = 86016,
  750. @AV_CODEC_ID_MP3 = 86017,
  751. @AV_CODEC_ID_AAC = 86018,
  752. @AV_CODEC_ID_AC3 = 86019,
  753. @AV_CODEC_ID_DTS = 86020,
  754. @AV_CODEC_ID_VORBIS = 86021,
  755. @AV_CODEC_ID_DVAUDIO = 86022,
  756. @AV_CODEC_ID_WMAV1 = 86023,
  757. @AV_CODEC_ID_WMAV2 = 86024,
  758. @AV_CODEC_ID_MACE3 = 86025,
  759. @AV_CODEC_ID_MACE6 = 86026,
  760. @AV_CODEC_ID_VMDAUDIO = 86027,
  761. @AV_CODEC_ID_FLAC = 86028,
  762. @AV_CODEC_ID_MP3ADU = 86029,
  763. @AV_CODEC_ID_MP3ON4 = 86030,
  764. @AV_CODEC_ID_SHORTEN = 86031,
  765. @AV_CODEC_ID_ALAC = 86032,
  766. @AV_CODEC_ID_WESTWOOD_SND1 = 86033,
  767. @AV_CODEC_ID_GSM = 86034,
  768. @AV_CODEC_ID_QDM2 = 86035,
  769. @AV_CODEC_ID_COOK = 86036,
  770. @AV_CODEC_ID_TRUESPEECH = 86037,
  771. @AV_CODEC_ID_TTA = 86038,
  772. @AV_CODEC_ID_SMACKAUDIO = 86039,
  773. @AV_CODEC_ID_QCELP = 86040,
  774. @AV_CODEC_ID_WAVPACK = 86041,
  775. @AV_CODEC_ID_DSICINAUDIO = 86042,
  776. @AV_CODEC_ID_IMC = 86043,
  777. @AV_CODEC_ID_MUSEPACK7 = 86044,
  778. @AV_CODEC_ID_MLP = 86045,
  779. @AV_CODEC_ID_GSM_MS = 86046,
  780. @AV_CODEC_ID_ATRAC3 = 86047,
  781. @AV_CODEC_ID_VOXWARE = 86048,
  782. @AV_CODEC_ID_APE = 86049,
  783. @AV_CODEC_ID_NELLYMOSER = 86050,
  784. @AV_CODEC_ID_MUSEPACK8 = 86051,
  785. @AV_CODEC_ID_SPEEX = 86052,
  786. @AV_CODEC_ID_WMAVOICE = 86053,
  787. @AV_CODEC_ID_WMAPRO = 86054,
  788. @AV_CODEC_ID_WMALOSSLESS = 86055,
  789. @AV_CODEC_ID_ATRAC3P = 86056,
  790. @AV_CODEC_ID_EAC3 = 86057,
  791. @AV_CODEC_ID_SIPR = 86058,
  792. @AV_CODEC_ID_MP1 = 86059,
  793. @AV_CODEC_ID_TWINVQ = 86060,
  794. @AV_CODEC_ID_TRUEHD = 86061,
  795. @AV_CODEC_ID_MP4ALS = 86062,
  796. @AV_CODEC_ID_ATRAC1 = 86063,
  797. @AV_CODEC_ID_BINKAUDIO_RDFT = 86064,
  798. @AV_CODEC_ID_BINKAUDIO_DCT = 86065,
  799. @AV_CODEC_ID_AAC_LATM = 86066,
  800. @AV_CODEC_ID_QDMC = 86067,
  801. @AV_CODEC_ID_CELT = 86068,
  802. @AV_CODEC_ID_G723_1 = 86069,
  803. @AV_CODEC_ID_G729 = 86070,
  804. @AV_CODEC_ID_8SVX_EXP = 86071,
  805. @AV_CODEC_ID_8SVX_FIB = 86072,
  806. @AV_CODEC_ID_BMV_AUDIO = 86073,
  807. @AV_CODEC_ID_RALF = 86074,
  808. @AV_CODEC_ID_IAC = 86075,
  809. @AV_CODEC_ID_ILBC = 86076,
  810. @AV_CODEC_ID_OPUS = 86077,
  811. @AV_CODEC_ID_COMFORT_NOISE = 86078,
  812. @AV_CODEC_ID_TAK = 86079,
  813. @AV_CODEC_ID_METASOUND = 86080,
  814. @AV_CODEC_ID_PAF_AUDIO = 86081,
  815. @AV_CODEC_ID_ON2AVC = 86082,
  816. @AV_CODEC_ID_DSS_SP = 86083,
  817. @AV_CODEC_ID_FFWAVESYNTH = 88064,
  818. @AV_CODEC_ID_SONIC = 88065,
  819. @AV_CODEC_ID_SONIC_LS = 88066,
  820. @AV_CODEC_ID_EVRC = 88067,
  821. @AV_CODEC_ID_SMV = 88068,
  822. @AV_CODEC_ID_DSD_LSBF = 88069,
  823. @AV_CODEC_ID_DSD_MSBF = 88070,
  824. @AV_CODEC_ID_DSD_LSBF_PLANAR = 88071,
  825. @AV_CODEC_ID_DSD_MSBF_PLANAR = 88072,
  826. @AV_CODEC_ID_4GV = 88073,
  827. @AV_CODEC_ID_INTERPLAY_ACM = 88074,
  828. @AV_CODEC_ID_XMA1 = 88075,
  829. @AV_CODEC_ID_XMA2 = 88076,
  830. @AV_CODEC_ID_FIRST_SUBTITLE = 94208,
  831. @AV_CODEC_ID_DVD_SUBTITLE = 94208,
  832. @AV_CODEC_ID_DVB_SUBTITLE = 94209,
  833. @AV_CODEC_ID_TEXT = 94210,
  834. @AV_CODEC_ID_XSUB = 94211,
  835. @AV_CODEC_ID_SSA = 94212,
  836. @AV_CODEC_ID_MOV_TEXT = 94213,
  837. @AV_CODEC_ID_HDMV_PGS_SUBTITLE = 94214,
  838. @AV_CODEC_ID_DVB_TELETEXT = 94215,
  839. @AV_CODEC_ID_SRT = 94216,
  840. @AV_CODEC_ID_MICRODVD = 96256,
  841. @AV_CODEC_ID_EIA_608 = 96257,
  842. @AV_CODEC_ID_JACOSUB = 96258,
  843. @AV_CODEC_ID_SAMI = 96259,
  844. @AV_CODEC_ID_REALTEXT = 96260,
  845. @AV_CODEC_ID_STL = 96261,
  846. @AV_CODEC_ID_SUBVIEWER1 = 96262,
  847. @AV_CODEC_ID_SUBVIEWER = 96263,
  848. @AV_CODEC_ID_SUBRIP = 96264,
  849. @AV_CODEC_ID_WEBVTT = 96265,
  850. @AV_CODEC_ID_MPL2 = 96266,
  851. @AV_CODEC_ID_VPLAYER = 96267,
  852. @AV_CODEC_ID_PJS = 96268,
  853. @AV_CODEC_ID_ASS = 96269,
  854. @AV_CODEC_ID_HDMV_TEXT_SUBTITLE = 96270,
  855. @AV_CODEC_ID_FIRST_UNKNOWN = 98304,
  856. @AV_CODEC_ID_TTF = 98304,
  857. @AV_CODEC_ID_BINTEXT = 100352,
  858. @AV_CODEC_ID_XBIN = 100353,
  859. @AV_CODEC_ID_IDF = 100354,
  860. @AV_CODEC_ID_OTF = 100355,
  861. @AV_CODEC_ID_SMPTE_KLV = 100356,
  862. @AV_CODEC_ID_DVD_NAV = 100357,
  863. @AV_CODEC_ID_TIMED_ID3 = 100358,
  864. @AV_CODEC_ID_BIN_DATA = 100359,
  865. @AV_CODEC_ID_PROBE = 102400,
  866. @AV_CODEC_ID_MPEG2TS = 131072,
  867. @AV_CODEC_ID_MPEG4SYSTEMS = 131073,
  868. @AV_CODEC_ID_FFMETADATA = 135168,
  869. @AV_CODEC_ID_WRAPPED_AVFRAME = 135169,
  870. }
  871. public enum Motion_Est_ID : int
  872. {
  873. @ME_ZERO = 1,
  874. @ME_FULL = 2,
  875. @ME_LOG = 3,
  876. @ME_PHODS = 4,
  877. @ME_EPZS = 5,
  878. @ME_X1 = 6,
  879. @ME_HEX = 7,
  880. @ME_UMH = 8,
  881. @ME_TESA = 9,
  882. @ME_ITER = 50,
  883. }
  884. public enum AVDiscard : int
  885. {
  886. @AVDISCARD_NONE = -16,
  887. @AVDISCARD_DEFAULT = 0,
  888. @AVDISCARD_NONREF = 8,
  889. @AVDISCARD_BIDIR = 16,
  890. @AVDISCARD_NONINTRA = 24,
  891. @AVDISCARD_NONKEY = 32,
  892. @AVDISCARD_ALL = 48,
  893. }
  894. public enum AVAudioServiceType : int
  895. {
  896. @AV_AUDIO_SERVICE_TYPE_MAIN = 0,
  897. @AV_AUDIO_SERVICE_TYPE_EFFECTS = 1,
  898. @AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2,
  899. @AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3,
  900. @AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4,
  901. @AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5,
  902. @AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6,
  903. @AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7,
  904. @AV_AUDIO_SERVICE_TYPE_KARAOKE = 8,
  905. @AV_AUDIO_SERVICE_TYPE_NB = 9,
  906. }
  907. public enum AVPacketSideDataType : int
  908. {
  909. @AV_PKT_DATA_PALETTE = 0,
  910. @AV_PKT_DATA_NEW_EXTRADATA = 1,
  911. @AV_PKT_DATA_PARAM_CHANGE = 2,
  912. @AV_PKT_DATA_H263_MB_INFO = 3,
  913. @AV_PKT_DATA_REPLAYGAIN = 4,
  914. @AV_PKT_DATA_DISPLAYMATRIX = 5,
  915. @AV_PKT_DATA_STEREO3D = 6,
  916. @AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7,
  917. @AV_PKT_DATA_QUALITY_STATS = 8,
  918. @AV_PKT_DATA_FALLBACK_TRACK = 9,
  919. @AV_PKT_DATA_CPB_PROPERTIES = 10,
  920. @AV_PKT_DATA_SKIP_SAMPLES = 70,
  921. @AV_PKT_DATA_JP_DUALMONO = 71,
  922. @AV_PKT_DATA_STRINGS_METADATA = 72,
  923. @AV_PKT_DATA_SUBTITLE_POSITION = 73,
  924. @AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 74,
  925. @AV_PKT_DATA_WEBVTT_IDENTIFIER = 75,
  926. @AV_PKT_DATA_WEBVTT_SETTINGS = 76,
  927. @AV_PKT_DATA_METADATA_UPDATE = 77,
  928. }
  929. public enum AVSideDataParamChangeFlags : int
  930. {
  931. @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 1,
  932. @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 2,
  933. @AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 4,
  934. @AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 8,
  935. }
  936. public enum AVFieldOrder : int
  937. {
  938. @AV_FIELD_UNKNOWN = 0,
  939. @AV_FIELD_PROGRESSIVE = 1,
  940. @AV_FIELD_TT = 2,
  941. @AV_FIELD_BB = 3,
  942. @AV_FIELD_TB = 4,
  943. @AV_FIELD_BT = 5,
  944. }
  945. public enum AVSubtitleType : int
  946. {
  947. @SUBTITLE_NONE = 0,
  948. @SUBTITLE_BITMAP = 1,
  949. @SUBTITLE_TEXT = 2,
  950. @SUBTITLE_ASS = 3,
  951. }
  952. public enum AVPictureStructure : int
  953. {
  954. @AV_PICTURE_STRUCTURE_UNKNOWN = 0,
  955. @AV_PICTURE_STRUCTURE_TOP_FIELD = 1,
  956. @AV_PICTURE_STRUCTURE_BOTTOM_FIELD = 2,
  957. @AV_PICTURE_STRUCTURE_FRAME = 3,
  958. }
  959. public enum AVLockOp : int
  960. {
  961. @AV_LOCK_CREATE = 0,
  962. @AV_LOCK_OBTAIN = 1,
  963. @AV_LOCK_RELEASE = 2,
  964. @AV_LOCK_DESTROY = 3,
  965. }
  966. public unsafe static partial class ffmpeg
  967. {
  968. public const int LIBAVCODEC_VERSION_MAJOR = 57;
  969. public const int LIBAVCODEC_VERSION_MINOR = 24;
  970. public const int LIBAVCODEC_VERSION_MICRO = 102;
  971. public const bool FF_API_VIMA_DECODER = (LIBAVCODEC_VERSION_MAJOR<58);
  972. public const bool FF_API_AUDIO_CONVERT = (LIBAVCODEC_VERSION_MAJOR<58);
  973. public const bool FF_API_AVCODEC_RESAMPLE = FF_API_AUDIO_CONVERT;
  974. public const bool FF_API_GETCHROMA = (LIBAVCODEC_VERSION_MAJOR<58);
  975. public const bool FF_API_MISSING_SAMPLE = (LIBAVCODEC_VERSION_MAJOR < 58);
  976. public const bool FF_API_LOWRES = (LIBAVCODEC_VERSION_MAJOR < 58);
  977. public const bool FF_API_CAP_VDPAU = (LIBAVCODEC_VERSION_MAJOR < 58);
  978. public const bool FF_API_BUFS_VDPAU = (LIBAVCODEC_VERSION_MAJOR < 58);
  979. public const bool FF_API_VOXWARE = (LIBAVCODEC_VERSION_MAJOR < 58);
  980. public const bool FF_API_SET_DIMENSIONS = (LIBAVCODEC_VERSION_MAJOR < 58);
  981. public const bool FF_API_DEBUG_MV = (LIBAVCODEC_VERSION_MAJOR < 58);
  982. public const bool FF_API_AC_VLC = (LIBAVCODEC_VERSION_MAJOR < 58);
  983. public const bool FF_API_OLD_MSMPEG4 = (LIBAVCODEC_VERSION_MAJOR < 58);
  984. public const bool FF_API_ASPECT_EXTENDED = (LIBAVCODEC_VERSION_MAJOR < 58);
  985. public const bool FF_API_ARCH_ALPHA = (LIBAVCODEC_VERSION_MAJOR < 58);
  986. public const bool FF_API_ERROR_RATE = (LIBAVCODEC_VERSION_MAJOR < 58);
  987. public const bool FF_API_QSCALE_TYPE = (LIBAVCODEC_VERSION_MAJOR < 58);
  988. public const bool FF_API_MB_TYPE = (LIBAVCODEC_VERSION_MAJOR < 58);
  989. public const bool FF_API_MAX_BFRAMES = (LIBAVCODEC_VERSION_MAJOR<58);
  990. public const bool FF_API_NEG_LINESIZES = (LIBAVCODEC_VERSION_MAJOR<58);
  991. public const bool FF_API_EMU_EDGE = (LIBAVCODEC_VERSION_MAJOR<58);
  992. public const bool FF_API_ARCH_SH4 = (LIBAVCODEC_VERSION_MAJOR<58);
  993. public const bool FF_API_ARCH_SPARC = (LIBAVCODEC_VERSION_MAJOR<58);
  994. public const bool FF_API_UNUSED_MEMBERS = (LIBAVCODEC_VERSION_MAJOR<58);
  995. public const bool FF_API_IDCT_XVIDMMX = (LIBAVCODEC_VERSION_MAJOR<58);
  996. public const bool FF_API_INPUT_PRESERVED = (LIBAVCODEC_VERSION_MAJOR<58);
  997. public const bool FF_API_NORMALIZE_AQP = (LIBAVCODEC_VERSION_MAJOR<58);
  998. public const bool FF_API_GMC = (LIBAVCODEC_VERSION_MAJOR<58);
  999. public const bool FF_API_MV0 = (LIBAVCODEC_VERSION_MAJOR<58);
  1000. public const bool FF_API_CODEC_NAME = (LIBAVCODEC_VERSION_MAJOR<58);
  1001. public const bool FF_API_AFD = (LIBAVCODEC_VERSION_MAJOR<58);
  1002. public const bool FF_API_VISMV = (LIBAVCODEC_VERSION_MAJOR<58);
  1003. public const bool FF_API_AUDIOENC_DELAY = (LIBAVCODEC_VERSION_MAJOR<58);
  1004. public const bool FF_API_VAAPI_CONTEXT = (LIBAVCODEC_VERSION_MAJOR<58);
  1005. public const bool FF_API_AVCTX_TIMEBASE = (LIBAVCODEC_VERSION_MAJOR<59);
  1006. public const bool FF_API_MPV_OPT = (LIBAVCODEC_VERSION_MAJOR<59);
  1007. public const bool FF_API_STREAM_CODEC_TAG = (LIBAVCODEC_VERSION_MAJOR<59);
  1008. public const bool FF_API_QUANT_BIAS = (LIBAVCODEC_VERSION_MAJOR<59);
  1009. public const bool FF_API_RC_STRATEGY = (LIBAVCODEC_VERSION_MAJOR<59);
  1010. public const bool FF_API_CODED_FRAME = (LIBAVCODEC_VERSION_MAJOR<59);
  1011. public const bool FF_API_MOTION_EST = (LIBAVCODEC_VERSION_MAJOR<59);
  1012. public const bool FF_API_WITHOUT_PREFIX = (LIBAVCODEC_VERSION_MAJOR<59);
  1013. public const bool FF_API_SIDEDATA_ONLY_PKT = (LIBAVCODEC_VERSION_MAJOR<59);
  1014. public const bool FF_API_VDPAU_PROFILE = (LIBAVCODEC_VERSION_MAJOR<59);
  1015. public const bool FF_API_CONVERGENCE_DURATION = (LIBAVCODEC_VERSION_MAJOR<59);
  1016. public const bool FF_API_AVPICTURE = (LIBAVCODEC_VERSION_MAJOR<59);
  1017. public const bool FF_API_AVPACKET_OLD_API = (LIBAVCODEC_VERSION_MAJOR<59);
  1018. public const bool FF_API_RTP_CALLBACK = (LIBAVCODEC_VERSION_MAJOR<59);
  1019. public const bool FF_API_VBV_DELAY = (LIBAVCODEC_VERSION_MAJOR<59);
  1020. public const bool FF_API_CODER_TYPE = (LIBAVCODEC_VERSION_MAJOR<59);
  1021. public const bool FF_API_STAT_BITS = (LIBAVCODEC_VERSION_MAJOR<59);
  1022. public const bool FF_API_PRIVATE_OPT = (LIBAVCODEC_VERSION_MAJOR<59);
  1023. public const int AV_CODEC_PROP_INTRA_ONLY = (1<<0);
  1024. public const int AV_CODEC_PROP_LOSSY = (1<<1);
  1025. public const int AV_CODEC_PROP_LOSSLESS = (1<<2);
  1026. public const int AV_CODEC_PROP_REORDER = (1<<3);
  1027. public const int AV_CODEC_PROP_BITMAP_SUB = (1<<16);
  1028. public const int AV_CODEC_PROP_TEXT_SUB = (1<<17);
  1029. public const int AV_INPUT_BUFFER_PADDING_SIZE = 32;
  1030. public const int AV_INPUT_BUFFER_MIN_SIZE = 16384;
  1031. public const int FF_INPUT_BUFFER_PADDING_SIZE = 32;
  1032. public const int FF_MIN_BUFFER_SIZE = 16384;
  1033. public const int FF_MAX_B_FRAMES = 16;
  1034. public const int AV_CODEC_FLAG_UNALIGNED = (1<<0);
  1035. public const int AV_CODEC_FLAG_QSCALE = (1<<1);
  1036. public const int AV_CODEC_FLAG_4MV = (1<<2);
  1037. public const int AV_CODEC_FLAG_OUTPUT_CORRUPT = (1<<3);
  1038. public const int AV_CODEC_FLAG_QPEL = (1<<4);
  1039. public const int AV_CODEC_FLAG_PASS1 = (1<<9);
  1040. public const int AV_CODEC_FLAG_PASS2 = (1<<10);
  1041. public const int AV_CODEC_FLAG_LOOP_FILTER = (1<<11);
  1042. public const int AV_CODEC_FLAG_GRAY = (1<<13);
  1043. public const int AV_CODEC_FLAG_PSNR = (1<<15);
  1044. public const int AV_CODEC_FLAG_TRUNCATED = (1<<16);
  1045. public const int AV_CODEC_FLAG_INTERLACED_DCT = (1<<18);
  1046. public const int AV_CODEC_FLAG_LOW_DELAY = (1<<19);
  1047. public const int AV_CODEC_FLAG_GLOBAL_HEADER = (1<<22);
  1048. public const int AV_CODEC_FLAG_BITEXACT = (1<<23);
  1049. public const int AV_CODEC_FLAG_AC_PRED = (1<<24);
  1050. public const int AV_CODEC_FLAG_INTERLACED_ME = (1<<29);
  1051. public const uint AV_CODEC_FLAG_CLOSED_GOP = (1U<<31);
  1052. public const int AV_CODEC_FLAG2_FAST = (1<<0);
  1053. public const int AV_CODEC_FLAG2_NO_OUTPUT = (1<<2);
  1054. public const int AV_CODEC_FLAG2_LOCAL_HEADER = (1<<3);
  1055. public const int AV_CODEC_FLAG2_DROP_FRAME_TIMECODE = (1<<13);
  1056. public const int AV_CODEC_FLAG2_CHUNKS = (1<<15);
  1057. public const int AV_CODEC_FLAG2_IGNORE_CROP = (1<<16);
  1058. public const int AV_CODEC_FLAG2_SHOW_ALL = (1<<22);
  1059. public const int AV_CODEC_FLAG2_EXPORT_MVS = (1<<28);
  1060. public const int AV_CODEC_FLAG2_SKIP_MANUAL = (1<<29);
  1061. public const int AV_CODEC_CAP_DRAW_HORIZ_BAND = (1<<0);
  1062. public const int AV_CODEC_CAP_DR1 = (1<<1);
  1063. public const int AV_CODEC_CAP_TRUNCATED = (1<<3);
  1064. public const int AV_CODEC_CAP_DELAY = (1<<5);
  1065. public const int AV_CODEC_CAP_SMALL_LAST_FRAME = (1<<6);
  1066. public const int AV_CODEC_CAP_HWACCEL_VDPAU = (1<<7);
  1067. public const int AV_CODEC_CAP_SUBFRAMES = (1<<8);
  1068. public const int AV_CODEC_CAP_EXPERIMENTAL = (1<<9);
  1069. public const int AV_CODEC_CAP_CHANNEL_CONF = (1<<10);
  1070. public const int AV_CODEC_CAP_FRAME_THREADS = (1<<12);
  1071. public const int AV_CODEC_CAP_SLICE_THREADS = (1<<13);
  1072. public const int AV_CODEC_CAP_PARAM_CHANGE = (1<<14);
  1073. public const int AV_CODEC_CAP_AUTO_THREADS = (1<<15);
  1074. public const int AV_CODEC_CAP_VARIABLE_FRAME_SIZE = (1<<16);
  1075. public const int AV_CODEC_CAP_INTRA_ONLY = 0x40000000;
  1076. public const uint AV_CODEC_CAP_LOSSLESS = 0x80000000;
  1077. public const int CODEC_FLAG_UNALIGNED = AV_CODEC_FLAG_UNALIGNED;
  1078. public const int CODEC_FLAG_QSCALE = AV_CODEC_FLAG_QSCALE;
  1079. public const int CODEC_FLAG_4MV = AV_CODEC_FLAG_4MV;
  1080. public const int CODEC_FLAG_OUTPUT_CORRUPT = AV_CODEC_FLAG_OUTPUT_CORRUPT;
  1081. public const int CODEC_FLAG_QPEL = AV_CODEC_FLAG_QPEL;
  1082. public const int CODEC_FLAG_GMC = 0x0020;
  1083. public const int CODEC_FLAG_MV0 = 0x0040;
  1084. public const int CODEC_FLAG_INPUT_PRESERVED = 0x0100;
  1085. public const int CODEC_FLAG_PASS1 = AV_CODEC_FLAG_PASS1;
  1086. public const int CODEC_FLAG_PASS2 = AV_CODEC_FLAG_PASS2;
  1087. public const int CODEC_FLAG_GRAY = AV_CODEC_FLAG_GRAY;
  1088. public const int CODEC_FLAG_EMU_EDGE = 0x4000;
  1089. public const int CODEC_FLAG_PSNR = AV_CODEC_FLAG_PSNR;
  1090. public const int CODEC_FLAG_TRUNCATED = AV_CODEC_FLAG_TRUNCATED;
  1091. public const int CODEC_FLAG_NORMALIZE_AQP = 0x00020000;
  1092. public const int CODEC_FLAG_INTERLACED_DCT = AV_CODEC_FLAG_INTERLACED_DCT;
  1093. public const int CODEC_FLAG_LOW_DELAY = AV_CODEC_FLAG_LOW_DELAY;
  1094. public const int CODEC_FLAG_GLOBAL_HEADER = AV_CODEC_FLAG_GLOBAL_HEADER;
  1095. public const int CODEC_FLAG_BITEXACT = AV_CODEC_FLAG_BITEXACT;
  1096. public const int CODEC_FLAG_AC_PRED = AV_CODEC_FLAG_AC_PRED;
  1097. public const int CODEC_FLAG_LOOP_FILTER = AV_CODEC_FLAG_LOOP_FILTER;
  1098. public const int CODEC_FLAG_INTERLACED_ME = AV_CODEC_FLAG_INTERLACED_ME;
  1099. public const uint CODEC_FLAG_CLOSED_GOP = AV_CODEC_FLAG_CLOSED_GOP;
  1100. public const int CODEC_FLAG2_FAST = AV_CODEC_FLAG2_FAST;
  1101. public const int CODEC_FLAG2_NO_OUTPUT = AV_CODEC_FLAG2_NO_OUTPUT;
  1102. public const int CODEC_FLAG2_LOCAL_HEADER = AV_CODEC_FLAG2_LOCAL_HEADER;
  1103. public const int CODEC_FLAG2_DROP_FRAME_TIMECODE = AV_CODEC_FLAG2_DROP_FRAME_TIMECODE;
  1104. public const int CODEC_FLAG2_IGNORE_CROP = AV_CODEC_FLAG2_IGNORE_CROP;
  1105. public const int CODEC_FLAG2_CHUNKS = AV_CODEC_FLAG2_CHUNKS;
  1106. public const int CODEC_FLAG2_SHOW_ALL = AV_CODEC_FLAG2_SHOW_ALL;
  1107. public const int CODEC_FLAG2_EXPORT_MVS = AV_CODEC_FLAG2_EXPORT_MVS;
  1108. public const int CODEC_FLAG2_SKIP_MANUAL = AV_CODEC_FLAG2_SKIP_MANUAL;
  1109. public const int CODEC_CAP_DRAW_HORIZ_BAND = AV_CODEC_CAP_DRAW_HORIZ_BAND;
  1110. public const int CODEC_CAP_DR1 = AV_CODEC_CAP_DR1;
  1111. public const int CODEC_CAP_TRUNCATED = AV_CODEC_CAP_TRUNCATED;
  1112. public const int CODEC_CAP_HWACCEL = 0x0010;
  1113. public const int CODEC_CAP_DELAY = AV_CODEC_CAP_DELAY;
  1114. public const int CODEC_CAP_SMALL_LAST_FRAME = AV_CODEC_CAP_SMALL_LAST_FRAME;
  1115. public const int CODEC_CAP_HWACCEL_VDPAU = AV_CODEC_CAP_HWACCEL_VDPAU;
  1116. public const int CODEC_CAP_SUBFRAMES = AV_CODEC_CAP_SUBFRAMES;
  1117. public const int CODEC_CAP_EXPERIMENTAL = AV_CODEC_CAP_EXPERIMENTAL;
  1118. public const int CODEC_CAP_CHANNEL_CONF = AV_CODEC_CAP_CHANNEL_CONF;
  1119. public const int CODEC_CAP_NEG_LINESIZES = 0x0800;
  1120. public const int CODEC_CAP_FRAME_THREADS = AV_CODEC_CAP_FRAME_THREADS;
  1121. public const int CODEC_CAP_SLICE_THREADS = AV_CODEC_CAP_SLICE_THREADS;
  1122. public const int CODEC_CAP_PARAM_CHANGE = AV_CODEC_CAP_PARAM_CHANGE;
  1123. public const int CODEC_CAP_AUTO_THREADS = AV_CODEC_CAP_AUTO_THREADS;
  1124. public const int CODEC_CAP_VARIABLE_FRAME_SIZE = AV_CODEC_CAP_VARIABLE_FRAME_SIZE;
  1125. public const int CODEC_CAP_INTRA_ONLY = AV_CODEC_CAP_INTRA_ONLY;
  1126. public const uint CODEC_CAP_LOSSLESS = AV_CODEC_CAP_LOSSLESS;
  1127. public const int HWACCEL_CODEC_CAP_EXPERIMENTAL = 0x0200;
  1128. public const int MB_TYPE_INTRA4x4 = 0x0001;
  1129. public const int MB_TYPE_INTRA16x16 = 0x0002;
  1130. public const int MB_TYPE_INTRA_PCM = 0x0004;
  1131. public const int MB_TYPE_16x16 = 0x0008;
  1132. public const int MB_TYPE_16x8 = 0x0010;
  1133. public const int MB_TYPE_8x16 = 0x0020;
  1134. public const int MB_TYPE_8x8 = 0x0040;
  1135. public const int MB_TYPE_INTERLACED = 0x0080;
  1136. public const int MB_TYPE_DIRECT2 = 0x0100;
  1137. public const int MB_TYPE_ACPRED = 0x0200;
  1138. public const int MB_TYPE_GMC = 0x0400;
  1139. public const int MB_TYPE_SKIP = 0x0800;
  1140. public const int MB_TYPE_P0L0 = 0x1000;
  1141. public const int MB_TYPE_P1L0 = 0x2000;
  1142. public const int MB_TYPE_P0L1 = 0x4000;
  1143. public const int MB_TYPE_P1L1 = 0x8000;
  1144. public const int MB_TYPE_L0 = (MB_TYPE_P0L0|MB_TYPE_P1L0);
  1145. public const int MB_TYPE_L1 = (MB_TYPE_P0L1|MB_TYPE_P1L1);
  1146. public const int MB_TYPE_L0L1 = (MB_TYPE_L0|MB_TYPE_L1);
  1147. public const int MB_TYPE_QUANT = 0x00010000;
  1148. public const int MB_TYPE_CBP = 0x00020000;
  1149. public const int FF_QSCALE_TYPE_MPEG1 = 0;
  1150. public const int FF_QSCALE_TYPE_MPEG2 = 1;
  1151. public const int FF_QSCALE_TYPE_H264 = 2;
  1152. public const int FF_QSCALE_TYPE_VP56 = 3;
  1153. public const int AV_GET_BUFFER_FLAG_REF = (1<<0);
  1154. public const int AV_PKT_FLAG_KEY = 0x0001;
  1155. public const int AV_PKT_FLAG_CORRUPT = 0x0002;
  1156. public const int FF_COMPRESSION_DEFAULT = -1;
  1157. public const int FF_ASPECT_EXTENDED = 15;
  1158. public const int FF_RC_STRATEGY_XVID = 1;
  1159. public const int FF_PRED_LEFT = 0;
  1160. public const int FF_PRED_PLANE = 1;
  1161. public const int FF_PRED_MEDIAN = 2;
  1162. public const int FF_CMP_SAD = 0;
  1163. public const int FF_CMP_SSE = 1;
  1164. public const int FF_CMP_SATD = 2;
  1165. public const int FF_CMP_DCT = 3;
  1166. public const int FF_CMP_PSNR = 4;
  1167. public const int FF_CMP_BIT = 5;
  1168. public const int FF_CMP_RD = 6;
  1169. public const int FF_CMP_ZERO = 7;
  1170. public const int FF_CMP_VSAD = 8;
  1171. public const int FF_CMP_VSSE = 9;
  1172. public const int FF_CMP_NSSE = 10;
  1173. public const int FF_CMP_W53 = 11;
  1174. public const int FF_CMP_W97 = 12;
  1175. public const int FF_CMP_DCTMAX = 13;
  1176. public const int FF_CMP_DCT264 = 14;
  1177. public const int FF_CMP_CHROMA = 256;
  1178. public const int FF_DTG_AFD_SAME = 8;
  1179. public const int FF_DTG_AFD_4_3 = 9;
  1180. public const int FF_DTG_AFD_16_9 = 10;
  1181. public const int FF_DTG_AFD_14_9 = 11;
  1182. public const int FF_DTG_AFD_4_3_SP_14_9 = 13;
  1183. public const int FF_DTG_AFD_16_9_SP_14_9 = 14;
  1184. public const int FF_DTG_AFD_SP_4_3 = 15;
  1185. public const int FF_DEFAULT_QUANT_BIAS = 999999;
  1186. public const int SLICE_FLAG_CODED_ORDER = 0x0001;
  1187. public const int SLICE_FLAG_ALLOW_FIELD = 0x0002;
  1188. public const int SLICE_FLAG_ALLOW_PLANE = 0x0004;
  1189. public const int FF_MB_DECISION_SIMPLE = 0;
  1190. public const int FF_MB_DECISION_BITS = 1;
  1191. public const int FF_MB_DECISION_RD = 2;
  1192. public const int FF_CODER_TYPE_VLC = 0;
  1193. public const int FF_CODER_TYPE_AC = 1;
  1194. public const int FF_CODER_TYPE_RAW = 2;
  1195. public const int FF_CODER_TYPE_RLE = 3;
  1196. public const int FF_CODER_TYPE_DEFLATE = 4;
  1197. public const int FF_BUG_AUTODETECT = 1;
  1198. public const int FF_BUG_OLD_MSMPEG4 = 2;
  1199. public const int FF_BUG_XVID_ILACE = 4;
  1200. public const int FF_BUG_UMP4 = 8;
  1201. public const int FF_BUG_NO_PADDING = 16;
  1202. public const int FF_BUG_AMV = 32;
  1203. public const int FF_BUG_AC_VLC = 0;
  1204. public const int FF_BUG_QPEL_CHROMA = 64;
  1205. public const int FF_BUG_STD_QPEL = 128;
  1206. public const int FF_BUG_QPEL_CHROMA2 = 256;
  1207. public const int FF_BUG_DIRECT_BLOCKSIZE = 512;
  1208. public const int FF_BUG_EDGE = 1024;
  1209. public const int FF_BUG_HPEL_CHROMA = 2048;
  1210. public const int FF_BUG_DC_CLIP = 4096;
  1211. public const int FF_BUG_MS = 8192;
  1212. public const int FF_BUG_TRUNCATED = 16384;
  1213. public const int FF_COMPLIANCE_VERY_STRICT = 2;
  1214. public const int FF_COMPLIANCE_STRICT = 1;
  1215. public const int FF_COMPLIANCE_NORMAL = 0;
  1216. public const int FF_COMPLIANCE_UNOFFICIAL = -1;
  1217. public const int FF_COMPLIANCE_EXPERIMENTAL = -2;
  1218. public const int FF_EC_GUESS_MVS = 1;
  1219. public const int FF_EC_DEBLOCK = 2;
  1220. public const int FF_EC_FAVOR_INTER = 256;
  1221. public const int FF_DEBUG_PICT_INFO = 1;
  1222. public const int FF_DEBUG_RC = 2;
  1223. public const int FF_DEBUG_BITSTREAM = 4;
  1224. public const int FF_DEBUG_MB_TYPE = 8;
  1225. public const int FF_DEBUG_QP = 16;
  1226. public const int FF_DEBUG_MV = 32;
  1227. public const int FF_DEBUG_DCT_COEFF = 0x00000040;
  1228. public const int FF_DEBUG_SKIP = 0x00000080;
  1229. public const int FF_DEBUG_STARTCODE = 0x00000100;
  1230. public const int FF_DEBUG_PTS = 0x00000200;
  1231. public const int FF_DEBUG_ER = 0x00000400;
  1232. public const int FF_DEBUG_MMCO = 0x00000800;
  1233. public const int FF_DEBUG_BUGS = 0x00001000;
  1234. public const int FF_DEBUG_VIS_QP = 0x00002000;
  1235. public const int FF_DEBUG_VIS_MB_TYPE = 0x00004000;
  1236. public const int FF_DEBUG_BUFFERS = 0x00008000;
  1237. public const int FF_DEBUG_THREADS = 0x00010000;
  1238. public const int FF_DEBUG_GREEN_MD = 0x00800000;
  1239. public const int FF_DEBUG_NOMC = 0x01000000;
  1240. public const int FF_DEBUG_VIS_MV_P_FOR = 0x00000001;
  1241. public const int FF_DEBUG_VIS_MV_B_FOR = 0x00000002;
  1242. public const int FF_DEBUG_VIS_MV_B_BACK = 0x00000004;
  1243. public const int AV_EF_CRCCHECK = (1<<0);
  1244. public const int AV_EF_BITSTREAM = (1<<1);
  1245. public const int AV_EF_BUFFER = (1<<2);
  1246. public const int AV_EF_EXPLODE = (1<<3);
  1247. public const int AV_EF_IGNORE_ERR = (1<<15);
  1248. public const int AV_EF_CAREFUL = (1<<16);
  1249. public const int AV_EF_COMPLIANT = (1<<17);
  1250. public const int AV_EF_AGGRESSIVE = (1<<18);
  1251. public const int FF_DCT_AUTO = 0;
  1252. public const int FF_DCT_FASTINT = 1;
  1253. public const int FF_DCT_INT = 2;
  1254. public const int FF_DCT_MMX = 3;
  1255. public const int FF_DCT_ALTIVEC = 5;
  1256. public const int FF_DCT_FAAN = 6;
  1257. public const int FF_IDCT_AUTO = 0;
  1258. public const int FF_IDCT_INT = 1;
  1259. public const int FF_IDCT_SIMPLE = 2;
  1260. public const int FF_IDCT_SIMPLEMMX = 3;
  1261. public const int FF_IDCT_ARM = 7;
  1262. public const int FF_IDCT_ALTIVEC = 8;
  1263. public const int FF_IDCT_SH4 = 9;
  1264. public const int FF_IDCT_SIMPLEARM = 10;
  1265. public const int FF_IDCT_IPP = 13;
  1266. public const int FF_IDCT_XVID = 14;
  1267. public const int FF_IDCT_XVIDMMX = 14;
  1268. public const int FF_IDCT_SIMPLEARMV5TE = 16;
  1269. public const int FF_IDCT_SIMPLEARMV6 = 17;
  1270. public const int FF_IDCT_SIMPLEVIS = 18;
  1271. public const int FF_IDCT_FAAN = 20;
  1272. public const int FF_IDCT_SIMPLENEON = 22;
  1273. public const int FF_IDCT_SIMPLEALPHA = 23;
  1274. public const int FF_IDCT_SIMPLEAUTO = 128;
  1275. public const int FF_THREAD_FRAME = 1;
  1276. public const int FF_THREAD_SLICE = 2;
  1277. public const int FF_PROFILE_UNKNOWN = -99;
  1278. public const int FF_PROFILE_RESERVED = -100;
  1279. public const int FF_PROFILE_AAC_MAIN = 0;
  1280. public const int FF_PROFILE_AAC_LOW = 1;
  1281. public const int FF_PROFILE_AAC_SSR = 2;
  1282. public const int FF_PROFILE_AAC_LTP = 3;
  1283. public const int FF_PROFILE_AAC_HE = 4;
  1284. public const int FF_PROFILE_AAC_HE_V2 = 28;
  1285. public const int FF_PROFILE_AAC_LD = 22;
  1286. public const int FF_PROFILE_AAC_ELD = 38;
  1287. public const int FF_PROFILE_MPEG2_AAC_LOW = 128;
  1288. public const int FF_PROFILE_MPEG2_AAC_HE = 131;
  1289. public const int FF_PROFILE_DTS = 20;
  1290. public const int FF_PROFILE_DTS_ES = 30;
  1291. public const int FF_PROFILE_DTS_96_24 = 40;
  1292. public const int FF_PROFILE_DTS_HD_HRA = 50;
  1293. public const int FF_PROFILE_DTS_HD_MA = 60;
  1294. public const int FF_PROFILE_DTS_EXPRESS = 70;
  1295. public const int FF_PROFILE_MPEG2_422 = 0;
  1296. public const int FF_PROFILE_MPEG2_HIGH = 1;
  1297. public const int FF_PROFILE_MPEG2_SS = 2;
  1298. public const int FF_PROFILE_MPEG2_SNR_SCALABLE = 3;
  1299. public const int FF_PROFILE_MPEG2_MAIN = 4;
  1300. public const int FF_PROFILE_MPEG2_SIMPLE = 5;
  1301. public const int FF_PROFILE_H264_CONSTRAINED = (1<<9);
  1302. public const int FF_PROFILE_H264_INTRA = (1<<11);
  1303. public const int FF_PROFILE_H264_BASELINE = 66;
  1304. public const int FF_PROFILE_H264_CONSTRAINED_BASELINE = (66|FF_PROFILE_H264_CONSTRAINED);
  1305. public const int FF_PROFILE_H264_MAIN = 77;
  1306. public const int FF_PROFILE_H264_EXTENDED = 88;
  1307. public const int FF_PROFILE_H264_HIGH = 100;
  1308. public const int FF_PROFILE_H264_HIGH_10 = 110;
  1309. public const int FF_PROFILE_H264_HIGH_10_INTRA = (110|FF_PROFILE_H264_INTRA);
  1310. public const int FF_PROFILE_H264_HIGH_422 = 122;
  1311. public const int FF_PROFILE_H264_HIGH_422_INTRA = (122|FF_PROFILE_H264_INTRA);
  1312. public const int FF_PROFILE_H264_HIGH_444 = 144;
  1313. public const int FF_PROFILE_H264_HIGH_444_PREDICTIVE = 244;
  1314. public const int FF_PROFILE_H264_HIGH_444_INTRA = (244|FF_PROFILE_H264_INTRA);
  1315. public const int FF_PROFILE_H264_CAVLC_444 = 44;
  1316. public const int FF_PROFILE_VC1_SIMPLE = 0;
  1317. public const int FF_PROFILE_VC1_MAIN = 1;
  1318. public const int FF_PROFILE_VC1_COMPLEX = 2;
  1319. public const int FF_PROFILE_VC1_ADVANCED = 3;
  1320. public const int FF_PROFILE_MPEG4_SIMPLE = 0;
  1321. public const int FF_PROFILE_MPEG4_SIMPLE_SCALABLE = 1;
  1322. public const int FF_PROFILE_MPEG4_CORE = 2;
  1323. public const int FF_PROFILE_MPEG4_MAIN = 3;
  1324. public const int FF_PROFILE_MPEG4_N_BIT = 4;
  1325. public const int FF_PROFILE_MPEG4_SCALABLE_TEXTURE = 5;
  1326. public const int FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION = 6;
  1327. public const int FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE = 7;
  1328. public const int FF_PROFILE_MPEG4_HYBRID = 8;
  1329. public const int FF_PROFILE_MPEG4_ADVANCED_REAL_TIME = 9;
  1330. public const int FF_PROFILE_MPEG4_CORE_SCALABLE = 10;
  1331. public const int FF_PROFILE_MPEG4_ADVANCED_CODING = 11;
  1332. public const int FF_PROFILE_MPEG4_ADVANCED_CORE = 12;
  1333. public const int FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE = 13;
  1334. public const int FF_PROFILE_MPEG4_SIMPLE_STUDIO = 14;
  1335. public const int FF_PROFILE_MPEG4_ADVANCED_SIMPLE = 15;
  1336. public const int FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 = 0;
  1337. public const int FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 = 1;
  1338. public const int FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION = 2;
  1339. public const int FF_PROFILE_JPEG2000_DCINEMA_2K = 3;
  1340. public const int FF_PROFILE_JPEG2000_DCINEMA_4K = 4;
  1341. public const int FF_PROFILE_VP9_0 = 0;
  1342. public const int FF_PROFILE_VP9_1 = 1;
  1343. public const int FF_PROFILE_VP9_2 = 2;
  1344. public const int FF_PROFILE_VP9_3 = 3;
  1345. public const int FF_PROFILE_HEVC_MAIN = 1;
  1346. public const int FF_PROFILE_HEVC_MAIN_10 = 2;
  1347. public const int FF_PROFILE_HEVC_MAIN_STILL_PICTURE = 3;
  1348. public const int FF_PROFILE_HEVC_REXT = 4;
  1349. public const int FF_LEVEL_UNKNOWN = -99;
  1350. public const int FF_SUB_CHARENC_MODE_DO_NOTHING = -1;
  1351. public const int FF_SUB_CHARENC_MODE_AUTOMATIC = 0;
  1352. public const int FF_SUB_CHARENC_MODE_PRE_DECODER = 1;
  1353. public const int FF_CODEC_PROPERTY_LOSSLESS = 0x00000001;
  1354. public const int FF_CODEC_PROPERTY_CLOSED_CAPTIONS = 0x00000002;
  1355. public const int AV_HWACCEL_FLAG_IGNORE_LEVEL = (1<<0);
  1356. public const int AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH = (1<<1);
  1357. public const int AV_SUBTITLE_FLAG_FORCED = 0x00000001;
  1358. public const int AV_PARSER_PTS_NB = 4;
  1359. public const int PARSER_FLAG_COMPLETE_FRAMES = 0x0001;
  1360. public const int PARSER_FLAG_ONCE = 0x0002;
  1361. public const int PARSER_FLAG_FETCHED_OFFSET = 0x0004;
  1362. public const int PARSER_FLAG_USE_CODEC_TS = 0x1000;
  1363. #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
  1364. private const string libavcodec = "EasyMovieTexture";
  1365. #else
  1366. private const string libavcodec = "avcodec-57";
  1367. #endif
  1368. [DllImport(libavcodec, EntryPoint = "av_codec_get_pkt_timebase", CallingConvention = CallingConvention.Cdecl)]
  1369. public static extern AVRational av_codec_get_pkt_timebase(AVCodecContext* @avctx);
  1370. [DllImport(libavcodec, EntryPoint = "av_codec_set_pkt_timebase", CallingConvention = CallingConvention.Cdecl)]
  1371. public static extern void av_codec_set_pkt_timebase(AVCodecContext* @avctx, AVRational @val);
  1372. [DllImport(libavcodec, EntryPoint = "av_codec_get_codec_descriptor", CallingConvention = CallingConvention.Cdecl)]
  1373. public static extern AVCodecDescriptor* av_codec_get_codec_descriptor(AVCodecContext* @avctx);
  1374. [DllImport(libavcodec, EntryPoint = "av_codec_set_codec_descriptor", CallingConvention = CallingConvention.Cdecl)]
  1375. public static extern void av_codec_set_codec_descriptor(AVCodecContext* @avctx, AVCodecDescriptor* @desc);
  1376. [DllImport(libavcodec, EntryPoint = "av_codec_get_codec_properties", CallingConvention = CallingConvention.Cdecl)]
  1377. public static extern uint av_codec_get_codec_properties(AVCodecContext* @avctx);
  1378. [DllImport(libavcodec, EntryPoint = "av_codec_get_lowres", CallingConvention = CallingConvention.Cdecl)]
  1379. public static extern int av_codec_get_lowres(AVCodecContext* @avctx);
  1380. [DllImport(libavcodec, EntryPoint = "av_codec_set_lowres", CallingConvention = CallingConvention.Cdecl)]
  1381. public static extern void av_codec_set_lowres(AVCodecContext* @avctx, int @val);
  1382. [DllImport(libavcodec, EntryPoint = "av_codec_get_seek_preroll", CallingConvention = CallingConvention.Cdecl)]
  1383. public static extern int av_codec_get_seek_preroll(AVCodecContext* @avctx);
  1384. [DllImport(libavcodec, EntryPoint = "av_codec_set_seek_preroll", CallingConvention = CallingConvention.Cdecl)]
  1385. public static extern void av_codec_set_seek_preroll(AVCodecContext* @avctx, int @val);
  1386. [DllImport(libavcodec, EntryPoint = "av_codec_get_chroma_intra_matrix", CallingConvention = CallingConvention.Cdecl)]
  1387. public static extern ushort* av_codec_get_chroma_intra_matrix(AVCodecContext* @avctx);
  1388. [DllImport(libavcodec, EntryPoint = "av_codec_set_chroma_intra_matrix", CallingConvention = CallingConvention.Cdecl)]
  1389. public static extern void av_codec_set_chroma_intra_matrix(AVCodecContext* @avctx, ushort* @val);
  1390. [DllImport(libavcodec, EntryPoint = "av_codec_get_max_lowres", CallingConvention = CallingConvention.Cdecl)]
  1391. public static extern int av_codec_get_max_lowres(AVCodec* @codec);
  1392. [DllImport(libavcodec, EntryPoint = "av_codec_next", CallingConvention = CallingConvention.Cdecl)]
  1393. public static extern AVCodec* av_codec_next(AVCodec* @c);
  1394. [DllImport(libavcodec, EntryPoint = "avcodec_version", CallingConvention = CallingConvention.Cdecl)]
  1395. public static extern uint avcodec_version();
  1396. [DllImport(libavcodec, EntryPoint = "avcodec_configuration", CallingConvention = CallingConvention.Cdecl)]
  1397. public static extern string avcodec_configuration();
  1398. [DllImport(libavcodec, EntryPoint = "avcodec_license", CallingConvention = CallingConvention.Cdecl)]
  1399. public static extern string avcodec_license();
  1400. [DllImport(libavcodec, EntryPoint = "avcodec_register", CallingConvention = CallingConvention.Cdecl)]
  1401. public static extern void avcodec_register(AVCodec* @codec);
  1402. [DllImport(libavcodec, EntryPoint = "avcodec_register_all", CallingConvention = CallingConvention.Cdecl)]
  1403. public static extern void avcodec_register_all();
  1404. [DllImport(libavcodec, EntryPoint = "avcodec_alloc_context3", CallingConvention = CallingConvention.Cdecl)]
  1405. public static extern AVCodecContext* avcodec_alloc_context3(AVCodec* @codec);
  1406. [DllImport(libavcodec, EntryPoint = "avcodec_free_context", CallingConvention = CallingConvention.Cdecl)]
  1407. public static extern void avcodec_free_context(AVCodecContext** @avctx);
  1408. [DllImport(libavcodec, EntryPoint = "avcodec_get_context_defaults3", CallingConvention = CallingConvention.Cdecl)]
  1409. public static extern int avcodec_get_context_defaults3(AVCodecContext* @s, AVCodec* @codec);
  1410. [DllImport(libavcodec, EntryPoint = "avcodec_get_class", CallingConvention = CallingConvention.Cdecl)]
  1411. public static extern AVClass* avcodec_get_class();
  1412. [DllImport(libavcodec, EntryPoint = "avcodec_get_frame_class", CallingConvention = CallingConvention.Cdecl)]
  1413. public static extern AVClass* avcodec_get_frame_class();
  1414. [DllImport(libavcodec, EntryPoint = "avcodec_get_subtitle_rect_class", CallingConvention = CallingConvention.Cdecl)]
  1415. public static extern AVClass* avcodec_get_subtitle_rect_class();
  1416. [DllImport(libavcodec, EntryPoint = "avcodec_copy_context", CallingConvention = CallingConvention.Cdecl)]
  1417. public static extern int avcodec_copy_context(AVCodecContext* @dest, AVCodecContext* @src);
  1418. [DllImport(libavcodec, EntryPoint = "avcodec_open2", CallingConvention = CallingConvention.Cdecl)]
  1419. public static extern int avcodec_open2(AVCodecContext* @avctx, AVCodec* @codec, AVDictionary** @options);
  1420. [DllImport(libavcodec, EntryPoint = "avcodec_close", CallingConvention = CallingConvention.Cdecl)]
  1421. public static extern int avcodec_close(AVCodecContext* @avctx);
  1422. [DllImport(libavcodec, EntryPoint = "avsubtitle_free", CallingConvention = CallingConvention.Cdecl)]
  1423. public static extern void avsubtitle_free(AVSubtitle* @sub);
  1424. [DllImport(libavcodec, EntryPoint = "av_packet_alloc", CallingConvention = CallingConvention.Cdecl)]
  1425. public static extern AVPacket* av_packet_alloc();
  1426. [DllImport(libavcodec, EntryPoint = "av_packet_clone", CallingConvention = CallingConvention.Cdecl)]
  1427. public static extern AVPacket* av_packet_clone(AVPacket* @src);
  1428. [DllImport(libavcodec, EntryPoint = "av_packet_free", CallingConvention = CallingConvention.Cdecl)]
  1429. public static extern void av_packet_free(AVPacket** @pkt);
  1430. [DllImport(libavcodec, EntryPoint = "av_init_packet", CallingConvention = CallingConvention.Cdecl)]
  1431. public static extern void av_init_packet(AVPacket* @pkt);
  1432. [DllImport(libavcodec, EntryPoint = "av_new_packet", CallingConvention = CallingConvention.Cdecl)]
  1433. public static extern int av_new_packet(AVPacket* @pkt, int @size);
  1434. [DllImport(libavcodec, EntryPoint = "av_shrink_packet", CallingConvention = CallingConvention.Cdecl)]
  1435. public static extern void av_shrink_packet(AVPacket* @pkt, int @size);
  1436. [DllImport(libavcodec, EntryPoint = "av_grow_packet", CallingConvention = CallingConvention.Cdecl)]
  1437. public static extern int av_grow_packet(AVPacket* @pkt, int @grow_by);
  1438. [DllImport(libavcodec, EntryPoint = "av_packet_from_data", CallingConvention = CallingConvention.Cdecl)]
  1439. public static extern int av_packet_from_data(AVPacket* @pkt, sbyte* @data, int @size);
  1440. [DllImport(libavcodec, EntryPoint = "av_dup_packet", CallingConvention = CallingConvention.Cdecl)]
  1441. public static extern int av_dup_packet(AVPacket* @pkt);
  1442. [DllImport(libavcodec, EntryPoint = "av_copy_packet", CallingConvention = CallingConvention.Cdecl)]
  1443. public static extern int av_copy_packet(AVPacket* @dst, AVPacket* @src);
  1444. [DllImport(libavcodec, EntryPoint = "av_copy_packet_side_data", CallingConvention = CallingConvention.Cdecl)]
  1445. public static extern int av_copy_packet_side_data(AVPacket* @dst, AVPacket* @src);
  1446. [DllImport(libavcodec, EntryPoint = "av_free_packet", CallingConvention = CallingConvention.Cdecl)]
  1447. public static extern void av_free_packet(AVPacket* @pkt);
  1448. [DllImport(libavcodec, EntryPoint = "av_packet_new_side_data", CallingConvention = CallingConvention.Cdecl)]
  1449. public static extern sbyte* av_packet_new_side_data(AVPacket* @pkt, AVPacketSideDataType @type, int @size);
  1450. [DllImport(libavcodec, EntryPoint = "av_packet_add_side_data", CallingConvention = CallingConvention.Cdecl)]
  1451. public static extern int av_packet_add_side_data(AVPacket* @pkt, AVPacketSideDataType @type, sbyte* @data, ulong @size);
  1452. [DllImport(libavcodec, EntryPoint = "av_packet_shrink_side_data", CallingConvention = CallingConvention.Cdecl)]
  1453. public static extern int av_packet_shrink_side_data(AVPacket* @pkt, AVPacketSideDataType @type, int @size);
  1454. [DllImport(libavcodec, EntryPoint = "av_packet_get_side_data", CallingConvention = CallingConvention.Cdecl)]
  1455. public static extern sbyte* av_packet_get_side_data(AVPacket* @pkt, AVPacketSideDataType @type, int* @size);
  1456. [DllImport(libavcodec, EntryPoint = "av_packet_merge_side_data", CallingConvention = CallingConvention.Cdecl)]
  1457. public static extern int av_packet_merge_side_data(AVPacket* @pkt);
  1458. [DllImport(libavcodec, EntryPoint = "av_packet_split_side_data", CallingConvention = CallingConvention.Cdecl)]
  1459. public static extern int av_packet_split_side_data(AVPacket* @pkt);
  1460. [DllImport(libavcodec, EntryPoint = "av_packet_side_data_name", CallingConvention = CallingConvention.Cdecl)]
  1461. public static extern string av_packet_side_data_name(AVPacketSideDataType @type);
  1462. [DllImport(libavcodec, EntryPoint = "av_packet_pack_dictionary", CallingConvention = CallingConvention.Cdecl)]
  1463. public static extern sbyte* av_packet_pack_dictionary(AVDictionary* @dict, int* @size);
  1464. [DllImport(libavcodec, EntryPoint = "av_packet_unpack_dictionary", CallingConvention = CallingConvention.Cdecl)]
  1465. public static extern int av_packet_unpack_dictionary(sbyte* @data, int @size, AVDictionary** @dict);
  1466. [DllImport(libavcodec, EntryPoint = "av_packet_free_side_data", CallingConvention = CallingConvention.Cdecl)]
  1467. public static extern void av_packet_free_side_data(AVPacket* @pkt);
  1468. [DllImport(libavcodec, EntryPoint = "av_packet_ref", CallingConvention = CallingConvention.Cdecl)]
  1469. public static extern int av_packet_ref(AVPacket* @dst, AVPacket* @src);
  1470. [DllImport(libavcodec, EntryPoint = "av_packet_unref", CallingConvention = CallingConvention.Cdecl)]
  1471. public static extern void av_packet_unref(AVPacket* @pkt);
  1472. [DllImport(libavcodec, EntryPoint = "av_packet_move_ref", CallingConvention = CallingConvention.Cdecl)]
  1473. public static extern void av_packet_move_ref(AVPacket* @dst, AVPacket* @src);
  1474. [DllImport(libavcodec, EntryPoint = "av_packet_copy_props", CallingConvention = CallingConvention.Cdecl)]
  1475. public static extern int av_packet_copy_props(AVPacket* @dst, AVPacket* @src);
  1476. [DllImport(libavcodec, EntryPoint = "av_packet_rescale_ts", CallingConvention = CallingConvention.Cdecl)]
  1477. public static extern void av_packet_rescale_ts(AVPacket* @pkt, AVRational @tb_src, AVRational @tb_dst);
  1478. [DllImport(libavcodec, EntryPoint = "avcodec_find_decoder", CallingConvention = CallingConvention.Cdecl)]
  1479. public static extern AVCodec* avcodec_find_decoder(AVCodecID @id);
  1480. [DllImport(libavcodec, EntryPoint = "avcodec_find_decoder_by_name", CallingConvention = CallingConvention.Cdecl)]
  1481. public static extern AVCodec* avcodec_find_decoder_by_name([MarshalAs(UnmanagedType.LPStr)] string @name);
  1482. [DllImport(libavcodec, EntryPoint = "avcodec_default_get_buffer2", CallingConvention = CallingConvention.Cdecl)]
  1483. public static extern int avcodec_default_get_buffer2(AVCodecContext* @s, AVFrame* @frame, int @flags);
  1484. [DllImport(libavcodec, EntryPoint = "avcodec_get_edge_width", CallingConvention = CallingConvention.Cdecl)]
  1485. public static extern uint avcodec_get_edge_width();
  1486. [DllImport(libavcodec, EntryPoint = "avcodec_align_dimensions", CallingConvention = CallingConvention.Cdecl)]
  1487. public static extern void avcodec_align_dimensions(AVCodecContext* @s, int* @width, int* @height);
  1488. [DllImport(libavcodec, EntryPoint = "avcodec_align_dimensions2", CallingConvention = CallingConvention.Cdecl)]
  1489. public static extern void avcodec_align_dimensions2(AVCodecContext* @s, int* @width, int* @height, [MarshalAs(UnmanagedType.LPArray, SizeConst=8)] int[] @linesize_align);
  1490. [DllImport(libavcodec, EntryPoint = "avcodec_enum_to_chroma_pos", CallingConvention = CallingConvention.Cdecl)]
  1491. public static extern int avcodec_enum_to_chroma_pos(int* @xpos, int* @ypos, AVChromaLocation @pos);
  1492. [DllImport(libavcodec, EntryPoint = "avcodec_chroma_pos_to_enum", CallingConvention = CallingConvention.Cdecl)]
  1493. public static extern AVChromaLocation avcodec_chroma_pos_to_enum(int @xpos, int @ypos);
  1494. [DllImport(libavcodec, EntryPoint = "avcodec_decode_audio4", CallingConvention = CallingConvention.Cdecl)]
  1495. public static extern int avcodec_decode_audio4(AVCodecContext* @avctx, AVFrame* @frame, int* @got_frame_ptr, AVPacket* @avpkt);
  1496. [DllImport(libavcodec, EntryPoint = "avcodec_decode_video2", CallingConvention = CallingConvention.Cdecl)]
  1497. public static extern int avcodec_decode_video2(AVCodecContext* @avctx, AVFrame* @picture, int* @got_picture_ptr, AVPacket* @avpkt);
  1498. [DllImport(libavcodec, EntryPoint = "avcodec_decode_subtitle2", CallingConvention = CallingConvention.Cdecl)]
  1499. public static extern int avcodec_decode_subtitle2(AVCodecContext* @avctx, AVSubtitle* @sub, int* @got_sub_ptr, AVPacket* @avpkt);
  1500. [DllImport(libavcodec, EntryPoint = "av_parser_next", CallingConvention = CallingConvention.Cdecl)]
  1501. public static extern AVCodecParser* av_parser_next(AVCodecParser* @c);
  1502. [DllImport(libavcodec, EntryPoint = "av_register_codec_parser", CallingConvention = CallingConvention.Cdecl)]
  1503. public static extern void av_register_codec_parser(AVCodecParser* @parser);
  1504. [DllImport(libavcodec, EntryPoint = "av_parser_init", CallingConvention = CallingConvention.Cdecl)]
  1505. public static extern AVCodecParserContext* av_parser_init(int @codec_id);
  1506. [DllImport(libavcodec, EntryPoint = "av_parser_parse2", CallingConvention = CallingConvention.Cdecl)]
  1507. public static extern int av_parser_parse2(AVCodecParserContext* @s, AVCodecContext* @avctx, sbyte** @poutbuf, int* @poutbuf_size, sbyte* @buf, int @buf_size, long @pts, long @dts, long @pos);
  1508. [DllImport(libavcodec, EntryPoint = "av_parser_change", CallingConvention = CallingConvention.Cdecl)]
  1509. public static extern int av_parser_change(AVCodecParserContext* @s, AVCodecContext* @avctx, sbyte** @poutbuf, int* @poutbuf_size, sbyte* @buf, int @buf_size, int @keyframe);
  1510. [DllImport(libavcodec, EntryPoint = "av_parser_close", CallingConvention = CallingConvention.Cdecl)]
  1511. public static extern void av_parser_close(AVCodecParserContext* @s);
  1512. [DllImport(libavcodec, EntryPoint = "avcodec_find_encoder", CallingConvention = CallingConvention.Cdecl)]
  1513. public static extern AVCodec* avcodec_find_encoder(AVCodecID @id);
  1514. [DllImport(libavcodec, EntryPoint = "avcodec_find_encoder_by_name", CallingConvention = CallingConvention.Cdecl)]
  1515. public static extern AVCodec* avcodec_find_encoder_by_name([MarshalAs(UnmanagedType.LPStr)] string @name);
  1516. [DllImport(libavcodec, EntryPoint = "avcodec_encode_audio2", CallingConvention = CallingConvention.Cdecl)]
  1517. public static extern int avcodec_encode_audio2(AVCodecContext* @avctx, AVPacket* @avpkt, AVFrame* @frame, int* @got_packet_ptr);
  1518. [DllImport(libavcodec, EntryPoint = "avcodec_encode_video2", CallingConvention = CallingConvention.Cdecl)]
  1519. public static extern int avcodec_encode_video2(AVCodecContext* @avctx, AVPacket* @avpkt, AVFrame* @frame, int* @got_packet_ptr);
  1520. [DllImport(libavcodec, EntryPoint = "avcodec_encode_subtitle", CallingConvention = CallingConvention.Cdecl)]
  1521. public static extern int avcodec_encode_subtitle(AVCodecContext* @avctx, sbyte* @buf, int @buf_size, AVSubtitle* @sub);
  1522. [DllImport(libavcodec, EntryPoint = "av_audio_resample_init", CallingConvention = CallingConvention.Cdecl)]
  1523. public static extern ReSampleContext* av_audio_resample_init(int @output_channels, int @input_channels, int @output_rate, int @input_rate, AVSampleFormat @sample_fmt_out, AVSampleFormat @sample_fmt_in, int @filter_length, int @log2_phase_count, int @linear, double @cutoff);
  1524. [DllImport(libavcodec, EntryPoint = "audio_resample", CallingConvention = CallingConvention.Cdecl)]
  1525. public static extern int audio_resample(ReSampleContext* @s, short* @output, short* @input, int @nb_samples);
  1526. [DllImport(libavcodec, EntryPoint = "audio_resample_close", CallingConvention = CallingConvention.Cdecl)]
  1527. public static extern void audio_resample_close(ReSampleContext* @s);
  1528. [DllImport(libavcodec, EntryPoint = "av_resample_init", CallingConvention = CallingConvention.Cdecl)]
  1529. public static extern AVResampleContext* av_resample_init(int @out_rate, int @in_rate, int @filter_length, int @log2_phase_count, int @linear, double @cutoff);
  1530. [DllImport(libavcodec, EntryPoint = "av_resample", CallingConvention = CallingConvention.Cdecl)]
  1531. public static extern int av_resample(AVResampleContext* @c, short* @dst, short* @src, int* @consumed, int @src_size, int @dst_size, int @update_ctx);
  1532. [DllImport(libavcodec, EntryPoint = "av_resample_compensate", CallingConvention = CallingConvention.Cdecl)]
  1533. public static extern void av_resample_compensate(AVResampleContext* @c, int @sample_delta, int @compensation_distance);
  1534. [DllImport(libavcodec, EntryPoint = "av_resample_close", CallingConvention = CallingConvention.Cdecl)]
  1535. public static extern void av_resample_close(AVResampleContext* @c);
  1536. [DllImport(libavcodec, EntryPoint = "avpicture_alloc", CallingConvention = CallingConvention.Cdecl)]
  1537. public static extern int avpicture_alloc(AVPicture* @picture, AVPixelFormat @pix_fmt, int @width, int @height);
  1538. [DllImport(libavcodec, EntryPoint = "avpicture_free", CallingConvention = CallingConvention.Cdecl)]
  1539. public static extern void avpicture_free(AVPicture* @picture);
  1540. [DllImport(libavcodec, EntryPoint = "avpicture_fill", CallingConvention = CallingConvention.Cdecl)]
  1541. public static extern int avpicture_fill(AVPicture* @picture, sbyte* @ptr, AVPixelFormat @pix_fmt, int @width, int @height);
  1542. [DllImport(libavcodec, EntryPoint = "avpicture_layout", CallingConvention = CallingConvention.Cdecl)]
  1543. public static extern int avpicture_layout(AVPicture* @src, AVPixelFormat @pix_fmt, int @width, int @height, sbyte* @dest, int @dest_size);
  1544. [DllImport(libavcodec, EntryPoint = "avpicture_get_size", CallingConvention = CallingConvention.Cdecl)]
  1545. public static extern int avpicture_get_size(AVPixelFormat @pix_fmt, int @width, int @height);
  1546. [DllImport(libavcodec, EntryPoint = "av_picture_copy", CallingConvention = CallingConvention.Cdecl)]
  1547. public static extern void av_picture_copy(AVPicture* @dst, AVPicture* @src, AVPixelFormat @pix_fmt, int @width, int @height);
  1548. [DllImport(libavcodec, EntryPoint = "av_picture_crop", CallingConvention = CallingConvention.Cdecl)]
  1549. public static extern int av_picture_crop(AVPicture* @dst, AVPicture* @src, AVPixelFormat @pix_fmt, int @top_band, int @left_band);
  1550. [DllImport(libavcodec, EntryPoint = "av_picture_pad", CallingConvention = CallingConvention.Cdecl)]
  1551. public static extern int av_picture_pad(AVPicture* @dst, AVPicture* @src, int @height, int @width, AVPixelFormat @pix_fmt, int @padtop, int @padbottom, int @padleft, int @padright, int* @color);
  1552. [DllImport(libavcodec, EntryPoint = "avcodec_get_chroma_sub_sample", CallingConvention = CallingConvention.Cdecl)]
  1553. public static extern void avcodec_get_chroma_sub_sample(AVPixelFormat @pix_fmt, int* @h_shift, int* @v_shift);
  1554. [DllImport(libavcodec, EntryPoint = "avcodec_pix_fmt_to_codec_tag", CallingConvention = CallingConvention.Cdecl)]
  1555. public static extern uint avcodec_pix_fmt_to_codec_tag(AVPixelFormat @pix_fmt);
  1556. [DllImport(libavcodec, EntryPoint = "avcodec_get_pix_fmt_loss", CallingConvention = CallingConvention.Cdecl)]
  1557. public static extern int avcodec_get_pix_fmt_loss(AVPixelFormat @dst_pix_fmt, AVPixelFormat @src_pix_fmt, int @has_alpha);
  1558. [DllImport(libavcodec, EntryPoint = "avcodec_find_best_pix_fmt_of_list", CallingConvention = CallingConvention.Cdecl)]
  1559. public static extern AVPixelFormat avcodec_find_best_pix_fmt_of_list(AVPixelFormat* @pix_fmt_list, AVPixelFormat @src_pix_fmt, int @has_alpha, int* @loss_ptr);
  1560. [DllImport(libavcodec, EntryPoint = "avcodec_find_best_pix_fmt_of_2", CallingConvention = CallingConvention.Cdecl)]
  1561. public static extern AVPixelFormat avcodec_find_best_pix_fmt_of_2(AVPixelFormat @dst_pix_fmt1, AVPixelFormat @dst_pix_fmt2, AVPixelFormat @src_pix_fmt, int @has_alpha, int* @loss_ptr);
  1562. [DllImport(libavcodec, EntryPoint = "avcodec_find_best_pix_fmt2", CallingConvention = CallingConvention.Cdecl)]
  1563. public static extern AVPixelFormat avcodec_find_best_pix_fmt2(AVPixelFormat @dst_pix_fmt1, AVPixelFormat @dst_pix_fmt2, AVPixelFormat @src_pix_fmt, int @has_alpha, int* @loss_ptr);
  1564. [DllImport(libavcodec, EntryPoint = "avcodec_default_get_format", CallingConvention = CallingConvention.Cdecl)]
  1565. public static extern AVPixelFormat avcodec_default_get_format(AVCodecContext* @s, AVPixelFormat* @fmt);
  1566. [DllImport(libavcodec, EntryPoint = "avcodec_set_dimensions", CallingConvention = CallingConvention.Cdecl)]
  1567. public static extern void avcodec_set_dimensions(AVCodecContext* @s, int @width, int @height);
  1568. [DllImport(libavcodec, EntryPoint = "av_get_codec_tag_string", CallingConvention = CallingConvention.Cdecl)]
  1569. public static extern ulong av_get_codec_tag_string(IntPtr @buf, ulong @buf_size, uint @codec_tag);
  1570. [DllImport(libavcodec, EntryPoint = "avcodec_string", CallingConvention = CallingConvention.Cdecl)]
  1571. public static extern void avcodec_string(IntPtr @buf, int @buf_size, AVCodecContext* @enc, int @encode);
  1572. [DllImport(libavcodec, EntryPoint = "av_get_profile_name", CallingConvention = CallingConvention.Cdecl)]
  1573. public static extern string av_get_profile_name(AVCodec* @codec, int @profile);
  1574. [DllImport(libavcodec, EntryPoint = "avcodec_profile_name", CallingConvention = CallingConvention.Cdecl)]
  1575. public static extern string avcodec_profile_name(AVCodecID @codec_id, int @profile);
  1576. [DllImport(libavcodec, EntryPoint = "avcodec_default_execute", CallingConvention = CallingConvention.Cdecl)]
  1577. public static extern int avcodec_default_execute(AVCodecContext* @c, IntPtr* @func, void* @arg, int* @ret, int @count, int @size);
  1578. [DllImport(libavcodec, EntryPoint = "avcodec_default_execute2", CallingConvention = CallingConvention.Cdecl)]
  1579. public static extern int avcodec_default_execute2(AVCodecContext* @c, IntPtr* @func, void* @arg, int* @ret, int @count);
  1580. [DllImport(libavcodec, EntryPoint = "avcodec_fill_audio_frame", CallingConvention = CallingConvention.Cdecl)]
  1581. public static extern int avcodec_fill_audio_frame(AVFrame* @frame, int @nb_channels, AVSampleFormat @sample_fmt, sbyte* @buf, int @buf_size, int @align);
  1582. [DllImport(libavcodec, EntryPoint = "avcodec_flush_buffers", CallingConvention = CallingConvention.Cdecl)]
  1583. public static extern void avcodec_flush_buffers(AVCodecContext* @avctx);
  1584. [DllImport(libavcodec, EntryPoint = "av_get_bits_per_sample", CallingConvention = CallingConvention.Cdecl)]
  1585. public static extern int av_get_bits_per_sample(AVCodecID @codec_id);
  1586. [DllImport(libavcodec, EntryPoint = "av_get_pcm_codec", CallingConvention = CallingConvention.Cdecl)]
  1587. public static extern AVCodecID av_get_pcm_codec(AVSampleFormat @fmt, int @be);
  1588. [DllImport(libavcodec, EntryPoint = "av_get_exact_bits_per_sample", CallingConvention = CallingConvention.Cdecl)]
  1589. public static extern int av_get_exact_bits_per_sample(AVCodecID @codec_id);
  1590. [DllImport(libavcodec, EntryPoint = "av_get_audio_frame_duration", CallingConvention = CallingConvention.Cdecl)]
  1591. public static extern int av_get_audio_frame_duration(AVCodecContext* @avctx, int @frame_bytes);
  1592. [DllImport(libavcodec, EntryPoint = "av_register_bitstream_filter", CallingConvention = CallingConvention.Cdecl)]
  1593. public static extern void av_register_bitstream_filter(AVBitStreamFilter* @bsf);
  1594. [DllImport(libavcodec, EntryPoint = "av_bitstream_filter_init", CallingConvention = CallingConvention.Cdecl)]
  1595. public static extern AVBitStreamFilterContext* av_bitstream_filter_init([MarshalAs(UnmanagedType.LPStr)] string @name);
  1596. [DllImport(libavcodec, EntryPoint = "av_bitstream_filter_filter", CallingConvention = CallingConvention.Cdecl)]
  1597. public static extern int av_bitstream_filter_filter(AVBitStreamFilterContext* @bsfc, AVCodecContext* @avctx, [MarshalAs(UnmanagedType.LPStr)] string @args, sbyte** @poutbuf, int* @poutbuf_size, sbyte* @buf, int @buf_size, int @keyframe);
  1598. [DllImport(libavcodec, EntryPoint = "av_bitstream_filter_close", CallingConvention = CallingConvention.Cdecl)]
  1599. public static extern void av_bitstream_filter_close(AVBitStreamFilterContext* @bsf);
  1600. [DllImport(libavcodec, EntryPoint = "av_bitstream_filter_next", CallingConvention = CallingConvention.Cdecl)]
  1601. public static extern AVBitStreamFilter* av_bitstream_filter_next(AVBitStreamFilter* @f);
  1602. [DllImport(libavcodec, EntryPoint = "av_fast_padded_malloc", CallingConvention = CallingConvention.Cdecl)]
  1603. public static extern void av_fast_padded_malloc(void* @ptr, uint* @size, ulong @min_size);
  1604. [DllImport(libavcodec, EntryPoint = "av_fast_padded_mallocz", CallingConvention = CallingConvention.Cdecl)]
  1605. public static extern void av_fast_padded_mallocz(void* @ptr, uint* @size, ulong @min_size);
  1606. [DllImport(libavcodec, EntryPoint = "av_xiphlacing", CallingConvention = CallingConvention.Cdecl)]
  1607. public static extern uint av_xiphlacing(sbyte* @s, uint @v);
  1608. [DllImport(libavcodec, EntryPoint = "av_log_missing_feature", CallingConvention = CallingConvention.Cdecl)]
  1609. public static extern void av_log_missing_feature(void* @avc, [MarshalAs(UnmanagedType.LPStr)] string @feature, int @want_sample);
  1610. [DllImport(libavcodec, EntryPoint = "av_log_ask_for_sample", CallingConvention = CallingConvention.Cdecl)]
  1611. public static extern void av_log_ask_for_sample(void* @avc, [MarshalAs(UnmanagedType.LPStr)] string @msg);
  1612. [DllImport(libavcodec, EntryPoint = "av_register_hwaccel", CallingConvention = CallingConvention.Cdecl)]
  1613. public static extern void av_register_hwaccel(AVHWAccel* @hwaccel);
  1614. [DllImport(libavcodec, EntryPoint = "av_hwaccel_next", CallingConvention = CallingConvention.Cdecl)]
  1615. public static extern AVHWAccel* av_hwaccel_next(AVHWAccel* @hwaccel);
  1616. [DllImport(libavcodec, EntryPoint = "av_lockmgr_register", CallingConvention = CallingConvention.Cdecl)]
  1617. public static extern int av_lockmgr_register(IntPtr* @cb);
  1618. [DllImport(libavcodec, EntryPoint = "avcodec_get_type", CallingConvention = CallingConvention.Cdecl)]
  1619. public static extern AVMediaType avcodec_get_type(AVCodecID @codec_id);
  1620. [DllImport(libavcodec, EntryPoint = "avcodec_get_name", CallingConvention = CallingConvention.Cdecl)]
  1621. public static extern string avcodec_get_name(AVCodecID @id);
  1622. [DllImport(libavcodec, EntryPoint = "avcodec_is_open", CallingConvention = CallingConvention.Cdecl)]
  1623. public static extern int avcodec_is_open(AVCodecContext* @s);
  1624. [DllImport(libavcodec, EntryPoint = "av_codec_is_encoder", CallingConvention = CallingConvention.Cdecl)]
  1625. public static extern int av_codec_is_encoder(AVCodec* @codec);
  1626. [DllImport(libavcodec, EntryPoint = "av_codec_is_decoder", CallingConvention = CallingConvention.Cdecl)]
  1627. public static extern int av_codec_is_decoder(AVCodec* @codec);
  1628. [DllImport(libavcodec, EntryPoint = "avcodec_descriptor_get", CallingConvention = CallingConvention.Cdecl)]
  1629. public static extern AVCodecDescriptor* avcodec_descriptor_get(AVCodecID @id);
  1630. [DllImport(libavcodec, EntryPoint = "avcodec_descriptor_next", CallingConvention = CallingConvention.Cdecl)]
  1631. public static extern AVCodecDescriptor* avcodec_descriptor_next(AVCodecDescriptor* @prev);
  1632. [DllImport(libavcodec, EntryPoint = "avcodec_descriptor_get_by_name", CallingConvention = CallingConvention.Cdecl)]
  1633. public static extern AVCodecDescriptor* avcodec_descriptor_get_by_name([MarshalAs(UnmanagedType.LPStr)] string @name);
  1634. [DllImport(libavcodec, EntryPoint = "av_cpb_properties_alloc", CallingConvention = CallingConvention.Cdecl)]
  1635. public static extern AVCPBProperties* av_cpb_properties_alloc(ulong* @size);
  1636. }
  1637. }
  1638. #endif