12#error This is a C++ include file and cannot be used from plain C
18#define ngcdcsMAX_SUBFRM 32
86 void Apply(
void *buffer,
int nx,
int ny,
int bitPix) {
91 int bytes = abs(bitPix) / 8;
92 char *pIn = (
char *)buffer;
93 char *pOut = (
char *)buffer;
105 memcpy(pOut, pIn, bytes);
138 int Mask_(
int x,
int y,
int n) {
143 if ((x >=
win[i].x1) && (x <=
win[i].x2) &&
144 (y >=
win[i].y1) && (y <=
win[i].y2))
void Clear()
Clear.
Definition ngcdcsSUBFRM.hpp:66
void Validate()
Validate.
Definition ngcdcsSUBFRM.hpp:73
ngcdcs_subwin_t win[ngcdcsMAX_SUBFRM]
Window array.
Definition ngcdcsSUBFRM.hpp:51
int NumFrm()
Return number of valid sub-frames.
Definition ngcdcsSUBFRM.hpp:79
void Apply(void *buffer, int nx, int ny, int bitPix)
Apply sub-frames to buffer (glue image)
Definition ngcdcsSUBFRM.hpp:86
int dimY
Y-dimension (glued image)
Definition ngcdcsSUBFRM.hpp:57
ngcdcsSUBFRM()
Constructor.
Definition ngcdcsSUBFRM.hpp:60
int dimX
X-dimension (glued image)
Definition ngcdcsSUBFRM.hpp:54
virtual ~ngcdcsSUBFRM()
Destructor.
Definition ngcdcsSUBFRM.hpp:63
#define ngcdcsMAX_SUBFRM
Definition ngcdcsSUBFRM.hpp:18
Definition ngcdcsSUBFRM.hpp:23
int y2
Definition ngcdcsSUBFRM.hpp:29
int y1
Definition ngcdcsSUBFRM.hpp:25
int x1
Definition ngcdcsSUBFRM.hpp:24
int ny
Definition ngcdcsSUBFRM.hpp:27
ngcdcs_subwin_t()
Constructor.
Definition ngcdcsSUBFRM.hpp:32
void Validate()
Validate coordinates.
Definition ngcdcsSUBFRM.hpp:41
void Clear()
Clear.
Definition ngcdcsSUBFRM.hpp:38
int Valid()
Window valid.
Definition ngcdcsSUBFRM.hpp:35
int nx
Definition ngcdcsSUBFRM.hpp:26
int x2
Definition ngcdcsSUBFRM.hpp:28