TwiceAsNice  2019-02-18
Macros
define.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define VERSION   "2.x"
 
#define DATE   "2009-03-31"
 
#define THREADS_NMAX   1024 /* max. number of threads */
 
#define BANNER   "SExtractor"
 
#define MYVERSION   VERSION
 
#define EXECUTABLE   "sex"
 
#define COPYRIGHT   "2012-2015 IAP/CNRS/UPMC"
 
#define DISCLAIMER
 
#define AUTHORS   "Emmanuel BERTIN <bertin@iap.fr>"
 
#define WEBSITE   "http://astromatic.net/software/sextractor"
 
#define INSTITUTE   "IAP http://www.iap.fr"
 
#define BIG   1e+30 /* a huge number */
 
#define LESSBIG   1e+25 /* a somewhat smaller number */
 
#define DATA_BUFSIZE   262144 /* data buffer size */
 
#define MARGIN_SCALE   2.0 /* Margin / object height */
 
#define MARGIN_OFFSET   4.0 /* Margin offset (pixels) */
 
#define MAXCHAR   512 /* max. number of characters */
 
#define MAXCHARL   16384 /* max.nb of chars in strlist*/
 
#define MAXDEBAREA   3 /* max. area for deblending */
 
#define MAXFLAG   4 /* max. # of FLAG-images */
 
#define MAXIMAGE   2 /* max. # of input images */
 
#define MAXNAPER   32 /* max. number of apertures */
 
#define MAXNASSOC   32 /* max. number of assoc. */
 
#define MAXPICSIZE   1048576 /* max. image size */
 
#define NISO   8 /* number of isophotes */
 
#define OUTPUT   stderr /* where all msgs are sent */
 
#define PSF_NPSFMAX   9 /* Max number of fitted PSFs */
 
#define PI   3.1415926535898 /* never met before? */
 
#define DEG   (PI/180.0) /* 1 deg in radians */
 
#define FSEEKO   fseek
 
#define FTELLO   ftell
 
#define SEEK_SET   0
 
#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   -1
 
#define RETURN_OK   0
 
#define RETURN_ERROR   (-1)
 
#define RETURN_FATAL_ERROR   (-2)
 
#define FBSIZE   2880L /* size (in bytes) of one FITS block */
 
#define FITSTOF(k, def)
 
#define FITSTOI(k, def)
 
#define FITSTOS(k, str, def)
 
#define DEXP(x)   exp(2.30258509299*(x)) /* 10^x */
 
#define DEXPF(x)   expf(2.30258509299f*(x)) /* 10^x */
 
#define QFREAD(ptr, size, afile, fname)
 
#define QFWRITE(ptr, size, afile, fname)
 
#define QFSEEK(afile, offset, pos, fname)
 
#define QFTELL(afile, pos, fname)
 
#define QFREE(ptr)
 
#define QCALLOC(ptr, typ, nel)
 
#define QMALLOC(ptr, typ, nel)
 
#define QMALLOC16(ptr, typ, nel)
 
#define QREALLOC(ptr, typ, nel)
 
#define QMEMCPY(ptrin, ptrout, typ, nel)
 
#define RINT(x)   (int)(floor(x+0.5))
 
#define PIX(pic, x, y)
 
#define DGEOPIXX(pic, x, y)
 
#define DGEOPIXY(pic, x, y)
 
#define NPRINTF
 
#define NFPRINTF(w, x)
 
#define QPRINTF   if (prefs.verbose_type != QUIET) fprintf
 
#define FPRINTF   if (prefs.verbose_type == FULL) fprintf
 
#define QWARNING
 
#define FLAG(x)   (*((char *)&flag##x))
 
#define VECFLAG(x)   (*((char *)flag##x))
 

Macro Definition Documentation

◆ AUTHORS

#define AUTHORS   "Emmanuel BERTIN <bertin@iap.fr>"

◆ BANNER

#define BANNER   "SExtractor"

◆ BIG

#define BIG   1e+30 /* a huge number */

◆ COPYRIGHT

#define COPYRIGHT   "2012-2015 IAP/CNRS/UPMC"

◆ DATA_BUFSIZE

#define DATA_BUFSIZE   262144 /* data buffer size */

◆ DATE

#define DATE   "2009-03-31"

◆ DEG

#define DEG   (PI/180.0) /* 1 deg in radians */

◆ DEXP

#define DEXP (   x)    exp(2.30258509299*(x)) /* 10^x */

◆ DEXPF

#define DEXPF (   x)    expf(2.30258509299f*(x)) /* 10^x */

◆ DGEOPIXX

#define DGEOPIXX (   pic,
  x,
 
)
Value:
*pic->width +(int)x]
int
Definition: PupilGeneratorTest.py:380
int stripheight
Definition: types.h:583
PIXTYPE * dgeostrip[2]
Definition: types.h:582
int y
Definition: lutinvert.py:13
x
Definition: meteoRRD_updater.py:125
int width
Definition: types.h:570
Definition: types.h:556

