| 1 |
233 |
bertin |
/*
|
| 2 |
|
|
* fft.h
|
| 3 |
46 |
bertin |
*
|
| 4 |
233 |
bertin |
* Include file for fft.c.
|
| 5 |
46 |
bertin |
*
|
| 6 |
233 |
bertin |
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
| 7 |
46 |
bertin |
*
|
| 8 |
233 |
bertin |
* This file part of: SExtractor
|
| 9 |
46 |
bertin |
*
|
| 10 |
233 |
bertin |
* Copyright: (C) 2007-2010 IAP/CNRS/UPMC
|
| 11 |
46 |
bertin |
*
|
| 12 |
233 |
bertin |
* Author: Emmanuel Bertin (IAP)
|
| 13 |
|
|
*
|
| 14 |
|
|
* License: GNU General Public License
|
| 15 |
|
|
*
|
| 16 |
|
|
* SExtractor is free software: you can redistribute it and/or modify
|
| 17 |
|
|
* it under the terms of the GNU General Public License as published by
|
| 18 |
|
|
* the Free Software Foundation, either version 3 of the License, or
|
| 19 |
|
|
* (at your option) any later version.
|
| 20 |
|
|
* SExtractor is distributed in the hope that it will be useful,
|
| 21 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 22 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 23 |
|
|
* GNU General Public License for more details.
|
| 24 |
|
|
* You should have received a copy of the GNU General Public License
|
| 25 |
|
|
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
|
| 26 |
|
|
*
|
| 27 |
|
|
* Last modified: 11/10/2010
|
| 28 |
|
|
*
|
| 29 |
|
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
| 30 |
46 |
bertin |
|
| 31 |
|
|
#ifndef _FITSCAT_H_
|
| 32 |
|
|
#include "fits/fitscat.h"
|
| 33 |
|
|
#endif
|
| 34 |
|
|
|
| 35 |
|
|
/*---------------------------- Internal constants ---------------------------*/
|
| 36 |
|
|
|
| 37 |
|
|
/*------------------------------- Other Macros ------------------------------*/
|
| 38 |
|
|
#define QFFTWMALLOC(ptr, typ, nel) \
|
| 39 |
201 |
bertin |
{if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
|
| 40 |
46 |
bertin |
error(EXIT_FAILURE, "Not enough memory for ", \
|
| 41 |
|
|
#ptr " (" #nel " elements) !");;}
|
| 42 |
201 |
bertin |
#define QFFTWFREE(ptr) fftwf_free(ptr)
|
| 43 |
46 |
bertin |
|
| 44 |
|
|
/*--------------------------- structure definitions -------------------------*/
|
| 45 |
|
|
|
| 46 |
|
|
/*---------------------------------- protos --------------------------------*/
|
| 47 |
201 |
bertin |
extern void fft_conv(float *data1, float *fdata2, int *size),
|
| 48 |
46 |
bertin |
fft_end(),
|
| 49 |
209 |
bertin |
fft_init(int nthreads),
|
| 50 |
|
|
fft_reset(void);
|
| 51 |
46 |
bertin |
|
| 52 |
201 |
bertin |
extern float *fft_rtf(float *data, int *size);
|