FFmpeg
4.0
|
Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc. More...
Modules | |
AVPacket | |
Types and functions for working with AVPacket. | |
AVHWAccel | |
AVPicture | |
Functions for working with AVPicture. | |
Data Structures | |
struct | AVCodecDescriptor |
This struct describes the properties of a single codec described by an AVCodecID. More... | |
struct | RcOverride |
struct | AVPanScan |
Pan Scan area. More... | |
struct | AVCPBProperties |
This structure describes the bitrate properties of an encoded bitstream. More... | |
struct | AVCodecContext |
main external API structure. More... | |
struct | AVProfile |
AVProfile. More... | |
struct | AVCodecHWConfig |
struct | AVCodec |
AVCodec. More... | |
struct | AVSubtitleRect |
struct | AVSubtitle |
struct | AVCodecParameters |
This struct describes the properties of an encoded stream. More... | |
Macros | |
#define | AV_CODEC_PROP_INTRA_ONLY (1 << 0) |
Codec uses only intra compression. More... | |
#define | AV_CODEC_PROP_LOSSY (1 << 1) |
Codec supports lossy compression. More... | |
#define | AV_CODEC_PROP_LOSSLESS (1 << 2) |
Codec supports lossless compression. More... | |
#define | AV_CODEC_PROP_REORDER (1 << 3) |
Codec supports frame reordering. More... | |
#define | AV_CODEC_PROP_BITMAP_SUB (1 << 16) |
Subtitle codec is bitmap based Decoded AVSubtitle data can be read from the AVSubtitleRect->pict field. More... | |
#define | AV_CODEC_PROP_TEXT_SUB (1 << 17) |
Subtitle codec is text based. More... | |
#define | AV_CODEC_FLAG_UNALIGNED (1 << 0) |
Allow decoders to produce frames with data planes that are not aligned to CPU requirements (e.g. More... | |
#define | AV_CODEC_FLAG_QSCALE (1 << 1) |
Use fixed qscale. More... | |
#define | AV_CODEC_FLAG_4MV (1 << 2) |
4 MV per MB allowed / advanced prediction for H.263. More... | |
#define | AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3) |
Output even those frames that might be corrupted. More... | |
#define | AV_CODEC_FLAG_QPEL (1 << 4) |
Use qpel MC. More... | |
#define | AV_CODEC_FLAG_PASS1 (1 << 9) |
Use internal 2pass ratecontrol in first pass mode. More... | |
#define | AV_CODEC_FLAG_PASS2 (1 << 10) |
Use internal 2pass ratecontrol in second pass mode. More... | |
#define | AV_CODEC_FLAG_LOOP_FILTER (1 << 11) |
loop filter. More... | |
#define | AV_CODEC_FLAG_GRAY (1 << 13) |
Only decode/encode grayscale. More... | |
#define | AV_CODEC_FLAG_PSNR (1 << 15) |
error[?] variables will be set during encoding. More... | |
#define | AV_CODEC_FLAG_TRUNCATED (1 << 16) |
Input bitstream might be truncated at a random location instead of only at frame boundaries. More... | |
#define | AV_CODEC_FLAG_INTERLACED_DCT (1 << 18) |
Use interlaced DCT. More... | |
#define | AV_CODEC_FLAG_LOW_DELAY (1 << 19) |
Force low delay. More... | |
#define | AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22) |
Place global headers in extradata instead of every keyframe. More... | |
#define | AV_CODEC_FLAG_BITEXACT (1 << 23) |
Use only bitexact stuff (except (I)DCT). More... | |
#define | AV_CODEC_FLAG_AC_PRED (1 << 24) |
H.263 advanced intra coding / MPEG-4 AC prediction. More... | |
#define | AV_CODEC_FLAG_INTERLACED_ME (1 << 29) |
interlaced motion estimation More... | |
#define | AV_CODEC_FLAG_CLOSED_GOP (1U << 31) |
#define | AV_CODEC_FLAG2_FAST (1 << 0) |
Allow non spec compliant speedup tricks. More... | |
#define | AV_CODEC_FLAG2_NO_OUTPUT (1 << 2) |
Skip bitstream encoding. More... | |
#define | AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3) |
Place global headers at every keyframe instead of in extradata. More... | |
#define | AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13) |
timecode is in drop frame format. More... | |
#define | AV_CODEC_FLAG2_CHUNKS (1 << 15) |
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. More... | |
#define | AV_CODEC_FLAG2_IGNORE_CROP (1 << 16) |
Discard cropping information from SPS. More... | |
#define | AV_CODEC_FLAG2_SHOW_ALL (1 << 22) |
Show all frames before the first keyframe. More... | |
#define | AV_CODEC_FLAG2_EXPORT_MVS (1 << 28) |
Export motion vectors through frame side data. More... | |
#define | AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29) |
Do not skip samples and export skip information as frame side data. More... | |
#define | AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30) |
Do not reset ASS ReadOrder field on flush (subtitles decoding) More... | |
#define | AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0) |
Decoder can use draw_horiz_band callback. More... | |
#define | AV_CODEC_CAP_DR1 (1 << 1) |
Codec uses get_buffer() for allocating buffers and supports custom allocators. More... | |
#define | AV_CODEC_CAP_TRUNCATED (1 << 3) |
#define | AV_CODEC_CAP_DELAY (1 << 5) |
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output. More... | |
#define | AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6) |
Codec can be fed a final frame with a smaller size. More... | |
#define | AV_CODEC_CAP_SUBFRAMES (1 << 8) |
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames. More... | |
#define | AV_CODEC_CAP_EXPERIMENTAL (1 << 9) |
Codec is experimental and is thus avoided in favor of non experimental encoders. More... | |
#define | AV_CODEC_CAP_CHANNEL_CONF (1 << 10) |
Codec should fill in channel configuration and samplerate instead of container. More... | |
#define | AV_CODEC_CAP_FRAME_THREADS (1 << 12) |
Codec supports frame-level multithreading. More... | |
#define | AV_CODEC_CAP_SLICE_THREADS (1 << 13) |
Codec supports slice-based (or partition-based) multithreading. More... | |
#define | AV_CODEC_CAP_PARAM_CHANGE (1 << 14) |
Codec supports changed parameters at any point. More... | |
#define | AV_CODEC_CAP_AUTO_THREADS (1 << 15) |
Codec supports avctx->thread_count == 0 (auto). More... | |
#define | AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16) |
Audio encoder supports receiving a different number of samples in each call. More... | |
#define | AV_CODEC_CAP_AVOID_PROBING (1 << 17) |
Decoder is not a preferred choice for probing. More... | |
#define | AV_CODEC_CAP_INTRA_ONLY 0x40000000 |
Codec is intra only. More... | |
#define | AV_CODEC_CAP_LOSSLESS 0x80000000 |
Codec is lossless. More... | |
#define | AV_CODEC_CAP_HARDWARE (1 << 18) |
Codec is backed by a hardware implementation. More... | |
#define | AV_CODEC_CAP_HYBRID (1 << 19) |
Codec is potentially backed by a hardware implementation, but not necessarily. More... | |
#define | AV_GET_BUFFER_FLAG_REF (1 << 0) |
The decoder will keep a reference to the frame and may reuse it later. More... | |
#define | AV_SUBTITLE_FLAG_FORCED 0x00000001 |
Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc.
#define AV_CODEC_PROP_INTRA_ONLY (1 << 0) |
Codec uses only intra compression.
Video and audio codecs only.
Definition at line 733 of file avcodec.h.
Referenced by is_intra_only(), show_codecs(), and update_context_from_thread().
#define AV_CODEC_PROP_LOSSY (1 << 1) |
Codec supports lossy compression.
Audio and video codecs only.
Definition at line 739 of file avcodec.h.
Referenced by show_codecs().
#define AV_CODEC_PROP_LOSSLESS (1 << 2) |
Codec supports lossless compression.
Audio and video codecs only.
Definition at line 743 of file avcodec.h.
Referenced by show_codecs().
#define AV_CODEC_PROP_REORDER (1 << 3) |
Codec supports frame reordering.
That is, the coded order (the order in which the encoded packets are output by the encoders / stored / input to the decoders) may be different from the presentation order of the corresponding frames.
For codecs that do not have this property set, PTS and DTS should always be equal.
Definition at line 753 of file avcodec.h.
Referenced by init_muxer().
#define AV_CODEC_PROP_BITMAP_SUB (1 << 16) |
Subtitle codec is bitmap based Decoded AVSubtitle data can be read from the AVSubtitleRect->pict field.
Definition at line 758 of file avcodec.h.
Referenced by avcodec_decode_subtitle2(), avcodec_open2(), and open_output_file().
#define AV_CODEC_PROP_TEXT_SUB (1 << 17) |
Subtitle codec is text based.
Decoded AVSubtitle data can be read from the AVSubtitleRect->ass field.
Definition at line 763 of file avcodec.h.
Referenced by avcodec_decode_subtitle2(), and open_output_file().
#define AV_CODEC_FLAG_UNALIGNED (1 << 0) |
Allow decoders to produce frames with data planes that are not aligned to CPU requirements (e.g.
due to cropping).
Definition at line 829 of file avcodec.h.
Referenced by apply_cropping().
#define AV_CODEC_FLAG_QSCALE (1 << 1) |
Use fixed qscale.
Definition at line 833 of file avcodec.h.
Referenced by aac_encode_frame(), aac_encode_init(), config_input(), config_props(), encode_frame(), encode_init(), encode_picture(), estimate_best_b_count(), ff_frame_thread_encoder_init(), ff_mpv_encode_init(), ffat_init_encoder(), lame_window_init(), libvorbis_setup(), mark_pns(), mp3lame_encode_init(), new_output_stream(), psy_3gpp_init(), search_for_pns(), search_for_quantizers_twoloop(), select_rc_mode(), twolame_encode_init(), vaapi_encode_vp8_init(), vaapi_encode_vp9_init(), vorbis_encode_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_4MV (1 << 2) |
4 MV per MB allowed / advanced prediction for H.263.
Definition at line 837 of file avcodec.h.
Referenced by config_props(), encode_init(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), ff_mpv_encode_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3) |
Output even those frames that might be corrupted.
Definition at line 841 of file avcodec.h.
Referenced by finalize_frame(), and h264_select_output_frame().
#define AV_CODEC_FLAG_QPEL (1 << 4) |
Use qpel MC.
Definition at line 845 of file avcodec.h.
Referenced by config_props(), encode_frame(), encode_init(), encode_q_branch(), estimate_best_b_count(), ff_init_me(), ff_mpv_encode_init(), get_flags(), v4l2_prepare_encoder(), and xvid_encode_init().
#define AV_CODEC_FLAG_PASS1 (1 << 9) |
Use internal 2pass ratecontrol in first pass mode.
Definition at line 849 of file avcodec.h.
Referenced by aom_encode(), aom_init(), avcodec_encode_video2(), avcodec_string(), encode_422_bitstream(), encode_bgra_bitstream(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_line(), encode_plane_bitstream(), encode_thread(), ff_frame_thread_encoder_init(), ff_h263_encode_mb(), ff_mpeg4_encode_mb(), ff_mpv_encode_picture(), new_video_stream(), print_final_stats(), vpx_encode(), vpx_free(), vpx_init(), write_slice_end(), X264_init(), XAVS_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_PASS2 (1 << 10) |
Use internal 2pass ratecontrol in second pass mode.
Definition at line 853 of file avcodec.h.
Referenced by aom_init(), avcodec_string(), encode_frame(), encode_init(), encode_picture(), estimate_qp(), ff_mpv_encode_end(), ff_mpv_encode_init(), ff_rate_control_init(), ff_rate_estimate_qscale(), new_video_stream(), print_final_stats(), select_input_picture(), vpx_init(), X264_init(), XAVS_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_LOOP_FILTER (1 << 11) |
loop filter.
Definition at line 857 of file avcodec.h.
Referenced by amf_encode_init_h264(), amf_encode_init_hevc(), ff_mpv_encode_init(), and X264_init().
#define AV_CODEC_FLAG_GRAY (1 << 13) |
Only decode/encode grayscale.
Definition at line 861 of file avcodec.h.
Referenced by alloc_picture(), apply_8x8(), apply_obmc(), avcodec_open2(), backup_mb_border(), comp_block(), dct_get(), decode_frame(), decode_slice(), decode_slice_thread(), dnxhd_decode_macroblock(), encode_mb_internal(), encode_slice_data(), ff_h264_filter_mb(), ff_mspel_motion(), ff_vc1_apply_p_loop_filter(), ff_vc1_interp_mc(), ff_vc1_loop_filter_iblk(), ff_vc1_loop_filter_iblk_delayed(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_chroma4(), ff_vc1_smooth_overlap_filter_iblk(), ff_wmv2_add_mb(), ff_xvmc_decode_mb(), gmc1_motion(), gmc_motion(), h263_get_format(), h264_filter_mb_fast_internal(), hl_decode_mb(), hl_decode_mb_444(), idct_put(), mc_dir_part(), mc_part_weighted(), mpeg_get_pixelformat(), mpeg_motion_internal(), mpeg_motion_lowres(), MPV_motion_lowres(), mpv_reconstruct_mb_internal(), pixlet_decode_frame(), qpel_motion(), render_slice(), svq1_decode_frame(), svq3_mc_dir_part(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tqi_idct_put(), unpack_dct_coeffs(), vble_decode_frame(), vc1_decode_b_mb(), vc1_decode_b_mb_intfi(), vc1_decode_b_mb_intfr(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_init(), vc1_decode_p_mb(), vc1_decode_p_mb_intfi(), vc1_decode_p_mb_intfr(), vc1_put_signed_blocks_clamped(), xchg_mb_border(), and xvid_encode_init().
#define AV_CODEC_FLAG_PSNR (1 << 15) |
error[?] variables will be set during encoding.
Definition at line 865 of file avcodec.h.
Referenced by do_video_stats(), encode_frame(), encode_thread(), estimate_best_b_count(), ff_mpv_encode_picture(), libx265_encode_init(), mpv_reconstruct_mb_internal(), new_video_stream(), print_report(), vpx_init(), X264_init(), and XAVS_init().
#define AV_CODEC_FLAG_TRUNCATED (1 << 16) |
Input bitstream might be truncated at a random location instead of only at frame boundaries.
Definition at line 870 of file avcodec.h.
Referenced by decode_simple_internal(), ff_h263_decode_frame(), get_consumed_bytes(), mpeg_decode_frame(), and validate_thread_parameters().
#define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18) |
Use interlaced DCT.
Definition at line 874 of file avcodec.h.
Referenced by dnxhd_encode_init(), do_video_out(), dv_guess_dct_mode(), encode_frame(), encode_init(), encode_mb_internal(), ff_dnxhd_find_cid(), ff_mpv_encode_init(), ff_nvenc_send_frame(), init_video_param(), nvenc_check_capabilities(), nvenc_setup_encoder(), png_enc_init(), X264_init(), and XAVS_init().
#define AV_CODEC_FLAG_LOW_DELAY (1 << 19) |
Force low delay.
Definition at line 878 of file avcodec.h.
Referenced by config_input(), config_props(), decode_vop_header(), ff_mpeg4_decode_picture_header(), ff_mpv_encode_init(), mpeg1_decode_sequence(), mpeg_decode_sequence_extension(), validate_thread_parameters(), and vc1_decode_frame().
#define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22) |
Place global headers in extradata instead of every keyframe.
Definition at line 882 of file avcodec.h.
Referenced by aac_encode_init(), add_stream(), av_parser_change(), encode_init(), ff_mpeg4_encode_picture_header(), ff_nvenc_encode_init(), libkvazaar_init(), libx265_encode_init(), new_output_stream(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), omx_encode_frame(), omx_encode_init(), open_output_file(), svc_encode_frame(), svc_encode_init(), vtenc_cm_to_avpacket(), vtenc_init(), vtenc_output_callback(), X264_init(), XAVS_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_BITEXACT (1 << 23) |
Use only bitexact stuff (except (I)DCT).
Definition at line 886 of file avcodec.h.
Referenced by aac_decode_init(), aac_encode_frame(), ac3_decode_init(), add_input_streams(), atrac1_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), configure_input_video_filter(), dct_init(), decode_init(), dsp_init(), encode_frame(), encode_init(), ff_ac3_encode_init(), ff_ac3_float_encode_init(), ff_ass_subtitle_header(), ff_celt_init(), ff_dca_core_filter_frame(), ff_hpeldsp_vp3_init_x86(), ff_idctdsp_init_arm(), ff_idctdsp_init_armv6(), ff_idctdsp_init_ppc(), ff_mpegvideoencdsp_init_x86(), ff_mpv_common_init_x86(), ff_opus_psy_init(), ff_twinvq_decode_init(), ff_vp3dsp_init_x86(), ff_wma_init(), get_cox(), hadamard_func(), hpeldsp_init_3dnow(), hpeldsp_init_mmxext(), imc_decode_init(), init_muxer(), jpeg_put_comments(), libvorbis_encode_init(), main(), mp3lame_encode_init(), mpeg4_encode_vol_header(), new_output_stream(), on2avc_decode_init(), opus_encode_init(), put_com(), put_pce(), ra288_decode_init(), set_encoder_id(), update_size(), vc2_encode_frame(), vorbis_parse_id_hdr(), and vp3_decode_init().
#define AV_CODEC_FLAG_AC_PRED (1 << 24) |
H.263 advanced intra coding / MPEG-4 AC prediction.
Definition at line 891 of file avcodec.h.
Referenced by ff_mpeg4_encode_mb(), ff_mpv_encode_init(), and xvid_encode_init().
#define AV_CODEC_FLAG_INTERLACED_ME (1 << 29) |
interlaced motion estimation
Definition at line 895 of file avcodec.h.
Referenced by do_video_out(), encode_init(), encode_picture(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), ff_mpv_encode_init(), and init_context_frame().
#define AV_CODEC_FLAG_CLOSED_GOP (1U << 31) |
Definition at line 896 of file avcodec.h.
Referenced by ff_mpv_encode_init(), init_video_param(), mpeg1_encode_sequence_header(), mpeg4_encode_gop_header(), select_input_picture(), X264_init(), and xvid_encode_init().
#define AV_CODEC_FLAG2_FAST (1 << 0) |
Allow non spec compliant speedup tricks.
Definition at line 901 of file avcodec.h.
Referenced by decode_nal_units(), h264_slice_init(), mpeg_decode_mb(), and stream_component_open().
#define AV_CODEC_FLAG2_NO_OUTPUT (1 << 2) |
Skip bitstream encoding.
Definition at line 905 of file avcodec.h.
Referenced by encode_422_bitstream(), encode_bgra_bitstream(), encode_frame(), encode_gray_bitstream(), encode_plane_bitstream(), ff_h263_encode_motion_vector(), and mpeg4_encode_blocks().
#define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3) |
Place global headers at every keyframe instead of in extradata.
Definition at line 909 of file avcodec.h.
Referenced by av_parser_change().
#define AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13) |
timecode is in drop frame format.
DEPRECATED!!!!
Definition at line 914 of file avcodec.h.
Referenced by encode_init().
#define AV_CODEC_FLAG2_CHUNKS (1 << 15) |
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
Definition at line 920 of file avcodec.h.
Referenced by decode_nal_units(), h264_decode_frame(), and validate_thread_parameters().
#define AV_CODEC_FLAG2_IGNORE_CROP (1 << 16) |
Discard cropping information from SPS.
Definition at line 924 of file avcodec.h.
Referenced by decode_vui(), ff_h264_decode_seq_parameter_set(), ff_hevc_parse_sps(), and read_huffman_tree().
#define AV_CODEC_FLAG2_SHOW_ALL (1 << 22) |
Show all frames before the first keyframe.
Definition at line 929 of file avcodec.h.
Referenced by decode_chunks(), decode_frame(), finalize_frame(), and h264_select_output_frame().
#define AV_CODEC_FLAG2_EXPORT_MVS (1 << 28) |
Export motion vectors through frame side data.
Definition at line 933 of file avcodec.h.
Referenced by alloc_picture_tables(), decode_frame(), and ff_print_debug_info2().
#define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29) |
Do not skip samples and export skip information as frame side data.
Definition at line 937 of file avcodec.h.
Referenced by decode_simple_internal().
#define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30) |
Do not reset ASS ReadOrder field on flush (subtitles decoding)
Definition at line 941 of file avcodec.h.
Referenced by ff_ass_decoder_flush(), flush_decoder(), mov_text_flush(), sami_flush(), teletext_close_decoder(), and text_flush().
#define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0) |
Decoder can use draw_horiz_band callback.
Definition at line 953 of file avcodec.h.
Referenced by print_codec(), print_codecs(), and read_huffman_tree().
#define AV_CODEC_CAP_DR1 (1 << 1) |
Codec uses get_buffer() for allocating buffers and supports custom allocators.
If not set, it might not use get_buffer() at all or use operations that assume the buffer was allocated by avcodec_default_get_buffer.
Definition at line 959 of file avcodec.h.
Referenced by amr_decode_fix_avctx(), aptx_close(), cyuv_decode_frame(), decode_end(), decode_flush(), decode_frame(), decode_receive_frame_internal(), decode_simple_internal(), eightsvx_decode_close(), ff_vp8_decode_init(), flashsv_decode_frame(), flush(), g726_reset(), gsm_flush(), libgsm_flush(), mvc_decode_frame(), png_dec_end(), pnm_decode_frame(), predictor_calc_error(), print_codec(), print_codecs(), read_access_unit(), read_huffman_tree(), sp5x_decode_frame(), v408_decode_frame(), and vpx_free().
#define AV_CODEC_CAP_TRUNCATED (1 << 3) |
Definition at line 960 of file avcodec.h.
Referenced by print_codec().
#define AV_CODEC_CAP_DELAY (1 << 5) |
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output.
NOTE: If this flag is not set, the codec is guaranteed to never be fed with with NULL data. The user can still send NULL data to the public encode or decode function, but libavcodec will not pass it along to the codec unless this flag is set.
Decoders: The decoder has a non-zero delay and needs to be fed with avpkt->data=NULL, avpkt->size=0 at the end to get the delayed data until the decoder no longer returns frames.
Encoders: The encoder needs to be fed with NULL data at the end of encoding until the encoder no longer returns data.
NOTE: For encoders implementing the AVCodec.encode2() function, setting this flag also means that the encoder must set the pts and duration for each output packet. If this flag is not set, the pts and duration will be determined by libavcodec from the input frame.
Definition at line 984 of file avcodec.h.
Referenced by a64multi_encode_frame(), amr_decode_fix_avctx(), avcodec_decode_subtitle2(), avcodec_encode_audio2(), avcodec_encode_video2(), avcodec_receive_packet(), avcodec_send_frame(), decode_simple_internal(), do_video_out(), flush_encoder(), mlp_encode_close(), mpeg12_class(), nvenc_old_init(), print_codec(), and submit_packet().
#define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6) |
Codec can be fed a final frame with a smaller size.
This can be used to prevent truncation of the last audio samples.
Definition at line 989 of file avcodec.h.
Referenced by amr_decode_fix_avctx(), aptx_close(), avcodec_encode_audio2(), g726_reset(), mlp_encode_close(), and print_codec().
#define AV_CODEC_CAP_SUBFRAMES (1 << 8) |
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames.
This flag is reserved to the very rare category of codecs which have a bitstream that cannot be split into frames without timeconsuming operations like full decoding. Demuxers carrying such bitstreams thus may return multiple frames in a packet. This has many disadvantages like prohibiting stream copy in many cases thus it should only be considered as a last resort.
Definition at line 1002 of file avcodec.h.
Referenced by decode_simple_internal(), and print_codec().
#define AV_CODEC_CAP_EXPERIMENTAL (1 << 9) |
Codec is experimental and is thus avoided in favor of non experimental encoders.
Definition at line 1007 of file avcodec.h.
Referenced by avcodec_open2(), find_codec(), find_probe_decoder(), mlp_encode_close(), predictor_calc_error(), print_codec(), and print_codecs().
#define AV_CODEC_CAP_CHANNEL_CONF (1 << 10) |
Codec should fill in channel configuration and samplerate instead of container.
Definition at line 1011 of file avcodec.h.
Referenced by print_codec(), and try_decode_frame().
#define AV_CODEC_CAP_FRAME_THREADS (1 << 12) |
Codec supports frame-level multithreading.
Definition at line 1015 of file avcodec.h.
Referenced by decode_end(), ff_vp8_decode_init(), png_dec_end(), print_codec(), print_codecs(), read_huffman_tree(), and validate_thread_parameters().
#define AV_CODEC_CAP_SLICE_THREADS (1 << 13) |
Codec supports slice-based (or partition-based) multithreading.
Definition at line 1019 of file avcodec.h.
Referenced by ff_vp8_decode_init(), mpeg12_class(), print_codec(), print_codecs(), and validate_thread_parameters().
#define AV_CODEC_CAP_PARAM_CHANGE (1 << 14) |
Codec supports changed parameters at any point.
Definition at line 1023 of file avcodec.h.
Referenced by apply_param_change(), print_codec(), and reap_filters().
#define AV_CODEC_CAP_AUTO_THREADS (1 << 15) |
Codec supports avctx->thread_count == 0 (auto).
Definition at line 1027 of file avcodec.h.
Referenced by avcodec_open2(), print_codec(), validate_thread_parameters(), and vpx_free().
#define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16) |
Audio encoder supports receiving a different number of samples in each call.
Definition at line 1031 of file avcodec.h.
Referenced by avcodec_encode_audio2(), configure_filtergraph(), init_output_stream(), open_audio(), and print_codec().
#define AV_CODEC_CAP_AVOID_PROBING (1 << 17) |
Decoder is not a preferred choice for probing.
This indicates that the decoder is not a good choice for probing. It could for example be an expensive to spin up hardware decoder, or it could simply not provide a lot of useful information about the stream. A decoder marked with this flag should only be used as last resort choice for probing.
Definition at line 1041 of file avcodec.h.
Referenced by find_probe_decoder().
#define AV_CODEC_CAP_INTRA_ONLY 0x40000000 |
Codec is intra only.
Definition at line 1045 of file avcodec.h.
Referenced by encode_frame(), ff_frame_thread_encoder_init(), and v408_encode_close().
#define AV_CODEC_CAP_LOSSLESS 0x80000000 |
#define AV_CODEC_CAP_HARDWARE (1 << 18) |
Codec is backed by a hardware implementation.
Typically used to identify a non-hwaccel hardware decoder. For information about hwaccels, use avcodec_get_hw_config() instead.
Definition at line 1056 of file avcodec.h.
Referenced by nvenc_old_init().
#define AV_CODEC_CAP_HYBRID (1 << 19) |
#define AV_GET_BUFFER_FLAG_REF (1 << 0) |
The decoder will keep a reference to the frame and may reuse it later.
Definition at line 1135 of file avcodec.h.
Referenced by alloc_frame(), alloc_frame_buffer(), alloc_picture(), cdg_decode_frame(), cmv_decode_frame(), decode_frame(), decode_idat_chunk(), decode_pic(), dirac_decode_data_unit(), dirac_decode_picture_header(), escape124_decode_frame(), execute_code(), ff_mjpeg_decode_sof(), ff_snow_common_init_after_header(), ff_snow_get_buffer(), ff_vp56_decode_frame(), get_buffer(), ipvideo_decode_frame(), mimic_decode_frame(), mss2_decode_frame(), mxpeg_decode_frame(), reget_buffer_internal(), submit_frame(), svq1_decode_frame(), tgv_decode_frame(), vmdvideo_decode_frame(), vp3_decode_frame(), vp8_alloc_frame(), vp9_frame_alloc(), xan_decode_frame(), and zerocodec_decode_frame().
#define AV_SUBTITLE_FLAG_FORCED 0x00000001 |
Definition at line 3823 of file avcodec.h.
Referenced by decode_dvd_subtitles(), display_end_segment(), dvdsub_decode(), and encode_dvd_subtitles().
enum AVCodecID |
Identify the syntax and semantics of the bitstream.
The principle is roughly: Two decoders with the same ID can decode the same streams. Two encoders with the same ID can encode compatible streams. There may be slight deviations from the principle due to implementation details.
If you add a codec ID to this list, add it so that
After adding new codec IDs, do not forget to add an entry to the codec descriptor list and bump libavcodec minor version.
Enumerator | |
---|---|
AV_CODEC_ID_NONE | |
AV_CODEC_ID_MPEG1VIDEO | |
AV_CODEC_ID_MPEG2VIDEO | preferred ID for MPEG-1/2 video decoding |
AV_CODEC_ID_H261 | |
AV_CODEC_ID_H263 | |
AV_CODEC_ID_RV10 | |
AV_CODEC_ID_RV20 | |
AV_CODEC_ID_MJPEG | |
AV_CODEC_ID_MJPEGB | |
AV_CODEC_ID_LJPEG | |
AV_CODEC_ID_SP5X | |
AV_CODEC_ID_JPEGLS | |
AV_CODEC_ID_MPEG4 | |
AV_CODEC_ID_RAWVIDEO | |
AV_CODEC_ID_MSMPEG4V1 | |
AV_CODEC_ID_MSMPEG4V2 | |
AV_CODEC_ID_MSMPEG4V3 | |
AV_CODEC_ID_WMV1 | |
AV_CODEC_ID_WMV2 | |
AV_CODEC_ID_H263P | |
AV_CODEC_ID_H263I | |
AV_CODEC_ID_FLV1 | |
AV_CODEC_ID_SVQ1 | |
AV_CODEC_ID_SVQ3 | |
AV_CODEC_ID_DVVIDEO | |
AV_CODEC_ID_HUFFYUV | |
AV_CODEC_ID_CYUV | |
AV_CODEC_ID_H264 | |
AV_CODEC_ID_INDEO3 | |
AV_CODEC_ID_VP3 | |
AV_CODEC_ID_THEORA | |
AV_CODEC_ID_ASV1 | |
AV_CODEC_ID_ASV2 | |
AV_CODEC_ID_FFV1 | |
AV_CODEC_ID_4XM | |
AV_CODEC_ID_VCR1 | |
AV_CODEC_ID_CLJR | |
AV_CODEC_ID_MDEC | |
AV_CODEC_ID_ROQ | |
AV_CODEC_ID_INTERPLAY_VIDEO | |
AV_CODEC_ID_XAN_WC3 | |
AV_CODEC_ID_XAN_WC4 | |
AV_CODEC_ID_RPZA | |
AV_CODEC_ID_CINEPAK | |
AV_CODEC_ID_WS_VQA | |
AV_CODEC_ID_MSRLE | |
AV_CODEC_ID_MSVIDEO1 | |
AV_CODEC_ID_IDCIN | |
AV_CODEC_ID_8BPS | |
AV_CODEC_ID_SMC | |
AV_CODEC_ID_FLIC | |
AV_CODEC_ID_TRUEMOTION1 | |
AV_CODEC_ID_VMDVIDEO | |
AV_CODEC_ID_MSZH | |
AV_CODEC_ID_ZLIB | |
AV_CODEC_ID_QTRLE | |
AV_CODEC_ID_TSCC | |
AV_CODEC_ID_ULTI | |
AV_CODEC_ID_QDRAW | |
AV_CODEC_ID_VIXL | |
AV_CODEC_ID_QPEG | |
AV_CODEC_ID_PNG | |
AV_CODEC_ID_PPM | |
AV_CODEC_ID_PBM | |
AV_CODEC_ID_PGM | |
AV_CODEC_ID_PGMYUV | |
AV_CODEC_ID_PAM | |
AV_CODEC_ID_FFVHUFF | |
AV_CODEC_ID_RV30 | |
AV_CODEC_ID_RV40 | |
AV_CODEC_ID_VC1 | |
AV_CODEC_ID_WMV3 | |
AV_CODEC_ID_LOCO | |
AV_CODEC_ID_WNV1 | |
AV_CODEC_ID_AASC | |
AV_CODEC_ID_INDEO2 | |
AV_CODEC_ID_FRAPS | |
AV_CODEC_ID_TRUEMOTION2 | |
AV_CODEC_ID_BMP | |
AV_CODEC_ID_CSCD | |
AV_CODEC_ID_MMVIDEO | |
AV_CODEC_ID_ZMBV | |
AV_CODEC_ID_AVS | |
AV_CODEC_ID_SMACKVIDEO | |
AV_CODEC_ID_NUV | |
AV_CODEC_ID_KMVC | |
AV_CODEC_ID_FLASHSV | |
AV_CODEC_ID_CAVS | |
AV_CODEC_ID_JPEG2000 | |
AV_CODEC_ID_VMNC | |
AV_CODEC_ID_VP5 | |
AV_CODEC_ID_VP6 | |
AV_CODEC_ID_VP6F | |
AV_CODEC_ID_TARGA | |
AV_CODEC_ID_DSICINVIDEO | |
AV_CODEC_ID_TIERTEXSEQVIDEO | |
AV_CODEC_ID_TIFF | |
AV_CODEC_ID_GIF | |
AV_CODEC_ID_DXA | |
AV_CODEC_ID_DNXHD | |
AV_CODEC_ID_THP | |
AV_CODEC_ID_SGI | |
AV_CODEC_ID_C93 | |
AV_CODEC_ID_BETHSOFTVID | |
AV_CODEC_ID_PTX | |
AV_CODEC_ID_TXD | |
AV_CODEC_ID_VP6A | |
AV_CODEC_ID_AMV | |
AV_CODEC_ID_VB | |
AV_CODEC_ID_PCX | |
AV_CODEC_ID_SUNRAST | |
AV_CODEC_ID_INDEO4 | |
AV_CODEC_ID_INDEO5 | |
AV_CODEC_ID_MIMIC | |
AV_CODEC_ID_RL2 | |
AV_CODEC_ID_ESCAPE124 | |
AV_CODEC_ID_DIRAC | |
AV_CODEC_ID_BFI | |
AV_CODEC_ID_CMV | |
AV_CODEC_ID_MOTIONPIXELS | |
AV_CODEC_ID_TGV | |
AV_CODEC_ID_TGQ | |
AV_CODEC_ID_TQI | |
AV_CODEC_ID_AURA | |
AV_CODEC_ID_AURA2 | |
AV_CODEC_ID_V210X | |
AV_CODEC_ID_TMV | |
AV_CODEC_ID_V210 | |
AV_CODEC_ID_DPX | |
AV_CODEC_ID_MAD | |
AV_CODEC_ID_FRWU | |
AV_CODEC_ID_FLASHSV2 | |
AV_CODEC_ID_CDGRAPHICS | |
AV_CODEC_ID_R210 | |
AV_CODEC_ID_ANM | |
AV_CODEC_ID_BINKVIDEO | |
AV_CODEC_ID_IFF_ILBM | |
AV_CODEC_ID_KGV1 | |
AV_CODEC_ID_YOP | |
AV_CODEC_ID_VP8 | |
AV_CODEC_ID_PICTOR | |
AV_CODEC_ID_ANSI | |
AV_CODEC_ID_A64_MULTI | |
AV_CODEC_ID_A64_MULTI5 | |
AV_CODEC_ID_R10K | |
AV_CODEC_ID_MXPEG | |
AV_CODEC_ID_LAGARITH | |
AV_CODEC_ID_PRORES | |
AV_CODEC_ID_JV | |
AV_CODEC_ID_DFA | |
AV_CODEC_ID_WMV3IMAGE | |
AV_CODEC_ID_VC1IMAGE | |
AV_CODEC_ID_UTVIDEO | |
AV_CODEC_ID_BMV_VIDEO | |
AV_CODEC_ID_VBLE | |
AV_CODEC_ID_DXTORY | |
AV_CODEC_ID_V410 | |
AV_CODEC_ID_XWD | |
AV_CODEC_ID_CDXL | |
AV_CODEC_ID_XBM | |
AV_CODEC_ID_ZEROCODEC | |
AV_CODEC_ID_MSS1 | |
AV_CODEC_ID_MSA1 | |
AV_CODEC_ID_TSCC2 | |
AV_CODEC_ID_MTS2 | |
AV_CODEC_ID_CLLC | |
AV_CODEC_ID_MSS2 | |
AV_CODEC_ID_VP9 | |
AV_CODEC_ID_AIC | |
AV_CODEC_ID_ESCAPE130 | |
AV_CODEC_ID_G2M | |
AV_CODEC_ID_WEBP | |
AV_CODEC_ID_HNM4_VIDEO | |
AV_CODEC_ID_HEVC | |
AV_CODEC_ID_FIC | |
AV_CODEC_ID_ALIAS_PIX | |
AV_CODEC_ID_BRENDER_PIX | |
AV_CODEC_ID_PAF_VIDEO | |
AV_CODEC_ID_EXR | |
AV_CODEC_ID_VP7 | |
AV_CODEC_ID_SANM | |
AV_CODEC_ID_SGIRLE | |
AV_CODEC_ID_MVC1 | |
AV_CODEC_ID_MVC2 | |
AV_CODEC_ID_HQX | |
AV_CODEC_ID_TDSC | |
AV_CODEC_ID_HQ_HQA | |
AV_CODEC_ID_HAP | |
AV_CODEC_ID_DDS | |
AV_CODEC_ID_DXV | |
AV_CODEC_ID_SCREENPRESSO | |
AV_CODEC_ID_RSCC | |
AV_CODEC_ID_Y41P | |
AV_CODEC_ID_AVRP | |
AV_CODEC_ID_012V | |
AV_CODEC_ID_AVUI | |
AV_CODEC_ID_AYUV | |
AV_CODEC_ID_TARGA_Y216 | |
AV_CODEC_ID_V308 | |
AV_CODEC_ID_V408 | |
AV_CODEC_ID_YUV4 | |
AV_CODEC_ID_AVRN | |
AV_CODEC_ID_CPIA | |
AV_CODEC_ID_XFACE | |
AV_CODEC_ID_SNOW | |
AV_CODEC_ID_SMVJPEG | |
AV_CODEC_ID_APNG | |
AV_CODEC_ID_DAALA | |
AV_CODEC_ID_CFHD | |
AV_CODEC_ID_TRUEMOTION2RT | |
AV_CODEC_ID_M101 | |
AV_CODEC_ID_MAGICYUV | |
AV_CODEC_ID_SHEERVIDEO | |
AV_CODEC_ID_YLC | |
AV_CODEC_ID_PSD | |
AV_CODEC_ID_PIXLET | |
AV_CODEC_ID_SPEEDHQ | |
AV_CODEC_ID_FMVC | |
AV_CODEC_ID_SCPR | |
AV_CODEC_ID_CLEARVIDEO | |
AV_CODEC_ID_XPM | |
AV_CODEC_ID_AV1 | |
AV_CODEC_ID_BITPACKED | |
AV_CODEC_ID_MSCC | |
AV_CODEC_ID_SRGC | |
AV_CODEC_ID_SVG | |
AV_CODEC_ID_GDV | |
AV_CODEC_ID_FITS | |
AV_CODEC_ID_FIRST_AUDIO | A dummy id pointing at the start of audio codecs. |
AV_CODEC_ID_PCM_S16LE | |
AV_CODEC_ID_PCM_S16BE | |
AV_CODEC_ID_PCM_U16LE | |
AV_CODEC_ID_PCM_U16BE | |
AV_CODEC_ID_PCM_S8 | |
AV_CODEC_ID_PCM_U8 | |
AV_CODEC_ID_PCM_MULAW | |
AV_CODEC_ID_PCM_ALAW | |
AV_CODEC_ID_PCM_S32LE | |
AV_CODEC_ID_PCM_S32BE | |
AV_CODEC_ID_PCM_U32LE | |
AV_CODEC_ID_PCM_U32BE | |
AV_CODEC_ID_PCM_S24LE | |
AV_CODEC_ID_PCM_S24BE | |
AV_CODEC_ID_PCM_U24LE | |
AV_CODEC_ID_PCM_U24BE | |
AV_CODEC_ID_PCM_S24DAUD | |
AV_CODEC_ID_PCM_ZORK | |
AV_CODEC_ID_PCM_S16LE_PLANAR | |
AV_CODEC_ID_PCM_DVD | |
AV_CODEC_ID_PCM_F32BE | |
AV_CODEC_ID_PCM_F32LE | |
AV_CODEC_ID_PCM_F64BE | |
AV_CODEC_ID_PCM_F64LE | |
AV_CODEC_ID_PCM_BLURAY | |
AV_CODEC_ID_PCM_LXF | |
AV_CODEC_ID_S302M | |
AV_CODEC_ID_PCM_S8_PLANAR | |
AV_CODEC_ID_PCM_S24LE_PLANAR | |
AV_CODEC_ID_PCM_S32LE_PLANAR | |
AV_CODEC_ID_PCM_S16BE_PLANAR | |
AV_CODEC_ID_PCM_S64LE | |
AV_CODEC_ID_PCM_S64BE | |
AV_CODEC_ID_PCM_F16LE | |
AV_CODEC_ID_PCM_F24LE | |
AV_CODEC_ID_ADPCM_IMA_QT | |
AV_CODEC_ID_ADPCM_IMA_WAV | |
AV_CODEC_ID_ADPCM_IMA_DK3 | |
AV_CODEC_ID_ADPCM_IMA_DK4 | |
AV_CODEC_ID_ADPCM_IMA_WS | |
AV_CODEC_ID_ADPCM_IMA_SMJPEG | |
AV_CODEC_ID_ADPCM_MS | |
AV_CODEC_ID_ADPCM_4XM | |
AV_CODEC_ID_ADPCM_XA | |
AV_CODEC_ID_ADPCM_ADX | |
AV_CODEC_ID_ADPCM_EA | |
AV_CODEC_ID_ADPCM_G726 | |
AV_CODEC_ID_ADPCM_CT | |
AV_CODEC_ID_ADPCM_SWF | |
AV_CODEC_ID_ADPCM_YAMAHA | |
AV_CODEC_ID_ADPCM_SBPRO_4 | |
AV_CODEC_ID_ADPCM_SBPRO_3 | |
AV_CODEC_ID_ADPCM_SBPRO_2 | |
AV_CODEC_ID_ADPCM_THP | |
AV_CODEC_ID_ADPCM_IMA_AMV | |
AV_CODEC_ID_ADPCM_EA_R1 | |
AV_CODEC_ID_ADPCM_EA_R3 | |
AV_CODEC_ID_ADPCM_EA_R2 | |
AV_CODEC_ID_ADPCM_IMA_EA_SEAD | |
AV_CODEC_ID_ADPCM_IMA_EA_EACS | |
AV_CODEC_ID_ADPCM_EA_XAS | |
AV_CODEC_ID_ADPCM_EA_MAXIS_XA | |
AV_CODEC_ID_ADPCM_IMA_ISS | |
AV_CODEC_ID_ADPCM_G722 | |
AV_CODEC_ID_ADPCM_IMA_APC | |
AV_CODEC_ID_ADPCM_VIMA | |
AV_CODEC_ID_ADPCM_AFC | |
AV_CODEC_ID_ADPCM_IMA_OKI | |
AV_CODEC_ID_ADPCM_DTK | |
AV_CODEC_ID_ADPCM_IMA_RAD | |
AV_CODEC_ID_ADPCM_G726LE | |
AV_CODEC_ID_ADPCM_THP_LE | |
AV_CODEC_ID_ADPCM_PSX | |
AV_CODEC_ID_ADPCM_AICA | |
AV_CODEC_ID_ADPCM_IMA_DAT4 | |
AV_CODEC_ID_ADPCM_MTAF | |
AV_CODEC_ID_AMR_NB | |
AV_CODEC_ID_AMR_WB | |
AV_CODEC_ID_RA_144 | |
AV_CODEC_ID_RA_288 | |
AV_CODEC_ID_ROQ_DPCM | |
AV_CODEC_ID_INTERPLAY_DPCM | |
AV_CODEC_ID_XAN_DPCM | |
AV_CODEC_ID_SOL_DPCM | |
AV_CODEC_ID_SDX2_DPCM | |
AV_CODEC_ID_GREMLIN_DPCM | |
AV_CODEC_ID_MP2 | |
AV_CODEC_ID_MP3 | preferred ID for decoding MPEG audio layer 1, 2 or 3 |
AV_CODEC_ID_AAC | |
AV_CODEC_ID_AC3 | |
AV_CODEC_ID_DTS | |
AV_CODEC_ID_VORBIS | |
AV_CODEC_ID_DVAUDIO | |
AV_CODEC_ID_WMAV1 | |
AV_CODEC_ID_WMAV2 | |
AV_CODEC_ID_MACE3 | |
AV_CODEC_ID_MACE6 | |
AV_CODEC_ID_VMDAUDIO | |
AV_CODEC_ID_FLAC | |
AV_CODEC_ID_MP3ADU | |
AV_CODEC_ID_MP3ON4 | |
AV_CODEC_ID_SHORTEN | |
AV_CODEC_ID_ALAC | |
AV_CODEC_ID_WESTWOOD_SND1 | |
AV_CODEC_ID_GSM | as in Berlin toast format |
AV_CODEC_ID_QDM2 | |
AV_CODEC_ID_COOK | |
AV_CODEC_ID_TRUESPEECH | |
AV_CODEC_ID_TTA | |
AV_CODEC_ID_SMACKAUDIO | |
AV_CODEC_ID_QCELP | |
AV_CODEC_ID_WAVPACK | |
AV_CODEC_ID_DSICINAUDIO | |
AV_CODEC_ID_IMC | |
AV_CODEC_ID_MUSEPACK7 | |
AV_CODEC_ID_MLP | |
AV_CODEC_ID_GSM_MS | |
AV_CODEC_ID_ATRAC3 | |
AV_CODEC_ID_APE | |
AV_CODEC_ID_NELLYMOSER | |
AV_CODEC_ID_MUSEPACK8 | |
AV_CODEC_ID_SPEEX | |
AV_CODEC_ID_WMAVOICE | |
AV_CODEC_ID_WMAPRO | |
AV_CODEC_ID_WMALOSSLESS | |
AV_CODEC_ID_ATRAC3P | |
AV_CODEC_ID_EAC3 | |
AV_CODEC_ID_SIPR | |
AV_CODEC_ID_MP1 | |
AV_CODEC_ID_TWINVQ | |
AV_CODEC_ID_TRUEHD | |
AV_CODEC_ID_MP4ALS | |
AV_CODEC_ID_ATRAC1 | |
AV_CODEC_ID_BINKAUDIO_RDFT | |
AV_CODEC_ID_BINKAUDIO_DCT | |
AV_CODEC_ID_AAC_LATM | |
AV_CODEC_ID_QDMC | |
AV_CODEC_ID_CELT | |
AV_CODEC_ID_G723_1 | |
AV_CODEC_ID_G729 | |
AV_CODEC_ID_8SVX_EXP | |
AV_CODEC_ID_8SVX_FIB | |
AV_CODEC_ID_BMV_AUDIO | |
AV_CODEC_ID_RALF | |
AV_CODEC_ID_IAC | |
AV_CODEC_ID_ILBC | |
AV_CODEC_ID_OPUS | |
AV_CODEC_ID_COMFORT_NOISE | |
AV_CODEC_ID_TAK | |
AV_CODEC_ID_METASOUND | |
AV_CODEC_ID_PAF_AUDIO | |
AV_CODEC_ID_ON2AVC | |
AV_CODEC_ID_DSS_SP | |
AV_CODEC_ID_CODEC2 | |
AV_CODEC_ID_FFWAVESYNTH | |
AV_CODEC_ID_SONIC | |
AV_CODEC_ID_SONIC_LS | |
AV_CODEC_ID_EVRC | |
AV_CODEC_ID_SMV | |
AV_CODEC_ID_DSD_LSBF | |
AV_CODEC_ID_DSD_MSBF | |
AV_CODEC_ID_DSD_LSBF_PLANAR | |
AV_CODEC_ID_DSD_MSBF_PLANAR | |
AV_CODEC_ID_4GV | |
AV_CODEC_ID_INTERPLAY_ACM | |
AV_CODEC_ID_XMA1 | |
AV_CODEC_ID_XMA2 | |
AV_CODEC_ID_DST | |
AV_CODEC_ID_ATRAC3AL | |
AV_CODEC_ID_ATRAC3PAL | |
AV_CODEC_ID_DOLBY_E | |
AV_CODEC_ID_APTX | |
AV_CODEC_ID_APTX_HD | |
AV_CODEC_ID_SBC | |
AV_CODEC_ID_FIRST_SUBTITLE | A dummy ID pointing at the start of subtitle codecs. |
AV_CODEC_ID_DVD_SUBTITLE | |
AV_CODEC_ID_DVB_SUBTITLE | |
AV_CODEC_ID_TEXT | raw UTF-8 text |
AV_CODEC_ID_XSUB | |
AV_CODEC_ID_SSA | |
AV_CODEC_ID_MOV_TEXT | |
AV_CODEC_ID_HDMV_PGS_SUBTITLE | |
AV_CODEC_ID_DVB_TELETEXT | |
AV_CODEC_ID_SRT | |
AV_CODEC_ID_MICRODVD | |
AV_CODEC_ID_EIA_608 | |
AV_CODEC_ID_JACOSUB | |
AV_CODEC_ID_SAMI | |
AV_CODEC_ID_REALTEXT | |
AV_CODEC_ID_STL | |
AV_CODEC_ID_SUBVIEWER1 | |
AV_CODEC_ID_SUBVIEWER | |
AV_CODEC_ID_SUBRIP | |
AV_CODEC_ID_WEBVTT | |
AV_CODEC_ID_MPL2 | |
AV_CODEC_ID_VPLAYER | |
AV_CODEC_ID_PJS | |
AV_CODEC_ID_ASS | |
AV_CODEC_ID_HDMV_TEXT_SUBTITLE | |
AV_CODEC_ID_FIRST_UNKNOWN | A dummy ID pointing at the start of various fake codecs. |
AV_CODEC_ID_TTF | |
AV_CODEC_ID_SCTE_35 | Contain timestamp estimated through PCR of program stream. |
AV_CODEC_ID_BINTEXT | |
AV_CODEC_ID_XBIN | |
AV_CODEC_ID_IDF | |
AV_CODEC_ID_OTF | |
AV_CODEC_ID_SMPTE_KLV | |
AV_CODEC_ID_DVD_NAV | |
AV_CODEC_ID_TIMED_ID3 | |
AV_CODEC_ID_BIN_DATA | |
AV_CODEC_ID_PROBE | codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it |
AV_CODEC_ID_MPEG2TS | FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat) |
AV_CODEC_ID_MPEG4SYSTEMS | FAKE codec to indicate a MPEG-4 Systems stream (only used by libavformat) |
AV_CODEC_ID_FFMETADATA | Dummy codec for streams containing only metadata information. |
AV_CODEC_ID_WRAPPED_AVFRAME | Passthrough codec, AVFrames wrapped in AVPacket. |
enum AVAudioServiceType |
enum AVFieldOrder |
anonymous enum |
Enumerator | |
---|---|
AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX | The codec supports this format via the hw_device_ctx interface. When selecting this format, AVCodecContext.hw_device_ctx should have been set to a device of the specified type before calling avcodec_open2(). |
AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX | The codec supports this format via the hw_frames_ctx interface. When selecting this format for a decoder, AVCodecContext.hw_frames_ctx should be set to a suitable frames context inside the get_format() callback. The frames context must have been created on a device of the specified type. |
AV_CODEC_HW_CONFIG_METHOD_INTERNAL | The codec supports this format by some internal method. This format can be selected without any additional configuration - no device or frames context is required. |
AV_CODEC_HW_CONFIG_METHOD_AD_HOC | The codec supports this format by some ad-hoc method. Additional settings and/or function calls are required. See the codec-specific documentation for details. (Methods requiring this sort of configuration are deprecated and others should be used in preference.) |
enum AVSubtitleType |
attribute_deprecated AVRational av_codec_get_pkt_timebase | ( | const AVCodecContext * | avctx | ) |
Accessors for some AVCodecContext fields.
These used to be provided for ABI compatibility, and do not need to be used anymore.
attribute_deprecated void av_codec_set_pkt_timebase | ( | AVCodecContext * | avctx, |
AVRational | val | ||
) |
attribute_deprecated const AVCodecDescriptor* av_codec_get_codec_descriptor | ( | const AVCodecContext * | avctx | ) |
attribute_deprecated void av_codec_set_codec_descriptor | ( | AVCodecContext * | avctx, |
const AVCodecDescriptor * | desc | ||
) |
attribute_deprecated unsigned av_codec_get_codec_properties | ( | const AVCodecContext * | avctx | ) |
attribute_deprecated int av_codec_get_lowres | ( | const AVCodecContext * | avctx | ) |
attribute_deprecated void av_codec_set_lowres | ( | AVCodecContext * | avctx, |
int | val | ||
) |
attribute_deprecated int av_codec_get_seek_preroll | ( | const AVCodecContext * | avctx | ) |
attribute_deprecated void av_codec_set_seek_preroll | ( | AVCodecContext * | avctx, |
int | val | ||
) |
attribute_deprecated uint16_t* av_codec_get_chroma_intra_matrix | ( | const AVCodecContext * | avctx | ) |
attribute_deprecated void av_codec_set_chroma_intra_matrix | ( | AVCodecContext * | avctx, |
uint16_t * | val | ||
) |
attribute_deprecated int av_codec_get_max_lowres | ( | const AVCodec * | codec | ) |
const AVCodecHWConfig* avcodec_get_hw_config | ( | const AVCodec * | codec, |
int | index | ||
) |
Retrieve supported hardware configurations for a codec.
Values of index from zero to some maximum return the indexed configuration descriptor; all other values return NULL. If the codec does not support any hardware configurations then it will always return NULL.
Definition at line 1747 of file utils.c.
Referenced by avcodec_default_get_format(), get_format(), hw_device_match_by_codec(), hw_device_setup_for_decode(), and main().
Iterate over all registered codecs.
opaque | a pointer where libavcodec will store the iteration state. Must point to NULL to start the iteration. |
Definition at line 775 of file allcodecs.c.
Referenced by av_codec_init_next(), find_codec(), and find_codec_by_name().
attribute_deprecated AVCodec* av_codec_next | ( | const AVCodec * | c | ) |
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one.
Definition at line 810 of file allcodecs.c.
Referenced by codec_child_class_next(), find_probe_decoder(), main(), next_codec_for_id(), and show_codec_opts().
unsigned avcodec_version | ( | void | ) |
const char* avcodec_configuration | ( | void | ) |
const char* avcodec_license | ( | void | ) |
attribute_deprecated void avcodec_register | ( | AVCodec * | codec | ) |
Register the codec codec and initialize libavcodec.
Definition at line 805 of file allcodecs.c.
Referenced by avcodec_get_subtitle_rect_class(), LLVMFuzzerTestOneInput(), and main().
attribute_deprecated void avcodec_register_all | ( | void | ) |
Register all the codecs, parsers and bitstream filters which were enabled at configuration time.
If you do not call this function you can select exactly which formats you want to support, by using the individual registration functions.
Definition at line 820 of file allcodecs.c.
Referenced by LLVMFuzzerTestOneInput().
AVCodecContext* avcodec_alloc_context3 | ( | const AVCodec * | codec | ) |
Allocate an AVCodecContext and set its fields to default values.
The resulting struct should be freed with avcodec_free_context().
codec | if non-NULL, allocate private data and initialize defaults for the given codec. It is illegal to then call avcodec_open2() with a different codec. If NULL, then the codec-specific defaults won't be initialized, which may result in suboptimal default settings (this is important mainly for encoders, e.g. libx264). |
Definition at line 156 of file options.c.
Referenced by add_input_streams(), add_stream(), avcodec_dct_init(), avcodec_get_subtitle_rect_class(), avformat_new_stream(), config_input(), config_props(), dump_stream_format(), estimate_best_b_count(), ff_frame_thread_encoder_init(), ff_load_image(), ff_qsv_process_data(), init(), init_decoder(), init_dict(), init_encoder(), LLVMFuzzerTestOneInput(), main(), new_output_stream(), old_flac_header(), open_codec_context(), open_input_file(), open_output_file(), open_stream(), remove_extradata_init(), seek_test(), smvjpeg_decode_init(), stream_component_open(), tdsc_init(), test_copy(), video_decode(), and video_decode_example().
void avcodec_free_context | ( | AVCodecContext ** | avctx | ) |
Free the codec context and everything associated with it and write NULL to the provided pointer.
Definition at line 171 of file options.c.
Referenced by avcodec_dct_init(), avcodec_get_subtitle_rect_class(), close_input_file(), close_stream(), decoder_destroy(), dump_stream_format(), estimate_best_b_count(), ff_load_image(), ff_qsv_decode_close(), ffmpeg_cleanup(), free_stream(), LLVMFuzzerTestOneInput(), main(), movie_uninit(), old_flac_header(), open_input_file(), open_output_file(), remove_extradata_close(), seek_test(), stream_component_open(), tdsc_close(), test_copy(), uninit(), video_decode(), and video_decode_example().
int avcodec_get_context_defaults3 | ( | AVCodecContext * | s, |
const AVCodec * | codec | ||
) |
A new codec context should be allocated for each new use.
Get the AVClass for AVCodecContext.
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Definition at line 294 of file options.c.
Referenced by add_input_streams(), filter_codec_opts(), open_input_file(), open_output_file(), opt_default(), show_codec_opts(), and show_help_default().
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Get the AVClass for AVSubtitleRect.
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
attribute_deprecated int avcodec_copy_context | ( | AVCodecContext * | dest, |
const AVCodecContext * | src | ||
) |
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
The resulting destination codec context will be unopened, i.e. you are required to call avcodec_open2() before you can use this AVCodecContext to decode/encode video/audio data.
dest | target codec context, should be initialized with avcodec_alloc_context3(NULL), but otherwise uninitialized |
src | source codec context |
Definition at line 215 of file options.c.
Referenced by avcodec_get_subtitle_rect_class(), init_output_stream(), and test_copy().
AVCodecParameters* avcodec_parameters_alloc | ( | void | ) |
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
The returned struct must be freed with avcodec_parameters_free().
Definition at line 1982 of file utils.c.
Referenced by av_bsf_alloc(), avformat_new_stream(), ff_mov_init_hinting(), ff_rtsp_open_transport_ctx(), flv_read_packet(), mkv_check_new_extra_data(), mov_create_chapter_track(), mov_create_timecode_track(), and new_output_stream().
void avcodec_parameters_free | ( | AVCodecParameters ** | par | ) |
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer.
Definition at line 1992 of file utils.c.
Referenced by av_bsf_free(), ff_mov_close_hinting(), ff_mov_init_hinting(), ff_rtsp_open_transport_ctx(), ffmpeg_cleanup(), flv_read_packet(), free_stream(), and mkv_check_new_extra_data().
int avcodec_parameters_copy | ( | AVCodecParameters * | dst, |
const AVCodecParameters * | src | ||
) |
Copy the contents of src to dst.
Any allocated fields in dst are freed and replaced with newly allocated duplicates of the corresponding fields in src.
Definition at line 2003 of file utils.c.
Referenced by asfrtp_parse_sdp_line(), av_bsf_init(), bsf_list_init(), bsfs_init(), copy_stream_props(), dash_init(), detect_stream_specific(), extract_extradata_init(), ff_rtp_chain_mux_open(), ff_stream_add_bitstream_filter(), ff_stream_encode_params_copy(), hds_write_header(), hls_mux_init(), init_output_bsfs(), init_output_stream_streamcopy(), ism_write_header(), main(), mkv_check_new_extra_data(), mpegts_init(), open_demux_for_component(), open_output_file(), open_slave(), read_gab2_sub(), rtp_mpegts_write_header(), sap_fetch_packet(), sap_read_header(), seg_write_header(), segment_mux_init(), set_stream_info_from_input_stream(), and write_packet().
int avcodec_parameters_from_context | ( | AVCodecParameters * | par, |
const AVCodecContext * | codec | ||
) |
Fill the parameters struct based on the values from the supplied codec context.
Any allocated fields in par are freed and replaced with duplicates of the corresponding fields in codec.
Definition at line 2021 of file utils.c.
Referenced by add_input_streams(), av_bitstream_filter_filter(), avformat_find_stream_info(), bsfs_init(), cuvid_decode_init(), dec_enc(), init_muxer(), init_output_stream(), init_output_stream_streamcopy(), open_audio(), open_output_file(), and open_video().
int avcodec_parameters_to_context | ( | AVCodecContext * | codec, |
const AVCodecParameters * | par | ||
) |
Fill the codec context based on the values from the supplied codec parameters.
Any allocated fields in codec that have a corresponding field in par are freed and replaced with duplicates of the corresponding field in par. Fields in codec that do not have a counterpart in par are not touched.
Definition at line 2078 of file utils.c.
Referenced by add_input_streams(), avformat_find_stream_info(), dump_stream_format(), ff_load_image(), init_output_stream_streamcopy(), main(), old_flac_header(), open_codec_context(), open_input_file(), open_stream(), read_frame_internal(), remove_extradata_init(), seek_test(), stream_component_open(), update_stream_avctx(), video_decode(), and video_decode_example().
int avcodec_open2 | ( | AVCodecContext * | avctx, |
const AVCodec * | codec, | ||
AVDictionary ** | options | ||
) |
Initialize the AVCodecContext to use the given AVCodec.
Prior to using this function the context has to be allocated with avcodec_alloc_context3().
The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for retrieving a codec.
avctx | The context to initialize. |
codec | The codec to open this context for. If a non-NULL codec has been previously passed to avcodec_alloc_context3() or for this context, then this parameter MUST be either NULL or equal to the previously passed codec. |
options | A dictionary filled with AVCodecContext and codec-private options. On return this object will be filled with options that were not found. |
Definition at line 538 of file utils.c.
Referenced by avcodec_get_subtitle_rect_class(), avformat_find_stream_info(), config_input(), config_props(), dec_enc(), estimate_best_b_count(), ff_codec_open2_recursive(), ff_frame_thread_encoder_init(), ff_load_image(), init_decoder(), init_encoder(), init_input_stream(), init_output_stream(), LLVMFuzzerTestOneInput(), main(), open_audio(), open_codec_context(), open_input_file(), open_output_file(), open_stream(), open_video(), seek_test(), stream_component_open(), test_copy(), try_decode_frame(), try_decode_video_frame(), video_decode(), video_decode_example(), and wrap().
int avcodec_close | ( | AVCodecContext * | avctx | ) |
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself).
Calling this function on an AVCodecContext that hasn't been opened will free the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL codec. Subsequent calls will do nothing.
Definition at line 1061 of file utils.c.
Referenced by avcodec_free_context(), avcodec_get_subtitle_rect_class(), avformat_find_stream_info(), close_decoder(), close_encoder(), end(), find_video_stream_info(), read_frame_internal(), seek_test(), smvjpeg_decode_end(), test_copy(), transcode(), transcode_init(), uninit(), video_decode(), video_decode_example(), and worker().
void avsubtitle_free | ( | AVSubtitle * | sub | ) |
Free all allocated data in the given subtitle struct.
sub | AVSubtitle to free. |
Definition at line 1042 of file utils.c.
Referenced by avcodec_decode_subtitle2(), configure_filtergraph(), display_end_segment(), dvbsub_decode(), ffmpeg_cleanup(), frame_queue_unref_item(), process_frame(), subtitle_handler(), subtitle_thread(), and transcode_subtitles().