audio resampling
More...
Go to the source code of this file.
|
static double | bessel (double x) |
| 0th order modified bessel function of the first kind.
|
|
static int | build_filter (ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, int filter_type, int kaiser_beta) |
| builds a polyphase filterbank.
|
|
static ResampleContext * | resample_init (ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta, double precision, int cheby) |
|
static void | resample_free (ResampleContext **c) |
|
static int | set_compensation (ResampleContext *c, int sample_delta, int compensation_distance) |
|
static int | multiple_resample (ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed) |
|
static int64_t | get_delay (struct SwrContext *s, int64_t base) |
|
static int | resample_flush (struct SwrContext *s) |
|
audio resampling
- Author
- Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at
Definition in file resample.c.
#define TEMPLATE_RESAMPLE_S16 |
#define TEMPLATE_RESAMPLE_S32 |
#define TEMPLATE_RESAMPLE_FLT |
#define TEMPLATE_RESAMPLE_DBL |
static double bessel |
( |
double |
x | ) |
|
|
static |
static int build_filter |
( |
ResampleContext * |
c, |
|
|
void * |
filter, |
|
|
double |
factor, |
|
|
int |
tap_count, |
|
|
int |
alloc, |
|
|
int |
phase_count, |
|
|
int |
scale, |
|
|
int |
filter_type, |
|
|
int |
kaiser_beta |
|
) |
| |
|
static |
builds a polyphase filterbank.
- Parameters
-
factor | resampling factor |
scale | wanted sum of coefficients for each filter |
filter_type | filter type |
kaiser_beta | kaiser window beta |
- Returns
- 0 on success, negative on error
Definition at line 94 of file resample.c.
Referenced by resample_init().
static ResampleContext* resample_init |
( |
ResampleContext * |
c, |
|
|
int |
out_rate, |
|
|
int |
in_rate, |
|
|
int |
filter_size, |
|
|
int |
phase_shift, |
|
|
int |
linear, |
|
|
double |
cutoff0, |
|
|
enum AVSampleFormat |
format, |
|
|
enum SwrFilterType |
filter_type, |
|
|
int |
kaiser_beta, |
|
|
double |
precision, |
|
|
int |
cheby |
|
) |
| |
|
static |
static int set_compensation |
( |
ResampleContext * |
c, |
|
|
int |
sample_delta, |
|
|
int |
compensation_distance |
|
) |
| |
|
static |
static int64_t get_delay |
( |
struct SwrContext * |
s, |
|
|
int64_t |
base |
|
) |
| |
|
static |
static int resample_flush |
( |
struct SwrContext * |
s | ) |
|
|
static |