Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
de6d4482
Commit
de6d4482
authored
Nov 22, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacps.c: Move large arrays to context to reduce stack usage.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
0463df6f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
aacps.c
libavcodec/aacps.c
+2
-2
aacps.h
libavcodec/aacps.h
+2
-0
No files found.
libavcodec/aacps.c
View file @
de6d4482
...
...
@@ -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
)
{
LOCAL_ALIGNED_16
(
float
,
Lbuf
,
[
91
],
[
32
][
2
])
;
LOCAL_ALIGNED_16
(
float
,
Rbuf
,
[
91
],
[
32
][
2
])
;
float
(
*
Lbuf
)[
32
][
2
]
=
ps
->
Lbuf
;
float
(
*
Rbuf
)[
32
][
2
]
=
ps
->
Rbuf
;
const
int
len
=
32
;
int
is34
=
ps
->
is34bands
;
...
...
libavcodec/aacps.h
View file @
de6d4482
...
...
@@ -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
,
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
,
Lbuf
)[
91
][
32
][
2
];
DECLARE_ALIGNED
(
16
,
float
,
Rbuf
)[
91
][
32
][
2
];
int8_t
opd_hist
[
PS_MAX_NR_IIDICC
];
int8_t
ipd_hist
[
PS_MAX_NR_IIDICC
];
PSDSPContext
dsp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment