Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

/home/slang/XVision2/src/Devices/Videre.h

00001 #ifndef __xvvidere_h
00002 #define __xvvidere_h
00003 /*                                                      -*-c++-*-
00004     Copyright (C) 2000 Gregory D. Hager and Darius Burschka (JHU
00005     Lab for Computational Interaction with Physical Systems (CIPS))
00006 
00007 Permission is granted to any individual or institution to use, copy,
00008 modify, and distribute this software, provided that this complete
00009 copyright and permission notice is maintained, intact, in all copies and
00010 supporting documentation.  Authors of papers that describe software
00011 systems using this software package are asked to acknowledge such use by
00012 a brief statement in the paper.
00013 
00014 We provide this software "as is" without express or implied warranty.
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

Generated at Thu Mar 29 22:37:28 2001 for XVision by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000