ast.h | ast.h | |||
---|---|---|---|---|
skipping to change at line 534 | skipping to change at line 534 | |||
/* ====== */ | /* ====== */ | |||
/* globals. */ | /* globals. */ | |||
/* ======== */ | /* ======== */ | |||
#define astDECLARE_GLOBALS | #define astDECLARE_GLOBALS | |||
#define astGET_GLOBALS(This) | #define astGET_GLOBALS(This) | |||
#define astINIT_GLOBALS | #define astINIT_GLOBALS | |||
/* unit. */ | /* unit. */ | |||
/* ===== */ | /* ===== */ | |||
#define AST__VMAJOR 7 | #define AST__VMAJOR 7 | |||
#define AST__VMINOR 0 | #define AST__VMINOR 0 | |||
#define AST__RELEASE 2 | #define AST__RELEASE 3 | |||
#define AST_MAJOR_VERS 7 | #define AST_MAJOR_VERS 7 | |||
#define AST_MINOR_VERS 0 | #define AST_MINOR_VERS 0 | |||
#define AST_RELEASE 2 | #define AST_RELEASE 3 | |||
#include <stdarg.h> | #include <stdarg.h> | |||
#include <float.h> | #include <float.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#define STATUS_PTR astGetStatusPtr | #define STATUS_PTR astGetStatusPtr | |||
#define AST__THREADSAFE 1 | #define AST__THREADSAFE 1 | |||
#define astINVOKE(rettype,function) astERROR_INVOKE(astRet##rettype##_(func tion)) | #define astINVOKE(rettype,function) astERROR_INVOKE(astRet##rettype##_(func tion)) | |||
#define astRetF_(x) (x) | #define astRetF_(x) (x) | |||
#define astRetV_(x) (x) | #define astRetV_(x) (x) | |||
skipping to change at line 816 | skipping to change at line 816 | |||
#define AST__LINEAR (5) | #define AST__LINEAR (5) | |||
#define AST__SINC (6) | #define AST__SINC (6) | |||
#define AST__SINCSINC (7) | #define AST__SINCSINC (7) | |||
#define AST__SINCCOS (8) | #define AST__SINCCOS (8) | |||
#define AST__SINCGAUSS (9) | #define AST__SINCGAUSS (9) | |||
#define AST__BLOCKAVE (10) | #define AST__BLOCKAVE (10) | |||
#define AST__GAUSS (11) | #define AST__GAUSS (11) | |||
#define AST__SOMB (12) | #define AST__SOMB (12) | |||
#define AST__SOMBCOS (13) | #define AST__SOMBCOS (13) | |||
#include <stdint.h> | ||||
typedef int64_t INT_BIG; | ||||
typedef uint64_t UINT_BIG; | ||||
typedef struct AstMapping { | typedef struct AstMapping { | |||
AstObject object; | AstObject object; | |||
char invert; | char invert; | |||
char issimple; | char issimple; | |||
int nin; | int nin; | |||
int nout; | int nout; | |||
char report; | char report; | |||
char tran_forward; | char tran_forward; | |||
char tran_inverse; | char tran_inverse; | |||
} AstMapping; | } AstMapping; | |||
astPROTO_CHECK(Mapping) | astPROTO_CHECK(Mapping) | |||
astPROTO_ISA(Mapping) | astPROTO_ISA(Mapping) | |||
int astResampleLD_( AstMapping *, int, const int [], const int [], const lo | #define PROTO_GENERIC_ALL(X,Xtype) int astResample##X##_( AstMapping *, int | |||
ng double [], const long double [], int, void (*)(void), const double [], i | , const int [], const int [], const Xtype [], const Xtype [], int, void (*) | |||
nt, double, int, long double, int, const int [], const int [], const int [] | (), const double [], int, double, int, Xtype, int, const int [], const int | |||
, const int [], long double [], long double [], int * ); | [], const int [], const int [], Xtype [], Xtype [], int * ); | |||
void astRebinLD_( AstMapping *, double, int, const int [], const int [], co | PROTO_GENERIC_ALL(B,signed char) | |||
nst long double [], const long double [], int, const double [], int, double | PROTO_GENERIC_ALL(D,double) | |||
, int, long double, int, const int [], const int [], const int [], const in | PROTO_GENERIC_ALL(F,float) | |||
t [], long double [], long double [], int * ); | PROTO_GENERIC_ALL(I,int) | |||
void astRebinSeqLD_( AstMapping *, double, int, const int [], const int [], | PROTO_GENERIC_ALL(K,INT_BIG) | |||
const long double [], const long double [], int, const double [], int, dou | PROTO_GENERIC_ALL(L,long int) | |||
ble, int, long double, int, const int [], const int [], const int [], const | PROTO_GENERIC_ALL(S,short int) | |||
int [], long double [], long double [], double [], int *, int * ); | PROTO_GENERIC_ALL(UB,unsigned char) | |||
PROTO_GENERIC_ALL(UI,unsigned int) | ||||
PROTO_GENERIC_ALL(UK,UINT_BIG) | ||||
PROTO_GENERIC_ALL(UL,unsigned long int) | ||||
PROTO_GENERIC_ALL(US,unsigned short int) | ||||
PROTO_GENERIC_ALL(LD,long double) | ||||
#define PROTO_GENERIC_DFI(X,Xtype) void astRebin##X##_( AstMapping *, doubl | ||||
e, int, const int [], const int [], const Xtype [], const Xtype [], int, co | ||||
nst double [], int, double, int, Xtype, int, const int [], const int [], co | ||||
nst int [], const int [], Xtype [], Xtype [], int * ); void astRebinSeq##X# | ||||
#_( AstMapping *, double, int, const int [], const int [], const Xtype [], | ||||
const Xtype [], int, const double [], int, double, int, Xtype, int, const i | ||||
nt [], const int [], const int [], const int [], Xtype [], Xtype [], double | ||||
[], int *, int * ); | ||||
PROTO_GENERIC_DFI(D,double) | ||||
PROTO_GENERIC_DFI(F,float) | ||||
PROTO_GENERIC_DFI(I,int) | ||||
PROTO_GENERIC_DFI(LD,long double) | ||||
AstMapping *astRemoveRegions_( AstMapping *, int * ); | AstMapping *astRemoveRegions_( AstMapping *, int * ); | |||
AstMapping *astSimplify_( AstMapping *, int * ); | AstMapping *astSimplify_( AstMapping *, int * ); | |||
void astRebinD_( AstMapping *, double, int, const int [], const int [], con | ||||
st double [], const double [], int, const double [], int, double, int, doub | ||||
le, int, const int [], const int [], const int [], const int [], double [], | ||||
double [], int * ); | ||||
void astRebinF_( AstMapping *, double, int, const int [], const int [], con | ||||
st float [], const float [], int, const double [], int, double, int, float, | ||||
int, const int [], const int [], const int [], const int [], float [], flo | ||||
at [], int * ); | ||||
void astRebinI_( AstMapping *, double, int, const int [], const int [], con | ||||
st int [], const int [], int, const double [], int, double, int, int, int, | ||||
const int [], const int [], const int [], const int [], int [], int [], int | ||||
* ); | ||||
void astRebinSeqD_( AstMapping *, double, int, const int [], const int [], | ||||
const double [], const double [], int, const double [], int, double, int, d | ||||
ouble, int, const int [], const int [], const int [], const int [], double | ||||
[], double [], double [], int *, int * ); | ||||
void astRebinSeqF_( AstMapping *, double, int, const int [], const int [], | ||||
const float [], const float [], int, const double [], int, double, int, flo | ||||
at, int, const int [], const int [], const int [], const int [], float [], | ||||
float [], double [], int *, int * ); | ||||
void astRebinSeqI_( AstMapping *, double, int, const int [], const int [], | ||||
const int [], const int [], int, const double [], int, double, int, int, in | ||||
t, const int [], const int [], const int [], const int [], int [], int [], | ||||
double [], int *, int * ); | ||||
int astResampleB_( AstMapping *, int, const int [], const int [], const sig | ||||
ned char [], const signed char [], int, void (*)(void), const double [], in | ||||
t, double, int, signed char, int, const int [], const int [], const int [], | ||||
const int [], signed char [], signed char [], int * ); | ||||
int astResampleD_( AstMapping *, int, const int [], const int [], const dou | ||||
ble [], const double [], int, void (*)(void), const double [], int, double, | ||||
int, double, int, const int [], const int [], const int [], const int [], | ||||
double [], double [], int * ); | ||||
int astResampleF_( AstMapping *, int, const int [], const int [], const flo | ||||
at [], const float [], int, void (*)(void), const double [], int, double, i | ||||
nt, float, int, const int [], const int [], const int [], const int [], flo | ||||
at [], float [], int * ); | ||||
int astResampleI_( AstMapping *, int, const int [], const int [], const int | ||||
[], const int [], int, void (*)(void), const double [], int, double, int, | ||||
int, int, const int [], const int [], const int [], const int [], int [], i | ||||
nt [], int * ); | ||||
int astResampleL_( AstMapping *, int, const int [], const int [], const lon | ||||
g int [], const long int [], int, void (*)(void), const double [], int, dou | ||||
ble, int, long int, int, const int [], const int [], const int [], const in | ||||
t [], long int [], long int [], int * ); | ||||
int astResampleS_( AstMapping *, int, const int [], const int [], const sho | ||||
rt int [], const short int [], int, void (*)(void), const double [], int, d | ||||
ouble, int, short int, int, const int [], const int [], const int [], const | ||||
int [], short int [], short int [], int * ); | ||||
int astResampleUB_( AstMapping *, int, const int [], const int [], const un | ||||
signed char [], const unsigned char [], int, void (*)(void), const double [ | ||||
], int, double, int, unsigned char, int, const int [], const int [], const | ||||
int [], const int [], unsigned char [], unsigned char [], int * ); | ||||
int astResampleUI_( AstMapping *, int, const int [], const int [], const un | ||||
signed int [], const unsigned int [], int, void (*)(void), const double [], | ||||
int, double, int, unsigned int, int, const int [], const int [], const int | ||||
[], const int [], unsigned int [], unsigned int [], int * ); | ||||
int astResampleUL_( AstMapping *, int, const int [], const int [], const un | ||||
signed long int [], const unsigned long int [], int, void (*)(void), const | ||||
double [], int, double, int, unsigned long int, int, const int [], const in | ||||
t [], const int [], const int [], unsigned long int [], unsigned long int [ | ||||
], int * ); | ||||
int astResampleUS_( AstMapping *, int, const int [], const int [], const un | ||||
signed short int [], const unsigned short int [], int, void (*)(void), cons | ||||
t double [], int, double, int, unsigned short int, int, const int [], const | ||||
int [], const int [], const int [], unsigned short int [], unsigned short | ||||
int [], int * ); | ||||
void astInvert_( AstMapping *, int * ); | void astInvert_( AstMapping *, int * ); | |||
int astLinearApprox_( AstMapping *, const double *, const double *, double, double *, int * ); | int astLinearApprox_( AstMapping *, const double *, const double *, double, double *, int * ); | |||
int astQuadApprox_( AstMapping *, const double[2], const double[2], int, in t, double *, double *, int * ); | int astQuadApprox_( AstMapping *, const double[2], const double[2], int, in t, double *, double *, int * ); | |||
void astTran1_( AstMapping *, int, const double [], int, double [], int * ) ; | void astTran1_( AstMapping *, int, const double [], int, double [], int * ) ; | |||
void astTran2_( AstMapping *, int, const double [], const double [], int, d ouble [], double [], int * ); | void astTran2_( AstMapping *, int, const double [], const double [], int, d ouble [], double [], int * ); | |||
void astTranGrid_( AstMapping *, int, const int[], const int[], double, int , int, int, int, double *, int * ); | void astTranGrid_( AstMapping *, int, const int[], const int[], double, int , int, int, int, double *, int * ); | |||
void astTranN_( AstMapping *, int, int, int, const double *, int, int, int, double *, int * ); | void astTranN_( AstMapping *, int, int, int, const double *, int, int, int, double *, int * ); | |||
void astTranP_( AstMapping *, int, int, const double *[], int, int, double *[], int * ); | void astTranP_( AstMapping *, int, int, const double *[], int, int, double *[], int * ); | |||
void astDecomposeId_( AstMapping *, AstMapping **, AstMapping **, int *, in t *, int *, int * ); | void astDecomposeId_( AstMapping *, AstMapping **, AstMapping **, int *, in t *, int *, int * ); | |||
void astMapBoxId_( AstMapping *, const double [], const double [], int, int , double *, double *, double [], double [], int * ); | void astMapBoxId_( AstMapping *, const double [], const double [], int, int , double *, double *, double [], double [], int * ); | |||
double astRateId_( AstMapping *, double *, int, int, int * ); | double astRateId_( AstMapping *, double *, int, int, int * ); | |||
void astMapSplitId_( AstMapping *, int, const int *, int *, AstMapping **, int * ); | void astMapSplitId_( AstMapping *, int, const int *, int *, AstMapping **, int * ); | |||
#define astCheckMapping(this) astINVOKE_CHECK(Mapping,this,0) | #define astCheckMapping(this) astINVOKE_CHECK(Mapping,this,0) | |||
#define astVerifyMapping(this) astINVOKE_CHECK(Mapping,this,1) | #define astVerifyMapping(this) astINVOKE_CHECK(Mapping,this,1) | |||
#define astIsAMapping(this) astINVOKE_ISA(Mapping,this) | #define astIsAMapping(this) astINVOKE_ISA(Mapping,this) | |||
#define astResampleLD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleLD_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleLD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleLD_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRebinLD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,param | ||||
s,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) | ||||
astINVOKE(V,astRebinLD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in | ||||
,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out | ||||
,lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astRebinSeqLD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,pa | ||||
rams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_v | ||||
ar,weights,nused) astINVOKE(V,astRebinSeqLD_(astCheckMapping(this),wlim,ndi | ||||
m_in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_o | ||||
ut,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | ||||
#define astInvert(this) astINVOKE(V,astInvert_(astCheckMapping(this),STATUS _PTR)) | #define astInvert(this) astINVOKE(V,astInvert_(astCheckMapping(this),STATUS _PTR)) | |||
#define astLinearApprox(this,lbnd,ubnd,tol,fit) astINVOKE(V,astLinearApprox _(astCheckMapping(this),lbnd,ubnd,tol,fit,STATUS_PTR)) | #define astLinearApprox(this,lbnd,ubnd,tol,fit) astINVOKE(V,astLinearApprox _(astCheckMapping(this),lbnd,ubnd,tol,fit,STATUS_PTR)) | |||
#define astQuadApprox(this,lbnd,ubnd,nx,ny,fit,rms) astINVOKE(V,astQuadAppr ox_(astCheckMapping(this),lbnd,ubnd,nx,ny,fit,rms,STATUS_PTR)) | #define astQuadApprox(this,lbnd,ubnd,nx,ny,fit,rms) astINVOKE(V,astQuadAppr ox_(astCheckMapping(this),lbnd,ubnd,nx,ny,fit,rms,STATUS_PTR)) | |||
#define astRebinD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | #define astRebinD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRebinF(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinF_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | #define astRebinF(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinF_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRebinI(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinI_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | #define astRebinI(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) astINVOKE(V,astRebinI_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRebinSeqD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqD_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | #define astRebinSeqD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqD_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | |||
#define astRebinSeqF(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqF_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | #define astRebinSeqF(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqF_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | |||
#define astRebinSeqI(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqI_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | #define astRebinSeqI(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,par ams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_va r,weights,nused) astINVOKE(V,astRebinSeqI_(astCheckMapping(this),wlim,ndim_ in,lbnd_in,ubnd_in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out ,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | |||
#define astResampleD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleD_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleD_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleF(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleF_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleF(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleF_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUL_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleUL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUL_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUI_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleUI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUI_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleK(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, | ||||
params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out | ||||
_var) astINVOKE(V,astResampleK_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ | ||||
in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou | ||||
t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astResampleUK(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp | ||||
,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou | ||||
t_var) astINVOKE(V,astResampleUK_(astCheckMapping(this),ndim_in,lbnd_in,ubn | ||||
d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ | ||||
out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astResampleS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUS_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleUS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUS_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) astINVOKE(V,astResampleB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_ in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ou t,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUB_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | #define astResampleUB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) astINVOKE(V,astResampleUB_(astCheckMapping(this),ndim_in,lbnd_in,ubn d_in,in,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_ out,ubnd_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRemoveRegions(this) astINVOKE(O,astRemoveRegions_(astCheckMappin g(this),STATUS_PTR)) | #define astRemoveRegions(this) astINVOKE(O,astRemoveRegions_(astCheckMappin g(this),STATUS_PTR)) | |||
#define astSimplify(this) astINVOKE(O,astSimplify_(astCheckMapping(this),ST ATUS_PTR)) | #define astSimplify(this) astINVOKE(O,astSimplify_(astCheckMapping(this),ST ATUS_PTR)) | |||
#define astTran1(this,npoint,xin,forward,xout) astINVOKE(V,astTran1_(astChe ckMapping(this),npoint,xin,forward,xout,STATUS_PTR)) | #define astTran1(this,npoint,xin,forward,xout) astINVOKE(V,astTran1_(astChe ckMapping(this),npoint,xin,forward,xout,STATUS_PTR)) | |||
#define astTran2(this,npoint,xin,yin,forward,xout,yout) astINVOKE(V,astTran 2_(astCheckMapping(this),npoint,xin,yin,forward,xout,yout,STATUS_PTR)) | #define astTran2(this,npoint,xin,yin,forward,xout,yout) astINVOKE(V,astTran 2_(astCheckMapping(this),npoint,xin,yin,forward,xout,yout,STATUS_PTR)) | |||
#define astTranGrid(this,ncoord_in,lbnd,ubnd,tol,maxpix,forward,ncoord_out, outdim,out) astINVOKE(V,astTranGrid_(astCheckMapping(this),ncoord_in,lbnd,u bnd,tol,maxpix,forward,ncoord_out,outdim,out,STATUS_PTR)) | #define astTranGrid(this,ncoord_in,lbnd,ubnd,tol,maxpix,forward,ncoord_out, outdim,out) astINVOKE(V,astTranGrid_(astCheckMapping(this),ncoord_in,lbnd,u bnd,tol,maxpix,forward,ncoord_out,outdim,out,STATUS_PTR)) | |||
#define astTranN(this,npoint,ncoord_in,indim,in,forward,ncoord_out,outdim,o ut) astINVOKE(V,astTranN_(astCheckMapping(this),npoint,ncoord_in,indim,in,f orward,ncoord_out,outdim,out,STATUS_PTR)) | #define astTranN(this,npoint,ncoord_in,indim,in,forward,ncoord_out,outdim,o ut) astINVOKE(V,astTranN_(astCheckMapping(this),npoint,ncoord_in,indim,in,f orward,ncoord_out,outdim,out,STATUS_PTR)) | |||
skipping to change at line 1691 | skipping to change at line 1698 | |||
astPROTO_CHECK(SkyAxis) | astPROTO_CHECK(SkyAxis) | |||
astPROTO_ISA(SkyAxis) | astPROTO_ISA(SkyAxis) | |||
AstSkyAxis *astSkyAxisId_( const char *, ... )__attribute__((format(printf, 1,2))); | AstSkyAxis *astSkyAxisId_( const char *, ... )__attribute__((format(printf, 1,2))); | |||
#define astCheckSkyAxis(this) astINVOKE_CHECK(SkyAxis,this,0) | #define astCheckSkyAxis(this) astINVOKE_CHECK(SkyAxis,this,0) | |||
#define astVerifySkyAxis(this) astINVOKE_CHECK(SkyAxis,this,1) | #define astVerifySkyAxis(this) astINVOKE_CHECK(SkyAxis,this,1) | |||
#define astIsASkyAxis(this) astINVOKE_ISA(SkyAxis,this) | #define astIsASkyAxis(this) astINVOKE_ISA(SkyAxis,this) | |||
#define astSkyAxis astINVOKE(F,astSkyAxisId_) | #define astSkyAxis astINVOKE(F,astSkyAxisId_) | |||
double astDrange_( double ); | ||||
/* mapping. */ | /* mapping. */ | |||
/* ======== */ | /* ======== */ | |||
/* cmpmap. */ | /* cmpmap. */ | |||
/* ======= */ | /* ======= */ | |||
typedef struct AstCmpMap { | typedef struct AstCmpMap { | |||
AstMapping mapping; | AstMapping mapping; | |||
AstMapping *map1; | AstMapping *map1; | |||
AstMapping *map2; | AstMapping *map2; | |||
skipping to change at line 2255 | skipping to change at line 2263 | |||
double fillfactor; | double fillfactor; | |||
int regionfs; | int regionfs; | |||
int negated; | int negated; | |||
int closed; | int closed; | |||
int meshsize; | int meshsize; | |||
struct AstRegion *defunc; | struct AstRegion *defunc; | |||
AstPointSet *basemesh; | AstPointSet *basemesh; | |||
AstPointSet *basegrid; | AstPointSet *basegrid; | |||
int adaptive; | int adaptive; | |||
int nomap; | int nomap; | |||
struct AstRegion *negation; | ||||
} AstRegion; | } AstRegion; | |||
astPROTO_CHECK(Region) | astPROTO_CHECK(Region) | |||
astPROTO_ISA(Region) | astPROTO_ISA(Region) | |||
AstFrame *astGetRegionFrame_( AstRegion *, int * ); | AstFrame *astGetRegionFrame_( AstRegion *, int * ); | |||
int astOverlap_( AstRegion *, AstRegion *, int * ); | int astOverlap_( AstRegion *, AstRegion *, int * ); | |||
void astNegate_( AstRegion *, int * ); | void astNegate_( AstRegion *, int * ); | |||
int astMaskLD_( AstRegion *, AstMapping *, int, int, const int[], const int [], long double [], long double, int * ); | int astMaskLD_( AstRegion *, AstMapping *, int, int, const int[], const int [], long double [], long double, int * ); | |||
int astMaskB_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], signed char[], signed char, int * ); | int astMaskB_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], signed char[], signed char, int * ); | |||
int astMaskD_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], double[], double, int * ); | int astMaskD_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], double[], double, int * ); | |||
int astMaskF_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], float[], float, int * ); | int astMaskF_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], float[], float, int * ); | |||
int astMaskI_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], int[], int, int * ); | int astMaskI_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], int[], int, int * ); | |||
int astMaskL_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], long int[], long int, int * ); | int astMaskL_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], long int[], long int, int * ); | |||
int astMaskS_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], short int[], short int, int * ); | int astMaskS_( AstRegion *, AstMapping *, int, int, const int[], const int[ ], short int[], short int, int * ); | |||
int astMaskUB_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned char[], unsigned char, int * ); | int astMaskUB_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned char[], unsigned char, int * ); | |||
int astMaskUI_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned int[], unsigned int, int * ); | int astMaskUI_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned int[], unsigned int, int * ); | |||
int astMaskUL_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned long int[], unsigned long int, int * ); | int astMaskUL_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned long int[], unsigned long int, int * ); | |||
int astMaskUS_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned short int[], unsigned short int, int * ); | int astMaskUS_( AstRegion *, AstMapping *, int, int, const int[], const int [], unsigned short int[], unsigned short int, int * ); | |||
void astSetUnc_( AstRegion *, AstRegion *, int * ); | void astSetUnc_( AstRegion *, AstRegion *, int * ); | |||
AstRegion *astGetNegation_( AstRegion *, int * ); | ||||
AstRegion *astGetUnc_( AstRegion *, int, int * ); | AstRegion *astGetUnc_( AstRegion *, int, int * ); | |||
void astGetRegionBounds_( AstRegion *, double *, double *, int * ); | void astGetRegionBounds_( AstRegion *, double *, double *, int * ); | |||
void astShowMesh_( AstRegion *, int, const char *, int * ); | void astShowMesh_( AstRegion *, int, const char *, int * ); | |||
void astGetRegionMesh_( AstRegion *, int, int, int, int *, double *, int * ); | void astGetRegionMesh_( AstRegion *, int, int, int, int *, double *, int * ); | |||
void astGetRegionPoints_( AstRegion *, int, int, int *, double *, int * ); | void astGetRegionPoints_( AstRegion *, int, int, int *, double *, int * ); | |||
AstRegion *astMapRegionId_( AstRegion *, AstMapping *, AstFrame *, int * ); | AstRegion *astMapRegionId_( AstRegion *, AstMapping *, AstFrame *, int * ); | |||
#define astCheckRegion(this) astINVOKE_CHECK(Region,this,0) | #define astCheckRegion(this) astINVOKE_CHECK(Region,this,0) | |||
#define astVerifyRegion(this) astINVOKE_CHECK(Region,this,1) | #define astVerifyRegion(this) astINVOKE_CHECK(Region,this,1) | |||
#define astIsARegion(this) astINVOKE_ISA(Region,this) | #define astIsARegion(this) astINVOKE_ISA(Region,this) | |||
skipping to change at line 3006 | skipping to change at line 3016 | |||
AstRegion region; | AstRegion region; | |||
AstRegion *region1; | AstRegion *region1; | |||
AstRegion *region2; | AstRegion *region2; | |||
int oper; | int oper; | |||
double *rvals[ 2 ]; | double *rvals[ 2 ]; | |||
double *offs[ 2 ]; | double *offs[ 2 ]; | |||
int nbreak[ 2 ]; | int nbreak[ 2 ]; | |||
double d0[ 2 ]; | double d0[ 2 ]; | |||
double dtot[ 2 ]; | ||||
AstRegion *xor1; | AstRegion *xor1; | |||
AstRegion *xor2; | AstRegion *xor2; | |||
int bounded; | ||||
} AstCmpRegion; | } AstCmpRegion; | |||
astPROTO_CHECK(CmpRegion) | astPROTO_CHECK(CmpRegion) | |||
astPROTO_ISA(CmpRegion) | astPROTO_ISA(CmpRegion) | |||
AstCmpRegion *astCmpRegionId_( void *, void *, int, const char *, ... )__at tribute__((format(printf,4,5))); | AstCmpRegion *astCmpRegionId_( void *, void *, int, const char *, ... )__at tribute__((format(printf,4,5))); | |||
#define astCheckCmpRegion(this) astINVOKE_CHECK(CmpRegion,this,0) | #define astCheckCmpRegion(this) astINVOKE_CHECK(CmpRegion,this,0) | |||
#define astVerifyCmpRegion(this) astINVOKE_CHECK(CmpRegion,this,1) | #define astVerifyCmpRegion(this) astINVOKE_CHECK(CmpRegion,this,1) | |||
#define astIsACmpRegion(this) astINVOKE_ISA(CmpRegion,this) | #define astIsACmpRegion(this) astINVOKE_ISA(CmpRegion,this) | |||
End of changes. 12 change blocks. | ||||
91 lines changed or deleted | 53 lines changed or added | |||