/external/webrtc/modules/audio_processing/utility/ |
D | pffft_wrapper_unittest.cc | 30 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 …]
|
D | pffft_wrapper.cc | 19 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()
|
D | pffft_wrapper.h | 42 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/ |
D | fft_util.cc | 25 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()
|
D | fft.cc | 26 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()
|
D | fft_io.c | 18 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()
|
D | fft_test.cc | 43 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()
|
D | frontend_util.c | 46 sample_rate, state->fft.fft_size / 2 + 1)) { in FrontendPopulateState() 59 MostSignificantBit32(state->fft.fft_size) - 1 - (kFilterbankBits / 2); in FrontendPopulateState()
|
D | fft.h | 33 size_t fft_size; member
|
D | frontend.c | 57 MostSignificantBit32(state->fft.fft_size) - 1 - (kFilterbankBits / 2); in FrontendProcessSamples()
|
/external/oss-fuzz/projects/pffft/ |
D | pffft_fuzzer.cc | 66 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/ |
D | hlo_evaluator.cc | 1131 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()
|