blob: 954a9794e791ff8dfa8489a57750b7d9beef0140 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
|