00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _VIDEO_V4L_H
00027 #define _VIDEO_V4L_H
00028
00029
00030 #include <iostream>
00031 using std::cout;
00032 using std::endl;
00033
00034 #include <math.h>
00035 #include <limits.h>
00036 #include <sys/ioctl.h>
00037 #include <sys/mman.h>
00038 #include <linux/videodev.h>
00039 #include <fcntl.h>
00040 #include <errno.h>
00041
00042 #include "v4l.h"
00043 #include "error.h"
00044 #include "frame.h"
00045
00046
00047
00048
00049
00050
00051
00052
00053 extern "C" {
00054 #include "image.h"
00055 }
00056
00057 Image *_video_open( char* _deviceName, int _channelNumber, int _videoMode );
00058 void _video_close( void );
00059 Boolean _video_getimage( Image *i);
00060 Boolean _video_getframe( Frame *f );
00061 int _video_gettype( void );
00062
00063 void _video_stopReceive();
00064 void _video_startReceive();
00065 void _video_stopThread();
00066 void _video_startThread();
00067
00068
00069
00070
00071
00072
00073 #endif