21 #ifndef AVCODEC_AVCODEC_H 22 #define AVCODEC_AVCODEC_H 31 #include "libavutil/samplefmt.h" 35 #include "libavutil/cpu.h" 39 #include "libavutil/hwcontext.h" 40 #include "libavutil/log.h" 219 AV_CODEC_ID_MPEG1VIDEO,
231 AV_CODEC_ID_RAWVIDEO,
232 AV_CODEC_ID_MSMPEG4V1,
233 AV_CODEC_ID_MSMPEG4V2,
234 AV_CODEC_ID_MSMPEG4V3,
257 AV_CODEC_ID_INTERPLAY_VIDEO,
264 AV_CODEC_ID_MSVIDEO1,
269 AV_CODEC_ID_TRUEMOTION1,
270 AV_CODEC_ID_VMDVIDEO,
295 AV_CODEC_ID_TRUEMOTION2,
301 AV_CODEC_ID_SMACKVIDEO,
306 AV_CODEC_ID_JPEG2000,
312 AV_CODEC_ID_DSICINVIDEO,
313 AV_CODEC_ID_TIERTEXSEQVIDEO,
321 AV_CODEC_ID_BETHSOFTVID,
333 AV_CODEC_ID_ESCAPE124,
337 AV_CODEC_ID_MOTIONPIXELS,
349 AV_CODEC_ID_FLASHSV2,
350 AV_CODEC_ID_CDGRAPHICS,
353 AV_CODEC_ID_BINKVIDEO,
354 AV_CODEC_ID_IFF_ILBM,
355 #define AV_CODEC_ID_IFF_BYTERUN1 AV_CODEC_ID_IFF_ILBM 361 AV_CODEC_ID_A64_MULTI,
362 AV_CODEC_ID_A64_MULTI5,
365 AV_CODEC_ID_LAGARITH,
369 AV_CODEC_ID_WMV3IMAGE,
370 AV_CODEC_ID_VC1IMAGE,
372 AV_CODEC_ID_BMV_VIDEO,
379 AV_CODEC_ID_ZEROCODEC,
388 AV_CODEC_ID_ESCAPE130,
391 AV_CODEC_ID_HNM4_VIDEO,
393 #define AV_CODEC_ID_H265 AV_CODEC_ID_HEVC 395 AV_CODEC_ID_ALIAS_PIX,
396 AV_CODEC_ID_BRENDER_PIX,
397 AV_CODEC_ID_PAF_VIDEO,
410 AV_CODEC_ID_SCREENPRESSO,
413 AV_CODEC_ID_Y41P = 0x8000,
418 AV_CODEC_ID_TARGA_Y216,
430 AV_CODEC_ID_TRUEMOTION2RT,
432 AV_CODEC_ID_MAGICYUV,
433 AV_CODEC_ID_SHEERVIDEO,
440 AV_CODEC_ID_CLEARVIDEO,
443 AV_CODEC_ID_BITPACKED,
452 AV_CODEC_ID_PCM_S16LE = 0x10000,
453 AV_CODEC_ID_PCM_S16BE,
454 AV_CODEC_ID_PCM_U16LE,
455 AV_CODEC_ID_PCM_U16BE,
458 AV_CODEC_ID_PCM_MULAW,
459 AV_CODEC_ID_PCM_ALAW,
460 AV_CODEC_ID_PCM_S32LE,
461 AV_CODEC_ID_PCM_S32BE,
462 AV_CODEC_ID_PCM_U32LE,
463 AV_CODEC_ID_PCM_U32BE,
464 AV_CODEC_ID_PCM_S24LE,
465 AV_CODEC_ID_PCM_S24BE,
466 AV_CODEC_ID_PCM_U24LE,
467 AV_CODEC_ID_PCM_U24BE,
468 AV_CODEC_ID_PCM_S24DAUD,
469 AV_CODEC_ID_PCM_ZORK,
470 AV_CODEC_ID_PCM_S16LE_PLANAR,
472 AV_CODEC_ID_PCM_F32BE,
473 AV_CODEC_ID_PCM_F32LE,
474 AV_CODEC_ID_PCM_F64BE,
475 AV_CODEC_ID_PCM_F64LE,
476 AV_CODEC_ID_PCM_BLURAY,
479 AV_CODEC_ID_PCM_S8_PLANAR,
480 AV_CODEC_ID_PCM_S24LE_PLANAR,
481 AV_CODEC_ID_PCM_S32LE_PLANAR,
482 AV_CODEC_ID_PCM_S16BE_PLANAR,
484 AV_CODEC_ID_PCM_S64LE = 0x10800,
485 AV_CODEC_ID_PCM_S64BE,
486 AV_CODEC_ID_PCM_F16LE,
487 AV_CODEC_ID_PCM_F24LE,
490 AV_CODEC_ID_ADPCM_IMA_QT = 0x11000,
491 AV_CODEC_ID_ADPCM_IMA_WAV,
492 AV_CODEC_ID_ADPCM_IMA_DK3,
493 AV_CODEC_ID_ADPCM_IMA_DK4,
494 AV_CODEC_ID_ADPCM_IMA_WS,
495 AV_CODEC_ID_ADPCM_IMA_SMJPEG,
496 AV_CODEC_ID_ADPCM_MS,
497 AV_CODEC_ID_ADPCM_4XM,
498 AV_CODEC_ID_ADPCM_XA,
499 AV_CODEC_ID_ADPCM_ADX,
500 AV_CODEC_ID_ADPCM_EA,
501 AV_CODEC_ID_ADPCM_G726,
502 AV_CODEC_ID_ADPCM_CT,
503 AV_CODEC_ID_ADPCM_SWF,
504 AV_CODEC_ID_ADPCM_YAMAHA,
505 AV_CODEC_ID_ADPCM_SBPRO_4,
506 AV_CODEC_ID_ADPCM_SBPRO_3,
507 AV_CODEC_ID_ADPCM_SBPRO_2,
508 AV_CODEC_ID_ADPCM_THP,
509 AV_CODEC_ID_ADPCM_IMA_AMV,
510 AV_CODEC_ID_ADPCM_EA_R1,
511 AV_CODEC_ID_ADPCM_EA_R3,
512 AV_CODEC_ID_ADPCM_EA_R2,
513 AV_CODEC_ID_ADPCM_IMA_EA_SEAD,
514 AV_CODEC_ID_ADPCM_IMA_EA_EACS,
515 AV_CODEC_ID_ADPCM_EA_XAS,
516 AV_CODEC_ID_ADPCM_EA_MAXIS_XA,
517 AV_CODEC_ID_ADPCM_IMA_ISS,
518 AV_CODEC_ID_ADPCM_G722,
519 AV_CODEC_ID_ADPCM_IMA_APC,
520 AV_CODEC_ID_ADPCM_VIMA,
522 AV_CODEC_ID_ADPCM_AFC = 0x11800,
523 AV_CODEC_ID_ADPCM_IMA_OKI,
524 AV_CODEC_ID_ADPCM_DTK,
525 AV_CODEC_ID_ADPCM_IMA_RAD,
526 AV_CODEC_ID_ADPCM_G726LE,
527 AV_CODEC_ID_ADPCM_THP_LE,
528 AV_CODEC_ID_ADPCM_PSX,
529 AV_CODEC_ID_ADPCM_AICA,
530 AV_CODEC_ID_ADPCM_IMA_DAT4,
531 AV_CODEC_ID_ADPCM_MTAF,
534 AV_CODEC_ID_AMR_NB = 0x12000,
538 AV_CODEC_ID_RA_144 = 0x13000,
542 AV_CODEC_ID_ROQ_DPCM = 0x14000,
543 AV_CODEC_ID_INTERPLAY_DPCM,
544 AV_CODEC_ID_XAN_DPCM,
545 AV_CODEC_ID_SOL_DPCM,
547 AV_CODEC_ID_SDX2_DPCM = 0x14800,
548 AV_CODEC_ID_GREMLIN_DPCM,
551 AV_CODEC_ID_MP2 = 0x15000,
562 AV_CODEC_ID_VMDAUDIO,
568 AV_CODEC_ID_WESTWOOD_SND1,
572 AV_CODEC_ID_TRUESPEECH,
574 AV_CODEC_ID_SMACKAUDIO,
577 AV_CODEC_ID_DSICINAUDIO,
579 AV_CODEC_ID_MUSEPACK7,
584 AV_CODEC_ID_NELLYMOSER,
585 AV_CODEC_ID_MUSEPACK8,
587 AV_CODEC_ID_WMAVOICE,
589 AV_CODEC_ID_WMALOSSLESS,
598 AV_CODEC_ID_BINKAUDIO_RDFT,
599 AV_CODEC_ID_BINKAUDIO_DCT,
600 AV_CODEC_ID_AAC_LATM,
605 AV_CODEC_ID_8SVX_EXP,
606 AV_CODEC_ID_8SVX_FIB,
607 AV_CODEC_ID_BMV_AUDIO,
612 AV_CODEC_ID_COMFORT_NOISE,
614 AV_CODEC_ID_METASOUND,
615 AV_CODEC_ID_PAF_AUDIO,
620 AV_CODEC_ID_FFWAVESYNTH = 0x15800,
622 AV_CODEC_ID_SONIC_LS,
625 AV_CODEC_ID_DSD_LSBF,
626 AV_CODEC_ID_DSD_MSBF,
627 AV_CODEC_ID_DSD_LSBF_PLANAR,
628 AV_CODEC_ID_DSD_MSBF_PLANAR,
630 AV_CODEC_ID_INTERPLAY_ACM,
634 AV_CODEC_ID_ATRAC3AL,
635 AV_CODEC_ID_ATRAC3PAL,
643 AV_CODEC_ID_DVD_SUBTITLE = 0x17000,
644 AV_CODEC_ID_DVB_SUBTITLE,
648 AV_CODEC_ID_MOV_TEXT,
649 AV_CODEC_ID_HDMV_PGS_SUBTITLE,
650 AV_CODEC_ID_DVB_TELETEXT,
653 AV_CODEC_ID_MICRODVD = 0x17800,
657 AV_CODEC_ID_REALTEXT,
659 AV_CODEC_ID_SUBVIEWER1,
660 AV_CODEC_ID_SUBVIEWER,
667 AV_CODEC_ID_HDMV_TEXT_SUBTITLE,
671 AV_CODEC_ID_TTF = 0x18000,
674 AV_CODEC_ID_BINTEXT = 0x18800,
678 AV_CODEC_ID_SMPTE_KLV,
680 AV_CODEC_ID_TIMED_ID3,
681 AV_CODEC_ID_BIN_DATA,
733 #define AV_CODEC_PROP_INTRA_ONLY (1 << 0) 739 #define AV_CODEC_PROP_LOSSY (1 << 1) 743 #define AV_CODEC_PROP_LOSSLESS (1 << 2) 753 #define AV_CODEC_PROP_REORDER (1 << 3) 758 #define AV_CODEC_PROP_BITMAP_SUB (1 << 16) 763 #define AV_CODEC_PROP_TEXT_SUB (1 << 17) 773 #define AV_INPUT_BUFFER_PADDING_SIZE 64 780 #define AV_INPUT_BUFFER_MIN_SIZE 16384 798 AV_AUDIO_SERVICE_TYPE_MAIN = 0,
799 AV_AUDIO_SERVICE_TYPE_EFFECTS = 1,
800 AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2,
801 AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3,
802 AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4,
803 AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5,
804 AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6,
805 AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7,
806 AV_AUDIO_SERVICE_TYPE_KARAOKE = 8,
817 float quality_factor;
829 #define AV_CODEC_FLAG_UNALIGNED (1 << 0) 833 #define AV_CODEC_FLAG_QSCALE (1 << 1) 837 #define AV_CODEC_FLAG_4MV (1 << 2) 841 #define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3) 845 #define AV_CODEC_FLAG_QPEL (1 << 4) 849 #define AV_CODEC_FLAG_PASS1 (1 << 9) 853 #define AV_CODEC_FLAG_PASS2 (1 << 10) 857 #define AV_CODEC_FLAG_LOOP_FILTER (1 << 11) 861 #define AV_CODEC_FLAG_GRAY (1 << 13) 865 #define AV_CODEC_FLAG_PSNR (1 << 15) 870 #define AV_CODEC_FLAG_TRUNCATED (1 << 16) 874 #define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18) 878 #define AV_CODEC_FLAG_LOW_DELAY (1 << 19) 882 #define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22) 886 #define AV_CODEC_FLAG_BITEXACT (1 << 23) 891 #define AV_CODEC_FLAG_AC_PRED (1 << 24) 895 #define AV_CODEC_FLAG_INTERLACED_ME (1 << 29) 896 #define AV_CODEC_FLAG_CLOSED_GOP (1U << 31) 901 #define AV_CODEC_FLAG2_FAST (1 << 0) 905 #define AV_CODEC_FLAG2_NO_OUTPUT (1 << 2) 909 #define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3) 914 #define AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13) 920 #define AV_CODEC_FLAG2_CHUNKS (1 << 15) 924 #define AV_CODEC_FLAG2_IGNORE_CROP (1 << 16) 929 #define AV_CODEC_FLAG2_SHOW_ALL (1 << 22) 933 #define AV_CODEC_FLAG2_EXPORT_MVS (1 << 28) 937 #define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29) 941 #define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30) 953 #define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0) 959 #define AV_CODEC_CAP_DR1 (1 << 1) 960 #define AV_CODEC_CAP_TRUNCATED (1 << 3) 984 #define AV_CODEC_CAP_DELAY (1 << 5) 989 #define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6) 1002 #define AV_CODEC_CAP_SUBFRAMES (1 << 8) 1007 #define AV_CODEC_CAP_EXPERIMENTAL (1 << 9) 1011 #define AV_CODEC_CAP_CHANNEL_CONF (1 << 10) 1015 #define AV_CODEC_CAP_FRAME_THREADS (1 << 12) 1019 #define AV_CODEC_CAP_SLICE_THREADS (1 << 13) 1023 #define AV_CODEC_CAP_PARAM_CHANGE (1 << 14) 1027 #define AV_CODEC_CAP_AUTO_THREADS (1 << 15) 1031 #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16) 1041 #define AV_CODEC_CAP_AVOID_PROBING (1 << 17) 1045 #define AV_CODEC_CAP_INTRA_ONLY 0x40000000 1049 #define AV_CODEC_CAP_LOSSLESS 0x80000000 1056 #define AV_CODEC_CAP_HARDWARE (1 << 18) 1063 #define AV_CODEC_CAP_HYBRID (1 << 19) 1091 int16_t position[3][2];
1135 #define AV_GET_BUFFER_FLAG_REF (1 << 0) 1371 #define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED 1442 int side_data_elems;
1452 #if FF_API_CONVERGENCE_DURATION 1458 attribute_deprecated
1462 #define AV_PKT_FLAG_KEY 0x0001 1463 #define AV_PKT_FLAG_CORRUPT 0x0002 1469 #define AV_PKT_FLAG_DISCARD 0x0004 1476 #define AV_PKT_FLAG_TRUSTED 0x0008 1481 #define AV_PKT_FLAG_DISPOSABLE 0x0010 1484 enum AVSideDataParamChangeFlags {
1485 AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 0x0001,
1486 AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 0x0002,
1487 AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 0x0004,
1488 AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 0x0008,
1498 AV_FIELD_PROGRESSIVE,
1524 int log_level_offset;
1591 #define FF_COMPRESSION_DEFAULT -1 1753 const AVFrame *src,
int offset[AV_NUM_DATA_POINTERS],
1754 int y,
int type,
int height);
1788 #if FF_API_PRIVATE_OPT 1790 attribute_deprecated
1809 #if FF_API_PRIVATE_OPT 1811 attribute_deprecated
1873 #if FF_API_PRIVATE_OPT 1875 attribute_deprecated
1877 #define FF_PRED_LEFT 0 1878 #define FF_PRED_PLANE 1 1879 #define FF_PRED_MEDIAN 2 1922 #define FF_CMP_SAD 0 1923 #define FF_CMP_SSE 1 1924 #define FF_CMP_SATD 2 1925 #define FF_CMP_DCT 3 1926 #define FF_CMP_PSNR 4 1927 #define FF_CMP_BIT 5 1929 #define FF_CMP_ZERO 7 1930 #define FF_CMP_VSAD 8 1931 #define FF_CMP_VSSE 9 1932 #define FF_CMP_NSSE 10 1933 #define FF_CMP_W53 11 1934 #define FF_CMP_W97 12 1935 #define FF_CMP_DCTMAX 13 1936 #define FF_CMP_DCT264 14 1937 #define FF_CMP_MEDIAN_SAD 15 1938 #define FF_CMP_CHROMA 256 1954 #if FF_API_PRIVATE_OPT 1956 attribute_deprecated
1996 #define SLICE_FLAG_CODED_ORDER 0x0001 1997 #define SLICE_FLAG_ALLOW_FIELD 0x0002 1998 #define SLICE_FLAG_ALLOW_PLANE 0x0004 2006 #define FF_MB_DECISION_SIMPLE 0 2007 #define FF_MB_DECISION_BITS 1 2008 #define FF_MB_DECISION_RD 2 2024 #if FF_API_PRIVATE_OPT 2026 attribute_deprecated
2030 attribute_deprecated
2069 #if FF_API_PRIVATE_OPT 2073 attribute_deprecated
2083 #if FF_API_PRIVATE_OPT 2085 attribute_deprecated
2103 #if FF_API_PRIVATE_OPT 2105 attribute_deprecated
2116 #if FF_API_PRIVATE_OPT 2118 attribute_deprecated
2343 attribute_deprecated
2421 #if FF_API_CODER_TYPE 2422 #define FF_CODER_TYPE_VLC 0 2423 #define FF_CODER_TYPE_AC 1 2424 #define FF_CODER_TYPE_RAW 2 2425 #define FF_CODER_TYPE_RLE 3 2429 attribute_deprecated
2433 #if FF_API_PRIVATE_OPT 2435 attribute_deprecated
2439 #if FF_API_PRIVATE_OPT 2441 attribute_deprecated
2445 attribute_deprecated
2449 attribute_deprecated
2453 attribute_deprecated
2464 #if FF_API_PRIVATE_OPT 2466 attribute_deprecated
2470 attribute_deprecated
2474 attribute_deprecated
2478 #if FF_API_RTP_CALLBACK 2488 attribute_deprecated
2492 #if FF_API_PRIVATE_OPT 2494 attribute_deprecated
2503 #if FF_API_STAT_BITS 2505 attribute_deprecated
2507 attribute_deprecated
2509 attribute_deprecated
2511 attribute_deprecated
2513 attribute_deprecated
2515 attribute_deprecated
2517 attribute_deprecated
2519 attribute_deprecated
2523 attribute_deprecated
2548 #define FF_BUG_AUTODETECT 1 2549 #define FF_BUG_XVID_ILACE 4 2550 #define FF_BUG_UMP4 8 2551 #define FF_BUG_NO_PADDING 16 2552 #define FF_BUG_AMV 32 2553 #define FF_BUG_QPEL_CHROMA 64 2554 #define FF_BUG_STD_QPEL 128 2555 #define FF_BUG_QPEL_CHROMA2 256 2556 #define FF_BUG_DIRECT_BLOCKSIZE 512 2557 #define FF_BUG_EDGE 1024 2558 #define FF_BUG_HPEL_CHROMA 2048 2559 #define FF_BUG_DC_CLIP 4096 2560 #define FF_BUG_MS 8192 2561 #define FF_BUG_TRUNCATED 16384 2562 #define FF_BUG_IEDGE 32768 2577 #define FF_COMPLIANCE_VERY_STRICT 2 2578 #define FF_COMPLIANCE_STRICT 1 2579 #define FF_COMPLIANCE_NORMAL 0 2580 #define FF_COMPLIANCE_UNOFFICIAL -1 2581 #define FF_COMPLIANCE_EXPERIMENTAL -2 2589 #define FF_EC_GUESS_MVS 1 2590 #define FF_EC_DEBLOCK 2 2591 #define FF_EC_FAVOR_INTER 256 2599 #define FF_DEBUG_PICT_INFO 1 2600 #define FF_DEBUG_RC 2 2601 #define FF_DEBUG_BITSTREAM 4 2602 #define FF_DEBUG_MB_TYPE 8 2603 #define FF_DEBUG_QP 16 2608 #define FF_DEBUG_MV 32 2610 #define FF_DEBUG_DCT_COEFF 0x00000040 2611 #define FF_DEBUG_SKIP 0x00000080 2612 #define FF_DEBUG_STARTCODE 0x00000100 2613 #define FF_DEBUG_ER 0x00000400 2614 #define FF_DEBUG_MMCO 0x00000800 2615 #define FF_DEBUG_BUGS 0x00001000 2617 #define FF_DEBUG_VIS_QP 0x00002000 2618 #define FF_DEBUG_VIS_MB_TYPE 0x00004000 2620 #define FF_DEBUG_BUFFERS 0x00008000 2621 #define FF_DEBUG_THREADS 0x00010000 2622 #define FF_DEBUG_GREEN_MD 0x00800000 2623 #define FF_DEBUG_NOMC 0x01000000 2632 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 // visualize forward predicted MVs of P-frames 2633 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 // visualize forward predicted MVs of B-frames 2634 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 // visualize backward predicted MVs of B-frames 2650 #define AV_EF_CRCCHECK (1<<0) 2651 #define AV_EF_BITSTREAM (1<<1) 2652 #define AV_EF_BUFFER (1<<2) 2653 #define AV_EF_EXPLODE (1<<3) 2655 #define AV_EF_IGNORE_ERR (1<<15) 2656 #define AV_EF_CAREFUL (1<<16) 2657 #define AV_EF_COMPLIANT (1<<17) 2658 #define AV_EF_AGGRESSIVE (1<<18) 2693 uint64_t error[AV_NUM_DATA_POINTERS];
2701 #define FF_DCT_AUTO 0 2702 #define FF_DCT_FASTINT 1 2703 #define FF_DCT_INT 2 2704 #define FF_DCT_MMX 3 2705 #define FF_DCT_ALTIVEC 5 2706 #define FF_DCT_FAAN 6 2714 #define FF_IDCT_AUTO 0 2715 #define FF_IDCT_INT 1 2716 #define FF_IDCT_SIMPLE 2 2717 #define FF_IDCT_SIMPLEMMX 3 2718 #define FF_IDCT_ARM 7 2719 #define FF_IDCT_ALTIVEC 8 2720 #define FF_IDCT_SIMPLEARM 10 2721 #define FF_IDCT_XVID 14 2722 #define FF_IDCT_SIMPLEARMV5TE 16 2723 #define FF_IDCT_SIMPLEARMV6 17 2724 #define FF_IDCT_FAAN 20 2725 #define FF_IDCT_SIMPLENEON 22 2726 #define FF_IDCT_NONE 24 2727 #define FF_IDCT_SIMPLEAUTO 128 2752 #if FF_API_CODED_FRAME 2780 #define FF_THREAD_FRAME 1 2781 #define FF_THREAD_SLICE 2 2844 #define FF_PROFILE_UNKNOWN -99 2845 #define FF_PROFILE_RESERVED -100 2847 #define FF_PROFILE_AAC_MAIN 0 2848 #define FF_PROFILE_AAC_LOW 1 2849 #define FF_PROFILE_AAC_SSR 2 2850 #define FF_PROFILE_AAC_LTP 3 2851 #define FF_PROFILE_AAC_HE 4 2852 #define FF_PROFILE_AAC_HE_V2 28 2853 #define FF_PROFILE_AAC_LD 22 2854 #define FF_PROFILE_AAC_ELD 38 2855 #define FF_PROFILE_MPEG2_AAC_LOW 128 2856 #define FF_PROFILE_MPEG2_AAC_HE 131 2858 #define FF_PROFILE_DNXHD 0 2859 #define FF_PROFILE_DNXHR_LB 1 2860 #define FF_PROFILE_DNXHR_SQ 2 2861 #define FF_PROFILE_DNXHR_HQ 3 2862 #define FF_PROFILE_DNXHR_HQX 4 2863 #define FF_PROFILE_DNXHR_444 5 2865 #define FF_PROFILE_DTS 20 2866 #define FF_PROFILE_DTS_ES 30 2867 #define FF_PROFILE_DTS_96_24 40 2868 #define FF_PROFILE_DTS_HD_HRA 50 2869 #define FF_PROFILE_DTS_HD_MA 60 2870 #define FF_PROFILE_DTS_EXPRESS 70 2872 #define FF_PROFILE_MPEG2_422 0 2873 #define FF_PROFILE_MPEG2_HIGH 1 2874 #define FF_PROFILE_MPEG2_SS 2 2875 #define FF_PROFILE_MPEG2_SNR_SCALABLE 3 2876 #define FF_PROFILE_MPEG2_MAIN 4 2877 #define FF_PROFILE_MPEG2_SIMPLE 5 2879 #define FF_PROFILE_H264_CONSTRAINED (1<<9) // 8+1; constraint_set1_flag 2880 #define FF_PROFILE_H264_INTRA (1<<11) // 8+3; constraint_set3_flag 2882 #define FF_PROFILE_H264_BASELINE 66 2883 #define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED) 2884 #define FF_PROFILE_H264_MAIN 77 2885 #define FF_PROFILE_H264_EXTENDED 88 2886 #define FF_PROFILE_H264_HIGH 100 2887 #define FF_PROFILE_H264_HIGH_10 110 2888 #define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA) 2889 #define FF_PROFILE_H264_MULTIVIEW_HIGH 118 2890 #define FF_PROFILE_H264_HIGH_422 122 2891 #define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA) 2892 #define FF_PROFILE_H264_STEREO_HIGH 128 2893 #define FF_PROFILE_H264_HIGH_444 144 2894 #define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244 2895 #define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA) 2896 #define FF_PROFILE_H264_CAVLC_444 44 2898 #define FF_PROFILE_VC1_SIMPLE 0 2899 #define FF_PROFILE_VC1_MAIN 1 2900 #define FF_PROFILE_VC1_COMPLEX 2 2901 #define FF_PROFILE_VC1_ADVANCED 3 2903 #define FF_PROFILE_MPEG4_SIMPLE 0 2904 #define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1 2905 #define FF_PROFILE_MPEG4_CORE 2 2906 #define FF_PROFILE_MPEG4_MAIN 3 2907 #define FF_PROFILE_MPEG4_N_BIT 4 2908 #define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5 2909 #define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6 2910 #define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7 2911 #define FF_PROFILE_MPEG4_HYBRID 8 2912 #define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9 2913 #define FF_PROFILE_MPEG4_CORE_SCALABLE 10 2914 #define FF_PROFILE_MPEG4_ADVANCED_CODING 11 2915 #define FF_PROFILE_MPEG4_ADVANCED_CORE 12 2916 #define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13 2917 #define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14 2918 #define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15 2920 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 1 2921 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 2 2922 #define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 32768 2923 #define FF_PROFILE_JPEG2000_DCINEMA_2K 3 2924 #define FF_PROFILE_JPEG2000_DCINEMA_4K 4 2926 #define FF_PROFILE_VP9_0 0 2927 #define FF_PROFILE_VP9_1 1 2928 #define FF_PROFILE_VP9_2 2 2929 #define FF_PROFILE_VP9_3 3 2931 #define FF_PROFILE_HEVC_MAIN 1 2932 #define FF_PROFILE_HEVC_MAIN_10 2 2933 #define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3 2934 #define FF_PROFILE_HEVC_REXT 4 2936 #define FF_PROFILE_AV1_MAIN 0 2937 #define FF_PROFILE_AV1_HIGH 1 2938 #define FF_PROFILE_AV1_PROFESSIONAL 2 2940 #define FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT 0xc0 2941 #define FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT 0xc1 2942 #define FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT 0xc2 2943 #define FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS 0xc3 2944 #define FF_PROFILE_MJPEG_JPEG_LS 0xf7 2946 #define FF_PROFILE_SBC_MSBC 1 2954 #define FF_LEVEL_UNKNOWN -99 2986 int subtitle_header_size;
2988 #if FF_API_VBV_DELAY 2997 attribute_deprecated
3001 #if FF_API_SIDEDATA_ONLY_PKT 3012 attribute_deprecated
3096 #define FF_SUB_CHARENC_MODE_DO_NOTHING -1 3097 #define FF_SUB_CHARENC_MODE_AUTOMATIC 0 3098 #define FF_SUB_CHARENC_MODE_PRE_DECODER 1 3099 #define FF_SUB_CHARENC_MODE_IGNORE 2 3122 #if !FF_API_DEBUG_MV 3129 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames 3130 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames 3131 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames 3163 #define FF_CODEC_PROPERTY_LOSSLESS 0x00000001 3164 #define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002 3173 int nb_coded_side_data;
3205 #define FF_SUB_TEXT_FMT_ASS 0 3206 #if FF_API_ASS_TIMING 3207 #define FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS 1 3299 int extra_hw_frames;
3302 #if FF_API_CODEC_GET_SET 3307 attribute_deprecated
3309 attribute_deprecated
3312 attribute_deprecated
3314 attribute_deprecated
3317 attribute_deprecated
3318 unsigned av_codec_get_codec_properties(
const AVCodecContext *avctx);
3321 attribute_deprecated
3323 attribute_deprecated
3327 attribute_deprecated
3329 attribute_deprecated
3332 attribute_deprecated
3333 uint16_t *av_codec_get_chroma_intra_matrix(
const AVCodecContext *avctx);
3334 attribute_deprecated
3335 void av_codec_set_chroma_intra_matrix(
AVCodecContext *avctx, uint16_t *val);
3398 enum AVHWDeviceType device_type;
3505 int *got_packet_ptr);
3552 #if FF_API_CODEC_GET_SET 3553 attribute_deprecated
3554 int av_codec_get_max_lowres(
const AVCodec *codec);
3652 int (*decode_params)(
AVCodecContext *avctx,
int type,
const uint8_t *buf, uint32_t buf_size);
3742 #define AV_HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200 3752 #define AV_HWACCEL_FLAG_IGNORE_LEVEL (1 << 0) 3758 #define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1) 3772 #define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2) 3778 #if FF_API_AVPICTURE 3794 attribute_deprecated
3795 uint8_t *data[AV_NUM_DATA_POINTERS];
3796 attribute_deprecated
3797 int linesize[AV_NUM_DATA_POINTERS];
3823 #define AV_SUBTITLE_FLAG_FORCED 0x00000001 3832 #if FF_API_AVPICTURE 3836 attribute_deprecated
3862 uint32_t start_display_time;
3863 uint32_t end_display_time;
3965 enum AVFieldOrder field_order;
4044 attribute_deprecated
4072 attribute_deprecated
4085 attribute_deprecated
4110 #if FF_API_GET_CONTEXT_DEFAULTS 4127 #if FF_API_COPY_CONTEXT 4161 attribute_deprecated
4363 #if FF_API_AVPACKET_OLD_API 4370 attribute_deprecated
4379 attribute_deprecated
4389 attribute_deprecated
4399 attribute_deprecated
4427 uint8_t *data,
size_t size);
4451 #if FF_API_MERGE_SD_API 4452 attribute_deprecated
4453 int av_packet_merge_side_data(
AVPacket *pkt);
4455 attribute_deprecated
4456 int av_packet_split_side_data(
AVPacket *pkt);
4628 int linesize_align[AV_NUM_DATA_POINTERS]);
4705 attribute_deprecated
4707 int *got_frame_ptr,
const AVPacket *avpkt);
4754 attribute_deprecated
4756 int *got_picture_ptr,
5025 enum AVPictureStructure {
5026 AV_PICTURE_STRUCTURE_UNKNOWN,
5027 AV_PICTURE_STRUCTURE_TOP_FIELD,
5028 AV_PICTURE_STRUCTURE_BOTTOM_FIELD,
5029 AV_PICTURE_STRUCTURE_FRAME,
5035 int64_t frame_offset;
5038 int64_t next_frame_offset;
5057 int fetch_timestamp;
5059 #define AV_PARSER_PTS_NB 4 5060 int cur_frame_start_index;
5061 int64_t cur_frame_offset[AV_PARSER_PTS_NB];
5062 int64_t cur_frame_pts[AV_PARSER_PTS_NB];
5063 int64_t cur_frame_dts[AV_PARSER_PTS_NB];
5066 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001 5067 #define PARSER_FLAG_ONCE 0x0002 5068 #define PARSER_FLAG_FETCHED_OFFSET 0x0004 5070 #define PARSER_FLAG_USE_CODEC_TS 0x1000 5073 int64_t cur_frame_end[AV_PARSER_PTS_NB];
5083 #if FF_API_CONVERGENCE_DURATION 5087 attribute_deprecated
5137 int64_t cur_frame_pos[AV_PARSER_PTS_NB];
5156 enum AVFieldOrder field_order;
5166 enum AVPictureStructure picture_structure;
5207 const uint8_t **poutbuf,
int *poutbuf_size,
5208 const uint8_t *buf,
int buf_size);
5210 int (*split)(
AVCodecContext *avctx,
const uint8_t *buf,
int buf_size);
5225 attribute_deprecated
5228 attribute_deprecated
5265 uint8_t **poutbuf,
int *poutbuf_size,
5266 const uint8_t *buf,
int buf_size,
5267 int64_t pts, int64_t dts,
5276 uint8_t **poutbuf,
int *poutbuf_size,
5277 const uint8_t *buf,
int buf_size,
int keyframe);
5346 attribute_deprecated
5348 const AVFrame *frame,
int *got_packet_ptr);
5385 attribute_deprecated
5387 const AVFrame *frame,
int *got_packet_ptr);
5389 int avcodec_encode_subtitle(
AVCodecContext *avctx, uint8_t *buf,
int buf_size,
5397 #if FF_API_AVPICTURE 5406 attribute_deprecated
5412 attribute_deprecated
5418 attribute_deprecated
5425 attribute_deprecated
5427 int width,
int height,
5428 unsigned char *dest,
int dest_size);
5433 attribute_deprecated
5439 attribute_deprecated
5446 attribute_deprecated
5453 attribute_deprecated
5455 int padtop,
int padbottom,
int padleft,
int padright,
int *
color);
5478 #if FF_API_GETCHROMA 5483 attribute_deprecated
5519 int has_alpha,
int *loss_ptr);
5525 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
5527 attribute_deprecated
5529 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
5537 #if FF_API_TAG_STRING 5549 attribute_deprecated
5553 void avcodec_string(
char *buf,
int buf_size,
AVCodecContext *enc,
int encode);
5606 int buf_size,
int align);
5776 attribute_deprecated
5783 attribute_deprecated
5790 attribute_deprecated
5793 uint8_t **poutbuf,
int *poutbuf_size,
5794 const uint8_t *buf,
int buf_size,
int keyframe);
5800 attribute_deprecated
5807 attribute_deprecated
5828 attribute_deprecated
6018 unsigned int av_xiphlacing(
unsigned char *s,
unsigned int v);
6020 #if FF_API_USER_VISIBLE_AVHWACCEL 6026 attribute_deprecated
6037 attribute_deprecated
6080 attribute_deprecated
enum AVPixelFormat(* get_format)(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
callback to negotiate the pixelFormat
Definition: avcodec.h:1769
codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it ...
Definition: avcodec.h:684
int caps_internal
Internal hwaccel capabilities.
Definition: avcodec.h:3725
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
Definition: bsf.c:35
struct AVBSFContext AVBSFContext
The bitstream filter state.
AVRational framerate
Definition: avcodec.h:3040
discard all frames except keyframes
Definition: avcodec.h:793
const AVCodecDescriptor * codec_descriptor
AVCodecDescriptor.
Definition: avcodec.h:3061
const AVClass * priv_class
A class for the private data, used to declare bitstream filter private AVOptions. ...
Definition: avcodec.h:5755
AVCodecParameters * par_out
Parameters of the output stream.
Definition: avcodec.h:5721
AVPacketSideDataType
Definition: avcodec.h:1143
int64_t pts_correction_num_faulty_dts
Number of incorrect PTS values so far.
Definition: avcodec.h:3078
A list of zero terminated key/value strings.
Definition: avcodec.h:1312
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
The optional first identifier line of a WebVTT cue.
Definition: avcodec.h:1299
AVCodec * avcodec_find_encoder(enum AVCodecID id)
Find a registered encoder with a matching codec ID.
Definition: allcodecs.c:857
int x
top left corner of pict, undefined when pict is not set
Definition: avcodec.h:3826
int dct_algo
DCT algorithm, see FF_DCT_* below.
Definition: avcodec.h:2700
A dummy id pointing at the start of audio codecs.
Definition: avcodec.h:451
int apply_cropping
Video decoding only.
Definition: avcodec.h:3285
const struct AVCodecHWConfigInternal ** hw_configs
Array of pointers to hardware configurations supported by the codec, or NULL if no hardware supported...
Definition: avcodec.h:3549
int coded_width
Bitstream width / height, may be different from width/height e.g.
Definition: avcodec.h:1705
int capabilities
Hardware accelerated codec capabilities.
Definition: avcodec.h:3609
float qblur
amount of qscale smoothing over time (0.0-1.0)
Definition: avcodec.h:2348
Unlock the mutex.
Definition: avcodec.h:6050
int64_t bit_rate
the average bitrate
Definition: avcodec.h:1568
The codec supports this format by some internal method.
Definition: avcodec.h:3370
int64_t pos
byte position in stream, -1 if unknown
Definition: avcodec.h:1450
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
Definition: avpacket.c:101
attribute_deprecated AVCodec * av_codec_next(const AVCodec *c)
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec...
Definition: allcodecs.c:810
Subtitle event position.
Definition: avcodec.h:1286
int id
id
Definition: avcodec.h:1076
int max_bitrate
Maximum bitrate of the stream, in bits per second.
Definition: avcodec.h:1104
int max_b_frames
maximum number of B-frames between non-B-frames Note: The output will be delayed by max_b_frames+1 re...
Definition: avcodec.h:1777
AVRational sample_aspect_ratio
Video only.
Definition: avcodec.h:3960
int rc_initial_buffer_occupancy
Number of bits which should be loaded into the rc buffer before decoding starts.
Definition: avcodec.h:2419
Dummy codec for streams containing only metadata information.
Definition: avcodec.h:690
int width
Dimensions of the decoded video intended for presentation.
Definition: avcodec.h:5179
int avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
Read encoded data from the encoder.
Definition: encode.c:420
attribute_deprecated int frame_skip_cmp
Definition: avcodec.h:2454
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
Definition: avcodec.h:1217
const char * avcodec_configuration(void)
Return the libavcodec build-time configuration.
Definition: utils.c:1402
ATSC A53 Part 4 Closed Captions.
Definition: avcodec.h:1345
attribute_deprecated int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
Definition: bitstream_filter.c:97
enum AVColorRange color_range
MPEG vs JPEG YUV range.
Definition: avcodec.h:2148
const struct AVBitStreamFilter * filter
The bitstream filter this context is an instance of.
Definition: avcodec.h:5696
attribute_deprecated int av_picture_crop(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int top_band, int left_band)
Definition: imgconvert.c:107
The bitstream filter state.
Definition: avcodec.h:5687
int nb_colors
number of colors in pict, undefined when pict is not set
Definition: avcodec.h:3830
int mb_lmin
minimum MB Lagrange multiplier
Definition: avcodec.h:2060
const char * avcodec_license(void)
Return the libavcodec license.
Definition: utils.c:1407
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
Definition: bitstream_filters.c:75
int coded_width
Dimensions of the coded video.
Definition: avcodec.h:5185
This side data contains an integer value representing the stream index of a "fallback" track...
Definition: avcodec.h:1243
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
Definition: avcodec.h:1896
attribute_deprecated int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of audio.
Definition: encode.c:118
Convenience header that includes libavutil's core.
attribute_deprecated int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, const AVPacket *avpkt)
Decode the audio frame of size avpkt->size from avpkt->data into frame.
Definition: decode.c:833
Contain timestamp estimated through PCR of program stream.
Definition: avcodec.h:673
void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size)
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end w...
Definition: utils.c:70
A dummy ID pointing at the start of various fake codecs.
Definition: avcodec.h:670
char * stats_in
pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed he...
Definition: avcodec.h:2540
int ildct_cmp
interlaced DCT comparison function
Definition: avcodec.h:1921
discard all non intra frames
Definition: avcodec.h:792
int duration
Duration of the current frame.
Definition: avcodec.h:5154
discard all
Definition: avcodec.h:794
attribute_deprecated void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
Definition: imgconvert.c:38
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
Definition: avcodec.h:2741
attribute_deprecated int av_lockmgr_register(int(*cb)(void **mutex, enum AVLockOp op))
Register a user provided lock manager supporting the operations specified by AVLockOp.
Definition: utils.c:1770
int avcodec_enum_to_chroma_pos(int *xpos, int *ypos, enum AVChromaLocation pos)
Converts AVChromaLocation to swscale x/y chroma position.
Definition: utils.c:349
int dts_ref_dts_delta
Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.
Definition: avcodec.h:5116
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt)
Decode a subtitle message.
Definition: decode.c:998
const struct AVHWAccel * hwaccel
Hardware accelerator in use.
Definition: avcodec.h:2674
int av_bsf_get_null_filter(AVBSFContext **bsf)
Get null/pass-through bitstream filter.
Definition: bsf.c:544
int trailing_padding
Audio only.
Definition: avcodec.h:4020
void * priv_data
Opaque filter-specific private data.
Definition: avcodec.h:5708
Picture data structure.
Definition: avcodec.h:3793
int profile
profile
Definition: avcodec.h:2843
const AVCodec * av_codec_iterate(void **opaque)
Iterate over all registered codecs.
Definition: allcodecs.c:775
An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of structures with info about macroblo...
Definition: avcodec.h:1196
AVCodec.
Definition: avcodec.h:3408
Definition: vf_paletteuse.c:588
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
Definition: avcodec.h:2210
attribute_deprecated int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum AVPixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
Definition: imgconvert.c:138
float i_quant_offset
qscale offset between P and I-frames
Definition: avcodec.h:1829
This struct describes the properties of an encoded stream.
Definition: avcodec.h:3876
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
Definition: bsf.c:134
AVLockOp
Lock operation used by lockmgr.
Definition: avcodec.h:6047
attribute_deprecated AVPicture pict
Definition: avcodec.h:3837
AVColorTransferCharacteristic
Color Transfer Characteristic.
Definition: pixfmt.h:444
int min_bitrate
Minimum bitrate of the stream, in bits per second.
Definition: avcodec.h:1109
char * text
0 terminated plain UTF-8 text
Definition: avcodec.h:3848
attribute_deprecated int frame_skip_exp
Definition: avcodec.h:2450
attribute_deprecated int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height)
Definition: avpicture.c:57
Macro definitions for various function/variable attributes.
const AVBitStreamFilter * av_bsf_iterate(void **opaque)
Iterate over all registered bitstream filters.
Definition: bitstream_filters.c:58
int frame_size
Audio only.
Definition: avcodec.h:4005
Mastering display metadata (based on SMPTE-2086:2014).
Definition: avcodec.h:1325
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
Definition: avcodec.h:1640
int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt, int has_alpha)
Definition: imgconvert.c:47
int av_codec_is_decoder(const AVCodec *codec)
Definition: utils.c:99
enum AVAudioServiceType audio_service_type
Type of service that the audio stream conveys.
Definition: avcodec.h:2238
const AVCodecDescriptor * avcodec_descriptor_next(const AVCodecDescriptor *prev)
Iterate over all codec descriptors known to libavcodec.
Definition: codec_desc.c:3141
void av_bsf_list_free(AVBSFList **lst)
Free list of bitstream filters.
Definition: bsf.c:404
int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align)
Fill AVFrame audio data and linesize pointers.
Definition: utils.c:372
enum AVDiscard skip_frame
Skip decoding for selected frames.
Definition: avcodec.h:2975
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
Definition: options.c:294
int av_codec_is_encoder(const AVCodec *codec)
Definition: utils.c:94
uint64_t vbv_delay
The delay between the time the packet this structure is associated with is received and the time when...
Definition: avcodec.h:1129
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.
Definition: bsf.c:81
void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height)
Modify width and height values so that they will result in a memory buffer that is acceptable for the...
Definition: utils.c:334
int w
width of pict, undefined when pict is not set
Definition: avcodec.h:3828
float p_masking
p block masking (0-> disabled)
Definition: avcodec.h:1857
attribute_deprecated const AVBitStreamFilter * av_bitstream_filter_next(const AVBitStreamFilter *f)
Definition: bitstream_filter.c:31
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
Definition: bsf.c:201
attribute_deprecated int side_data_only_packets
Encoding only and set by default.
Definition: avcodec.h:3013
int bit_rate_tolerance
number of bits the bitstream is allowed to diverge from the reference.
Definition: avcodec.h:1576
int mb_lmax
maximum MB Lagrange multiplier
Definition: avcodec.h:2067
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
Definition: avpacket.c:62
enum AVSampleFormat sample_fmt
audio sample format
Definition: avcodec.h:2181
Lock the mutex.
Definition: avcodec.h:6049
Definition: avcodec.h:3382
void * hwaccel_context
Hardware accelerator context.
Definition: avcodec.h:2686
int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict)
Unpack a dictionary from side_data.
Definition: avpacket.c:517
int width
Video only.
Definition: avcodec.h:3950
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
Definition: parser.c:274
AVCodecParameters * avcodec_parameters_alloc(void)
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
Definition: utils.c:1982
int me_range
maximum motion estimation search range in subpel units If 0 then no limit.
Definition: avcodec.h:1988
AVColorSpace
YUV colorspace type.
Definition: pixfmt.h:473
unsigned int avcodec_pix_fmt_to_codec_tag(enum AVPixelFormat pix_fmt)
Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
Definition: raw.c:298
struct AVCodecContext AVCodecContext
main external API structure.
uint16_t * chroma_intra_matrix
custom intra quantization matrix
Definition: avcodec.h:3139
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
Definition: avcodec.h:1448
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
Definition: avcodec.h:1211
float b_quant_factor
qscale factor between IP and B-frames If > 0 then the last P-frame quantizer will be used (q= lastp_q...
Definition: avcodec.h:1786
int trailing_padding
Audio only.
Definition: avcodec.h:3219
int pre_dia_size
ME prepass diamond size & shape.
Definition: avcodec.h:1972
int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
Initialize a reference-counted packet from av_malloc()ed data.
Definition: avpacket.c:152
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
Definition: avcodec.h:1618
const AVClass * av_class
information on struct for av_log
Definition: avcodec.h:1523
int me_cmp
motion estimation comparison function
Definition: avcodec.h:1903
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
Fill the codec context based on the values from the supplied codec parameters.
Definition: utils.c:2078
int initial_padding
Audio only.
Definition: avcodec.h:4013
This side data is encryption initialization data.
Definition: avcodec.h:1352
attribute_deprecated int context_model
Definition: avcodec.h:2436
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
Definition: avpacket.c:647
attribute_deprecated void avcodec_register(AVCodec *codec)
Register the codec codec and initialize libavcodec.
Definition: allcodecs.c:805
int lowres
low resolution decoding, 1-> 1/2 size, 2->1/4 size
Definition: avcodec.h:2749
AVColorRange
MPEG vs JPEG YUV range.
Definition: pixfmt.h:496
const AVClass * avcodec_get_frame_class(void)
Get the AVClass for AVFrame.
Definition: options.c:321
int buffer_size
The size of the buffer to which the ratecontrol is applied, in bits.
Definition: avcodec.h:1120
int h
height of pict, undefined when pict is not set
Definition: avcodec.h:3829
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
Definition: avcodec.h:2734
Definition: avcodec.h:5736
float lumi_masking
luminance masking (0-> disabled)
Definition: avcodec.h:1836
char * stats_out
pass1 encoding statistics output buffer
Definition: avcodec.h:2532
AVColorPrimaries
Chromaticity coordinates of the source primaries.
Definition: pixfmt.h:420
AVCPBProperties * av_cpb_properties_alloc(size_t *size)
Allocate a CPB properties structure and initialize its fields to default values.
Definition: utils.c:1922
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
Definition: avcodec.h:2155
attribute_deprecated int frame_skip_threshold
Definition: avcodec.h:2442
uint64_t channel_layout
Audio only.
Definition: avcodec.h:3986
attribute_deprecated void avcodec_register_all(void)
Register all the codecs, parsers and bitstream filters which were enabled at configuration time...
Definition: allcodecs.c:820
Definition: avcodec.h:3860
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
Definition: avpacket.c:601
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
Definition: avcodec.h:3913
AVCodec * avcodec_find_encoder_by_name(const char *name)
Find a registered encoder with the specified name.
Definition: allcodecs.c:885
attribute_deprecated int av_copy_packet_side_data(AVPacket *dst, const AVPacket *src)
Copy packet side data.
Definition: avpacket.c:226
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POINTERS])
Modify width and height values so that they will result in a memory buffer that is acceptable for the...
Definition: utils.c:154
attribute_deprecated int avpicture_fill(AVPicture *picture, const uint8_t *ptr, enum AVPixelFormat pix_fmt, int width, int height)
Definition: avpicture.c:37
int av_packet_make_writable(AVPacket *pkt)
Create a writable reference for the data described by a given packet, avoiding data copy if possible...
Definition: avpacket.c:673
attribute_deprecated void av_register_hwaccel(AVHWAccel *hwaccel)
Register the hardware accelerator hwaccel.
Definition: utils.c:1764
MPEGTS stream ID, this is required to pass the stream ID information from the demuxer to the correspo...
Definition: avcodec.h:1318
int slice_count
slice count
Definition: avcodec.h:1871
Libavcodec version macros.
int avcodec_close(AVCodecContext *avctx)
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext its...
Definition: utils.c:1061
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
Definition: avpacket.c:86
AVRational pkt_timebase
Timebase in which pkt_dts/pts and AVPacket.dts/pts are.
Definition: avcodec.h:3054
const uint64_t * channel_layouts
array of support channel layouts, or NULL if unknown. array is terminated by 0
Definition: avcodec.h:3432
const AVCodecDefault * defaults
Private codec-specific defaults.
Definition: avcodec.h:3481
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition: avcodec.h:215
int avcodec_parameters_copy(AVCodecParameters *dst, const AVCodecParameters *src)
Copy the contents of src to dst.
Definition: utils.c:2003
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
Definition: utils.c:1495
int has_b_frames
Size of the frame reordering buffer in the decoder.
Definition: avcodec.h:1807
An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette...
Definition: avcodec.h:1149
AVPacket * av_packet_clone(const AVPacket *src)
Create a new packet that references the same data as src.
Definition: avpacket.c:634
int64_t pos
Byte position of currently parsed frame in stream.
Definition: avcodec.h:5142
Create a mutex.
Definition: avcodec.h:6048
void av_packet_rescale_ts(AVPacket *pkt, AVRational tb_src, AVRational tb_dst)
Convert valid timing fields (timestamps / durations) in a packet from one timebase to another...
Definition: avpacket.c:694
AVAudioServiceType
Definition: avcodec.h:797
int y
top left corner of pict, undefined when pict is not set
Definition: avcodec.h:3827
discard all bidirectional frames
Definition: avcodec.h:791
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:
Definition: avcodec.h:1175
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
Definition: avpacket.c:350
enum AVCodecID * codec_ids
A list of codec ids supported by the filter, terminated by AV_CODEC_ID_NONE.
Definition: avcodec.h:5744
int me_sub_cmp
subpixel motion estimation comparison function
Definition: avcodec.h:1909
void av_packet_free_side_data(AVPacket *pkt)
Convenience function to free all the side data stored.
Definition: avpacket.c:270
Definition: internal.h:223
attribute_deprecated uint64_t vbv_delay
VBV delay coded in the last frame (in periods of a 27 MHz clock).
Definition: avcodec.h:2998
int qmax
maximum quantizer
Definition: avcodec.h:2362
enum AVSampleFormat request_sample_fmt
desired sample format
Definition: avcodec.h:2246
int skip_alpha
Skip processing alpha if supported by codec.
Definition: avcodec.h:3113
int64_t pts_correction_last_pts
Number of incorrect DTS values so far.
Definition: avcodec.h:3079
int format
Definition: avcodec.h:3908
int active_thread_type
Which multithreading methods are in use by the codec.
Definition: avcodec.h:2788
int methods
Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used...
Definition: avcodec.h:3391
attribute_deprecated int av_dup_packet(AVPacket *pkt)
Definition: avpacket.c:251
int avcodec_is_open(AVCodecContext *s)
Definition: utils.c:1861
int error_concealment
error concealment flags
Definition: avcodec.h:2588
int video_delay
Video only.
Definition: avcodec.h:3979
int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
Return decoded output data from a decoder.
Definition: decode.c:709
int capabilities
Codec capabilities.
Definition: avcodec.h:3427
int initial_padding
Audio only.
Definition: avcodec.h:3031
struct AVCodec AVCodec
AVCodec.
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: avcodec.h:552
attribute_deprecated AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
Definition: bitstream_filter.c:51
AVBufferRef * buf
A reference to the reference-counted buffer where the packet data is stored.
Definition: avcodec.h:1413
int flags
AV_CODEC_FLAG_*.
Definition: avcodec.h:1598
enum AVPixelFormat avcodec_find_best_pix_fmt_of_list(const enum AVPixelFormat *pix_fmt_list, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
Find the best pixel format to convert to given a certain source pixel format.
Definition: imgconvert.c:66
AVRational time_base_in
The timebase used for the timestamps of the input packets.
Definition: avcodec.h:5727
enum AVMediaType avcodec_get_type(enum AVCodecID codec_id)
Get the type of the given codec.
Definition: codec_desc.c:3160
const char * name
Name of the codec implementation.
Definition: avcodec.h:3415
float i_quant_factor
qscale factor between P- and I-frames If > 0 then the last P-frame quantizer will be used (q = lastp_...
Definition: avcodec.h:1822
int width
width and height in 1/16 pel
Definition: avcodec.h:1083
int64_t max_pixels
The number of pixels per image to maximally accept.
Definition: avcodec.h:3227
int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Shrink the already allocated side data buffer.
Definition: avpacket.c:542
const struct AVProfile * profiles
If non-NULL, an array of profiles recognized for this codec.
Definition: avcodec.h:726
const char * long_name
A more descriptive name for this codec.
Definition: avcodec.h:711
struct AVPicture AVPicture
Picture data structure.
struct AVCPBProperties AVCPBProperties
This structure describes the bitrate properties of an encoded bitstream.
Definition: avcodec.h:5199
void avcodec_parameters_free(AVCodecParameters **par)
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied p...
Definition: utils.c:1992
int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes)
This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters in...
Definition: utils.c:1709
attribute_deprecated int64_t timecode_frame_start
Definition: avcodec.h:2475
attribute_deprecated int b_sensitivity
Definition: avcodec.h:2119
int priv_data_size
Size of the private data to allocate in AVCodecInternal.hwaccel_priv_data.
Definition: avcodec.h:3720
int flags
A combination of AV_PKT_FLAG values.
Definition: avcodec.h:1436
reference-counted frame API
const AVCodecDescriptor * avcodec_descriptor_get(enum AVCodecID id)
Definition: codec_desc.c:3135
uint64_t channel_layout
Audio channel layout.
Definition: avcodec.h:2224
int extradata_size
Size of the extradata content in bytes.
Definition: avcodec.h:3902
The codec supports this format by some ad-hoc method.
Definition: avcodec.h:3379
int64_t pts
Same as packet pts, in AV_TIME_BASE.
Definition: avcodec.h:3866
int rc_buffer_size
decoder bitstream buffer size
Definition: avcodec.h:2376
attribute_deprecated int av_copy_packet(AVPacket *dst, const AVPacket *src)
Copy packet, including contents.
Definition: avpacket.c:262
int props
Codec properties, a combination of AV_CODEC_PROP_* flags.
Definition: avcodec.h:715
int intra_dc_precision
precision of the intra DC coefficient - 8
Definition: avcodec.h:2039
int64_t rc_min_rate
minimum bitrate
Definition: avcodec.h:2398
Not part of ABI.
Definition: avcodec.h:807
int refs
number of reference frames
Definition: avcodec.h:2101
int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf)
Append bitstream filter to the list of bitstream filters.
Definition: bsf.c:417
int block_align
Audio only.
Definition: avcodec.h:4001
A bitmap, pict will be set.
Definition: avcodec.h:3808
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
Definition: avpacket.c:558
int rc_override_count
ratecontrol override, see RcOverride
Definition: avcodec.h:2383
const AVClass * av_bsf_get_class(void)
Get the AVClass for AVBSFContext.
Definition: bsf.c:76
audio channel layout utility functions
enum AVPixelFormat * pix_fmts
array of supported pixel formats, or NULL if unknown, array is terminated by -1
Definition: avcodec.h:3429
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
Definition: avcodec.h:2642
const char * name
Name of the hardware accelerated codec.
Definition: avcodec.h:3582
AVPacketSideData * coded_side_data
Additional data associated with the entire coded stream.
Definition: avcodec.h:3172
attribute_deprecated int avpicture_layout(const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
Definition: avpicture.c:44
int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
Definition: utils.c:1413
attribute_deprecated int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
Definition: options.c:215
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
Definition: options.c:156
int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos)
Parse a packet.
Definition: parser.c:205
This side data contains quality related information from the encoder.
Definition: avcodec.h:1235
int av_bsf_list_append2(AVBSFList *lst, const char *bsf_name, AVDictionary **options)
Construct new bitstream filter context given it's name and options and append it to the list of bitst...
Definition: bsf.c:422
int width
picture width / height.
Definition: avcodec.h:1690
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
Definition: avcodec.h:2713
AVBufferRef * hw_frames_ctx
A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames...
Definition: avcodec.h:3197
int64_t offset
byte offset from starting packet start
Definition: avcodec.h:5072
attribute_deprecated void av_bitstream_filter_close(AVBitStreamFilterContext *bsf)
Definition: bitstream_filter.c:83
AVRational time_base_out
The timebase used for the timestamps of the output packets.
Definition: avcodec.h:5733
int av_packet_make_refcounted(AVPacket *pkt)
Ensure the data described by a given packet is reference counted.
Definition: avpacket.c:655
attribute_deprecated int noise_reduction
Definition: avcodec.h:2031
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
Definition: avcodec.h:1331
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
Definition: bsf.c:175
float rc_max_available_vbv_use
Ratecontrol attempt to use, at maximum, of what can be used without an underflow. ...
Definition: avcodec.h:2405
float rc_min_vbv_overflow_use
Ratecontrol attempt to use, at least, times the amount needed to prevent a vbv overflow.
Definition: avcodec.h:2412
attribute_deprecated int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
Definition: avpicture.c:52
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
Definition: avcodec.h:2127
attribute_deprecated int frame_skip_factor
Definition: avcodec.h:2446
const AVClass * avcodec_get_subtitle_rect_class(void)
Get the AVClass for AVSubtitleRect.
Definition: options.c:346
int level
level
Definition: avcodec.h:2953
const AVClass * av_class
A class for logging and AVOptions.
Definition: avcodec.h:5691
const AVProfile * profiles
array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN} ...
Definition: avcodec.h:3435
int64_t reordered_opaque
opaque 64-bit number (generally a PTS) that will be reordered and output in AVFrame.reordered_opaque
Definition: avcodec.h:2667
int ticks_per_frame
For some codecs, the time base is closer to the field rate than the frame rate.
Definition: avcodec.h:1649
const char * bsfs
Decoding only, a comma-separated list of bitstream filters to apply to packets before decoding...
Definition: avcodec.h:3540
int skip_top
Number of macroblock rows at the top which are skipped.
Definition: avcodec.h:2046
int mb_decision
macroblock decision mode
Definition: avcodec.h:2005
int last_predictor_count
amount of previous MV predictors (2a+1 x 2a+1 square)
Definition: avcodec.h:1952
int max_qdiff
maximum quantizer difference between frames
Definition: avcodec.h:2369
Passthrough codec, AVFrames wrapped in AVPacket.
Definition: avcodec.h:691
char * sub_charenc
DTS of the last frame.
Definition: avcodec.h:3087
attribute_deprecated int coder_type
Definition: avcodec.h:2430
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:220
const AVCodecDescriptor * avcodec_descriptor_get_by_name(const char *name)
Definition: codec_desc.c:3150
Definition: avcodec.h:5032
int64_t last_pos
Previous frame byte position.
Definition: avcodec.h:5147
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
Definition: utils.c:1127
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
Definition: avcodec.h:2769
int sub_charenc_mode
Subtitles character encoding mode.
Definition: avcodec.h:3095
attribute_deprecated int max_prediction_order
Definition: avcodec.h:2471
Definition: avcodec.h:5662
void avcodec_flush_buffers(AVCodecContext *avctx)
Reset the internal decoder state / flush internal buffers.
Definition: decode.c:1946
FAKE codec to indicate a MPEG-4 Systems stream (only used by libavformat)
Definition: avcodec.h:688
enum AVPixelFormat avcodec_find_best_pix_fmt_of_2(enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
Definition: imgconvert.c:54
Content light level (based on CTA-861.3).
Definition: avcodec.h:1338
int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt)
Supply raw packet data as input to a decoder.
Definition: decode.c:642
int(* update_thread_context)(AVCodecContext *dst, const AVCodecContext *src)
Copy necessary context variables from a previous thread context to the current one.
Definition: avcodec.h:3475
const char * av_get_profile_name(const AVCodec *codec, int profile)
Return a name for the specified profile, if available.
Definition: utils.c:1362
int frame_size
Number of samples per channel in an audio frame.
Definition: avcodec.h:2193
int pts_dts_delta
Presentation delay of current frame in units of AVCodecContext.time_base.
Definition: avcodec.h:5130
int(* execute2)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)
The codec may call this to execute several independent things.
Definition: avcodec.h:2829
const char * long_name
Descriptive name for the codec, meant to be more human readable than name.
Definition: avcodec.h:3420
This structure describes the bitrate properties of an encoded bitstream.
Definition: avcodec.h:1099
AVBSFList * av_bsf_list_alloc(void)
Allocate empty list of bitstream filters.
Definition: bsf.c:399
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
Definition: avcodec.h:1158
int bidir_refine
Definition: avcodec.h:2081
Definition: avcodec.h:1373
attribute_deprecated AVHWAccel * av_hwaccel_next(const AVHWAccel *hwaccel)
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL...
Definition: utils.c:1759
int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags)
The default callback for AVCodecContext.get_buffer2().
Definition: decode.c:1629
const char * wrapper_name
Group name of the codec implementation.
Definition: avcodec.h:3447
attribute_deprecated int mpeg_quant
Definition: avcodec.h:1812
const AVRational * supported_framerates
array of supported framerates, or NULL if any, array is terminated by {0,0}
Definition: avcodec.h:3428
A list of zero terminated key/value strings.
Definition: avcodec.h:1275
attribute_deprecated int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt)
Decode the video frame of size avpkt->size from avpkt->data into picture.
Definition: decode.c:826
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
attribute_deprecated int scenechange_threshold
Definition: avcodec.h:2027
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer...
Definition: options.c:171
Definition: internal.h:129
enum AVCodecID av_get_pcm_codec(enum AVSampleFormat fmt, int be)
Return the PCM codec associated with a sample format.
Definition: utils.c:1473
Definition: avcodec.h:3576
int compression_level
Definition: avcodec.h:1590
int seek_preroll
Number of samples to skip after a discontinuity.
Definition: avcodec.h:3120
attribute_deprecated int prediction_method
Definition: avcodec.h:1876
int sample_rate
samples per second
Definition: avcodec.h:2173
enum AVDiscard skip_idct
Skip IDCT/dequantization for selected frames.
Definition: avcodec.h:2968
attribute_deprecated int b_frame_strategy
Definition: avcodec.h:1791
const AVCodecParser * av_parser_iterate(void **opaque)
Iterate over all registered codec parsers.
Definition: parser.c:103
Plain text, the text field must be set by the decoder and is authoritative.
Definition: avcodec.h:3814
int debug
debug
Definition: avcodec.h:2598
const AVCodecHWConfig * avcodec_get_hw_config(const AVCodec *codec, int index)
Retrieve supported hardware configurations for a codec.
Definition: utils.c:1747
main external API structure.
Definition: avcodec.h:1518
AVCodec * avcodec_find_decoder(enum AVCodecID id)
Find a registered decoder with a matching codec ID.
Definition: allcodecs.c:862
uint8_t * av_packet_pack_dictionary(AVDictionary *dict, int *size)
Pack a dictionary for use in side_data.
Definition: avpacket.c:482
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
Definition: avpacket.c:592
int qmin
minimum quantizer
Definition: avcodec.h:2355
void avsubtitle_free(AVSubtitle *sub)
Free all allocated data in the given subtitle struct.
Definition: utils.c:1042
Definition: avcodec.h:813
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
Definition: avcodec.h:1543
int avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)
Supply a raw video or audio frame to the encoder.
Definition: encode.c:390
float spatial_cplx_masking
spatial complexity masking (0-> disabled)
Definition: avcodec.h:1850
Data found in BlockAdditional element of matroska container.
Definition: avcodec.h:1294
unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
Encode extradata length to a buffer.
Definition: utils.c:1726
uint16_t * intra_matrix
custom intra quantization matrix
Definition: avcodec.h:2015
int slice_flags
slice flags
Definition: avcodec.h:1995
Describe the class of an AVClass context structure.
Definition: log.h:67
int(* get_buffer2)(struct AVCodecContext *s, AVFrame *frame, int flags)
This callback is called at the beginning of each frame to get data buffer(s) for it.
Definition: avcodec.h:2328
enum AVColorSpace colorspace
YUV colorspace type.
Definition: avcodec.h:2141
Rational number (pair of numerator and denominator).
Definition: rational.h:58
attribute_deprecated int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of video.
Definition: encode.c:260
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
Definition: avcodec.h:2134
const char * name
short name for the profile
Definition: avcodec.h:3343
int avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
Fill the parameters struct based on the values from the supplied codec context.
Definition: utils.c:2021
Recommmends skipping the specified number of samples.
Definition: avcodec.h:1259
struct AVCodecDescriptor AVCodecDescriptor
This struct describes the properties of a single codec described by an AVCodecID. ...
int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type, uint8_t *data, size_t size)
Wrap an existing array as a packet side data.
Definition: avpacket.c:295
int sub_text_format
Control the form of AVSubtitle.rects[N]->ass.
Definition: avcodec.h:3204
struct AVPacket AVPacket
This structure stores compressed data.
int(* init_thread_copy)(AVCodecContext *)
If defined, called on thread contexts when they are created.
Definition: avcodec.h:3467
AVMediaType
Definition: avutil.h:199
attribute_deprecated AVRational av_codec_get_pkt_timebase(const AVCodecContext *avctx)
Accessors for some AVCodecContext fields.
discard useless packets like 0 size packets in avi
Definition: avcodec.h:789
refcounted data buffer API
attribute_deprecated int brd_scale
Definition: avcodec.h:2086
char * codec_whitelist
',' separated list of allowed decoders.
Definition: avcodec.h:3155
const char * name
Name of the codec described by this descriptor.
Definition: avcodec.h:707
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
Initialize the AVCodecContext to use the given AVCodec.
Definition: utils.c:538
attribute_deprecated int chromaoffset
Definition: avcodec.h:2106
float b_quant_offset
qscale offset between IP and B-frames
Definition: avcodec.h:1799
This side data contains encryption info for how to decrypt the packet.
Definition: avcodec.h:1358
struct AVCodecParameters AVCodecParameters
This struct describes the properties of an encoded stream.
int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
Return audio frame duration.
Definition: utils.c:1700
float qcompress
amount of qscale change between easy & hard scenes (0.0-1.0)
Definition: avcodec.h:2347
attribute_deprecated int refcounted_frames
If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_dec...
Definition: avcodec.h:2344
uint16_t * inter_matrix
custom inter quantization matrix
Definition: avcodec.h:2022
attribute_deprecated int64_t convergence_duration
Definition: avcodec.h:5088
int seek_preroll
Audio only.
Definition: avcodec.h:4024
This struct describes the properties of a single codec described by an AVCodecID. ...
Definition: avcodec.h:699
float dark_masking
darkness masking (0-> disabled)
Definition: avcodec.h:1864
int global_quality
Global quality for codecs which cannot change it per frame.
Definition: avcodec.h:1584
int skip_bottom
Number of macroblock rows at the bottom which are skipped.
Definition: avcodec.h:2053
AVCodec * avcodec_find_decoder_by_name(const char *name)
Find a registered decoder with the specified name.
Definition: allcodecs.c:890
This side data should be associated with an audio stream and contains ReplayGain information in form ...
Definition: avcodec.h:1202
int output_picture_number
Picture number incremented in presentation or output order.
Definition: avcodec.h:5174
float temporal_cplx_masking
temporary complexity masking (0-> disabled)
Definition: avcodec.h:1843
int bits_per_raw_sample
This is the number of valid bits in each output sample.
Definition: avcodec.h:3939
Pan Scan area.
Definition: avcodec.h:1070
const AVClass * priv_class
AVClass for the private context.
Definition: avcodec.h:3434
MpegEncContext.
Definition: mpegvideo.h:81
int gop_size
the number of pictures in a group of pictures, or 0 for intra_only
Definition: avcodec.h:1712
int sample_rate
Audio only.
Definition: avcodec.h:3994
uint8_t max_lowres
maximum value for lowres supported by the decoder
Definition: avcodec.h:3433
A reference to a data buffer.
Definition: buffer.h:81
discard all non reference
Definition: avcodec.h:790
An AV_PKT_DATA_JP_DUALMONO side data packet indicates that the packet may contain "dual mono" audio s...
Definition: avcodec.h:1269
AVPacketSideData * side_data
Additional packet data that can be provided by the container.
Definition: avcodec.h:1441
attribute_deprecated int64_t convergence_duration
Definition: avcodec.h:1459
int mb_cmp
macroblock comparison function (not supported yet)
Definition: avcodec.h:1915
int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf)
Parse string describing list of bitstream filters and create single AVBSFContext describing the whole...
Definition: bsf.c:506
int avcodec_get_hw_frames_parameters(AVCodecContext *avctx, AVBufferRef *device_ref, enum AVPixelFormat hw_pix_fmt, AVBufferRef **out_frames_ref)
Create and return a AVHWFramesContext with values adequate for hardware decoding. ...
Definition: decode.c:1201
enum AVChromaLocation avcodec_chroma_pos_to_enum(int xpos, int ypos)
Converts swscale x/y chroma position to AVChromaLocation.
Definition: utils.c:361
Free mutex resources.
Definition: avcodec.h:6051
Utilties for rational number calculation.
attribute_deprecated void avpicture_free(AVPicture *picture)
Definition: avpicture.c:70
raw UTF-8 text
Definition: avcodec.h:645
attribute_deprecated int rtp_payload_size
Definition: avcodec.h:2495
int nsse_weight
noise vs.
Definition: avcodec.h:2836
int profile
Codec-specific bitstream restrictions that the stream conforms to.
Definition: avcodec.h:3944
void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size)
Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call...
Definition: utils.c:82
AVProfile.
Definition: avcodec.h:3341
int workaround_bugs
Work around bugs in encoders which sometimes cannot be detected automatically.
Definition: avcodec.h:2547
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
Definition: avpacket.c:109
int caps_internal
Internal codec capabilities.
Definition: avcodec.h:3534
unsigned properties
Properties of the stream that gets decoded.
Definition: avcodec.h:3162
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
Definition: avpacket.c:33
enum AVDiscard skip_loop_filter
Skip loop filtering for selected frames.
Definition: avcodec.h:2961
int thread_safe_callbacks
Set by the client if its custom get_buffer() callback can be called synchronously from another thread...
Definition: avcodec.h:2798
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
Definition: options.c:150
attribute_deprecated void av_picture_copy(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height)
Definition: avpicture.c:75
int trellis
trellis RD quantization
Definition: avcodec.h:2462
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
Definition: avcodec.h:1305
int slices
Number of slices.
Definition: avcodec.h:2164
int cutoff
Audio cutoff bandwidth (0 means "automatic")
Definition: avcodec.h:2217
attribute_deprecated size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_tag)
Put a string representing the codec tag codec_tag in buf.
Definition: utils.c:1147
FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
Definition: avcodec.h:686
Formatted text, the ass field must be set by the decoder and is authoritative.
Definition: avcodec.h:3820
int dia_size
ME diamond size & shape.
Definition: avcodec.h:1945
uint8_t * dump_separator
dump format separator.
Definition: avcodec.h:3147
attribute_deprecated int frame_bits
Definition: avcodec.h:2524
attribute_deprecated int me_penalty_compensation
Definition: avcodec.h:2074
attribute_deprecated int min_prediction_order
Definition: avcodec.h:2467
as in Berlin toast format
Definition: avcodec.h:569
The codec supports this format via the hw_frames_ctx interface.
Definition: avcodec.h:3363
int avg_bitrate
Average bitrate of the stream, in bits per second.
Definition: avcodec.h:1114
char * args
Internal default arguments, used if NULL is passed to av_bitstream_filter_filter().
Definition: avcodec.h:5671
int channels
number of audio channels
Definition: avcodec.h:2174
int frame_priv_data_size
Size of per-frame hardware accelerator private data.
Definition: avcodec.h:3686
const int * supported_samplerates
array of supported audio samplerates, or NULL if unknown, array is terminated by 0 ...
Definition: avcodec.h:3430
int format
The format of the coded data, corresponds to enum AVPixelFormat for video and for enum AVSampleFormat...
Definition: avcodec.h:5196
unsigned avcodec_version(void)
Return the LIBAVCODEC_VERSION_INT constant.
Definition: utils.c:1390
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
Definition: avpacket.c:51
char * ass
0 terminated ASS/SSA compatible event line.
Definition: avcodec.h:3855
This side data corresponds to the AVCPBProperties struct.
Definition: avcodec.h:1248
attribute_deprecated void(* rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
Definition: avcodec.h:2489
int mv0_threshold
Note: Value depends upon the compare function used for fullpel ME.
Definition: avcodec.h:2114
int flags2
AV_CODEC_FLAG2_*.
Definition: avcodec.h:1605
int bits_per_coded_sample
The number of bits per sample in the codedwords.
Definition: avcodec.h:3926
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
Definition: avcodec.h:3898
AVDiscard
Definition: avcodec.h:785
attribute_deprecated void av_register_bitstream_filter(AVBitStreamFilter *bsf)
Definition: bitstream_filter.c:42
struct AVProfile AVProfile
AVProfile.
int channels
Audio only.
Definition: avcodec.h:3990
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
Definition: avcodec.h:1429
int64_t pts_correction_last_dts
PTS of the last frame.
Definition: avcodec.h:3080
int * slice_offset
slice offsets in the frame in bytes
Definition: avcodec.h:1887
int frame_number
Frame counter, set by libavcodec.
Definition: avcodec.h:2204
attribute_deprecated void av_free_packet(AVPacket *pkt)
Free a packet.
Definition: avpacket.c:281
int repeat_pict
This field is used for proper frame duration computation in lavf.
Definition: avcodec.h:5050
int64_t pts_correction_num_faulty_pts
Current statistics for PTS correction.
Definition: avcodec.h:3077
enum AVFieldOrder field_order
Field order.
Definition: avcodec.h:2170
void(* init_static_data)(struct AVCodec *codec)
Initialize codec static data, called from avcodec_register().
Definition: avcodec.h:3489
AVChromaLocation
Location of chroma samples.
Definition: pixfmt.h:518
int hwaccel_flags
Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated decoding (if active)...
Definition: avcodec.h:3258
enum AVSampleFormat * sample_fmts
array of supported sample formats, or NULL if unknown, array is terminated by -1
Definition: avcodec.h:3431
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
Definition: avcodec.h:3888
struct AVPanScan AVPanScan
Pan Scan area.
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Allocate new information of a packet.
Definition: avpacket.c:329
int debug_mv
debug motion vectors
Definition: avcodec.h:3128
const char *const * mime_types
MIME type(s) associated with the codec.
Definition: avcodec.h:721
AVBufferRef * hw_device_ctx
A reference to the AVHWDeviceContext describing the device which will be used by a hardware encoder/d...
Definition: avcodec.h:3249
uint64_t request_channel_layout
Request decoder to use this channel layout if it can (0 for default)
Definition: avcodec.h:2231
Definition: avcodec.h:3825
int me_pre_cmp
motion estimation prepass comparison function
Definition: avcodec.h:1965
The number of side data types.
Definition: avcodec.h:1368
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60
The codec supports this format via the hw_device_ctx interface.
Definition: avcodec.h:3354
This structure stores compressed data.
Definition: avcodec.h:1407
const char * avcodec_profile_name(enum AVCodecID codec_id, int profile)
Return a name for the specified profile, if available.
Definition: utils.c:1375
AVCodecParameters * par_in
Parameters of the input stream.
Definition: avcodec.h:5715
int key_frame
Set by parser to 1 for key frames and 0 for non-key frames.
Definition: avcodec.h:5081
int delay
Codec delay.
Definition: avcodec.h:1673
int me_subpel_quality
subpel ME quality
Definition: avcodec.h:1979
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
Definition: avcodec.h:2576
int dts_sync_point
Synchronization point for start of timestamp generation.
Definition: avcodec.h:5101
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
Definition: avcodec.h:1423
enum AVPixelFormat sw_pix_fmt
Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.
Definition: avcodec.h:3047
A dummy ID pointing at the start of subtitle codecs.
Definition: avcodec.h:642
void * opaque
Private data of the user, can be used to carry app specific stuff.
Definition: avcodec.h:1560
int thread_type
Which multithreading methods to use.
Definition: avcodec.h:2779
AVSubtitleType
Definition: avcodec.h:3805
int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf)
Finalize list of bitstream filters.
Definition: bsf.c:451
discard nothing
Definition: avcodec.h:788
int64_t rc_max_rate
maximum bitrate
Definition: avcodec.h:2391
attribute_deprecated int pre_me
Definition: avcodec.h:1957
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.
Definition: avcodec.h:1223
uint8_t * subtitle_header
Header containing style information for text subtitles.
Definition: avcodec.h:2985
int keyint_min
minimum GOP size
Definition: avcodec.h:2094