diff mpegaudio.h @ 11885:0e777af9160a libavcodec

Factorize the mpegaudio windowing code in a function and call it by a function pointer. Should allow for ASM optimizations.
author vitor
date Sat, 19 Jun 2010 09:56:05 +0000
parents eb9e142ea51f
children ef338bd70180
line wrap: on
line diff
--- a/mpegaudio.h	Fri Jun 18 20:07:43 2010 +0000
+++ b/mpegaudio.h	Sat Jun 19 09:56:05 2010 +0000
@@ -156,6 +156,8 @@
     int dither_state;
     int error_recognition;
     AVCodecContext* avctx;
+    void (*apply_window_mp3)(MPA_INT *synth_buf, MPA_INT *window,
+                             int *dither_state, OUT_INT *samples, int incr);
 } MPADecodeContext;
 
 /* layer 3 huffman tables */
@@ -175,7 +177,8 @@
                          INTFLOAT sb_samples[SBLIMIT]);
 
 void ff_mpa_synth_init_float(MPA_INT *window);
-void ff_mpa_synth_filter_float(MPA_INT *synth_buf_ptr, int *synth_buf_offset,
+void ff_mpa_synth_filter_float(MPADecodeContext *s,
+                         MPA_INT *synth_buf_ptr, int *synth_buf_offset,
                          MPA_INT *window, int *dither_state,
                          OUT_INT *samples, int incr,
                          INTFLOAT sb_samples[SBLIMIT]);