13#error This is a C++ include file and cannot be used from plain C
19#define ngcdcsMAX_SUBFRM 32
87 void Apply(
void *buffer,
int nx,
int ny,
int bitPix) {
92 int bytes = abs(bitPix) / 8;
93 char *pIn = (
char *)buffer;
94 char *pOut = (
char *)buffer;
106 memcpy(pOut, pIn, bytes);
139 int Mask_(
int x,
int y,
int n) {
144 if ((x >=
win[i].x1) && (x <=
win[i].x2) &&
145 (y >=
win[i].y1) && (y <=
win[i].y2))
void Clear()
Clear.
Definition ngcdcsSUBFRM.hpp:67
void Validate()
Validate.
Definition ngcdcsSUBFRM.hpp:74
ngcdcs_subwin_t win[ngcdcsMAX_SUBFRM]
Window array.
Definition ngcdcsSUBFRM.hpp:52
int NumFrm()
Return number of valid sub-frames.
Definition ngcdcsSUBFRM.hpp:80
void Apply(void *buffer, int nx, int ny, int bitPix)
Apply sub-frames to buffer (glue image)
Definition ngcdcsSUBFRM.hpp:87
int dimY
Y-dimension (glued image)
Definition ngcdcsSUBFRM.hpp:58
ngcdcsSUBFRM()
Constructor.
Definition ngcdcsSUBFRM.hpp:61
int dimX
X-dimension (glued image)
Definition ngcdcsSUBFRM.hpp:55
virtual ~ngcdcsSUBFRM()
Destructor.
Definition ngcdcsSUBFRM.hpp:64
#define ngcdcsMAX_SUBFRM
Definition ngcdcsSUBFRM.hpp:19
Definition ngcdcsSUBFRM.hpp:24
int y2
Definition ngcdcsSUBFRM.hpp:30
int y1
Definition ngcdcsSUBFRM.hpp:26
int x1
Definition ngcdcsSUBFRM.hpp:25
int ny
Definition ngcdcsSUBFRM.hpp:28
ngcdcs_subwin_t()
Constructor.
Definition ngcdcsSUBFRM.hpp:33
void Validate()
Validate coordinates.
Definition ngcdcsSUBFRM.hpp:42
void Clear()
Clear.
Definition ngcdcsSUBFRM.hpp:39
int Valid()
Window valid.
Definition ngcdcsSUBFRM.hpp:36
int nx
Definition ngcdcsSUBFRM.hpp:27
int x2
Definition ngcdcsSUBFRM.hpp:29