#include <stdlib.h>
#include <errno.h>
#include "v4l2uvc.h"
#include "huffman.h"
#include "dynctrl.h"
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 HEADERFRAME1 0xaf |
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 | ||
) |
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 | ||
) | [static] |
int memcpy_picture | ( | unsigned char * | out, |
unsigned char * | buf, | ||
int | size | ||
) |
int setResolution | ( | struct vdIn * | vd, |
int | width, | ||
int | height | ||
) |
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] |
static int video_enable | ( | struct vdIn * | vd | ) | [static] |