[FFmpeg-soc] [soc]: r5476 - in aac-sbr: aacsbr.c aacsbr.h
alexc
subversion at mplayerhq.hu
Tue Dec 1 21:42:20 CET 2009
Author: alexc
Date: Tue Dec 1 21:42:20 2009
New Revision: 5476
Log:
Move SBR synthesis filterbank sample buffer from the local stack to the SBRData context.
Modified:
aac-sbr/aacsbr.c
aac-sbr/aacsbr.h
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Tue Dec 1 21:42:18 2009 (r5475)
+++ aac-sbr/aacsbr.c Tue Dec 1 21:42:20 2009 (r5476)
@@ -1033,10 +1033,10 @@ static void sbr_qmf_analysis(const float
// Synthesis QMF Bank (14496-3 sp04 p206)
// Downsampled Synthesis QMF Bank (14496-3 sp04 p206)
static void sbr_qmf_synthesis(float *out, const float **X,
- const unsigned int div)
+ float *v, const unsigned int div)
{
int k, l, n;
- float v[1280], w[640];
+ float w[640];
for (l = 0; l < 32; l++) {
memmove(&v[128 / div], v, (1280 - 128) / div * sizeof(float));
for (n = 0; n < 128 / div; n++) {
Modified: aac-sbr/aacsbr.h
==============================================================================
--- aac-sbr/aacsbr.h Tue Dec 1 21:42:18 2009 (r5475)
+++ aac-sbr/aacsbr.h Tue Dec 1 21:42:20 2009 (r5476)
@@ -101,6 +101,7 @@ typedef struct {
uint32_t bs_data_noise[2][5];
uint8_t bs_add_harmonic[32];
uint8_t bs_amp_res;
+ float synthesis_filterbank_samples[1280];
} SBRData;
/**
More information about the FFmpeg-soc
mailing list