Displaying 6 results from an estimated 6 matches for "celt_word16".
2009 Dec 02
1
bug found in CELT 0.6.1, fix proposed.
...oftware Engineer
Open Access.
*** libcelt/quant_bands.c Wed Dec 2 10:23:42 2009
--- libcelt/orig/quant_bands.c Wed Oct 21 14:43:10 2009
***************
*** 42,52 ****
#include "mathops.h"
#include "stack_alloc.h"
- #define E_MEANS_SIZE (5)
#ifdef FIXED_POINT
! const celt_word16 eMeans[E_MEANS_SIZE] = {1920, -341, -512, -107, 43};
#else
! const celt_word16 eMeans[E_MEANS_SIZE] = {7.5f, -1.33f, -2.f, -0.42f, 0.17f};
#endif
/* FIXME: Implement for stereo */
--- 42,51 ----
#include "mathops.h"
#include "stack_alloc.h"
#ifdef FIXED_POINT
!...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...lt;<1|1)
+# define EC_CODE_MASK ((((celt_uint32)1U)<<EC_CODE_BITS-1)-1<<1|1)
#endif
diff --git a/libcelt/quant_bands.c b/libcelt/quant_bands.c
index 9aa05fe..e007dcb 100644
--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -155,7 +155,7 @@ static int intra_decision(const celt_word16 *eBands, celt_word16 *oldEBands, int
static int quant_coarse_energy_impl(const CELTMode *m, int start, int end,
const celt_word16 *eBands, celt_word16 *oldEBands,
- ec_int32 budget, ec_int32 tell,
+ celt_int32 budget, celt_int32 tell,
const unsigned char *prob_model, celt...
2010 Jul 06
3
V0.8.0 Problems
Tim, et al,
I have run into several problems with V0.8.0. I will address them seperately.
1. My compiler is complaining about the following code in celt.c which seems to define metric first as celt_word32, then as celt_word16. Am I mis-interpreting something?
?? VARDECL(celt_word32, metric);
?? ALLOC(metric, len, celt_word16);
Thx
MikeH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20100706/ace6cbe4/attachment-0002.htm
2010 Feb 25
1
Compilation for iPhone (celt 0.7.1)
Hi,
In case it is of any help, to compile a static library for the iPhone, I had to add the following 2 lines in plc.c file :
#include "arch.h"
#include "stack_alloc.h"
otherwise "celt_word16..." type are not defined and "VARDECL...." also not.
Best Regards
St?phane Letz
2011 Mar 02
1
[PATCH] Fix CNG when effEBands is less than nbEBands.
...prefilter_tapset = 0;
+ fprintf(stderr,"pitch_index: %4i gain %0.2f tapset: %i\n",pitch_index,gain1,prefilter_tapset);
gain1 = QCONST16(0.09375f,15)*(qg+1);
pf_on = 1;
}
@@ -1967,17 +1968,26 @@ static void celt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p
log2Amp(st->mode, st->start, st->end, bandE, backgroundLogE, C);
seed = st->rng;
- for (i=0;i<C*N;i++)
+ for (c=0;c<C;c++)
{
- seed = lcg_rand(seed);
- X[i] = (celt_int32)(seed)>>20;
+ for (i=0;i<...
2011 Jun 06
1
QCONST16?
Gents,
In Version 8.1, QCONST16 is defined as follows in arch.h within the
FLOATING_POINT section:
#define QCONST16(x,bits) (x)
However, in both celt.c and quant_bands.c, QCONST16 is referenced without a
conditional FLOATING_POINT define. So when I compile as FIXED_POINT I get an
"undefined identifier" for QCONST16. Am I doing something wrong?
Thx,
MikeH