21 #ifndef AVCODEC_AVCODEC_H
22 #define AVCODEC_AVCODEC_H
44 #if FF_API_FAST_MALLOC
112 AV_CODEC_ID_MPEG2VIDEO_XVMC,
489 #define AV_CODEC_PROP_INTRA_ONLY (1 << 0)
495 #define AV_CODEC_PROP_LOSSY (1 << 1)
499 #define AV_CODEC_PROP_LOSSLESS (1 << 2)
509 #define FF_INPUT_BUFFER_PADDING_SIZE 8
516 #define FF_MIN_BUFFER_SIZE 16384
639 #if FF_API_MAX_BFRAMES
643 #define FF_MAX_B_FRAMES 16
655 #define CODEC_FLAG_UNALIGNED 0x0001
656 #define CODEC_FLAG_QSCALE 0x0002
657 #define CODEC_FLAG_4MV 0x0004
658 #define CODEC_FLAG_OUTPUT_CORRUPT 0x0008
659 #define CODEC_FLAG_QPEL 0x0010
660 #define CODEC_FLAG_GMC 0x0020
661 #define CODEC_FLAG_MV0 0x0040
667 #define CODEC_FLAG_INPUT_PRESERVED 0x0100
668 #define CODEC_FLAG_PASS1 0x0200
669 #define CODEC_FLAG_PASS2 0x0400
670 #define CODEC_FLAG_GRAY 0x2000
676 #define CODEC_FLAG_EMU_EDGE 0x4000
678 #define CODEC_FLAG_PSNR 0x8000
679 #define CODEC_FLAG_TRUNCATED 0x00010000
681 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000
682 #define CODEC_FLAG_INTERLACED_DCT 0x00040000
683 #define CODEC_FLAG_LOW_DELAY 0x00080000
684 #define CODEC_FLAG_GLOBAL_HEADER 0x00400000
685 #define CODEC_FLAG_BITEXACT 0x00800000
687 #define CODEC_FLAG_AC_PRED 0x01000000
688 #define CODEC_FLAG_LOOP_FILTER 0x00000800
689 #define CODEC_FLAG_INTERLACED_ME 0x20000000
690 #define CODEC_FLAG_CLOSED_GOP 0x80000000
691 #define CODEC_FLAG2_FAST 0x00000001
692 #define CODEC_FLAG2_NO_OUTPUT 0x00000004
693 #define CODEC_FLAG2_LOCAL_HEADER 0x00000008
694 #define CODEC_FLAG2_IGNORE_CROP 0x00010000
696 #define CODEC_FLAG2_CHUNKS 0x00008000
705 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001
711 #define CODEC_CAP_DR1 0x0002
712 #define CODEC_CAP_TRUNCATED 0x0008
715 #define CODEC_CAP_HWACCEL 0x0010
740 #define CODEC_CAP_DELAY 0x0020
745 #define CODEC_CAP_SMALL_LAST_FRAME 0x0040
750 #define CODEC_CAP_HWACCEL_VDPAU 0x0080
763 #define CODEC_CAP_SUBFRAMES 0x0100
768 #define CODEC_CAP_EXPERIMENTAL 0x0200
772 #define CODEC_CAP_CHANNEL_CONF 0x0400
773 #if FF_API_NEG_LINESIZES
777 #define CODEC_CAP_NEG_LINESIZES 0x0800
782 #define CODEC_CAP_FRAME_THREADS 0x1000
786 #define CODEC_CAP_SLICE_THREADS 0x2000
790 #define CODEC_CAP_PARAM_CHANGE 0x4000
794 #define CODEC_CAP_AUTO_THREADS 0x8000
798 #define CODEC_CAP_VARIABLE_FRAME_SIZE 0x10000
802 #define MB_TYPE_INTRA4x4 0x0001
803 #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific
804 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME H.264-specific
805 #define MB_TYPE_16x16 0x0008
806 #define MB_TYPE_16x8 0x0010
807 #define MB_TYPE_8x16 0x0020
808 #define MB_TYPE_8x8 0x0040
809 #define MB_TYPE_INTERLACED 0x0080
810 #define MB_TYPE_DIRECT2 0x0100 //FIXME
811 #define MB_TYPE_ACPRED 0x0200
812 #define MB_TYPE_GMC 0x0400
813 #define MB_TYPE_SKIP 0x0800
814 #define MB_TYPE_P0L0 0x1000
815 #define MB_TYPE_P1L0 0x2000
816 #define MB_TYPE_P0L1 0x4000
817 #define MB_TYPE_P1L1 0x8000
818 #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
819 #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
820 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
821 #define MB_TYPE_QUANT 0x00010000
822 #define MB_TYPE_CBP 0x00020000
855 #if FF_API_QSCALE_TYPE
856 #define FF_QSCALE_TYPE_MPEG1 0
857 #define FF_QSCALE_TYPE_MPEG2 1
858 #define FF_QSCALE_TYPE_H264 2
859 #define FF_QSCALE_TYPE_VP56 3
862 #if FF_API_GET_BUFFER
863 #define FF_BUFFER_TYPE_INTERNAL 1
864 #define FF_BUFFER_TYPE_USER 2
865 #define FF_BUFFER_TYPE_SHARED 4
866 #define FF_BUFFER_TYPE_COPY 8
868 #define FF_BUFFER_HINTS_VALID 0x01 // Buffer hints value is meaningful (if 0 ignore).
869 #define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer.
870 #define FF_BUFFER_HINTS_PRESERVE 0x04 // User must not alter buffer content.
871 #define FF_BUFFER_HINTS_REUSABLE 0x08 // Codec will reuse the buffer (update).
877 #define AV_GET_BUFFER_FLAG_REF (1 << 0)
996 #if FF_API_DESTRUCT_PACKET
1023 #define AV_PKT_FLAG_KEY 0x0001
1024 #define AV_PKT_FLAG_CORRUPT 0x0002
1135 #define FF_COMPRESSION_DEFAULT -1
1229 #if FF_API_ASPECT_EXTENDED
1230 #define FF_ASPECT_EXTENDED 15
1283 int y,
int type,
int height);
1315 #define FF_RC_STRATEGY_XVID 1
1404 #define FF_PRED_LEFT 0
1405 #define FF_PRED_PLANE 1
1406 #define FF_PRED_MEDIAN 2
1448 #define FF_CMP_SAD 0
1449 #define FF_CMP_SSE 1
1450 #define FF_CMP_SATD 2
1451 #define FF_CMP_DCT 3
1452 #define FF_CMP_PSNR 4
1453 #define FF_CMP_BIT 5
1455 #define FF_CMP_ZERO 7
1456 #define FF_CMP_VSAD 8
1457 #define FF_CMP_VSSE 9
1458 #define FF_CMP_NSSE 10
1459 #define FF_CMP_DCTMAX 13
1460 #define FF_CMP_DCT264 14
1461 #define FF_CMP_CHROMA 256
1514 #define FF_DTG_AFD_SAME 8
1515 #define FF_DTG_AFD_4_3 9
1516 #define FF_DTG_AFD_16_9 10
1517 #define FF_DTG_AFD_14_9 11
1518 #define FF_DTG_AFD_4_3_SP_14_9 13
1519 #define FF_DTG_AFD_16_9_SP_14_9 14
1520 #define FF_DTG_AFD_SP_4_3 15
1537 #define FF_DEFAULT_QUANT_BIAS 999999
1552 #define SLICE_FLAG_CODED_ORDER 0x0001
1553 #define SLICE_FLAG_ALLOW_FIELD 0x0002
1554 #define SLICE_FLAG_ALLOW_PLANE 0x0004
1572 #define FF_MB_DECISION_SIMPLE 0
1573 #define FF_MB_DECISION_BITS 1
1574 #define FF_MB_DECISION_RD 2
1825 #if FF_API_REQUEST_CHANNELS
1863 #if FF_API_GET_BUFFER
2154 #define FF_CODER_TYPE_VLC 0
2155 #define FF_CODER_TYPE_AC 1
2156 #define FF_CODER_TYPE_RAW 2
2157 #define FF_CODER_TYPE_RLE 3
2158 #define FF_CODER_TYPE_DEFLATE 4
2294 #define FF_BUG_AUTODETECT 1
2295 #if FF_API_OLD_MSMPEG4
2296 #define FF_BUG_OLD_MSMPEG4 2
2298 #define FF_BUG_XVID_ILACE 4
2299 #define FF_BUG_UMP4 8
2300 #define FF_BUG_NO_PADDING 16
2301 #define FF_BUG_AMV 32
2303 #define FF_BUG_AC_VLC 0
2305 #define FF_BUG_QPEL_CHROMA 64
2306 #define FF_BUG_STD_QPEL 128
2307 #define FF_BUG_QPEL_CHROMA2 256
2308 #define FF_BUG_DIRECT_BLOCKSIZE 512
2309 #define FF_BUG_EDGE 1024
2310 #define FF_BUG_HPEL_CHROMA 2048
2311 #define FF_BUG_DC_CLIP 4096
2312 #define FF_BUG_MS 8192
2313 #define FF_BUG_TRUNCATED 16384
2328 #define FF_COMPLIANCE_VERY_STRICT 2
2329 #define FF_COMPLIANCE_STRICT 1
2330 #define FF_COMPLIANCE_NORMAL 0
2331 #define FF_COMPLIANCE_UNOFFICIAL -1
2332 #define FF_COMPLIANCE_EXPERIMENTAL -2
2340 #define FF_EC_GUESS_MVS 1
2341 #define FF_EC_DEBLOCK 2
2349 #define FF_DEBUG_PICT_INFO 1
2350 #define FF_DEBUG_RC 2
2351 #define FF_DEBUG_BITSTREAM 4
2352 #define FF_DEBUG_MB_TYPE 8
2353 #define FF_DEBUG_QP 16
2358 #define FF_DEBUG_MV 32
2360 #define FF_DEBUG_DCT_COEFF 0x00000040
2361 #define FF_DEBUG_SKIP 0x00000080
2362 #define FF_DEBUG_STARTCODE 0x00000100
2363 #define FF_DEBUG_PTS 0x00000200
2364 #define FF_DEBUG_ER 0x00000400
2365 #define FF_DEBUG_MMCO 0x00000800
2366 #define FF_DEBUG_BUGS 0x00001000
2368 #define FF_DEBUG_VIS_QP 0x00002000
2369 #define FF_DEBUG_VIS_MB_TYPE 0x00004000
2371 #define FF_DEBUG_BUFFERS 0x00008000
2372 #define FF_DEBUG_THREADS 0x00010000
2380 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
2381 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
2382 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
2398 #define AV_EF_CRCCHECK (1<<0)
2399 #define AV_EF_BITSTREAM (1<<1)
2400 #define AV_EF_BUFFER (1<<2)
2401 #define AV_EF_EXPLODE (1<<3)
2444 #define FF_DCT_AUTO 0
2445 #define FF_DCT_FASTINT 1
2446 #define FF_DCT_INT 2
2447 #define FF_DCT_MMX 3
2448 #define FF_DCT_ALTIVEC 5
2449 #define FF_DCT_FAAN 6
2457 #define FF_IDCT_AUTO 0
2458 #define FF_IDCT_INT 1
2459 #define FF_IDCT_SIMPLE 2
2460 #define FF_IDCT_SIMPLEMMX 3
2461 #define FF_IDCT_ARM 7
2462 #define FF_IDCT_ALTIVEC 8
2463 #define FF_IDCT_SH4 9
2464 #define FF_IDCT_SIMPLEARM 10
2465 #define FF_IDCT_IPP 13
2466 #define FF_IDCT_XVIDMMX 14
2467 #define FF_IDCT_SIMPLEARMV5TE 16
2468 #define FF_IDCT_SIMPLEARMV6 17
2469 #define FF_IDCT_SIMPLEVIS 18
2470 #define FF_IDCT_FAAN 20
2471 #define FF_IDCT_SIMPLENEON 22
2472 #if FF_API_ARCH_ALPHA
2473 #define FF_IDCT_SIMPLEALPHA 23
2525 #define FF_THREAD_FRAME 1
2526 #define FF_THREAD_SLICE 2
2576 #if FF_API_THREAD_OPAQUE
2597 #define FF_PROFILE_UNKNOWN -99
2598 #define FF_PROFILE_RESERVED -100
2600 #define FF_PROFILE_AAC_MAIN 0
2601 #define FF_PROFILE_AAC_LOW 1
2602 #define FF_PROFILE_AAC_SSR 2
2603 #define FF_PROFILE_AAC_LTP 3
2604 #define FF_PROFILE_AAC_HE 4
2605 #define FF_PROFILE_AAC_HE_V2 28
2606 #define FF_PROFILE_AAC_LD 22
2607 #define FF_PROFILE_AAC_ELD 38
2608 #define FF_PROFILE_MPEG2_AAC_LOW 128
2609 #define FF_PROFILE_MPEG2_AAC_HE 131
2611 #define FF_PROFILE_DTS 20
2612 #define FF_PROFILE_DTS_ES 30
2613 #define FF_PROFILE_DTS_96_24 40
2614 #define FF_PROFILE_DTS_HD_HRA 50
2615 #define FF_PROFILE_DTS_HD_MA 60
2617 #define FF_PROFILE_MPEG2_422 0
2618 #define FF_PROFILE_MPEG2_HIGH 1
2619 #define FF_PROFILE_MPEG2_SS 2
2620 #define FF_PROFILE_MPEG2_SNR_SCALABLE 3
2621 #define FF_PROFILE_MPEG2_MAIN 4
2622 #define FF_PROFILE_MPEG2_SIMPLE 5
2624 #define FF_PROFILE_H264_CONSTRAINED (1<<9) // 8+1; constraint_set1_flag
2625 #define FF_PROFILE_H264_INTRA (1<<11) // 8+3; constraint_set3_flag
2627 #define FF_PROFILE_H264_BASELINE 66
2628 #define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
2629 #define FF_PROFILE_H264_MAIN 77
2630 #define FF_PROFILE_H264_EXTENDED 88
2631 #define FF_PROFILE_H264_HIGH 100
2632 #define FF_PROFILE_H264_HIGH_10 110
2633 #define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
2634 #define FF_PROFILE_H264_HIGH_422 122
2635 #define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
2636 #define FF_PROFILE_H264_HIGH_444 144
2637 #define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
2638 #define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
2639 #define FF_PROFILE_H264_CAVLC_444 44
2641 #define FF_PROFILE_VC1_SIMPLE 0
2642 #define FF_PROFILE_VC1_MAIN 1
2643 #define FF_PROFILE_VC1_COMPLEX 2
2644 #define FF_PROFILE_VC1_ADVANCED 3
2646 #define FF_PROFILE_MPEG4_SIMPLE 0
2647 #define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
2648 #define FF_PROFILE_MPEG4_CORE 2
2649 #define FF_PROFILE_MPEG4_MAIN 3
2650 #define FF_PROFILE_MPEG4_N_BIT 4
2651 #define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
2652 #define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
2653 #define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
2654 #define FF_PROFILE_MPEG4_HYBRID 8
2655 #define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
2656 #define FF_PROFILE_MPEG4_CORE_SCALABLE 10
2657 #define FF_PROFILE_MPEG4_ADVANCED_CODING 11
2658 #define FF_PROFILE_MPEG4_ADVANCED_CORE 12
2659 #define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
2660 #define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
2661 #define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
2663 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 0
2664 #define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 1
2665 #define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 2
2666 #define FF_PROFILE_JPEG2000_DCINEMA_2K 3
2667 #define FF_PROFILE_JPEG2000_DCINEMA_4K 4
2670 #define FF_PROFILE_HEVC_MAIN 1
2671 #define FF_PROFILE_HEVC_MAIN_10 2
2672 #define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
2680 #define FF_LEVEL_UNKNOWN -99
2714 #if FF_API_ERROR_RATE
2723 #if FF_API_CODEC_PKT
2839 int *got_packet_ptr);
2959 #define AVPALETTE_SIZE 1024
2960 #define AVPALETTE_COUNT 256
2980 #define AV_SUBTITLE_FLAG_FORCED 0x00000001
3109 #if FF_API_AVFRAME_LAVC
3114 AVFrame *avcodec_alloc_frame(
void);
3124 void avcodec_get_frame_defaults(
AVFrame *frame);
3139 void avcodec_free_frame(
AVFrame **frame);
3207 #if FF_API_DESTRUCT_PACKET
3398 #if FF_API_GET_BUFFER
3494 int *got_frame_ptr,
AVPacket *avpkt);
3537 int *got_picture_ptr,
3599 #define AV_PARSER_PTS_NB 4
3606 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001
3607 #define PARSER_FLAG_ONCE 0x0002
3608 #define PARSER_FLAG_FETCHED_OFFSET 0x0004
3733 const uint8_t **poutbuf,
int *poutbuf_size,
3734 const uint8_t *buf,
int buf_size);
3775 uint8_t **poutbuf,
int *poutbuf_size,
3776 const uint8_t *buf,
int buf_size,
3777 int64_t pts, int64_t dts,
3786 uint8_t **poutbuf,
int *poutbuf_size,
3787 const uint8_t *buf,
int buf_size,
int keyframe);
3855 const AVFrame *frame,
int *got_packet_ptr);
3892 const AVFrame *frame,
int *got_packet_ptr);
3969 unsigned char *dest,
int dest_size);
3985 #if FF_API_DEINTERLACE
4011 int padtop,
int padbottom,
int padleft,
int padright,
int *
color);
4046 #define FF_LOSS_RESOLUTION 0x0001
4047 #define FF_LOSS_DEPTH 0x0002
4048 #define FF_LOSS_COLORSPACE 0x0004
4049 #define FF_LOSS_ALPHA 0x0008
4050 #define FF_LOSS_COLORQUANT 0x0010
4051 #define FF_LOSS_CHROMA 0x0020
4070 int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt,
4092 int has_alpha,
int *loss_ptr);
4100 #if FF_API_SET_DIMENSIONS
4152 int buf_size,
int align);
4207 uint8_t **poutbuf,
int *poutbuf_size,
4208 const uint8_t *buf,
int buf_size,
int keyframe);
4217 uint8_t **poutbuf,
int *poutbuf_size,
4218 const uint8_t *buf,
int buf_size,
int keyframe);
4241 unsigned int av_xiphlacing(
unsigned char *s,
unsigned int v);
4243 #if FF_API_MISSING_SAMPLE
codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it ...
int(* parser_init)(AVCodecParserContext *s)
const struct AVCodec * codec
discard all frames except keyframes
AVSideDataParamChangeFlags
unsigned int stream_codec_tag
fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + ...
int(* start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
Called at the beginning of each frame or field picture.
attribute_deprecated int lowres
low resolution decoding, 1-> 1/2 size, 2->1/4 size
#define AV_NUM_DATA_POINTERS
int linesize[AV_NUM_DATA_POINTERS]
number of bytes per line
void av_free_packet(AVPacket *pkt)
Free a packet.
This structure describes decoded (raw) audio or video data.
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.
ITU-R BT2020 constant luminance system.
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.
A dummy id pointing at the start of audio codecs.
attribute_deprecated int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height)
deinterlace - if not supported return -1
IEC 61966-2-1 (sRGB or sYCC)
uint64_t error[AV_NUM_DATA_POINTERS]
error
int avpicture_fill(AVPicture *picture, uint8_t *ptr, enum AVPixelFormat pix_fmt, int width, int height)
Fill in the AVPicture fields.
int coded_width
Bitstream width / height, may be different from width/height e.g.
also ITU-R BT601-6 525 or 625 / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC
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)
float border_masking
Border processing masking, raises the quantizer for mbs on the borders of the picture.
memory handling functions
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 int request_channels
Decoder should decode to this many channels if it can (0 for default)
int64_t next_frame_offset
AVFrame * coded_frame
the picture in the bitstream
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 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.
const char * avcodec_configuration(void)
Return the libavcodec build-time configuration.
enum AVColorRange color_range
MPEG vs JPEG YUV range.
"Logarithmic transfer characteristic (100:1 range)"
enum AVFieldOrder field_order
struct AVBitStreamFilter * next
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
const char * avcodec_license(void)
Return the libavcodec license.
enhanced predictive zonal search
enum AVPixelFormat pix_fmt
Supported pixel format.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
int av_picture_crop(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int top_band, int left_band)
Crop image top and left side.
void attribute_deprecated avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int avpicture_layout(const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
Copy pixel data from an AVPicture into a buffer.
void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size)
Allocate a buffer with padding, reusing the given one if large enough.
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
attribute_deprecated void * thread_opaque
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(* decode)(AVCodecContext *, void *outdata, int *outdata_size, AVPacket *avpkt)
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 ...
int duration
Duration of the current frame.
int intra_quant_bias
intra quantizer bias
int64_t cur_frame_pos[AV_PARSER_PTS_NB]
Position of the packet in file.
int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of audio.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
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.
attribute_deprecated void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic)
int av_dup_packet(AVPacket *pkt)
attribute_deprecated int(* get_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of each frame to get a buffer for it.
four components are given, that's all.
int lmax
maximum Lagrange multipler
int frame_skip_cmp
frame skip comparison function
An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of structures with info about macroblo...
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
float i_quant_offset
qscale offset between P and I-frames
AVLockOp
Lock operation used by lockmgr.
uint64_t vbv_delay
VBV delay coded in the last frame (in periods of a 27 MHz clock).
attribute_deprecated void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
char * text
0 terminated plain UTF-8 text
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 ...
int scenechange_threshold
scene change detection threshold 0 is default, larger means fewer detected scene changes.
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.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
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_picture_copy(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height)
Copy image src to dst.
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.
enum AVDiscard skip_frame
"Linear transfer characteristics"
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
int av_codec_is_encoder(const AVCodec *codec)
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
struct AVHWAccel * hwaccel
Hardware accelerator in use.
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
enum AVPictureStructure picture_structure
Indicate whether a picture is coded as a frame, top field or bottom field.
enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
enum AVSampleFormat sample_fmt
audio sample format
void * hwaccel_context
Hardware accelerator context.
int av_parser_change(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
int me_range
maximum motion estimation search range in subpel units If 0 then no limit.
attribute_deprecated void(* destruct)(struct AVPacket *)
uint8_t * data[AV_NUM_DATA_POINTERS]
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.
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.
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 scenechange_factor
Multiplied by qscale for each frame and added to scene_change_score.
int me_cmp
motion estimation comparison function
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Encode a frame of video.
also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM
struct AVCodecParser * next
int rc_strategy
obsolete FIXME remove
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
int mb_threshold
Macroblock threshold below which the user specified macroblock types will be used.
Motion_Est_ID
motion estimation type.
attribute_deprecated int(* reget_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of a frame to get cr buffer for it.
int(* parser_parse)(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
int h
height of pict, undefined when pict is not set
void avpicture_free(AVPicture *picture)
Free a picture previously allocated by avpicture_alloc().
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 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.
AVCodec * avcodec_find_encoder_by_name(const char *name)
Find a registered encoder with the specified name.
int chromaoffset
chroma qp offset from luma
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...
int slice_count
slice count
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.
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
AVHWAccel * av_hwaccel_next(AVHWAccel *hwaccel)
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL...
const AVCodecDefault * defaults
Private codec-specific defaults.
AVCodecID
Identify the syntax and semantics of the bitstream.
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.
int64_t pos
Byte position of currently parsed frame in stream.
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:
int frame_skip_threshold
frame skip threshold
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.
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
Used to request a sample format from the decoder.
int active_thread_type
Which multithreading methods are in use by the codec.
int avcodec_is_open(AVCodecContext *s)
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.
void av_bitstream_filter_close(AVBitStreamFilterContext *bsf)
preferred ID for decoding MPEG audio layer 1, 2 or 3
AVBufferRef * buf
A reference to the reference-counted buffer where the packet data is stored.
int rc_max_rate
maximum bitrate
enum AVMediaType avcodec_get_type(enum AVCodecID codec_id)
Get the type of the given codec.
AVBitStreamFilter * av_bitstream_filter_next(AVBitStreamFilter *f)
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*...
const char * rc_eq
rate control equation
int width
width and height in 1/16 pel
int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Shrink the already allocated side data buffer.
const char * long_name
A more descriptive name for this codec.
transformed exhaustive search algorithm
functionally identical to above
AVCodecParser * av_parser_next(AVCodecParser *c)
#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.
reference-counted frame API
const AVCodecDescriptor * avcodec_descriptor_get(enum AVCodecID id)
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
the normal 2^n-1 "JPEG" YUV ranges
int props
Codec properties, a combination of AV_CODEC_PROP_* flags.
int intra_dc_precision
precision of the intra DC coefficient - 8
int me_penalty_compensation
int(* encode_sub)(AVCodecContext *, uint8_t *buf, int buf_size, const struct AVSubtitle *sub)
int dtg_active_format
DTG active format information (additional aspect ratio information only used in DVB MPEG-2 transport ...
the normal 219*2^(n-8) "MPEG" YUV ranges
int refs
number of reference frames
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...
int bit_rate
the average bitrate
int64_t timecode_frame_start
GOP timecode frame start number, in non drop frame format.
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.
AVPicture pict
data+linesize for the bitmap of this subtitle.
const char * name
Name of the hardware accelerated codec.
int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
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.
int width
picture width / height.
void(* parser_close)(AVCodecParserContext *s)
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
int64_t offset
byte offset from starting packet start
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.
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 av_parser_close(AVCodecParserContext *s)
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
void av_register_bitstream_filter(AVBitStreamFilter *bsf)
float rc_qsquish
ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continuous function to limit qscal...
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 refcounted_frames
If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_dec...
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
int last_predictor_count
amount of previous MV predictors (2a+1 x 2a+1 square)
int max_qdiff
maximum quantizer difference between frames
enum AVPixelFormat pix_fmt
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]
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.
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
int inter_quant_bias
inter quantizer bias
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)
int frame_skip_factor
frame skip factor
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 void av_destruct_packet(AVPacket *pkt)
Default packet destructor.
const char * long_name
Descriptive name for the codec, meant to be more human readable than name.
float rc_initial_cplx
initial complexity for pass1 ratecontrol
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)
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().
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
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}
attribute_deprecated int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic)
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
int sample_rate
samples per second
int frame_bits
number of bits used for the previously encoded frame
attribute_deprecated AVPacket * pkt
Plain text, the text field must be set by the decoder and is authoritative.
ITU-R BT2020 for 12 bit system.
main external API structure.
AVCodec * avcodec_find_decoder(enum AVCodecID id)
Find a registered decoder with a matching codec ID.
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int pre_me
prepass for motion estimation
int qmin
minimum quantizer
int cur_frame_start_index
ITU-R BT2020 for 10 bit system.
AVColorTransferCharacteristic
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').
Used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16.
float spatial_cplx_masking
spatial complexity masking (0-> disabled)
unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
Encode extradata length to a buffer.
struct AVBitStreamFilter * filter
uint16_t * intra_matrix
custom intra quantization matrix
int slice_flags
slice flags
Describe the class of an AVClass context structure.
int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height)
Allocate memory for a picture.
enum AVPixelFormat(* get_format)(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
callback to negotiate the pixelFormat
float rc_buffer_aggressivity
enum AVColorSpace colorspace
YUV colorspace type.
rational number numerator/denominator
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
const char * name
short name for the profile
void av_register_codec_parser(AVCodecParser *parser)
attribute_deprecated int debug_mv
discard useless packets like 0 size packets in avi
refcounted data buffer API
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.
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.
float b_quant_offset
qscale offset between IP and B-frames
attribute_deprecated void * priv
int frame_skip_exp
frame skip exponent
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)
uint16_t * inter_matrix
custom inter quantization matrix
void(* close)(AVBitStreamFilterContext *bsfc)
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.
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.
int output_picture_number
Picture number incremented in presentation or output order.
float temporal_cplx_masking
temporary complexity masking (0-> disabled)
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
const AVClass * priv_class
AVClass for the private context.
#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)
int gop_size
the number of pictures in a group of pictures, or 0 for intra_only
const OptionDef options[]
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.
int mb_cmp
macroblock comparison function (not supported yet)
int(* split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
attribute_deprecated void void av_register_hwaccel(AVHWAccel *hwaccel)
Register the hardware accelerator hwaccel.
uint32_t start_display_time
int prediction_method
prediction method (needed for huffyuv)
AVSampleFormat
Audio Sample Formats.
int workaround_bugs
Work around bugs in encoders which sometimes cannot be detected automatically.
enum AVCodecID id
Codec implemented by the hardware accelerator.
int64_t cur_frame_offset[AV_PARSER_PTS_NB]
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
enum AVDiscard skip_loop_filter
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)
Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaul...
static const uint8_t color[]
int trellis
trellis RD quantization
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
int av_packet_ref(AVPacket *dst, AVPacket *src)
Setup a new reference to the data described by a given packet.
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.
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.
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.
uneven multi-hexagon search
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 channels
number of audio channels
const int * supported_samplerates
array of supported audio samplerates, or NULL if unknown, array is terminated by 0 ...
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)
Pad image.
int avpicture_get_size(enum AVPixelFormat 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...
unsigned avcodec_version(void)
Return the LIBAVCODEC_VERSION_INT constant.
char * ass
0 terminated ASS/SSA compatible event line.
struct AVPacket::@11 * side_data
Additional packet data that can be provided by the container.
attribute_deprecated int error_rate
int mv0_threshold
Note: Value depends upon the compare function used for fullpel ME.
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.
enum AVPixelFormat avcodec_find_best_pix_fmt2(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.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
void avcodec_register(AVCodec *codec)
Register the codec codec and initialize libavcodec.
int * slice_offset
slice offsets in the frame in bytes
int frame_number
Frame counter, set by libavcodec.
int repeat_pict
This field is used for proper frame duration computation in lavf.
also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
enum AVFieldOrder field_order
Field order.
ITU-R BT2020 non-constant luminance system.
uint8_t * av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
"Logarithmic transfer characteristic (100 * Sqrt( 10 ) : 1 range)"
enum AVPacketSideDataType type
enum AVSampleFormat * sample_fmts
array of supported sample formats, or NULL if unknown, array is terminated by -1
attribute_deprecated uint8_t max_lowres
maximum value for lowres supported by the decoder
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 ...
int me_method
Motion estimation algorithm used for video coding.
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.
int rc_min_rate
minimum bitrate
int(* init)(AVCodecContext *)
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
AVPixelFormat
Pixel format.
This structure stores compressed data.
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 (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...
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.
ITU-R BT1361 Extended Colour Gamut.
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)
uint8_t * subtitle_header
Header containing style information for text subtitles.
int keyint_min
minimum GOP size
attribute_deprecated int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic)
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.
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC / functionally identical to above ...