Displaying 14 results from an estimated 14 matches for "shape_cb".
2005 Jan 25
1
"spx_word16_t *" is incompatible with parameter of type "float *"
..._POINT defined, the compiler exits when it find this discrepancy in \libspeex\cb_search.c :
".\libspeex\cb_search.c", line 185: cc0167: error: argument of type
"spx_word16_t *" is incompatible with parameter of type "float *"
compute_weighted_codebook(shape_cb, r, resp, resp2, E, shape_cb_size, subvect_size, stack);
The function definition defines resp2 as a float in line 47:
static void compute_weighted_codebook(const signed char *shape_cb, const spx_sig_t *r, spx_word16_t *resp, float *resp2, spx_word32_t *E, int shape_cb_size, int subvect_size, char...
2006 Sep 19
2
Exc CB Search very little Question
...time to to that, Jean-Marc, I would
appreciate some hints on the following:
1. What is the point in multiplying a codebook index with some number
ant adding a loop variable to it as done in the exc unquant function.
for (j=0;j<subvect_size;j++)
exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
2. How does the CB search function split_cb_search_shape_sign work? I
know the parameter N defines the number of candidates for each of the
nb_subvect CB line numbers which are later on written into the stream.
But especially, how the best_ntarget list is being updated, I am...
2006 Sep 20
2
Denoiser level and AEC problem
...time to to that, Jean-Marc, I would
appreciate some hints on the following:
1. What is the point in multiplying a codebook index with some number
ant adding a loop variable to it as done in the exc unquant function.
for (j=0;j<subvect_size;j++)
exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
2. How does the CB search function split_cb_search_shape_sign work? I
know the parameter N defines the number of candidates for each of the
nb_subvect CB line numbers which are later on written into the stream.
But especially, how the best_ntarget list is being updated, I am...
2009 Apr 24
2
[PATCH] Blackfin: cleanup astat/cc/hardware loop asm clobbers
...f83..edb1eca 100644
--- a/libspeex/cb_search_bfin.h
+++ b/libspeex/cb_search_bfin.h
@@ -33,6 +33,8 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "bfin.h"
+
#define OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK
void compute_weighted_codebook(const signed char *shape_cb, const spx_word16_t *r, spx_word16_t *resp, spx_word16_t *resp2, spx_word32_t *E, int shape_cb_size, int subvect_size, char *stack)
{
@@ -73,10 +75,7 @@ void compute_weighted_codebook(const signed char *shape_cb, const spx_word16_t *
:
: "m" (subvect_size), "m"...
2006 Jan 23
2
Compiler warnings with GCC 3.4.4 and perfomance question on a Arm 7
...ED_POINT and the Arm 4 asm code.
In cb_search.c get a warning on the call to compute_weighted_codebook of:
"passing arg 2 of 'compute_weighted_codebook' from incompatible pointer type'
In cp_search_arm4.h it is defined as:
static void compute_weighted_codebook(const signed char *shape_cb,
const spx_sig_t *r,
.....
but in cb_search.c it is defined as static void
compute_weighted_codebook(const signed char *shape_cb, const
spx_word16_t *r, .....
So it appears the arm version has arg 2 defined differently so I am
getting this error. So am I missing something or is this what it
shoul...
2007 Aug 06
2
11kbps narrowband on a 24bit DSP
...m Prediction (LTP)*/
static const ltp_params ltp_params_lbr = {
gain_cdbk_lbr,
5,
7
};
/* Split-VQ innovation parameters narrowband */
static const split_cb_params split_cb_nb_med = {
8, /*subvect_size*/
5, /*nb_subvect*/
exc_8_128_table, /*shape_cb*/
7, /*shape_bits*/
0,
I have three problems.
1. My DSP has 24 bits register and memory with a 24 X 24 = 48 bit
multiply and a 56 bit accumulator. I see scaling shifts when using 32
bit registers. Can anyone tell me what scaling values like
#define LPC_SCALI...
2006 Sep 19
2
Exc CB Search very little Question
Hi,
Jean-Marc Valin wrote:
>> 1. What is the point in multiplying a codebook index with some number
>> ant adding a loop variable to it as done in the exc unquant function.
>> for (j=0;j<subvect_size;j++)
>> exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
>
> That's just how you represent a 2D array in C: the codebook has
> shape_cb_size entries and subvect_size samples per entry.
Ok, that helps. Thanks.
>> PS: for me personally, I'd like to know how to change the cb id found
>> while keeping t...
2006 Sep 21
1
Denoiser level and AEC problem
...c, I would
> appreciate some hints on the following:
> 1. What is the point in multiplying a codebook index with some number
> ant adding a loop variable to it as done in the exc unquant function.
> for (j=0;j<subvect_size;j++)
> exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
> 2. How does the CB search function split_cb_search_shape_sign work? I
> know the parameter N defines the number of candidates for each of the
> nb_subvect CB line numbers which are later on written into the stream.
> But especially, how the best_ntarget list is...
2005 Dec 09
1
[PATCH] compute_weighted_codebook a little bit faster
Hi,
here is a patch making the function compute_weighted_codebook a little
bit faster. Not so impressive but avoid a loop and is really faster on
small platforms like the MIPS I'm working on.
Enjoy,
Matthieu Poullet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cwc_patch
Type: application/octet-stream
Size: 1226 bytes
Desc: not available
Url :
2006 Sep 19
0
Exc CB Search very little Question
> 1. What is the point in multiplying a codebook index with some number
> ant adding a loop variable to it as done in the exc unquant function.
> for (j=0;j<subvect_size;j++)
> exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
That's just how you represent a 2D array in C: the codebook has
shape_cb_size entries and subvect_size samples per entry.
> 2. How does the CB search function split_cb_search_shape_sign work? I
> know the parameter N defines the number of candidates for each of t...
2006 Sep 19
0
Exc CB Search very little Question
...Jean-Marc Valin wrote:
>>> 1. What is the point in multiplying a codebook index with some number
>>> ant adding a loop variable to it as done in the exc unquant function.
>>> for (j=0;j<subvect_size;j++)
>>> exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
>> That's just how you represent a 2D array in C: the codebook has
>> shape_cb_size entries and subvect_size samples per entry.
>
> Ok, that helps. Thanks.
>
>>> PS: for me personally, I'd like to know how to change the cb id found
>...
2007 Aug 06
0
11kbps narrowband on a 24bit DSP
...> 5,
>
> 7
>
> };
>
>
>
> /* Split-VQ innovation parameters narrowband */
>
> static const split_cb_params split_cb_nb_med = {
>
> 8, /*subvect_size*/
>
> 5, /*nb_subvect*/
>
> exc_8_128_table, /*shape_cb*/
>
> 7, /*shape_bits*/
>
> 0,
>
>
>
>
>
>
>
> I have three problems.
>
>
>
> 1. My DSP has 24 bits register and memory with a 24 X 24 = 48 bit
> multiply and a 56 bit accumulator. I see scaling shifts when using...
2006 Sep 20
0
Denoiser level and AEC problem
...c, I would
> appreciate some hints on the following:
> 1. What is the point in multiplying a codebook index with some number
> ant adding a loop variable to it as done in the exc unquant function.
> for (j=0;j<subvect_size;j++)
> exc[subvect_size*i+j]+=s*0.03125*shape_cb[ind[i]*subvect_size+j];
> 2. How does the CB search function split_cb_search_shape_sign work? I
> know the parameter N defines the number of candidates for each of the
> nb_subvect CB line numbers which are later on written into the stream.
> But especially, how the best_ntarget list is...
2006 Sep 18
2
Exc CB Search very little Question
Hi,
Jean-Marc Valin wrote:
> Not sure I understand your question. Change the order of what within what?
In cb_search, we iterate nb_subvect times over a codebook, finding
nb_subvect codebook entries to quantize the excitation signal. After
finding these nb_subvect codebook entries, they're written into the stream:
/*save indices*/
for (i=0;i<nb_subvect;i++)
{