Classes | Defines | Typedefs | Enumerations | Functions | Variables
v4l2uvc.h File Reference
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include "mjpg_streamer.h"
Include dependency graph for v4l2uvc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  context
struct  vdIn

Defines

#define CLOSE_VIDEO(fd)   close(fd)
#define IOCTL_RETRY   4
#define IOCTL_VIDEO(fd, req, value)   ioctl(fd, req, value)
#define NB_BUFFER   4
#define OPEN_VIDEO(fd, flags)   open(fd, flags)

Typedefs

typedef enum _streaming_state streaming_state

Enumerations

enum  _streaming_state { STREAMING_OFF = 0, STREAMING_ON = 1, STREAMING_PAUSED = 2 }

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)
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 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 v4l2DownControl (struct vdIn *vd, int control)
int v4l2GetControl (struct vdIn *vd, int control)
int v4l2ResetControl (struct vdIn *vd, int control)
int v4l2SetControl (struct vdIn *vd, int control, int value, int plugin_number, globals *pglobal)
int v4l2ToggleControl (struct vdIn *vd, int control)
int v4l2UpControl (struct vdIn *vd, int control)
int xioctl (int fd, int IOCTL_X, void *arg)

Variables

context cams [MAX_INPUT_PLUGINS]

Define Documentation

#define CLOSE_VIDEO (   fd)    close(fd)

Definition at line 65 of file v4l2uvc.h.

#define IOCTL_RETRY   4

Definition at line 46 of file v4l2uvc.h.

#define IOCTL_VIDEO (   fd,
  req,
  value 
)    ioctl(fd, req, value)

Definition at line 63 of file v4l2uvc.h.

#define NB_BUFFER   4

Definition at line 43 of file v4l2uvc.h.

#define OPEN_VIDEO (   fd,
  flags 
)    open(fd, flags)

Definition at line 64 of file v4l2uvc.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
STREAMING_OFF 
STREAMING_ON 
STREAMING_PAUSED 

Definition at line 69 of file v4l2uvc.h.


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.

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 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 v4l2DownControl ( struct vdIn vd,
int  control 
)
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,
int  value,
int  plugin_number,
globals pglobal 
)

Definition at line 630 of file v4l2uvc.c.

int v4l2ToggleControl ( struct vdIn vd,
int  control 
)
int v4l2UpControl ( struct vdIn vd,
int  control 
)
int xioctl ( int  fd,
int  IOCTL_X,
void *  arg 
)

Definition at line 41 of file v4l2uvc.c.


Variable Documentation

Definition at line 125 of file v4l2uvc.h.



corobot_pantilt
Author(s):
autogenerated on Sun Oct 5 2014 23:18:21