search for: spx_int32_t

Displaying 20 results from an estimated 52 matches for "spx_int32_t".

Did you mean: spx_uint32_t
2007 Nov 05
2
[patch] speex_preprocess_ctl
...========================================================= > > --- libspeex/preprocess.c (revision 13983) > > +++ libspeex/preprocess.c (arbetskopia) > > @@ -1126,16 +1126,16 @@ > > break; > > > > case SPEEX_PREPROCESS_SET_PROB_START: > > - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*) > > ptr)); > > - st->speech_prob_start = DIV32_16(MULT16_16(32767,* > > (spx_int32_t*)ptr), 100); > > + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); > > + st->speech_prob_start = DIV3...
2007 Oct 29
1
[patch] speex_preprocess_ctl
...--- next part -------------- Index: libspeex/preprocess.c =================================================================== --- libspeex/preprocess.c (revision 13983) +++ libspeex/preprocess.c (arbetskopia) @@ -1126,16 +1126,16 @@ break; case SPEEX_PREPROCESS_SET_PROB_START: - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*)ptr)); - st->speech_prob_start = DIV32_16(MULT16_16(32767,*(spx_int32_t*)ptr), 100); + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); + st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100);...
2008 Feb 02
0
Patch to make analysis data available.
...================================================ --- libspeex/mdf.c (revision 14443) +++ libspeex/mdf.c (working copy) @@ -1169,6 +1169,30 @@ case SPEEX_ECHO_GET_SAMPLING_RATE: (*(int*)ptr) = st->sampling_rate; break; + case SPEEX_ECHO_GET_WEIGHT_SIZES: + ((spx_int32_t *)ptr)[0] = st->M; + ((spx_int32_t *)ptr)[1] = st->frame_size; + break; + case SPEEX_ECHO_GET_WEIGHTS: + { + spx_int32_t *w = (spx_int32_t *)ptr; + int N = st->window_size; + int n = st->frame_size; + int M = st->M; + int i, j; + spx_word32_t t1,...
2007 Nov 05
0
[patch] speex_preprocess_ctl
...==================================== >>> --- libspeex/preprocess.c (revision 13983) >>> +++ libspeex/preprocess.c (arbetskopia) >>> @@ -1126,16 +1126,16 @@ >>> break; >>> >>> case SPEEX_PREPROCESS_SET_PROB_START: >>> - *(spx_int32_t*)ptr = MIN32(Q15_ONE,MAX32(0, *(spx_int32_t*) >>> ptr)); >>> - st->speech_prob_start = DIV32_16(MULT16_16(32767,* >>> (spx_int32_t*)ptr), 100); >>> + *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); >>> + st->speech_prob...
2006 Aug 22
2
Please test upcoming release
Hi Jim, Actually, I don't see anything wrong with the internal structure having a different type than the interface, as long both types are big enough to hold the possible values (in this case 0 and 1). Though, as you pointed out, testenc needs to be fixed to use spx_int32_t instead of int. I'll change that. Jean-Marc Jim Crichton a ?crit : > st->highpass_enabled is typed inconsistently. It is "int" in the > structure, but "spx_int32_t" in the SET, GET cases in > nb(sb)_encoder(decoder)_ctl. The parameter is "int" in t...
2008 Feb 12
0
Second part of data export patch
...OISE_PSD 43 + #ifdef __cplusplus } #endif diff -ubBwr get_agc_gain/libspeex/preprocess.c get_psd/libspeex/preprocess.c --- get_agc_gain/libspeex/preprocess.c 2008-02-12 17:13:04.000000000 +0100 +++ get_psd/libspeex/preprocess.c 2008-02-12 17:16:10.000000000 +0100 @@ -1179,7 +1179,18 @@ (*(spx_int32_t*)ptr) = (spx_int32_t) (st->agc_gain * 100.f); break; #endif - + case SPEEX_PREPROCESS_GET_PSD_SIZE: + case SPEEX_PREPROCESS_GET_NOISE_PSD_SIZE: + (*(spx_int32_t*)ptr) = st->ps_size; + break; + case SPEEX_PREPROCESS_GET_PSD: + for(i=0;i<st->ps_size;i++) +...
2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
...ibspeex/preprocess.c 2008-02-21 15:41:54.000000000 +0100 +++ spx/libspeex/preprocess.c 2008-03-18 18:09:30.000000000 +0100 @@ -1067,14 +1067,14 @@ break; #ifndef DISABLE_FLOAT_API case SPEEX_PREPROCESS_SET_AGC_LEVEL: - st->agc_level = (*(float*)ptr); + st->agc_level = (*(spx_int32_t*)ptr); if (st->agc_level<1) st->agc_level=1; if (st->agc_level>32768) st->agc_level=32768; break; case SPEEX_PREPROCESS_GET_AGC_LEVEL: - (*(float*)ptr) = st->agc_level; + (*(spx_int32_t*)ptr) = st->agc_level; brea...
2008 Mar 29
0
GCC/ELF Visibility patch
...;, st->play_buf_pos/st->frame_size);*/ if (!st->play_buf_started) @@ -637,13 +637,13 @@ } /** Performs echo cancellation on a frame (deprecated, last arg now ignored) */ -void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout) +EXPORT void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout) { speex_echo_cancellation(st, in, far_end, out); } /** Performs echo cancellation on a frame */ -void speex_echo_cancellation(SpeexEchoState *st...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...;, st->play_buf_pos/st->frame_size);*/ if (!st->play_buf_started) @@ -637,13 +637,13 @@ } /** Performs echo cancellation on a frame (deprecated, last arg now ignored) */ -void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout) +EXPORT void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout) { speex_echo_cancellation(st, in, far_end, out); } /** Performs echo cancellation on a frame */ -void speex_echo_cancellation(SpeexEchoState *st...
2006 Aug 23
0
Please test upcoming release
...reated differently than other, similar parameters. It would seem like the most intuitive approach would be to match the interface to the structure. This is a trivial point, of course. I have attached a patch to the two TI interface files, which adds the configuration for the filter, sized as spx_int32_t. I also included the modified files (I know that you have had some trouble with patches that I have sent before). - Jim ----- Original Message ----- From: "Jean-Marc Valin" <jean-marc.valin@usherbrooke.ca> To: "Jim Crichton" <jim.crichton@comcast.net> Cc: <sp...
2007 May 02
0
[patch] Mac Universal Binaries
...> > -#ifdef WORDS_BIGENDIAN > +#ifdef __BIG_ENDIAN__ > #define le_short(s) ((short) ((unsigned short) (s) << 8) | ((unsigned short) (s) >> 8)) > #define be_short(s) ((short) (s)) > #else > @@ -46,7 +46,7 @@ > /** Convert little endian */ > static inline spx_int32_t le_int(spx_int32_t i) > { > -#ifdef WORDS_BIGENDIAN > +#ifdef __BIG_ENDIAN__ > spx_uint32_t ui, ret; > ui = i; > ret = ui>>24; > Index: configure.ac > =================================================================== > --- configure.ac (revision 1290...
2007 Dec 31
2
Re: Problem with beta 3 jitter buffer
Daniel Schmidt a ?crit : > I found the cause of the problem. The function shift_timings can > produce overflows in the timing array if the jitter is huge or the > time units are very short. After changing the timing values' type from > spx_int16_t to spx_int32_t it seems to work. Hmm, I always assumed there wouldn't be any overflows. What parameter range are you using that causes them? I can always switch to 32-bit, but I prefer 16-bit for memory size reasons (I'll switch if there's no other option). > But now I have another question. If j...
2006 Aug 17
7
Please test upcoming release
Hi everyone, I'm about to release version 1.2-beta1 (which I could have called 1.1.13), which includes many, many changes. It would help if everyone could give the svn version (http://svn.xiph.org/trunk/speex/) a try and see if it works fine. I'll check my email next week when I'm back from some vacations and if nothing bad has been reported, I'll make the release. Have fun,
2007 Jul 07
3
In-band user data
...bits as size, then advances 8*size + 5 bits. First of all, shouldn't that be 5 bits for size (to match manual)? And where did that '+ 5 bits' come from? Next, and slightly unrelated question: Why does int jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t *start_offset); include the packet parameter? It's not used in the code, and it also makes the API slightly confusing as it's very unclear what that parameter should be :)
2008 Feb 12
0
Patch to get impulse response from echo canceller
...mdf.c 2007-11-19 13:54:38.000000000 +0100 +++ get_impulse/libspeex/mdf.c 2008-02-12 23:58:22.000000000 +0100 @@ -1169,6 +1169,27 @@ case SPEEX_ECHO_GET_SAMPLING_RATE: (*(int*)ptr) = st->sampling_rate; break; + case SPEEX_ECHO_GET_IMPULSE_RESPONSE_SIZE: + *((spx_int32_t *)ptr) = st->M * st->frame_size; + break; + case SPEEX_ECHO_GET_IMPULSE_RESPONSE: + { + int M = st->M, N = st->window_size, n = st->frame_size, i, j; + spx_int32_t *filt = (spx_int32_t *) ptr; + for(j=0;j<M;j++) + { +#ifdef FIXED_POINT + for (i=0;i<N;i++) +...
2008 May 03
2
Resampler (no api)
...16_t *sinc_table = st->sinc_table; + const int out_stride = st->out_stride; + const int int_advance = st->int_advance; + const int frac_advance = st->frac_advance; + const spx_uint32_t den_rate = st->den_rate; + spx_word32_t sum; + int j; + while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) { - int j; - spx_word32_t sum=0; - - /* We already have all the filter coefficients pre-computed in the table */ - const spx_word16_t *ptr; - /* Do the memory part */ - for (j=0;last_sample-N+1+j < 0;j++)...
2008 May 03
0
Resampler, memory only variant
...16_t *sinc_table = st->sinc_table; + const int out_stride = st->out_stride; + const int int_advance = st->int_advance; + const int frac_advance = st->frac_advance; + const spx_uint32_t den_rate = st->den_rate; + spx_word32_t sum; + int j; + while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) { - int j; - spx_word32_t sum=0; - - /* We already have all the filter coefficients pre-computed in the table */ - const spx_word16_t *ptr; - /* Do the memory part */ - for (j=0;last_sample-N+1+j < 0;j++)...
2007 Dec 12
1
4kbps sounds robotic on TMS320C64
...c? If possible, can you try encoding on one and decoding on the other, just to see whether the problem is when the encoder or the decoder? Also, just in case it helps (but I doubt it), try editing fixed_generic.h and change: #define SHL32(a,shift) ((a) << (shift)) to #define SHL32(a,shift) ((spx_int32_t)(a) << (spx_int32_t)(shift)) Cheers, Jean-Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20071212/591b9b39/attachment.html
2007 May 02
4
[patch] Mac Universal Binaries
Hi all, Speex currently decides endianness at configure-time. This causes the ppc half of Mac universal binaries to have some endianness problems. Most notably, the header built by speex_packet_to_header() has incorrect byte-ordering. This Apple developer page describes the incantation that can be used to build universal binaries on Mac. It also highlights the configure-time versus compile-time
2005 Oct 05
1
Changing the meaning of jitter buffer timestamp
...eak on other systems, I am > assuming the "worst case". Hence I have to deal with the overflow... Is my > information that "int" can be 16bit (a) false or (b) true but not valid for > any relevant architecture? c) assumes that I won't just change the call to say spx_int32_t instead of "int" ;-) It was always meant to be 32 bits anyway. > Even with 32 bits, is 37 hours of audio transmition (wide band) something that > one should consider not to happen? I guess I should deal with it at some point, but I'd like to know what the RTP RFC says first....