Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
gspca.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  framerates
 
struct  gspca_ctrl
 
struct  cam
 
struct  ctrl
 
struct  sd_desc
 
struct  gspca_frame
 
struct  gspca_dev
 

Macros

#define PDEBUG(level, fmt,...)
 
#define GSPCA_MAX_FRAMES   16 /* maximum number of video frame buffers */
 
#define MAX_NURBS   4 /* max number of URBs */
 
#define USB_BUF_SZ   64
 

Typedefs

typedef int(* cam_op )(struct gspca_dev *)
 
typedef void(* cam_v_op )(struct gspca_dev *)
 
typedef int(* cam_cf_op )(struct gspca_dev *, const struct usb_device_id *)
 
typedef int(* cam_get_jpg_op )(struct gspca_dev *, struct v4l2_jpegcompression *)
 
typedef int(* cam_set_jpg_op )(struct gspca_dev *, const struct v4l2_jpegcompression *)
 
typedef int(* cam_reg_op )(struct gspca_dev *, struct v4l2_dbg_register *)
 
typedef int(* cam_ident_op )(struct gspca_dev *, struct v4l2_dbg_chip_ident *)
 
typedef void(* cam_streamparm_op )(struct gspca_dev *, struct v4l2_streamparm *)
 
typedef int(* cam_qmnu_op )(struct gspca_dev *, struct v4l2_querymenu *)
 
typedef void(* cam_pkt_op )(struct gspca_dev *gspca_dev, u8 *data, int len)
 
typedef int(* cam_int_pkt_op )(struct gspca_dev *gspca_dev, u8 *data, int len)
 

Enumerations

enum  gspca_packet_type { DISCARD_PACKET, FIRST_PACKET, INTER_PACKET, LAST_PACKET }
 

Functions

int gspca_dev_probe (struct usb_interface *intf, const struct usb_device_id *id, const struct sd_desc *sd_desc, int dev_size, struct module *module)
 
int gspca_dev_probe2 (struct usb_interface *intf, const struct usb_device_id *id, const struct sd_desc *sd_desc, int dev_size, struct module *module)
 
void gspca_disconnect (struct usb_interface *intf)
 
void gspca_frame_add (struct gspca_dev *gspca_dev, enum gspca_packet_type packet_type, const u8 *data, int len)
 
int gspca_expo_autogain (struct gspca_dev *gspca_dev, int avg_lum, int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee)
 
int gspca_coarse_grained_expo_autogain (struct gspca_dev *gspca_dev, int avg_lum, int desired_avg_lum, int deadzone)
 

Macro Definition Documentation

#define GSPCA_MAX_FRAMES   16 /* maximum number of video frame buffers */

Definition at line 38 of file gspca.h.

#define MAX_NURBS   4 /* max number of URBs */

Definition at line 40 of file gspca.h.

#define PDEBUG (   level,
  fmt,
  ... 
)

Definition at line 35 of file gspca.h.

#define USB_BUF_SZ   64

Definition at line 190 of file gspca.h.

Typedef Documentation

typedef int(* cam_cf_op)(struct gspca_dev *, const struct usb_device_id *)

Definition at line 85 of file gspca.h.

typedef int(* cam_get_jpg_op)(struct gspca_dev *, struct v4l2_jpegcompression *)

Definition at line 86 of file gspca.h.

typedef int(* cam_ident_op)(struct gspca_dev *, struct v4l2_dbg_chip_ident *)

Definition at line 92 of file gspca.h.

typedef int(* cam_int_pkt_op)(struct gspca_dev *gspca_dev, u8 *data, int len)

Definition at line 101 of file gspca.h.

typedef int(* cam_op)(struct gspca_dev *)

Definition at line 83 of file gspca.h.

typedef void(* cam_pkt_op)(struct gspca_dev *gspca_dev, u8 *data, int len)

Definition at line 98 of file gspca.h.

typedef int(* cam_qmnu_op)(struct gspca_dev *, struct v4l2_querymenu *)

Definition at line 96 of file gspca.h.

typedef int(* cam_reg_op)(struct gspca_dev *, struct v4l2_dbg_register *)

Definition at line 90 of file gspca.h.

typedef int(* cam_set_jpg_op)(struct gspca_dev *, const struct v4l2_jpegcompression *)

Definition at line 88 of file gspca.h.

typedef void(* cam_streamparm_op)(struct gspca_dev *, struct v4l2_streamparm *)

Definition at line 94 of file gspca.h.

typedef void(* cam_v_op)(struct gspca_dev *)

Definition at line 84 of file gspca.h.

Enumeration Type Documentation

Enumerator:
DISCARD_PACKET 
FIRST_PACKET 
INTER_PACKET 
LAST_PACKET 

Definition at line 150 of file gspca.h.

Function Documentation

int gspca_coarse_grained_expo_autogain ( struct gspca_dev gspca_dev,
int  avg_lum,
int  desired_avg_lum,
int  deadzone 
)

Definition at line 109 of file autogain_functions.c.

int gspca_dev_probe ( struct usb_interface intf,
const struct usb_device_id id,
const struct sd_desc sd_desc,
int  dev_size,
struct module module 
)

Definition at line 2319 of file gspca.c.

int gspca_dev_probe2 ( struct usb_interface intf,
const struct usb_device_id id,
const struct sd_desc sd_desc,
int  dev_size,
struct module module 
)

Definition at line 2183 of file gspca.c.

void gspca_disconnect ( struct usb_interface intf)

Definition at line 2349 of file gspca.c.

int gspca_expo_autogain ( struct gspca_dev gspca_dev,
int  avg_lum,
int  desired_avg_lum,
int  deadzone,
int  gain_knee,
int  exposure_knee 
)

Definition at line 27 of file autogain_functions.c.

void gspca_frame_add ( struct gspca_dev gspca_dev,
enum gspca_packet_type  packet_type,
const u8 data,
int  len 
)

Definition at line 421 of file gspca.c.