FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
options.c File Reference

Options definition for AVFormatContext. More...

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

Go to the source code of this file.

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 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.

Function Documentation

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

Definition at line 36 of file options.c.

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

Definition at line 44 of file options.c.

static const AVClass* format_child_class_next ( const AVClass prev)
static

Definition at line 56 of file options.c.

static AVClassCategory get_category ( void ptr)
static

Definition at line 84 of file options.c.

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

Definition at line 102 of file options.c.

Referenced by avformat_get_context_defaults().

static void io_close_default ( AVFormatContext s,
AVIOContext pb 
)
static

Definition at line 115 of file options.c.

Referenced by avformat_get_context_defaults().

static void avformat_get_context_defaults ( AVFormatContext s)
static

Definition at line 120 of file options.c.

Referenced by avformat_alloc_context().

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 150 of file options.c.

Variable Documentation

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:70
static AVClassCategory get_category(void *ptr)
Definition: options.c:84
static const AVOption avformat_options[]
Definition: options_table.h:36
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
Definition: log.h:130
static const AVClass * format_child_class_next(const AVClass *prev)
Definition: options.c:56
static void * format_child_next(void *obj, void *prev)
Definition: options.c:44
FF_DISABLE_DEPRECATION_WARNINGS static FF_ENABLE_DEPRECATION_WARNINGS const char * format_to_name(void *ptr)
Definition: options.c:36

Definition at line 91 of file options.c.

Referenced by avformat_get_class(), and avformat_get_context_defaults().