v4l2.h
00001 /* 00002 * Player - One Hell of a Robot Server 00003 * Copyright (C) 2000 Brian Gerkey et al. 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 */ 00020 00021 #ifndef _V4L2_H 00022 #define _V4L2_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 extern void * open_fg(const char * dev, const char * pixformat, int width, int height, int imgdepth, int buffers); 00029 extern void close_fg(void * fg); 00030 extern int set_channel(void * fg, int channel, const char * mode); 00031 extern int start_grab (void * fg); 00032 extern void stop_grab (void * fg); 00033 extern unsigned char * get_image(void * fg); 00034 extern int fg_width(void * fg); 00035 extern int fg_height(void * fg); 00036 extern int fg_grabdepth(void * fg); 00037 extern int fg_imgdepth(void * fg); 00038 00039 #ifdef __cplusplus 00040 } 00041 #endif 00042 00043 #endif