search for: ochunk

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

Did you mean: chunk
2008 May 03
2
Resampler (no api)
...ut, spx_uint32_t *out_len) #else - spx_word16_t x[FIXED_STACK_ALLOC]; - spx_word16_t y[FIXED_STACK_ALLOC]; - spx_uint32_t ilen=*in_len, olen=*out_len; - istride_save = st->in_stride; - ostride_save = st->out_stride; - while (ilen && olen) - { - spx_uint32_t ichunk, ochunk; - ichunk = ilen; - ochunk = olen; - if (ichunk>FIXED_STACK_ALLOC) - ichunk=FIXED_STACK_ALLOC; - if (ochunk>FIXED_STACK_ALLOC) - ochunk=FIXED_STACK_ALLOC; - if (in != NULL) - { - for (i=0;i<ichunk;i++) - x[i] = WORD2INT(in[i*...
2008 May 03
0
Resampler, memory only variant
...ut, spx_uint32_t *out_len) #else - spx_word16_t x[FIXED_STACK_ALLOC]; - spx_word16_t y[FIXED_STACK_ALLOC]; - spx_uint32_t ilen=*in_len, olen=*out_len; - istride_save = st->in_stride; - ostride_save = st->out_stride; - while (ilen && olen) - { - spx_uint32_t ichunk, ochunk; - ichunk = ilen; - ochunk = olen; - if (ichunk>FIXED_STACK_ALLOC) - ichunk=FIXED_STACK_ALLOC; - if (ochunk>FIXED_STACK_ALLOC) - ochunk=FIXED_STACK_ALLOC; - if (in != NULL) - { - for (i=0;i<ichunk;i++) - x[i] = WORD2INT(in[i*...
2019 Jun 14
0
resample of libopusenc-0.2.1 outputs all zeros if define FIXED_POINT
...[j*istride_save]); + /* [-1.0, 1.0] ==> [-32768, 32767] */ + x[j+st->filt_len-1]=WORD2INT(32768 * in[j*istride_save]); #else x[j+st->filt_len-1]=in[j*istride_save]; #endif @@ -1017,7 +1018,8 @@ EXPORT int speex_resampler_process_int(S for (j=0;j<ochunk+omagic;++j) #ifdef FIXED_POINT - out[j*ostride_save] = ystack[j]; + /* [-32768, 32767] ==> [-1.0, 1.0] */ + out[j*ostride_save] = ystack[j] / 32768.f; #else out[j*ostride_save] = WORD2INT(ystack[j]); #endif