Home
last modified time | relevance | path

Searched refs:FFTComplex (Results 1 – 25 of 41) sorted by relevance

12

/third_party/ffmpeg/libavcodec/ppc/
Dfft_vsx.c35 static void fft32_vsx_interleave(FFTComplex *z) in fft32_vsx_interleave()
43 static void fft64_vsx_interleave(FFTComplex *z) in fft64_vsx_interleave()
50 static void fft128_vsx_interleave(FFTComplex *z) in fft128_vsx_interleave()
57 static void fft256_vsx_interleave(FFTComplex *z) in fft256_vsx_interleave()
64 static void fft512_vsx_interleave(FFTComplex *z) in fft512_vsx_interleave()
71 static void fft1024_vsx_interleave(FFTComplex *z) in fft1024_vsx_interleave()
79 static void fft2048_vsx_interleave(FFTComplex *z) in fft2048_vsx_interleave()
86 static void fft4096_vsx_interleave(FFTComplex *z) in fft4096_vsx_interleave()
93 static void fft8192_vsx_interleave(FFTComplex *z) in fft8192_vsx_interleave()
100 static void fft16384_vsx_interleave(FFTComplex *z) in fft16384_vsx_interleave()
[all …]
Dfft_vsx.h36 void ff_fft_calc_interleave_vsx(FFTContext *s, FFTComplex *z);
37 void ff_fft_calc_vsx(FFTContext *s, FFTComplex *z);
40 #define byte_2complex (2*sizeof(FFTComplex))
41 #define byte_4complex (4*sizeof(FFTComplex))
42 #define byte_6complex (6*sizeof(FFTComplex))
43 #define byte_8complex (8*sizeof(FFTComplex))
44 #define byte_10complex (10*sizeof(FFTComplex))
45 #define byte_12complex (12*sizeof(FFTComplex))
46 #define byte_14complex (14*sizeof(FFTComplex))
48 inline static void pass_vsx_interleave(FFTComplex *z, const FFTSample *wre, unsigned int n) in pass_vsx_interleave()
[all …]
Dfft_init.c41 void ff_fft_calc_altivec(FFTContext *s, FFTComplex *z);
42 void ff_fft_calc_interleave_altivec(FFTContext *s, FFTComplex *z);
101 ff_fft_calc_vsx(s, (FFTComplex*)output); in imdct_half_altivec()
103 ff_fft_calc_altivec(s, (FFTComplex*)output); in imdct_half_altivec()
/third_party/ffmpeg/libavcodec/x86/
Dmdct15_init.c28 void ff_mdct15_postreindex_sse3(FFTComplex *out, FFTComplex *in, FFTComplex *exp, int *lut, ptrdiff…
29 void ff_mdct15_postreindex_avx2(FFTComplex *out, FFTComplex *in, FFTComplex *exp, int *lut, ptrdiff…
31 void ff_fft15_avx(FFTComplex *out, FFTComplex *in, FFTComplex *exptab, ptrdiff_t stride);
36 FFTComplex tmp[30]; in perm_twiddles()
56 FFTComplex ac_exp[] = { in perm_twiddles()
66 memcpy(s->exptab + 8*k, ac_exp, 8*sizeof(FFTComplex)); in perm_twiddles()
71 FFTComplex dc_exp[] = { in perm_twiddles()
77 memcpy(s->exptab + 8*6 + 4*k, dc_exp, 4*sizeof(FFTComplex)); in perm_twiddles()
Dfft.h24 void ff_fft_permute_sse(FFTContext *s, FFTComplex *z);
25 void ff_fft_calc_avx(FFTContext *s, FFTComplex *z);
26 void ff_fft_calc_sse(FFTContext *s, FFTComplex *z);
27 void ff_fft_calc_3dnow(FFTContext *s, FFTComplex *z);
28 void ff_fft_calc_3dnowext(FFTContext *s, FFTComplex *z);
/third_party/ffmpeg/libavcodec/
Dmdct15.h39 FFTComplex *tmp;
40 FFTComplex *twiddle_exptab;
42 DECLARE_ALIGNED(32, FFTComplex, exptab)[64]; member
45 void (*fft15)(FFTComplex *out, FFTComplex *in, FFTComplex *exptab, ptrdiff_t stride);
48 void (*postreindex)(FFTComplex *out, FFTComplex *in, FFTComplex *exp, int *lut, ptrdiff_t len8);
Dmdct15.c92 static inline void fft5(FFTComplex *out, FFTComplex *in, FFTComplex exptab[2]) in fft5()
94 FFTComplex z0[4], t[6]; in fft5()
137 static void fft15_c(FFTComplex *out, FFTComplex *in, FFTComplex *exptab, ptrdiff_t stride) in fft15_c()
140 FFTComplex tmp1[5], tmp2[5], tmp3[5]; in fft15_c()
147 FFTComplex t[2]; in fft15_c()
171 FFTComplex fft15in[15]; in mdct15()
177 FFTComplex tmp, exp = s->twiddle_exptab[k >> 1]; in mdct15()
209 FFTComplex fft15in[15]; in imdct15_half()
210 FFTComplex *z = (FFTComplex *)dst; in imdct15_half()
218 FFTComplex tmp = { in2[-k*stride], in1[k*stride] }; in imdct15_half()
[all …]
Dfft.h57 typedef struct FFTComplex { struct
59 } FFTComplex; typedef
87 FFTComplex *tmp_buf;
96 void (*fft_permute)(struct FFTContext *s, FFTComplex *z);
101 void (*fft_calc)(struct FFTContext *s, FFTComplex *z);
Davfft.h37 typedef struct FFTComplex { struct
39 } FFTComplex; argument
53 void av_fft_permute(FFTContext *s, FFTComplex *z);
59 void av_fft_calc(FFTContext *s, FFTComplex *z);
Drdft.c38 FFTComplex ev, od, odsum; in rdft_calc_c()
46 s->fft.fft_permute(&s->fft, (FFTComplex*)data); in rdft_calc_c()
47 s->fft.fft_calc(&s->fft, (FFTComplex*)data); in rdft_calc_c()
83 s->fft.fft_permute(&s->fft, (FFTComplex*)data); in rdft_calc_c()
84 s->fft.fft_calc(&s->fft, (FFTComplex*)data); in rdft_calc_c()
Dfft_template.c141 static void fft_permute_c(FFTContext *s, FFTComplex *z);
142 static void fft_calc_c(FFTContext *s, FFTComplex *z);
215 s->tmp_buf = av_malloc(n * sizeof(FFTComplex)); in ff_fft_init()
293 static void fft_permute_c(FFTContext *s, FFTComplex *z) in fft_permute_c()
305 memcpy(z, s->tmp_buf, np * sizeof(FFTComplex)); in fft_permute_c()
317 static void fft_calc_c(FFTContext *s, FFTComplex *z) { in fft_calc_c()
322 FFTComplex *tmpz; in fft_calc_c()
513 static void name(FFTComplex *z, const FFTSample *wre, unsigned int n)\
541 static void fft##n(FFTComplex *z)\ in PASS()
549 static void fft4(FFTComplex *z)
[all …]
Don2avc.c475 c->fft128.fft_permute(&c->fft128, (FFTComplex*)src); in wtf_end_512()
476 c->fft128.fft_permute(&c->fft128, (FFTComplex*)(src + 128)); in wtf_end_512()
477 c->fft128.fft_permute(&c->fft128, (FFTComplex*)(src + 256)); in wtf_end_512()
478 c->fft128.fft_permute(&c->fft128, (FFTComplex*)(src + 384)); in wtf_end_512()
479 c->fft128.fft_calc(&c->fft128, (FFTComplex*)src); in wtf_end_512()
480 c->fft128.fft_calc(&c->fft128, (FFTComplex*)(src + 128)); in wtf_end_512()
481 c->fft128.fft_calc(&c->fft128, (FFTComplex*)(src + 256)); in wtf_end_512()
482 c->fft128.fft_calc(&c->fft128, (FFTComplex*)(src + 384)); in wtf_end_512()
486 c->fft512.fft_permute(&c->fft512, (FFTComplex*)tmp1); in wtf_end_512()
487 c->fft512.fft_calc(&c->fft512, (FFTComplex*)tmp1); in wtf_end_512()
[all …]
Dmdct_template.c112 FFTComplex *z = (FFTComplex *)output; in ff_imdct_half_c()
174 FFTComplex *x = (FFTComplex *)out; in ff_mdct_calc_c()
/third_party/ffmpeg/libavutil/
Dtx_template.c40 DECLARE_ALIGNED(32, FFTComplex, TX_NAME(ff_cos_53))[4]; variable
97 … TX_NAME(ff_cos_53)[0] = (FFTComplex){ RESCALE(cos(2 * M_PI / 12)), RESCALE(cos(2 * M_PI / 12)) }; in ff_init_53_tabs()
98 … TX_NAME(ff_cos_53)[1] = (FFTComplex){ RESCALE(cos(2 * M_PI / 6)), RESCALE(cos(2 * M_PI / 6)) }; in ff_init_53_tabs()
99 … TX_NAME(ff_cos_53)[2] = (FFTComplex){ RESCALE(cos(2 * M_PI / 5)), RESCALE(sin(2 * M_PI / 5)) }; in ff_init_53_tabs()
100 … TX_NAME(ff_cos_53)[3] = (FFTComplex){ RESCALE(cos(2 * M_PI / 10)), RESCALE(sin(2 * M_PI / 10)) }; in ff_init_53_tabs()
130 static av_always_inline void fft3(FFTComplex *out, FFTComplex *in, in fft3()
133 FFTComplex tmp[2]; in fft3()
166 static av_always_inline void NAME(FFTComplex *out, FFTComplex *in, \
169 FFTComplex z0[4], t[6]; \
204 static av_always_inline void fft15(FFTComplex *out, FFTComplex *in, in fft15()
[all …]
Dtx_priv.h34 typedef AVComplexFloat FFTComplex; typedef
39 typedef AVComplexDouble FFTComplex; typedef
44 typedef AVComplexInt32 FFTComplex; typedef
46 typedef void FFTComplex; typedef
116 FFTComplex *exptab; /* MDCT exptab */
117 FFTComplex *tmp; /* Temporary buffer needed for all compound transforms */
/third_party/ffmpeg/libavfilter/
Davf_showcqt.h63 FFTComplex *fft_data;
64 FFTComplex *fft_result;
65 FFTComplex *cqt_result;
79 void (*cqt_calc)(FFTComplex *dst, const FFTComplex *src, const Coeffs *coeffs,
Dvf_convolve.c48 FFTComplex *fft_hdata[4];
49 FFTComplex *fft_vdata[4];
50 FFTComplex *fft_hdata_impulse[4];
51 FFTComplex *fft_vdata_impulse[4];
128 if (!(s->fft_hdata[i] = av_calloc(s->fft_len[i], s->fft_len[i] * sizeof(FFTComplex)))) in config_input_main()
131 if (!(s->fft_vdata[i] = av_calloc(s->fft_len[i], s->fft_len[i] * sizeof(FFTComplex)))) in config_input_main()
134 … if (!(s->fft_hdata_impulse[i] = av_calloc(s->fft_len[i], s->fft_len[i] * sizeof(FFTComplex)))) in config_input_main()
137 … if (!(s->fft_vdata_impulse[i] = av_calloc(s->fft_len[i], s->fft_len[i] * sizeof(FFTComplex)))) in config_input_main()
162 FFTComplex *hdata, *vdata;
170 FFTComplex *hdata = td->hdata; in fft_horizontal()
[all …]
Daf_headphone.c72 FFTComplex *temp_fft[2];
73 FFTComplex *temp_afft[2];
76 FFTComplex *data_hrtf[2];
133 FFTComplex **temp_fft;
134 FFTComplex **temp_afft;
215 FFTComplex *hrtf = s->data_hrtf[jobnr]; in headphone_fast_convolute()
224 FFTComplex *fft_in = s->temp_fft[jobnr]; in headphone_fast_convolute()
225 FFTComplex *fft_acc = s->temp_afft[jobnr]; in headphone_fast_convolute()
230 FFTComplex *hrtf_offset; in headphone_fast_convolute()
248 memset(fft_acc, 0, sizeof(FFTComplex) * n_fft); in headphone_fast_convolute()
[all …]
Daf_sofalizer.c93 FFTComplex *temp_fft[2]; /* Array to hold FFT values */
94 FFTComplex *temp_afft[2]; /* Array to accumulate FFT values prior to IFFT */
112 FFTComplex *data_hrtf[2];
336 FFTComplex **temp_fft;
337 FFTComplex **temp_afft;
447 FFTComplex *hrtf = s->data_hrtf[jobnr]; /* get pointers to current HRTF data */ in sofalizer_fast_convolute()
459 FFTComplex *fft_in = s->temp_fft[jobnr]; /* temporary array for FFT input/output data */ in sofalizer_fast_convolute()
460 FFTComplex *fft_acc = s->temp_afft[jobnr]; in sofalizer_fast_convolute()
466 FFTComplex *hrtf_offset; in sofalizer_fast_convolute()
491 memset(fft_acc, 0, sizeof(FFTComplex) * n_fft); in sofalizer_fast_convolute()
[all …]
Dvf_fftdnoiz.c44 FFTComplex *hdata, *vdata;
68 void (*import_row)(FFTComplex *dst, uint8_t *src, int rw);
69 void (*export_row)(FFTComplex *src, uint8_t *dst, int rw, float scale, int depth);
149 static void import_row8(FFTComplex *dst, uint8_t *src, int rw) in import_row8()
159 static void export_row8(FFTComplex *src, uint8_t *dst, int rw, float scale, int depth) in export_row8()
167 static void import_row16(FFTComplex *dst, uint8_t *srcp, int rw) in import_row16()
178 static void export_row16(FFTComplex *src, uint8_t *dstp, int rw, float scale, int depth) in export_row16()
226 p->buffer_linesize = p->b * p->nox * sizeof(FFTComplex); in config_input()
263 const int data_linesize = p->data_linesize / sizeof(FFTComplex); in import_plane()
264 FFTComplex *hdata = p->hdata; in import_plane()
[all …]
/third_party/ffmpeg/libavcodec/arm/
Dfft_init_arm.c27 void ff_fft_calc_vfp(FFTContext *s, FFTComplex *z);
29 void ff_fft_permute_neon(FFTContext *s, FFTComplex *z);
30 void ff_fft_calc_neon(FFTContext *s, FFTComplex *z);
/third_party/ffmpeg/libavcodec/tests/
Dfft.c104 static void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits) in fft_ref()
112 FFTComplex *q = tab; in fft_ref()
259 static inline void fft_permute(FFTContext *s, FFTComplex *z) in fft_permute()
268 static inline void fft_calc(FFTContext *s, FFTComplex *z) in fft_calc()
378 FFTComplex *tab, *tab1, *tab_ref; in main()
447 tab = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
448 tab1 = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
449 tab_ref = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
528 memcpy(tab, tab1, fft_size * sizeof(FFTComplex)); in main()
573 memcpy(tab, tab1, fft_size * sizeof(FFTComplex)); in main()
[all …]
/third_party/ffmpeg/libavcodec/mips/
Dfft_mips.c61 static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z) in ff_fft_calc_mips()
66 FFTComplex *tmpz; in ff_fft_calc_mips()
72 FFTComplex * tmpz_n2, * tmpz_n34, * tmpz_n4; in ff_fft_calc_mips()
73 FFTComplex * tmpz_n2_i, * tmpz_n34_i, * tmpz_n4_i, * tmpz_i; in ff_fft_calc_mips()
331 FFTComplex *z = (FFTComplex *)output; in ff_imdct_half_mips()
337 FFTComplex *z1, *z2; in ff_imdct_half_mips()
/third_party/ffmpeg/libavcodec/aarch64/
Dfft_init_aarch64.c29 void ff_fft_permute_neon(FFTContext *s, FFTComplex *z);
30 void ff_fft_calc_neon(FFTContext *s, FFTComplex *z);
/third_party/ffmpeg/libavfilter/x86/
Davf_showcqt_init.c27 void ff_showcqt_cqt_calc_##type(FFTComplex *dst, const FFTComplex *src, \

12