1use std::ffi::CStr;
2use std::str::from_utf8_unchecked;
3
4use ffi::AVCodecID::*;
5use ffi::*;
6use util::media;
7
8#[allow(non_camel_case_types)]
9#[derive(Eq, PartialEq, Clone, Copy, Debug)]
10pub enum Id {
11 None,
12
13 // video codecs
14 MPEG1VIDEO,
15 MPEG2VIDEO,
16 #[cfg(all(feature = "ff_api_xvmc", not(feature = "ffmpeg_5_0")))]
17 MPEG2VIDEO_XVMC,
18 H261,
19 H263,
20 RV10,
21 RV20,
22 MJPEG,
23 MJPEGB,
24 LJPEG,
25 SP5X,
26 JPEGLS,
27 MPEG4,
28 RAWVIDEO,
29 MSMPEG4V1,
30 MSMPEG4V2,
31 MSMPEG4V3,
32 WMV1,
33 WMV2,
34 H263P,
35 H263I,
36 FLV1,
37 SVQ1,
38 SVQ3,
39 DVVIDEO,
40 HUFFYUV,
41 CYUV,
42 H264,
43 INDEO3,
44 VP3,
45 THEORA,
46 ASV1,
47 ASV2,
48 FFV1,
49 XM4,
50 VCR1,
51 CLJR,
52 MDEC,
53 ROQ,
54 INTERPLAY_VIDEO,
55 XAN_WC3,
56 XAN_WC4,
57 RPZA,
58 CINEPAK,
59 WS_VQA,
60 MSRLE,
61 MSVIDEO1,
62 IDCIN,
63 BPS8,
64 SMC,
65 FLIC,
66 TRUEMOTION1,
67 VMDVIDEO,
68 MSZH,
69 ZLIB,
70 QTRLE,
71 TSCC,
72 ULTI,
73 QDRAW,
74 VIXL,
75 QPEG,
76 PNG,
77 PPM,
78 PBM,
79 PGM,
80 PGMYUV,
81 PAM,
82 FFVHUFF,
83 RV30,
84 RV40,
85 VC1,
86 WMV3,
87 LOCO,
88 WNV1,
89 AASC,
90 INDEO2,
91 FRAPS,
92 TRUEMOTION2,
93 BMP,
94 CSCD,
95 MMVIDEO,
96 ZMBV,
97 AVS,
98 SMACKVIDEO,
99 NUV,
100 KMVC,
101 FLASHSV,
102 CAVS,
103 JPEG2000,
104 VMNC,
105 VP5,
106 VP6,
107 VP6F,
108 TARGA,
109 DSICINVIDEO,
110 TIERTEXSEQVIDEO,
111 TIFF,
112 GIF,
113 DXA,
114 DNXHD,
115 THP,
116 SGI,
117 C93,
118 BETHSOFTVID,
119 PTX,
120 TXD,
121 VP6A,
122 AMV,
123 VB,
124 PCX,
125 SUNRAST,
126 INDEO4,
127 INDEO5,
128 MIMIC,
129 RL2,
130 ESCAPE124,
131 DIRAC,
132 BFI,
133 CMV,
134 MOTIONPIXELS,
135 TGV,
136 TGQ,
137 TQI,
138 AURA,
139 AURA2,
140 V210X,
141 TMV,
142 V210,
143 DPX,
144 MAD,
145 FRWU,
146 FLASHSV2,
147 CDGRAPHICS,
148 R210,
149 ANM,
150 BINKVIDEO,
151 IFF_ILBM,
152 IFF_BYTERUN1,
153 KGV1,
154 YOP,
155 VP8,
156 PICTOR,
157 ANSI,
158 A64_MULTI,
159 A64_MULTI5,
160 R10K,
161 MXPEG,
162 LAGARITH,
163 PRORES,
164 JV,
165 DFA,
166 WMV3IMAGE,
167 VC1IMAGE,
168 UTVIDEO,
169 BMV_VIDEO,
170 VBLE,
171 DXTORY,
172 V410,
173 XWD,
174 CDXL,
175 XBM,
176 ZEROCODEC,
177 MSS1,
178 MSA1,
179 TSCC2,
180 MTS2,
181 CLLC,
182 MSS2,
183 VP9,
184 AIC,
185 ESCAPE130,
186 G2M,
187 WEBP,
188 HNM4_VIDEO,
189 HEVC,
190 H265,
191 FIC,
192 ALIAS_PIX,
193 BRENDER_PIX,
194 PAF_VIDEO,
195 EXR,
196 VP7,
197 SANM,
198 SGIRLE,
199 MVC1,
200 MVC2,
201 HQX,
202 TDSC,
203 HQ_HQA,
204 HAP,
205 DDS,
206 DXV,
207 SCREENPRESSO,
208 RSCC,
209
210 Y41P,
211 AVRP,
212 V012,
213 AVUI,
214 AYUV,
215 TARGA_Y216,
216 V308,
217 V408,
218 YUV4,
219 AVRN,
220 CPIA,
221 XFACE,
222 SNOW,
223 SMVJPEG,
224 APNG,
225 DAALA,
226 CFHD,
227 TRUEMOTION2RT,
228 M101,
229 MAGICYUV,
230 SHEERVIDEO,
231 YLC,
232
233 // various PCM "codecs"
234 PCM_S16LE,
235 PCM_S16BE,
236 PCM_U16LE,
237 PCM_U16BE,
238 PCM_S8,
239 PCM_U8,
240 PCM_MULAW,
241 PCM_ALAW,
242 PCM_S32LE,
243 PCM_S32BE,
244 PCM_U32LE,
245 PCM_U32BE,
246 PCM_S24LE,
247 PCM_S24BE,
248 PCM_U24LE,
249 PCM_U24BE,
250 PCM_S24DAUD,
251 PCM_ZORK,
252 PCM_S16LE_PLANAR,
253 PCM_DVD,
254 PCM_F32BE,
255 PCM_F32LE,
256 PCM_F64BE,
257 PCM_F64LE,
258 PCM_BLURAY,
259 PCM_LXF,
260 S302M,
261 PCM_S8_PLANAR,
262 PCM_S24LE_PLANAR,
263 PCM_S32LE_PLANAR,
264 PCM_S16BE_PLANAR,
265
266 PCM_S64LE,
267 PCM_S64BE,
268
269 // various ADPCM codecs
270 ADPCM_IMA_QT,
271 ADPCM_IMA_WAV,
272 ADPCM_IMA_DK3,
273 ADPCM_IMA_DK4,
274 ADPCM_IMA_WS,
275 ADPCM_IMA_SMJPEG,
276 ADPCM_MS,
277 ADPCM_4XM,
278 ADPCM_XA,
279 ADPCM_ADX,
280 ADPCM_EA,
281 ADPCM_G726,
282 ADPCM_CT,
283 ADPCM_SWF,
284 ADPCM_YAMAHA,
285 ADPCM_SBPRO_4,
286 ADPCM_SBPRO_3,
287 ADPCM_SBPRO_2,
288 ADPCM_THP,
289 ADPCM_IMA_AMV,
290 ADPCM_EA_R1,
291 ADPCM_EA_R3,
292 ADPCM_EA_R2,
293 ADPCM_IMA_EA_SEAD,
294 ADPCM_IMA_EA_EACS,
295 ADPCM_EA_XAS,
296 ADPCM_EA_MAXIS_XA,
297 ADPCM_IMA_ISS,
298 ADPCM_G722,
299 ADPCM_IMA_APC,
300 ADPCM_VIMA,
301
302 ADPCM_AFC,
303 ADPCM_IMA_OKI,
304 ADPCM_DTK,
305 ADPCM_IMA_RAD,
306 ADPCM_G726LE,
307 ADPCM_THP_LE,
308 ADPCM_PSX,
309 ADPCM_AICA,
310 ADPCM_IMA_DAT4,
311 ADPCM_MTAF,
312
313 // AMR
314 AMR_NB,
315 AMR_WB,
316
317 // RealAudio codecs
318 RA_144,
319 RA_288,
320
321 // various DPCM codecs
322 ROQ_DPCM,
323 INTERPLAY_DPCM,
324 XAN_DPCM,
325 SOL_DPCM,
326
327 SDX2_DPCM,
328
329 // audio codecs
330 MP2,
331 MP3,
332 AAC,
333 AC3,
334 DTS,
335 VORBIS,
336 DVAUDIO,
337 WMAV1,
338 WMAV2,
339 MACE3,
340 MACE6,
341 VMDAUDIO,
342 FLAC,
343 MP3ADU,
344 MP3ON4,
345 SHORTEN,
346 ALAC,
347 WESTWOOD_SND1,
348 GSM,
349 QDM2,
350 COOK,
351 TRUESPEECH,
352 TTA,
353 SMACKAUDIO,
354 QCELP,
355 WAVPACK,
356 DSICINAUDIO,
357 IMC,
358 MUSEPACK7,
359 MLP,
360 GSM_MS,
361 ATRAC3,
362 #[cfg(feature = "ff_api_voxware")]
363 VOXWARE,
364 APE,
365 NELLYMOSER,
366 MUSEPACK8,
367 SPEEX,
368 WMAVOICE,
369 WMAPRO,
370 WMALOSSLESS,
371 ATRAC3P,
372 EAC3,
373 SIPR,
374 MP1,
375 TWINVQ,
376 TRUEHD,
377 MP4ALS,
378 ATRAC1,
379 BINKAUDIO_RDFT,
380 BINKAUDIO_DCT,
381 AAC_LATM,
382 QDMC,
383 CELT,
384 G723_1,
385 G729,
386 SVX_EXP8,
387 SVX_FIB8,
388 BMV_AUDIO,
389 RALF,
390 IAC,
391 ILBC,
392 OPUS,
393 COMFORT_NOISE,
394 TAK,
395 METASOUND,
396 PAF_AUDIO,
397 ON2AVC,
398 DSS_SP,
399
400 #[cfg(feature = "ffmpeg_4_0")]
401 CODEC2,
402 FFWAVESYNTH,
403 SONIC,
404 SONIC_LS,
405 EVRC,
406 SMV,
407 DSD_LSBF,
408 DSD_MSBF,
409 DSD_LSBF_PLANAR,
410 DSD_MSBF_PLANAR,
411 _4GV,
412 INTERPLAY_ACM,
413 XMA1,
414 XMA2,
415 DST,
416
417 // subtitle codecs
418 DVD_SUBTITLE,
419 DVB_SUBTITLE,
420 TEXT,
421 XSUB,
422 SSA,
423 MOV_TEXT,
424 HDMV_PGS_SUBTITLE,
425 DVB_TELETEXT,
426 SRT,
427
428 MICRODVD,
429 EIA_608,
430 JACOSUB,
431 SAMI,
432 REALTEXT,
433 STL,
434 SUBVIEWER1,
435 SUBVIEWER,
436 SUBRIP,
437 WEBVTT,
438 MPL2,
439 VPLAYER,
440 PJS,
441 ASS,
442 HDMV_TEXT_SUBTITLE,
443
444 // other specific kind of codecs (generally used for attachments)
445 TTF,
446
447 SCTE_35,
448 BINTEXT,
449 XBIN,
450 IDF,
451 OTF,
452 SMPTE_KLV,
453 DVD_NAV,
454 TIMED_ID3,
455 BIN_DATA,
456
457 PROBE,
458
459 MPEG2TS,
460 MPEG4SYSTEMS,
461 FFMETADATA,
462 WRAPPED_AVFRAME,
463
464 PSD,
465 PIXLET,
466 SPEEDHQ,
467 CLEARVIDEO,
468 FMVC,
469 SCPR,
470 XPM,
471 AV1,
472 PCM_F16LE,
473 PCM_F24LE,
474 ATRAC3AL,
475 ATRAC3PAL,
476
477 BITPACKED,
478 MSCC,
479 SRGC,
480 SVG,
481 GDV,
482 FITS,
483 GREMLIN_DPCM,
484 DOLBY_E,
485
486 #[cfg(feature = "ffmpeg_4_0")]
487 APTX,
488 #[cfg(feature = "ffmpeg_4_0")]
489 APTX_HD,
490 #[cfg(feature = "ffmpeg_4_0")]
491 SBC,
492
493 #[cfg(feature = "ffmpeg_4_1")]
494 AVS2,
495 #[cfg(feature = "ffmpeg_4_1")]
496 IMM4,
497 #[cfg(feature = "ffmpeg_4_1")]
498 PROSUMER,
499 #[cfg(feature = "ffmpeg_4_1")]
500 MWSC,
501 #[cfg(feature = "ffmpeg_4_1")]
502 WCMV,
503 #[cfg(feature = "ffmpeg_4_1")]
504 RASC,
505 #[cfg(feature = "ffmpeg_4_1")]
506 PCM_VIDC,
507 #[cfg(feature = "ffmpeg_4_1")]
508 ATRAC9,
509 #[cfg(feature = "ffmpeg_4_1")]
510 TTML,
511
512 #[cfg(feature = "ffmpeg_4_2")]
513 HYMT,
514 #[cfg(feature = "ffmpeg_4_2")]
515 ARBC,
516 #[cfg(feature = "ffmpeg_4_2")]
517 AGM,
518 #[cfg(feature = "ffmpeg_4_2")]
519 LSCR,
520 #[cfg(feature = "ffmpeg_4_2")]
521 VP4,
522 #[cfg(feature = "ffmpeg_4_2")]
523 ADPCM_AGM,
524 #[cfg(feature = "ffmpeg_4_2")]
525 HCOM,
526 #[cfg(feature = "ffmpeg_4_2")]
527 ARIB_CAPTION,
528
529 #[cfg(feature = "ffmpeg_4_3")]
530 IMM5,
531 #[cfg(feature = "ffmpeg_4_3")]
532 MVDV,
533 #[cfg(feature = "ffmpeg_4_3")]
534 MVHA,
535 #[cfg(feature = "ffmpeg_4_3")]
536 CDTOONS,
537 #[cfg(feature = "ffmpeg_4_3")]
538 MV30,
539 #[cfg(feature = "ffmpeg_4_3")]
540 NOTCHLC,
541 #[cfg(feature = "ffmpeg_4_3")]
542 PFM,
543 #[cfg(feature = "ffmpeg_4_3")]
544 ADPCM_ARGO,
545 #[cfg(feature = "ffmpeg_4_3")]
546 ADPCM_IMA_SSI,
547 #[cfg(feature = "ffmpeg_4_3")]
548 ADPCM_ZORK,
549 #[cfg(feature = "ffmpeg_4_3")]
550 ADPCM_IMA_APM,
551 #[cfg(feature = "ffmpeg_4_3")]
552 ADPCM_IMA_ALP,
553 #[cfg(feature = "ffmpeg_4_3")]
554 ADPCM_IMA_MTF,
555 #[cfg(feature = "ffmpeg_4_3")]
556 ADPCM_IMA_CUNNING,
557 #[cfg(feature = "ffmpeg_4_3")]
558 DERF_DPCM,
559 #[cfg(feature = "ffmpeg_4_3")]
560 ACELP_KELVIN,
561 #[cfg(feature = "ffmpeg_4_3")]
562 MPEGH_3D_AUDIO,
563 #[cfg(feature = "ffmpeg_4_3")]
564 SIREN,
565 #[cfg(feature = "ffmpeg_4_3")]
566 HCA,
567 #[cfg(feature = "ffmpeg_4_3")]
568 EPG,
569
570 #[cfg(feature = "ffmpeg_4_4")]
571 AVS3,
572 #[cfg(feature = "ffmpeg_4_4")]
573 PGX,
574 #[cfg(feature = "ffmpeg_4_4")]
575 MSP2,
576 #[cfg(feature = "ffmpeg_4_4")]
577 VVC,
578 #[cfg(feature = "ffmpeg_4_4")]
579 MOBICLIP,
580 #[cfg(feature = "ffmpeg_4_4")]
581 PHOTOCD,
582 #[cfg(feature = "ffmpeg_4_4")]
583 ARGO,
584 #[cfg(feature = "ffmpeg_4_4")]
585 CRI,
586 #[cfg(feature = "ffmpeg_4_4")]
587 IPU,
588 #[cfg(feature = "ffmpeg_4_4")]
589 SIMBIOSIS_IMX,
590 #[cfg(feature = "ffmpeg_4_4")]
591 SGA_VIDEO,
592 #[cfg(feature = "ffmpeg_4_4")]
593 PCM_SGA,
594 #[cfg(feature = "ffmpeg_4_4")]
595 ADPCM_IMA_MOFLEX,
596 #[cfg(feature = "ffmpeg_4_4")]
597 FASTAUDIO,
598
599 #[cfg(feature = "ffmpeg_5_0")]
600 GEM,
601 #[cfg(feature = "ffmpeg_5_0")]
602 ADPCM_IMA_ACORN,
603 #[cfg(feature = "ffmpeg_5_0")]
604 MSNSIREN,
605
606 #[cfg(feature = "ffmpeg_5_1")]
607 VBN,
608 #[cfg(feature = "ffmpeg_5_1")]
609 JPEGXL,
610 #[cfg(feature = "ffmpeg_5_1")]
611 QOI,
612 #[cfg(feature = "ffmpeg_5_1")]
613 PHM,
614 #[cfg(feature = "ffmpeg_5_1")]
615 DFPWM,
616
617 #[cfg(feature = "ffmpeg_6_0")]
618 RADIANCE_HDR,
619 #[cfg(feature = "ffmpeg_6_0")]
620 WBMP,
621 #[cfg(feature = "ffmpeg_6_0")]
622 MEDIA100,
623 #[cfg(feature = "ffmpeg_6_0")]
624 VQC,
625 #[cfg(feature = "ffmpeg_6_0")]
626 ADPCM_XMD,
627 #[cfg(feature = "ffmpeg_6_0")]
628 WADY_DPCM,
629 #[cfg(feature = "ffmpeg_6_0")]
630 CBD2_DPCM,
631 #[cfg(feature = "ffmpeg_6_0")]
632 BONK,
633 #[cfg(feature = "ffmpeg_6_0")]
634 MISC4,
635 #[cfg(feature = "ffmpeg_6_0")]
636 APAC,
637 #[cfg(feature = "ffmpeg_6_0")]
638 FTR,
639 #[cfg(feature = "ffmpeg_6_0")]
640 WAVARC,
641 #[cfg(feature = "ffmpeg_6_0")]
642 RKA,
643 #[cfg(feature = "ffmpeg_6_0")]
644 VNULL,
645 #[cfg(feature = "ffmpeg_6_0")]
646 ANULL,
647
648 #[cfg(feature = "ffmpeg_6_1")]
649 PDV,
650 #[cfg(feature = "ffmpeg_6_1")]
651 EVC,
652 #[cfg(feature = "ffmpeg_6_1")]
653 RTV1,
654 #[cfg(feature = "ffmpeg_6_1")]
655 VMIX,
656 #[cfg(feature = "ffmpeg_6_1")]
657 AC4,
658 #[cfg(feature = "ffmpeg_6_1")]
659 SMPTE_2038,
660 #[cfg(feature = "ffmpeg_6_1")]
661 OSQ,
662}
663
664impl Id {
665 #[cfg(feature = "ff_api_vima_decoder")]
666 pub const VIMA: Id = Id::ADPCM_VIMA;
667
668 pub fn medium(&self) -> media::Type {
669 unsafe { media::Type::from(avcodec_get_type((*self).into())) }
670 }
671
672 pub fn name(&self) -> &'static str {
673 unsafe { from_utf8_unchecked(CStr::from_ptr(avcodec_get_name((*self).into())).to_bytes()) }
674 }
675}
676
677impl From<AVCodecID> for Id {
678 fn from(value: AVCodecID) -> Self {
679 match value {
680 AV_CODEC_ID_NONE => Id::None,
681
682 /* video codecs */
683 AV_CODEC_ID_MPEG1VIDEO => Id::MPEG1VIDEO,
684 AV_CODEC_ID_MPEG2VIDEO => Id::MPEG2VIDEO,
685 #[cfg(all(feature = "ff_api_xvmc", not(feature = "ffmpeg_5_0")))]
686 AV_CODEC_ID_MPEG2VIDEO_XVMC => Id::MPEG2VIDEO_XVMC,
687 AV_CODEC_ID_H261 => Id::H261,
688 AV_CODEC_ID_H263 => Id::H263,
689 AV_CODEC_ID_RV10 => Id::RV10,
690 AV_CODEC_ID_RV20 => Id::RV20,
691 AV_CODEC_ID_MJPEG => Id::MJPEG,
692 AV_CODEC_ID_MJPEGB => Id::MJPEGB,
693 AV_CODEC_ID_LJPEG => Id::LJPEG,
694 AV_CODEC_ID_SP5X => Id::SP5X,
695 AV_CODEC_ID_JPEGLS => Id::JPEGLS,
696 AV_CODEC_ID_MPEG4 => Id::MPEG4,
697 AV_CODEC_ID_RAWVIDEO => Id::RAWVIDEO,
698 AV_CODEC_ID_MSMPEG4V1 => Id::MSMPEG4V1,
699 AV_CODEC_ID_MSMPEG4V2 => Id::MSMPEG4V2,
700 AV_CODEC_ID_MSMPEG4V3 => Id::MSMPEG4V3,
701 AV_CODEC_ID_WMV1 => Id::WMV1,
702 AV_CODEC_ID_WMV2 => Id::WMV2,
703 AV_CODEC_ID_H263P => Id::H263P,
704 AV_CODEC_ID_H263I => Id::H263I,
705 AV_CODEC_ID_FLV1 => Id::FLV1,
706 AV_CODEC_ID_SVQ1 => Id::SVQ1,
707 AV_CODEC_ID_SVQ3 => Id::SVQ3,
708 AV_CODEC_ID_DVVIDEO => Id::DVVIDEO,
709 AV_CODEC_ID_HUFFYUV => Id::HUFFYUV,
710 AV_CODEC_ID_CYUV => Id::CYUV,
711 AV_CODEC_ID_H264 => Id::H264,
712 AV_CODEC_ID_INDEO3 => Id::INDEO3,
713 AV_CODEC_ID_VP3 => Id::VP3,
714 AV_CODEC_ID_THEORA => Id::THEORA,
715 AV_CODEC_ID_ASV1 => Id::ASV1,
716 AV_CODEC_ID_ASV2 => Id::ASV2,
717 AV_CODEC_ID_FFV1 => Id::FFV1,
718 AV_CODEC_ID_4XM => Id::XM4,
719 AV_CODEC_ID_VCR1 => Id::VCR1,
720 AV_CODEC_ID_CLJR => Id::CLJR,
721 AV_CODEC_ID_MDEC => Id::MDEC,
722 AV_CODEC_ID_ROQ => Id::ROQ,
723 AV_CODEC_ID_INTERPLAY_VIDEO => Id::INTERPLAY_VIDEO,
724 AV_CODEC_ID_XAN_WC3 => Id::XAN_WC3,
725 AV_CODEC_ID_XAN_WC4 => Id::XAN_WC4,
726 AV_CODEC_ID_RPZA => Id::RPZA,
727 AV_CODEC_ID_CINEPAK => Id::CINEPAK,
728 AV_CODEC_ID_WS_VQA => Id::WS_VQA,
729 AV_CODEC_ID_MSRLE => Id::MSRLE,
730 AV_CODEC_ID_MSVIDEO1 => Id::MSVIDEO1,
731 AV_CODEC_ID_IDCIN => Id::IDCIN,
732 AV_CODEC_ID_8BPS => Id::BPS8,
733 AV_CODEC_ID_SMC => Id::SMC,
734 AV_CODEC_ID_FLIC => Id::FLIC,
735 AV_CODEC_ID_TRUEMOTION1 => Id::TRUEMOTION1,
736 AV_CODEC_ID_VMDVIDEO => Id::VMDVIDEO,
737 AV_CODEC_ID_MSZH => Id::MSZH,
738 AV_CODEC_ID_ZLIB => Id::ZLIB,
739 AV_CODEC_ID_QTRLE => Id::QTRLE,
740 AV_CODEC_ID_TSCC => Id::TSCC,
741 AV_CODEC_ID_ULTI => Id::ULTI,
742 AV_CODEC_ID_QDRAW => Id::QDRAW,
743 AV_CODEC_ID_VIXL => Id::VIXL,
744 AV_CODEC_ID_QPEG => Id::QPEG,
745 AV_CODEC_ID_PNG => Id::PNG,
746 AV_CODEC_ID_PPM => Id::PPM,
747 AV_CODEC_ID_PBM => Id::PBM,
748 AV_CODEC_ID_PGM => Id::PGM,
749 AV_CODEC_ID_PGMYUV => Id::PGMYUV,
750 AV_CODEC_ID_PAM => Id::PAM,
751 AV_CODEC_ID_FFVHUFF => Id::FFVHUFF,
752 AV_CODEC_ID_RV30 => Id::RV30,
753 AV_CODEC_ID_RV40 => Id::RV40,
754 AV_CODEC_ID_VC1 => Id::VC1,
755 AV_CODEC_ID_WMV3 => Id::WMV3,
756 AV_CODEC_ID_LOCO => Id::LOCO,
757 AV_CODEC_ID_WNV1 => Id::WNV1,
758 AV_CODEC_ID_AASC => Id::AASC,
759 AV_CODEC_ID_INDEO2 => Id::INDEO2,
760 AV_CODEC_ID_FRAPS => Id::FRAPS,
761 AV_CODEC_ID_TRUEMOTION2 => Id::TRUEMOTION2,
762 AV_CODEC_ID_BMP => Id::BMP,
763 AV_CODEC_ID_CSCD => Id::CSCD,
764 AV_CODEC_ID_MMVIDEO => Id::MMVIDEO,
765 AV_CODEC_ID_ZMBV => Id::ZMBV,
766 AV_CODEC_ID_AVS => Id::AVS,
767 AV_CODEC_ID_SMACKVIDEO => Id::SMACKVIDEO,
768 AV_CODEC_ID_NUV => Id::NUV,
769 AV_CODEC_ID_KMVC => Id::KMVC,
770 AV_CODEC_ID_FLASHSV => Id::FLASHSV,
771 AV_CODEC_ID_CAVS => Id::CAVS,
772 AV_CODEC_ID_JPEG2000 => Id::JPEG2000,
773 AV_CODEC_ID_VMNC => Id::VMNC,
774 AV_CODEC_ID_VP5 => Id::VP5,
775 AV_CODEC_ID_VP6 => Id::VP6,
776 AV_CODEC_ID_VP6F => Id::VP6F,
777 AV_CODEC_ID_TARGA => Id::TARGA,
778 AV_CODEC_ID_DSICINVIDEO => Id::DSICINVIDEO,
779 AV_CODEC_ID_TIERTEXSEQVIDEO => Id::TIERTEXSEQVIDEO,
780 AV_CODEC_ID_TIFF => Id::TIFF,
781 AV_CODEC_ID_GIF => Id::GIF,
782 AV_CODEC_ID_DXA => Id::DXA,
783 AV_CODEC_ID_DNXHD => Id::DNXHD,
784 AV_CODEC_ID_THP => Id::THP,
785 AV_CODEC_ID_SGI => Id::SGI,
786 AV_CODEC_ID_C93 => Id::C93,
787 AV_CODEC_ID_BETHSOFTVID => Id::BETHSOFTVID,
788 AV_CODEC_ID_PTX => Id::PTX,
789 AV_CODEC_ID_TXD => Id::TXD,
790 AV_CODEC_ID_VP6A => Id::VP6A,
791 AV_CODEC_ID_AMV => Id::AMV,
792 AV_CODEC_ID_VB => Id::VB,
793 AV_CODEC_ID_PCX => Id::PCX,
794 AV_CODEC_ID_SUNRAST => Id::SUNRAST,
795 AV_CODEC_ID_INDEO4 => Id::INDEO4,
796 AV_CODEC_ID_INDEO5 => Id::INDEO5,
797 AV_CODEC_ID_MIMIC => Id::MIMIC,
798 AV_CODEC_ID_RL2 => Id::RL2,
799 AV_CODEC_ID_ESCAPE124 => Id::ESCAPE124,
800 AV_CODEC_ID_DIRAC => Id::DIRAC,
801 AV_CODEC_ID_BFI => Id::BFI,
802 AV_CODEC_ID_CMV => Id::CMV,
803 AV_CODEC_ID_MOTIONPIXELS => Id::MOTIONPIXELS,
804 AV_CODEC_ID_TGV => Id::TGV,
805 AV_CODEC_ID_TGQ => Id::TGQ,
806 AV_CODEC_ID_TQI => Id::TQI,
807 AV_CODEC_ID_AURA => Id::AURA,
808 AV_CODEC_ID_AURA2 => Id::AURA2,
809 AV_CODEC_ID_V210X => Id::V210X,
810 AV_CODEC_ID_TMV => Id::TMV,
811 AV_CODEC_ID_V210 => Id::V210,
812 AV_CODEC_ID_DPX => Id::DPX,
813 AV_CODEC_ID_MAD => Id::MAD,
814 AV_CODEC_ID_FRWU => Id::FRWU,
815 AV_CODEC_ID_FLASHSV2 => Id::FLASHSV2,
816 AV_CODEC_ID_CDGRAPHICS => Id::CDGRAPHICS,
817 AV_CODEC_ID_R210 => Id::R210,
818 AV_CODEC_ID_ANM => Id::ANM,
819 AV_CODEC_ID_BINKVIDEO => Id::BINKVIDEO,
820 AV_CODEC_ID_IFF_ILBM => Id::IFF_ILBM,
821 AV_CODEC_ID_KGV1 => Id::KGV1,
822 AV_CODEC_ID_YOP => Id::YOP,
823 AV_CODEC_ID_VP8 => Id::VP8,
824 AV_CODEC_ID_PICTOR => Id::PICTOR,
825 AV_CODEC_ID_ANSI => Id::ANSI,
826 AV_CODEC_ID_A64_MULTI => Id::A64_MULTI,
827 AV_CODEC_ID_A64_MULTI5 => Id::A64_MULTI5,
828 AV_CODEC_ID_R10K => Id::R10K,
829 AV_CODEC_ID_MXPEG => Id::MXPEG,
830 AV_CODEC_ID_LAGARITH => Id::LAGARITH,
831 AV_CODEC_ID_PRORES => Id::PRORES,
832 AV_CODEC_ID_JV => Id::JV,
833 AV_CODEC_ID_DFA => Id::DFA,
834 AV_CODEC_ID_WMV3IMAGE => Id::WMV3IMAGE,
835 AV_CODEC_ID_VC1IMAGE => Id::VC1IMAGE,
836 AV_CODEC_ID_UTVIDEO => Id::UTVIDEO,
837 AV_CODEC_ID_BMV_VIDEO => Id::BMV_VIDEO,
838 AV_CODEC_ID_VBLE => Id::VBLE,
839 AV_CODEC_ID_DXTORY => Id::DXTORY,
840 AV_CODEC_ID_V410 => Id::V410,
841 AV_CODEC_ID_XWD => Id::XWD,
842 AV_CODEC_ID_CDXL => Id::CDXL,
843 AV_CODEC_ID_XBM => Id::XBM,
844 AV_CODEC_ID_ZEROCODEC => Id::ZEROCODEC,
845 AV_CODEC_ID_MSS1 => Id::MSS1,
846 AV_CODEC_ID_MSA1 => Id::MSA1,
847 AV_CODEC_ID_TSCC2 => Id::TSCC2,
848 AV_CODEC_ID_MTS2 => Id::MTS2,
849 AV_CODEC_ID_CLLC => Id::CLLC,
850 AV_CODEC_ID_MSS2 => Id::MSS2,
851 AV_CODEC_ID_VP9 => Id::VP9,
852 AV_CODEC_ID_AIC => Id::AIC,
853 AV_CODEC_ID_ESCAPE130 => Id::ESCAPE130,
854 AV_CODEC_ID_G2M => Id::G2M,
855 AV_CODEC_ID_WEBP => Id::WEBP,
856 AV_CODEC_ID_HNM4_VIDEO => Id::HNM4_VIDEO,
857 AV_CODEC_ID_HEVC => Id::HEVC,
858 AV_CODEC_ID_FIC => Id::FIC,
859 AV_CODEC_ID_ALIAS_PIX => Id::ALIAS_PIX,
860 AV_CODEC_ID_BRENDER_PIX => Id::BRENDER_PIX,
861 AV_CODEC_ID_PAF_VIDEO => Id::PAF_VIDEO,
862 AV_CODEC_ID_EXR => Id::EXR,
863 AV_CODEC_ID_VP7 => Id::VP7,
864 AV_CODEC_ID_SANM => Id::SANM,
865 AV_CODEC_ID_SGIRLE => Id::SGIRLE,
866 AV_CODEC_ID_MVC1 => Id::MVC1,
867 AV_CODEC_ID_MVC2 => Id::MVC2,
868 AV_CODEC_ID_HQX => Id::HQX,
869 AV_CODEC_ID_TDSC => Id::TDSC,
870 AV_CODEC_ID_HQ_HQA => Id::HQ_HQA,
871 AV_CODEC_ID_HAP => Id::HAP,
872 AV_CODEC_ID_DDS => Id::DDS,
873 AV_CODEC_ID_DXV => Id::DXV,
874 AV_CODEC_ID_SCREENPRESSO => Id::SCREENPRESSO,
875 AV_CODEC_ID_RSCC => Id::RSCC,
876
877 AV_CODEC_ID_Y41P => Id::Y41P,
878 AV_CODEC_ID_AVRP => Id::AVRP,
879 AV_CODEC_ID_012V => Id::V012,
880 AV_CODEC_ID_AVUI => Id::AVUI,
881 AV_CODEC_ID_AYUV => Id::AYUV,
882 AV_CODEC_ID_TARGA_Y216 => Id::TARGA_Y216,
883 AV_CODEC_ID_V308 => Id::V308,
884 AV_CODEC_ID_V408 => Id::V408,
885 AV_CODEC_ID_YUV4 => Id::YUV4,
886 AV_CODEC_ID_AVRN => Id::AVRN,
887 AV_CODEC_ID_CPIA => Id::CPIA,
888 AV_CODEC_ID_XFACE => Id::XFACE,
889 AV_CODEC_ID_SNOW => Id::SNOW,
890 AV_CODEC_ID_SMVJPEG => Id::SMVJPEG,
891 AV_CODEC_ID_APNG => Id::APNG,
892 AV_CODEC_ID_DAALA => Id::DAALA,
893 AV_CODEC_ID_CFHD => Id::CFHD,
894 AV_CODEC_ID_TRUEMOTION2RT => Id::TRUEMOTION2RT,
895 AV_CODEC_ID_M101 => Id::M101,
896 AV_CODEC_ID_MAGICYUV => Id::MAGICYUV,
897 AV_CODEC_ID_SHEERVIDEO => Id::SHEERVIDEO,
898 AV_CODEC_ID_YLC => Id::YLC,
899
900 /* various PCM "codecs" */
901 AV_CODEC_ID_PCM_S16LE => Id::PCM_S16LE,
902 AV_CODEC_ID_PCM_S16BE => Id::PCM_S16BE,
903 AV_CODEC_ID_PCM_U16LE => Id::PCM_U16LE,
904 AV_CODEC_ID_PCM_U16BE => Id::PCM_U16BE,
905 AV_CODEC_ID_PCM_S8 => Id::PCM_S8,
906 AV_CODEC_ID_PCM_U8 => Id::PCM_U8,
907 AV_CODEC_ID_PCM_MULAW => Id::PCM_MULAW,
908 AV_CODEC_ID_PCM_ALAW => Id::PCM_ALAW,
909 AV_CODEC_ID_PCM_S32LE => Id::PCM_S32LE,
910 AV_CODEC_ID_PCM_S32BE => Id::PCM_S32BE,
911 AV_CODEC_ID_PCM_U32LE => Id::PCM_U32LE,
912 AV_CODEC_ID_PCM_U32BE => Id::PCM_U32BE,
913 AV_CODEC_ID_PCM_S24LE => Id::PCM_S24LE,
914 AV_CODEC_ID_PCM_S24BE => Id::PCM_S24BE,
915 AV_CODEC_ID_PCM_U24LE => Id::PCM_U24LE,
916 AV_CODEC_ID_PCM_U24BE => Id::PCM_U24BE,
917 AV_CODEC_ID_PCM_S24DAUD => Id::PCM_S24DAUD,
918 AV_CODEC_ID_PCM_ZORK => Id::PCM_ZORK,
919 AV_CODEC_ID_PCM_S16LE_PLANAR => Id::PCM_S16LE_PLANAR,
920 AV_CODEC_ID_PCM_DVD => Id::PCM_DVD,
921 AV_CODEC_ID_PCM_F32BE => Id::PCM_F32BE,
922 AV_CODEC_ID_PCM_F32LE => Id::PCM_F32LE,
923 AV_CODEC_ID_PCM_F64BE => Id::PCM_F64BE,
924 AV_CODEC_ID_PCM_F64LE => Id::PCM_F64LE,
925 AV_CODEC_ID_PCM_BLURAY => Id::PCM_BLURAY,
926 AV_CODEC_ID_PCM_LXF => Id::PCM_LXF,
927 AV_CODEC_ID_S302M => Id::S302M,
928 AV_CODEC_ID_PCM_S8_PLANAR => Id::PCM_S8_PLANAR,
929 AV_CODEC_ID_PCM_S24LE_PLANAR => Id::PCM_S24LE_PLANAR,
930 AV_CODEC_ID_PCM_S32LE_PLANAR => Id::PCM_S32LE_PLANAR,
931 AV_CODEC_ID_PCM_S16BE_PLANAR => Id::PCM_S16BE_PLANAR,
932
933 AV_CODEC_ID_PCM_S64LE => Id::PCM_S64LE,
934 AV_CODEC_ID_PCM_S64BE => Id::PCM_S64BE,
935
936 /* various ADPCM codecs */
937 AV_CODEC_ID_ADPCM_IMA_QT => Id::ADPCM_IMA_QT,
938 AV_CODEC_ID_ADPCM_IMA_WAV => Id::ADPCM_IMA_WAV,
939 AV_CODEC_ID_ADPCM_IMA_DK3 => Id::ADPCM_IMA_DK3,
940 AV_CODEC_ID_ADPCM_IMA_DK4 => Id::ADPCM_IMA_DK4,
941 AV_CODEC_ID_ADPCM_IMA_WS => Id::ADPCM_IMA_WS,
942 AV_CODEC_ID_ADPCM_IMA_SMJPEG => Id::ADPCM_IMA_SMJPEG,
943 AV_CODEC_ID_ADPCM_MS => Id::ADPCM_MS,
944 AV_CODEC_ID_ADPCM_4XM => Id::ADPCM_4XM,
945 AV_CODEC_ID_ADPCM_XA => Id::ADPCM_XA,
946 AV_CODEC_ID_ADPCM_ADX => Id::ADPCM_ADX,
947 AV_CODEC_ID_ADPCM_EA => Id::ADPCM_EA,
948 AV_CODEC_ID_ADPCM_G726 => Id::ADPCM_G726,
949 AV_CODEC_ID_ADPCM_CT => Id::ADPCM_CT,
950 AV_CODEC_ID_ADPCM_SWF => Id::ADPCM_SWF,
951 AV_CODEC_ID_ADPCM_YAMAHA => Id::ADPCM_YAMAHA,
952 AV_CODEC_ID_ADPCM_SBPRO_4 => Id::ADPCM_SBPRO_4,
953 AV_CODEC_ID_ADPCM_SBPRO_3 => Id::ADPCM_SBPRO_3,
954 AV_CODEC_ID_ADPCM_SBPRO_2 => Id::ADPCM_SBPRO_2,
955 AV_CODEC_ID_ADPCM_THP => Id::ADPCM_THP,
956 AV_CODEC_ID_ADPCM_IMA_AMV => Id::ADPCM_IMA_AMV,
957 AV_CODEC_ID_ADPCM_EA_R1 => Id::ADPCM_EA_R1,
958 AV_CODEC_ID_ADPCM_EA_R3 => Id::ADPCM_EA_R3,
959 AV_CODEC_ID_ADPCM_EA_R2 => Id::ADPCM_EA_R2,
960 AV_CODEC_ID_ADPCM_IMA_EA_SEAD => Id::ADPCM_IMA_EA_SEAD,
961 AV_CODEC_ID_ADPCM_IMA_EA_EACS => Id::ADPCM_IMA_EA_EACS,
962 AV_CODEC_ID_ADPCM_EA_XAS => Id::ADPCM_EA_XAS,
963 AV_CODEC_ID_ADPCM_EA_MAXIS_XA => Id::ADPCM_EA_MAXIS_XA,
964 AV_CODEC_ID_ADPCM_IMA_ISS => Id::ADPCM_IMA_ISS,
965 AV_CODEC_ID_ADPCM_G722 => Id::ADPCM_G722,
966 AV_CODEC_ID_ADPCM_IMA_APC => Id::ADPCM_IMA_APC,
967 AV_CODEC_ID_ADPCM_VIMA => Id::ADPCM_VIMA,
968
969 AV_CODEC_ID_ADPCM_AFC => Id::ADPCM_AFC,
970 AV_CODEC_ID_ADPCM_IMA_OKI => Id::ADPCM_IMA_OKI,
971 AV_CODEC_ID_ADPCM_DTK => Id::ADPCM_DTK,
972 AV_CODEC_ID_ADPCM_IMA_RAD => Id::ADPCM_IMA_RAD,
973 AV_CODEC_ID_ADPCM_G726LE => Id::ADPCM_G726LE,
974 AV_CODEC_ID_ADPCM_THP_LE => Id::ADPCM_THP_LE,
975 AV_CODEC_ID_ADPCM_PSX => Id::ADPCM_PSX,
976 AV_CODEC_ID_ADPCM_AICA => Id::ADPCM_AICA,
977 AV_CODEC_ID_ADPCM_IMA_DAT4 => Id::ADPCM_IMA_DAT4,
978 AV_CODEC_ID_ADPCM_MTAF => Id::ADPCM_MTAF,
979
980 /* AMR */
981 AV_CODEC_ID_AMR_NB => Id::AMR_NB,
982 AV_CODEC_ID_AMR_WB => Id::AMR_WB,
983
984 /* RealAudio codecs*/
985 AV_CODEC_ID_RA_144 => Id::RA_144,
986 AV_CODEC_ID_RA_288 => Id::RA_288,
987
988 /* various DPCM codecs */
989 AV_CODEC_ID_ROQ_DPCM => Id::ROQ_DPCM,
990 AV_CODEC_ID_INTERPLAY_DPCM => Id::INTERPLAY_DPCM,
991 AV_CODEC_ID_XAN_DPCM => Id::XAN_DPCM,
992 AV_CODEC_ID_SOL_DPCM => Id::SOL_DPCM,
993
994 AV_CODEC_ID_SDX2_DPCM => Id::SDX2_DPCM,
995
996 /* audio codecs */
997 AV_CODEC_ID_MP2 => Id::MP2,
998 AV_CODEC_ID_MP3 => Id::MP3,
999 AV_CODEC_ID_AAC => Id::AAC,
1000 AV_CODEC_ID_AC3 => Id::AC3,
1001 AV_CODEC_ID_DTS => Id::DTS,
1002 AV_CODEC_ID_VORBIS => Id::VORBIS,
1003 AV_CODEC_ID_DVAUDIO => Id::DVAUDIO,
1004 AV_CODEC_ID_WMAV1 => Id::WMAV1,
1005 AV_CODEC_ID_WMAV2 => Id::WMAV2,
1006 AV_CODEC_ID_MACE3 => Id::MACE3,
1007 AV_CODEC_ID_MACE6 => Id::MACE6,
1008 AV_CODEC_ID_VMDAUDIO => Id::VMDAUDIO,
1009 AV_CODEC_ID_FLAC => Id::FLAC,
1010 AV_CODEC_ID_MP3ADU => Id::MP3ADU,
1011 AV_CODEC_ID_MP3ON4 => Id::MP3ON4,
1012 AV_CODEC_ID_SHORTEN => Id::SHORTEN,
1013 AV_CODEC_ID_ALAC => Id::ALAC,
1014 AV_CODEC_ID_WESTWOOD_SND1 => Id::WESTWOOD_SND1,
1015 AV_CODEC_ID_GSM => Id::GSM,
1016 AV_CODEC_ID_QDM2 => Id::QDM2,
1017 AV_CODEC_ID_COOK => Id::COOK,
1018 AV_CODEC_ID_TRUESPEECH => Id::TRUESPEECH,
1019 AV_CODEC_ID_TTA => Id::TTA,
1020 AV_CODEC_ID_SMACKAUDIO => Id::SMACKAUDIO,
1021 AV_CODEC_ID_QCELP => Id::QCELP,
1022 AV_CODEC_ID_WAVPACK => Id::WAVPACK,
1023 AV_CODEC_ID_DSICINAUDIO => Id::DSICINAUDIO,
1024 AV_CODEC_ID_IMC => Id::IMC,
1025 AV_CODEC_ID_MUSEPACK7 => Id::MUSEPACK7,
1026 AV_CODEC_ID_MLP => Id::MLP,
1027 AV_CODEC_ID_GSM_MS => Id::GSM_MS,
1028 AV_CODEC_ID_ATRAC3 => Id::ATRAC3,
1029 #[cfg(feature = "ff_api_voxware")]
1030 AV_CODEC_ID_VOXWARE => Id::VOXWARE,
1031 AV_CODEC_ID_APE => Id::APE,
1032 AV_CODEC_ID_NELLYMOSER => Id::NELLYMOSER,
1033 AV_CODEC_ID_MUSEPACK8 => Id::MUSEPACK8,
1034 AV_CODEC_ID_SPEEX => Id::SPEEX,
1035 AV_CODEC_ID_WMAVOICE => Id::WMAVOICE,
1036 AV_CODEC_ID_WMAPRO => Id::WMAPRO,
1037 AV_CODEC_ID_WMALOSSLESS => Id::WMALOSSLESS,
1038 AV_CODEC_ID_ATRAC3P => Id::ATRAC3P,
1039 AV_CODEC_ID_EAC3 => Id::EAC3,
1040 AV_CODEC_ID_SIPR => Id::SIPR,
1041 AV_CODEC_ID_MP1 => Id::MP1,
1042 AV_CODEC_ID_TWINVQ => Id::TWINVQ,
1043 AV_CODEC_ID_TRUEHD => Id::TRUEHD,
1044 AV_CODEC_ID_MP4ALS => Id::MP4ALS,
1045 AV_CODEC_ID_ATRAC1 => Id::ATRAC1,
1046 AV_CODEC_ID_BINKAUDIO_RDFT => Id::BINKAUDIO_RDFT,
1047 AV_CODEC_ID_BINKAUDIO_DCT => Id::BINKAUDIO_DCT,
1048 AV_CODEC_ID_AAC_LATM => Id::AAC_LATM,
1049 AV_CODEC_ID_QDMC => Id::QDMC,
1050 AV_CODEC_ID_CELT => Id::CELT,
1051 AV_CODEC_ID_G723_1 => Id::G723_1,
1052 AV_CODEC_ID_G729 => Id::G729,
1053 AV_CODEC_ID_8SVX_EXP => Id::SVX_EXP8,
1054 AV_CODEC_ID_8SVX_FIB => Id::SVX_FIB8,
1055 AV_CODEC_ID_BMV_AUDIO => Id::BMV_AUDIO,
1056 AV_CODEC_ID_RALF => Id::RALF,
1057 AV_CODEC_ID_IAC => Id::IAC,
1058 AV_CODEC_ID_ILBC => Id::ILBC,
1059 AV_CODEC_ID_OPUS => Id::OPUS,
1060 AV_CODEC_ID_COMFORT_NOISE => Id::COMFORT_NOISE,
1061 AV_CODEC_ID_TAK => Id::TAK,
1062 AV_CODEC_ID_METASOUND => Id::METASOUND,
1063 AV_CODEC_ID_PAF_AUDIO => Id::PAF_AUDIO,
1064 AV_CODEC_ID_ON2AVC => Id::ON2AVC,
1065 AV_CODEC_ID_DSS_SP => Id::DSS_SP,
1066
1067 #[cfg(feature = "ffmpeg_4_0")]
1068 AV_CODEC_ID_CODEC2 => Id::CODEC2,
1069 AV_CODEC_ID_FFWAVESYNTH => Id::FFWAVESYNTH,
1070 AV_CODEC_ID_SONIC => Id::SONIC,
1071 AV_CODEC_ID_SONIC_LS => Id::SONIC_LS,
1072 AV_CODEC_ID_EVRC => Id::EVRC,
1073 AV_CODEC_ID_SMV => Id::SMV,
1074 AV_CODEC_ID_DSD_LSBF => Id::DSD_LSBF,
1075 AV_CODEC_ID_DSD_MSBF => Id::DSD_MSBF,
1076 AV_CODEC_ID_DSD_LSBF_PLANAR => Id::DSD_LSBF_PLANAR,
1077 AV_CODEC_ID_DSD_MSBF_PLANAR => Id::DSD_MSBF_PLANAR,
1078 AV_CODEC_ID_4GV => Id::_4GV,
1079 AV_CODEC_ID_INTERPLAY_ACM => Id::INTERPLAY_ACM,
1080 AV_CODEC_ID_XMA1 => Id::XMA1,
1081 AV_CODEC_ID_XMA2 => Id::XMA2,
1082 AV_CODEC_ID_DST => Id::DST,
1083
1084 /* subtitle codecs */
1085 AV_CODEC_ID_DVD_SUBTITLE => Id::DVD_SUBTITLE,
1086 AV_CODEC_ID_DVB_SUBTITLE => Id::DVB_SUBTITLE,
1087 AV_CODEC_ID_TEXT => Id::TEXT,
1088 AV_CODEC_ID_XSUB => Id::XSUB,
1089 AV_CODEC_ID_SSA => Id::SSA,
1090 AV_CODEC_ID_MOV_TEXT => Id::MOV_TEXT,
1091 AV_CODEC_ID_HDMV_PGS_SUBTITLE => Id::HDMV_PGS_SUBTITLE,
1092 AV_CODEC_ID_DVB_TELETEXT => Id::DVB_TELETEXT,
1093 AV_CODEC_ID_SRT => Id::SRT,
1094
1095 AV_CODEC_ID_MICRODVD => Id::MICRODVD,
1096 AV_CODEC_ID_EIA_608 => Id::EIA_608,
1097 AV_CODEC_ID_JACOSUB => Id::JACOSUB,
1098 AV_CODEC_ID_SAMI => Id::SAMI,
1099 AV_CODEC_ID_REALTEXT => Id::REALTEXT,
1100 AV_CODEC_ID_STL => Id::STL,
1101 AV_CODEC_ID_SUBVIEWER1 => Id::SUBVIEWER1,
1102 AV_CODEC_ID_SUBVIEWER => Id::SUBVIEWER,
1103 AV_CODEC_ID_SUBRIP => Id::SUBRIP,
1104 AV_CODEC_ID_WEBVTT => Id::WEBVTT,
1105 AV_CODEC_ID_MPL2 => Id::MPL2,
1106 AV_CODEC_ID_VPLAYER => Id::VPLAYER,
1107 AV_CODEC_ID_PJS => Id::PJS,
1108 AV_CODEC_ID_ASS => Id::ASS,
1109 AV_CODEC_ID_HDMV_TEXT_SUBTITLE => Id::HDMV_TEXT_SUBTITLE,
1110
1111 /* other specific kind of codecs (generally used for attachments) */
1112 AV_CODEC_ID_TTF => Id::TTF,
1113
1114 AV_CODEC_ID_SCTE_35 => Id::SCTE_35,
1115 AV_CODEC_ID_BINTEXT => Id::BINTEXT,
1116 AV_CODEC_ID_XBIN => Id::XBIN,
1117 AV_CODEC_ID_IDF => Id::IDF,
1118 AV_CODEC_ID_OTF => Id::OTF,
1119 AV_CODEC_ID_SMPTE_KLV => Id::SMPTE_KLV,
1120 AV_CODEC_ID_DVD_NAV => Id::DVD_NAV,
1121 AV_CODEC_ID_TIMED_ID3 => Id::TIMED_ID3,
1122 AV_CODEC_ID_BIN_DATA => Id::BIN_DATA,
1123
1124 AV_CODEC_ID_PROBE => Id::PROBE,
1125
1126 AV_CODEC_ID_MPEG2TS => Id::MPEG2TS,
1127 AV_CODEC_ID_MPEG4SYSTEMS => Id::MPEG4SYSTEMS,
1128 AV_CODEC_ID_FFMETADATA => Id::FFMETADATA,
1129 AV_CODEC_ID_WRAPPED_AVFRAME => Id::WRAPPED_AVFRAME,
1130 AV_CODEC_ID_PSD => Id::PSD,
1131 AV_CODEC_ID_PIXLET => Id::PIXLET,
1132 AV_CODEC_ID_SPEEDHQ => Id::SPEEDHQ,
1133 AV_CODEC_ID_CLEARVIDEO => Id::CLEARVIDEO,
1134 AV_CODEC_ID_FMVC => Id::FMVC,
1135 AV_CODEC_ID_SCPR => Id::SCPR,
1136 AV_CODEC_ID_XPM => Id::XPM,
1137 AV_CODEC_ID_AV1 => Id::AV1,
1138 AV_CODEC_ID_PCM_F16LE => Id::PCM_F16LE,
1139 AV_CODEC_ID_PCM_F24LE => Id::PCM_F24LE,
1140 AV_CODEC_ID_ATRAC3AL => Id::ATRAC3AL,
1141 AV_CODEC_ID_ATRAC3PAL => Id::ATRAC3PAL,
1142
1143 AV_CODEC_ID_BITPACKED => Id::BITPACKED,
1144 AV_CODEC_ID_MSCC => Id::MSCC,
1145 AV_CODEC_ID_SRGC => Id::SRGC,
1146 AV_CODEC_ID_SVG => Id::SVG,
1147 AV_CODEC_ID_GDV => Id::GDV,
1148 AV_CODEC_ID_FITS => Id::FITS,
1149 AV_CODEC_ID_GREMLIN_DPCM => Id::GREMLIN_DPCM,
1150 AV_CODEC_ID_DOLBY_E => Id::DOLBY_E,
1151
1152 #[cfg(feature = "ffmpeg_4_0")]
1153 AV_CODEC_ID_APTX => Id::APTX,
1154 #[cfg(feature = "ffmpeg_4_0")]
1155 AV_CODEC_ID_APTX_HD => Id::APTX_HD,
1156 #[cfg(feature = "ffmpeg_4_0")]
1157 AV_CODEC_ID_SBC => Id::SBC,
1158
1159 #[cfg(feature = "ffmpeg_4_1")]
1160 AV_CODEC_ID_AVS2 => Id::AVS2,
1161 #[cfg(feature = "ffmpeg_4_1")]
1162 AV_CODEC_ID_IMM4 => Id::IMM4,
1163 #[cfg(feature = "ffmpeg_4_1")]
1164 AV_CODEC_ID_PROSUMER => Id::PROSUMER,
1165 #[cfg(feature = "ffmpeg_4_1")]
1166 AV_CODEC_ID_MWSC => Id::MWSC,
1167 #[cfg(feature = "ffmpeg_4_1")]
1168 AV_CODEC_ID_WCMV => Id::WCMV,
1169 #[cfg(feature = "ffmpeg_4_1")]
1170 AV_CODEC_ID_RASC => Id::RASC,
1171 #[cfg(feature = "ffmpeg_4_1")]
1172 AV_CODEC_ID_PCM_VIDC => Id::PCM_VIDC,
1173 #[cfg(feature = "ffmpeg_4_1")]
1174 AV_CODEC_ID_ATRAC9 => Id::ATRAC9,
1175 #[cfg(feature = "ffmpeg_4_1")]
1176 AV_CODEC_ID_TTML => Id::TTML,
1177
1178 #[cfg(feature = "ffmpeg_4_2")]
1179 AV_CODEC_ID_HYMT => Id::HYMT,
1180 #[cfg(feature = "ffmpeg_4_2")]
1181 AV_CODEC_ID_ARBC => Id::ARBC,
1182 #[cfg(feature = "ffmpeg_4_2")]
1183 AV_CODEC_ID_AGM => Id::AGM,
1184 #[cfg(feature = "ffmpeg_4_2")]
1185 AV_CODEC_ID_LSCR => Id::LSCR,
1186 #[cfg(feature = "ffmpeg_4_2")]
1187 AV_CODEC_ID_VP4 => Id::VP4,
1188 #[cfg(feature = "ffmpeg_4_2")]
1189 AV_CODEC_ID_ADPCM_AGM => Id::ADPCM_AGM,
1190 #[cfg(feature = "ffmpeg_4_2")]
1191 AV_CODEC_ID_HCOM => Id::HCOM,
1192 #[cfg(feature = "ffmpeg_4_2")]
1193 AV_CODEC_ID_ARIB_CAPTION => Id::ARIB_CAPTION,
1194
1195 #[cfg(feature = "ffmpeg_4_3")]
1196 AV_CODEC_ID_IMM5 => Id::IMM5,
1197 #[cfg(feature = "ffmpeg_4_3")]
1198 AV_CODEC_ID_MVDV => Id::MVDV,
1199 #[cfg(feature = "ffmpeg_4_3")]
1200 AV_CODEC_ID_MVHA => Id::MVHA,
1201 #[cfg(feature = "ffmpeg_4_3")]
1202 AV_CODEC_ID_CDTOONS => Id::CDTOONS,
1203 #[cfg(feature = "ffmpeg_4_3")]
1204 AV_CODEC_ID_MV30 => Id::MV30,
1205 #[cfg(feature = "ffmpeg_4_3")]
1206 AV_CODEC_ID_NOTCHLC => Id::NOTCHLC,
1207 #[cfg(feature = "ffmpeg_4_3")]
1208 AV_CODEC_ID_PFM => Id::PFM,
1209 #[cfg(feature = "ffmpeg_4_3")]
1210 AV_CODEC_ID_ADPCM_ARGO => Id::ADPCM_ARGO,
1211 #[cfg(feature = "ffmpeg_4_3")]
1212 AV_CODEC_ID_ADPCM_IMA_SSI => Id::ADPCM_IMA_SSI,
1213 #[cfg(feature = "ffmpeg_4_3")]
1214 AV_CODEC_ID_ADPCM_ZORK => Id::ADPCM_ZORK,
1215 #[cfg(feature = "ffmpeg_4_3")]
1216 AV_CODEC_ID_ADPCM_IMA_APM => Id::ADPCM_IMA_APM,
1217 #[cfg(feature = "ffmpeg_4_3")]
1218 AV_CODEC_ID_ADPCM_IMA_ALP => Id::ADPCM_IMA_ALP,
1219 #[cfg(feature = "ffmpeg_4_3")]
1220 AV_CODEC_ID_ADPCM_IMA_MTF => Id::ADPCM_IMA_MTF,
1221 #[cfg(feature = "ffmpeg_4_3")]
1222 AV_CODEC_ID_ADPCM_IMA_CUNNING => Id::ADPCM_IMA_CUNNING,
1223 #[cfg(feature = "ffmpeg_4_3")]
1224 AV_CODEC_ID_DERF_DPCM => Id::DERF_DPCM,
1225 #[cfg(feature = "ffmpeg_4_3")]
1226 AV_CODEC_ID_ACELP_KELVIN => Id::ACELP_KELVIN,
1227 #[cfg(feature = "ffmpeg_4_3")]
1228 AV_CODEC_ID_MPEGH_3D_AUDIO => Id::MPEGH_3D_AUDIO,
1229 #[cfg(feature = "ffmpeg_4_3")]
1230 AV_CODEC_ID_SIREN => Id::SIREN,
1231 #[cfg(feature = "ffmpeg_4_3")]
1232 AV_CODEC_ID_HCA => Id::HCA,
1233 #[cfg(feature = "ffmpeg_4_3")]
1234 AV_CODEC_ID_EPG => Id::EPG,
1235
1236 #[cfg(feature = "ffmpeg_4_4")]
1237 AV_CODEC_ID_PGX => Id::PGX,
1238 #[cfg(feature = "ffmpeg_4_4")]
1239 AV_CODEC_ID_AVS3 => Id::AVS3,
1240 #[cfg(feature = "ffmpeg_4_4")]
1241 AV_CODEC_ID_MSP2 => Id::MSP2,
1242 #[cfg(feature = "ffmpeg_4_4")]
1243 AV_CODEC_ID_VVC => Id::VVC,
1244 #[cfg(feature = "ffmpeg_4_4")]
1245 AV_CODEC_ID_MOBICLIP => Id::MOBICLIP,
1246 #[cfg(feature = "ffmpeg_4_4")]
1247 AV_CODEC_ID_PHOTOCD => Id::PHOTOCD,
1248 #[cfg(feature = "ffmpeg_4_4")]
1249 AV_CODEC_ID_IPU => Id::IPU,
1250 #[cfg(feature = "ffmpeg_4_4")]
1251 AV_CODEC_ID_ARGO => Id::ARGO,
1252 #[cfg(feature = "ffmpeg_4_4")]
1253 AV_CODEC_ID_CRI => Id::CRI,
1254 #[cfg(feature = "ffmpeg_4_4")]
1255 AV_CODEC_ID_SIMBIOSIS_IMX => Id::SIMBIOSIS_IMX,
1256 #[cfg(feature = "ffmpeg_4_4")]
1257 AV_CODEC_ID_SGA_VIDEO => Id::SGA_VIDEO,
1258 #[cfg(feature = "ffmpeg_4_4")]
1259 AV_CODEC_ID_PCM_SGA => Id::PCM_SGA,
1260 #[cfg(feature = "ffmpeg_4_4")]
1261 AV_CODEC_ID_ADPCM_IMA_MOFLEX => Id::ADPCM_IMA_MOFLEX,
1262 #[cfg(feature = "ffmpeg_4_4")]
1263 AV_CODEC_ID_FASTAUDIO => Id::FASTAUDIO,
1264
1265 #[cfg(feature = "ffmpeg_5_0")]
1266 AV_CODEC_ID_GEM => Id::GEM,
1267 #[cfg(feature = "ffmpeg_5_0")]
1268 AV_CODEC_ID_ADPCM_IMA_ACORN => Id::ADPCM_IMA_ACORN,
1269 #[cfg(feature = "ffmpeg_5_0")]
1270 AV_CODEC_ID_MSNSIREN => Id::MSNSIREN,
1271
1272 #[cfg(feature = "ffmpeg_5_1")]
1273 AV_CODEC_ID_VBN => Id::VBN,
1274 #[cfg(feature = "ffmpeg_5_1")]
1275 AV_CODEC_ID_JPEGXL => Id::JPEGXL,
1276 #[cfg(feature = "ffmpeg_5_1")]
1277 AV_CODEC_ID_QOI => Id::QOI,
1278 #[cfg(feature = "ffmpeg_5_1")]
1279 AV_CODEC_ID_PHM => Id::PHM,
1280 #[cfg(feature = "ffmpeg_5_1")]
1281 AV_CODEC_ID_DFPWM => Id::DFPWM,
1282
1283 #[cfg(feature = "ffmpeg_6_0")]
1284 AV_CODEC_ID_RADIANCE_HDR => Id::RADIANCE_HDR,
1285 #[cfg(feature = "ffmpeg_6_0")]
1286 AV_CODEC_ID_WBMP => Id::WBMP,
1287 #[cfg(feature = "ffmpeg_6_0")]
1288 AV_CODEC_ID_MEDIA100 => Id::MEDIA100,
1289 #[cfg(feature = "ffmpeg_6_0")]
1290 AV_CODEC_ID_VQC => Id::VQC,
1291 #[cfg(feature = "ffmpeg_6_0")]
1292 AV_CODEC_ID_ADPCM_XMD => Id::ADPCM_XMD,
1293 #[cfg(feature = "ffmpeg_6_0")]
1294 AV_CODEC_ID_WADY_DPCM => Id::WADY_DPCM,
1295 #[cfg(feature = "ffmpeg_6_0")]
1296 AV_CODEC_ID_CBD2_DPCM => Id::CBD2_DPCM,
1297 #[cfg(feature = "ffmpeg_6_0")]
1298 AV_CODEC_ID_BONK => Id::BONK,
1299 #[cfg(feature = "ffmpeg_6_0")]
1300 AV_CODEC_ID_MISC4 => Id::MISC4,
1301 #[cfg(feature = "ffmpeg_6_0")]
1302 AV_CODEC_ID_APAC => Id::APAC,
1303 #[cfg(feature = "ffmpeg_6_0")]
1304 AV_CODEC_ID_FTR => Id::FTR,
1305 #[cfg(feature = "ffmpeg_6_0")]
1306 AV_CODEC_ID_WAVARC => Id::WAVARC,
1307 #[cfg(feature = "ffmpeg_6_0")]
1308 AV_CODEC_ID_RKA => Id::RKA,
1309 #[cfg(feature = "ffmpeg_6_0")]
1310 AV_CODEC_ID_VNULL => Id::VNULL,
1311 #[cfg(feature = "ffmpeg_6_0")]
1312 AV_CODEC_ID_ANULL => Id::ANULL,
1313
1314 #[cfg(feature = "ffmpeg_6_1")]
1315 AV_CODEC_ID_PDV => Id::PDV,
1316 #[cfg(feature = "ffmpeg_6_1")]
1317 AV_CODEC_ID_EVC => Id::EVC,
1318 #[cfg(feature = "ffmpeg_6_1")]
1319 AV_CODEC_ID_RTV1 => Id::RTV1,
1320 #[cfg(feature = "ffmpeg_6_1")]
1321 AV_CODEC_ID_VMIX => Id::VMIX,
1322 #[cfg(feature = "ffmpeg_6_1")]
1323 AV_CODEC_ID_AC4 => Id::AC4,
1324 #[cfg(feature = "ffmpeg_6_1")]
1325 AV_CODEC_ID_SMPTE_2038 => Id::SMPTE_2038,
1326 #[cfg(feature = "ffmpeg_6_1")]
1327 AV_CODEC_ID_OSQ => Id::OSQ,
1328 }
1329 }
1330}
1331
1332impl From<Id> for AVCodecID {
1333 fn from(value: Id) -> AVCodecID {
1334 match value {
1335 Id::None => AV_CODEC_ID_NONE,
1336
1337 /* video codecs */
1338 Id::MPEG1VIDEO => AV_CODEC_ID_MPEG1VIDEO,
1339 Id::MPEG2VIDEO => AV_CODEC_ID_MPEG2VIDEO,
1340 #[cfg(all(feature = "ff_api_xvmc", not(feature = "ffmpeg_5_0")))]
1341 Id::MPEG2VIDEO_XVMC => AV_CODEC_ID_MPEG2VIDEO_XVMC,
1342 Id::H261 => AV_CODEC_ID_H261,
1343 Id::H263 => AV_CODEC_ID_H263,
1344 Id::RV10 => AV_CODEC_ID_RV10,
1345 Id::RV20 => AV_CODEC_ID_RV20,
1346 Id::MJPEG => AV_CODEC_ID_MJPEG,
1347 Id::MJPEGB => AV_CODEC_ID_MJPEGB,
1348 Id::LJPEG => AV_CODEC_ID_LJPEG,
1349 Id::SP5X => AV_CODEC_ID_SP5X,
1350 Id::JPEGLS => AV_CODEC_ID_JPEGLS,
1351 Id::MPEG4 => AV_CODEC_ID_MPEG4,
1352 Id::RAWVIDEO => AV_CODEC_ID_RAWVIDEO,
1353 Id::MSMPEG4V1 => AV_CODEC_ID_MSMPEG4V1,
1354 Id::MSMPEG4V2 => AV_CODEC_ID_MSMPEG4V2,
1355 Id::MSMPEG4V3 => AV_CODEC_ID_MSMPEG4V3,
1356 Id::WMV1 => AV_CODEC_ID_WMV1,
1357 Id::WMV2 => AV_CODEC_ID_WMV2,
1358 Id::H263P => AV_CODEC_ID_H263P,
1359 Id::H263I => AV_CODEC_ID_H263I,
1360 Id::FLV1 => AV_CODEC_ID_FLV1,
1361 Id::SVQ1 => AV_CODEC_ID_SVQ1,
1362 Id::SVQ3 => AV_CODEC_ID_SVQ3,
1363 Id::DVVIDEO => AV_CODEC_ID_DVVIDEO,
1364 Id::HUFFYUV => AV_CODEC_ID_HUFFYUV,
1365 Id::CYUV => AV_CODEC_ID_CYUV,
1366 Id::H264 => AV_CODEC_ID_H264,
1367 Id::INDEO3 => AV_CODEC_ID_INDEO3,
1368 Id::VP3 => AV_CODEC_ID_VP3,
1369 Id::THEORA => AV_CODEC_ID_THEORA,
1370 Id::ASV1 => AV_CODEC_ID_ASV1,
1371 Id::ASV2 => AV_CODEC_ID_ASV2,
1372 Id::FFV1 => AV_CODEC_ID_FFV1,
1373 Id::XM4 => AV_CODEC_ID_4XM,
1374 Id::VCR1 => AV_CODEC_ID_VCR1,
1375 Id::CLJR => AV_CODEC_ID_CLJR,
1376 Id::MDEC => AV_CODEC_ID_MDEC,
1377 Id::ROQ => AV_CODEC_ID_ROQ,
1378 Id::INTERPLAY_VIDEO => AV_CODEC_ID_INTERPLAY_VIDEO,
1379 Id::XAN_WC3 => AV_CODEC_ID_XAN_WC3,
1380 Id::XAN_WC4 => AV_CODEC_ID_XAN_WC4,
1381 Id::RPZA => AV_CODEC_ID_RPZA,
1382 Id::CINEPAK => AV_CODEC_ID_CINEPAK,
1383 Id::WS_VQA => AV_CODEC_ID_WS_VQA,
1384 Id::MSRLE => AV_CODEC_ID_MSRLE,
1385 Id::MSVIDEO1 => AV_CODEC_ID_MSVIDEO1,
1386 Id::IDCIN => AV_CODEC_ID_IDCIN,
1387 Id::BPS8 => AV_CODEC_ID_8BPS,
1388 Id::SMC => AV_CODEC_ID_SMC,
1389 Id::FLIC => AV_CODEC_ID_FLIC,
1390 Id::TRUEMOTION1 => AV_CODEC_ID_TRUEMOTION1,
1391 Id::VMDVIDEO => AV_CODEC_ID_VMDVIDEO,
1392 Id::MSZH => AV_CODEC_ID_MSZH,
1393 Id::ZLIB => AV_CODEC_ID_ZLIB,
1394 Id::QTRLE => AV_CODEC_ID_QTRLE,
1395 Id::TSCC => AV_CODEC_ID_TSCC,
1396 Id::ULTI => AV_CODEC_ID_ULTI,
1397 Id::QDRAW => AV_CODEC_ID_QDRAW,
1398 Id::VIXL => AV_CODEC_ID_VIXL,
1399 Id::QPEG => AV_CODEC_ID_QPEG,
1400 Id::PNG => AV_CODEC_ID_PNG,
1401 Id::PPM => AV_CODEC_ID_PPM,
1402 Id::PBM => AV_CODEC_ID_PBM,
1403 Id::PGM => AV_CODEC_ID_PGM,
1404 Id::PGMYUV => AV_CODEC_ID_PGMYUV,
1405 Id::PAM => AV_CODEC_ID_PAM,
1406 Id::FFVHUFF => AV_CODEC_ID_FFVHUFF,
1407 Id::RV30 => AV_CODEC_ID_RV30,
1408 Id::RV40 => AV_CODEC_ID_RV40,
1409 Id::VC1 => AV_CODEC_ID_VC1,
1410 Id::WMV3 => AV_CODEC_ID_WMV3,
1411 Id::LOCO => AV_CODEC_ID_LOCO,
1412 Id::WNV1 => AV_CODEC_ID_WNV1,
1413 Id::AASC => AV_CODEC_ID_AASC,
1414 Id::INDEO2 => AV_CODEC_ID_INDEO2,
1415 Id::FRAPS => AV_CODEC_ID_FRAPS,
1416 Id::TRUEMOTION2 => AV_CODEC_ID_TRUEMOTION2,
1417 Id::BMP => AV_CODEC_ID_BMP,
1418 Id::CSCD => AV_CODEC_ID_CSCD,
1419 Id::MMVIDEO => AV_CODEC_ID_MMVIDEO,
1420 Id::ZMBV => AV_CODEC_ID_ZMBV,
1421 Id::AVS => AV_CODEC_ID_AVS,
1422 Id::SMACKVIDEO => AV_CODEC_ID_SMACKVIDEO,
1423 Id::NUV => AV_CODEC_ID_NUV,
1424 Id::KMVC => AV_CODEC_ID_KMVC,
1425 Id::FLASHSV => AV_CODEC_ID_FLASHSV,
1426 Id::CAVS => AV_CODEC_ID_CAVS,
1427 Id::JPEG2000 => AV_CODEC_ID_JPEG2000,
1428 Id::VMNC => AV_CODEC_ID_VMNC,
1429 Id::VP5 => AV_CODEC_ID_VP5,
1430 Id::VP6 => AV_CODEC_ID_VP6,
1431 Id::VP6F => AV_CODEC_ID_VP6F,
1432 Id::TARGA => AV_CODEC_ID_TARGA,
1433 Id::DSICINVIDEO => AV_CODEC_ID_DSICINVIDEO,
1434 Id::TIERTEXSEQVIDEO => AV_CODEC_ID_TIERTEXSEQVIDEO,
1435 Id::TIFF => AV_CODEC_ID_TIFF,
1436 Id::GIF => AV_CODEC_ID_GIF,
1437 Id::DXA => AV_CODEC_ID_DXA,
1438 Id::DNXHD => AV_CODEC_ID_DNXHD,
1439 Id::THP => AV_CODEC_ID_THP,
1440 Id::SGI => AV_CODEC_ID_SGI,
1441 Id::C93 => AV_CODEC_ID_C93,
1442 Id::BETHSOFTVID => AV_CODEC_ID_BETHSOFTVID,
1443 Id::PTX => AV_CODEC_ID_PTX,
1444 Id::TXD => AV_CODEC_ID_TXD,
1445 Id::VP6A => AV_CODEC_ID_VP6A,
1446 Id::AMV => AV_CODEC_ID_AMV,
1447 Id::VB => AV_CODEC_ID_VB,
1448 Id::PCX => AV_CODEC_ID_PCX,
1449 Id::SUNRAST => AV_CODEC_ID_SUNRAST,
1450 Id::INDEO4 => AV_CODEC_ID_INDEO4,
1451 Id::INDEO5 => AV_CODEC_ID_INDEO5,
1452 Id::MIMIC => AV_CODEC_ID_MIMIC,
1453 Id::RL2 => AV_CODEC_ID_RL2,
1454 Id::ESCAPE124 => AV_CODEC_ID_ESCAPE124,
1455 Id::DIRAC => AV_CODEC_ID_DIRAC,
1456 Id::BFI => AV_CODEC_ID_BFI,
1457 Id::CMV => AV_CODEC_ID_CMV,
1458 Id::MOTIONPIXELS => AV_CODEC_ID_MOTIONPIXELS,
1459 Id::TGV => AV_CODEC_ID_TGV,
1460 Id::TGQ => AV_CODEC_ID_TGQ,
1461 Id::TQI => AV_CODEC_ID_TQI,
1462 Id::AURA => AV_CODEC_ID_AURA,
1463 Id::AURA2 => AV_CODEC_ID_AURA2,
1464 Id::V210X => AV_CODEC_ID_V210X,
1465 Id::TMV => AV_CODEC_ID_TMV,
1466 Id::V210 => AV_CODEC_ID_V210,
1467 Id::DPX => AV_CODEC_ID_DPX,
1468 Id::MAD => AV_CODEC_ID_MAD,
1469 Id::FRWU => AV_CODEC_ID_FRWU,
1470 Id::FLASHSV2 => AV_CODEC_ID_FLASHSV2,
1471 Id::CDGRAPHICS => AV_CODEC_ID_CDGRAPHICS,
1472 Id::R210 => AV_CODEC_ID_R210,
1473 Id::ANM => AV_CODEC_ID_ANM,
1474 Id::BINKVIDEO => AV_CODEC_ID_BINKVIDEO,
1475 Id::IFF_ILBM => AV_CODEC_ID_IFF_ILBM,
1476 Id::IFF_BYTERUN1 => AV_CODEC_ID_IFF_ILBM,
1477 Id::KGV1 => AV_CODEC_ID_KGV1,
1478 Id::YOP => AV_CODEC_ID_YOP,
1479 Id::VP8 => AV_CODEC_ID_VP8,
1480 Id::PICTOR => AV_CODEC_ID_PICTOR,
1481 Id::ANSI => AV_CODEC_ID_ANSI,
1482 Id::A64_MULTI => AV_CODEC_ID_A64_MULTI,
1483 Id::A64_MULTI5 => AV_CODEC_ID_A64_MULTI5,
1484 Id::R10K => AV_CODEC_ID_R10K,
1485 Id::MXPEG => AV_CODEC_ID_MXPEG,
1486 Id::LAGARITH => AV_CODEC_ID_LAGARITH,
1487 Id::PRORES => AV_CODEC_ID_PRORES,
1488 Id::JV => AV_CODEC_ID_JV,
1489 Id::DFA => AV_CODEC_ID_DFA,
1490 Id::WMV3IMAGE => AV_CODEC_ID_WMV3IMAGE,
1491 Id::VC1IMAGE => AV_CODEC_ID_VC1IMAGE,
1492 Id::UTVIDEO => AV_CODEC_ID_UTVIDEO,
1493 Id::BMV_VIDEO => AV_CODEC_ID_BMV_VIDEO,
1494 Id::VBLE => AV_CODEC_ID_VBLE,
1495 Id::DXTORY => AV_CODEC_ID_DXTORY,
1496 Id::V410 => AV_CODEC_ID_V410,
1497 Id::XWD => AV_CODEC_ID_XWD,
1498 Id::CDXL => AV_CODEC_ID_CDXL,
1499 Id::XBM => AV_CODEC_ID_XBM,
1500 Id::ZEROCODEC => AV_CODEC_ID_ZEROCODEC,
1501 Id::MSS1 => AV_CODEC_ID_MSS1,
1502 Id::MSA1 => AV_CODEC_ID_MSA1,
1503 Id::TSCC2 => AV_CODEC_ID_TSCC2,
1504 Id::MTS2 => AV_CODEC_ID_MTS2,
1505 Id::CLLC => AV_CODEC_ID_CLLC,
1506 Id::MSS2 => AV_CODEC_ID_MSS2,
1507 Id::VP9 => AV_CODEC_ID_VP9,
1508 Id::AIC => AV_CODEC_ID_AIC,
1509 Id::ESCAPE130 => AV_CODEC_ID_ESCAPE130,
1510 Id::G2M => AV_CODEC_ID_G2M,
1511 Id::WEBP => AV_CODEC_ID_WEBP,
1512 Id::HNM4_VIDEO => AV_CODEC_ID_HNM4_VIDEO,
1513 Id::HEVC => AV_CODEC_ID_HEVC,
1514 Id::H265 => AV_CODEC_ID_HEVC,
1515 Id::FIC => AV_CODEC_ID_FIC,
1516 Id::ALIAS_PIX => AV_CODEC_ID_ALIAS_PIX,
1517 Id::BRENDER_PIX => AV_CODEC_ID_BRENDER_PIX,
1518 Id::PAF_VIDEO => AV_CODEC_ID_PAF_VIDEO,
1519 Id::EXR => AV_CODEC_ID_EXR,
1520 Id::VP7 => AV_CODEC_ID_VP7,
1521 Id::SANM => AV_CODEC_ID_SANM,
1522 Id::SGIRLE => AV_CODEC_ID_SGIRLE,
1523 Id::MVC1 => AV_CODEC_ID_MVC1,
1524 Id::MVC2 => AV_CODEC_ID_MVC2,
1525 Id::HQX => AV_CODEC_ID_HQX,
1526 Id::TDSC => AV_CODEC_ID_TDSC,
1527 Id::HQ_HQA => AV_CODEC_ID_HQ_HQA,
1528 Id::HAP => AV_CODEC_ID_HAP,
1529 Id::DDS => AV_CODEC_ID_DDS,
1530 Id::DXV => AV_CODEC_ID_DXV,
1531 Id::SCREENPRESSO => AV_CODEC_ID_SCREENPRESSO,
1532 Id::RSCC => AV_CODEC_ID_RSCC,
1533
1534 Id::Y41P => AV_CODEC_ID_Y41P,
1535 Id::AVRP => AV_CODEC_ID_AVRP,
1536 Id::V012 => AV_CODEC_ID_012V,
1537 Id::AVUI => AV_CODEC_ID_AVUI,
1538 Id::AYUV => AV_CODEC_ID_AYUV,
1539 Id::TARGA_Y216 => AV_CODEC_ID_TARGA_Y216,
1540 Id::V308 => AV_CODEC_ID_V308,
1541 Id::V408 => AV_CODEC_ID_V408,
1542 Id::YUV4 => AV_CODEC_ID_YUV4,
1543 Id::AVRN => AV_CODEC_ID_AVRN,
1544 Id::CPIA => AV_CODEC_ID_CPIA,
1545 Id::XFACE => AV_CODEC_ID_XFACE,
1546 Id::SNOW => AV_CODEC_ID_SNOW,
1547 Id::SMVJPEG => AV_CODEC_ID_SMVJPEG,
1548 Id::APNG => AV_CODEC_ID_APNG,
1549 Id::DAALA => AV_CODEC_ID_DAALA,
1550 Id::CFHD => AV_CODEC_ID_CFHD,
1551 Id::TRUEMOTION2RT => AV_CODEC_ID_TRUEMOTION2RT,
1552 Id::M101 => AV_CODEC_ID_M101,
1553 Id::MAGICYUV => AV_CODEC_ID_MAGICYUV,
1554 Id::SHEERVIDEO => AV_CODEC_ID_SHEERVIDEO,
1555 Id::YLC => AV_CODEC_ID_YLC,
1556
1557 /* various PCM "codecs" */
1558 Id::PCM_S16LE => AV_CODEC_ID_PCM_S16LE,
1559 Id::PCM_S16BE => AV_CODEC_ID_PCM_S16BE,
1560 Id::PCM_U16LE => AV_CODEC_ID_PCM_U16LE,
1561 Id::PCM_U16BE => AV_CODEC_ID_PCM_U16BE,
1562 Id::PCM_S8 => AV_CODEC_ID_PCM_S8,
1563 Id::PCM_U8 => AV_CODEC_ID_PCM_U8,
1564 Id::PCM_MULAW => AV_CODEC_ID_PCM_MULAW,
1565 Id::PCM_ALAW => AV_CODEC_ID_PCM_ALAW,
1566 Id::PCM_S32LE => AV_CODEC_ID_PCM_S32LE,
1567 Id::PCM_S32BE => AV_CODEC_ID_PCM_S32BE,
1568 Id::PCM_U32LE => AV_CODEC_ID_PCM_U32LE,
1569 Id::PCM_U32BE => AV_CODEC_ID_PCM_U32BE,
1570 Id::PCM_S24LE => AV_CODEC_ID_PCM_S24LE,
1571 Id::PCM_S24BE => AV_CODEC_ID_PCM_S24BE,
1572 Id::PCM_U24LE => AV_CODEC_ID_PCM_U24LE,
1573 Id::PCM_U24BE => AV_CODEC_ID_PCM_U24BE,
1574 Id::PCM_S24DAUD => AV_CODEC_ID_PCM_S24DAUD,
1575 Id::PCM_ZORK => AV_CODEC_ID_PCM_ZORK,
1576 Id::PCM_S16LE_PLANAR => AV_CODEC_ID_PCM_S16LE_PLANAR,
1577 Id::PCM_DVD => AV_CODEC_ID_PCM_DVD,
1578 Id::PCM_F32BE => AV_CODEC_ID_PCM_F32BE,
1579 Id::PCM_F32LE => AV_CODEC_ID_PCM_F32LE,
1580 Id::PCM_F64BE => AV_CODEC_ID_PCM_F64BE,
1581 Id::PCM_F64LE => AV_CODEC_ID_PCM_F64LE,
1582 Id::PCM_BLURAY => AV_CODEC_ID_PCM_BLURAY,
1583 Id::PCM_LXF => AV_CODEC_ID_PCM_LXF,
1584 Id::S302M => AV_CODEC_ID_S302M,
1585 Id::PCM_S8_PLANAR => AV_CODEC_ID_PCM_S8_PLANAR,
1586 Id::PCM_S24LE_PLANAR => AV_CODEC_ID_PCM_S24LE_PLANAR,
1587 Id::PCM_S32LE_PLANAR => AV_CODEC_ID_PCM_S32LE_PLANAR,
1588 Id::PCM_S16BE_PLANAR => AV_CODEC_ID_PCM_S16BE_PLANAR,
1589
1590 Id::PCM_S64LE => AV_CODEC_ID_PCM_S64LE,
1591 Id::PCM_S64BE => AV_CODEC_ID_PCM_S64BE,
1592
1593 /* various ADPCM codecs */
1594 Id::ADPCM_IMA_QT => AV_CODEC_ID_ADPCM_IMA_QT,
1595 Id::ADPCM_IMA_WAV => AV_CODEC_ID_ADPCM_IMA_WAV,
1596 Id::ADPCM_IMA_DK3 => AV_CODEC_ID_ADPCM_IMA_DK3,
1597 Id::ADPCM_IMA_DK4 => AV_CODEC_ID_ADPCM_IMA_DK4,
1598 Id::ADPCM_IMA_WS => AV_CODEC_ID_ADPCM_IMA_WS,
1599 Id::ADPCM_IMA_SMJPEG => AV_CODEC_ID_ADPCM_IMA_SMJPEG,
1600 Id::ADPCM_MS => AV_CODEC_ID_ADPCM_MS,
1601 Id::ADPCM_4XM => AV_CODEC_ID_ADPCM_4XM,
1602 Id::ADPCM_XA => AV_CODEC_ID_ADPCM_XA,
1603 Id::ADPCM_ADX => AV_CODEC_ID_ADPCM_ADX,
1604 Id::ADPCM_EA => AV_CODEC_ID_ADPCM_EA,
1605 Id::ADPCM_G726 => AV_CODEC_ID_ADPCM_G726,
1606 Id::ADPCM_CT => AV_CODEC_ID_ADPCM_CT,
1607 Id::ADPCM_SWF => AV_CODEC_ID_ADPCM_SWF,
1608 Id::ADPCM_YAMAHA => AV_CODEC_ID_ADPCM_YAMAHA,
1609 Id::ADPCM_SBPRO_4 => AV_CODEC_ID_ADPCM_SBPRO_4,
1610 Id::ADPCM_SBPRO_3 => AV_CODEC_ID_ADPCM_SBPRO_3,
1611 Id::ADPCM_SBPRO_2 => AV_CODEC_ID_ADPCM_SBPRO_2,
1612 Id::ADPCM_THP => AV_CODEC_ID_ADPCM_THP,
1613 Id::ADPCM_IMA_AMV => AV_CODEC_ID_ADPCM_IMA_AMV,
1614 Id::ADPCM_EA_R1 => AV_CODEC_ID_ADPCM_EA_R1,
1615 Id::ADPCM_EA_R3 => AV_CODEC_ID_ADPCM_EA_R3,
1616 Id::ADPCM_EA_R2 => AV_CODEC_ID_ADPCM_EA_R2,
1617 Id::ADPCM_IMA_EA_SEAD => AV_CODEC_ID_ADPCM_IMA_EA_SEAD,
1618 Id::ADPCM_IMA_EA_EACS => AV_CODEC_ID_ADPCM_IMA_EA_EACS,
1619 Id::ADPCM_EA_XAS => AV_CODEC_ID_ADPCM_EA_XAS,
1620 Id::ADPCM_EA_MAXIS_XA => AV_CODEC_ID_ADPCM_EA_MAXIS_XA,
1621 Id::ADPCM_IMA_ISS => AV_CODEC_ID_ADPCM_IMA_ISS,
1622 Id::ADPCM_G722 => AV_CODEC_ID_ADPCM_G722,
1623 Id::ADPCM_IMA_APC => AV_CODEC_ID_ADPCM_IMA_APC,
1624 Id::ADPCM_VIMA => AV_CODEC_ID_ADPCM_VIMA,
1625
1626 Id::ADPCM_AFC => AV_CODEC_ID_ADPCM_AFC,
1627 Id::ADPCM_IMA_OKI => AV_CODEC_ID_ADPCM_IMA_OKI,
1628 Id::ADPCM_DTK => AV_CODEC_ID_ADPCM_DTK,
1629 Id::ADPCM_IMA_RAD => AV_CODEC_ID_ADPCM_IMA_RAD,
1630 Id::ADPCM_G726LE => AV_CODEC_ID_ADPCM_G726LE,
1631 Id::ADPCM_THP_LE => AV_CODEC_ID_ADPCM_THP_LE,
1632 Id::ADPCM_PSX => AV_CODEC_ID_ADPCM_PSX,
1633 Id::ADPCM_AICA => AV_CODEC_ID_ADPCM_AICA,
1634 Id::ADPCM_IMA_DAT4 => AV_CODEC_ID_ADPCM_IMA_DAT4,
1635 Id::ADPCM_MTAF => AV_CODEC_ID_ADPCM_MTAF,
1636
1637 /* AMR */
1638 Id::AMR_NB => AV_CODEC_ID_AMR_NB,
1639 Id::AMR_WB => AV_CODEC_ID_AMR_WB,
1640
1641 /* RealAudio codecs*/
1642 Id::RA_144 => AV_CODEC_ID_RA_144,
1643 Id::RA_288 => AV_CODEC_ID_RA_288,
1644
1645 /* various DPCM codecs */
1646 Id::ROQ_DPCM => AV_CODEC_ID_ROQ_DPCM,
1647 Id::INTERPLAY_DPCM => AV_CODEC_ID_INTERPLAY_DPCM,
1648 Id::XAN_DPCM => AV_CODEC_ID_XAN_DPCM,
1649 Id::SOL_DPCM => AV_CODEC_ID_SOL_DPCM,
1650
1651 Id::SDX2_DPCM => AV_CODEC_ID_SDX2_DPCM,
1652
1653 /* audio codecs */
1654 Id::MP2 => AV_CODEC_ID_MP2,
1655 Id::MP3 => AV_CODEC_ID_MP3,
1656 Id::AAC => AV_CODEC_ID_AAC,
1657 Id::AC3 => AV_CODEC_ID_AC3,
1658 Id::DTS => AV_CODEC_ID_DTS,
1659 Id::VORBIS => AV_CODEC_ID_VORBIS,
1660 Id::DVAUDIO => AV_CODEC_ID_DVAUDIO,
1661 Id::WMAV1 => AV_CODEC_ID_WMAV1,
1662 Id::WMAV2 => AV_CODEC_ID_WMAV2,
1663 Id::MACE3 => AV_CODEC_ID_MACE3,
1664 Id::MACE6 => AV_CODEC_ID_MACE6,
1665 Id::VMDAUDIO => AV_CODEC_ID_VMDAUDIO,
1666 Id::FLAC => AV_CODEC_ID_FLAC,
1667 Id::MP3ADU => AV_CODEC_ID_MP3ADU,
1668 Id::MP3ON4 => AV_CODEC_ID_MP3ON4,
1669 Id::SHORTEN => AV_CODEC_ID_SHORTEN,
1670 Id::ALAC => AV_CODEC_ID_ALAC,
1671 Id::WESTWOOD_SND1 => AV_CODEC_ID_WESTWOOD_SND1,
1672 Id::GSM => AV_CODEC_ID_GSM,
1673 Id::QDM2 => AV_CODEC_ID_QDM2,
1674 Id::COOK => AV_CODEC_ID_COOK,
1675 Id::TRUESPEECH => AV_CODEC_ID_TRUESPEECH,
1676 Id::TTA => AV_CODEC_ID_TTA,
1677 Id::SMACKAUDIO => AV_CODEC_ID_SMACKAUDIO,
1678 Id::QCELP => AV_CODEC_ID_QCELP,
1679 Id::WAVPACK => AV_CODEC_ID_WAVPACK,
1680 Id::DSICINAUDIO => AV_CODEC_ID_DSICINAUDIO,
1681 Id::IMC => AV_CODEC_ID_IMC,
1682 Id::MUSEPACK7 => AV_CODEC_ID_MUSEPACK7,
1683 Id::MLP => AV_CODEC_ID_MLP,
1684 Id::GSM_MS => AV_CODEC_ID_GSM_MS,
1685 Id::ATRAC3 => AV_CODEC_ID_ATRAC3,
1686 #[cfg(feature = "ff_api_voxware")]
1687 Id::VOXWARE => AV_CODEC_ID_VOXWARE,
1688 Id::APE => AV_CODEC_ID_APE,
1689 Id::NELLYMOSER => AV_CODEC_ID_NELLYMOSER,
1690 Id::MUSEPACK8 => AV_CODEC_ID_MUSEPACK8,
1691 Id::SPEEX => AV_CODEC_ID_SPEEX,
1692 Id::WMAVOICE => AV_CODEC_ID_WMAVOICE,
1693 Id::WMAPRO => AV_CODEC_ID_WMAPRO,
1694 Id::WMALOSSLESS => AV_CODEC_ID_WMALOSSLESS,
1695 Id::ATRAC3P => AV_CODEC_ID_ATRAC3P,
1696 Id::EAC3 => AV_CODEC_ID_EAC3,
1697 Id::SIPR => AV_CODEC_ID_SIPR,
1698 Id::MP1 => AV_CODEC_ID_MP1,
1699 Id::TWINVQ => AV_CODEC_ID_TWINVQ,
1700 Id::TRUEHD => AV_CODEC_ID_TRUEHD,
1701 Id::MP4ALS => AV_CODEC_ID_MP4ALS,
1702 Id::ATRAC1 => AV_CODEC_ID_ATRAC1,
1703 Id::BINKAUDIO_RDFT => AV_CODEC_ID_BINKAUDIO_RDFT,
1704 Id::BINKAUDIO_DCT => AV_CODEC_ID_BINKAUDIO_DCT,
1705 Id::AAC_LATM => AV_CODEC_ID_AAC_LATM,
1706 Id::QDMC => AV_CODEC_ID_QDMC,
1707 Id::CELT => AV_CODEC_ID_CELT,
1708 Id::G723_1 => AV_CODEC_ID_G723_1,
1709 Id::G729 => AV_CODEC_ID_G729,
1710 Id::SVX_EXP8 => AV_CODEC_ID_8SVX_EXP,
1711 Id::SVX_FIB8 => AV_CODEC_ID_8SVX_FIB,
1712 Id::BMV_AUDIO => AV_CODEC_ID_BMV_AUDIO,
1713 Id::RALF => AV_CODEC_ID_RALF,
1714 Id::IAC => AV_CODEC_ID_IAC,
1715 Id::ILBC => AV_CODEC_ID_ILBC,
1716 Id::OPUS => AV_CODEC_ID_OPUS,
1717 Id::COMFORT_NOISE => AV_CODEC_ID_COMFORT_NOISE,
1718 Id::TAK => AV_CODEC_ID_TAK,
1719 Id::METASOUND => AV_CODEC_ID_METASOUND,
1720 Id::PAF_AUDIO => AV_CODEC_ID_PAF_AUDIO,
1721 Id::ON2AVC => AV_CODEC_ID_ON2AVC,
1722 Id::DSS_SP => AV_CODEC_ID_DSS_SP,
1723
1724 #[cfg(feature = "ffmpeg_4_0")]
1725 Id::CODEC2 => AV_CODEC_ID_CODEC2,
1726 Id::FFWAVESYNTH => AV_CODEC_ID_FFWAVESYNTH,
1727 Id::SONIC => AV_CODEC_ID_SONIC,
1728 Id::SONIC_LS => AV_CODEC_ID_SONIC_LS,
1729 Id::EVRC => AV_CODEC_ID_EVRC,
1730 Id::SMV => AV_CODEC_ID_SMV,
1731 Id::DSD_LSBF => AV_CODEC_ID_DSD_LSBF,
1732 Id::DSD_MSBF => AV_CODEC_ID_DSD_MSBF,
1733 Id::DSD_LSBF_PLANAR => AV_CODEC_ID_DSD_LSBF_PLANAR,
1734 Id::DSD_MSBF_PLANAR => AV_CODEC_ID_DSD_MSBF_PLANAR,
1735 Id::_4GV => AV_CODEC_ID_4GV,
1736 Id::INTERPLAY_ACM => AV_CODEC_ID_INTERPLAY_ACM,
1737 Id::XMA1 => AV_CODEC_ID_XMA1,
1738 Id::XMA2 => AV_CODEC_ID_XMA2,
1739 Id::DST => AV_CODEC_ID_DST,
1740
1741 /* subtitle codecs */
1742 Id::DVD_SUBTITLE => AV_CODEC_ID_DVD_SUBTITLE,
1743 Id::DVB_SUBTITLE => AV_CODEC_ID_DVB_SUBTITLE,
1744 Id::TEXT => AV_CODEC_ID_TEXT,
1745 Id::XSUB => AV_CODEC_ID_XSUB,
1746 Id::SSA => AV_CODEC_ID_SSA,
1747 Id::MOV_TEXT => AV_CODEC_ID_MOV_TEXT,
1748 Id::HDMV_PGS_SUBTITLE => AV_CODEC_ID_HDMV_PGS_SUBTITLE,
1749 Id::DVB_TELETEXT => AV_CODEC_ID_DVB_TELETEXT,
1750 Id::SRT => AV_CODEC_ID_SRT,
1751
1752 Id::MICRODVD => AV_CODEC_ID_MICRODVD,
1753 Id::EIA_608 => AV_CODEC_ID_EIA_608,
1754 Id::JACOSUB => AV_CODEC_ID_JACOSUB,
1755 Id::SAMI => AV_CODEC_ID_SAMI,
1756 Id::REALTEXT => AV_CODEC_ID_REALTEXT,
1757 Id::STL => AV_CODEC_ID_STL,
1758 Id::SUBVIEWER1 => AV_CODEC_ID_SUBVIEWER1,
1759 Id::SUBVIEWER => AV_CODEC_ID_SUBVIEWER,
1760 Id::SUBRIP => AV_CODEC_ID_SUBRIP,
1761 Id::WEBVTT => AV_CODEC_ID_WEBVTT,
1762 Id::MPL2 => AV_CODEC_ID_MPL2,
1763 Id::VPLAYER => AV_CODEC_ID_VPLAYER,
1764 Id::PJS => AV_CODEC_ID_PJS,
1765 Id::ASS => AV_CODEC_ID_ASS,
1766 Id::HDMV_TEXT_SUBTITLE => AV_CODEC_ID_HDMV_TEXT_SUBTITLE,
1767
1768 /* other specific kind of codecs (generally used for attachments) */
1769 Id::TTF => AV_CODEC_ID_TTF,
1770
1771 Id::SCTE_35 => AV_CODEC_ID_SCTE_35,
1772 Id::BINTEXT => AV_CODEC_ID_BINTEXT,
1773 Id::XBIN => AV_CODEC_ID_XBIN,
1774 Id::IDF => AV_CODEC_ID_IDF,
1775 Id::OTF => AV_CODEC_ID_OTF,
1776 Id::SMPTE_KLV => AV_CODEC_ID_SMPTE_KLV,
1777 Id::DVD_NAV => AV_CODEC_ID_DVD_NAV,
1778 Id::TIMED_ID3 => AV_CODEC_ID_TIMED_ID3,
1779 Id::BIN_DATA => AV_CODEC_ID_BIN_DATA,
1780
1781 Id::PROBE => AV_CODEC_ID_PROBE,
1782
1783 Id::MPEG2TS => AV_CODEC_ID_MPEG2TS,
1784 Id::MPEG4SYSTEMS => AV_CODEC_ID_MPEG4SYSTEMS,
1785 Id::FFMETADATA => AV_CODEC_ID_FFMETADATA,
1786 Id::WRAPPED_AVFRAME => AV_CODEC_ID_WRAPPED_AVFRAME,
1787
1788 Id::PSD => AV_CODEC_ID_PSD,
1789 Id::PIXLET => AV_CODEC_ID_PIXLET,
1790 Id::SPEEDHQ => AV_CODEC_ID_SPEEDHQ,
1791 Id::FMVC => AV_CODEC_ID_FMVC,
1792 Id::CLEARVIDEO => AV_CODEC_ID_CLEARVIDEO,
1793 Id::SCPR => AV_CODEC_ID_SCPR,
1794 Id::XPM => AV_CODEC_ID_XPM,
1795 Id::AV1 => AV_CODEC_ID_AV1,
1796 Id::PCM_F16LE => AV_CODEC_ID_PCM_F16LE,
1797 Id::PCM_F24LE => AV_CODEC_ID_PCM_F24LE,
1798 Id::ATRAC3AL => AV_CODEC_ID_ATRAC3AL,
1799 Id::ATRAC3PAL => AV_CODEC_ID_ATRAC3PAL,
1800
1801 Id::BITPACKED => AV_CODEC_ID_BITPACKED,
1802 Id::MSCC => AV_CODEC_ID_MSCC,
1803 Id::SRGC => AV_CODEC_ID_SRGC,
1804 Id::SVG => AV_CODEC_ID_SVG,
1805 Id::GDV => AV_CODEC_ID_GDV,
1806 Id::FITS => AV_CODEC_ID_FITS,
1807 Id::GREMLIN_DPCM => AV_CODEC_ID_GREMLIN_DPCM,
1808 Id::DOLBY_E => AV_CODEC_ID_DOLBY_E,
1809
1810 #[cfg(feature = "ffmpeg_4_0")]
1811 Id::APTX => AV_CODEC_ID_APTX,
1812 #[cfg(feature = "ffmpeg_4_0")]
1813 Id::APTX_HD => AV_CODEC_ID_APTX_HD,
1814 #[cfg(feature = "ffmpeg_4_0")]
1815 Id::SBC => AV_CODEC_ID_SBC,
1816
1817 #[cfg(feature = "ffmpeg_4_1")]
1818 Id::AVS2 => AV_CODEC_ID_AVS2,
1819 #[cfg(feature = "ffmpeg_4_1")]
1820 Id::IMM4 => AV_CODEC_ID_IMM4,
1821 #[cfg(feature = "ffmpeg_4_1")]
1822 Id::PROSUMER => AV_CODEC_ID_PROSUMER,
1823 #[cfg(feature = "ffmpeg_4_1")]
1824 Id::MWSC => AV_CODEC_ID_MWSC,
1825 #[cfg(feature = "ffmpeg_4_1")]
1826 Id::WCMV => AV_CODEC_ID_WCMV,
1827 #[cfg(feature = "ffmpeg_4_1")]
1828 Id::RASC => AV_CODEC_ID_RASC,
1829 #[cfg(feature = "ffmpeg_4_1")]
1830 Id::PCM_VIDC => AV_CODEC_ID_PCM_VIDC,
1831 #[cfg(feature = "ffmpeg_4_1")]
1832 Id::ATRAC9 => AV_CODEC_ID_ATRAC9,
1833 #[cfg(feature = "ffmpeg_4_1")]
1834 Id::TTML => AV_CODEC_ID_TTML,
1835
1836 #[cfg(feature = "ffmpeg_4_2")]
1837 Id::HYMT => AV_CODEC_ID_HYMT,
1838 #[cfg(feature = "ffmpeg_4_2")]
1839 Id::ARBC => AV_CODEC_ID_ARBC,
1840 #[cfg(feature = "ffmpeg_4_2")]
1841 Id::AGM => AV_CODEC_ID_AGM,
1842 #[cfg(feature = "ffmpeg_4_2")]
1843 Id::LSCR => AV_CODEC_ID_LSCR,
1844 #[cfg(feature = "ffmpeg_4_2")]
1845 Id::VP4 => AV_CODEC_ID_VP4,
1846 #[cfg(feature = "ffmpeg_4_2")]
1847 Id::ADPCM_AGM => AV_CODEC_ID_ADPCM_AGM,
1848 #[cfg(feature = "ffmpeg_4_2")]
1849 Id::HCOM => AV_CODEC_ID_HCOM,
1850 #[cfg(feature = "ffmpeg_4_2")]
1851 Id::ARIB_CAPTION => AV_CODEC_ID_ARIB_CAPTION,
1852
1853 #[cfg(feature = "ffmpeg_4_3")]
1854 Id::IMM5 => AV_CODEC_ID_IMM5,
1855 #[cfg(feature = "ffmpeg_4_3")]
1856 Id::MVDV => AV_CODEC_ID_MVDV,
1857 #[cfg(feature = "ffmpeg_4_3")]
1858 Id::MVHA => AV_CODEC_ID_MVHA,
1859 #[cfg(feature = "ffmpeg_4_3")]
1860 Id::CDTOONS => AV_CODEC_ID_CDTOONS,
1861 #[cfg(feature = "ffmpeg_4_3")]
1862 Id::MV30 => AV_CODEC_ID_MV30,
1863 #[cfg(feature = "ffmpeg_4_3")]
1864 Id::NOTCHLC => AV_CODEC_ID_NOTCHLC,
1865 #[cfg(feature = "ffmpeg_4_3")]
1866 Id::PFM => AV_CODEC_ID_PFM,
1867 #[cfg(feature = "ffmpeg_4_3")]
1868 Id::ADPCM_ARGO => AV_CODEC_ID_ADPCM_ARGO,
1869 #[cfg(feature = "ffmpeg_4_3")]
1870 Id::ADPCM_IMA_SSI => AV_CODEC_ID_ADPCM_IMA_SSI,
1871 #[cfg(feature = "ffmpeg_4_3")]
1872 Id::ADPCM_ZORK => AV_CODEC_ID_ADPCM_ZORK,
1873 #[cfg(feature = "ffmpeg_4_3")]
1874 Id::ADPCM_IMA_APM => AV_CODEC_ID_ADPCM_IMA_APM,
1875 #[cfg(feature = "ffmpeg_4_3")]
1876 Id::ADPCM_IMA_ALP => AV_CODEC_ID_ADPCM_IMA_ALP,
1877 #[cfg(feature = "ffmpeg_4_3")]
1878 Id::ADPCM_IMA_MTF => AV_CODEC_ID_ADPCM_IMA_MTF,
1879 #[cfg(feature = "ffmpeg_4_3")]
1880 Id::ADPCM_IMA_CUNNING => AV_CODEC_ID_ADPCM_IMA_CUNNING,
1881 #[cfg(feature = "ffmpeg_4_3")]
1882 Id::DERF_DPCM => AV_CODEC_ID_DERF_DPCM,
1883 #[cfg(feature = "ffmpeg_4_3")]
1884 Id::ACELP_KELVIN => AV_CODEC_ID_ACELP_KELVIN,
1885 #[cfg(feature = "ffmpeg_4_3")]
1886 Id::MPEGH_3D_AUDIO => AV_CODEC_ID_MPEGH_3D_AUDIO,
1887 #[cfg(feature = "ffmpeg_4_3")]
1888 Id::SIREN => AV_CODEC_ID_SIREN,
1889 #[cfg(feature = "ffmpeg_4_3")]
1890 Id::HCA => AV_CODEC_ID_HCA,
1891 #[cfg(feature = "ffmpeg_4_3")]
1892 Id::EPG => AV_CODEC_ID_EPG,
1893
1894 #[cfg(feature = "ffmpeg_4_4")]
1895 Id::PGX => AV_CODEC_ID_PGX,
1896 #[cfg(feature = "ffmpeg_4_4")]
1897 Id::AVS3 => AV_CODEC_ID_AVS3,
1898 #[cfg(feature = "ffmpeg_4_4")]
1899 Id::MSP2 => AV_CODEC_ID_MSP2,
1900 #[cfg(feature = "ffmpeg_4_4")]
1901 Id::VVC => AV_CODEC_ID_VVC,
1902 #[cfg(feature = "ffmpeg_4_4")]
1903 Id::MOBICLIP => AV_CODEC_ID_MOBICLIP,
1904 #[cfg(feature = "ffmpeg_4_4")]
1905 Id::PHOTOCD => AV_CODEC_ID_PHOTOCD,
1906 #[cfg(feature = "ffmpeg_4_4")]
1907 Id::IPU => AV_CODEC_ID_IPU,
1908 #[cfg(feature = "ffmpeg_4_4")]
1909 Id::ARGO => AV_CODEC_ID_ARGO,
1910 #[cfg(feature = "ffmpeg_4_4")]
1911 Id::CRI => AV_CODEC_ID_CRI,
1912 #[cfg(feature = "ffmpeg_4_4")]
1913 Id::SIMBIOSIS_IMX => AV_CODEC_ID_SIMBIOSIS_IMX,
1914 #[cfg(feature = "ffmpeg_4_4")]
1915 Id::SGA_VIDEO => AV_CODEC_ID_SGA_VIDEO,
1916 #[cfg(feature = "ffmpeg_4_4")]
1917 Id::PCM_SGA => AV_CODEC_ID_PCM_SGA,
1918 #[cfg(feature = "ffmpeg_4_4")]
1919 Id::ADPCM_IMA_MOFLEX => AV_CODEC_ID_ADPCM_IMA_MOFLEX,
1920 #[cfg(feature = "ffmpeg_4_4")]
1921 Id::FASTAUDIO => AV_CODEC_ID_FASTAUDIO,
1922
1923 #[cfg(feature = "ffmpeg_5_0")]
1924 Id::GEM => AV_CODEC_ID_GEM,
1925 #[cfg(feature = "ffmpeg_5_0")]
1926 Id::ADPCM_IMA_ACORN => AV_CODEC_ID_ADPCM_IMA_ACORN,
1927 #[cfg(feature = "ffmpeg_5_0")]
1928 Id::MSNSIREN => AV_CODEC_ID_MSNSIREN,
1929
1930 #[cfg(feature = "ffmpeg_5_1")]
1931 Id::VBN => AV_CODEC_ID_VBN,
1932 #[cfg(feature = "ffmpeg_5_1")]
1933 Id::JPEGXL => AV_CODEC_ID_JPEGXL,
1934 #[cfg(feature = "ffmpeg_5_1")]
1935 Id::QOI => AV_CODEC_ID_QOI,
1936 #[cfg(feature = "ffmpeg_5_1")]
1937 Id::PHM => AV_CODEC_ID_PHM,
1938 #[cfg(feature = "ffmpeg_5_1")]
1939 Id::DFPWM => AV_CODEC_ID_DFPWM,
1940
1941 #[cfg(feature = "ffmpeg_6_0")]
1942 Id::RADIANCE_HDR => AV_CODEC_ID_RADIANCE_HDR,
1943 #[cfg(feature = "ffmpeg_6_0")]
1944 Id::WBMP => AV_CODEC_ID_WBMP,
1945 #[cfg(feature = "ffmpeg_6_0")]
1946 Id::MEDIA100 => AV_CODEC_ID_MEDIA100,
1947 #[cfg(feature = "ffmpeg_6_0")]
1948 Id::VQC => AV_CODEC_ID_VQC,
1949 #[cfg(feature = "ffmpeg_6_0")]
1950 Id::ADPCM_XMD => AV_CODEC_ID_ADPCM_XMD,
1951 #[cfg(feature = "ffmpeg_6_0")]
1952 Id::WADY_DPCM => AV_CODEC_ID_WADY_DPCM,
1953 #[cfg(feature = "ffmpeg_6_0")]
1954 Id::CBD2_DPCM => AV_CODEC_ID_CBD2_DPCM,
1955 #[cfg(feature = "ffmpeg_6_0")]
1956 Id::BONK => AV_CODEC_ID_BONK,
1957 #[cfg(feature = "ffmpeg_6_0")]
1958 Id::MISC4 => AV_CODEC_ID_MISC4,
1959 #[cfg(feature = "ffmpeg_6_0")]
1960 Id::APAC => AV_CODEC_ID_APAC,
1961 #[cfg(feature = "ffmpeg_6_0")]
1962 Id::FTR => AV_CODEC_ID_FTR,
1963 #[cfg(feature = "ffmpeg_6_0")]
1964 Id::WAVARC => AV_CODEC_ID_WAVARC,
1965 #[cfg(feature = "ffmpeg_6_0")]
1966 Id::RKA => AV_CODEC_ID_RKA,
1967 #[cfg(feature = "ffmpeg_6_0")]
1968 Id::VNULL => AV_CODEC_ID_VNULL,
1969 #[cfg(feature = "ffmpeg_6_0")]
1970 Id::ANULL => AV_CODEC_ID_ANULL,
1971
1972 #[cfg(feature = "ffmpeg_6_1")]
1973 Id::PDV => AV_CODEC_ID_PDV,
1974 #[cfg(feature = "ffmpeg_6_1")]
1975 Id::EVC => AV_CODEC_ID_EVC,
1976 #[cfg(feature = "ffmpeg_6_1")]
1977 Id::RTV1 => AV_CODEC_ID_RTV1,
1978 #[cfg(feature = "ffmpeg_6_1")]
1979 Id::VMIX => AV_CODEC_ID_VMIX,
1980 #[cfg(feature = "ffmpeg_6_1")]
1981 Id::AC4 => AV_CODEC_ID_AC4,
1982 #[cfg(feature = "ffmpeg_6_1")]
1983 Id::SMPTE_2038 => AV_CODEC_ID_SMPTE_2038,
1984 #[cfg(feature = "ffmpeg_6_1")]
1985 Id::OSQ => AV_CODEC_ID_OSQ,
1986 }
1987 }
1988}
1989