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
dcd580d7
Commit
dcd580d7
authored
Jun 02, 2009
by
Jean-Marc Valin
Browse files
Disabling K>128 until it can be shown to be useful.
parent
445720f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/rate.h
View file @
dcd580d7
...
...
@@ -48,6 +48,7 @@ static inline int bits2pulses(const CELTMode *m, const celt_int16_t *cache, int
lo
=
0
;
hi
=
MAX_PULSES
-
1
;
#if 0 /* Disabled until we can make that useful */
/* Use of more than MAX_PULSES is disabled until we are able to cwrs that decently */
if (bits > cache[MAX_PULSES-1] && N<=4)
{
...
...
@@ -83,6 +84,7 @@ static inline int bits2pulses(const CELTMode *m, const celt_int16_t *cache, int
}
return lo;
}
#endif
/* Instead of using the "bisection condition" we use a fixed number of
iterations because it should be faster */
/*while (hi-lo != 1)*/
...
...
@@ -104,7 +106,7 @@ static inline int bits2pulses(const CELTMode *m, const celt_int16_t *cache, int
static
inline
int
pulses2bits
(
const
celt_int16_t
*
cache
,
int
N
,
int
pulses
)
{
/* Use of more than MAX_PULSES is disabled until we are able to cwrs that decently */
#if 0
/* Use of more than MAX_PULSES is disabled until we are able to cwrs that decently */
if (pulses > 127)
{
int bits;
...
...
@@ -120,6 +122,7 @@ static inline int pulses2bits(const celt_int16_t *cache, int N, int pulses)
/*printf ("%d <- %d\n", bits, pulses);*/
return bits;
}
#endif
return
cache
[
pulses
];
}
...
...
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