Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
85c599f9
Commit
85c599f9
authored
May 04, 2011
by
Jean-Marc Valin
Browse files
Minor tuning the WB/SWB and SWB/FB thresholds
parent
e0210c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/opus_encoder.c
View file @
85c599f9
...
@@ -178,9 +178,9 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
...
@@ -178,9 +178,9 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
st
->
bandwidth
=
BANDWIDTH_NARROWBAND
;
st
->
bandwidth
=
BANDWIDTH_NARROWBAND
;
}
else
if
(
st
->
first
||
st
->
silk_mode
.
allowBandwidthSwitch
)
}
else
if
(
st
->
first
||
st
->
silk_mode
.
allowBandwidthSwitch
)
{
{
if
(
mono_rate
>
3
0
000
||
(
mono_rate
>
2
6
000
&&
st
->
bandwidth
==
BANDWIDTH_FULLBAND
))
if
(
mono_rate
>
3
1
000
||
(
mono_rate
>
2
7
000
&&
st
->
bandwidth
==
BANDWIDTH_FULLBAND
))
st
->
bandwidth
=
BANDWIDTH_FULLBAND
;
st
->
bandwidth
=
BANDWIDTH_FULLBAND
;
else
if
(
mono_rate
>
2
2
000
||
(
mono_rate
>
1
8
000
&&
st
->
bandwidth
>=
BANDWIDTH_SUPERWIDEBAND
))
else
if
(
mono_rate
>
2
3
000
||
(
mono_rate
>
1
9
000
&&
st
->
bandwidth
>=
BANDWIDTH_SUPERWIDEBAND
))
st
->
bandwidth
=
BANDWIDTH_SUPERWIDEBAND
;
st
->
bandwidth
=
BANDWIDTH_SUPERWIDEBAND
;
else
if
(
mono_rate
>
16000
||
(
mono_rate
>
13000
&&
st
->
bandwidth
>=
BANDWIDTH_WIDEBAND
))
else
if
(
mono_rate
>
16000
||
(
mono_rate
>
13000
&&
st
->
bandwidth
>=
BANDWIDTH_WIDEBAND
))
st
->
bandwidth
=
BANDWIDTH_WIDEBAND
;
st
->
bandwidth
=
BANDWIDTH_WIDEBAND
;
...
...
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