Home
last modified time | relevance | path

Searched refs:fft (Results 1 – 25 of 77) sorted by relevance

1234

/external/chromium_org/third_party/openmax_dl/dl/sp/src/test/
Dgensig.c37 struct ComplexFloat* fft, in GenerateTestSignalAndFFT() argument
55 fft[0].Re = signal_value * size; in GenerateTestSignalAndFFT()
56 fft[0].Im = real_only ? 0 : signal_value * size; in GenerateTestSignalAndFFT()
59 fft[k].Re = fft[k].Im = 0; in GenerateTestSignalAndFFT()
75 fft[0].Re = factor * size * (size + 1) / 2; in GenerateTestSignalAndFFT()
76 fft[0].Im = 0; in GenerateTestSignalAndFFT()
80 fft[k].Re = factor * -size / 2; in GenerateTestSignalAndFFT()
81 fft[k].Im = factor * size / 2 * (sin(phase) / (1 - cos(phase))); in GenerateTestSignalAndFFT()
87 fft[size / 2].Im = 0; in GenerateTestSignalAndFFT()
108 fft[k].Re = 0; in GenerateTestSignalAndFFT()
[all …]
Dtest_fft_time.c413 void GenerateRealFloatSignal(OMX_F32* x, OMX_FC32* fft, int size, in GenerateRealFloatSignal() argument
434 fft[k].Re = true_fft[k].Re; in GenerateRealFloatSignal()
435 fft[k].Im = true_fft[k].Im; in GenerateRealFloatSignal()
532 void generateSC32Signal(OMX_SC32* x, OMX_SC32* fft, int size, int signal_type, in generateSC32Signal() argument
550 fft[k].Re = 0.5 + true_fft[k].Re; in generateSC32Signal()
551 fft[k].Im = 0.5 + true_fft[k].Im; in generateSC32Signal()
714 void generateSC16Signal(OMX_SC16* x, OMX_SC16* fft, int size, int signal_type, in generateSC16Signal() argument
732 fft[k].Re = 0.5 + true_fft[k].Re; in generateSC16Signal()
733 fft[k].Im = 0.5 + true_fft[k].Im; in generateSC16Signal()
896 void GenerateRFFT16Signal(OMX_S16* x, OMX_SC32* fft, int size, int signal_type, in GenerateRFFT16Signal() argument
[all …]
Dtest_rfft32.c72 void GenerateSignal(OMX_S32* x, OMX_SC32* fft, int size, int signal_type) { in GenerateSignal() argument
91 fft[k].Re = 0.5 + true_fft[k].Re; in GenerateSignal()
92 fft[k].Im = 0.5 + true_fft[k].Im; in GenerateSignal()
Dtest_rfft16_s32.c68 void GenerateSignal(OMX_S16* x, OMX_SC32* fft, int size, int signal_type) { in GenerateSignal() argument
87 fft[k].Re = true_fft[k].Re + 0.5; in GenerateSignal()
88 fft[k].Im = true_fft[k].Im + 0.5; in GenerateSignal()
/external/eigen/unsupported/test/
DFFTW.cpp85 FFT<T> fft; in test_scalar_generic() local
93 fft.SetFlag(fft.HalfSpectrum ); in test_scalar_generic()
94 fft.fwd( freqBuf,tbuf); in test_scalar_generic()
98 fft.ClearFlag(fft.HalfSpectrum ); in test_scalar_generic()
99 fft.fwd( freqBuf,tbuf); in test_scalar_generic()
107 fft.inv( tbuf2 , freqBuf); in test_scalar_generic()
113 fft.SetFlag(fft.Unscaled); in test_scalar_generic()
115 fft.inv( tbuf3 , freqBuf); in test_scalar_generic()
127 fft.ClearFlag(fft.Unscaled); in test_scalar_generic()
128 fft.inv( tbuf2 , freqBuf); in test_scalar_generic()
[all …]
/external/webrtc/src/modules/audio_processing/aecm/
Daecm_core_neon.c37 static void WindowAndFFTNeon(WebRtc_Word16* fft, in WindowAndFFTNeon() argument
61 __asm__("vst2.16 {d20, d21}, [%0, :128]" : : "r"(&fft[j]) : "q10"); in WindowAndFFTNeon()
73 __asm__("vst2.16 {d20, d21}, [%0, :128]" : : "r"(&fft[PART_LEN2 + j]) : "q10"); in WindowAndFFTNeon()
76 WebRtcSpl_ComplexBitReverse(fft, PART_LEN_SHIFT); in WindowAndFFTNeon()
77 WebRtcSpl_ComplexFFT(fft, PART_LEN_SHIFT, 1); in WindowAndFFTNeon()
81 __asm__("vld2.16 {d20, d21, d22, d23}, [%0, :256]" : : "r"(&fft[j]) : "q10", "q11"); in WindowAndFFTNeon()
90 WebRtc_Word16* fft, in InverseFFTAndWindowNeon() argument
104 __asm__("vst2.16 {d22, d23}, [%0, :128]" : : "r"(&fft[j]): "q11"); in InverseFFTAndWindowNeon()
107 __asm__("vst2.16 {d20, d21}, [%0]" : : "r"(&fft[PART_LEN4 - j - 6]): "q10"); in InverseFFTAndWindowNeon()
110 fft[PART_LEN2] = efw[PART_LEN].real; in InverseFFTAndWindowNeon()
[all …]
Daecm_core.c361 static void WindowAndFFTC(WebRtc_Word16* fft, in WindowAndFFTC() argument
368 memset(fft, 0, sizeof(WebRtc_Word16) * PART_LEN4); in WindowAndFFTC()
374 fft[j] = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16_RSFT( in WindowAndFFTC()
378 fft[PART_LEN2 + j] = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16_RSFT( in WindowAndFFTC()
386 WebRtcSpl_ComplexBitReverse(fft, PART_LEN_SHIFT); in WindowAndFFTC()
387 WebRtcSpl_ComplexFFT(fft, PART_LEN_SHIFT, 1); in WindowAndFFTC()
392 freq_signal[i].real = fft[j]; in WindowAndFFTC()
395 freq_signal[i].imag = - fft[j+1]; in WindowAndFFTC()
400 WebRtc_Word16* fft, in InverseFFTAndWindowC() argument
412 fft[j] = efw[i].real; in InverseFFTAndWindowC()
[all …]
/external/chromium_org/third_party/webrtc/common_audio/signal_processing/
Dreal_fft_unittest.cc46 RealFFT* fft = WebRtcSpl_CreateRealFFT(11); in TEST_F() local
47 EXPECT_TRUE(fft == NULL); in TEST_F()
48 fft = WebRtcSpl_CreateRealFFT(-1); in TEST_F()
49 EXPECT_TRUE(fft == NULL); in TEST_F()
68 RealFFT* fft = WebRtcSpl_CreateRealFFT(kOrder); in TEST_F() local
69 EXPECT_TRUE(fft != NULL); in TEST_F()
70 EXPECT_EQ(0, WebRtcSpl_RealForwardFFT(fft, real_fft_time, real_fft_freq)); in TEST_F()
89 int real_scale = WebRtcSpl_RealInverseFFT(fft, real_fft_freq, real_fft_time); in TEST_F()
104 WebRtcSpl_FreeRealFFT(fft); in TEST_F()
/external/srec/srec/cfront/
Dspec_anl.c83 channel->shift += place_sample_data(&freqobj->fft, channel->prebuff, in filterbank_emulation()
89 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.real, D_FIXED, (float)(0x01 << channel->shi… in filterbank_emulation()
90 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.imag, D_FIXED, (float)(0x01 << channel->shi… in filterbank_emulation()
94 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.real, D_FIXED, (float)1 / (0x01 << -channel… in filterbank_emulation()
95 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.imag, D_FIXED, (float)1 / (0x01 << -channel… in filterbank_emulation()
99 channel->shift += fft_perform_and_magsq(&freqobj->fft); in filterbank_emulation()
104 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.real, D_FIXED, (float)(0x01 << (channel->sh… in filterbank_emulation()
106 …write_scaled_frames(freqobj->fft.size, 1, freqobj->fft.real, D_FIXED, (float)1 / (0x01 << (- chann… in filterbank_emulation()
112 …write_scaled_frames(freqobj->fft.size, 1, (void *)freqobj->fft.real, D_FIXED, (float)(0x01 << cha… in filterbank_emulation()
114 …write_scaled_frames(freqobj->fft.size, 1, (void *)freqobj->fft.real, D_FIXED, (float)1 / (0x01 << … in filterbank_emulation()
[all …]
Dsp_fft.c811 void configure_fft(fft_info *fft, int size) in configure_fft() argument
824 fft->size2 = size; in configure_fft()
825 fft->size = size / 2; in configure_fft()
827 fft->m_srfft = new_srfft(log2Length); in configure_fft()
828 fft->real = (fftdata*) CALLOC(size + 2, sizeof(fftdata), "srfft.fft_data"); in configure_fft()
829 fft->imag = fft->real + size / 2 + 1; in configure_fft()
832 int fft_perform_and_magsq(fft_info *fft) in fft_perform_and_magsq() argument
834 unsigned n = fft->size2; in fft_perform_and_magsq()
835 fftdata *real = fft->real; in fft_perform_and_magsq()
836 srfft *pSrfft = fft->m_srfft; in fft_perform_and_magsq()
[all …]
/external/aac/libFDK/src/
DFDK_hybrid.cpp502 FIXP_DBL fft[8]; in fourChannelFiltering() local
525fft[FFT_IDX_R(0)] = ( fMult(p[10], ( fMultSub(fMultDiv2(cr[ 2], pQmfReal[pReadIdx[ 2]]), ci[ 2], … in fourChannelFiltering()
528fft[FFT_IDX_I(0)] = ( fMult(p[10], ( fMultAdd(fMultDiv2(ci[ 2], pQmfReal[pReadIdx[ 2]]), cr[ 2], … in fourChannelFiltering()
533fft[FFT_IDX_R(1)] = ( fMult(p[ 9], ( fMultSub(fMultDiv2(cr[ 3], pQmfReal[pReadIdx[ 3]]), ci[ 3], … in fourChannelFiltering()
536fft[FFT_IDX_I(1)] = ( fMult(p[ 9], ( fMultAdd(fMultDiv2(ci[ 3], pQmfReal[pReadIdx[ 3]]), cr[ 3], … in fourChannelFiltering()
541fft[FFT_IDX_R(2)] = ( fMult(p[12], ( fMultSub(fMultDiv2(cr[ 0], pQmfReal[pReadIdx[ 0]]), ci[ 0], … in fourChannelFiltering()
545fft[FFT_IDX_I(2)] = ( fMult(p[12], ( fMultAdd(fMultDiv2(ci[ 0], pQmfReal[pReadIdx[ 0]]), cr[ 0], … in fourChannelFiltering()
550fft[FFT_IDX_R(3)] = ( fMult(p[11], ( fMultSub(fMultDiv2(cr[ 1], pQmfReal[pReadIdx[ 1]]), ci[ 1], … in fourChannelFiltering()
553fft[FFT_IDX_I(3)] = ( fMult(p[11], ( fMultAdd(fMultDiv2(ci[ 1], pQmfReal[pReadIdx[ 1]]), cr[ 1], … in fourChannelFiltering()
566 mHybridReal[0] = fft[FFT_IDX_R(0)] + fft[FFT_IDX_R(1)] + fft[FFT_IDX_R(2)] + fft[FFT_IDX_R(3)]; in fourChannelFiltering()
[all …]
/external/webrtc/src/modules/audio_processing/aec/
Daec_core.c311 static void FilterAdaptation(aec_t *aec, float *fft, float ef[2][PART_LEN1]) { in FilterAdaptation() argument
325 fft[2 * j] = MulRe(aec->xfBuf[0][xPos + j], in FilterAdaptation()
328 fft[2 * j + 1] = MulIm(aec->xfBuf[0][xPos + j], in FilterAdaptation()
332 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], in FilterAdaptation()
336 aec_rdft_inverse_128(fft); in FilterAdaptation()
337 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); in FilterAdaptation()
343 fft[j] *= scale; in FilterAdaptation()
346 aec_rdft_forward_128(fft); in FilterAdaptation()
348 aec->wfBuf[0][pos] += fft[0]; in FilterAdaptation()
349 aec->wfBuf[0][pos + PART_LEN] += fft[1]; in FilterAdaptation()
[all …]
Daec_core_sse2.c131 static void FilterAdaptationSSE2(aec_t *aec, float *fft, float ef[2][PART_LEN1]) { in FilterAdaptationSSE2() argument
161 _mm_storeu_ps(&fft[2*j + 0], g); in FilterAdaptationSSE2()
162 _mm_storeu_ps(&fft[2*j + 4], h); in FilterAdaptationSSE2()
165 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], in FilterAdaptationSSE2()
169 aec_rdft_inverse_128(fft); in FilterAdaptationSSE2()
170 memset(fft + PART_LEN, 0, sizeof(float)*PART_LEN); in FilterAdaptationSSE2()
177 const __m128 fft_ps = _mm_loadu_ps(&fft[j]); in FilterAdaptationSSE2()
179 _mm_storeu_ps(&fft[j], fft_scale); in FilterAdaptationSSE2()
182 aec_rdft_forward_128(fft); in FilterAdaptationSSE2()
186 aec->wfBuf[0][pos + PART_LEN] += fft[1]; in FilterAdaptationSSE2()
[all …]
/external/eigen/bench/
DbenchFFT.cpp51 FFT< Scalar > fft; in bench() local
54 fft.SetFlag(fft.Unscaled); in bench()
58 fft.SetFlag(fft.HalfSpectrum); in bench()
64 fft.fwd( outbuf , inbuf); in bench()
72 fft.fwd( outbuf , inbuf); in bench()
75 fft.inv(inbuf,outbuf); in bench()
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/
Daec_core.c345 static void FilterAdaptation(AecCore* aec, float* fft, float ef[2][PART_LEN1]) { in FilterAdaptation() argument
359 fft[2 * j] = MulRe(aec->xfBuf[0][xPos + j], in FilterAdaptation()
363 fft[2 * j + 1] = MulIm(aec->xfBuf[0][xPos + j], in FilterAdaptation()
368 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], in FilterAdaptation()
373 aec_rdft_inverse_128(fft); in FilterAdaptation()
374 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); in FilterAdaptation()
380 fft[j] *= scale; in FilterAdaptation()
383 aec_rdft_forward_128(fft); in FilterAdaptation()
385 aec->wfBuf[0][pos] += fft[0]; in FilterAdaptation()
386 aec->wfBuf[0][pos + PART_LEN] += fft[1]; in FilterAdaptation()
[all …]
Daec_core_neon.c34 float* fft, in FilterAdaptationNEON() argument
64 vst1q_f32(&fft[2 * j + 0], g_n_h.val[0]); in FilterAdaptationNEON()
65 vst1q_f32(&fft[2 * j + 4], g_n_h.val[1]); in FilterAdaptationNEON()
68 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], in FilterAdaptationNEON()
73 aec_rdft_inverse_128(fft); in FilterAdaptationNEON()
74 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); in FilterAdaptationNEON()
81 const float32x4_t fft_ps = vld1q_f32(&fft[j]); in FilterAdaptationNEON()
83 vst1q_f32(&fft[j], fft_scale); in FilterAdaptationNEON()
86 aec_rdft_forward_128(fft); in FilterAdaptationNEON()
90 aec->wfBuf[0][pos + PART_LEN] += fft[1]; in FilterAdaptationNEON()
[all …]
Daec_core_mips.c438 float *fft, in WebRtcAec_FilterAdaptation_mips() argument
454 float *fft_tmp = fft; in WebRtcAec_FilterAdaptation_mips()
523 [len] "+r" (len), [fft] "=&r" (fft) in WebRtcAec_FilterAdaptation_mips()
528 aec_rdft_inverse_128(fft); in WebRtcAec_FilterAdaptation_mips()
529 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); in WebRtcAec_FilterAdaptation_mips()
572 : [scale] "f" (scale), [fft] "r" (fft) in WebRtcAec_FilterAdaptation_mips()
576 aec_rdft_forward_128(fft); in WebRtcAec_FilterAdaptation_mips()
630 : [aRe] "r" (aRe), [aIm] "r" (aIm), [fft] "r" (fft) in WebRtcAec_FilterAdaptation_mips()
Daec_core_sse2.c143 float* fft, in FilterAdaptationSSE2() argument
175 _mm_storeu_ps(&fft[2 * j + 0], g); in FilterAdaptationSSE2()
176 _mm_storeu_ps(&fft[2 * j + 4], h); in FilterAdaptationSSE2()
179 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], in FilterAdaptationSSE2()
184 aec_rdft_inverse_128(fft); in FilterAdaptationSSE2()
185 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); in FilterAdaptationSSE2()
192 const __m128 fft_ps = _mm_loadu_ps(&fft[j]); in FilterAdaptationSSE2()
194 _mm_storeu_ps(&fft[j], fft_scale); in FilterAdaptationSSE2()
197 aec_rdft_forward_128(fft); in FilterAdaptationSSE2()
201 aec->wfBuf[0][pos + PART_LEN] += fft[1]; in FilterAdaptationSSE2()
[all …]
/external/srec/srec/include/
Dfft.h36 int fft_perform_and_magsq(fft_info *fft);
37 void do_magsq(fft_info *fft);
39 void configure_fft(fft_info *fft, int size);
40 int place_sample_data(fft_info *fft, fftdata *seq, fftdata *smooth, int num);
41 void unconfigure_fft(fft_info *fft);
/external/libvorbis/lib/
Dpsytune.c329 float *fft=work[i]; in main() local
337 fft[j]=pcm[i][j]*=window[j]; in main()
339 drft_forward(&f_look,fft); in main()
342 fft[0]*=scale; in main()
343 fft[0]=todB(fft); in main()
345 float temp=scale*FAST_HYPOT(fft[j],fft[j+1]); in main()
346 temp=fft[(j+1)>>1]=todB(&temp); in main()
356 analysis("fft",frameno+i,fft,framesize/2,1,0); in main()
361 float *fft=work[i]; in main() local
362 float *logmax=fft; in main()
[all …]
/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/
Daecm_core_neon.c47 int16_t* fft, in WebRtcAecm_WindowAndFFTNeon() argument
56 int16_t* p_fft = fft; in WebRtcAecm_WindowAndFFTNeon()
57 int16_t* p_fft_offset = &fft[PART_LEN2]; in WebRtcAecm_WindowAndFFTNeon()
101 WebRtcSpl_RealForwardFFT(aecm->real_fft, (int16_t*)fft, in WebRtcAecm_WindowAndFFTNeon()
118 int16_t* fft, in WebRtcAecm_InverseFFTAndWindowNeon() argument
125 assert((uintptr_t)fft % 16 == 0); in WebRtcAecm_InverseFFTAndWindowNeon()
136 int16_t* p_fft = fft; in WebRtcAecm_InverseFFTAndWindowNeon()
137 int16_t* p_fft_offset = &fft[PART_LEN4 - 6]; in WebRtcAecm_InverseFFTAndWindowNeon()
156 fft[PART_LEN2] = efw[PART_LEN].real; in WebRtcAecm_InverseFFTAndWindowNeon()
157 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag; in WebRtcAecm_InverseFFTAndWindowNeon()
[all …]
Daecm_core_c.c66 int16_t* fft, in WindowAndFFT() argument
76 fft[i] = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT( in WindowAndFFT()
80 fft[PART_LEN + i] = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT( in WindowAndFFT()
88 WebRtcSpl_RealForwardFFT(aecm->real_fft, fft, (int16_t*)freq_signal); in WindowAndFFT()
95 int16_t* fft, in InverseFFTAndWindow() argument
108 fft[j] = efw[i].real; in InverseFFTAndWindow()
109 fft[j + 1] = -efw[i].imag; in InverseFFTAndWindow()
111 fft[0] = efw[0].real; in InverseFFTAndWindow()
112 fft[1] = -efw[0].imag; in InverseFFTAndWindow()
114 fft[PART_LEN2] = efw[PART_LEN].real; in InverseFFTAndWindow()
[all …]
Daecm_core_mips.c76 int16_t* fft, in WindowAndFFT() argument
88 memset(fft, 0, sizeof(int16_t) * PART_LEN4); in WindowAndFFT()
156 [hanning] "r" (WebRtcAecm_kSqrtHanning), [fft] "r" (fft) in WindowAndFFT()
160 WebRtcSpl_ComplexFFT(fft, PART_LEN_SHIFT, 1); in WindowAndFFT()
161 pfrfi = fft; in WindowAndFFT()
203 int16_t* fft, in InverseFFTAndWindow() argument
210 int16_t* pfft = fft; in InverseFFTAndWindow()
211 int16_t* ppfft = fft; in InverseFFTAndWindow()
276 [fft] "+r" (fft) in InverseFFTAndWindow()
281 fft[2] = efw[PART_LEN].real; in InverseFFTAndWindow()
[all …]
/external/aac/libSBRdec/src/
Dpsdec_hybrid.cpp383 FIXP_DBL *fft = (FIXP_DBL *)ALIGN_PTR(_fft); in slotBasedEightChannelFiltering() local
404 fft[FIXP_FFT_IDX_R(n_2)] = accu1 + accu3; \ in slotBasedEightChannelFiltering()
405 fft[FIXP_FFT_IDX_I(n_2)] = accu2 + accu4; in slotBasedEightChannelFiltering()
409 fft[FIXP_FFT_IDX_R(n_1)] = fMultDiv2(p[n_0], accu1); \ in slotBasedEightChannelFiltering()
410 fft[FIXP_FFT_IDX_I(n_1)] = fMultDiv2(p[n_0], accu2); in slotBasedEightChannelFiltering()
423 fft_8 (fft); in slotBasedEightChannelFiltering()
427 mHybridReal[bin] = fft[FIXP_FFT_IDX_R(bin)] << 4; in slotBasedEightChannelFiltering()
428 mHybridImag[bin] = fft[FIXP_FFT_IDX_I(bin)] << 4; in slotBasedEightChannelFiltering()
/external/eigen/unsupported/doc/examples/
DFFT.cpp82 static FFT<Scalar> fft; in fwd_inv() local
83 fft.fwd(freqbuf,timebuf); in fwd_inv()
86 fft.inv(timebuf2,freqbuf); in fwd_inv()

1234