Go to the source code of this file.
|
static int | request_frame (AVFilterLink *outlink) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static float | bessel_I_0 (float x) |
|
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) |
|
◆ PACK
#define PACK |
( |
|
h, |
|
|
|
n |
|
) |
| h[1] = h[n] |
◆ UNPACK
#define UNPACK |
( |
|
h, |
|
|
|
n |
|
) |
| h[n] = h[1], h[n + 1] = h[1] = 0; |
◆ SQR
#define SQR |
( |
|
a | ) |
((a) * (a)) |
◆ AF
◆ OFFSET
◆ request_frame()
◆ query_formats()
◆ bessel_I_0()
static float bessel_I_0 |
( |
float |
x | ) |
|
|
static |
◆ make_lpf()
static float* make_lpf |
( |
int |
num_taps, |
|
|
float |
Fc, |
|
|
float |
beta, |
|
|
float |
rho, |
|
|
float |
scale, |
|
|
int |
dc_norm |
|
) |
| |
|
static |
◆ kaiser_beta()
static float kaiser_beta |
( |
float |
att, |
|
|
float |
tr_bw |
|
) |
| |
|
static |
◆ kaiser_params()
static void kaiser_params |
( |
float |
att, |
|
|
float |
Fc, |
|
|
float |
tr_bw, |
|
|
float * |
beta, |
|
|
int * |
num_taps |
|
) |
| |
|
static |
◆ lpf()
static float* lpf |
( |
float |
Fn, |
|
|
float |
Fc, |
|
|
float |
tbw, |
|
|
int * |
num_taps, |
|
|
float |
att, |
|
|
float * |
beta, |
|
|
int |
round |
|
) |
| |
|
static |
◆ invert()
static void invert |
( |
float * |
h, |
|
|
int |
n |
|
) |
| |
|
static |
◆ safe_log()
static float safe_log |
( |
float |
x | ) |
|
|
static |
◆ fir_to_phase()
◆ config_output()
◆ uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
sinc |
| ) |
|
◆ sinc_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 416 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 429 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 447 of file asrc_sinc.c.