mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
aacps.c: Move large arrays to context to reduce stack usage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
0463df6f42
commit
de6d44829c
@ -908,8 +908,8 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
|
|||||||
|
|
||||||
int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top)
|
int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top)
|
||||||
{
|
{
|
||||||
LOCAL_ALIGNED_16(float, Lbuf, [91], [32][2]);
|
float (*Lbuf)[32][2] = ps->Lbuf;
|
||||||
LOCAL_ALIGNED_16(float, Rbuf, [91], [32][2]);
|
float (*Rbuf)[32][2] = ps->Rbuf;
|
||||||
const int len = 32;
|
const int len = 32;
|
||||||
int is34 = ps->is34bands;
|
int is34 = ps->is34bands;
|
||||||
|
|
||||||
|
@ -71,6 +71,8 @@ typedef struct PSContext {
|
|||||||
DECLARE_ALIGNED(16, float, H12)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
DECLARE_ALIGNED(16, float, H12)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
||||||
DECLARE_ALIGNED(16, float, H21)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
DECLARE_ALIGNED(16, float, H21)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
||||||
DECLARE_ALIGNED(16, float, H22)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
DECLARE_ALIGNED(16, float, H22)[2][PS_MAX_NUM_ENV+1][PS_MAX_NR_IIDICC];
|
||||||
|
DECLARE_ALIGNED(16, float, Lbuf)[91][32][2];
|
||||||
|
DECLARE_ALIGNED(16, float, Rbuf)[91][32][2];
|
||||||
int8_t opd_hist[PS_MAX_NR_IIDICC];
|
int8_t opd_hist[PS_MAX_NR_IIDICC];
|
||||||
int8_t ipd_hist[PS_MAX_NR_IIDICC];
|
int8_t ipd_hist[PS_MAX_NR_IIDICC];
|
||||||
PSDSPContext dsp;
|
PSDSPContext dsp;
|
||||||
|
Loading…
Reference in New Issue
Block a user