27#include "config_components.h"
45 if (avc && avc->
codec)
54 if (!prev &&
s->codec &&
s->codec->priv_class &&
s->priv_data)
79 .class_name =
"AVCodecContext",
83 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
101 s->codec_id = codec->
id;
189#define SROFFSET(x) offsetof(AVSubtitleRect,x)
203 .class_name =
"AVSubtitleRect",
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
av_cold void ff_codec_close(AVCodecContext *avctx)
Libavcodec external API header.
#define flags(name, subs,...)
static av_always_inline const FFCodec * ffcodec(const AVCodec *codec)
static int ff_codec_is_decoder(const AVCodec *avcodec)
Internal version of av_codec_is_decoder().
#define AV_OPT_FLAG_AUDIO_PARAM
#define AV_OPT_FLAG_VIDEO_PARAM
#define AV_OPT_FLAG_SUBTITLE_PARAM
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
@ AV_OPT_TYPE_INT
Underlying C type is int.
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
const AVClass * avcodec_get_subtitle_rect_class(void)
Get the AVClass for AVSubtitleRect.
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
const AVCodec * av_codec_iterate(void **opaque)
Iterate over all registered codecs.
void avcodec_free_context(AVCodecContext **pavctx)
Free the codec context and everything associated with it and write NULL to the provided pointer.
int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags)
The default callback for AVCodecContext.get_buffer2().
int avcodec_default_get_encode_buffer(AVCodecContext *s, AVPacket *pkt, int flags)
The default callback for AVCodecContext.get_encode_buffer().
enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
int avcodec_default_execute2(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr), void *arg, int *ret, int count)
int avcodec_default_execute(AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
@ AV_CHANNEL_ORDER_UNSPEC
Only the channel count is specified, without any further information about the channel order.
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
#define LIBAVUTIL_VERSION_INT
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
void av_opt_set_defaults2(void *s, int mask, int flags)
Set the values of all AVOption fields to their default values.
int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const char * context_to_name(void *ptr)
static const AVClass av_subtitle_rect_class
static int init_context_defaults(AVCodecContext *s, const AVCodec *codec)
static const AVClass * codec_child_class_iterate(void **iter)
static const AVClass av_codec_context_class
static AVClassCategory get_category(void *ptr)
static const AVOption subtitle_rect_options[]
static void * codec_child_next(void *obj, void *prev)
static const AVOption avcodec_options[]
common internal API header
#define FF_DISABLE_DEPRECATION_WARNINGS
#define FF_ENABLE_DEPRECATION_WARNINGS
@ AV_CLASS_CATEGORY_ENCODER
@ AV_CLASS_CATEGORY_DECODER
Memory handling functions.
Describe the class of an AVClass context structure.
main external API structure.
uint16_t * chroma_intra_matrix
custom intra quantization matrix
AVChannelLayout ch_layout
Audio channel layout.
uint16_t * inter_matrix
custom inter quantization matrix Must be allocated with the av_malloc() family of functions,...
const struct AVCodec * codec
uint16_t * intra_matrix
custom intra quantization matrix Must be allocated with the av_malloc() family of functions,...
uint8_t * subtitle_header
uint8_t * extradata
Out-of-band global headers that may be used by some codecs.
const AVClass * priv_class
AVClass for the private context.
const char * name
Name of the codec implementation.
Rational number (pair of numerator and denominator).
const FFCodecDefault * defaults
Private codec-specific defaults.