comparison mpegaudiodec.c @ 11935:5e8770f9d8f1 libavcodec

Move float-specific function to mpegaudiodec_float.c
author vitor
date Wed, 23 Jun 2010 20:45:36 +0000
parents f881e8f699f4
children ef338bd70180
comparison
equal deleted inserted replaced
11934:f881e8f699f4 11935:5e8770f9d8f1
895 895
896 896
897 /* 32 sub band synthesis filter. Input: 32 sub band samples, Output: 897 /* 32 sub band synthesis filter. Input: 32 sub band samples, Output:
898 32 samples. */ 898 32 samples. */
899 /* XXX: optimize by avoiding ring buffer usage */ 899 /* XXX: optimize by avoiding ring buffer usage */
900 #if CONFIG_FLOAT 900 #if !CONFIG_FLOAT
901 void ff_mpa_synth_filter_float(MPADecodeContext *s, float *synth_buf_ptr,
902 int *synth_buf_offset,
903 float *window, int *dither_state,
904 float *samples, int incr,
905 float sb_samples[SBLIMIT])
906 {
907 float *synth_buf;
908 int offset;
909
910 offset = *synth_buf_offset;
911 synth_buf = synth_buf_ptr + offset;
912
913 dct32(synth_buf, sb_samples);
914 s->apply_window_mp3(synth_buf, window, dither_state, samples, incr);
915
916 offset = (offset - 32) & 511;
917 *synth_buf_offset = offset;
918 }
919 #else
920 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, 901 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset,
921 MPA_INT *window, int *dither_state, 902 MPA_INT *window, int *dither_state,
922 OUT_INT *samples, int incr, 903 OUT_INT *samples, int incr,
923 INTFLOAT sb_samples[SBLIMIT]) 904 INTFLOAT sb_samples[SBLIMIT])
924 { 905 {