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

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

00001 #ifndef __xvmrt_h
00002 #define __xvmrt_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 #include "bt819.h"
00018 #include "mrt_cs.h"
00019 #include "Video.h"
00020 
00021 #define MRT_DEVICE_NAME  "/dev/mrt0"
00022 #define MRT_MAX_GBUFFERS 5
00023 
00024 enum{MRT_Composite1=0,MRT_SVIDEO=BT_COMP};
00025 
00026 template <class PIXTYPE>
00027 class Mrt:public Video<PIXTYPE>
00028 {
00029    int         fd;
00030    int         grab_format;
00031    int         next_frame;
00032    PIXTYPE       *mm_buf[MRT_MAX_GBUFFERS];
00033    PIXTYPE       *field;
00034    void        grab_init(void);
00035    int         set_input(int norm,int channel);
00036   public:
00037           Mrt(const char *dev_name,XVSize size);
00038           ~Mrt();
00039    int         open(const char *dev_name);
00040    void        close(void);
00041    int         set_params(char *paramstring);
00042    int         grab_queue(int frame);
00043    int         grab_wait(int frame);
00044 };
00045 
00046 #endif

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