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
35d5cb1a
Commit
35d5cb1a
authored
Jun 01, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: extract all exponents for the frame at once
parent
594fbe42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
ac3enc.c
libavcodec/ac3enc.c
+4
-8
No files found.
libavcodec/ac3enc.c
View file @
35d5cb1a
...
@@ -900,15 +900,11 @@ static av_cold void exponent_init(AC3EncodeContext *s)
...
@@ -900,15 +900,11 @@ static av_cold void exponent_init(AC3EncodeContext *s)
*/
*/
static
void
extract_exponents
(
AC3EncodeContext
*
s
)
static
void
extract_exponents
(
AC3EncodeContext
*
s
)
{
{
int
blk
,
ch
;
int
ch
=
!
s
->
cpl_on
;
int
chan_size
=
AC3_MAX_COEFS
*
AC3_MAX_BLOCKS
*
(
s
->
channels
-
ch
+
1
);
AC3Block
*
block
=
&
s
->
blocks
[
0
];
for
(
ch
=
!
s
->
cpl_on
;
ch
<=
s
->
channels
;
ch
++
)
{
s
->
ac3dsp
.
extract_exponents
(
block
->
exp
[
ch
],
block
->
fixed_coef
[
ch
],
chan_size
);
for
(
blk
=
0
;
blk
<
AC3_MAX_BLOCKS
;
blk
++
)
{
AC3Block
*
block
=
&
s
->
blocks
[
blk
];
s
->
ac3dsp
.
extract_exponents
(
block
->
exp
[
ch
],
block
->
fixed_coef
[
ch
],
AC3_MAX_COEFS
);
}
}
}
}
...
...
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