Kstars
9 #define MEMORY_ALLOC_ERROR 1
10 #define PIXSTACK_FULL 2
11 #define ILLEGAL_DTYPE 3
12 #define ILLEGAL_SUBPIX 4
13 #define NON_ELLIPSE_PARAMS 5
14 #define ILLEGAL_APER_PARAMS 6
15 #define DEBLEND_OVERFLOW 7
16 #define LINE_NOT_IN_BUF 8
17 #define RELTHRESH_NO_NOISE 9
18 #define UNKNOWN_NOISE_TYPE 10
21 #define PI 3.1415926535898
22 #define DEG (PI/180.0)
25 typedef unsigned int ULONG;
26 typedef unsigned char BYTE;
29 typedef float PIXTYPE;
30 #define PIXDTYPE SEP_TFLOAT
34 typedef PIXTYPE (*converter)(
void *ptr);
35 typedef void (*array_converter)(
void *ptr,
int n, PIXTYPE *target);
36 typedef void (*array_writer)(
float *ptr,
int n,
void *target);
38 #define QCALLOC(ptr, typ, nel, status) \
39 {if (!(ptr = (typ *)calloc((size_t)(nel),sizeof(typ)))) \
42 sprintf(errtext, #ptr " (" #nel "=%lu elements) " \
43 "at line %d in module " __FILE__ " !", \
44 (size_t)(nel)*sizeof(typ), __LINE__); \
45 put_errdetail(errtext); \
46 status = MEMORY_ALLOC_ERROR; \
51 #define QMALLOC(ptr, typ, nel, status) \
52 {if (!(ptr = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
55 sprintf(errtext, #ptr " (" #nel "=%lu elements) " \
56 "at line %d in module " __FILE__ " !", \
57 (size_t)(nel)*sizeof(typ), __LINE__); \
58 put_errdetail(errtext); \
59 status = MEMORY_ALLOC_ERROR; \
64 float fqmedian(
float *ra,
int n);
65 void put_errdetail(
char *errtext);
67 int get_converter(
int dtype, converter *f,
int *size);
68 int get_array_converter(
int dtype, array_converter *f,
int *size);
69 int get_array_writer(
int dtype, array_writer *f,
int *size);
70 int get_array_subtractor(
int dtype, array_writer *f,
int *size);
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:25 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.