FFmpeg
Macros | Functions | Variables
options.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "swresample_internal.h"
#include <float.h>

Go to the source code of this file.

Macros

#define C30DB   M_SQRT2
 
#define C15DB   1.189207115
 
#define C__0DB   1.0
 
#define C_15DB   0.840896415
 
#define C_30DB   M_SQRT1_2
 
#define C_45DB   0.594603558
 
#define C_60DB   0.5
 
#define OFFSET(x)   offsetof(SwrContext,x)
 
#define PARAM   AV_OPT_FLAG_AUDIO_PARAM
 
#define DEPREC   AV_OPT_FLAG_DEPRECATED
 

Functions

static const char * context_to_name (void *ptr)
 
const AVClassswr_get_class (void)
 Get the AVClass for SwrContext. More...
 
av_cold struct SwrContextswr_alloc (void)
 Allocate SwrContext. More...
 

Variables

static const AVOption options []
 
static const AVClass av_class
 

Macro Definition Documentation

◆ C30DB

#define C30DB   M_SQRT2

Definition at line 27 of file options.c.

◆ C15DB

#define C15DB   1.189207115

Definition at line 28 of file options.c.

◆ C__0DB

#define C__0DB   1.0

Definition at line 29 of file options.c.

◆ C_15DB

#define C_15DB   0.840896415

Definition at line 30 of file options.c.

◆ C_30DB

#define C_30DB   M_SQRT1_2

Definition at line 31 of file options.c.

◆ C_45DB

#define C_45DB   0.594603558

Definition at line 32 of file options.c.

◆ C_60DB

#define C_60DB   0.5

Definition at line 33 of file options.c.

◆ OFFSET

#define OFFSET (   x)    offsetof(SwrContext,x)

Definition at line 35 of file options.c.

◆ PARAM

#define PARAM   AV_OPT_FLAG_AUDIO_PARAM

Definition at line 36 of file options.c.

◆ DEPREC

#define DEPREC   AV_OPT_FLAG_DEPRECATED

Definition at line 37 of file options.c.

Function Documentation

◆ context_to_name()

static const char* context_to_name ( void *  ptr)
static

Definition at line 128 of file options.c.

Variable Documentation

◆ options

const AVOption options[]
static

Definition at line 39 of file options.c.

◆ av_class

const AVClass av_class
static
Initial value:
= {
.class_name = "SWResampler",
.item_name = context_to_name,
.option = options,
.log_level_offset_offset = OFFSET(log_level_offset),
.parent_log_context_offset = OFFSET(log_ctx),
}

Definition at line 132 of file options.c.

Referenced by swr_alloc(), and swr_get_class().

options
static const AVOption options[]
Definition: options.c:39
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
OFFSET
#define OFFSET(x)
Definition: options.c:35
AV_CLASS_CATEGORY_SWRESAMPLER
@ AV_CLASS_CATEGORY_SWRESAMPLER
Definition: log.h:39
context_to_name
static const char * context_to_name(void *ptr)
Definition: options.c:128