1
0

fft.h 626 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #pragma once
  3. #include <bfc/platform/types.h>
  4. #include <bfc/platform/export.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #ifdef NSUTIL_EXPORTS
  9. #define NSUTIL_EXPORT __declspec(dllexport)
  10. #else
  11. #define NSUTIL_EXPORT __declspec(dllimport)
  12. #endif
  13. enum
  14. {
  15. nsutil_fft_none = 0,
  16. nsutil_fft_fast = 1,
  17. nsutil_fft_accurate = 2,
  18. };
  19. typedef void *nsutil_fft_t;
  20. NSUTIL_EXPORT int nsutil_fft_Create_F32R(nsutil_fft_t *fft, int order, int accuracy);
  21. NSUTIL_EXPORT int nsutil_fft_Forward_F32R_IP(nsutil_fft_t fft, float *signal);
  22. NSUTIL_EXPORT int nsutil_fft_Destroy_F32R(nsutil_fft_t *fft);
  23. #ifdef __cplusplus
  24. }
  25. #endif