Logo Search packages:      
Sourcecode: pulseaudio version File versions

resample2.c File Reference

Detailed Description

audio resampling
Michael Niedermayer <michaelni@gmx.at>

Definition in file resample2.c.

#include "avcodec.h"
#include "dsputil.h"

Go to the source code of this file.


struct  AVResampleContext


#define FELEM   int16_t
#define FELEM2   int32_t
#define FELEM_MAX   INT16_MAX
#define FELEM_MIN   INT16_MIN
#define FELEML   int64_t
#define FILTER_SHIFT   15
#define WINDOW_TYPE   9


void av_build_filter (FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type)
int av_resample (AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx)
void av_resample_close (AVResampleContext *c)
void av_resample_compensate (AVResampleContext *c, int sample_delta, int compensation_distance)
AVResampleContext * av_resample_init (int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff)
static double bessel (double x)

Generated by  Doxygen 1.6.0   Back to index