◆ DGEOPIXY

#define DGEOPIXY (   pic,
  x,
 
)
Value:
*pic->width +(int)x]
int
Definition: PupilGeneratorTest.py:380
int stripheight
Definition: types.h:583
PIXTYPE * dgeostrip[2]
Definition: types.h:582
int y
Definition: lutinvert.py:13
x
Definition: meteoRRD_updater.py:125
int width
Definition: types.h:570
Definition: types.h:556

◆ DISCLAIMER

#define DISCLAIMER
Value:
BANNER " comes with ABSOLUTELY NO WARRANTY\n" \
"You may redistribute copies of " BANNER "\n" \
"under the terms of the GNU General Public License."
#define BANNER
Definition: define.h:38

◆ EXECUTABLE

#define EXECUTABLE   "sex"

◆ EXIT_FAILURE

#define EXIT_FAILURE   -1

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

◆ FBSIZE

#define FBSIZE   2880L /* size (in bytes) of one FITS block */

◆ FITSTOF

#define FITSTOF (   k,
  def 
)
Value:
(st[0]=0,((point = fitsnfind(buf, k, n))? \
atof(strncat(st, &point[10], 70)) \
:(def)))
point
Definition: regressionTest_sapi.py:11
int n
Definition: sxccdtest.cpp:38
const char &QWidget::show def("pushImage",(void(QImageView::*)(const ImageBase *))&QImageView::pushImage) .def("pushImage"
void fixexponent(char *s)
char * buf
Definition: catout.c:51
char * fitsnfind(char *fitsbuf, char *str, int nblock)

◆ FITSTOI

#define FITSTOI (   k,
  def 
)
Value:
(st[0]=0,(point = fitsnfind(buf, k, n))? \
atoi(strncat(st, &point[10], 70)) \
:(def))
point
Definition: regressionTest_sapi.py:11
int n
Definition: sxccdtest.cpp:38
const char &QWidget::show def("pushImage",(void(QImageView::*)(const ImageBase *))&QImageView::pushImage) .def("pushImage"
char * buf
Definition: catout.c:51
char * fitsnfind(char *fitsbuf, char *str, int nblock)

◆ FITSTOS

#define FITSTOS (   k,
  str,
  def 
)
Value:
strcpy(str, (def)); \
}
str
Definition: PupilGeneratorTest.py:379
#define RETURN_OK
Definition: define.h:116
const char &QWidget::show def("pushImage",(void(QImageView::*)(const ImageBase *))&QImageView::pushImage) .def("pushImage"
int fitsread(char *fitsbuf, char *keyword, void *ptr, h_type htype, t_type ttype)
char * buf
Definition: catout.c:51
Definition: fitscat.h:83
Definition: fitscat.h:87

◆ FLAG

#define FLAG (   x)    (*((char *)&flag##x))

◆ FPRINTF

#define FPRINTF   if (prefs.verbose_type == FULL) fprintf

◆ FSEEKO

#define FSEEKO   fseek

◆ FTELLO

#define FTELLO   ftell

◆ INSTITUTE

#define INSTITUTE   "IAP http://www.iap.fr"

◆ LESSBIG

#define LESSBIG   1e+25 /* a somewhat smaller number */

◆ MARGIN_OFFSET

#define MARGIN_OFFSET   4.0 /* Margin offset (pixels) */

◆ MARGIN_SCALE

#define MARGIN_SCALE   2.0 /* Margin / object height */

◆ MAXCHAR

#define MAXCHAR   512 /* max. number of characters */

◆ MAXCHARL

#define MAXCHARL   16384 /* max.nb of chars in strlist*/

◆ MAXDEBAREA

#define MAXDEBAREA   3 /* max. area for deblending */

◆ MAXFLAG

#define MAXFLAG   4 /* max. # of FLAG-images */

◆ MAXIMAGE

#define MAXIMAGE   2 /* max. # of input images */

◆ MAXNAPER

#define MAXNAPER   32 /* max. number of apertures */

◆ MAXNASSOC

#define MAXNASSOC   32 /* max. number of assoc. */

◆ MAXPICSIZE

#define MAXPICSIZE   1048576 /* max. image size */

◆ MYVERSION

#define MYVERSION   VERSION

◆ NFPRINTF

#define NFPRINTF (   w,
  x 
)
Value:
{if (prefs.verbose_type==NORM \
fprintf(w, "\33[1M> %s\n\33[1A",x); \
else if (prefs.verbose_type == FULL) \
fprintf(w, "%s.\n", x);}
Definition: exclog.h:36
x
Definition: meteoRRD_updater.py:125
w
Definition: BasdaVinoCameraBiasAlign.py:61
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ NISO

#define NISO   8 /* number of isophotes */

◆ NPRINTF

#define NPRINTF
Value:
if (prefs.verbose_type == NORM \
|| prefs.verbose_type==WARN) fprintf
Definition: exclog.h:36
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ OUTPUT

#define OUTPUT   stderr /* where all msgs are sent */

◆ PI

#define PI   3.1415926535898 /* never met before? */

◆ PIX

#define PIX (   pic,
  x,
 
)
Value:
*pic->width +(int)x]
int
Definition: PupilGeneratorTest.py:380
int stripheight
Definition: types.h:583
int y
Definition: lutinvert.py:13
x
Definition: meteoRRD_updater.py:125
int width
Definition: types.h:570
PIXTYPE * strip
Definition: types.h:580
Definition: types.h:556

