ref: dcd580d7ab70e6c03006d4f0a543db1507b76fce
parent: 445720f9133a449927e3998edb6e7dbe1bb29a4e
author: Jean-Marc Valin <[email protected]>
date: Tue Jun 2 04:02:41 EDT 2009
Disabling K>128 until it can be shown to be useful.
--- a/libcelt/rate.h
+++ b/libcelt/rate.h
@@ -48,6 +48,7 @@
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 @@
}
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 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 @@
/*printf ("%d <- %d\n", bits, pulses);*/
return bits;
}
+#endif
return cache[pulses];
}