Logo Search packages:      
Sourcecode: blender 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 "common.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 FILTER_SHIFT   15


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)
double bessel (double x)

Generated by  Doxygen 1.6.0   Back to index