Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mark Harris
Opus
Commits
7780d4a6
Commit
7780d4a6
authored
Jun 08, 2016
by
Jean-Marc Valin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retuning the tf_analysis() lambda
Increasing the value at low rate seems to help a bit.
parent
14845916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
celt/celt_encoder.c
celt/celt_encoder.c
+1
-9
No files found.
celt/celt_encoder.c
View file @
7780d4a6
...
...
@@ -1758,15 +1758,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
if
(
effectiveBytes
>=
15
*
C
&&
!
hybrid
&&
st
->
complexity
>=
2
&&
!
st
->
lfe
)
{
int
lambda
;
if
(
effectiveBytes
<
40
)
lambda
=
12
;
else
if
(
effectiveBytes
<
60
)
lambda
=
6
;
else
if
(
effectiveBytes
<
100
)
lambda
=
4
;
else
lambda
=
3
;
lambda
*=
2
;
lambda
=
IMAX
(
5
,
1280
/
effectiveBytes
+
2
);
tf_select
=
tf_analysis
(
mode
,
effEnd
,
isTransient
,
tf_res
,
lambda
,
X
,
N
,
LM
,
tf_estimate
,
tf_chan
);
for
(
i
=
effEnd
;
i
<
end
;
i
++
)
tf_res
[
i
]
=
tf_res
[
effEnd
-
1
];
...
...
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