FFmpeg
Loading...
Searching...
No Matches
options.c File Reference

Options definition for AVCodecContext. More...

#include "config_components.h"
#include "avcodec.h"
#include "avcodec_internal.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)
 

Functions

FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const 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.
 
void avcodec_free_context (AVCodecContext **pavctx)
 Free the codec context and everything associated with it and write NULL to the provided pointer.
 
const AVClassavcodec_get_class (void)
 Get the AVClass for AVCodecContext.
 
const AVClassavcodec_get_subtitle_rect_class (void)
 Get the AVClass for AVSubtitleRect.
 

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)
Value:

Definition at line 189 of file options.c.

Function Documentation

◆ context_to_name()

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

Definition at line 42 of file options.c.

◆ codec_child_next()

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

Definition at line 51 of file options.c.

◆ codec_child_class_iterate()

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

Definition at line 59 of file options.c.

◆ get_category()

static AVClassCategory get_category ( void * ptr)
static

Definition at line 69 of file options.c.

◆ init_context_defaults()

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

Definition at line 90 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,
}
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const char * context_to_name(void *ptr)
Definition options.c:42
static const AVClass * codec_child_class_iterate(void **iter)
Definition options.c:59
static AVClassCategory get_category(void *ptr)
Definition options.c:69
static void * codec_child_next(void *obj, void *prev)
Definition options.c:51
static const AVOption avcodec_options[]
@ AV_CLASS_CATEGORY_ENCODER
Definition log.h:34

Definition at line 78 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, .unit = "flags"},
{"forced", "", SROFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = 0}, 0, 1, 0},
{NULL},
}
#define flags(name, subs,...)
Definition cbs_h264.c:74
#define NULL
Definition coverity.c:32
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
Definition opt.h:254
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
cl_device_type type
#define SROFFSET(x)
Definition options.c:189
uint8_t w
Definition llvidencdsp.c:39

Definition at line 191 of file options.c.

◆ av_subtitle_rect_class

const AVClass av_subtitle_rect_class
static
Initial value:
= {
.class_name = "AVSubtitleRect",
.item_name = NULL,
}
static const AVOption subtitle_rect_options[]
Definition options.c:191

Definition at line 202 of file options.c.

Referenced by avcodec_get_subtitle_rect_class().