00001 00007 /* 00008 * Copyright (C) 2006 Lab. Visgraf/IMPA and AnimaMundi 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU General Public License 00012 * as published by the Free Software Foundation; either version 2 00013 * of the License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00023 * 00024 */ 00025 00026 00027 00028 00029 #ifndef VIDEO_H 00030 #define VIDEO_H 00031 00032 #define GRABBED_VIDEO 0 00033 #define STORED_VIDEO 1 00034 #define SYNTHETIC_VIDEO 2 00035 00036 #define CAMERA_FIREWIRE 0 00037 #define CAMERA_V4L 1 00038 00039 00040 #include "video_v4l.h" 00041 #include "video_dv.h" 00042 00043 #include "image.h" 00044 00045 00046 // Methods. 00047 void video_setcameratype( int type ); 00048 void video_setDeviceName( void ); 00049 void video_setfirewire( char* _deviceName ); 00050 void video_setv4l( char* _deviceName, int _channelNumber, int _videoMode ); 00051 00052 00053 Image *video_open( void ); 00054 void video_close( void ); 00055 Boolean video_getimage( Image *i); 00056 Boolean video_getframe( Frame *f ); 00057 int video_gettype( void ); 00058 00059 void video_stopReceive(); 00060 void video_startReceive(); 00061 void video_stopThread(); 00062 void video_startThread(); 00063 00064 00065 #endif
1.4.7