FFmpeg
Loading...
Searching...
No Matches
Data Fields
AVCodec Struct Reference

AVCodec. More...

#include <codec.h>

Data Fields

const char *  name
  Name of the codec implementation.
 
const char *  long_name
  Descriptive name for the codec, meant to be more human readable than name.
 
enum AVMediaType  type
 
enum AVCodecID  id
 
int  capabilities
  Codec capabilities.
 
uint8_t  max_lowres
  maximum value for lowres supported by the decoder
 
const AVClasspriv_class
  AVClass for the private context.
 
const AVProfileprofiles
  array of recognized profiles, or NULL if unknown, array is terminated by {AV_PROFILE_UNKNOWN}
 
const char *  wrapper_name
  Group name of the codec implementation.
 

Detailed Description

AVCodec.

Examples
decode_audio.c, decode_filter_audio.c, decode_filter_video.c, decode_video.c, demux_decode.c, encode_audio.c, encode_video.c, extract_mvs.c, hw_decode.c, mux.c, qsv_decode.c, qsv_transcode.c, transcode.c, transcode_aac.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 175 of file codec.h.

Field Documentation

◆  name

const char* AVCodec::name

Name of the codec implementation.

The name is globally unique among encoders and among decoders (but an encoder and a decoder can share the same name). This is the primary way to find a codec from the user perspective.

Examples
transcode.c.

Definition at line 182 of file codec.h.

Referenced by avcodec_open2(), avcodec_string(), choose_pixel_fmt(), context_to_name(), cuvid_test_capabilities(), dec_open(), dec_thread_set_name(), dshow_cycle_formats(), enc_alloc(), find_codec(), hw_device_setup_for_decode(), hw_device_setup_for_encode(), main(), main(), new_stream_video(), open_output_file(), ost_add(), ost_bind_filter(), print_codecs(), print_codecs_for_id(), print_stream_maps(), print_streams(), set_encoder_id(), show_codecs(), and thread_set_name().

◆  long_name

const char* AVCodec::long_name

Descriptive name for the codec, meant to be more human readable than name.

You should use the NULL_IF_CONFIG_SMALL() macro to define it.

Definition at line 187 of file codec.h.

Referenced by print_codecs().

◆  type

enum AVMediaType AVCodec::type
Examples
demux_decode.c.

Definition at line 188 of file codec.h.

Referenced by avcodec_open2(), dec_open(), decode_packet(), decode_simple_internal(), enc_reopen(), encode_receive_packet_internal(), encode_send_frame_internal(), encode_set_packet_props(), ff_decode_frame_props(), ff_decode_receive_frame_internal(), ff_default_get_supported_config(), ff_frame_thread_init(), fill_frame_props(), find_codec(), init_context_defaults(), main(), and mf_create().

◆  id

enum AVCodecID AVCodec::id
Examples
decode_audio.c, decode_video.c, and encode_video.c.

Definition at line 189 of file codec.h.

Referenced by a64multi_encode_init(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), amf_copy_buffer(), amf_init_decoder(), amf_init_encoder(), amf_submit_frame(), avcodec_open2(), binkaudio_receive_frame(), compute_dar(), cuvid_decode_init(), decode_init(), dpcm_decode_frame(), dpcm_decode_init(), eightsvx_decode_init(), enc_reopen(), encode_init(), encode_init(), ff_aptx_init(), ff_h263_decode_init(), ff_mjpeg_decode_init(), ff_mpv_encode_init(), ff_wma_init(), find_probe_decoder(), get_nb_samples(), ifile_open(), init_context_defaults(), ist_use(), main(), main(), map_auto_subtitle(), mf_create(), nvdec_mpeg4_start_frame(), nvenc_codec_specific_pic_params(), nvenc_setup_codec_config(), nvenc_setup_device(), nvenc_setup_encoder(), nvenc_setup_rate_control(), ost_add(), pcm_decode_frame(), pcm_encode_frame(), pcm_encode_init(), prepare_sei_data_array(), print_stream_maps(), set_constqp(), set_vbr(), siren_init(), stream_component_open(), vaapi_mpeg4_start_frame(), vdpau_mpeg4_start_frame(), and wma_decode_init().

◆  capabilities

int AVCodec::capabilities

Codec capabilities.

see AV_CODEC_CAP_*

Examples
transcode.c.

Definition at line 194 of file codec.h.

Referenced by apply_param_change(), avcodec_decode_subtitle2(), avcodec_encode_reconfigure(), avcodec_flush_buffers(), avcodec_open2(), config_input(), decode_receive_frame_internal(), decode_simple_internal(), enc_reopen(), encode_send_frame_internal(), encode_simple_internal(), ff_encode_encode_cb(), ff_encode_preinit(), ff_encode_reconf_parse_dict(), ff_frame_thread_encoder_init(), ff_hw_base_encode_set_output_property(), ff_mpv_encode_init(), ff_mpv_encode_picture(), find_probe_decoder(), frame_encode(), get_buffer(), main(), main(), print_codecs(), reinit_encoder(), submit_packet(), try_decode_frame(), validate_thread_parameters(), and video_decode().

◆  max_lowres

uint8_t AVCodec::max_lowres

maximum value for lowres supported by the decoder

Definition at line 195 of file codec.h.

Referenced by ff_decode_preinit(), and stream_component_open().

◆  priv_class

const AVClass* AVCodec::priv_class

AVClass for the private context.

Definition at line 197 of file codec.h.

Referenced by avcodec_open2(), ff_codec_close(), ff_encode_reconf_parse_dict(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), filter_codec_opts(), init_context_defaults(), init_thread(), and priv_data_size_wrong().

◆  profiles

const AVProfile* AVCodec::profiles

array of recognized profiles, or NULL if unknown, array is terminated by {AV_PROFILE_UNKNOWN}

Definition at line 198 of file codec.h.

Referenced by av_get_profile_name().

◆  wrapper_name

const char* AVCodec::wrapper_name

Group name of the codec implementation.

This is a short symbolic name of the wrapper backing this codec. A wrapper uses some kind of external implementation for the codec, such as an external library, or a codec implementation provided by the OS or the hardware. If this field is NULL, this is a builtin, libavcodec native codec. If non-NULL, this will be the suffix in AVCodec.name in most cases (usually AVCodec.name will be of the form "<codec_name>_<wrapper_name>").

Definition at line 210 of file codec.h.


The documentation for this struct was generated from the following file:

Generated on Sun Sep 6 2026 19:21:24 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /