FFmpeg  4.4.4
Macros | Enumerations | Functions | Variables
options.c File Reference

Options definition for AVFormatContext. More...

#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "libavutil/avassert.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "options_table.h"

Go to the source code of this file.

Macros

#define ITER_STATE_SHIFT   16
 

Enumerations

enum  { CHILD_CLASS_ITER_AVIO = 0 , CHILD_CLASS_ITER_MUX , CHILD_CLASS_ITER_DEMUX , CHILD_CLASS_ITER_DONE }
 

Functions

FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const char * format_to_name (void *ptr)
 
static voidformat_child_next (void *obj, void *prev)
 
static const AVClassformat_child_class_next (const AVClass *prev)
 
static const AVClassformat_child_class_iterate (void **iter)
 
static AVClassCategory get_category (void *ptr)
 
static int io_open_default (AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options)
 
static void io_close_default (AVFormatContext *s, AVIOContext *pb)
 
static void avformat_get_context_defaults (AVFormatContext *s)
 
AVFormatContextavformat_alloc_context (void)
 Allocate an AVFormatContext. More...
 
enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method (const AVFormatContext *ctx)
 Returns the method used to set ctx->duration. More...
 
const AVClassavformat_get_class (void)
 Get the AVClass for AVFormatContext. More...
 

Variables

static const AVClass av_format_context_class
 

Detailed Description

Options definition for AVFormatContext.

Definition in file options.c.

Macro Definition Documentation

◆ ITER_STATE_SHIFT

#define ITER_STATE_SHIFT   16

Definition at line 100 of file options.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHILD_CLASS_ITER_AVIO 
CHILD_CLASS_ITER_MUX 
CHILD_CLASS_ITER_DEMUX 
CHILD_CLASS_ITER_DONE 

Definition at line 92 of file options.c.

Function Documentation

◆ format_to_name()

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

Definition at line 37 of file options.c.

◆ format_child_next()

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

Definition at line 45 of file options.c.

◆ format_child_class_next()

static const AVClass* format_child_class_next ( const AVClass prev)
static

Definition at line 58 of file options.c.

◆ format_child_class_iterate()

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

Definition at line 102 of file options.c.

◆ get_category()

static AVClassCategory get_category ( void ptr)
static

Definition at line 148 of file options.c.

◆ io_open_default()

static int io_open_default ( AVFormatContext s,
AVIOContext **  pb,
const char *  url,
int  flags,
AVDictionary **  options 
)
static

Definition at line 169 of file options.c.

Referenced by avformat_get_context_defaults().

◆ io_close_default()

static void io_close_default ( AVFormatContext s,
AVIOContext pb 
)
static

Definition at line 194 of file options.c.

Referenced by avformat_get_context_defaults().

◆ avformat_get_context_defaults()

static void avformat_get_context_defaults ( AVFormatContext s)
static

Definition at line 199 of file options.c.

Referenced by av_fmt_ctx_get_duration_estimation_method().

◆ av_fmt_ctx_get_duration_estimation_method()

enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method ( const AVFormatContext ctx)

Returns the method used to set ctx->duration.

Returns
AVFMT_DURATION_FROM_PTS, AVFMT_DURATION_FROM_STREAM, or AVFMT_DURATION_FROM_BITRATE.

Definition at line 211 of file options.c.

Variable Documentation

◆ av_format_context_class

const AVClass av_format_context_class
static
Initial value:
= {
.class_name = "AVFormatContext",
.item_name = format_to_name,
.option = avformat_options,
.child_next = format_child_next,
.child_class_next = format_child_class_next,
.get_category = get_category,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
static void * format_child_next(void *obj, void *prev)
Definition: options.c:45
static const AVClass * format_child_class_iterate(void **iter)
Definition: options.c:102
static const AVClass * format_child_class_next(const AVClass *prev)
Definition: options.c:58
FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const char * format_to_name(void *ptr)
Definition: options.c:37
static AVClassCategory get_category(void *ptr)
Definition: options.c:148
static const AVOption avformat_options[]
Definition: options_table.h:36
@ AV_CLASS_CATEGORY_MUXER
Definition: log.h:33
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
Definition: log.h:133
const struct AVClass *(* child_class_iterate)(void **iter)
Iterate over the AVClasses corresponding to potential AVOptions-enabled children.
Definition: log.h:160

Definition at line 155 of file options.c.

Referenced by avformat_get_class(), and avformat_get_context_defaults().