Go to the source code of this file.
|
#define | CONTEXT SineContext |
|
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
|
#define | OPT_GENERIC(name, field, def, min, max, descr, type, deffield, ...) |
|
#define | OPT_INT(name, field, def, min, max, descr, ...) OPT_GENERIC(name, field, def, min, max, descr, INT, i64, __VA_ARGS__) |
|
#define | OPT_DBL(name, field, def, min, max, descr, ...) OPT_GENERIC(name, field, def, min, max, descr, DOUBLE, dbl, __VA_ARGS__) |
|
#define | OPT_DUR(name, field, def, min, max, descr, ...) OPT_GENERIC(name, field, def, min, max, descr, DURATION, str, __VA_ARGS__) |
|
#define | OPT_STR(name, field, def, min, max, descr, ...) OPT_GENERIC(name, field, def, min, max, descr, STRING, str, __VA_ARGS__) |
|
#define | LOG_PERIOD 15 |
|
#define | AMPLITUDE 4095 |
|
#define | AMPLITUDE_SHIFT 3 |
|
◆ CONTEXT
◆ FLAGS
◆ OPT_GENERIC
◆ OPT_INT
#define OPT_INT |
( |
|
name, |
|
|
|
field, |
|
|
|
def, |
|
|
|
min, |
|
|
|
max, |
|
|
|
descr, |
|
|
|
... |
|
) |
| OPT_GENERIC(name, field, def, min, max, descr, INT, i64, __VA_ARGS__) |
◆ OPT_DBL
#define OPT_DBL |
( |
|
name, |
|
|
|
field, |
|
|
|
def, |
|
|
|
min, |
|
|
|
max, |
|
|
|
descr, |
|
|
|
... |
|
) |
| OPT_GENERIC(name, field, def, min, max, descr, DOUBLE, dbl, __VA_ARGS__) |
◆ OPT_DUR
#define OPT_DUR |
( |
|
name, |
|
|
|
field, |
|
|
|
def, |
|
|
|
min, |
|
|
|
max, |
|
|
|
descr, |
|
|
|
... |
|
) |
| OPT_GENERIC(name, field, def, min, max, descr, DURATION, str, __VA_ARGS__) |
◆ OPT_STR
#define OPT_STR |
( |
|
name, |
|
|
|
field, |
|
|
|
def, |
|
|
|
min, |
|
|
|
max, |
|
|
|
descr, |
|
|
|
... |
|
) |
| OPT_GENERIC(name, field, def, min, max, descr, STRING, str, __VA_ARGS__) |
◆ LOG_PERIOD
◆ AMPLITUDE
◆ AMPLITUDE_SHIFT
#define AMPLITUDE_SHIFT 3 |
◆ anonymous enum
Enumerator |
---|
VAR_N | |
VAR_PTS | |
VAR_T | |
VAR_TB | |
VAR_VARS_NB | |
Definition at line 136 of file asrc_sine.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
sine |
| ) |
|
◆ make_sin_table()
static void make_sin_table |
( |
int16_t * |
sin | ) |
|
|
static |
◆ init()
◆ uninit()
◆ query_formats()
◆ config_props()
◆ request_frame()
◆ sine_options
Initial value:= {
OPT_DBL(
"frequency", frequency, 440, 0, DBL_MAX,
"set the sine frequency",),
OPT_DBL(
"f", frequency, 440, 0, DBL_MAX,
"set the sine frequency",),
OPT_DBL(
"beep_factor", beep_factor, 0, 0, DBL_MAX,
"set the beep frequency factor",),
OPT_DBL(
"b", beep_factor, 0, 0, DBL_MAX,
"set the beep frequency factor",),
OPT_STR(
"samples_per_frame", samples_per_frame,
"1024", 0, 0,
"set the number of samples per frame",),
}
Definition at line 69 of file asrc_sine.c.
◆ var_names
const char* const var_names[] |
|
static |
Initial value:= {
"n",
"pts",
"t",
"TB",
}
Definition at line 128 of file asrc_sine.c.
Referenced by init().
◆ sine_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 262 of file asrc_sine.c.
◆ ff_asrc_sine
Initial value:= {
.name = "sine",
.priv_class = &sine_class,
}
Definition at line 272 of file asrc_sine.c.
static av_cold int config_props(AVFilterLink *outlink)
static av_cold void uninit(AVFilterContext *ctx)
static int request_frame(AVFilterLink *outlink)
#define OPT_DBL(name, field, def, min, max, descr,...)
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
static const AVFilterPad outputs[]
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 field
#define OPT_DUR(name, field, def, min, max, descr,...)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define OPT_STR(name, field, def, min, max, descr,...)
static const AVFilterPad sine_outputs[]
#define OPT_INT(name, field, def, min, max, descr,...)
static av_cold int init(AVFilterContext *ctx)
static av_cold int query_formats(AVFilterContext *ctx)