audio resampling
More...
Go to the source code of this file.
|
| static int | build_filter (ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, int filter_type, double kaiser_beta) |
| | builds a polyphase filterbank.
|
| |
| static void | resample_free (ResampleContext **cc) |
| |
| 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, double kaiser_beta, double precision, int cheby, int exact_rational) |
| |
| static int | rebuild_filter_bank_with_compensation (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 int64_t | get_out_samples (struct SwrContext *s, int in_samples) |
| |
| static int | resample_flush (struct SwrContext *s) |
| |
| static int | invert_initial_buffer (ResampleContext *c, AudioData *dst, const AudioData *src, int in_count, int *out_idx, int *out_sz) |
| |
audio resampling
- Author
- Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at
Definition in file resample.c.
◆ build_filter()
| static int build_filter |
( |
ResampleContext * | c, |
|
|
void * | filter, |
|
|
double | factor, |
|
|
int | tap_count, |
|
|
int | alloc, |
|
|
int | phase_count, |
|
|
int | scale, |
|
|
int | filter_type, |
|
|
double | kaiser_beta ) |
|
static |
◆ resample_free()
◆ 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, |
|
|
double | kaiser_beta, |
|
|
double | precision, |
|
|
int | cheby, |
|
|
int | exact_rational ) |
|
static |
◆ rebuild_filter_bank_with_compensation()
◆ set_compensation()
| static int set_compensation |
( |
ResampleContext * | c, |
|
|
int | sample_delta, |
|
|
int | compensation_distance ) |
|
static |
◆ multiple_resample()
◆ get_delay()
◆ get_out_samples()
◆ resample_flush()
| static int resample_flush |
( |
struct SwrContext * | s | ) |
|
|
static |
◆ invert_initial_buffer()
◆ swri_resampler
Initial value:= {
}
static int64_t get_delay(struct SwrContext *s, int64_t base)
static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed)
static int invert_initial_buffer(ResampleContext *c, AudioData *dst, const AudioData *src, int in_count, int *out_idx, int *out_sz)
static int set_compensation(ResampleContext *c, int sample_delta, int compensation_distance)
static int resample_flush(struct SwrContext *s)
static int64_t get_out_samples(struct SwrContext *s, int in_samples)
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, double kaiser_beta, double precision, int cheby, int exact_rational)
static void resample_free(ResampleContext **cc)
Definition at line 504 of file resample.c.
Referenced by swr_init().