Home
last modified time | relevance | path

Searched refs:fft_size (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/modules/audio_processing/utility/
Dpffft_wrapper_unittest.cc30 void CreatePffftWrapper(size_t fft_size, Pffft::FftType fft_type) { in CreatePffftWrapper() argument
31 Pffft pffft_wrapper(fft_size, fft_type); in CreatePffftWrapper()
34 float* AllocateScratchBuffer(size_t fft_size, bool complex_fft) { in AllocateScratchBuffer() argument
36 pffft_aligned_malloc(fft_size * (complex_fft ? 2 : 1) * sizeof(float))); in AllocateScratchBuffer()
54 void PffftValidateWrapper(size_t fft_size, bool complex_fft) { in PffftValidateWrapper() argument
60 pffft_new_setup(fft_size, complex_fft ? PFFFT_COMPLEX : PFFFT_REAL); in PffftValidateWrapper()
61 ASSERT_TRUE(pffft_status) << "FFT size (" << fft_size << ") not supported."; in PffftValidateWrapper()
62 size_t num_floats = fft_size * (complex_fft ? 2 : 1); in PffftValidateWrapper()
66 float* scratch = AllocateScratchBuffer(fft_size, complex_fft); in PffftValidateWrapper()
71 ASSERT_TRUE(Pffft::IsValidFftSize(fft_size, fft_type)); in PffftValidateWrapper()
[all …]
Dpffft_wrapper.cc19 size_t GetBufferSize(size_t fft_size, Pffft::FftType fft_type) { in GetBufferSize() argument
20 return fft_size * (fft_type == Pffft::FftType::kReal ? 1 : 2); in GetBufferSize()
29 Pffft::FloatBuffer::FloatBuffer(size_t fft_size, FftType fft_type) in FloatBuffer() argument
30 : size_(GetBufferSize(fft_size, fft_type)), in FloatBuffer()
45 Pffft::Pffft(size_t fft_size, FftType fft_type) in Pffft() argument
46 : fft_size_(fft_size), in Pffft()
62 bool Pffft::IsValidFftSize(size_t fft_size, FftType fft_type) { in IsValidFftSize() argument
63 if (fft_size == 0) { in IsValidFftSize()
71 int n = static_cast<int>(fft_size); in IsValidFftSize()
Dpffft_wrapper.h42 FloatBuffer(size_t fft_size, FftType fft_type);
56 Pffft(size_t fft_size, FftType fft_type);
62 static bool IsValidFftSize(size_t fft_size, FftType fft_type);
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfft_util.cc25 state->fft_size = 1; in FftPopulateState()
26 while (state->fft_size < state->input_size) { in FftPopulateState()
27 state->fft_size <<= 1; in FftPopulateState()
31 malloc(state->fft_size * sizeof(*state->input))); in FftPopulateState()
38 malloc((state->fft_size / 2 + 1) * sizeof(*state->output) * 2)); in FftPopulateState()
47 state->fft_size, 0, nullptr, &scratch_size); in FftPopulateState()
59 kfft_cfg = kiss_fftr_alloc(state->fft_size, 0, in FftPopulateState()
Dfft.cc26 const size_t fft_size = state->fft_size; in FftCompute() local
36 for (; i < fft_size; ++i) { in FftCompute()
51 memset(state->input, 0, state->fft_size * sizeof(*state->input)); in FftReset()
52 memset(state->output, 0, (state->fft_size / 2 + 1) * sizeof(*state->output)); in FftReset()
Dfft_io.c18 fprintf(fp, "static int16_t fft_input[%zu];\n", state->fft_size); in FftWriteMemmapPreamble()
20 state->fft_size / 2 + 1); in FftWriteMemmapPreamble()
29 fprintf(fp, "%s->fft_size = %zu;\n", variable, state->fft_size); in FftWriteMemmap()
Dfft_test.cc43 TF_LITE_MICRO_EXPECT_EQ(state.fft_size / 2 + 1, in TF_LITE_MICRO_TEST()
46 for (i = 0; i <= state.fft_size / 2; ++i) { in TF_LITE_MICRO_TEST()
Dfrontend_util.c46 sample_rate, state->fft.fft_size / 2 + 1)) { in FrontendPopulateState()
59 MostSignificantBit32(state->fft.fft_size) - 1 - (kFilterbankBits / 2); in FrontendPopulateState()
Dfft.h33 size_t fft_size; member
Dfrontend.c57 MostSignificantBit32(state->fft.fft_size) - 1 - (kFilterbankBits / 2); in FrontendProcessSamples()
/external/oss-fuzz/projects/pffft/
Dpffft_fuzzer.cc66 const size_t fft_size = size / kSizeOfOneSample; in LLVMFuzzerTestOneInput() local
67 if (!IsValidSize(fft_size)) { in LLVMFuzzerTestOneInput()
71 const size_t number_of_bytes = fft_size * kSizeOfOneSample; in LLVMFuzzerTestOneInput()
82 PFFFT_Setup* pffft_setup = pffft_new_setup(fft_size, kTransform); in LLVMFuzzerTestOneInput()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.cc1131 int64 fft_rank, FftType fft_type, int64 fft_size, in CopyDataFromInput() argument
1137 CHECK_GE(data.size(), fft_size); in CopyDataFromInput()
1221 int64 fft_rank, FftType fft_type, int64 fft_size, in CopyDataFromInput() argument
1230 input_literal, input_start, fft_rank, fft_type, fft_size, fft_lengths, in CopyDataFromInput()
1234 input_literal, input_start, fft_rank, fft_type, fft_size, fft_lengths, in CopyDataFromInput()
1392 const int64 fft_size = fft_strides[fft_rank]; in HandleFft() local
1394 if (fft_size > 0) { in HandleFft()
1396 std::vector<complex128> data(fft_size); in HandleFft()
1426 fft_size, fft_lengths, fft_strides, input_lengths, in HandleFft()