Go to the documentation of this file.
21 #ifndef AVCODEC_CODEC_H
22 #define AVCODEC_CODEC_H
44 #define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0)
52 #define AV_CODEC_CAP_DR1 (1 << 1)
76 #define AV_CODEC_CAP_DELAY (1 << 5)
81 #define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6)
94 #define AV_CODEC_CAP_SUBFRAMES (1 << 8)
99 #define AV_CODEC_CAP_EXPERIMENTAL (1 << 9)
103 #define AV_CODEC_CAP_CHANNEL_CONF (1 << 10)
107 #define AV_CODEC_CAP_FRAME_THREADS (1 << 12)
111 #define AV_CODEC_CAP_SLICE_THREADS (1 << 13)
115 #define AV_CODEC_CAP_PARAM_CHANGE (1 << 14)
121 #define AV_CODEC_CAP_OTHER_THREADS (1 << 15)
125 #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16)
135 #define AV_CODEC_CAP_AVOID_PROBING (1 << 17)
142 #define AV_CODEC_CAP_HARDWARE (1 << 18)
149 #define AV_CODEC_CAP_HYBRID (1 << 19)
156 #define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE (1 << 20)
163 #define AV_CODEC_CAP_ENCODER_FLUSH (1 << 21)
171 #define AV_CODEC_CAP_ENCODER_RECON_FRAME (1 << 22)
209 #if FF_API_OLD_CHANNEL_LAYOUT
const AVChannelLayout * ch_layouts
Array of supported channel layouts, terminated with a zeroed layout.
AVPixelFormat
Pixel format.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
const char * long_name
Descriptive name for the codec, meant to be more human readable than name.
int methods
Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used...
const AVClass * priv_class
AVClass for the private context.
const char * name
short name for the profile
@ AV_CODEC_HW_CONFIG_METHOD_INTERNAL
The codec supports this format by some internal method.
enum AVPixelFormat * pix_fmts
array of supported pixel formats, or NULL if unknown, array is terminated by -1
const char * wrapper_name
Group name of the codec implementation.
const AVCodec * avcodec_find_encoder(enum AVCodecID id)
Find a registered encoder with a matching codec ID.
int capabilities
Codec capabilities.
uint8_t max_lowres
maximum value for lowres supported by the decoder
enum AVSampleFormat * sample_fmts
array of supported sample formats, or NULL if unknown, array is terminated by -1
const int * supported_samplerates
array of supported audio samplerates, or NULL if unknown, array is terminated by 0
const AVRational * supported_framerates
array of supported framerates, or NULL if any, array is terminated by {0,0}
@ AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX
The codec supports this format via the hw_frames_ctx interface.
enum AVPixelFormat pix_fmt
For decoders, a hardware pixel format which that decoder may be able to decode to if suitable hardwar...
Describe the class of an AVClass context structure.
const AVCodec * avcodec_find_decoder_by_name(const char *name)
Find a registered decoder with the specified name.
Rational number (pair of numerator and denominator).
const AVProfile * profiles
array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN}
AVCodecID
Identify the syntax and semantics of the bitstream.
const AVCodec * avcodec_find_decoder(enum AVCodecID id)
Find a registered decoder with a matching codec ID.
int av_codec_is_decoder(const AVCodec *codec)
An AVChannelLayout holds information about the channel layout of audio data.
#define attribute_deprecated
int av_codec_is_encoder(const AVCodec *codec)
const char * av_get_profile_name(const AVCodec *codec, int profile)
Return a name for the specified profile, if available.
AVSampleFormat
Audio sample formats.
const char * name
Name of the codec implementation.
const AVCodec * av_codec_iterate(void **opaque)
Iterate over all registered codecs.
@ AV_CODEC_HW_CONFIG_METHOD_AD_HOC
The codec supports this format by some ad-hoc method.
const AVCodecHWConfig * avcodec_get_hw_config(const AVCodec *codec, int index)
Retrieve supported hardware configurations for a codec.
static const uint16_t channel_layouts[7]
@ AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
The codec supports this format via the hw_device_ctx interface.
enum AVHWDeviceType device_type
The device type associated with the configuration.
const AVCodec * avcodec_find_encoder_by_name(const char *name)
Find a registered encoder with the specified name.