Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
a9b7def9
Commit
a9b7def9
authored
Dec 09, 2013
by
Pedro Becerra
Committed by
Jean-Marc Valin
Dec 09, 2013
Browse files
s/MAX16/MAX32/ in transient_analysis()
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
66b7fe0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
celt/celt_encoder.c
View file @
a9b7def9
...
...
@@ -365,7 +365,7 @@ static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int
/* Arbitrary metric for VBR boost */
tf_max
=
MAX16
(
0
,
celt_sqrt
(
27
*
mask_metric
)
-
42
);
/* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
*
tf_estimate
=
celt_sqrt
(
MAX
16
(
0
,
SHL32
(
MULT16_16
(
QCONST16
(
0
.
006
9
,
14
),
MIN16
(
163
,
tf_max
)),
14
)
-
QCONST32
(
0
.
139
,
28
)));
*
tf_estimate
=
celt_sqrt
(
MAX
32
(
0
,
SHL32
(
MULT16_16
(
QCONST16
(
0
.
006
9
,
14
),
MIN16
(
163
,
tf_max
)),
14
)
-
QCONST32
(
0
.
139
,
28
)));
/*printf("%d %f\n", tf_max, mask_metric);*/
RESTORE_STACK
;
#ifdef FUZZING
...
...
Write
Preview
Supports
Markdown
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