21 #ifndef AVCODEC_AVCODEC_H
22 #define AVCODEC_AVCODEC_H
221 AV_CODEC_ID_MPEG2VIDEO_XVMC,
357 #define AV_CODEC_ID_IFF_BYTERUN1 AV_CODEC_ID_IFF_ILBM
395 #define AV_CODEC_ID_H265 AV_CODEC_ID_HEVC
523 #if FF_API_VIMA_DECODER
737 #define AV_CODEC_PROP_INTRA_ONLY (1 << 0)
743 #define AV_CODEC_PROP_LOSSY (1 << 1)
747 #define AV_CODEC_PROP_LOSSLESS (1 << 2)
757 #define AV_CODEC_PROP_REORDER (1 << 3)
762 #define AV_CODEC_PROP_BITMAP_SUB (1 << 16)
767 #define AV_CODEC_PROP_TEXT_SUB (1 << 17)
777 #define AV_INPUT_BUFFER_PADDING_SIZE 32
784 #define AV_INPUT_BUFFER_MIN_SIZE 16384
786 #if FF_API_WITHOUT_PREFIX
790 #define FF_INPUT_BUFFER_PADDING_SIZE 32
795 #define FF_MIN_BUFFER_SIZE 16384
803 #if FF_API_MOTION_EST
856 #if FF_API_MAX_BFRAMES
860 #define FF_MAX_B_FRAMES 16
872 #define AV_CODEC_FLAG_UNALIGNED (1 << 0)
876 #define AV_CODEC_FLAG_QSCALE (1 << 1)
880 #define AV_CODEC_FLAG_4MV (1 << 2)
884 #define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3)
888 #define AV_CODEC_FLAG_QPEL (1 << 4)
892 #define AV_CODEC_FLAG_PASS1 (1 << 9)
896 #define AV_CODEC_FLAG_PASS2 (1 << 10)
900 #define AV_CODEC_FLAG_LOOP_FILTER (1 << 11)
904 #define AV_CODEC_FLAG_GRAY (1 << 13)
908 #define AV_CODEC_FLAG_PSNR (1 << 15)
913 #define AV_CODEC_FLAG_TRUNCATED (1 << 16)
917 #define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18)
921 #define AV_CODEC_FLAG_LOW_DELAY (1 << 19)
925 #define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22)
929 #define AV_CODEC_FLAG_BITEXACT (1 << 23)
934 #define AV_CODEC_FLAG_AC_PRED (1 << 24)
938 #define AV_CODEC_FLAG_INTERLACED_ME (1 << 29)
939 #define AV_CODEC_FLAG_CLOSED_GOP (1U << 31)
944 #define AV_CODEC_FLAG2_FAST (1 << 0)
948 #define AV_CODEC_FLAG2_NO_OUTPUT (1 << 2)
952 #define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3)
957 #define AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13)
963 #define AV_CODEC_FLAG2_CHUNKS (1 << 15)
967 #define AV_CODEC_FLAG2_IGNORE_CROP (1 << 16)
972 #define AV_CODEC_FLAG2_SHOW_ALL (1 << 22)
976 #define AV_CODEC_FLAG2_EXPORT_MVS (1 << 28)
980 #define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29)
984 #define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30)
996 #define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0)
1002 #define AV_CODEC_CAP_DR1 (1 << 1)
1003 #define AV_CODEC_CAP_TRUNCATED (1 << 3)
1027 #define AV_CODEC_CAP_DELAY (1 << 5)
1032 #define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6)
1034 #if FF_API_CAP_VDPAU
1038 #define AV_CODEC_CAP_HWACCEL_VDPAU (1 << 7)
1052 #define AV_CODEC_CAP_SUBFRAMES (1 << 8)
1057 #define AV_CODEC_CAP_EXPERIMENTAL (1 << 9)
1061 #define AV_CODEC_CAP_CHANNEL_CONF (1 << 10)
1065 #define AV_CODEC_CAP_FRAME_THREADS (1 << 12)
1069 #define AV_CODEC_CAP_SLICE_THREADS (1 << 13)
1073 #define AV_CODEC_CAP_PARAM_CHANGE (1 << 14)
1077 #define AV_CODEC_CAP_AUTO_THREADS (1 << 15)
1081 #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16)
1091 #define AV_CODEC_CAP_AVOID_PROBING (1 << 17)
1095 #define AV_CODEC_CAP_INTRA_ONLY 0x40000000
1099 #define AV_CODEC_CAP_LOSSLESS 0x80000000
1102 #if FF_API_WITHOUT_PREFIX
1107 #define CODEC_FLAG_UNALIGNED AV_CODEC_FLAG_UNALIGNED
1108 #define CODEC_FLAG_QSCALE AV_CODEC_FLAG_QSCALE
1109 #define CODEC_FLAG_4MV AV_CODEC_FLAG_4MV
1110 #define CODEC_FLAG_OUTPUT_CORRUPT AV_CODEC_FLAG_OUTPUT_CORRUPT
1111 #define CODEC_FLAG_QPEL AV_CODEC_FLAG_QPEL
1116 #define CODEC_FLAG_GMC 0x0020
1123 #define CODEC_FLAG_MV0 0x0040
1125 #if FF_API_INPUT_PRESERVED
1130 #define CODEC_FLAG_INPUT_PRESERVED 0x0100
1132 #define CODEC_FLAG_PASS1 AV_CODEC_FLAG_PASS1
1133 #define CODEC_FLAG_PASS2 AV_CODEC_FLAG_PASS2
1134 #define CODEC_FLAG_GRAY AV_CODEC_FLAG_GRAY
1140 #define CODEC_FLAG_EMU_EDGE 0x4000
1142 #define CODEC_FLAG_PSNR AV_CODEC_FLAG_PSNR
1143 #define CODEC_FLAG_TRUNCATED AV_CODEC_FLAG_TRUNCATED
1145 #if FF_API_NORMALIZE_AQP
1150 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000
1152 #define CODEC_FLAG_INTERLACED_DCT AV_CODEC_FLAG_INTERLACED_DCT
1153 #define CODEC_FLAG_LOW_DELAY AV_CODEC_FLAG_LOW_DELAY
1154 #define CODEC_FLAG_GLOBAL_HEADER AV_CODEC_FLAG_GLOBAL_HEADER
1155 #define CODEC_FLAG_BITEXACT AV_CODEC_FLAG_BITEXACT
1156 #define CODEC_FLAG_AC_PRED AV_CODEC_FLAG_AC_PRED
1157 #define CODEC_FLAG_LOOP_FILTER AV_CODEC_FLAG_LOOP_FILTER
1158 #define CODEC_FLAG_INTERLACED_ME AV_CODEC_FLAG_INTERLACED_ME
1159 #define CODEC_FLAG_CLOSED_GOP AV_CODEC_FLAG_CLOSED_GOP
1160 #define CODEC_FLAG2_FAST AV_CODEC_FLAG2_FAST
1161 #define CODEC_FLAG2_NO_OUTPUT AV_CODEC_FLAG2_NO_OUTPUT
1162 #define CODEC_FLAG2_LOCAL_HEADER AV_CODEC_FLAG2_LOCAL_HEADER
1163 #define CODEC_FLAG2_DROP_FRAME_TIMECODE AV_CODEC_FLAG2_DROP_FRAME_TIMECODE
1164 #define CODEC_FLAG2_IGNORE_CROP AV_CODEC_FLAG2_IGNORE_CROP
1166 #define CODEC_FLAG2_CHUNKS AV_CODEC_FLAG2_CHUNKS
1167 #define CODEC_FLAG2_SHOW_ALL AV_CODEC_FLAG2_SHOW_ALL
1168 #define CODEC_FLAG2_EXPORT_MVS AV_CODEC_FLAG2_EXPORT_MVS
1169 #define CODEC_FLAG2_SKIP_MANUAL AV_CODEC_FLAG2_SKIP_MANUAL
1178 #define CODEC_CAP_DRAW_HORIZ_BAND AV_CODEC_CAP_DRAW_HORIZ_BAND
1184 #define CODEC_CAP_DR1 AV_CODEC_CAP_DR1
1185 #define CODEC_CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
1194 #define CODEC_CAP_HWACCEL 0x0010
1219 #define CODEC_CAP_DELAY AV_CODEC_CAP_DELAY
1224 #define CODEC_CAP_SMALL_LAST_FRAME AV_CODEC_CAP_SMALL_LAST_FRAME
1225 #if FF_API_CAP_VDPAU
1229 #define CODEC_CAP_HWACCEL_VDPAU AV_CODEC_CAP_HWACCEL_VDPAU
1242 #define CODEC_CAP_SUBFRAMES AV_CODEC_CAP_SUBFRAMES
1247 #define CODEC_CAP_EXPERIMENTAL AV_CODEC_CAP_EXPERIMENTAL
1251 #define CODEC_CAP_CHANNEL_CONF AV_CODEC_CAP_CHANNEL_CONF
1252 #if FF_API_NEG_LINESIZES
1256 #define CODEC_CAP_NEG_LINESIZES 0x0800
1261 #define CODEC_CAP_FRAME_THREADS AV_CODEC_CAP_FRAME_THREADS
1265 #define CODEC_CAP_SLICE_THREADS AV_CODEC_CAP_SLICE_THREADS
1269 #define CODEC_CAP_PARAM_CHANGE AV_CODEC_CAP_PARAM_CHANGE
1273 #define CODEC_CAP_AUTO_THREADS AV_CODEC_CAP_AUTO_THREADS
1277 #define CODEC_CAP_VARIABLE_FRAME_SIZE AV_CODEC_CAP_VARIABLE_FRAME_SIZE
1281 #define CODEC_CAP_INTRA_ONLY AV_CODEC_CAP_INTRA_ONLY
1285 #define CODEC_CAP_LOSSLESS AV_CODEC_CAP_LOSSLESS
1291 #define HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200
1296 #define MB_TYPE_INTRA4x4 0x0001
1297 #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific
1298 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME H.264-specific
1299 #define MB_TYPE_16x16 0x0008
1300 #define MB_TYPE_16x8 0x0010
1301 #define MB_TYPE_8x16 0x0020
1302 #define MB_TYPE_8x8 0x0040
1303 #define MB_TYPE_INTERLACED 0x0080
1304 #define MB_TYPE_DIRECT2 0x0100 //FIXME
1305 #define MB_TYPE_ACPRED 0x0200
1306 #define MB_TYPE_GMC 0x0400
1307 #define MB_TYPE_SKIP 0x0800
1308 #define MB_TYPE_P0L0 0x1000
1309 #define MB_TYPE_P1L0 0x2000
1310 #define MB_TYPE_P0L1 0x4000
1311 #define MB_TYPE_P1L1 0x8000
1312 #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
1313 #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
1314 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
1315 #define MB_TYPE_QUANT 0x00010000
1316 #define MB_TYPE_CBP 0x00020000
1387 #if FF_API_QSCALE_TYPE
1388 #define FF_QSCALE_TYPE_MPEG1 0
1389 #define FF_QSCALE_TYPE_MPEG2 1
1390 #define FF_QSCALE_TYPE_H264 2
1391 #define FF_QSCALE_TYPE_VP56 3
1397 #define AV_GET_BUFFER_FLAG_REF (1 << 0)
1620 #define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED
1701 #if FF_API_CONVERGENCE_DURATION
1711 #define AV_PKT_FLAG_KEY 0x0001
1712 #define AV_PKT_FLAG_CORRUPT 0x0002
1718 #define AV_PKT_FLAG_DISCARD 0x0004
1725 #define AV_PKT_FLAG_TRUSTED 0x0008
1771 #if FF_API_CODEC_NAME
1795 #if FF_API_STREAM_CODEC_TAG
1849 #define FF_COMPRESSION_DEFAULT -1
1965 #if FF_API_ASPECT_EXTENDED
1966 #define FF_ASPECT_EXTENDED 15
1991 #if FF_API_MOTION_EST
2058 #if FF_API_RC_STRATEGY
2061 #define FF_RC_STRATEGY_XVID 1
2064 #if FF_API_PRIVATE_OPT
2085 #if FF_API_PRIVATE_OPT
2149 #if FF_API_PRIVATE_OPT
2153 #define FF_PRED_LEFT 0
2154 #define FF_PRED_PLANE 1
2155 #define FF_PRED_MEDIAN 2
2198 #define FF_CMP_SAD 0
2199 #define FF_CMP_SSE 1
2200 #define FF_CMP_SATD 2
2201 #define FF_CMP_DCT 3
2202 #define FF_CMP_PSNR 4
2203 #define FF_CMP_BIT 5
2205 #define FF_CMP_ZERO 7
2206 #define FF_CMP_VSAD 8
2207 #define FF_CMP_VSSE 9
2208 #define FF_CMP_NSSE 10
2209 #define FF_CMP_W53 11
2210 #define FF_CMP_W97 12
2211 #define FF_CMP_DCTMAX 13
2212 #define FF_CMP_DCT264 14
2213 #define FF_CMP_MEDIAN_SAD 15
2214 #define FF_CMP_CHROMA 256
2230 #if FF_API_PRIVATE_OPT
2268 #define FF_DTG_AFD_SAME 8
2269 #define FF_DTG_AFD_4_3 9
2270 #define FF_DTG_AFD_16_9 10
2271 #define FF_DTG_AFD_14_9 11
2272 #define FF_DTG_AFD_4_3_SP_14_9 13
2273 #define FF_DTG_AFD_16_9_SP_14_9 14
2274 #define FF_DTG_AFD_SP_4_3 15
2286 #if FF_API_QUANT_BIAS
2291 #define FF_DEFAULT_QUANT_BIAS 999999
2305 #define SLICE_FLAG_CODED_ORDER 0x0001
2306 #define SLICE_FLAG_ALLOW_FIELD 0x0002
2307 #define SLICE_FLAG_ALLOW_PLANE 0x0004
2325 #define FF_MB_DECISION_SIMPLE 0
2326 #define FF_MB_DECISION_BITS 1
2327 #define FF_MB_DECISION_RD 2
2343 #if FF_API_PRIVATE_OPT
2410 #if FF_API_PRIVATE_OPT
2424 #if FF_API_PRIVATE_OPT
2444 #if FF_API_PRIVATE_OPT
2450 #if FF_API_UNUSED_MEMBERS
2466 #if FF_API_PRIVATE_OPT
2803 #if FF_API_CODER_TYPE
2804 #define FF_CODER_TYPE_VLC 0
2805 #define FF_CODER_TYPE_AC 1
2806 #define FF_CODER_TYPE_RAW 2
2807 #define FF_CODER_TYPE_RLE 3
2808 #if FF_API_UNUSED_MEMBERS
2809 #define FF_CODER_TYPE_DEFLATE 4
2818 #if FF_API_PRIVATE_OPT
2838 #if FF_API_PRIVATE_OPT
2863 #if FF_API_PRIVATE_OPT
2877 #if FF_API_RTP_CALLBACK
2891 #if FF_API_PRIVATE_OPT
2902 #if FF_API_STAT_BITS
2947 #define FF_BUG_AUTODETECT 1
2948 #if FF_API_OLD_MSMPEG4
2949 #define FF_BUG_OLD_MSMPEG4 2
2951 #define FF_BUG_XVID_ILACE 4
2952 #define FF_BUG_UMP4 8
2953 #define FF_BUG_NO_PADDING 16
2954 #define FF_BUG_AMV 32
2956 #define FF_BUG_AC_VLC 0
2958 #define FF_BUG_QPEL_CHROMA 64
2959 #define FF_BUG_STD_QPEL 128
2960 #define FF_BUG_QPEL_CHROMA2 256
2961 #define FF_BUG_DIRECT_BLOCKSIZE 512
2962 #define FF_BUG_EDGE 1024
2963 #define FF_BUG_HPEL_CHROMA 2048
2964 #define FF_BUG_DC_CLIP 4096
2965 #define FF_BUG_MS 8192
2966 #define FF_BUG_TRUNCATED 16384
2967 #define FF_BUG_IEDGE 32768
2982 #define FF_COMPLIANCE_VERY_STRICT 2
2983 #define FF_COMPLIANCE_STRICT 1
2984 #define FF_COMPLIANCE_NORMAL 0
2985 #define FF_COMPLIANCE_UNOFFICIAL -1
2986 #define FF_COMPLIANCE_EXPERIMENTAL -2
2994 #define FF_EC_GUESS_MVS 1
2995 #define FF_EC_DEBLOCK 2
2996 #define FF_EC_FAVOR_INTER 256
3004 #define FF_DEBUG_PICT_INFO 1
3005 #define FF_DEBUG_RC 2
3006 #define FF_DEBUG_BITSTREAM 4
3007 #define FF_DEBUG_MB_TYPE 8
3008 #define FF_DEBUG_QP 16
3013 #define FF_DEBUG_MV 32
3015 #define FF_DEBUG_DCT_COEFF 0x00000040
3016 #define FF_DEBUG_SKIP 0x00000080
3017 #define FF_DEBUG_STARTCODE 0x00000100
3018 #if FF_API_UNUSED_MEMBERS
3019 #define FF_DEBUG_PTS 0x00000200
3021 #define FF_DEBUG_ER 0x00000400
3022 #define FF_DEBUG_MMCO 0x00000800
3023 #define FF_DEBUG_BUGS 0x00001000
3025 #define FF_DEBUG_VIS_QP 0x00002000
3026 #define FF_DEBUG_VIS_MB_TYPE 0x00004000
3028 #define FF_DEBUG_BUFFERS 0x00008000
3029 #define FF_DEBUG_THREADS 0x00010000
3030 #define FF_DEBUG_GREEN_MD 0x00800000
3031 #define FF_DEBUG_NOMC 0x01000000
3040 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 // visualize forward predicted MVs of P-frames
3041 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 // visualize forward predicted MVs of B-frames
3042 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 // visualize backward predicted MVs of B-frames
3058 #define AV_EF_CRCCHECK (1<<0)
3059 #define AV_EF_BITSTREAM (1<<1)
3060 #define AV_EF_BUFFER (1<<2)
3061 #define AV_EF_EXPLODE (1<<3)
3063 #define AV_EF_IGNORE_ERR (1<<15)
3064 #define AV_EF_CAREFUL (1<<16)
3065 #define AV_EF_COMPLIANT (1<<17)
3066 #define AV_EF_AGGRESSIVE (1<<18)
3109 #define FF_DCT_AUTO 0
3110 #define FF_DCT_FASTINT 1
3111 #define FF_DCT_INT 2
3112 #define FF_DCT_MMX 3
3113 #define FF_DCT_ALTIVEC 5
3114 #define FF_DCT_FAAN 6
3122 #define FF_IDCT_AUTO 0
3123 #define FF_IDCT_INT 1
3124 #define FF_IDCT_SIMPLE 2
3125 #define FF_IDCT_SIMPLEMMX 3
3126 #define FF_IDCT_ARM 7
3127 #define FF_IDCT_ALTIVEC 8
3129 #define FF_IDCT_SH4 9
3131 #define FF_IDCT_SIMPLEARM 10
3132 #if FF_API_UNUSED_MEMBERS
3133 #define FF_IDCT_IPP 13
3135 #define FF_IDCT_XVID 14
3136 #if FF_API_IDCT_XVIDMMX
3137 #define FF_IDCT_XVIDMMX 14
3139 #define FF_IDCT_SIMPLEARMV5TE 16
3140 #define FF_IDCT_SIMPLEARMV6 17
3141 #if FF_API_ARCH_SPARC
3142 #define FF_IDCT_SIMPLEVIS 18
3144 #define FF_IDCT_FAAN 20
3145 #define FF_IDCT_SIMPLENEON 22
3146 #if FF_API_ARCH_ALPHA
3147 #define FF_IDCT_SIMPLEALPHA 23
3149 #define FF_IDCT_NONE 24
3150 #define FF_IDCT_SIMPLEAUTO 128
3175 #if FF_API_CODED_FRAME
3203 #define FF_THREAD_FRAME 1
3204 #define FF_THREAD_SLICE 2
3267 #define FF_PROFILE_UNKNOWN -99
3268 #define FF_PROFILE_RESERVED -100
3270 #define FF_PROFILE_AAC_MAIN 0
3271 #define FF_PROFILE_AAC_LOW 1
3272 #define FF_PROFILE_AAC_SSR 2
3273 #define FF_PROFILE_AAC_LTP 3
3274 #define FF_PROFILE_AAC_HE 4
3275 #define FF_PROFILE_AAC_HE_V2 28
3276 #define FF_PROFILE_AAC_LD 22
3277 #define FF_PROFILE_AAC_ELD 38
3278 #define FF_PROFILE_MPEG2_AAC_LOW 128
3279 #define FF_PROFILE_MPEG2_AAC_HE 131
3281 #define FF_PROFILE_DNXHD 0
3282 #define FF_PROFILE_DNXHR_LB 1
3283 #define FF_PROFILE_DNXHR_SQ 2
3284 #define FF_PROFILE_DNXHR_HQ 3
3285 #define FF_PROFILE_DNXHR_HQX 4
3286 #define FF_PROFILE_DNXHR_444 5
3288 #define FF_PROFILE_DTS 20
3289 #define FF_PROFILE_DTS_ES 30
3290 #define FF_PROFILE_DTS_96_24 40
3291 #define FF_PROFILE_DTS_HD_HRA 50
3292 #define FF_PROFILE_DTS_HD_MA 60
3293 #define FF_PROFILE_DTS_EXPRESS 70
3295 #define FF_PROFILE_MPEG2_422 0
3296 #define FF_PROFILE_MPEG2_HIGH 1
3297 #define FF_PROFILE_MPEG2_SS 2
3298 #define FF_PROFILE_MPEG2_SNR_SCALABLE 3
3299 #define FF_PROFILE_MPEG2_MAIN 4
3300 #define FF_PROFILE_MPEG2_SIMPLE 5
3302 #define FF_PROFILE_H264_CONSTRAINED (1<<9) // 8+1; constraint_set1_flag
3303 #define FF_PROFILE_H264_INTRA (1<<11) // 8+3; constraint_set3_flag
3305 #define FF_PROFILE_H264_BASELINE 66
3306 #define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
3307 #define FF_PROFILE_H264_MAIN 77
3308 #define FF_PROFILE_H264_EXTENDED 88
3309 #define FF_PROFILE_H264_HIGH 100
3310 #define FF_PROFILE_H264_HIGH_10 110
3311 #define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
3312 #define FF_PROFILE_H264_MULTIVIEW_HIGH 118
3313 #define FF_PROFILE_H264_HIGH_422 122
3314 #define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
3315 #define FF_PROFILE_H264_STEREO_HIGH 128
3316 #define FF_PROFILE_H264_HIGH_444 144
3317 #define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
3318 #define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
3319 #define FF_PROFILE_H264_CAVLC_444 44
3321 #define FF_PROFILE_VC1_SIMPLE 0
3322 #define FF_PROFILE_VC1_MAIN 1
3323 #define FF_PROFILE_VC1_COMPLEX 2
3324 #define FF_PROFILE_VC1_ADVANCED 3
3326 #define FF_PROFILE_MPEG4_SIMPLE 0
3327 #define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
3328 #define FF_PROFILE_MPEG4_CORE 2
3329 #define FF_PROFILE_MPEG4_MAIN 3
3330 #define FF_PROFILE_MPEG4_N_BIT 4
3331 #define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
3332 #define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
3333 #define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
3334 #define FF_PROFILE_MPEG4_HYBRID 8
3335 #define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
3336 #define FF_PROFILE_MPEG4_CORE_SCALABLE 10
3337 #define FF_PROFILE_MPEG4_ADVANCED_CODING 11
3338 #define FF_PROFILE_MPEG4_ADVANCED_CORE 12
3339 #define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
3340 #define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
3341 #define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
3343 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 1
3344 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 2
3345 #define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 32768
3346 #define FF_PROFILE_JPEG2000_DCINEMA_2K 3
3347 #define FF_PROFILE_JPEG2000_DCINEMA_4K 4
3349 #define FF_PROFILE_VP9_0 0
3350 #define FF_PROFILE_VP9_1 1
3351 #define FF_PROFILE_VP9_2 2
3352 #define FF_PROFILE_VP9_3 3
3354 #define FF_PROFILE_HEVC_MAIN 1
3355 #define FF_PROFILE_HEVC_MAIN_10 2
3356 #define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
3357 #define FF_PROFILE_HEVC_REXT 4
3365 #define FF_LEVEL_UNKNOWN -99
3399 #if FF_API_ERROR_RATE
3408 #if FF_API_VBV_DELAY
3421 #if FF_API_SIDEDATA_ONLY_PKT
3516 #define FF_SUB_CHARENC_MODE_DO_NOTHING -1
3517 #define FF_SUB_CHARENC_MODE_AUTOMATIC 0
3518 #define FF_SUB_CHARENC_MODE_PRE_DECODER 1
3541 #if !FF_API_DEBUG_MV
3548 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
3549 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
3550 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
3582 #define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
3583 #define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
3624 #define FF_SUB_TEXT_FMT_ASS 0
3625 #if FF_API_ASS_TIMING
3626 #define FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS 1
3821 int *got_packet_ptr);
4010 #define AV_HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200
4020 #define AV_HWACCEL_FLAG_IGNORE_LEVEL (1 << 0)
4026 #define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1)
4040 #define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2)
4046 #if FF_API_AVPICTURE
4091 #define AV_SUBTITLE_FLAG_FORCED 0x00000001
4100 #if FF_API_AVPICTURE
4360 #if FF_API_GET_CONTEXT_DEFAULTS
4377 #if FF_API_COPY_CONTEXT
4613 #if FF_API_AVPACKET_OLD_API
4701 #if FF_API_MERGE_SD_API
4945 int *got_frame_ptr,
const AVPacket *avpkt);
4994 int *got_picture_ptr,
5194 #define AV_PARSER_PTS_NB 4
5201 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001
5202 #define PARSER_FLAG_ONCE 0x0002
5204 #define PARSER_FLAG_FETCHED_OFFSET 0x0004
5205 #define PARSER_FLAG_USE_CODEC_TS 0x1000
5218 #if FF_API_CONVERGENCE_DURATION
5342 const uint8_t **poutbuf,
int *poutbuf_size,
5387 uint8_t **poutbuf,
int *poutbuf_size,
5389 int64_t
pts, int64_t dts,
5398 uint8_t **poutbuf,
int *poutbuf_size,
5399 const uint8_t *
buf,
int buf_size,
int keyframe);
5519 #if FF_API_AVCODEC_RESAMPLE
5550 int output_rate,
int input_rate,
5553 int filter_length,
int log2_phase_count,
5554 int linear,
double cutoff);
5616 #if FF_API_AVPICTURE
5647 unsigned char *dest,
int dest_size);
5674 int padtop,
int padbottom,
int padleft,
int padright,
int *
color);
5697 #if FF_API_GETCHROMA
5738 int has_alpha,
int *loss_ptr);
5744 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
5748 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
5756 #if FF_API_SET_DIMENSIONS
5764 #if FF_API_TAG_STRING
5833 int buf_size,
int align);
6056 uint8_t **poutbuf,
int *poutbuf_size,
6057 const uint8_t *
buf,
int buf_size,
int keyframe);
6285 #if FF_API_MISSING_SAMPLE
codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it ...
int caps_internal
Internal hwaccel capabilities.
enum AVChromaLocation chroma_location
attribute_deprecated int av_packet_split_side_data(AVPacket *pkt)
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
int(* parser_init)(AVCodecParserContext *s)
const struct AVCodec * codec
const char const char void * val
enum AVFieldOrder field_order
Video only.
discard all frames except keyframes
AVSideDataParamChangeFlags
int(* start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
Called at the beginning of each frame or field picture.
const AVCodecDescriptor * codec_descriptor
AVCodecDescriptor.
attribute_deprecated int intra_quant_bias
enum AVColorTransferCharacteristic color_trc
const AVClass * priv_class
A class for the private data, used to declare bitstream filter private AVOptions. ...
static enum AVPixelFormat pix_fmt
AVCodecParameters * par_out
Parameters of the output stream.
#define AV_NUM_DATA_POINTERS
int64_t pts_correction_num_faulty_dts
Number of incorrect PTS values so far.
A list of zero terminated key/value strings.
This structure describes decoded (raw) audio or video data.
The optional first identifier line of a WebVTT cue.
int avcodec_default_execute2(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count)
AVCodec * avcodec_find_encoder(enum AVCodecID id)
Find a registered encoder with a matching codec ID.
int(* init)(AVCodecContext *avctx)
Initialize the hwaccel private data.
int x
top left corner of pict, undefined when pict is not set
int dct_algo
DCT algorithm, see FF_DCT_* below.
A dummy id pointing at the start of audio codecs.
ptrdiff_t const GLvoid * data
int apply_cropping
Video decoding only.
uint64_t error[AV_NUM_DATA_POINTERS]
error
int coded_width
Bitstream width / height, may be different from width/height e.g.
int capabilities
Hardware accelerated codec capabilities.
void(* flush)(AVCodecContext *)
Flush buffers.
int av_lockmgr_register(int(*cb)(void **mutex, enum AVLockOp op))
Register a user provided lock manager supporting the operations specified by AVLockOp.
float qblur
amount of qscale smoothing over time (0.0-1.0)
static int linear(InterplayACMContext *s, unsigned ind, unsigned col)
attribute_deprecated int rc_qmod_freq
int64_t bit_rate
the average bitrate
int64_t pos
byte position in stream, -1 if unknown
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
attribute_deprecated void(* rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
int64_t next_frame_offset
int max_bitrate
Maximum bitrate of the stream, in bits per second.
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...
AVRational sample_aspect_ratio
Video only.
int rc_initial_buffer_occupancy
Number of bits which should be loaded into the rc buffer before decoding starts.
Dummy codec for streams containing only metadata information.
int width
Dimensions of the decoded video intended for presentation.
int avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
Read encoded data from the encoder.
attribute_deprecated int frame_skip_cmp
attribute_deprecated int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples)
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
const char * avcodec_configuration(void)
Return the libavcodec build-time configuration.
ATSC A53 Part 4 Closed Captions.
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)
Filter bitstream.
enum AVColorRange color_range
MPEG vs JPEG YUV range.
attribute_deprecated unsigned int stream_codec_tag
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
const struct AVBitStreamFilter * filter
The bitstream filter this context is an instance of.
enum AVFieldOrder field_order
attribute_deprecated int av_picture_crop(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int top_band, int left_band)
void av_codec_set_pkt_timebase(AVCodecContext *avctx, AVRational val)
The bitstream filter state.
int nb_colors
number of colors in pict, undefined when pict is not set
attribute_deprecated int lmax
int mb_lmin
minimum MB Lagrange multiplier
const char * avcodec_license(void)
Return the libavcodec license.
enhanced predictive zonal search
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
int coded_width
Dimensions of the coded video.
enum AVPixelFormat pix_fmt
Supported pixel format.
This side data contains an integer value representing the stream index of a "fallback" track...
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
Structure for chain/list of bitstream filters.
attribute_deprecated int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of audio.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
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.
Contain timestamp estimated through PCR of program stream.
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...
enum AVMediaType type
Type of codec implemented by the hardware accelerator.
A dummy ID pointing at the start of various fake codecs.
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
int(* decode)(AVCodecContext *, void *outdata, int *outdata_size, AVPacket *avpkt)
discard all non intra frames
int duration
Duration of the current frame.
attribute_deprecated void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
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_enum_to_chroma_pos(int *xpos, int *ypos, enum AVChromaLocation pos)
Converts AVChromaLocation to swscale x/y chroma position.
void avcodec_register_all(void)
Register all the codecs, parsers and bitstream filters which were enabled at configuration time...
int dts_ref_dts_delta
Offset of the current timestamp against last timestamp sync point in units of AVCodecContext.time_base.
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt)
Decode a subtitle message.
int av_bsf_get_null_filter(AVBSFContext **bsf)
Get null/pass-through bitstream filter.
int trailing_padding
Audio only.
void * priv_data
Opaque filter-specific private data.
An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of structures with info about macroblo...
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
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)
float i_quant_offset
qscale offset between P and I-frames
This struct describes the properties of an encoded stream.
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
AVLockOp
Lock operation used by lockmgr.
attribute_deprecated AVPicture pict
AVColorTransferCharacteristic
Color Transfer Characteristic.
int min_bitrate
Minimum bitrate of the stream, in bits per second.
char * text
0 terminated plain UTF-8 text
enum AVColorSpace color_space
attribute_deprecated unsigned avcodec_get_edge_width(void)
Return the amount of padding in pixels which the get_buffer callback must provide around the edge of ...
attribute_deprecated int frame_skip_exp
attribute_deprecated int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height)
attribute_deprecated int me_method
This option does nothing.
Macro definitions for various function/variable attributes.
attribute_deprecated void av_log_missing_feature(void *avc, const char *feature, int want_sample)
Log a generic warning message about a missing feature.
int frame_size
Audio only.
Mastering display metadata (based on SMPTE-2086:2014).
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt, int has_alpha)
attribute_deprecated 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.
int av_codec_is_decoder(const AVCodec *codec)
enum AVAudioServiceType audio_service_type
Type of service that the audio stream conveys.
const AVCodecDescriptor * avcodec_descriptor_next(const AVCodecDescriptor *prev)
Iterate over all codec descriptors known to libavcodec.
void av_bsf_list_free(AVBSFList **lst)
Free list of bitstream filters.
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.
enum AVDiscard skip_frame
Skip decoding for selected frames.
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
int av_codec_is_encoder(const AVCodec *codec)
uint64_t vbv_delay
The delay between the time the packet this structure is associated with is received and the time when...
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.
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 w
width of pict, undefined when pict is not set
attribute_deprecated int mv_bits
struct AVHWAccel * hwaccel
Hardware accelerator in use.
float p_masking
p block masking (0-> disabled)
void av_codec_set_chroma_intra_matrix(AVCodecContext *avctx, uint16_t *val)
AVCodecParserContext * parser
attribute_deprecated int rc_strategy
attribute_deprecated char codec_name[32]
int(* init_thread_copy)(AVCodecContext *)
If defined, called on thread contexts when they are created.
static double cb(void *priv, double x, double y)
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
attribute_deprecated int side_data_only_packets
Encoding only and set by default.
int bit_rate_tolerance
number of bits the bitstream is allowed to diverge from the reference.
int mb_lmax
maximum MB Lagrange multiplier
enum AVPictureStructure picture_structure
Indicate whether a picture is coded as a frame, top field or bottom field.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
attribute_deprecated float rc_buffer_aggressivity
attribute_deprecated const char * rc_eq
enum AVSampleFormat sample_fmt
audio sample format
void * hwaccel_context
Hardware accelerator context.
int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict)
Unpack a dictionary from side_data.
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
attribute_deprecated int av_packet_merge_side_data(AVPacket *pkt)
AVCodecParameters * avcodec_parameters_alloc(void)
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
int me_range
maximum motion estimation search range in subpel units If 0 then no limit.
attribute_deprecated int i_count
AVColorSpace
YUV colorspace type.
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.
uint16_t * chroma_intra_matrix
custom intra quantization matrix
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
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 trailing_padding
Audio only.
attribute_deprecated int linesize[AV_NUM_DATA_POINTERS]
number of bytes per line
int pre_dia_size
ME prepass diamond size & shape.
int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
Initialize a reference-counted packet from av_malloc()ed data.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
const AVClass * av_class
information on struct for av_log
int me_cmp
motion estimation comparison function
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, uint8_t clip)
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
Fill the codec context based on the values from the supplied codec parameters.
struct AVCodecParser * next
int initial_padding
Audio only.
void av_codec_set_lowres(AVCodecContext *avctx, int val)
attribute_deprecated void av_resample_close(struct AVResampleContext *c)
attribute_deprecated int context_model
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
void(* decode_mb)(struct MpegEncContext *s)
Called for every Macroblock in a slice.
Motion_Est_ID
motion estimation type.
int(* parser_parse)(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
int lowres
low resolution decoding, 1-> 1/2 size, 2->1/4 size
AVColorRange
MPEG vs JPEG YUV range.
const AVCodecDescriptor * av_codec_get_codec_descriptor(const AVCodecContext *avctx)
const AVClass * avcodec_get_frame_class(void)
Get the AVClass for AVFrame.
int buffer_size
The size of the buffer to which the ratecontrol is applied, in bits.
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
AVColorPrimaries
Chromaticity coordinates of the source primaries.
AVCPBProperties * av_cpb_properties_alloc(size_t *size)
Allocate a CPB properties structure and initialize its fields to default values.
const OptionDef options[]
struct AVBitStreamFilterContext * next
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
attribute_deprecated int frame_skip_threshold
uint64_t channel_layout
Audio only.
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
AVCodec * avcodec_find_encoder_by_name(const char *name)
Find a registered encoder with the specified name.
attribute_deprecated int av_copy_packet_side_data(AVPacket *dst, const AVPacket *src)
Copy packet side data.
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...
attribute_deprecated int avpicture_fill(AVPicture *picture, const uint8_t *ptr, enum AVPixelFormat pix_fmt, int width, int height)
attribute_deprecated int skip_count
MPEGTS stream ID, this is required to pass the stream ID information from the demuxer to the correspo...
int slice_count
slice count
uint16_t * av_codec_get_chroma_intra_matrix(const AVCodecContext *avctx)
int(* send_frame)(AVCodecContext *avctx, const AVFrame *frame)
Encode API with decoupled packet/frame dataflow.
attribute_deprecated void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
Libavcodec version macros.
int(* close)(AVCodecContext *)
int avcodec_close(AVCodecContext *avctx)
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext its...
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVRational pkt_timebase
Timebase in which pkt_dts/pts and AVPacket.dts/pts are.
no search, that is use 0,0 vector whenever one is needed
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.
AVCodecID
Identify the syntax and semantics of the bitstream.
int avcodec_parameters_copy(AVCodecParameters *dst, const AVCodecParameters *src)
Copy the contents of src to dst.
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
int has_b_frames
Size of the frame reordering buffer in the decoder.
An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette...
AVPacket * av_packet_clone(const AVPacket *src)
Create a new packet that references the same data as src.
const AVBitStreamFilter * av_bsf_next(void **opaque)
Iterate over all registered bitstream filters.
int64_t pos
Byte position of currently parsed frame in stream.
attribute_deprecated float rc_initial_cplx
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...
struct AVCodecParser * parser
int y
top left corner of pict, undefined when pict is not set
discard all bidirectional frames
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
enum AVCodecID * codec_ids
A list of codec ids supported by the filter, terminated by AV_CODEC_ID_NONE.
int me_sub_cmp
subpixel motion estimation comparison function
void av_packet_free_side_data(AVPacket *pkt)
Convenience function to free all the side data stored.
attribute_deprecated uint64_t vbv_delay
VBV delay coded in the last frame (in periods of a 27 MHz clock).
int qmax
maximum quantizer
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...
enum AVSampleFormat request_sample_fmt
desired sample format
int skip_alpha
Skip processing alpha if supported by codec.
int64_t pts_correction_last_pts
Number of incorrect DTS values so far.
int active_thread_type
Which multithreading methods are in use by the codec.
enum AVColorPrimaries color_primaries
attribute_deprecated int av_dup_packet(AVPacket *pkt)
int avcodec_is_open(AVCodecContext *s)
int error_concealment
error concealment flags
int video_delay
Video only.
int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
Return decoded output data from a decoder.
int capabilities
Codec capabilities.
int initial_padding
Audio only.
preferred ID for decoding MPEG audio layer 1, 2 or 3
attribute_deprecated AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
Create and initialize a bitstream filter context given a bitstream filter name.
enum AVMediaType codec_type
General type of the encoded data.
AVBufferRef * buf
A reference to the reference-counted buffer where the packet data is stored.
int flags
AV_CODEC_FLAG_*.
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.
AVRational time_base_in
The timebase used for the timestamps of the input packets.
enum AVPacketSideDataType type
enum AVMediaType avcodec_get_type(enum AVCodecID codec_id)
Get the type of the given codec.
attribute_deprecated int inter_quant_bias
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_...
int width
width and height in 1/16 pel
int64_t max_pixels
The number of pixels per image to maximally accept.
int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Shrink the already allocated side data buffer.
const struct AVProfile * profiles
If non-NULL, an array of profiles recognized for this codec.
const char * long_name
A more descriptive name for this codec.
int(* init)(AVBSFContext *ctx)
AVCodecParser * av_parser_next(const AVCodecParser *c)
static const uint8_t offset[127][2]
transformed exhaustive search algorithm
void avcodec_parameters_free(AVCodecParameters **par)
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied p...
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...
attribute_deprecated int64_t timecode_frame_start
int compensation_distance
#define av_printf_format(fmtpos, attrpos)
attribute_deprecated int b_sensitivity
int priv_data_size
Size of the private data to allocate in AVCodecInternal.hwaccel_priv_data.
int flags
A combination of AV_PKT_FLAG values.
int av_codec_get_lowres(const AVCodecContext *avctx)
reference-counted frame API
const AVCodecDescriptor * avcodec_descriptor_get(enum AVCodecID id)
uint64_t channel_layout
Audio channel layout.
int extradata_size
Size of the extradata content in bytes.
uint32_t end_display_time
int64_t pts
Same as packet pts, in AV_TIME_BASE.
int rc_buffer_size
decoder bitstream buffer size
attribute_deprecated int av_copy_packet(AVPacket *dst, const AVPacket *src)
Copy packet, including contents.
int props
Codec properties, a combination of AV_CODEC_PROP_* flags.
int intra_dc_precision
precision of the intra DC coefficient - 8
int(* encode_sub)(AVCodecContext *, uint8_t *buf, int buf_size, const struct AVSubtitle *sub)
int64_t rc_min_rate
minimum bitrate
int refs
number of reference frames
attribute_deprecated int scenechange_factor
Multiplied by qscale for each frame and added to scene_change_score.
int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf)
Append bitstream filter to the list of bitstream filters.
int block_align
Audio only.
A bitmap, pict will be set.
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
int rc_override_count
ratecontrol override, see RcOverride
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...
const AVClass * av_bsf_get_class(void)
Get the AVClass for AVBSFContext.
audio channel layout utility functions
enum AVPixelFormat * pix_fmts
array of supported pixel formats, or NULL if unknown, array is terminated by -1
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
const char * name
Name of the hardware accelerated codec.
AVPacketSideData * coded_side_data
Additional data associated with the entire coded stream.
attribute_deprecated int avpicture_layout(const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
attribute_deprecated int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
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.
This side data contains quality related information from the encoder.
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...
int(* alloc_frame)(AVCodecContext *avctx, AVFrame *frame)
Allocate a custom buffer.
attribute_deprecated void av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance)
Compensate samplerate/timestamp drift.
int width
picture width / height.
void(* parser_close)(AVCodecParserContext *s)
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
AVBufferRef * hw_frames_ctx
A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames...
int64_t offset
byte offset from starting packet start
attribute_deprecated void av_bitstream_filter_close(AVBitStreamFilterContext *bsf)
Release bitstream filter context.
AVRational time_base_out
The timebase used for the timestamps of the output packets.
attribute_deprecated int noise_reduction
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
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.
void av_parser_close(AVCodecParserContext *s)
attribute_deprecated int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
attribute_deprecated int frame_skip_factor
const AVClass * avcodec_get_subtitle_rect_class(void)
Get the AVClass for AVSubtitleRect.
const AVClass * av_class
A class for logging and AVOptions.
const AVProfile * profiles
array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN} ...
int64_t reordered_opaque
opaque 64-bit 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.
const char * bsfs
Decoding only, a comma-separated list of bitstream filters to apply to packets before decoding...
int skip_top
Number of macroblock rows at the top which are skipped.
enum AVColorRange color_range
Video only.
int mb_decision
macroblock decision mode
int last_predictor_count
amount of previous MV predictors (2a+1 x 2a+1 square)
int max_qdiff
maximum quantizer difference between frames
attribute_deprecated int mb_threshold
attribute_deprecated float rc_qsquish
int64_t cur_frame_end[AV_PARSER_PTS_NB]
Passthrough codec, AVFrames wrapped in AVPacket.
static pthread_mutex_t * mutex
char * sub_charenc
DTS of the last frame.
int64_t cur_frame_pts[AV_PARSER_PTS_NB]
attribute_deprecated int coder_type
preferred ID for MPEG-1/2 video decoding
const AVCodecDescriptor * avcodec_descriptor_get_by_name(const char *name)
int64_t last_pos
Previous frame byte position.
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
int sub_charenc_mode
Subtitles character encoding mode.
attribute_deprecated int max_prediction_order
int av_codec_get_max_lowres(const AVCodec *codec)
void avcodec_flush_buffers(AVCodecContext *avctx)
Reset the internal decoder state / flush internal buffers.
FAKE codec to indicate a MPEG-4 Systems stream (only used by libavformat)
const AVS_VideoInfo int align
attribute_deprecated int i_tex_bits
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)
attribute_deprecated enum AVPixelFormat avcodec_find_best_pix_fmt2(enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
Content light level (based on CTA-861.3).
int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt)
Supply raw packet data as input to a decoder.
const char * av_get_profile_name(const AVCodec *codec, int profile)
Return a name for the specified profile, if available.
int frame_size
Number of samples per channel in an audio frame.
int pts_dts_delta
Presentation delay of current frame in units of AVCodecContext.time_base.
attribute_deprecated int misc_bits
const char * long_name
Descriptive name for the codec, meant to be more human readable than name.
This structure describes the bitrate properties of an encoded bitstream.
AVBSFList * av_bsf_list_alloc(void)
Allocate empty list of bitstream filters.
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
attribute_deprecated void av_log_ask_for_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message asking for a sample.
AVCodecParserContext * av_parser_init(int codec_id)
int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags)
The default callback for AVCodecContext.get_buffer2().
enum AVMediaType codec_type
void(* init_static_data)(struct AVCodec *codec)
Initialize codec static data, called from avcodec_register().
attribute_deprecated int mpeg_quant
const AVRational * supported_framerates
array of supported framerates, or NULL if any, array is terminated by {0,0}
A list of zero terminated key/value strings.
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.
AVSampleFormat
Audio sample formats.
attribute_deprecated int scenechange_threshold
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer...
enum AVCodecID av_get_pcm_codec(enum AVSampleFormat fmt, int be)
Return the PCM codec associated with a sample format.
int seek_preroll
Number of samples to skip after a discontinuity.
attribute_deprecated int prediction_method
void(* close)(AVBSFContext *ctx)
int sample_rate
samples per second
enum AVDiscard skip_idct
Skip IDCT/dequantization for selected frames.
attribute_deprecated int b_frame_strategy
Plain text, the text field must be set by the decoder and is authoritative.
main external API structure.
AVCodec * avcodec_find_decoder(enum AVCodecID id)
Find a registered decoder with a matching codec ID.
uint8_t * av_packet_pack_dictionary(AVDictionary *dict, int *size)
Pack a dictionary for use in side_data.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int qmin
minimum quantizer
int cur_frame_start_index
attribute_deprecated 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.
void avsubtitle_free(AVSubtitle *sub)
Free all allocated data in the given subtitle struct.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
static void encode(AVCodecContext *ctx, AVFrame *frame, AVPacket *pkt, FILE *output)
int avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)
Supply a raw video or audio frame to the encoder.
float spatial_cplx_masking
spatial complexity masking (0-> disabled)
Data found in BlockAdditional element of matroska container.
attribute_deprecated int header_bits
unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
Encode extradata length to a buffer.
uint16_t * intra_matrix
custom intra quantization matrix
int slice_flags
slice flags
Describe the class of an AVClass context structure.
enum AVPixelFormat(* get_format)(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
callback to negotiate the pixelFormat
enum AVColorSpace colorspace
YUV colorspace type.
Rational number (pair of numerator and denominator).
attribute_deprecated int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of video.
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
const char * name
short name for the profile
int avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
Fill the parameters struct based on the values from the supplied codec context.
void av_register_codec_parser(AVCodecParser *parser)
Recommmends skipping the specified number of samples.
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.
int(* filter)(AVBSFContext *ctx, AVPacket *pkt)
int sub_text_format
Control the form of AVSubtitle.rects[N]->ass.
attribute_deprecated void audio_resample_close(ReSampleContext *s)
Free resample context.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
discard useless packets like 0 size packets in avi
refcounted data buffer API
attribute_deprecated int brd_scale
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.
char * codec_whitelist
',' separated list of allowed decoders.
const char * name
Name of the codec described by this descriptor.
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
Initialize the AVCodecContext to use the given AVCodec.
attribute_deprecated int chromaoffset
float b_quant_offset
qscale offset between IP and B-frames
attribute_deprecated int dtg_active_format
DTG active format information (additional aspect ratio information only used in DVB MPEG-2 transport ...
int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
Return audio frame duration.
float qcompress
amount of qscale change between easy & hard scenes (0.0-1.0)
attribute_deprecated int refcounted_frames
If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_dec...
attribute_deprecated int me_threshold
attribute_deprecated int p_tex_bits
uint16_t * inter_matrix
custom inter quantization matrix
AVHWAccel * av_hwaccel_next(const AVHWAccel *hwaccel)
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL...
attribute_deprecated int64_t convergence_duration
int seek_preroll
Audio only.
This struct describes the properties of a single codec described by an AVCodecID. ...
float dark_masking
darkness masking (0-> disabled)
int global_quality
Global quality for codecs which cannot change it per frame.
static int64_t pts
Global timestamp for the audio frames.
int skip_bottom
Number of macroblock rows at the bottom which are skipped.
AVCodec * avcodec_find_decoder_by_name(const char *name)
Find a registered decoder with the specified name.
This side data should be associated with an audio stream and contains ReplayGain information in form ...
int output_picture_number
Picture number incremented in presentation or output order.
float temporal_cplx_masking
temporary complexity masking (0-> disabled)
int bits_per_raw_sample
This is the number of valid bits in each output sample.
const AVClass * priv_class
AVClass for the private context.
#define attribute_deprecated
struct AVCodecContext * avctx
int gop_size
the number of pictures in a group of pictures, or 0 for intra_only
int sample_rate
Audio only.
uint8_t max_lowres
maximum value for lowres supported by the decoder
A reference to a data buffer.
discard all non reference
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
attribute_deprecated 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.
An AV_PKT_DATA_JP_DUALMONO side data packet indicates that the packet may contain "dual mono" audio s...
AVPacketSideData * side_data
Additional packet data that can be provided by the container.
attribute_deprecated int64_t convergence_duration
int mb_cmp
macroblock comparison function (not supported yet)
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...
int(* split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
enum AVChromaLocation avcodec_chroma_pos_to_enum(int xpos, int ypos)
Converts swscale x/y chroma position to AVChromaLocation.
AVRational av_codec_get_pkt_timebase(const AVCodecContext *avctx)
Utilties for rational number calculation.
attribute_deprecated void void av_register_hwaccel(AVHWAccel *hwaccel)
Register the hardware accelerator hwaccel.
attribute_deprecated void avpicture_free(AVPicture *picture)
attribute_deprecated int rtp_payload_size
int profile
Codec-specific bitstream restrictions that the stream conforms to.
int(* uninit)(AVCodecContext *avctx)
Uninitialize the hwaccel private data.
attribute_deprecated float border_masking
uint32_t start_display_time
int av_codec_get_seek_preroll(const AVCodecContext *avctx)
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...
void av_codec_set_codec_descriptor(AVCodecContext *avctx, const AVCodecDescriptor *desc)
attribute_deprecated AVFrame * coded_frame
the picture in the bitstream
int workaround_bugs
Work around bugs in encoders which sometimes cannot be detected automatically.
enum AVCodecID id
Codec implemented by the hardware accelerator.
attribute_deprecated AVBitStreamFilter * av_bitstream_filter_next(const AVBitStreamFilter *f)
If f is NULL, return the first registered bitstream filter, if f is non-NULL, return the next registe...
int64_t cur_frame_offset[AV_PARSER_PTS_NB]
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
int caps_internal
Internal codec capabilities.
unsigned properties
Properties of the stream that gets decoded.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
enum AVDiscard skip_loop_filter
Skip loop filtering for selected frames.
int thread_safe_callbacks
Set by the client if its custom get_buffer() callback can be called synchronously from another thread...
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
attribute_deprecated float rc_qmod_amp
attribute_deprecated void av_picture_copy(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height)
int trellis
trellis RD quantization
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
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
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.
void av_codec_set_seek_preroll(AVCodecContext *avctx, int val)
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.
FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
Formatted text, the ass field must be set by the decoder and is authoritative.
int dia_size
ME diamond size & shape.
uint8_t * dump_separator
dump format separator.
attribute_deprecated int frame_bits
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.
uneven multi-hexagon search
attribute_deprecated int me_penalty_compensation
attribute_deprecated int min_prediction_order
as in Berlin toast format
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 avg_bitrate
Average bitrate of the stream, in bits per second.
char * args
Internal default arguments, used if NULL is passed to av_bitstream_filter_filter().
int channels
number of audio channels
int frame_priv_data_size
Size of per-frame hardware accelerator private data.
const int * supported_samplerates
array of supported audio samplerates, or NULL if unknown, array is terminated by 0 ...
int format
The format of the coded data, corresponds to enum AVPixelFormat for video and for enum AVSampleFormat...
unsigned avcodec_version(void)
Return the LIBAVCODEC_VERSION_INT constant.
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
char * ass
0 terminated ASS/SSA compatible event line.
This side data corresponds to the AVCPBProperties struct.
attribute_deprecated int p_count
attribute_deprecated int error_rate
unsigned av_codec_get_codec_properties(const AVCodecContext *avctx)
int mv0_threshold
Note: Value depends upon the compare function used for fullpel ME.
int flags2
AV_CODEC_FLAG2_*.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
attribute_deprecated void av_register_bitstream_filter(AVBitStreamFilter *bsf)
Register a bitstream filter.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
const struct AVBitStreamFilter * filter
void avcodec_register(AVCodec *codec)
Register the codec codec and initialize libavcodec.
int64_t pts_correction_last_dts
PTS of the last frame.
const char * av_packet_side_data_name(enum AVPacketSideDataType type)
int * slice_offset
slice offsets in the frame in bytes
int frame_number
Frame counter, set by libavcodec.
attribute_deprecated void av_free_packet(AVPacket *pkt)
Free a packet.
int repeat_pict
This field is used for proper frame duration computation in lavf.
int64_t pts_correction_num_faulty_pts
Current statistics for PTS correction.
enum AVFieldOrder field_order
Field order.
int(* receive_packet)(AVCodecContext *avctx, AVPacket *avpkt)
AVChromaLocation
Location of chroma samples.
int hwaccel_flags
Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated decoding (if active)...
enum AVSampleFormat * sample_fmts
array of supported sample formats, or NULL if unknown, array is terminated by -1
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
attribute_deprecated int lmin
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Allocate new information of a packet.
int(* decode_slice)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
Callback for each slice.
const char *const * mime_types
MIME type(s) associated with the codec.
int(* init)(AVCodecContext *)
AVBufferRef * hw_device_ctx
A reference to the AVHWDeviceContext describing the device which will be used by a hardware encoder/d...
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 me_pre_cmp
motion estimation prepass comparison function
The number of side data elements (in fact a bit more than it).
AVPixelFormat
Pixel format.
This structure stores compressed data.
const char * avcodec_profile_name(enum AVCodecID codec_id, int profile)
Return a name for the specified profile, if available.
AVCodecParameters * par_in
Parameters of the input stream.
int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub)
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.
int me_subpel_quality
subpel ME quality
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
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...
enum AVPixelFormat sw_pix_fmt
Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.
A dummy ID pointing at the start of subtitle codecs.
void * opaque
Private data of the user, can be used to carry app specific stuff.
int thread_type
Which multithreading methods to use.
int avcodec_default_execute(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf)
Finalize list of bitstream filters.
int64_t rc_max_rate
maximum bitrate
attribute_deprecated int pre_me
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.
uint8_t * subtitle_header
Header containing style information for text subtitles.
int keyint_min
minimum GOP size
int(* receive_frame)(AVCodecContext *avctx, AVFrame *frame)
Decode API with decoupled packet/frame dataflow.