21 #ifndef AVCODEC_AVCODEC_H
22 #define AVCODEC_AVCODEC_H
186 #if LIBAVCODEC_VERSION_MAJOR == 53
206 #if LIBAVCODEC_VERSION_MAJOR == 53
248 #if LIBAVCODEC_VERSION_MAJOR == 53
347 #if LIBAVCODEC_VERSION_MAJOR == 53
392 #if LIBAVCODEC_VERSION_MAJOR > 53
425 #if FF_API_OLD_SAMPLE_FMT
426 #define SampleFormat AVSampleFormat
428 #define SAMPLE_FMT_NONE AV_SAMPLE_FMT_NONE
429 #define SAMPLE_FMT_U8 AV_SAMPLE_FMT_U8
430 #define SAMPLE_FMT_S16 AV_SAMPLE_FMT_S16
431 #define SAMPLE_FMT_S32 AV_SAMPLE_FMT_S32
432 #define SAMPLE_FMT_FLT AV_SAMPLE_FMT_FLT
433 #define SAMPLE_FMT_DBL AV_SAMPLE_FMT_DBL
434 #define SAMPLE_FMT_NB AV_SAMPLE_FMT_NB
437 #if FF_API_OLD_AUDIOCONVERT
441 #define CH_FRONT_LEFT AV_CH_FRONT_LEFT
442 #define CH_FRONT_RIGHT AV_CH_FRONT_RIGHT
443 #define CH_FRONT_CENTER AV_CH_FRONT_CENTER
444 #define CH_LOW_FREQUENCY AV_CH_LOW_FREQUENCY
445 #define CH_BACK_LEFT AV_CH_BACK_LEFT
446 #define CH_BACK_RIGHT AV_CH_BACK_RIGHT
447 #define CH_FRONT_LEFT_OF_CENTER AV_CH_FRONT_LEFT_OF_CENTER
448 #define CH_FRONT_RIGHT_OF_CENTER AV_CH_FRONT_RIGHT_OF_CENTER
449 #define CH_BACK_CENTER AV_CH_BACK_CENTER
450 #define CH_SIDE_LEFT AV_CH_SIDE_LEFT
451 #define CH_SIDE_RIGHT AV_CH_SIDE_RIGHT
452 #define CH_TOP_CENTER AV_CH_TOP_CENTER
453 #define CH_TOP_FRONT_LEFT AV_CH_TOP_FRONT_LEFT
454 #define CH_TOP_FRONT_CENTER AV_CH_TOP_FRONT_CENTER
455 #define CH_TOP_FRONT_RIGHT AV_CH_TOP_FRONT_RIGHT
456 #define CH_TOP_BACK_LEFT AV_CH_TOP_BACK_LEFT
457 #define CH_TOP_BACK_CENTER AV_CH_TOP_BACK_CENTER
458 #define CH_TOP_BACK_RIGHT AV_CH_TOP_BACK_RIGHT
459 #define CH_STEREO_LEFT AV_CH_STEREO_LEFT
460 #define CH_STEREO_RIGHT AV_CH_STEREO_RIGHT
465 #define CH_LAYOUT_NATIVE AV_CH_LAYOUT_NATIVE
468 #define CH_LAYOUT_MONO AV_CH_LAYOUT_MONO
469 #define CH_LAYOUT_STEREO AV_CH_LAYOUT_STEREO
470 #define CH_LAYOUT_2_1 AV_CH_LAYOUT_2_1
471 #define CH_LAYOUT_SURROUND AV_CH_LAYOUT_SURROUND
472 #define CH_LAYOUT_4POINT0 AV_CH_LAYOUT_4POINT0
473 #define CH_LAYOUT_2_2 AV_CH_LAYOUT_2_2
474 #define CH_LAYOUT_QUAD AV_CH_LAYOUT_QUAD
475 #define CH_LAYOUT_5POINT0 AV_CH_LAYOUT_5POINT0
476 #define CH_LAYOUT_5POINT1 AV_CH_LAYOUT_5POINT1
477 #define CH_LAYOUT_5POINT0_BACK AV_CH_LAYOUT_5POINT0_BACK
478 #define CH_LAYOUT_5POINT1_BACK AV_CH_LAYOUT_5POINT1_BACK
479 #define CH_LAYOUT_7POINT0 AV_CH_LAYOUT_7POINT0
480 #define CH_LAYOUT_7POINT1 AV_CH_LAYOUT_7POINT1
481 #define CH_LAYOUT_7POINT1_WIDE AV_CH_LAYOUT_7POINT1_WIDE
482 #define CH_LAYOUT_STEREO_DOWNMIX AV_CH_LAYOUT_STEREO_DOWNMIX
485 #if FF_API_OLD_DECODE_AUDIO
487 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
497 #define FF_INPUT_BUFFER_PADDING_SIZE 8
503 #define FF_MIN_BUFFER_SIZE 16384
586 #if FF_API_FLAC_GLOBAL_OPTS
591 AV_LPC_TYPE_DEFAULT = -1,
592 AV_LPC_TYPE_NONE = 0,
593 AV_LPC_TYPE_FIXED = 1,
594 AV_LPC_TYPE_LEVINSON = 2,
595 AV_LPC_TYPE_CHOLESKY = 3,
620 #define FF_MAX_B_FRAMES 16
627 #define CODEC_FLAG_QSCALE 0x0002
628 #define CODEC_FLAG_4MV 0x0004
629 #define CODEC_FLAG_QPEL 0x0010
630 #define CODEC_FLAG_GMC 0x0020
631 #define CODEC_FLAG_MV0 0x0040
637 #define CODEC_FLAG_INPUT_PRESERVED 0x0100
638 #define CODEC_FLAG_PASS1 0x0200
639 #define CODEC_FLAG_PASS2 0x0400
640 #define CODEC_FLAG_GRAY 0x2000
641 #define CODEC_FLAG_EMU_EDGE 0x4000
642 #define CODEC_FLAG_PSNR 0x8000
643 #define CODEC_FLAG_TRUNCATED 0x00010000
645 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000
646 #define CODEC_FLAG_INTERLACED_DCT 0x00040000
647 #define CODEC_FLAG_LOW_DELAY 0x00080000
648 #define CODEC_FLAG_GLOBAL_HEADER 0x00400000
649 #define CODEC_FLAG_BITEXACT 0x00800000
651 #define CODEC_FLAG_AC_PRED 0x01000000
652 #define CODEC_FLAG_CBP_RD 0x04000000
653 #define CODEC_FLAG_QP_RD 0x08000000
654 #define CODEC_FLAG_LOOP_FILTER 0x00000800
655 #define CODEC_FLAG_INTERLACED_ME 0x20000000
656 #define CODEC_FLAG_CLOSED_GOP 0x80000000
657 #define CODEC_FLAG2_FAST 0x00000001
658 #define CODEC_FLAG2_STRICT_GOP 0x00000002
659 #define CODEC_FLAG2_NO_OUTPUT 0x00000004
660 #define CODEC_FLAG2_LOCAL_HEADER 0x00000008
661 #define CODEC_FLAG2_SKIP_RD 0x00004000
662 #define CODEC_FLAG2_CHUNKS 0x00008000
668 #if FF_API_MPEGVIDEO_GLOBAL_OPTS
669 #define CODEC_FLAG_OBMC 0x00000001
670 #define CODEC_FLAG_H263P_AIV 0x00000008
671 #define CODEC_FLAG_PART 0x0080
672 #define CODEC_FLAG_ALT_SCAN 0x00100000
673 #define CODEC_FLAG_H263P_UMV 0x02000000
674 #define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000
675 #define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000
676 #define CODEC_FLAG2_INTRA_VLC 0x00000800
677 #define CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000
678 #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000
680 #if FF_API_MJPEG_GLOBAL_OPTS
681 #define CODEC_FLAG_EXTERN_HUFF 0x1000
683 #if FF_API_X264_GLOBAL_OPTS
684 #define CODEC_FLAG2_BPYRAMID 0x00000010
685 #define CODEC_FLAG2_WPRED 0x00000020
686 #define CODEC_FLAG2_MIXED_REFS 0x00000040
687 #define CODEC_FLAG2_8X8DCT 0x00000080
688 #define CODEC_FLAG2_FASTPSKIP 0x00000100
689 #define CODEC_FLAG2_AUD 0x00000200
690 #define CODEC_FLAG2_BRDO 0x00000400
691 #define CODEC_FLAG2_MBTREE 0x00040000
692 #define CODEC_FLAG2_PSY 0x00080000
693 #define CODEC_FLAG2_SSIM 0x00100000
694 #define CODEC_FLAG2_INTRA_REFRESH 0x00200000
696 #if FF_API_SNOW_GLOBAL_OPTS
697 #define CODEC_FLAG2_MEMC_ONLY 0x00001000
699 #if FF_API_LAME_GLOBAL_OPTS
700 #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000
713 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001
719 #define CODEC_CAP_DR1 0x0002
720 #if FF_API_PARSE_FRAME
722 #define CODEC_CAP_PARSE_ONLY 0x0004
724 #define CODEC_CAP_TRUNCATED 0x0008
726 #define CODEC_CAP_HWACCEL 0x0010
750 #define CODEC_CAP_DELAY 0x0020
755 #define CODEC_CAP_SMALL_LAST_FRAME 0x0040
759 #define CODEC_CAP_HWACCEL_VDPAU 0x0080
771 #define CODEC_CAP_SUBFRAMES 0x0100
776 #define CODEC_CAP_EXPERIMENTAL 0x0200
780 #define CODEC_CAP_CHANNEL_CONF 0x0400
784 #define CODEC_CAP_NEG_LINESIZES 0x0800
788 #define CODEC_CAP_FRAME_THREADS 0x1000
792 #define CODEC_CAP_SLICE_THREADS 0x2000
796 #define CODEC_CAP_PARAM_CHANGE 0x4000
800 #define CODEC_CAP_AUTO_THREADS 0x8000
804 #define CODEC_CAP_VARIABLE_FRAME_SIZE 0x10000
807 #define MB_TYPE_INTRA4x4 0x0001
808 #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific
809 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME H.264-specific
810 #define MB_TYPE_16x16 0x0008
811 #define MB_TYPE_16x8 0x0010
812 #define MB_TYPE_8x16 0x0020
813 #define MB_TYPE_8x8 0x0040
814 #define MB_TYPE_INTERLACED 0x0080
815 #define MB_TYPE_DIRECT2 0x0100 //FIXME
816 #define MB_TYPE_ACPRED 0x0200
817 #define MB_TYPE_GMC 0x0400
818 #define MB_TYPE_SKIP 0x0800
819 #define MB_TYPE_P0L0 0x1000
820 #define MB_TYPE_P1L0 0x2000
821 #define MB_TYPE_P0L1 0x4000
822 #define MB_TYPE_P1L1 0x8000
823 #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
824 #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
825 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
826 #define MB_TYPE_QUANT 0x00010000
827 #define MB_TYPE_CBP 0x00020000
859 #define FF_QSCALE_TYPE_MPEG1 0
860 #define FF_QSCALE_TYPE_MPEG2 1
861 #define FF_QSCALE_TYPE_H264 2
862 #define FF_QSCALE_TYPE_VP56 3
864 #define FF_BUFFER_TYPE_INTERNAL 1
865 #define FF_BUFFER_TYPE_USER 2
866 #define FF_BUFFER_TYPE_SHARED 4
867 #define FF_BUFFER_TYPE_COPY 8
869 #if FF_API_OLD_FF_PICT_TYPES
871 #define FF_I_TYPE AV_PICTURE_TYPE_I
872 #define FF_P_TYPE AV_PICTURE_TYPE_P
873 #define FF_B_TYPE AV_PICTURE_TYPE_B
874 #define FF_S_TYPE AV_PICTURE_TYPE_S
875 #define FF_SI_TYPE AV_PICTURE_TYPE_SI
876 #define FF_SP_TYPE AV_PICTURE_TYPE_SP
877 #define FF_BI_TYPE AV_PICTURE_TYPE_BI
880 #define FF_BUFFER_HINTS_VALID 0x01 // Buffer hints value is meaningful (if 0 ignore).
881 #define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer.
882 #define FF_BUFFER_HINTS_PRESERVE 0x04 // User must not alter buffer content.
883 #define FF_BUFFER_HINTS_REUSABLE 0x08 // Codec will reuse the buffer (update).
954 #define AV_PKT_FLAG_KEY 0x0001
955 #define AV_PKT_FLAG_CORRUPT 0x0002
986 #if FF_API_DATA_POINTERS
987 #define AV_NUM_DATA_POINTERS 4
989 #define AV_NUM_DATA_POINTERS 8
1059 #if FF_API_AVFRAME_AGE
1410 #define FF_ASPECT_EXTENDED 15
1453 int y,
int type,
int height);
1525 #define FF_RC_STRATEGY_XVID 1
1598 #define FF_BUG_AUTODETECT 1
1599 #define FF_BUG_OLD_MSMPEG4 2
1600 #define FF_BUG_XVID_ILACE 4
1601 #define FF_BUG_UMP4 8
1602 #define FF_BUG_NO_PADDING 16
1603 #define FF_BUG_AMV 32
1604 #define FF_BUG_AC_VLC 0
1605 #define FF_BUG_QPEL_CHROMA 64
1606 #define FF_BUG_STD_QPEL 128
1607 #define FF_BUG_QPEL_CHROMA2 256
1608 #define FF_BUG_DIRECT_BLOCKSIZE 512
1609 #define FF_BUG_EDGE 1024
1610 #define FF_BUG_HPEL_CHROMA 2048
1611 #define FF_BUG_DC_CLIP 4096
1612 #define FF_BUG_MS 8192
1613 #define FF_BUG_TRUNCATED 16384
1643 #define FF_COMPLIANCE_VERY_STRICT 2
1644 #define FF_COMPLIANCE_STRICT 1
1645 #define FF_COMPLIANCE_NORMAL 0
1646 #define FF_COMPLIANCE_UNOFFICIAL -1
1647 #define FF_COMPLIANCE_EXPERIMENTAL -2
1664 #define FF_ER_CAREFUL 1
1665 #define FF_ER_COMPLIANT 2
1666 #define FF_ER_AGGRESSIVE 3
1667 #define FF_ER_VERY_AGGRESSIVE 4
1668 #define FF_ER_EXPLODE 5
1753 #if FF_API_PARSE_FRAME
1862 #define FF_DCT_AUTO 0
1863 #define FF_DCT_FASTINT 1
1864 #define FF_DCT_INT 2
1865 #define FF_DCT_MMX 3
1866 #define FF_DCT_MLIB 4
1867 #define FF_DCT_ALTIVEC 5
1868 #define FF_DCT_FAAN 6
1911 #define FF_IDCT_AUTO 0
1912 #define FF_IDCT_INT 1
1913 #define FF_IDCT_SIMPLE 2
1914 #define FF_IDCT_SIMPLEMMX 3
1915 #define FF_IDCT_LIBMPEG2MMX 4
1916 #define FF_IDCT_PS2 5
1917 #define FF_IDCT_MLIB 6
1918 #define FF_IDCT_ARM 7
1919 #define FF_IDCT_ALTIVEC 8
1920 #define FF_IDCT_SH4 9
1921 #define FF_IDCT_SIMPLEARM 10
1922 #define FF_IDCT_H264 11
1923 #define FF_IDCT_VP3 12
1924 #define FF_IDCT_IPP 13
1925 #define FF_IDCT_XVIDMMX 14
1926 #define FF_IDCT_CAVS 15
1927 #define FF_IDCT_SIMPLEARMV5TE 16
1928 #define FF_IDCT_SIMPLEARMV6 17
1929 #define FF_IDCT_SIMPLEVIS 18
1930 #define FF_IDCT_WMV2 19
1931 #define FF_IDCT_FAAN 20
1932 #define FF_IDCT_EA 21
1933 #define FF_IDCT_SIMPLENEON 22
1934 #define FF_IDCT_SIMPLEALPHA 23
1935 #define FF_IDCT_BINK 24
1956 #define FF_EC_GUESS_MVS 1
1957 #define FF_EC_DEBLOCK 2
1982 #define FF_PRED_LEFT 0
1983 #define FF_PRED_PLANE 1
1984 #define FF_PRED_MEDIAN 2
2008 #define FF_DEBUG_PICT_INFO 1
2009 #define FF_DEBUG_RC 2
2010 #define FF_DEBUG_BITSTREAM 4
2011 #define FF_DEBUG_MB_TYPE 8
2012 #define FF_DEBUG_QP 16
2013 #define FF_DEBUG_MV 32
2014 #define FF_DEBUG_DCT_COEFF 0x00000040
2015 #define FF_DEBUG_SKIP 0x00000080
2016 #define FF_DEBUG_STARTCODE 0x00000100
2017 #define FF_DEBUG_PTS 0x00000200
2018 #define FF_DEBUG_ER 0x00000400
2019 #define FF_DEBUG_MMCO 0x00000800
2020 #define FF_DEBUG_BUGS 0x00001000
2021 #define FF_DEBUG_VIS_QP 0x00002000
2022 #define FF_DEBUG_VIS_MB_TYPE 0x00004000
2023 #define FF_DEBUG_BUFFERS 0x00008000
2024 #define FF_DEBUG_THREADS 0x00010000
2032 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
2033 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
2034 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
2067 #define FF_CMP_SAD 0
2068 #define FF_CMP_SSE 1
2069 #define FF_CMP_SATD 2
2070 #define FF_CMP_DCT 3
2071 #define FF_CMP_PSNR 4
2072 #define FF_CMP_BIT 5
2074 #define FF_CMP_ZERO 7
2075 #define FF_CMP_VSAD 8
2076 #define FF_CMP_VSSE 9
2077 #define FF_CMP_NSSE 10
2078 #define FF_CMP_W53 11
2079 #define FF_CMP_W97 12
2080 #define FF_CMP_DCTMAX 13
2081 #define FF_CMP_DCT264 14
2082 #define FF_CMP_CHROMA 256
2146 #define FF_DTG_AFD_SAME 8
2147 #define FF_DTG_AFD_4_3 9
2148 #define FF_DTG_AFD_16_9 10
2149 #define FF_DTG_AFD_14_9 11
2150 #define FF_DTG_AFD_4_3_SP_14_9 13
2151 #define FF_DTG_AFD_16_9_SP_14_9 14
2152 #define FF_DTG_AFD_SP_4_3 15
2169 #define FF_DEFAULT_QUANT_BIAS 999999
2186 #if FF_API_INTERNAL_CONTEXT
2210 #define FF_CODER_TYPE_VLC 0
2211 #define FF_CODER_TYPE_AC 1
2212 #define FF_CODER_TYPE_RAW 2
2213 #define FF_CODER_TYPE_RLE 3
2214 #define FF_CODER_TYPE_DEFLATE 4
2234 uint8_t * (*realloc)(
struct AVCodecContext *s, uint8_t *buf,
int buf_size);
2243 #define SLICE_FLAG_CODED_ORDER 0x0001
2244 #define SLICE_FLAG_ALLOW_FIELD 0x0002
2245 #define SLICE_FLAG_ALLOW_PLANE 0x0004
2260 #define FF_MB_DECISION_SIMPLE 0
2261 #define FF_MB_DECISION_BITS 1
2262 #define FF_MB_DECISION_RD 2
2308 #if FF_API_PALETTE_CONTROL
2314 struct AVPaletteControl *palctrl;
2366 #if FF_API_ANTIALIAS_ALGO
2373 #define FF_AA_AUTO 0
2374 #define FF_AA_FASTINT 1 //not implemented yet
2376 #define FF_AA_FLOAT 3
2463 #define FF_PROFILE_UNKNOWN -99
2464 #define FF_PROFILE_RESERVED -100
2466 #define FF_PROFILE_AAC_MAIN 0
2467 #define FF_PROFILE_AAC_LOW 1
2468 #define FF_PROFILE_AAC_SSR 2
2469 #define FF_PROFILE_AAC_LTP 3
2471 #define FF_PROFILE_DTS 20
2472 #define FF_PROFILE_DTS_ES 30
2473 #define FF_PROFILE_DTS_96_24 40
2474 #define FF_PROFILE_DTS_HD_HRA 50
2475 #define FF_PROFILE_DTS_HD_MA 60
2477 #define FF_PROFILE_MPEG2_422 0
2478 #define FF_PROFILE_MPEG2_HIGH 1
2479 #define FF_PROFILE_MPEG2_SS 2
2480 #define FF_PROFILE_MPEG2_SNR_SCALABLE 3
2481 #define FF_PROFILE_MPEG2_MAIN 4
2482 #define FF_PROFILE_MPEG2_SIMPLE 5
2484 #define FF_PROFILE_H264_CONSTRAINED (1<<9) // 8+1; constraint_set1_flag
2485 #define FF_PROFILE_H264_INTRA (1<<11) // 8+3; constraint_set3_flag
2487 #define FF_PROFILE_H264_BASELINE 66
2488 #define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
2489 #define FF_PROFILE_H264_MAIN 77
2490 #define FF_PROFILE_H264_EXTENDED 88
2491 #define FF_PROFILE_H264_HIGH 100
2492 #define FF_PROFILE_H264_HIGH_10 110
2493 #define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
2494 #define FF_PROFILE_H264_HIGH_422 122
2495 #define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
2496 #define FF_PROFILE_H264_HIGH_444 144
2497 #define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
2498 #define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
2499 #define FF_PROFILE_H264_CAVLC_444 44
2501 #define FF_PROFILE_VC1_SIMPLE 0
2502 #define FF_PROFILE_VC1_MAIN 1
2503 #define FF_PROFILE_VC1_COMPLEX 2
2504 #define FF_PROFILE_VC1_ADVANCED 3
2506 #define FF_PROFILE_MPEG4_SIMPLE 0
2507 #define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
2508 #define FF_PROFILE_MPEG4_CORE 2
2509 #define FF_PROFILE_MPEG4_MAIN 3
2510 #define FF_PROFILE_MPEG4_N_BIT 4
2511 #define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
2512 #define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
2513 #define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
2514 #define FF_PROFILE_MPEG4_HYBRID 8
2515 #define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
2516 #define FF_PROFILE_MPEG4_CORE_SCALABLE 10
2517 #define FF_PROFILE_MPEG4_ADVANCED_CODING 11
2518 #define FF_PROFILE_MPEG4_ADVANCED_CORE 12
2519 #define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
2520 #define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
2521 #define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
2529 #define FF_LEVEL_UNKNOWN -99
2637 #if FF_API_X264_GLOBAL_OPTS
2676 #if FF_API_X264_GLOBAL_OPTS
2692 #if FF_API_X264_GLOBAL_OPTS
2722 #define X264_PART_I4X4 0x001
2723 #define X264_PART_I8X8 0x002
2724 #define X264_PART_P8X8 0x010
2725 #define X264_PART_P4X4 0x020
2726 #define X264_PART_B8X8 0x100
2770 #define FF_COMPRESSION_DEFAULT -1
2784 #if FF_API_FLAC_GLOBAL_OPTS
2828 #if FF_API_REQUEST_CHANNELS
2835 int request_channels;
2838 #if FF_API_DRC_SCALE
2976 #if FF_API_X264_GLOBAL_OPTS
3041 #if FF_API_FLAC_GLOBAL_OPTS
3086 #if FF_API_INTERNAL_CONTEXT
3108 #define FF_THREAD_FRAME 1
3109 #define FF_THREAD_SLICE 2
3156 #define AV_EF_CRCCHECK (1<<0)
3157 #define AV_EF_BITSTREAM (1<<1)
3158 #define AV_EF_BUFFER (1<<2)
3159 #define AV_EF_EXPLODE (1<<3)
3270 int *got_packet_ptr);
3372 #define AVPALETTE_SIZE 1024
3373 #define AVPALETTE_COUNT 256
3374 #if FF_API_PALETTE_CONTROL
3383 typedef struct AVPaletteControl {
3387 int palette_changed;
3553 int output_rate,
int input_rate,
3556 int filter_length,
int log2_phase_count,
3557 int linear,
double cutoff);
3669 unsigned char *dest,
int dest_size);
3686 #if FF_API_GET_PIX_FMT_NAME
3690 attribute_deprecated
3712 #define FF_LOSS_RESOLUTION 0x0001
3713 #define FF_LOSS_DEPTH 0x0002
3714 #define FF_LOSS_COLORSPACE 0x0004
3715 #define FF_LOSS_ALPHA 0x0008
3716 #define FF_LOSS_COLORQUANT 0x0010
3717 #define FF_LOSS_CHROMA 0x0020
3736 int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_pix_fmt,
3762 int has_alpha,
int *loss_ptr);
3764 #if FF_API_GET_ALPHA_INFO
3765 #define FF_ALPHA_TRANSP 0x0001
3766 #define FF_ALPHA_SEMI_TRANSP 0x0002
3772 attribute_deprecated
3773 int img_get_alpha_info(
const AVPicture *src,
3806 #if FF_API_AVCODEC_INIT
3811 attribute_deprecated
3867 #if FF_API_ALLOC_CONTEXT
3874 attribute_deprecated
3879 attribute_deprecated
3894 #if FF_API_ALLOC_CONTEXT
3904 attribute_deprecated
3909 attribute_deprecated
3992 #if FF_API_THREAD_INIT
3996 attribute_deprecated
4004 #if FF_API_AVCODEC_OPEN
4034 attribute_deprecated
4076 #if FF_API_OLD_DECODE_AUDIO
4132 int *frame_size_ptr,
4170 int *got_frame_ptr,
AVPacket *avpkt);
4214 int *got_picture_ptr,
4244 #if FF_API_OLD_ENCODE_AUDIO
4269 int attribute_deprecated avcodec_encode_audio(
AVCodecContext *avctx,
4270 uint8_t *buf,
int buf_size,
4313 const AVFrame *frame,
int *got_packet_ptr);
4333 int buf_size,
int align);
4384 #if FF_API_OLD_FF_PICT_TYPES
4392 attribute_deprecated
4393 char av_get_pict_type_char(
int pict_type);
4404 #if FF_API_OLD_SAMPLE_FMT
4408 attribute_deprecated
4409 int av_get_bits_per_sample_format(
enum AVSampleFormat sample_fmt);
4440 #define AV_PARSER_PTS_NB 4
4447 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001
4448 #define PARSER_FLAG_ONCE 0x0002
4449 #define PARSER_FLAG_FETCHED_OFFSET 0x0004
4547 const uint8_t **poutbuf,
int *poutbuf_size,
4548 const uint8_t *buf,
int buf_size);
4589 uint8_t **poutbuf,
int *poutbuf_size,
4590 const uint8_t *buf,
int buf_size,
4591 int64_t pts, int64_t dts,
4596 uint8_t **poutbuf,
int *poutbuf_size,
4597 const uint8_t *buf,
int buf_size,
int keyframe);
4614 uint8_t **poutbuf,
int *poutbuf_size,
4615 const uint8_t *buf,
int buf_size,
int keyframe);
4624 uint8_t **poutbuf,
int *poutbuf_size,
4625 const uint8_t *buf,
int buf_size,
int keyframe);
4669 int padtop,
int padbottom,
int padleft,
int padright,
int *
color);
void avsubtitle_free(AVSubtitle *sub)
Free all allocated data in the given subtitle struct.
int(* parser_init)(AVCodecParserContext *s)
int(* get_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of each frame to get a buffer for it.
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 ...
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
unsigned int stream_codec_tag
fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A')...
int(* start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
Called at the beginning of each frame or field picture.
int linesize[AV_NUM_DATA_POINTERS]
number of bytes per line
enum PixelFormat pix_fmt
Supported pixel format.
int qstride
QP store stride.
AVPanScan * pan_scan
Pan scan.
int x
top left corner of pict, undefined when pict is not set
int mpeg_quant
0-> h263 quant 1-> mpeg quant
int dct_algo
DCT algorithm, see FF_DCT_* below.
Plain text, the text field must be set by the decoder and is authoritative.
Motion_Est_ID
motion estimation type.
uint64_t error[AV_NUM_DATA_POINTERS]
error
AVCodec * avcodec_find_encoder(enum CodecID id)
Find a registered encoder with a matching codec ID.
int coded_width
Bitstream width / height, may be different from width/height if lowres enabled.
int buffer_hints
codec suggestion on buffer type if != 0
int capabilities
Hardware accelerated codec capabilities.
void(* flush)(AVCodecContext *)
Flush buffers.
struct AVCodecParser AVCodecParser
attribute_deprecated void av_destruct_packet_nofree(AVPacket *pkt)
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
float qblur
amount of qscale smoothing over time (0.0-1.0)
float border_masking
Border processing masking, raises the quantizer for mbs on the borders of the picture.
int64_t pos
byte position in stream, -1 if unknown
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt)
Decode the video frame of size avpkt->size from avpkt->data into picture.
int64_t next_frame_offset
AVFrame * coded_frame
the picture in the bitstream
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Decode the audio frame of size avpkt->size from avpkt->data into frame.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
int chroma_elim_threshold
chroma single coeff elimination threshold
enum PixelFormat(* get_format)(struct AVCodecContext *s, const enum PixelFormat *fmt)
callback to negotiate the pixelFormat
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...
int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height)
int rc_initial_buffer_occupancy
Number of bits which should be loaded into the rc buffer before decoding starts.
AVCodecParserContext * av_parser_init(int codec_id)
void avcodec_register(AVCodec *codec)
Register the codec codec and initialize libavcodec.
void * hwaccel_picture_private
hardware accelerator private data (Libav-allocated)
void * opaque
for some private data of the user
enum AVColorRange color_range
MPEG vs JPEG YUV range.
struct AVBitStreamFilter * next
int repeat_pict
When decoding, this signals how much the picture must be delayed.
struct AVCodecContext * owner
the AVCodecContext which ff_thread_get_buffer() was last called on
void(* rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
int nb_colors
number of colors in pict, undefined when pict is not set
int mb_lmin
minimum MB lagrange multipler
the normal 2^n-1 "JPEG" YUV ranges
void * thread_opaque
used by multithreading to store frame-specific info
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
AVCodec * avcodec_find_decoder(enum CodecID id)
Find a registered decoder with a matching codec ID.
enum PixelFormat avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
Find the best pixel format to convert to given a certain source pixel format.
struct AVResampleContext * av_resample_init(int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff)
Initialize an audio resampler.
discard all bidirectional frames
AVChromaLocation
X X 3 4 X X are luma samples, 1 2 1-6 are possible chroma positions X X 5 6 X 0 is undefined/unknown ...
enum AVMediaType type
Type of codec implemented by the hardware accelerator.
enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat *fmt)
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
char * stats_in
pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed he...
int ildct_cmp
interlaced DCT comparison function
AVHWAccel * av_hwaccel_next(AVHWAccel *hwaccel)
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL...
int(* decode)(AVCodecContext *, void *outdata, int *outdata_size, AVPacket *avpkt)
int intra_quant_bias
intra quantizer bias
int64_t cur_frame_pos[AV_PARSER_PTS_NB]
Position of the packet in file.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
int avcodec_is_open(AVCodecContext *s)
int dts_ref_dts_delta
Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.
four components are given, that's all.
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
int lmax
maximum Lagrange multipler
int frame_skip_cmp
frame skip comparison function
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size)
Allocate a buffer, reusing the given one if large enough.
float i_quant_offset
qscale offset between P and I-frames
struct AVSubtitle AVSubtitle
A dummy ID pointing at the start of various fake codecs.
uint64_t vbv_delay
VBV delay coded in the last frame (in periods of a 27 MHz clock).
void avcodec_flush_buffers(AVCodecContext *avctx)
Flush buffers, should be called when seeking or when switching to a different stream.
char * text
0 terminated plain UTF-8 text
int scenechange_threshold
scene change detection threshold 0 is default, larger means fewer detected scene changes.
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples)
struct AVBitStreamFilter AVBitStreamFilter
int(* reget_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of a frame to get cr buffer for it.
void av_resample_close(struct AVResampleContext *c)
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
enum AVAudioServiceType audio_service_type
Type of service that the audio stream conveys.
unsigned dsp_mask
dsp_mask could be add used to disable unwanted CPU features CPU features (i.e.
enum AVDiscard skip_frame
also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
void av_picture_copy(AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height)
Copy image src to dst.
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)
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
int w
width of pict, undefined when pict is not set
struct AVHWAccel * hwaccel
Hardware accelerator in use.
void audio_resample_close(ReSampleContext *s)
Free resample context.
float p_masking
p block masking (0-> disabled)
int context_model
context model
AVCodecParserContext * parser
int(* init_thread_copy)(AVCodecContext *)
If defined, called on thread contexts when they are created.
int bit_rate_tolerance
number of bits the bitstream is allowed to diverge from the reference.
int mb_lmax
maximum MB lagrange multipler
void av_parser_close(AVCodecParserContext *s)
enum AVSampleFormat sample_fmt
audio sample format
AVBitStreamFilter * av_bitstream_filter_next(AVBitStreamFilter *f)
void * hwaccel_context
Hardware accelerator context.
int me_range
maximum motion estimation search range in subpel units If 0 then no limit.
uint8_t * data[AV_NUM_DATA_POINTERS]
int avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVDictionary **options)
Initialize the AVCodecContext to use the given AVCodec.
int av_lockmgr_register(int(*cb)(void **mutex, enum AVLockOp op))
Register a user provided lock manager supporting the operations specified by AVLockOp.
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...
int pre_dia_size
ME prepass diamond size & shape.
int64_t pts
presentation timestamp in time_base units (time when frame should be shown to user) If AV_NOPTS_VALUE...
uint8_t motion_subsample_log2
log2 of the size of the block which a single vector in motion_val represents: (4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
const AVClass * av_class
information on struct for av_log
void av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance)
Compensate samplerate/timestamp drift.
int scenechange_factor
Multiplied by qscale for each frame and added to scene_change_score.
int me_cmp
motion estimation comparison function
int av_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx)
Resample an array of samples using a previously configured context.
struct AVCodecParser * next
int rc_strategy
obsolete FIXME remove
enhanced predictive zonal search
int mb_threshold
Macroblock threshold below which the user specified macroblock types will be used.
void av_free_packet(AVPacket *pkt)
Free a packet.
AVCodecContext * avcodec_alloc_context3(AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
int interlaced_frame
The content of the picture is interlaced.
int(* parser_parse)(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
void av_destruct_packet(AVPacket *pkt)
Default packet destructor.
int lowres
low resolution decoding, 1-> 1/2 size, 2->1/4 size
int h
height of pict, undefined when pict is not set
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
float lumi_masking
luminance masking (0-> disabled)
char * stats_out
pass1 encoding statistics output buffer
int av_get_bits_per_sample(enum CodecID codec_id)
Return codec bits per sample.
int avpicture_get_size(enum PixelFormat pix_fmt, int width, int height)
Calculate the size in bytes that a picture of the given width and height would occupy if stored in th...
the normal 219*2^(n-8) "MPEG" YUV ranges
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
struct AVBitStreamFilterContext * next
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
void av_register_codec_parser(AVCodecParser *parser)
struct AVBitStreamFilterContext AVBitStreamFilterContext
int chromaoffset
chroma qp offset from luma
preferred ID for MPEG-1/2 video decoding
audio conversion routines
void(* destruct)(struct AVPacket *)
AVSideDataParamChangeFlags
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows: u32le param_flags if (param_flag...
int slice_count
slice count
A dummy ID pointing at the start of subtitle codecs.
int(* close)(AVCodecContext *)
Dummy codec for streams containing only metadata information.
const uint64_t * channel_layouts
array of support channel layouts, or NULL if unknown. array is terminated by 0
const AVCodecDefault * defaults
Private codec-specific defaults.
int width
width and height of the video frame
int has_b_frames
Size of the frame reordering buffer in the decoder.
int64_t pos
Byte position of currently parsed frame in stream.
int sub_id
Some codecs need additional format info.
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
struct AVCodecParser * parser
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
int y
top left corner of pict, undefined when pict is not set
void void av_register_hwaccel(AVHWAccel *hwaccel)
Register the hardware accelerator hwaccel.
short * dct_coeff
DCT coefficients.
int color_table_id
color table ID
int frame_skip_threshold
frame skip threshold
int me_sub_cmp
subpixel motion estimation comparison function
int qmax
maximum quantizer
enum AVSampleFormat request_sample_fmt
Used to request a sample format from the decoder.
int active_thread_type
Which multithreading methods are in use by the codec.
int error_concealment
error concealment flags
int64_t convergence_duration
Time difference in AVStream->time_base units from the pts of this packet to the point at which the ou...
int capabilities
Codec capabilities.
uint8_t * base[AV_NUM_DATA_POINTERS]
pointer to the first allocated byte of the picture.
int rc_max_rate
maximum bitrate
const char * name
Name of the codec implementation.
int64_t cur_frame_dts[AV_PARSER_PTS_NB]
float i_quant_factor
qscale factor between P and I-frames If > 0 then the last p frame quantizer will be used (q= lastp_q*...
int(* encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data)
const char * rc_eq
rate control equation
int width
width and height in 1/16 pel
void avcodec_register_all(void)
Register all the codecs, parsers and bitstream filters which were enabled at configuration time...
also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
void * thread_opaque
thread opaque Can be used by execute() to store some per AVCodecContext stuff.
#define AV_NUM_DATA_POINTERS
int compensation_distance
#define av_printf_format(fmtpos, attrpos)
int priv_data_size
Size of HW accelerator private data.
int flags
A combination of AV_PKT_FLAG values.
uint64_t channel_layout
Audio channel layout.
uint32_t end_display_time
int64_t pts
Same as packet pts, in AV_TIME_BASE.
int rc_buffer_size
decoder bitstream buffer size
functionally identical to above
const char * av_get_profile_name(const AVCodec *codec, int profile)
Return a name for the specified profile, if available.
int intra_dc_precision
precision of the intra DC coefficient - 8
int me_penalty_compensation
void avcodec_default_free_buffers(AVCodecContext *s)
int dtg_active_format
DTG active format information (additional aspect ratio information only used in DVB MPEG-2 transport ...
AVFrame * avcodec_alloc_frame(void)
Allocate an AVFrame and set its fields to default values.
int refs
number of reference frames
struct AVCodecContext AVCodecContext
main external API structure.
const char * avcodec_license(void)
Return the libavcodec license.
void(* draw_horiz_band)(struct AVCodecContext *s, const AVFrame *src, int offset[AV_NUM_DATA_POINTERS], int y, int type, int height)
If non NULL, 'draw_horiz_band' is called by the libavcodec decoder to draw a horizontal band...
int bit_rate
the average bitrate
int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align)
Fill audio frame data and linesize.
int64_t timecode_frame_start
GOP timecode frame start number, in non drop frame format.
enum AVPictureType pict_type
Picture type of the frame, see ?_TYPE below.
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
AVPicture pict
data+linesize for the bitmap of this subtitle.
const char * name
Name of the hardware accelerated codec.
struct AVCodec AVCodec
AVCodec.
int display_picture_number
picture number in display order
AVLockOp
Lock operation used by lockmgr.
int width
picture width / height.
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Allocate new information of a packet.
void(* parser_close)(AVCodecParserContext *s)
struct AVFrame AVFrame
Audio Video Frame.
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
int type
type of the buffer (to keep track of who has to deallocate data[*])
int64_t offset
byte offset from starting packet start
struct AVHWAccel AVHWAccel
AVHWAccel.
float rc_max_available_vbv_use
Ratecontrol attempt to use, at maximum, of what can be used without an underflow. ...
float rc_min_vbv_overflow_use
Ratecontrol attempt to use, at least, times the amount needed to prevent a vbv overflow.
unsigned avcodec_version(void)
Return the LIBAVCODEC_VERSION_INT constant.
int64_t convergence_duration
Time difference in stream time base units from the pts of this packet to the point at which the outpu...
void avpicture_free(AVPicture *picture)
Free a picture previously allocated by avpicture_alloc().
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
float rc_qsquish
ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continous function to limit qscale...
int quality
quality (between 1 (good) and FF_LAMBDA_MAX (bad))
const AVProfile * profiles
array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN} ...
int64_t reordered_opaque
opaque 64bit number (generally a PTS) that will be reordered and output in AVFrame.reordered_opaque
int ticks_per_frame
For some codecs, the time base is closer to the field rate than the frame rate.
int skip_top
Number of macroblock rows at the top which are skipped.
int mb_decision
macroblock decision mode
AVCodec * avcodec_find_encoder_by_name(const char *name)
Find a registered encoder with the specified name.
int last_predictor_count
amount of previous MV predictors (2a+1 x 2a+1 square)
int max_qdiff
maximum quantizer difference between frames
as in Berlin toast format
int64_t cur_frame_end[AV_PARSER_PTS_NB]
static pthread_mutex_t * mutex
int lmin
minimum Lagrange multipler
int64_t cur_frame_pts[AV_PARSER_PTS_NB]
int avcodec_default_execute2(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count)
RcOverride * rc_override
ratecontrol override, see RcOverride
FAKE codec to indicate a MPEG-4 Systems stream (only used by libavformat)
int64_t last_pos
Previous frame byte position.
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
int xvmc_acceleration
XVideo Motion Acceleration.
int inter_quant_bias
inter quantizer bias
uint8_t * av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
codec_id is not known (like CODEC_ID_NONE) but lavf should attempt to identify it ...
int format
format of the frame, -1 if unknown or unset Values correspond to enum PixelFormat for video frames...
uint32_t * mb_type
macroblock type table mb_type_base + mb_width + 2
AVCodec * avcodec_find_decoder_by_name(const char *name)
Find a registered decoder with the specified name.
int frame_skip_factor
frame skip factor
int frame_size
Samples per packet, initialized when calling 'init'.
int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of audio.
int pts_dts_delta
Presentation delay of current frame in units of AVCodecContext.time_base.
const char * long_name
Descriptive name for the codec, meant to be more human readable than name.
enum CodecID id
Codec implemented by the hardware accelerator.
float rc_initial_cplx
initial complexity for pass1 ratecontrol
void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
int coded_picture_number
picture number in bitstream order
uint64_t error[AV_NUM_DATA_POINTERS]
error
enum AVMediaType codec_type
void(* init_static_data)(struct AVCodec *codec)
Initialize codec static data, called from avcodec_register().
int me_threshold
Motion estimation threshold below which no motion estimation is performed, but instead the user speci...
const AVRational * supported_framerates
array of supported framerates, or NULL if any, array is terminated by {0,0}
Formatted text, the ass field must be set by the decoder and is authoritative.
int av_dup_packet(AVPacket *pkt)
int sample_rate
samples per second
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
int frame_bits
number of bits used for the previously encoded frame
discard all non reference
AVCodecParser * av_parser_next(AVCodecParser *c)
static const OptionDef options[]
void av_log_ask_for_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message asking for a sample.
unsigned avcodec_get_edge_width(void)
Return the amount of padding in pixels which the get_buffer callback must provide around the edge of ...
main external API structure.
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic)
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic)
int pre_me
prepass for motion estimation
int qmin
minimum quantizer
int cur_frame_start_index
AVRational sample_aspect_ratio
sample aspect ratio for the video frame, 0/1 if unknown
int avcodec_default_execute(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
struct AVPicture AVPicture
four components are given, that's all.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int16_t(*[2] motion_val)[2]
motion vector table
A bitmap, pict will be set.
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
float spatial_cplx_masking
spatial complexity masking (0-> disabled)
static int error_recognition
struct AVBitStreamFilter * filter
uint16_t * intra_matrix
custom intra quantization matrix
int slice_flags
slice flags
int64_t reordered_opaque
reordered opaque 64bit (generally an integer or a double precision float PTS but can be anything)...
Describe the class of an AVClass context structure.
struct AVCodecParserContext AVCodecParserContext
ReSampleContext * av_audio_resample_init(int output_channels, int input_channels, int output_rate, int input_rate, enum AVSampleFormat sample_fmt_out, enum AVSampleFormat sample_fmt_in, int filter_length, int log2_phase_count, int linear, double cutoff)
Initialize audio resampling context.
int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec)
Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaul...
float rc_buffer_aggressivity
enum AVColorSpace colorspace
YUV colorspace type.
rational number numerator/denominator
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
int avpicture_fill(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int width, int height)
Fill in the AVPicture fields.
const char * name
short name for the profile
struct AVPanScan AVPanScan
Pan Scan area.
FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
int palette_has_changed
Tell user application that palette has changed from previous frame.
transformed exhaustive search algorithm
struct AVSubtitleRect AVSubtitleRect
int8_t * ref_index[2]
motion reference frame index the order in which these are stored can depend on the codec...
unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
Encode extradata length to a buffer.
float b_quant_offset
qscale offset between IP and B-frames
int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict)
Encode a video frame from pict into buf.
int frame_skip_exp
frame skip exponent
float qcompress
amount of qscale change between easy & hard scenes (0.0-1.0)
uint16_t * inter_matrix
custom inter quantization matrix
void(* close)(AVBitStreamFilterContext *bsfc)
int64_t pkt_pts
reordered pts from the last AVPacket that has been input into the decoder
int avcodec_close(AVCodecContext *avctx)
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext its...
float dark_masking
darkness masking (0-> disabled)
int global_quality
Global quality for codecs which cannot change it per frame.
int skip_bottom
Number of macroblock rows at the bottom which are skipped.
void av_bitstream_filter_close(AVBitStreamFilterContext *bsf)
float temporal_cplx_masking
temporary complexity masking (0-> disabled)
discard useless packets like 0 size packets in avi
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
const AVClass * priv_class
AVClass for the private context.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
enum PixelFormat * pix_fmts
array of supported pixel formats, or NULL if unknown, array is terminated by -1
int8_t * qscale_table
QP table.
A dummy id pointing at the start of audio codecs.
#define attribute_deprecated
int noise_reduction
noise reduction strength
int(* filter)(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
struct AVPacket::@10 * side_data
Additional packet data that can be provided by the container.
int gop_size
the number of pictures in a group of pictures, or 0 for intra_only
uint8_t max_lowres
maximum value for lowres supported by the decoder
int64_t pkt_dts
dts from the last AVPacket that has been input into the decoder
AVPacket * pkt
Current packet as passed into the decoder, to avoid having to pass the packet into every function...
int mb_cmp
macroblock comparison function (not supported yet)
int(* split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
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...
enum AVMediaType avcodec_get_type(enum CodecID codec_id)
Get the type of the given codec.
int avpicture_alloc(AVPicture *picture, enum PixelFormat pix_fmt, int width, int height)
Allocate memory for a picture.
no search, that is use 0,0 vector whenever one is needed
static void avcodec_init(void)
int av_picture_crop(AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int top_band, int left_band)
Crop image top and left side.
uneven multi-hexagon search
uint32_t start_display_time
int prediction_method
prediction method (needed for huffyuv)
AVSampleFormat
all in native-endian format
int workaround_bugs
Work around bugs in encoders which sometimes cannot be detected automatically.
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic)
int64_t cur_frame_offset[AV_PARSER_PTS_NB]
AVCodec * av_codec_next(AVCodec *c)
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec...
enum AVDiscard skip_loop_filter
int thread_safe_callbacks
Set by the client if its custom get_buffer() callback can be called from another thread, which allows faster multithreaded decoding.
static const uint8_t color[]
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC / functionally identical to above ...
int trellis
trellis RD quantization
AVColorTransferCharacteristic
CodecID
Identify the syntax and semantics of the bitstream.
int slices
Number of slices.
int16_t position[3][2]
position of the top left corner in 1/16 pel for up to 3 fields/frames
void av_register_bitstream_filter(AVBitStreamFilter *bsf)
int cutoff
Audio cutoff bandwidth (0 means "automatic")
int(* update_thread_context)(AVCodecContext *dst, const AVCodecContext *src)
Copy necessary context variables from a previous thread context to the current one.
unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat 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.
int quantizer_noise_shaping
quantizer noise shaping
int dia_size
ME diamond size & shape.
int b_sensitivity
Adjust sensitivity of b_frame_strategy 1.
int(* execute)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size)
The codec may call this to execute several independent things.
int top_field_first
If the content is interlaced, is top field displayed first.
void * av_fast_realloc(void *ptr, unsigned int *size, size_t min_size)
Reallocate the given block if it is not large enough, otherwise do nothing.
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.
int channels
number of audio channels
const char * avcodec_configuration(void)
Return the libavcodec build-time configuration.
int error_rate
Simulates errors in the bitstream to test error concealment.
const int * supported_samplerates
array of supported audio samplerates, or NULL if unknown, array is terminated by 0 ...
char * ass
0 terminated ASS/SSA compatible event line.
int key_frame
1 -> keyframe, 0-> not
uint8_t * mbskip_table
mbskip_table[mb]>=1 if MB didn't change stride= mb_width = (width+15)>>4
int mv0_threshold
Note: Value depends upon the compare function used for fullpel ME.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
int * slice_offset
slice offsets in the frame in bytes
int frame_number
audio or video frame number
int repeat_pict
This field is used for proper frame duration computation in lavf.
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.
static int op(uint8_t **dst, const uint8_t *dst_end, const uint8_t **buf, const uint8_t *buf_end, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
enum AVFieldOrder field_order
Field order.
void avcodec_get_frame_defaults(AVFrame *pic)
Set the fields of the given AVFrame to default values.
enum AVPacketSideDataType type
enum AVSampleFormat * sample_fmts
array of supported sample formats, or NULL if unknown, array is terminated by -1
discard all frames except keyframes
int me_method
Motion estimation algorithm used for video coding.
int(* decode_slice)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
Callback for each slice.
int rc_min_rate
minimum bitrate
void av_log_missing_feature(void *avc, const char *feature, int want_sample)
Log a generic warning message about a missing feature.
int(* init)(AVCodecContext *)
uint8_t ** extended_data
pointers to the data planes/channels.
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...
int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
Pad image.
int(* end_frame)(AVCodecContext *avctx)
Called at the end of each frame or field picture.
uint64_t request_channel_layout
Request decoder to use this channel layout if it can (0 for default)
int avpicture_layout(const AVPicture *src, enum PixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
Copy pixel data from an AVPicture into a buffer.
int me_pre_cmp
motion estimation prepass comparison function
int(* encode2)(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode data to an AVPacket.
int key_frame
Set by parser to 1 for key frames and 0 for non-key frames.
struct AVProfile AVProfile
AVProfile.
int delay
Number of frames the decoded output will be delayed relative to the encoded input.
int me_subpel_quality
subpel ME quality
int nb_samples
number of audio samples (per channel) described by this frame
int strict_std_compliance
strictly follow the standard (MPEG4, ...).
int dts_sync_point
Synchronization point for start of timestamp generation.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
void * opaque
Private data of the user, can be used to carry app specific stuff.
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt)
Decode a subtitle message.
int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub)
int thread_type
Which multithreading methods to use.
struct RcOverride RcOverride
preferred ID for decoding MPEG audio layer 1, 2 or 3
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.
int luma_elim_threshold
luma single coefficient elimination threshold
uint8_t * subtitle_header
Header containing style information for text subtitles.
int keyint_min
minimum GOP size