Displaying 9 results from an estimated 9 matches for "ps_size".
Did you mean:
s_size
2008 Feb 12
0
Second part of data export patch
.../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++)
+ ((spx_int32_t *)ptr)[i] = (spx_int32_t) st->ps[i];
+ break;
+ case SPEEX_PREPROCESS_GET_NOISE_PSD:
+ for(i=0;i<st->ps_size;i++)
+ ((spx_int32_t *)ptr)[i] = (spx_int32_t) PSHR...
2008 Feb 02
0
Patch to make analysis data available.
...(*(spx_int32_t*)ptr) = pow(st->loudness, 1.0/LOUDNESS_EXP);
break;
+ case SPEEX_PREPROCESS_GET_AGC_GAIN:
+ (*(spx_int32_t*)ptr) = (spx_int32_t) (st->agc_gain * 100.f);
+ break;
#endif
-
+ case SPEEX_PREPROCESS_GET_SPECTRUM_SIZE:
+ (*(spx_int32_t*)ptr) = st->ps_size;
+ break;
+ case SPEEX_PREPROCESS_GET_POWER_SPECTRUM:
+ for(i=0;i<st->ps_size;i++)
+ ((spx_int32_t *)ptr)[i] = (spx_int32_t) st->ps[i];
+ break;
+ case SPEEX_PREPROCESS_GET_NOISE_ESTIMATE:
+ for(i=0;i<st->ps_size;i++)
+ ((spx_int32_t *)ptr)[i] = (s...
2009 Jun 14
1
Resampler saturation, blackfin performance
...ts_pack 1.07%
speex_bits_unpack_unsigned 0.86%
compute_rms16 0.79%
4. I'm using the echo-canceller + preprocessor,
I'd really like to improve performance here:
- I would like to use ADI's FFT, but it's limited to powers of 2,
is it safe to enable "Round ps_size down to the nearest power of two" in the preproc ?
can we do the same trick with the echo-canceller for window_size ?
- are there buffers who could be placed in scratch memory ?
(I don't see any speex_scratch_alloc inthere)
--
St?phane LESAGE
ATEIS International
2005 Dec 02
1
Visualizing echo
Hi,
I've added visualization of the speex noise cancellation to my program.
I did this by taking st->noise[] and st->ps[], scale both by
1.0/(st->ps_size * 32768.0) (to get a value between 0.0 and 1.0), and then
draw them as a realtime lineplot. This works well, and my users like being
able to see roughly what frequency bands they have noise in and compare
it to their input signal. It also settled the long argument I had with a
user of whether o...
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote:
>> The st->zeta pointer isn't freed in the
>> speex_preprocess_state_destroy()
>> function of the preprocess.c file (alloced in line 167). It's in
>> Speex 1.1.4
>> by the way.
>
> Oops... Thanks for letting me know. I'll change that for the next
> release (in the mean time, the fix is
2004 Aug 06
4
Memory leak in denoiser + a few questions
...11/06 21:57:59 1.1
+++ speex_preprocess.h 2004/02/06 17:10:24 1.2
@@ -49,6 +49,10 @@
float agc_level;
int vad_enabled;
+ // probabilities to check speech_prob against
+ float speech_prob_start ;
+ float speech_prob_continue ;
+
float *frame; /**< Processing frame (2*ps_size) */
float *ps; /**< Current power spectrum */
float *gain2; /**< Adjusted gains */
@@ -108,8 +112,9 @@
/** Used like the ioctl function to control the preprocessor parameters */
int speex_preprocess_ctl(SpeexPreprocessState *st, int request, void *ptr);...
2008 Feb 19
4
Patch for Analog Devices compiler & fixed-point AGC
...psd, float *mel);
+void filterbank_compute_psd(FilterBank *bnk, float *mel, float *psd);
#endif
--- C:/Documents and Settings/Stephane/Local Settings/Temp/preprocess-HEAD.3.c Tue Feb 19 19:59:23 2008
+++ c:/Dev/Speex/libspeex/preprocess.c Tue Feb 19 19:44:10 2008
@@ -184,7 +184,7 @@
int ps_size; /**< Number of points in the power spectrum */
int sampling_rate; /**< Sampling rate of the input/output */
int nbands;
- FilterBank *bank;
+ FilterBank *bnk;
/* Parameters */
int denoise_enabled;
@@ -444,7 +444,7 @@
st->nbands = NB...
2008 Mar 29
0
GCC/ELF Visibility patch
...eexPreprocessState *st, spx_int16_t *x)
{
int i;
int M;
@@ -1010,7 +1010,7 @@
}
}
-void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
+EXPORT void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
{
int i;
int N = st->ps_size;
@@ -1045,7 +1045,7 @@
}
-int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
+EXPORT int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
{
int i;
SpeexPreprocessState *st;
Index: libspeex/speex_header.c
=============================...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...eexPreprocessState *st, spx_int16_t *x)
{
int i;
int M;
@@ -1010,7 +1010,7 @@
}
}
-void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
+EXPORT void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
{
int i;
int N = st->ps_size;
@@ -1045,7 +1045,7 @@
}
-int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
+EXPORT int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
{
int i;
SpeexPreprocessState *st;
Index: libspeex/speex_header.c
=============================...