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
ba6bce51
Commit
ba6bce51
authored
Apr 16, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()
parent
4142487d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
42 deletions
+33
-42
ac3enc.c
libavcodec/ac3enc.c
+33
-42
No files found.
libavcodec/ac3enc.c
View file @
ba6bce51
...
...
@@ -561,12 +561,16 @@ static void extract_exponents(AC3EncodeContext *s)
/**
* Calculate exponent strategies for all blocks in a single channel.
* Calculate exponent strategies for all channels.
* Array arrangement is reversed to simplify the per-channel calculation.
*/
static
void
compute_exp_strategy_ch
(
AC3EncodeContext
*
s
,
uint8_t
*
exp_strategy
,
uint8_t
*
exp
)
static
void
compute_exp_strategy
(
AC3EncodeContext
*
s
)
{
int
blk
,
blk1
;
int
ch
,
blk
,
blk1
;
for
(
ch
=
0
;
ch
<
s
->
fbw_channels
;
ch
++
)
{
uint8_t
*
exp_strategy
=
s
->
exp_strategy
[
ch
];
uint8_t
*
exp
=
s
->
blocks
[
0
].
exp
[
ch
];
int
exp_diff
;
/* estimate if the exponent variation & decide if they should be
...
...
@@ -597,19 +601,6 @@ static void compute_exp_strategy_ch(AC3EncodeContext *s, uint8_t *exp_strategy,
}
blk
=
blk1
;
}
}
/**
* Calculate exponent strategies for all channels.
* Array arrangement is reversed to simplify the per-channel calculation.
*/
static
void
compute_exp_strategy
(
AC3EncodeContext
*
s
)
{
int
ch
,
blk
;
for
(
ch
=
0
;
ch
<
s
->
fbw_channels
;
ch
++
)
{
compute_exp_strategy_ch
(
s
,
s
->
exp_strategy
[
ch
],
s
->
blocks
[
0
].
exp
[
ch
]);
}
if
(
s
->
lfe_on
)
{
ch
=
s
->
lfe_channel
;
...
...
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