[FFmpeg-soc] [soc]: r2542 - aac/aac.c
superdump
subversion at mplayerhq.hu
Sun Jun 22 17:54:13 CEST 2008
Author: superdump
Date: Sun Jun 22 17:54:12 2008
New Revision: 2542
Log:
Remove local sine_window_init function and use the new one in mdct.c
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Sun Jun 22 17:54:12 2008
@@ -408,17 +408,6 @@ static void vector_fmul_add_add_add(AACC
dst[i] += src3[i];
}
-// aux
-/**
- * Generate a sine window
- */
-static void sine_window_init(float *window, int n) {
- const float alpha = M_PI / n;
- int i;
- for(i = 0; i < n/2; i++)
- window[i] = sin((i + 0.5) * alpha);
-}
-
#ifdef AAC_SSR
static void ssr_context_init(ssr_context * ctx) {
int b, i;
@@ -907,8 +896,8 @@ static int aac_decode_init(AVCodecContex
// window initialization
ff_kbd_window_init(kbd_long_1024, 4.0, 256);
ff_kbd_window_init(kbd_short_128, 6.0, 32);
- sine_window_init(sine_long_1024, 512);
- sine_window_init(sine_short_128, 64);
+ ff_sine_window_init(sine_long_1024, 256);
+ ff_sine_window_init(sine_short_128, 32);
ssr_context_init(&ac->ssrctx);
} else {
#endif /* AAC_SSR */
@@ -917,8 +906,8 @@ static int aac_decode_init(AVCodecContex
// window initialization
ff_kbd_window_init(kbd_long_1024, 4.0, 1024);
ff_kbd_window_init(kbd_short_128, 6.0, 128);
- sine_window_init(sine_long_1024, 2048);
- sine_window_init(sine_short_128, 256);
+ ff_sine_window_init(sine_long_1024, 1024);
+ ff_sine_window_init(sine_short_128, 128);
#ifdef AAC_SSR
}
#endif /* AAC_SSR */
More information about the FFmpeg-soc
mailing list