From 8be9148814b88e5b0cabd5a4d2b1f4ff470a8c1c Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 26 Mar 2019 17:23:28 +0000 Subject: COMPMID-1959: Implements 2D FFT on OpenCL Change-Id: I73cf3984a5463acc854c8a59dc2bd9a5234cd99c Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/936 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice --- arm_compute/core/KernelDescriptors.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/KernelDescriptors.h') diff --git a/arm_compute/core/KernelDescriptors.h b/arm_compute/core/KernelDescriptors.h index 186dbfb6d8..83131f4296 100644 --- a/arm_compute/core/KernelDescriptors.h +++ b/arm_compute/core/KernelDescriptors.h @@ -26,10 +26,24 @@ namespace arm_compute { +/** Descriptor for FFT scale kernels */ +struct FFTScaleKernelInfo +{ + float scale{ 0.f }; /**< Axis to perform the kernel on. */ + bool conjugate{ true }; /**< Flag to conjugate the output/ */ +}; + +/** Descriptor for FFT digit reverse kernels */ +struct FFTDigitReverseKernelInfo +{ + unsigned int axis{ 0 }; /**< Axis to perform the kernel on. */ + bool conjugate{ false }; /**< Flag to conjugate the output/ */ +}; + /** Descriptor used by the FFT core kernels */ -struct FFTRadixStageKernelDescriptor +struct FFTRadixStageKernelInfo { - unsigned int axis{ 0 }; /**< Axis to run the FFT on. */ + unsigned int axis{ 0 }; /**< Axis to run the kernel on. */ unsigned int radix{ 0 }; /**< Radix to use. */ unsigned int Nx{ 0 }; /**< Nx coefficient. */ bool is_first_stage{ false }; /**< Flags if the FFT kernels is the first stage of a decomposed FFT. */ -- cgit v1.2.1