comparison synth_filter.c @ 11592:18f17f44de37 libavcodec

Make synth_filter a function pointer
author mru
date Sat, 10 Apr 2010 16:27:53 +0000
parents 4b3da727d832
children
comparison
equal deleted inserted replaced
11591:59a801bfc636 11592:18f17f44de37
19 */ 19 */
20 20
21 #include "fft.h" 21 #include "fft.h"
22 #include "synth_filter.h" 22 #include "synth_filter.h"
23 23
24 void ff_synth_filter_float(FFTContext *imdct, 24 static void synth_filter_float(FFTContext *imdct,
25 float *synth_buf_ptr, int *synth_buf_offset, 25 float *synth_buf_ptr, int *synth_buf_offset,
26 float synth_buf2[32], const float window[512], 26 float synth_buf2[32], const float window[512],
27 float out[32], const float in[32], float scale, float bias) 27 float out[32], const float in[32], float scale, float bias)
28 { 28 {
29 float *synth_buf= synth_buf_ptr + *synth_buf_offset; 29 float *synth_buf= synth_buf_ptr + *synth_buf_offset;
53 synth_buf2[i ] = c; 53 synth_buf2[i ] = c;
54 synth_buf2[i + 16] = d; 54 synth_buf2[i + 16] = d;
55 } 55 }
56 *synth_buf_offset= (*synth_buf_offset - 32)&511; 56 *synth_buf_offset= (*synth_buf_offset - 32)&511;
57 } 57 }
58
59 av_cold void ff_synth_filter_init(SynthFilterContext *c)
60 {
61 c->synth_filter_float = synth_filter_float;
62
63 if (ARCH_ARM) ff_synth_filter_init_arm(c);
64 }