search for: spx_uint16_t

Displaying 16 results from an estimated 16 matches for "spx_uint16_t".

Did you mean: spx_int16_t
2015 Jul 05
3
[PATCH speexdsp] Don't rely on HAVE_STDINT_H et al. being defined
...PES_H__ #define __SPEEX_TYPES_H__ -#if defined HAVE_STDINT_H -# include <stdint.h> -#elif defined HAVE_INTTYPES_H -# include <inttypes.h> -#elif defined HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif + at INCLUDE_STDINT@ typedef @SIZE16@ spx_int16_t; typedef @USIZE16@ spx_uint16_t; -- 2.1.4
2006 May 02
3
Re: speex echo cancellation limitations
Hi Ted, Thanks a lot for this analysis. > In FLOAT_DIVU() it hangs at the following: > while (a.m >= b.m) > { > e++; > a.m >>= 1; > } > for the case where a and b are both zero (yes, division by zero). > This happens from mdf.c: True, that needs to be fixed even after I fix the rest. > leak_estimate =
2006 May 08
5
Speex echo canceller on TI C55 DSP
...appens when > FLOAT_EXTRACT16 gets the input {0x7ff0, 0xfffb}. The rounding is causing > the result to go negative. I worked around this by changing I think that was mentioned in the previous thread... > return (a.m+(1<<(-a.e-1)))>>-a.e; > to > return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; Is that sufficient to remove all the overflows at this place? > I have not had time to trace this, but it looks like a similar problem, > where the result of MULT16_32_Q15(M_1,r) is negative, and FLOAT_DIV32_FLOAT > bombs. Maybe the best thing t...
2006 May 09
2
Speex echo canceller on TI C55 DSP
...b}. The rounding is causing > >> the result to go negative. I worked around this by changing > > > > I think that was mentioned in the previous thread... > > > >> return (a.m+(1<<(-a.e-1)))>>-a.e; > >> to > >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > > > Is that sufficient to remove all the overflows at this place? > > The rounding takes the value to exactly 0x8000, and it is followed by a > right shift, so you just need to avoid the sign extension. > > >> I have no...
2007 Jan 23
1
Re: Clicking noise using Speex built for TI C64+ DSP of DaVinci Processor
...mode running natively on the ARM side of the DaVinci without click noise. I only get the clicking noise when running Speex on the DSP side. For the TI C64+ DSP on the DaVinci processor, the TI-specific switches doesn't do much other than defining the different Speex data types (spx_int16_t, spx_uint16_t, spx_int32_t, etc) and the static heap and scratch size (in config.h and speex_types.h). How do I try "generic fixed-point"; is there a MACRO for generic fixed-point like "GENERIC_FIXED_POINT". I guess I could try to see if it's an encoder issue (encode it on the DSP and...
2006 May 08
1
Speex echo canceller on TI C55 DSP
..., which occurs because adapt_rate is < 0, which happens when > FLOAT_EXTRACT16 gets the input {0x7ff0, 0xfffb}. The rounding is causing > the result to go negative. I worked around this by changing > > return (a.m+(1<<(-a.e-1)))>>-a.e; > to > return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > in FLOAT_EXTRACT16. This changes the returned value from 0xfc00 to 0x400. > Now it runs on for a while, then hits another infinite loop at mdf.c line > 641: > > st->power_1[i] = > FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q...
2015 Jul 06
0
[PATCH speexdsp] Don't rely on HAVE_STDINT_H et al. being defined
...HAVE_STDINT_H > -# include <stdint.h> > -#elif defined HAVE_INTTYPES_H > -# include <inttypes.h> > -#elif defined HAVE_SYS_TYPES_H > -# include <sys/types.h> > -#endif > + at INCLUDE_STDINT@ > > typedef @SIZE16@ spx_int16_t; > typedef @USIZE16@ spx_uint16_t; >
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...fndef _SPEEX_TYPES_H #define _SPEEX_TYPES_H #if defined(_WIN32) # if defined(__CYGWIN__) # include <_G_config.h> typedef _G_int64_t spx_int64_t; typedef _G_int32_t spx_int32_t; typedef _G_uint32_t spx_uint32_t; typedef _G_int16_t spx_int16_t; typedef _G_uint16_t spx_uint16_t; # elif defined(__MINGW32__) typedef short spx_int16_t; typedef unsigned short spx_uint16_t; typedef int spx_int32_t; typedef unsigned int spx_uint32_t; typedef long long spx_int64_t; typedef unsigned long long spx_uint64_t; # elif defined(__MWERKS__) typedef lo...
2006 May 09
2
Speex echo canceller on TI C55 DSP
...gt; >> the result to go negative. I worked around this by changing > > > > > > I think that was mentioned in the previous thread... > > > > > >> return (a.m+(1<<(-a.e-1)))>>-a.e; > > >> to > > >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > > > > > Is that sufficient to remove all the overflows at this place? > > > > The rounding takes the value to exactly 0x8000, and it is followed by a > > right shift, so you just need to avoid the sign extension. > &...
2006 May 08
0
Speex echo canceller on TI C55 DSP
...OAT_DIV32 (mdf.c line 660), which occurs because adapt_rate is < 0, which happens when FLOAT_EXTRACT16 gets the input {0x7ff0, 0xfffb}. The rounding is causing the result to go negative. I worked around this by changing return (a.m+(1<<(-a.e-1)))>>-a.e; to return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; in FLOAT_EXTRACT16. This changes the returned value from 0xfc00 to 0x400. Now it runs on for a while, then hits another infinite loop at mdf.c line 641: st->power_1[i] = FLOAT_SHL(FLOAT_DIV32_FLOAT(MULT16_32_Q15(M_1,r),FLOAT_MUL32U(e,st->...
2006 May 08
0
Speex echo canceller on TI C55 DSP
...ACT16 gets the input {0x7ff0, 0xfffb}. The rounding is causing >> the result to go negative. I worked around this by changing > > I think that was mentioned in the previous thread... > >> return (a.m+(1<<(-a.e-1)))>>-a.e; >> to >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > Is that sufficient to remove all the overflows at this place? The rounding takes the value to exactly 0x8000, and it is followed by a right shift, so you just need to avoid the sign extension. >> I have not had time to trace this, but it lo...
2006 May 09
0
Speex echo canceller on TI C55 DSP
...ng is > >> causing > >> the result to go negative. I worked around this by changing > > > > I think that was mentioned in the previous thread... > > > >> return (a.m+(1<<(-a.e-1)))>>-a.e; > >> to > >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > > > Is that sufficient to remove all the overflows at this place? > > The rounding takes the value to exactly 0x8000, and it is followed by a > right shift, so you just need to avoid the sign extension. > > >> I have not h...
2007 Jan 23
0
Re: Clicking noise using Speex built for TI C64+ DSP ofDaVinci Processor
...mode running natively on the ARM side of the DaVinci without click noise. I only get the clicking noise when running Speex on the DSP side. For the TI C64+ DSP on the DaVinci processor, the TI-specific switches doesn't do much other than defining the different Speex data types (spx_int16_t, spx_uint16_t, spx_int32_t, etc) and the static heap and scratch size (in config.h and speex_types.h). How do I try "generic fixed-point"; is there a MACRO for generic fixed-point like "GENERIC_FIXED_POINT". I guess I could try to see if it's an encoder issue (encode it on the DSP and...
2014 May 16
3
Error when compiling FFmpeg with speex-git.
...peex.h:43, from libavcodec/libspeexdec.c:21: /home/user/build/include/speex/speex_config_types.h:12:1: error: unknown type name ?int16_t? typedef int16_t spx_int16_t; ^ /home/user/build/include/speex/speex_config_types.h:13:1: error: unknown type name ?uint16_t? typedef uint16_t spx_uint16_t; ^ /home/user/build/include/speex/speex_config_types.h:14:1: error: unknown type name ?int32_t? typedef int32_t spx_int32_t; ^ /home/user/build/include/speex/speex_config_types.h:15:1: error: unknown type name ?uint32_t? typedef uint32_t spx_uint32_t; ^ In file included from libavcodec/libspee...
2006 May 10
0
Speex echo canceller on TI C55 DSP
...gt; >> the result to go negative. I worked around this by changing > > > > > > I think that was mentioned in the previous thread... > > > > > >> return (a.m+(1<<(-a.e-1)))>>-a.e; > > >> to > > >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > > > > > Is that sufficient to remove all the overflows at this place? > > > > The rounding takes the value to exactly 0x8000, and it is followed by a > > right shift, so you just need to avoid the sign extension. > &...
2006 May 10
2
Speex echo canceller on TI C55 DSP
...negative. I worked around this by changing > > > > > > > > I think that was mentioned in the previous thread... > > > > > > > >> return (a.m+(1<<(-a.e-1)))>>-a.e; > > > >> to > > > >> return (((spx_uint16_t) a.m)+(1<<(-a.e-1)))>>-a.e; > > > > > > > > Is that sufficient to remove all the overflows at this place? > > > > > > The rounding takes the value to exactly 0x8000, and it is followed by a > > > right shift, so you just need to avoid t...