00001 #ifndef __xvvidere_h
00002 #define __xvvidere_h
00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016
00017
00018 #include <sys/types.h>
00019 #include "svs.h"
00020 #include "Video.h"
00021 #include "XVImageScalar.h"
00022 #include "XVImageRGB.h"
00023
00024 #define DIG_DEF_NUMFRAMES 4
00025 #define DIG_DEF_INPUT 0
00026 #define DC_DEVICE_NAME "head.ini"
00027
00028 #define XVVID_RIGHT 0
00029 #define XVVID_LEFT 1
00030
00031 template <class T>
00032 class XV_Videre:public Video<T>
00033 {
00034 protected:
00035 XVImageScalar<u_char> *scalar_image[2];
00036 svsSP sp;
00037 public:
00038 XV_Videre(const char *dev_name=DC_DEVICE_NAME,
00039 const char *parm_string=NULL);
00040 ~XV_Videre();
00041 XVImageScalar<u_char>
00042 **get_stereo(void) {return scalar_image;};
00043 XVSize size(void) {return XVSize(sp.width,sp.height);};
00044 int is_color(void) { return sp.color;};
00045 int open(const char *dev_name=DC_DEVICE_NAME);
00046 void close(void);
00047 int initiate_acquire(int frame);
00048 int wait_for_completion(int frame);
00049 int set_params(char *param_string=NULL) {return 1;};
00050 };
00051
00052 #include "Videre.icc"
00053 #endif