Common

Grab form camere, transfer to the MPEG and transmitt to the LAN. More...

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)

Detailed Description

Grab form camere, transfer to the MPEG and transmitt to the LAN.

This application handle USB camere.

Note:
Note.
Author:
(last to touch it)
Author
zial (Ales Zikmund)
Version:
Revision
1.0
Date:
Date
2008/12/12 5:45:20
Contact: zikmua1@fel.cvut.cz

Created on: Wed Dec 13 18:39:37 2008


Function Documentation

int changeSize ( struct vdIn vd  ) 

Fuction change size of image array video device.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
vd Video device pointer

__u8 getColors ( struct vdIn vd  ) 

Fuction get colors from the camera.

Parameters:
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.

Parameters:
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.

Parameters:
vd Video device pointer

int grab ( struct vdIn vd  ) 

Fuction for initialization v4l device.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
vd Video device pointer
channel New channel value

void setColors ( struct vdIn vd,
__u8  colors 
)

Fuction set colors to the camera.

Parameters:
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.

Parameters:
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.

Parameters:
vd Video device pointer
norme New norme value

int setPalette ( struct vdIn vd  ) 

Fuction sets color pallete video device.

Parameters:
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().


Generated on Mon Jan 26 20:51:51 2009 for Camera grab convert to MPEG by  doxygen 1.5.1