FFmpeg
Macros | Functions | Variables
options.c File Reference
#include "config_components.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "libavutil/avassert.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include <string.h>
#include "options_table.h"

Go to the source code of this file.

Macros

#define SROFFSET(x)   offsetof(AVSubtitleRect,x)
 

Functions

FF_DISABLE_DEPRECATION_WARNINGS static const FF_ENABLE_DEPRECATION_WARNINGS char * context_to_name (void *ptr)
 
static void * codec_child_next (void *obj, void *prev)
 
static const AVClasscodec_child_class_iterate (void **iter)
 
static AVClassCategory get_category (void *ptr)
 
static int init_context_defaults (AVCodecContext *s, const AVCodec *codec)
 
AVCodecContextavcodec_alloc_context3 (const AVCodec *codec)
 Allocate an AVCodecContext and set its fields to default values. More...
 
void avcodec_free_context (AVCodecContext **pavctx)
 Free the codec context and everything associated with it and write NULL to the provided pointer. More...
 
const AVClassavcodec_get_class (void)
 Get the AVClass for AVCodecContext. More...
 
const AVClassavcodec_get_subtitle_rect_class (void)
 Get the AVClass for AVSubtitleRect. More...
 

Variables

static const AVClass av_codec_context_class
 
static const AVOption subtitle_rect_options []
 
static const AVClass av_subtitle_rect_class
 

Detailed Description

Options definition for AVCodecContext.

Definition in file options.c.

Macro Definition Documentation

◆ SROFFSET

#define SROFFSET (   x)    offsetof(AVSubtitleRect,x)

Definition at line 192 of file options.c.

Function Documentation

◆ context_to_name()

FF_DISABLE_DEPRECATION_WARNINGS static const FF_ENABLE_DEPRECATION_WARNINGS char* context_to_name ( void *  ptr)
static

Definition at line 41 of file options.c.

◆ codec_child_next()

static void* codec_child_next ( void *  obj,
void *  prev 
)
static

Definition at line 50 of file options.c.

◆ codec_child_class_iterate()

static const AVClass* codec_child_class_iterate ( void **  iter)
static

Definition at line 58 of file options.c.

◆ get_category()

static AVClassCategory get_category ( void *  ptr)
static

Definition at line 68 of file options.c.

◆ init_context_defaults()

static int init_context_defaults ( AVCodecContext s,
const AVCodec codec 
)
static

Definition at line 89 of file options.c.

Referenced by avcodec_alloc_context3().

Variable Documentation

◆ av_codec_context_class

const AVClass av_codec_context_class
static
Initial value:
= {
.class_name = "AVCodecContext",
.item_name = context_to_name,
.option = avcodec_options,
.log_level_offset_offset = 0x42,
.child_next = codec_child_next,
.child_class_iterate = codec_child_class_iterate,
.get_category = get_category,
}

Definition at line 77 of file options.c.

Referenced by avcodec_get_class(), and init_context_defaults().

◆ subtitle_rect_options

const AVOption subtitle_rect_options[]
static
Initial value:
={
{"x", "", SROFFSET(x), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0},
{"y", "", SROFFSET(y), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0},
{"w", "", SROFFSET(w), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0},
{"h", "", SROFFSET(h), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0},
{"type", "", SROFFSET(type), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, 0},
{"flags", "", SROFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = 0}, 0, 1, 0, "flags"},
{"forced", "", SROFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = 0}, 0, 1, 0},
{NULL},
}

Definition at line 194 of file options.c.

◆ av_subtitle_rect_class

const AVClass av_subtitle_rect_class
static
Initial value:
= {
.class_name = "AVSubtitleRect",
.item_name = NULL,
}

Definition at line 205 of file options.c.

Referenced by avcodec_get_subtitle_rect_class().

w
uint8_t w
Definition: llviddspenc.c:38
type
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 type
Definition: writing_filters.txt:86
subtitle_rect_options
static const AVOption subtitle_rect_options[]
Definition: options.c:194
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
codec_child_next
static void * codec_child_next(void *obj, void *prev)
Definition: options.c:50
codec_child_class_iterate
static const AVClass * codec_child_class_iterate(void **iter)
Definition: options.c:58
AVClass::category
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
Definition: log.h:114
SROFFSET
#define SROFFSET(x)
Definition: options.c:192
get_category
static AVClassCategory get_category(void *ptr)
Definition: options.c:68
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AV_OPT_TYPE_FLAGS
@ AV_OPT_TYPE_FLAGS
Definition: opt.h:224
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474
avcodec_options
static const AVOption avcodec_options[]
Definition: options_table.h:47
AV_CLASS_CATEGORY_ENCODER
@ AV_CLASS_CATEGORY_ENCODER
Definition: log.h:34
h
h
Definition: vp9dsp_template.c:2038
context_to_name
FF_DISABLE_DEPRECATION_WARNINGS static const FF_ENABLE_DEPRECATION_WARNINGS char * context_to_name(void *ptr)
Definition: options.c:41