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
9d4bbf6d
Commit
9d4bbf6d
authored
Mar 27, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: slightly faster quantize_mantissas_blk_ch()
parent
4a28e26e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ac3enc.c
libavcodec/ac3enc.c
+4
-7
No files found.
libavcodec/ac3enc.c
View file @
9d4bbf6d
...
...
@@ -1074,14 +1074,11 @@ static void quantize_mantissas_blk_ch(AC3Mant *s, int32_t *fixed_coef,
int
i
;
for
(
i
=
start_freq
;
i
<
end_freq
;
i
++
)
{
int
v
;
int
c
=
fixed_coef
[
i
];
int
e
=
exp
[
i
];
int
b
=
bap
[
i
];
switch
(
b
)
{
case
0
:
v
=
0
;
break
;
int
v
=
bap
[
i
];
if
(
v
)
switch
(
v
)
{
case
1
:
v
=
sym_quant
(
c
,
e
,
3
);
switch
(
s
->
mant1_cnt
)
{
...
...
@@ -1150,7 +1147,7 @@ static void quantize_mantissas_blk_ch(AC3Mant *s, int32_t *fixed_coef,
v
=
asym_quant
(
c
,
e
,
16
);
break
;
default:
v
=
asym_quant
(
c
,
e
,
b
-
1
);
v
=
asym_quant
(
c
,
e
,
v
-
1
);
break
;
}
qmant
[
i
]
=
v
;
...
...
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