#ifndef _elcam_h #define _elcam_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 calcvalues { 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*/ }calcvalues; typedef struct filtervalues { unsigned char mincol; unsigned char maxcol; koors min; koors max; int nr_dark; int nr_bright; }filtervalues; extern filtervalues fv; extern calcvalues cv; extern long cursnapcount; extern int correctactive; extern int correctresult; extern void endall( void ); extern int threaded_work_busy; extern int threaded_grab_busy; extern void threaded_grabbing(char * data); #ifdef __cplusplus } #endif #endif /*_elcam_h*/