| 304 | } |
| 305 | |
| 306 | void PrepareOutputBuffer(complex<float>* output_data, int fft_height, |
| 307 | int fft_width, double** fft_input_output) { |
| 308 | int cnt = 0; |
| 309 | for (int i = 0; i < fft_height; ++i) { |
| 310 | for (int j = 0; j < fft_width / 2 + 1; ++j) { |
| 311 | output_data[cnt++] = complex<float>(fft_input_output[i][j * 2], |
| 312 | fft_input_output[i][j * 2 + 1]); |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | TfLiteStatus Rfft2dHelper(TfLiteContext* context, TfLiteNode* node) { |
| 318 | const TfLiteTensor* input = GetInput(context, node, kInputTensor); |