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
d0682b5e
Commit
d0682b5e
authored
Nov 22, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq1enc: reduce stack usage of recursively-called function.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
458aadf8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
svq1enc.c
libavcodec/svq1enc.c
+1
-1
svq1enc.h
libavcodec/svq1enc.h
+2
-0
No files found.
libavcodec/svq1enc.c
View file @
d0682b5e
...
...
@@ -96,7 +96,7 @@ static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref,
int
w
=
2
<<
(
level
+
2
>>
1
);
int
h
=
2
<<
(
level
+
1
>>
1
);
int
size
=
w
*
h
;
DECLARE_ALIGNED
(
16
,
int16_t
,
block
)[
7
][
256
];
int16_t
(
*
block
)[
256
]
=
s
->
encoded_block_levels
[
level
];
const
int8_t
*
codebook_sum
,
*
codebook
;
const
uint16_t
(
*
mean_vlc
)[
2
];
const
uint8_t
(
*
multistage_vlc
)[
2
];
...
...
libavcodec/svq1enc.h
View file @
d0682b5e
...
...
@@ -59,6 +59,8 @@ typedef struct SVQ1EncContext {
int
c_block_width
;
int
c_block_height
;
DECLARE_ALIGNED
(
16
,
int16_t
,
encoded_block_levels
)[
6
][
7
][
256
];
uint16_t
*
mb_type
;
uint32_t
*
dummy
;
int16_t
(
*
motion_val8
[
3
])[
2
];
...
...
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