video_v4l.h

Go to the documentation of this file.
00001 
00006 /*
00007  * Copyright (C) 2006  Lab. Visgraf/IMPA and AnimaMundi
00008  * 
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU General Public License
00011  * as published by the Free Software Foundation; either version 2
00012  * of the License, or (at your option) any later version.
00013  * 
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
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 #ifdef __cplusplus
00070 }
00071 #endif  
00072         */
00073 #endif

Generated on Tue Jan 22 17:07:30 2008 for MUAN by  doxygen 1.4.7