From 6eb1427f0fbfe74946a104f067072131c693e570 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Fri, 28 Apr 2006 14:19:11 +0000 Subject: [PATCH] Revert bad ac3enc commit, the commited code was bigger and slower. Originally committed as revision 5327 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3enc.c | 47 --------------------------------------------- libavcodec/ac3tab.h | 41 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 38 insertions(+), 50 deletions(-) diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index a587c647b5..5ec8b4f5ac 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -81,51 +81,6 @@ static inline int16_t fix15(float a) return v; } - -/** - * Generate a Kaiser Window. - */ -static void k_window_init(int alpha, double *window, int n, int iter) -{ - int j, k; - double a, x; - a = alpha * M_PI / n; - a = a*a; - for(k=0; k0; j--) { - window[k] = (window[k] * x / (j*j)) + 1.0; - } - } -} - -/** - * Generate a Kaiser-Bessel Derived Window. - * @param alpha determines window shape - * @param window array to fill with window values - * @param iter number of iterations to use in BesselI0 - */ - -static void kbd_window_init(int alpha, int16_t *out_window, int iter) -{ - int k, n2; - double kwindow[256]; - double window[256]; - - n2 = 256; - k_window_init(alpha, kwindow, n2, iter); - window[0] = kwindow[0]; - for(k=1; k