Functions | |
int | init_v4l (struct vdIn *vd) |
int | grab (struct vdIn *vd) |
int | close_v4l (struct vdIn *vd) |
int | setPalette (struct vdIn *vd) |
int | changeSize (struct vdIn *vd) |
__u8 | getBrightness (struct vdIn *vd) |
void | setBrightness (struct vdIn *vd, __u8 bright) |
__u8 | getContrast (struct vdIn *vd) |
void | setContrast (struct vdIn *vd, __u8 contrast) |
__u8 | getColors (struct vdIn *vd) |
void | setColors (struct vdIn *vd, __u8 colors) |
__u8 | getNorme (struct vdIn *vd) |
void | setNorme (struct vdIn *vd, __u8 norme) |
__u8 | getChannel (struct vdIn *vd) |
void | setChannel (struct vdIn *vd, __u8 channel) |
This application handle USB camere.
Created on: Wed Dec 13 18:39:37 2008
int changeSize | ( | struct vdIn * | vd | ) |
Fuction change size of image array video device.
vd | Video device pointer |
Definition at line 368 of file camv4l.c.
References vdIn::bppIn, vdIn::fd, vdIn::formatIn, vdIn::framesizeIn, GetDepth(), GetVideoPict(), vdIn::grabMethod, vdIn::hdrheight, vdIn::hdrwidth, vdIn::pixTmp, vdIn::videopict, vdIn::videowin, and vdIn::vmmap.
int close_v4l | ( | struct vdIn * | vd | ) |
Fuction close v4l device.
vd | Video device pointer |
Definition at line 137 of file camv4l.c.
References vdIn::fd, vdIn::grabMethod, vdIn::mmapsize, vdIn::pFramebuffer, and vdIn::pixTmp.
Referenced by main().
__u8 getBrightness | ( | struct vdIn * | vd | ) |
Fuction get brightness from the camera.
vd | Video device pointer |
Definition at line 465 of file camv4l.c.
References GetVideoPict().
__u8 getChannel | ( | struct vdIn * | vd | ) |
Fuction get channel from the camera.
vd | Video device pointer |
__u8 getColors | ( | struct vdIn * | vd | ) |
Fuction get colors from the camera.
vd | Video device pointer |
Definition at line 503 of file camv4l.c.
References GetVideoPict().
__u8 getContrast | ( | struct vdIn * | vd | ) |
Fuction get contrast from the camera.
vd | Video device pointer |
Definition at line 485 of file camv4l.c.
References GetVideoPict().
__u8 getNorme | ( | struct vdIn * | vd | ) |
Fuction get norme from the camera.
vd | Video device pointer |
int grab | ( | struct vdIn * | vd | ) |
Fuction for initialization v4l device.
vd | Video device pointer |
Definition at line 212 of file camv4l.c.
References vdIn::fd, flipUV(), vdIn::flipUV, vdIn::formatIn, vdIn::framesizeIn, vdIn::grabMethod, vdIn::hdrheight, vdIn::hdrwidth, vdIn::pFramebuffer, vdIn::pixTmp, size, vdIn::videombuf, and vdIn::vmmap.
Referenced by processvideo().
int init_v4l | ( | struct vdIn * | vd | ) |
Fuction for initialization v4l device.
vd | Video device pointer |
Definition at line 31 of file camv4l.c.
References vdIn::bppIn, vdIn::bridge, vdIn::cameraname, vdIn::cameratype, f, vdIn::fd, vdIn::flipUV, vdIn::formatIn, vdIn::framesizeIn, GetVideoPict(), vdIn::grabMethod, vdIn::hdrheight, vdIn::hdrwidth, vdIn::mmapsize, vdIn::pFramebuffer, probePalette(), probeSize(), UNKNOW, vdIn::videocap, vdIn::videochan, vdIn::videodevice, vdIn::videombuf, vdIn::videopict, and vdIn::vmmap.
Referenced by main().
void setBrightness | ( | struct vdIn * | vd, | |
__u8 | bright | |||
) |
Fuction set brightness to the camera.
vd | Video device pointer | |
bright | New brightness value |
Definition at line 475 of file camv4l.c.
References SetVideoPict(), and vdIn::videopict.
void setChannel | ( | struct vdIn * | vd, | |
__u8 | channel | |||
) |
Fuction set channels to the camera.
vd | Video device pointer | |
channel | New channel value |
void setColors | ( | struct vdIn * | vd, | |
__u8 | colors | |||
) |
Fuction set colors to the camera.
vd | Video device pointer | |
colors | New colors value |
Definition at line 513 of file camv4l.c.
References SetVideoPict(), and vdIn::videopict.
void setContrast | ( | struct vdIn * | vd, | |
__u8 | contrast | |||
) |
Fuction set contrast to the camera.
vd | Video device pointer | |
contrast | New contrast value |
Definition at line 495 of file camv4l.c.
References SetVideoPict(), and vdIn::videopict.
void setNorme | ( | struct vdIn * | vd, | |
__u8 | norme | |||
) |
Fuction set norme to the camera.
vd | Video device pointer | |
norme | New norme value |
int setPalette | ( | struct vdIn * | vd | ) |
Fuction sets color pallete video device.
vd | Video device pointer |
Definition at line 260 of file camv4l.c.
References vdIn::bppIn, vdIn::formatIn, vdIn::framesizeIn, GetDepth(), vdIn::hdrheight, vdIn::hdrwidth, vdIn::pixTmp, SetVideoPict(), and vdIn::videopict.
Referenced by processvideo().