Go to the source code of this file.
|
static int | activate (AVFilterContext *ctx) |
|
static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
|
static float * | make_lpf (int num_taps, float Fc, float beta, float rho, float scale, int dc_norm) |
|
static float | kaiser_beta (float att, float tr_bw) |
|
static void | kaiser_params (float att, float Fc, float tr_bw, float *beta, int *num_taps) |
|
static float * | lpf (float Fn, float Fc, float tbw, int *num_taps, float att, float *beta, int round) |
|
static void | invert (float *h, int n) |
|
static float | safe_log (float x) |
|
static int | fir_to_phase (SincContext *s, float **h, int *len, int *post_len, float phase) |
|
static int | config_output (AVFilterLink *outlink) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
| AVFILTER_DEFINE_CLASS (sinc) |
|
◆ SQR
#define SQR |
( |
|
a | ) |
((a) * (a)) |
◆ AF
◆ OFFSET
◆ activate()
◆ query_formats()
◆ make_lpf()
◆ kaiser_beta()
◆ kaiser_params()
◆ lpf()
◆ invert()
static void invert |
( |
float * |
h, |
|
|
int |
n |
|
) |
| |
|
static |
◆ safe_log()
◆ fir_to_phase()
◆ config_output()
◆ uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
sinc |
| ) |
|
◆ sinc_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 395 of file asrc_sinc.c.
◆ sinc_options
Initial value:= {
{
"nb_samples",
"set the number of samples per requested frame",
OFFSET(nb_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
AF },
{
"n",
"set the number of samples per requested frame",
OFFSET(nb_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
AF },
{
"hptaps",
"set number of taps for high-pass filter",
OFFSET(num_taps[0]),
AV_OPT_TYPE_INT, {.i64=0}, 0, 32768,
AF },
{
"lptaps",
"set number of taps for low-pass filter",
OFFSET(num_taps[1]),
AV_OPT_TYPE_INT, {.i64=0}, 0, 32768,
AF },
}
Definition at line 406 of file asrc_sinc.c.
◆ ff_asrc_sinc
Initial value:= {
.name = "sinc",
.description =
NULL_IF_CONFIG_SMALL(
"Generate a sinc kaiser-windowed low-pass, high-pass, band-pass, or band-reject FIR coefficients."),
.priv_class = &sinc_class,
}
Definition at line 424 of file asrc_sinc.c.