Defines | Functions | Variables
v4l2uvc.c File Reference
#include <stdlib.h>
#include <errno.h>
#include "v4l2uvc.h"
#include "huffman.h"
#include "dynctrl.h"
Include dependency graph for v4l2uvc.c:

Go to the source code of this file.

Defines

#define HEADERFRAME1   0xaf

Functions

int close_v4l2 (struct vdIn *vd)
void control_readed (struct vdIn *vd, struct v4l2_queryctrl *ctrl, globals *pglobal, int id)
void enumerateControls (struct vdIn *vd, globals *pglobal, int id)
static int init_v4l2 (struct vdIn *vd)
int init_videoIn (struct vdIn *vd, char *device, int width, int height, int fps, int format, int grabmethod, globals *pglobal, int id, v4l2_std_id vstd)
int is_huffman (unsigned char *buf)
static int isv4l2Control (struct vdIn *vd, int control, struct v4l2_queryctrl *queryctrl)
int memcpy_picture (unsigned char *out, unsigned char *buf, int size)
int setResolution (struct vdIn *vd, int width, int height)
int uvcGrab (struct vdIn *vd)
int v4l2GetControl (struct vdIn *vd, int control)
int v4l2ResetControl (struct vdIn *vd, int control)
int v4l2SetControl (struct vdIn *vd, int control_id, int value, int plugin_number, globals *pglobal)
static int video_disable (struct vdIn *vd, streaming_state disabledState)
static int video_enable (struct vdIn *vd)
int xioctl (int fd, int IOCTL_X, void *arg)

Variables

static int debug = 0

Define Documentation

#define HEADERFRAME1   0xaf

Function Documentation

int close_v4l2 ( struct vdIn vd)

Definition at line 565 of file v4l2uvc.c.

void control_readed ( struct vdIn vd,
struct v4l2_queryctrl *  ctrl,
globals pglobal,
int  id 
)

Definition at line 729 of file v4l2uvc.c.

void enumerateControls ( struct vdIn vd,
globals pglobal,
int  id 
)

Definition at line 883 of file v4l2uvc.c.

static int init_v4l2 ( struct vdIn vd) [static]

Definition at line 215 of file v4l2uvc.c.

int init_videoIn ( struct vdIn vd,
char *  device,
int  width,
int  height,
int  fps,
int  format,
int  grabmethod,
globals pglobal,
int  id,
v4l2_std_id  vstd 
)

Definition at line 57 of file v4l2uvc.c.

int is_huffman ( unsigned char *  buf)

Definition at line 455 of file v4l2uvc.c.

static int isv4l2Control ( struct vdIn vd,
int  control,
struct v4l2_queryctrl *  queryctrl 
) [static]

Definition at line 585 of file v4l2uvc.c.

int memcpy_picture ( unsigned char *  out,
unsigned char *  buf,
int  size 
)

Definition at line 475 of file v4l2uvc.c.

int setResolution ( struct vdIn vd,
int  width,
int  height 
)

Definition at line 843 of file v4l2uvc.c.

int uvcGrab ( struct vdIn vd)

Definition at line 498 of file v4l2uvc.c.

int v4l2GetControl ( struct vdIn vd,
int  control 
)

Definition at line 612 of file v4l2uvc.c.

int v4l2ResetControl ( struct vdIn vd,
int  control 
)

Definition at line 708 of file v4l2uvc.c.

int v4l2SetControl ( struct vdIn vd,
int  control_id,
int  value,
int  plugin_number,
globals pglobal 
)

Definition at line 630 of file v4l2uvc.c.

static int video_disable ( struct vdIn vd,
streaming_state  disabledState 
) [static]

Definition at line 435 of file v4l2uvc.c.

static int video_enable ( struct vdIn vd) [static]

Definition at line 421 of file v4l2uvc.c.

int xioctl ( int  fd,
int  IOCTL_X,
void *  arg 
)

Definition at line 41 of file v4l2uvc.c.


Variable Documentation

int debug = 0 [static]

Definition at line 32 of file v4l2uvc.c.



corobot_pantilt
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:02