search for: lsp_shift

Displaying 3 results from an estimated 3 matches for "lsp_shift".

Did you mean: lpg_shift
2006 Jun 01
1
Fixed-point version
...them), I have no practice in working with fixed-point versions of such numbers. For instance, in the first source I'm trying to work with, nb_celp.c, it is hard to see that the following two lines of code yield the same result: #ifdef FIXED_POINT fact = SHR16(19661,SHR32(lsp_dist,LSP_SHIFT+2)); #else fact = .6*exp(-.2*lsp_dist); #endif Now, some questions. 1) When dealing with float constants, like .00001 or 0.05, to express them in fixed-point should I just scale them with the appropriate constants from arch.h? 2) If so, which scaling should I use? Taking a very specif...
2007 Aug 06
2
11kbps narrowband on a 24bit DSP
...scaling shifts when using 32 bit registers. Can anyone tell me what scaling values like #define LPC_SCALING 8192 #define SIG_SCALING 16384 #define LSP_SCALING 8192. #define GAMMA_SCALING 32768. #define GAIN_SCALING 64 #define GAIN_SCALING_1 0.015625 #define LPC_SHIFT 13 #define LSP_SHIFT 13 #define SIG_SHIFT 14 Would be required for a 24 bit register? 2. I would like to only include only the data tables as required to support 11kbps narrowband mode. I think they would be the following signed byte tables cdbk_nb[640] cdbk_nb_low1[320] cdbk_nb_high1[32...
2007 Aug 06
0
11kbps narrowband on a 24bit DSP
...> > #define LPC_SCALING 8192 > > #define SIG_SCALING 16384 > > #define LSP_SCALING 8192. > > #define GAMMA_SCALING 32768. > > #define GAIN_SCALING 64 > > #define GAIN_SCALING_1 0.015625 > > > > #define LPC_SHIFT 13 > > #define LSP_SHIFT 13 > > #define SIG_SHIFT 14 > > > > Would be required for a 24 bit register? > > > > 2. I would like to only include only the data tables as required to > support 11kbps narrowband mode. I think they would be the following > signed by...