Displaying 4 results from an estimated 4 matches for "nbsubframes".
2007 Sep 13
2
innov_save, what is it? why does it hurt me so?
...P
gets to this code chunk:
if (innov_save){
   for (i=0;i<st->subframeSize;i++)
      innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT));
}
it will just start filling data in, which it shouldn't.  I see that
innov_save is set at the beginning of a for loop at:
for (sub=0;sub<st->nbSubframes;sub++)
   {
      int offset;
      spx_word16_t *exc;
      spx_word16_t *sp;
      spx_word16_t *innov_save = NULL;
      spx_word16_t tmp;...
 
but for some reason that never made a difference even though I know I
stepped over it in the code.  I commented innov save out for now but I
don't k...
2007 Sep 14
1
innov_save, what is it? why does it hurt me so?
...The manual alloc routine in the TI directory (user_misc.h) clears the 
allocated memory, but maybe you have changed this.
>> it will just start filling data in, which it shouldn't.  I see that
>> innov_save is set at the beginning of a for loop at:
>> for (sub=0;sub<st->nbSubframes;sub++)
>>    {
> ...
>>       spx_word16_t *innov_save = NULL;
>>       spx_word16_t tmp;...
>
>> but for some reason that never made a difference even though I know I
>> stepped over it in the code.
That is because this is a local variable used only within this...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...t;stack = NULL;
#else
   st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
   st->stack = ((char*)st) + sizeof(EncState);
#endif
   if (!st)
      return NULL;
   st->mode=m;
   st->frameSize = mode->frameSize;
   st->windowSize = st->frameSize*3/2;
   st->nbSubframes=mode->frameSize/mode->subframeSize;
   st->subframeSize=mode->subframeSize;
   st->lpcSize = mode->lpcSize;
   st->gamma1=mode->gamma1;
   st->gamma2=mode->gamma2;
   st->min_pitch=mode->pitchStart;
   st->max_pitch=mode->pitchEnd;
   st->lag_factor=mode...
2007 Sep 13
0
innov_save, what is it? why does it hurt me so?
...code is for copying the innov variable to a buffer owned by
the wideband decoder -- but only if there is actually a wideband decoder.
> it will just start filling data in, which it shouldn't.  I see that
> innov_save is set at the beginning of a for loop at:
> for (sub=0;sub<st->nbSubframes;sub++)
>    {
...
>       spx_word16_t *innov_save = NULL;
>       spx_word16_t tmp;...
> but for some reason that never made a difference even though I know I
> stepped over it in the code. 
The reason is doesn't make a difference is that just a few lines later,
you have:...