29 #include <sys/ioctl.h> 31 #include <sys/select.h> 32 #include <linux/videodev2.h> 48 struct v4l2_capability
cap;
49 struct v4l2_format
fmt;
50 struct v4l2_buffer
buf;
51 struct v4l2_requestbuffers
rb;
82 int format,
int grabmethod,
char *avifilename);
103 int enum_frame_formats(
int dev,
unsigned int *supported_formats,
unsigned int max_formats);
int v4l2DownControl(struct vdIn *vd, int control)
int v4l2ResetPan(struct vdIn *vd)
int v4l2GetControl(struct vdIn *vd, int control)
int v4l2ResetTilt(struct vdIn *vd)
int v4L2UpDownPan(struct vdIn *vd, short inc)
int v4l2ToggleControl(struct vdIn *vd, int control)
unsigned char * tmpbuffer
int check_videoIn(struct vdIn *vd, char *device)
int close_v4l2(struct vdIn *vd)
int v4l2ResetControl(struct vdIn *vd, int control)
unsigned int rfsFramesWritten
int v4L2UpDownTilt(struct vdIn *vd, short inc)
int enum_controls(int vd)
struct v4l2_requestbuffers rb
int v4l2UpControl(struct vdIn *vd, int control)
unsigned int rfsBytesWritten
int uvcGrab(struct vdIn *vd)
int v4L2UpDownPanTilt(struct vdIn *vd, short inc_p, short inc_t)
int enum_frame_sizes(int dev, __u32 pixfmt)
int enum_frame_formats(int dev, unsigned int *supported_formats, unsigned int max_formats)
int enum_frame_intervals(int dev, __u32 pixfmt, __u32 width, __u32 height)
unsigned int bytesWritten
int v4l2SetLightFrequencyFilter(struct vdIn *vd, int flt)
int load_controls(int vd, const char *filename)
unsigned char * framebuffer
int save_controls(int vd, const char *filename)
int init_videoIn(struct vdIn *vd, char *device, int width, int height, float fps, int format, int grabmethod, char *avifilename)
struct v4l2_capability cap
unsigned int framesWritten
int v4l2SetControl(struct vdIn *vd, int control, int value)
int v4l2ResetPanTilt(struct vdIn *vd)