Home
last modified time | relevance | path

Searched refs:tap_count (Results 1 – 6 of 6) sorted by relevance

/third_party/ffmpeg/libswresample/
Dresample.c144 static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, … in build_filter() argument
149 double *tab = av_malloc_array(tap_count+1, sizeof(*tab)); in build_filter()
151 const int center= (tap_count-1)/2; in build_filter()
158 av_assert0(tap_count == 1 || tap_count % 2 == 0); in build_filter()
170 for(i=0;i<tap_count;i++) { in build_filter()
185 w = 2.0*x / (factor*tap_count); in build_filter()
190 w = 2.0*x / (factor*tap_count*M_PI); in build_filter()
206 for(i=0;i<tap_count;i++) in build_filter()
209 for (i = 0; i < tap_count; i++) in build_filter()
210 … ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int16_t*)filter)[ph * alloc + i]; in build_filter()
[all …]
/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c94 void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int t… in av_build_filter() argument
96 double x, y, w, tab[tap_count]; in av_build_filter()
97 const int center= (tap_count-1)/2; in av_build_filter()
105 for(i=0;i<tap_count;i++) { in av_build_filter()
117 w = 2.0*x / (factor*tap_count) + M_PI; in av_build_filter()
121 w = 2.0*x / (factor*tap_count*M_PI); in av_build_filter()
131 for(i=0;i<tap_count;i++) { in av_build_filter()
133 filter[ph * tap_count + i] = tab[i] / norm; in av_build_filter()
135 … filter[ph * tap_count + i] = av_clip(lrintf(tab[i] * scale / norm), FELEM_MIN, FELEM_MAX); in av_build_filter()
143 double sine[LEN + tap_count]; in av_build_filter()
[all …]
Davcodec.h72 void av_build_filter(int16_t *filter, double factor, int tap_count, int phase_count, int scale, int…
/third_party/ffmpeg/libavresample/
Dresample.c72 int tap_count = c->filter_length; in build_filter() local
74 const int center = (tap_count - 1) / 2; in build_filter()
76 tab = av_malloc(tap_count * sizeof(*tab)); in build_filter()
82 for (i = 0; i < tap_count; i++) { in build_filter()
95 w = 2.0 * x / (factor * tap_count) + M_PI; in build_filter()
101 w = 2.0 * x / (factor * tap_count * M_PI); in build_filter()
110 for (i = 0; i < tap_count; i++) in build_filter()
113 c->set_filter(c->filter_bank, tab, ph, tap_count); in build_filter()
Dresample_template.c104 int tap_count) in SET_TYPE()
107 FELEM *filter = ((FELEM *)filter0) + phase * tap_count; in SET_TYPE()
108 for (i = 0; i < tap_count; i++) { in SET_TYPE()
Dresample.h44 void (*set_filter)(void *filter, double *tab, int phase, int tap_count);