annotate src/fft.h @ 285:89fe52066db1 tip master

MSCV missing ssize_t fix
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 16 Jul 2019 18:29:20 +0100
parents c5e3855caaa9
children
rev   line source
jamie@149 1 /*
jamie@149 2 * Copyright (C) 2012 Jamie Bullock
jamie@149 3 *
jamie@149 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
jamie@149 5 * of this software and associated documentation files (the "Software"), to
jamie@149 6 * deal in the Software without restriction, including without limitation the
jamie@149 7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
jamie@149 8 * sell copies of the Software, and to permit persons to whom the Software is
jamie@149 9 * furnished to do so, subject to the following conditions:
jamie@149 10 *
jamie@149 11 * The above copyright notice and this permission notice shall be included in
jamie@149 12 * all copies or substantial portions of the Software.
jamie@149 13 *
jamie@149 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jamie@149 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jamie@149 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jamie@149 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
jamie@149 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
jamie@149 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
jamie@149 20 * IN THE SOFTWARE.
jamie@149 21 *
jamie@149 22 */
jamie@149 23
jamie@150 24 #ifndef FFT_H
jamie@150 25 #define FFT_H
jamie@150 26
andrea@211 27 #ifdef _MSC_VER
andrea@211 28 #ifndef __cplusplus
andrea@211 29 typedef int bool;
andrea@211 30 #define false 0
andrea@211 31 #define true 1
andrea@211 32 #endif
andrea@211 33 #else
andrea@211 34 #include <stdbool.h>
andrea@211 35 #endif
jamie@154 36
jamie@150 37 #ifdef USE_OOURA
jamie@149 38 #include "ooura/fftsg.h"
jamie@150 39 #else
jamie@276 40 #ifndef __APPLE__
jamie@276 41 #error "The target platform is not an Apple one and USE_OOURA was not defined"
jamie@276 42 #endif
jamie@150 43 #include <Accelerate/Accelerate.h>
jamie@150 44 #endif
jamie@150 45
jamie@150 46 #ifdef USE_OOURA
jamie@150 47 typedef struct xtract_ooura_data_
jamie@150 48 {
jamie@150 49 int *ooura_ip;
jamie@150 50 double *ooura_w;
jamie@150 51 bool initialised;
jamie@150 52 } xtract_ooura_data;
jamie@150 53 #else
jamie@150 54 typedef struct xtract_vdsp_data_
jamie@150 55 {
jamie@150 56 FFTSetupD setup;
jamie@150 57 DSPDoubleSplitComplex fft;
jamie@150 58 vDSP_Length log2N;
jamie@150 59 bool initialised;
jamie@150 60 } xtract_vdsp_data;
jamie@150 61 #endif
jamie@150 62
jamie@150 63 #endif /* Header guard */