Displaying 7 results from an estimated 7 matches for "ostride_save".
Did you mean:
istride_save
2009 Aug 05
0
Bug in libspeexdsp resampler
...ever way to fix it deeper in the code, but this seems to work. The
changed functions follow.
John Ridges
EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState
*st, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t
*out_len)
{
spx_uint32_t i;
int istride_save, ostride_save;
spx_uint32_t bak_in_len = *in_len;
spx_uint32_t bak_out_len = *out_len;
istride_save = st->in_stride;
ostride_save = st->out_stride;
st->in_stride = st->out_stride = st->nb_channels;
for (i=0;i<st->nb_channels;i++)
{
*in_len = bak_in_len;
*out_len = bak_out_len;
if (in != NULL...
2008 May 03
2
Resampler (no api)
...native(st, channel_index, &tmp_in_len, *out, &out_len);
-#ifdef FIXED_POINT
-EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
-{
- spx_uint32_t i;
- int istride_save, ostride_save;
-#ifdef VAR_ARRAYS
- spx_word16_t x[*in_len];
- spx_word16_t y[*out_len];
- /*VARDECL(spx_word16_t *x);
- VARDECL(spx_word16_t *y);
- ALLOC(x, *in_len, spx_word16_t);
- ALLOC(y, *out_len, spx_word16_t);*/
- istride_save = st->in_stride;
- ostride_save = st->out_stride;
- if...
2008 May 03
0
Resampler, memory only variant
...native(st, channel_index, &tmp_in_len, *out, &out_len);
-#ifdef FIXED_POINT
-EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
-{
- spx_uint32_t i;
- int istride_save, ostride_save;
-#ifdef VAR_ARRAYS
- spx_word16_t x[*in_len];
- spx_word16_t y[*out_len];
- /*VARDECL(spx_word16_t *x);
- VARDECL(spx_word16_t *y);
- ALLOC(x, *in_len, spx_word16_t);
- ALLOC(y, *out_len, spx_word16_t);*/
- istride_save = st->in_stride;
- ostride_save = st->out_stride;
- if...
2012 May 02
1
[PATCH] resample: Fix input indexing bug from interleaved functions
...deletions(-)
diff --git a/libspeex/resample.c b/libspeex/resample.c
index 7957c61..d59508d 100644
--- a/libspeex/resample.c
+++ b/libspeex/resample.c
@@ -970,13 +970,15 @@ EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState *st, co
{
spx_uint32_t i;
int istride_save, ostride_save;
- spx_uint32_t bak_len = *out_len;
+ spx_uint32_t bak_out_len = *out_len;
+ spx_uint32_t bak_in_len = *in_len;
istride_save = st->in_stride;
ostride_save = st->out_stride;
st->in_stride = st->out_stride = st->nb_channels;
for (i=0;i<st->nb_channels;i++)...
2019 Jun 14
0
resample of libopusenc-0.2.1 outputs all zeros if define FIXED_POINT
...-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
2008 Mar 29
0
GCC/ELF Visibility patch
...nnel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
+EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
{
spx_uint32_t i;
int istride_save, ostride_save;
@@ -920,16 +920,16 @@
#endif
return RESAMPLER_ERR_SUCCESS;
}
-int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const spx_int16_t *in, spx_uint32_t *in_len, spx_int16_t *out, spx_uint32_t *out_len)
+EXPORT int speex_resampler_process_int(SpeexResamplerState...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...nnel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
+EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const float *in, spx_uint32_t *in_len, float *out, spx_uint32_t *out_len)
{
spx_uint32_t i;
int istride_save, ostride_save;
@@ -920,16 +920,16 @@
#endif
return RESAMPLER_ERR_SUCCESS;
}
-int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const spx_int16_t *in, spx_uint32_t *in_len, spx_int16_t *out, spx_uint32_t *out_len)
+EXPORT int speex_resampler_process_int(SpeexResamplerState...