diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-05 12:53:09 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-05 12:53:09 -0500 |
commit | 832b4b34ff8ce84a13751883c0822c16c152fe48 (patch) | |
tree | edb4d7050c37ade55bc543de80e76e58c4486908 /src/include/fusebuf.h | |
parent | 8f848043369b49e861942ce132181fed2c53c2d3 (diff) | |
download | calfuse-832b4b34ff8ce84a13751883c0822c16c152fe48.tar.gz |
Massive rework
Diffstat (limited to 'src/include/fusebuf.h')
-rw-r--r-- | src/include/fusebuf.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/include/fusebuf.h b/src/include/fusebuf.h new file mode 100644 index 0000000..954a979 --- /dev/null +++ b/src/include/fusebuf.h @@ -0,0 +1,34 @@ +/******************************************************************************* + * Johns Hopkins University + * Center For Astrophysical Sciences + * FUSE + ******************************************************************************* + * + * Synopsis: #include "fusebuf.h" + * + * Description: Structure definitions and routine prototyping for multi-line + * file buffering as handled by fusebuf.c. + * + * History: 08/17/98 gak Begin work + * 08/18/98 gak Tested and working + * (as called by cf_make_ff) + * + ******************************************************************************/ + +typedef struct { + fitsfile *fits; /* Pointer to open FITS structure. */ + int hdu; /* HDU containing image to buffer. */ + int nx, ny; /* X and Y dimensions of the image. */ + float **buf, /* Array of pointers to buffered lines. */ + **y; /* Pointers to buffered lines in y order. */ + int nl, /* Number of lines buffered. */ + yfirst, ylast, /* Row numbers of buffered lines */ + znext; /* Ordinal of next line ptr to use. */ +} imgbuf; + +int cf_openextn(fitsfile *, int, imgbuf *, int, int *); + +int cf_closeextn(imgbuf *, int *); + +float getpixf(imgbuf *, int, int); + |