◆ PSF_NPSFMAX

#define PSF_NPSFMAX   9 /* Max number of fitted PSFs */

◆ QCALLOC

#define QCALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)calloc((size_t)(nel),sizeof(typ)))) \
{ \
sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QFREAD

#define QFREAD (   ptr,
  size,
  afile,
  fname 
)
Value:
if (fread(ptr, (size_t)(size), (size_t)1, afile)!=1) \
error(EXIT_FAILURE, "*Error* while reading ", fname)
int size
Definition: lutgen.py:8
#define EXIT_FAILURE
Definition: define.h:111

◆ QFREE

#define QFREE (   ptr)
Value:
{free(ptr); \
ptr = NULL;}
#define NULL
Definition: PciTypes.h:160

◆ QFSEEK

#define QFSEEK (   afile,
  offset,
  pos,
  fname 
)
Value:
if (FSEEKO(afile, (offset), pos)) \
error(EXIT_FAILURE,"*Error*: file positioning failed in ", \
fname)
#define FSEEKO
Definition: define.h:95
#define EXIT_FAILURE
Definition: define.h:111
pos
Definition: lics.dx.gws.drot.py:10

◆ QFTELL

#define QFTELL (   afile,
  pos,
  fname 
)
Value:
if ((pos=FTELLO(afile))==-1) \
error(EXIT_FAILURE,"*Error*: file position unknown in ", \
fname)
#define FTELLO
Definition: define.h:96
#define EXIT_FAILURE
Definition: define.h:111
pos
Definition: lics.dx.gws.drot.py:10

◆ QFWRITE

#define QFWRITE (   ptr,
  size,
  afile,
  fname 
)
Value:
if (fwrite(ptr, (size_t)(size), (size_t)1, afile)!=1) \
error(EXIT_FAILURE, "*Error* while writing ", fname)
int size
Definition: lutgen.py:8
#define EXIT_FAILURE
Definition: define.h:111

◆ QMALLOC

#define QMALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{ \
sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QMALLOC16

#define QMALLOC16 (   ptr,
  typ,
  nel 
)
Value:
{if (posix_memalign((void **)&ptr, 16, (size_t)(nel)*sizeof(typ))) \
{ \
sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QMEMCPY

#define QMEMCPY (   ptrin,
  ptrout,
  typ,
  nel 
)
Value:
{if (ptrin) \
{if (!(ptrout = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{ \
sprintf(gstr, #ptrout " (" #nel "=%lld elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE,"Could not allocate memory for ",gstr);\
}; \
memcpy(ptrout, ptrin, (size_t)(nel)*sizeof(typ)); \
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QPRINTF

#define QPRINTF   if (prefs.verbose_type != QUIET) fprintf

◆ QREALLOC

#define QREALLOC (   ptr,
  typ,
  nel 
)
Value:
{if (!(ptr = (typ *)realloc(ptr, (size_t)(nel)*sizeof(typ))))\
{ \
sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
}; \
}
typ
Definition: setTargets.py:74
char gstr[MAXCHAR]
Definition: fitscat_defs.h:89
#define EXIT_FAILURE
Definition: define.h:111

◆ QWARNING

#define QWARNING
Value:
Definition: exclog.h:36
void warning(char *, char *)
prefstruct prefs
Definition: prefs.h:257
enum prefstruct::@178 verbose_type

◆ RETURN_ERROR

#define RETURN_ERROR   (-1)

◆ RETURN_FATAL_ERROR

#define RETURN_FATAL_ERROR   (-2)

◆ RETURN_OK

#define RETURN_OK   0

◆ RINT

#define RINT (   x)    (int)(floor(x+0.5))

◆ SEEK_SET

#define SEEK_SET   0

◆ THREADS_NMAX

#define THREADS_NMAX   1024 /* max. number of threads */

◆ VECFLAG

#define VECFLAG (   x)    (*((char *)flag##x))

◆ VERSION

#define VERSION   "2.x"

◆ WEBSITE

#define WEBSITE   "http://astromatic.net/software/sextractor"