aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/cdl/cdlProto.h
blob: 1d4caee6812a05bc9b7479f8a9ddbaee0b561a97 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
 * CDLPROTO.H  -- CDL Library internal function prototype definitions.
 */


/* IMD Interface Function definitions.  */

#ifdef __cplusplus
extern "C" {
#endif

#ifdef ANSI_FUNC

IMDPtr imd_open(char *imtdev);
int imd_displayImage(IMDPtr imd, uchar *pix, int nx, int ny, int frame, int fbconfig, int comp_wcs);
int imd_readCursor(IMDPtr imd, int sample, float *x, float *y, int *wcs, char *key);
int imd_setWCS(IMDPtr imd, char *name, char *title, float a, float b, float c, float d, float tx, float ty, float z1, float z2, int zt);
int imd_getWCS(IMDPtr imd, int wcs, char *name, char *title, float *a, float *b, float *c, float *d, float *tx, float *ty, float *z1, float *z2, int *zt);
int imd_close(IMDPtr imd);
int imd_writeImage(IMDPtr imd, uchar *pix, int nx, int ny, int llx, int lly);
int imd_readImage(IMDPtr imd, uchar *pix, int *nx, int *ny);
int imd_readFrameBuffer(IMDPtr imd, uchar *pix, int *nx, int *ny);
int imd_setFrame(IMDPtr imd, int frame);
int imd_setFBConfig(IMDPtr imd, int configno);
int imd_getFBConfig(IMDPtr imd, int *configno, int *width, int *height, int *nframes);
int imd_setName(IMDPtr imd, char *name);
int imd_setTitle(IMDPtr imd, char *title);
int imd_setCursor(IMDPtr imd, int x, int y, int wcs);
int imd_clearFrame(IMDPtr imd);
int imd_readSubRaster(IMDPtr imd, int llx, int lly, int nx, int ny, uchar *pix);
int imd_writeSubRaster(IMDPtr imd, int llx, int lly, int nx, int ny, uchar *pix);
int imd_setDebug(int state);

#else
                     
IMDPtr  imd_open();
int     imd_setFBConfig(), imd_writeDisplay(), imd_readDisplay();
int	imd_setFrame(), imd_setCursor(), imd_readCursor();
int     imd_close(), imd_readSubRaster(), imd_writeSubRaster();
int     imd_clearFrame(), imd_setWCS(), imd_getWCS();

#endif

#ifdef __cplusplus
}
#endif



/* COMM Interface Function definitions.  */

#ifdef ANSI_FUNC

int com_writeData(int fd, short x, short y, uchar *pix, int nbytes);
int com_readData(int fdin, int fdout, short x, short y, uchar *pix, int *npix);
int com_writeSubraster(int fd, short x, short y, uchar *pix, int nx, int ny);
int com_readSubraster(int fdin, int fdout, short x, short y, uchar *pix, int *nx, int *ny);
int com_readCursor(int fdin, int fdout, int sample, float *x, float *y, int *wcs, char *key);
int com_setCursor(int fd, int x, int y, int wcs);
int com_setFBConfig(int fd, int configno);
int com_setFrame(int fd, int frame_num);
int com_writeWCS(int fd, char *buffer, int nbytes, int version);
int com_readWCS(int fdin, int fdout, char *buffer, int *nbytes, int wcs,int version);
int com_eraseFrame(int fd);
int com_wcsVersion(int fdin, int fdout);

int com_setDebug(int state);

#else

int	com_writeData(), com_readData(), com_setFBConfig();
int	com_readCursor(), com_setCursor(), com_setFrame();
int	com_writeWCS(), com_readWCS(), com_eraseFrame();
int 	com_setDebug(), com_wcsVersion();
int	com_writeSubraster(), com_readSubraster();

#endif



/* EPS Interface Function definitions.  */

#ifdef ANSI_FUNC

PSImage *eps_init(void);
void eps_print(PSImage *psim, FILE *fp, uchar *data, int xdim, int ydim, int depth, int pad);
void eps_close(PSImage *psim);
void eps_setPage(PSImage *psim, int orientation, int paper_size, int scale, int flags);
void eps_setCmap(PSImage *psim, uchar *r, uchar *g, uchar *b, int ncolors);
void eps_setCompress(PSImage *psim, int compress);
void eps_setColorType(PSImage *psim, int color_class);
void eps_setLabel(register PSImage *psim, char *label);
void eps_setTransform(PSImage *psim, float z1, float z2, int ztype, float offset, float scale, char *cmap_name);
void eps_setCorners(PSImage *psim, int llx, int lly, int urx, int ury);
void eps_getImageSize(PSImagePtr psim, int xdim, int ydim, float *width, float *height);
void eps_getImagePos(PSImagePtr psim, int xdim, int ydim, int *llx, int *lly);

#else

PSImage *eps_init();
void 	eps_print(), eps_close(), eps_setPage(), eps_setCmap();
void 	eps_setCompress(), eps_setColorType(), eps_setLabel();
void	eps_setTransform(), eps_setCorners(), eps_getImageSize();
void	eps_getImagePos();

#endif