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
6b2636bb
Commit
6b2636bb
authored
Apr 15, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: simplify exponent_init() by calculating exponent_group_tab[] based
on exponent group sizes.
parent
e0b33d47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ac3enc.c
libavcodec/ac3enc.c
+7
-5
No files found.
libavcodec/ac3enc.c
View file @
6b2636bb
...
...
@@ -521,11 +521,13 @@ static void apply_rematrixing(AC3EncodeContext *s)
*/
static
av_cold
void
exponent_init
(
AC3EncodeContext
*
s
)
{
int
i
;
for
(
i
=
73
;
i
<
256
;
i
++
)
{
exponent_group_tab
[
0
][
i
]
=
(
i
-
1
)
/
3
;
exponent_group_tab
[
1
][
i
]
=
(
i
+
2
)
/
6
;
exponent_group_tab
[
2
][
i
]
=
(
i
+
8
)
/
12
;
int
expstr
,
i
,
grpsize
;
for
(
expstr
=
EXP_D15
-
1
;
expstr
<=
EXP_D45
-
1
;
expstr
++
)
{
grpsize
=
3
<<
expstr
;
for
(
i
=
73
;
i
<
256
;
i
++
)
{
exponent_group_tab
[
expstr
][
i
]
=
(
i
+
grpsize
-
4
)
/
grpsize
;
}
}
/* LFE */
exponent_group_tab
[
0
][
7
]
=
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