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
2b73a27e
Commit
2b73a27e
authored
May 27, 2009
by
Jean-Marc Valin
Browse files
1024 pulses ought to be enough for everybody
parent
6391fe82
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/rate.h
View file @
2b73a27e
...
...
@@ -59,8 +59,8 @@ static inline int bits2pulses(const CELTMode *m, const celt_int16_t *cache, int
switch
(
N
)
{
case
3
:
hi
=
32767
;
for
(
i
=
0
;
i
<
1
5
;
i
++
)
hi
=
1024
;
for
(
i
=
0
;
i
<
1
0
;
i
++
)
{
int
pulses
=
(
lo
+
hi
)
>>
1
;
if
(
log2_frac
(((
UMUL16_16
(
pulses
,
pulses
)
>>
1
)
+
1
)
>>
1
,
4
)
>
bits
)
...
...
@@ -70,8 +70,8 @@ static inline int bits2pulses(const CELTMode *m, const celt_int16_t *cache, int
}
break
;
case
4
:
hi
=
1
172
;
for
(
i
=
0
;
i
<
1
5
;
i
++
)
hi
=
1
024
;
for
(
i
=
0
;
i
<
1
0
;
i
++
)
{
int
pulses
=
(
lo
+
hi
)
>>
1
;
if
(
log2_frac
((
UMUL32
(
UMUL16_16
(
pulses
,
pulses
)
+
2
,
pulses
))
/
3
<<
3
,
4
)
>
bits
)
...
...
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