Move some mpegaudio functions to new mpegaudiodsp subsystem
This separation allows these functions to be used in a cleaner fashion from other codecs (e.g. qdm2) and simplifies creating optimised versions of them. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
@@ -22,25 +22,6 @@
|
||||
#define CONFIG_FLOAT 1
|
||||
#include "mpegaudiodec.c"
|
||||
|
||||
void ff_mpa_synth_filter_float(MPADecodeContext *s, float *synth_buf_ptr,
|
||||
int *synth_buf_offset,
|
||||
float *window, int *dither_state,
|
||||
float *samples, int incr,
|
||||
float sb_samples[SBLIMIT])
|
||||
{
|
||||
float *synth_buf;
|
||||
int offset;
|
||||
|
||||
offset = *synth_buf_offset;
|
||||
synth_buf = synth_buf_ptr + offset;
|
||||
|
||||
s->dct.dct32(synth_buf, sb_samples);
|
||||
s->apply_window_mp3(synth_buf, window, dither_state, samples, incr);
|
||||
|
||||
offset = (offset - 32) & 511;
|
||||
*synth_buf_offset = offset;
|
||||
}
|
||||
|
||||
static void compute_antialias_float(MPADecodeContext *s,
|
||||
GranuleDef *g)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user