00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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