HomeSort by relevance Sort by last modified time
    Searched full:nfft (Results 1 - 21 of 21) sorted by null

  /external/eigen/bench/
benchFFT.cpp 34 #ifndef NFFT
35 #define NFFT 1024
44 void bench(int nfft,bool fwd,bool unscaled=false, bool halfspec=false)
48 int nits = NDATA/nfft;
49 vector<T> inbuf(nfft);
50 vector<Complex > outbuf(nfft);
80 double mflops = 5.*nfft*log2((double)nfft) / (1e6 * timer.value() / (double)nits );
94 cout << " NFFT=" << nfft << " " << (double(1e-6*nfft*nits)/timer.value()) << " MS/s " << mflops << "MFLOPS\n"
    [all...]
  /external/speex/libspeex/
kiss_fftr.h 21 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
23 nfft must be even
31 input timedata has nfft scalar points
32 output freqdata has nfft/2+1 complex points
42 input freqdata has nfft/2+1 complex points
43 output timedata has nfft scalar points
kiss_fftr.c 32 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem)
38 if (nfft & 1) {
42 nfft >>= 1;
44 kiss_fft_alloc (nfft, inverse_fft, NULL, &subsize);
45 memneeded = sizeof(struct kiss_fftr_state) + subsize + sizeof(kiss_fft_cpx) * ( nfft * 2);
59 st->super_twiddles = st->tmpbuf + nfft;
60 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize);
63 for (i=0;i<nfft;++i) {
64 spx_word32_t phase = i+(nfft>>1);
67 kf_cexp2(st->super_twiddles+i, DIV32(SHL32(phase,16),nfft));
    [all...]
kiss_fft.c 290 int Norig = st->nfft;
464 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem )
468 + sizeof(kiss_fft_cpx)*(nfft-1); /* twiddle factors*/
479 st->nfft=nfft;
482 for (i=0;i<nfft;++i) {
486 kf_cexp2(st->twiddles+i, DIV32(SHL32(phase,17),nfft));
489 for (i=0;i<nfft;++i) {
491 double phase = ( -2*pi /nfft ) * i;
497 kf_factor(nfft,st->factors)
    [all...]
kiss_fft.h 74 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem);
81 * fin should be f[0] , f[1] , ... ,f[nfft-1]
82 * fout will be F[0] , F[1] , ... ,F[nfft-1]
_kiss_fft_guts.h 32 int nfft; member in struct:kiss_fft_state
  /external/chromium_org/third_party/opus/src/celt/tests/
test_unit_mdct.c 54 void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse)
59 for (bin=0;bin<nfft/2;++bin) {
63 for (k=0;k<nfft;++k) {
64 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft;
67 re /= nfft/4;
77 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr );
84 void check_inv(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse)
89 for (bin=0;bin<nfft;++bin)
    [all...]
test_unit_dft.c 54 void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse)
59 for (bin=0;bin<nfft;++bin) {
65 for (k=0;k<nfft;++k) {
66 double phase = -2*M_PI*bin*k/nfft;
74 re /= nfft;
75 im /= nfft;
88 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr );
95 void test1d(int nfft,int isinverse)
97 size_t buflen = sizeof(kiss_fft_cpx)*nfft;
    [all...]
  /external/eigen/unsupported/Eigen/src/FFT/
ei_fftw_impl.h 60 void fwd(complex_type * dst,complex_type * src,int nfft) {
61 if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESERVE_INPUT);
65 void inv(complex_type * dst,complex_type * src,int nfft) {
66 if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_BACKWARD , FFTW_ESTIMATE|FFTW_PRESERVE_INPUT);
70 void fwd(complex_type * dst,scalar_type * src,int nfft) {
71 if (m_plan==NULL) m_plan = fftwf_plan_dft_r2c_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT);
75 void inv(scalar_type * dst,complex_type * src,int nfft) {
77 m_plan = fftwf_plan_dft_c2r_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT);
103 void fwd(complex_type * dst,complex_type * src,int nfft) {
104 if (m_plan==NULL) m_plan = fftw_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESERVE_INPUT)
192 get_plan(nfft,false,dst,src).fwd(fftw_cast(dst), fftw_cast(src),nfft ); local
199 get_plan(nfft,false,dst,src).fwd(fftw_cast(dst), fftw_cast(src) ,nfft); local
213 get_plan(nfft,true,dst,src).inv(fftw_cast(dst), fftw_cast(src),nfft ); local
220 get_plan(nfft,true,dst,src).inv(fftw_cast(dst), fftw_cast(src),nfft ); local
    [all...]
ei_kissfft_impl.h 29 void make_twiddles(int nfft,bool inverse)
32 m_twiddles.resize(nfft);
33 Scalar phinc = (inverse?2:-2)* acos( (Scalar) -1) / nfft;
34 for (int i=0;i<nfft;++i)
38 void factorize(int nfft)
41 int n= nfft;
276 void fwd( Complex * dst,const Complex *src,int nfft)
278 get_plan(nfft,false).work(0, dst, src, 1,1);
304 void fwd( Complex * dst,const Scalar * src,int nfft)
306 if ( nfft&3 )
    [all...]
  /external/eigen/unsupported/doc/examples/
FFT.cpp 75 void fwd_inv(size_t nfft)
78 vector<T_time> timebuf(nfft);
93 void two_demos(int nfft)
96 fwd_inv<T_scalar,std::complex<T_scalar> >(nfft);
98 fwd_inv<std::complex<T_scalar>,std::complex<T_scalar> >(nfft);
101 void demo_all_types(int nfft)
103 cout << "nfft=" << nfft << endl;
105 two_demos<float>(nfft);
107 two_demos<double>(nfft);
    [all...]
  /external/eigen/unsupported/Eigen/
FFT 122 fft_fwd_proxy(const T_SrcMat& src,T_FftIfc & fft, Index nfft) : m_src(src),m_ifc(fft), m_nfft(nfft) {}
142 fft_inv_proxy(const T_SrcMat& src,T_FftIfc & fft, Index nfft) : m_src(src),m_ifc(fft), m_nfft(nfft) {}
187 void fwd( Complex * dst, const Scalar * src, Index nfft)
189 m_impl.fwd(dst,src,static_cast<int>(nfft));
191 ReflectSpectrum(dst,nfft);
195 void fwd( Complex * dst, const Complex * src, Index nfft)
197 m_impl.fwd(dst,src,static_cast<int>(nfft));
221 void fwd( MatrixBase<ComplexDerived> & dst, const MatrixBase<InputDerived> & src, Index nfft=-1
    [all...]
  /external/eigen/unsupported/test/
FFTW.cpp 81 void test_scalar_generic(int nfft)
89 ScalarVector tbuf(nfft);
91 for (int k=0;k<nfft;++k)
98 VERIFY((size_t)freqBuf.size() == (size_t)( (nfft>>1)+1) );
103 VERIFY( (size_t)freqBuf.size() == (size_t)nfft);
106 if (nfft&1)
120 for (int k=0;k<nfft;++k)
121 tbuf3[k] *= T(1./nfft);
136 void test_scalar(int nfft)
138 test_scalar_generic<StdVectorContainer,T>(nfft);
    [all...]
  /external/chromium_org/third_party/opus/src/celt/
kiss_fft.h 81 int nfft; member in struct:kiss_fft_state
116 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *base);
118 kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem);
125 * fin should be f[0] , f[1] , ... ,f[nfft-1]
126 * fout will be F[0] , F[1] , ... ,F[nfft-1]
kiss_fft.c 521 static void compute_twiddles(kiss_twiddle_cpx *twiddles, int nfft)
525 for (i=0;i<nfft;++i) {
527 kf_cexp2(twiddles+i, DIV32(SHL32(phase,17),nfft));
530 for (i=0;i<nfft;++i) {
532 double phase = ( -2*pi /nfft ) * i;
544 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *base)
560 st->nfft=nfft;
562 st->scale = 1.f/nfft;
568 while (nfft<<st->shift != base->nfft && st->shift < 32
    [all...]
static_modes_fixed.h 428 480, /* nfft */
439 240, /* nfft */
450 120, /* nfft */
461 60, /* nfft */
static_modes_float.h 428 480, /* nfft */
440 240, /* nfft */
452 120, /* nfft */
464 60, /* nfft */
  /cts/suite/audio_quality/test_description/processing/
check_spectrum.py 50 Phh, freqs = plt.psd(hostData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\
53 Pdd, freqs = plt.psd(DUTData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\
check_spectrum_playback.py 49 Phh, freqs = plt.psd(hostData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\
  /external/llvm/test/CodeGen/X86/
2007-11-30-LoadFolding-Bug.ll 7 define fastcc void @mp_sqrt(i32 %n, i32 %radix, i32* %in, i32* %out, i32* %tmp1, i32* %tmp2, i32 %nfft, double* %tmp1fft, double* %tmp2fft, i32* %ip, double* %w) nounwind {
  /frameworks/base/media/jni/audioeffect/
android_media_Visualizer.cpp 600 jbyte* nFft = (jbyte *) env->GetPrimitiveArrayCritical(jFft, NULL);
601 if (nFft == NULL) {
604 jint status = translateError(lpVisualizer->getFft((uint8_t *)nFft));
606 env->ReleasePrimitiveArrayCritical(jFft, nFft, 0);

Completed in 2664 milliseconds