#include <float.h>
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
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 | LOG_PERIOD 15 |
|
#define | AMPLITUDE 4095 |
|
#define | AMPLITUDE_SHIFT 3 |
|
#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 AMPLITUDE_SHIFT 3 |
AVFILTER_DEFINE_CLASS |
( |
sine |
| ) |
|
static void make_sin_table |
( |
int16_t * |
sin | ) |
|
|
static |
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 fequency factor"),
OPT_DBL(
"b", beep_factor, 0, 0, DBL_MAX,
"set the beep fequency factor"),
OPT_INT(
"samples_per_frame", samples_per_frame, 1024, 0, INT_MAX,
"set the number of samples per frame"),
{NULL},
}
Definition at line 64 of file asrc_sine.c.
Initial value:= {
{
.name = "default",
},
{ NULL }
}
Definition at line 203 of file asrc_sine.c.
Initial value:= {
.name = "sine",
.priv_class = &sine_class,
}
Definition at line 213 of file asrc_sine.c.