public software.sextractor

[/] [trunk/] [src/] [fft.h] - Blame information for rev 209

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 bertin
 /*
2
                                fft.h
3
 
4
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5
*
6
*       Part of:        A program that uses FFTs
7
*
8
*       Author:         E.BERTIN (IAP)
9
*
10
*       Contents:       Include for fft.c.
11
*
12 194 bertin
*       Last modify:    28/05/2009
13 46 bertin
*
14
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
*/
16
 
17
#ifndef _FITSCAT_H_
18
#include "fits/fitscat.h"
19
#endif
20
 
21
/*---------------------------- Internal constants ---------------------------*/
22
 
23
/*------------------------------- Other Macros ------------------------------*/
24
#define QFFTWMALLOC(ptr, typ, nel) \
25 201 bertin
                {if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
26 46 bertin
                  error(EXIT_FAILURE, "Not enough memory for ", \
27
                        #ptr " (" #nel " elements) !");;}
28 201 bertin
#define QFFTWFREE(ptr)  fftwf_free(ptr)
29 46 bertin
 
30
/*--------------------------- structure definitions -------------------------*/
31
 
32
/*---------------------------------- protos --------------------------------*/
33 201 bertin
extern void     fft_conv(float *data1, float *fdata2, int *size),
34 46 bertin
                fft_end(),
35 209 bertin
                fft_init(int nthreads),
36
                fft_reset(void);
37 46 bertin
 
38 201 bertin
extern float    *fft_rtf(float *data, int *size);