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 V4L_H
00027 #define V4L_H
00028 
00029 #include <sys/types.h>
00030 #include <sys/stat.h>
00031 #include <sys/ioctl.h>
00032 #include <sys/mman.h>
00033 #include <linux/videodev.h>
00034 #include <fcntl.h>
00035 #include <unistd.h>
00036 #include <stdio.h>
00037 #include <errno.h>
00038 #include <stdlib.h>
00039 #include <string.h>
00040 
00041 void BGRtoRGB (unsigned char* img);
00042 unsigned char* BGR640toRGB720 (unsigned char* img);
00043 unsigned char* NextFrame(void);
00044 int setChannel_Mode(int channel, int mode);
00045 int initialize(char* deviceName, int channelNumber, int videoMode); // /dev/video0 , 0: TV  1:Composite1  2:S-Video  3:Composite3
00046 void finalize (void);
00047 
00048 #endif

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