00001 #ifndef __xvmrt_h
00002 #define __xvmrt_h
00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 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