#ifndef _elctrcam_h #define _elctrcam_h #ifdef __cplusplus extern "C" { #endif #define WIDTH 160 #define HEIGHT 120 #define GENSIZE WIDTH * HEIGHT extern long count; extern unsigned char * v_imagebuf; extern unsigned char * v_firstbuf; extern unsigned char * v_savebuf; typedef struct koors { int x; int y; } koors; typedef struct comparevalues { koors k[102]; int valid; int ycheckpixelrange; int xcheckpixelrange; int nrkoorcorrect; unsigned char *fbuf; int left; int right; int up; int down; int prev_left; int prev_right; int prev_up; int prev_down; int changed; koors spot[6]; /*[0] = center, [1] = left, [2] = right, [3] = top,[4] = bottom*/ }comparevalues; typedef struct filtervalues { unsigned char mincol; unsigned char maxcol; koors min; koors max; int nr_dark; int nr_bright; }filtervalues; typedef struct configvalues { char devicefile[84]; int snap; /*0,1*/ char snapdir[130]; char snapprefix[84]; long maxsnap; /*0 ...*/ int snapquality; /*1-100*/ int snapsize; /*0-4*/ int savebuf; /*0,1*/ int coltolerance; /*0 - 255*/ long calcstart; /*1-255*/ int seeing; /*0-19*/ int showcross; /*0,1*/ int view; /*0,1*/ int control; /*0,1*/ int guide; /*0,1*/ int test; /*0,1*/ int elctr; } configvalues; extern filtervalues fv1, fv2; extern comparevalues cv1,cv2; extern configvalues cfg; extern long cursnapcount; extern int correctactive; extern int correctresult; extern int guideinit; extern void endall( void ); extern int threaded_grab_busy; extern void threaded_grabbing(char * data); #ifdef __cplusplus } #endif #endif /*_elctrcam_h*/