\section{Common}
\label{group__common}\index{Common@{Common}}
Grab form camere, transfer to the MPEG and transmitt to the LAN.  
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf init\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf grab} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf close\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf set\-Palette} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf change\-Size} (struct {\bf vd\-In} $\ast$vd)
\item 
\_\-\_\-u8 {\bf get\-Brightness} (struct {\bf vd\-In} $\ast$vd)
\item 
void {\bf set\-Brightness} (struct {\bf vd\-In} $\ast$vd, \_\-\_\-u8 bright)
\item 
\_\-\_\-u8 {\bf get\-Contrast} (struct {\bf vd\-In} $\ast$vd)
\item 
void {\bf set\-Contrast} (struct {\bf vd\-In} $\ast$vd, \_\-\_\-u8 contrast)
\item 
\_\-\_\-u8 {\bf get\-Colors} (struct {\bf vd\-In} $\ast$vd)
\item 
void {\bf set\-Colors} (struct {\bf vd\-In} $\ast$vd, \_\-\_\-u8 colors)
\item 
\_\-\_\-u8 {\bf get\-Norme} (struct {\bf vd\-In} $\ast$vd)
\item 
void {\bf set\-Norme} (struct {\bf vd\-In} $\ast$vd, \_\-\_\-u8 norme)
\item 
\_\-\_\-u8 {\bf get\-Channel} (struct {\bf vd\-In} $\ast$vd)
\item 
void {\bf set\-Channel} (struct {\bf vd\-In} $\ast$vd, \_\-\_\-u8 channel)
\end{CompactItemize}


\subsection{Detailed Description}
Grab form camere, transfer to the MPEG and transmitt to the LAN. 

This application handle USB camere.

\begin{Desc}
\item[Note:]Note.\end{Desc}
\begin{Desc}
\item[Author:](last to touch it) \begin{Desc}
\item[Author]zial (Ales Zikmund)\end{Desc}
\end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Revision]1.0 \end{Desc}
\end{Desc}
\begin{Desc}
\item[Date:]\begin{Desc}
\item[Date]2008/12/12 5:45:20 \end{Desc}
\end{Desc}
Contact: {\tt zikmua1@fel.cvut.cz}

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

\subsection{Function Documentation}
\index{common@{common}!changeSize@{changeSize}}
\index{changeSize@{changeSize}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int change\-Size (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_gc42ddb12fdb3b8855b07988e18d09432}


Fuction change size of image array video device.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 368 of file camv4l.c.

References vd\-In::bpp\-In, vd\-In::fd, vd\-In::format\-In, vd\-In::framesize\-In, Get\-Depth(), Get\-Video\-Pict(), vd\-In::grab\-Method, vd\-In::hdrheight, vd\-In::hdrwidth, vd\-In::pix\-Tmp, vd\-In::videopict, vd\-In::videowin, and vd\-In::vmmap.\index{common@{common}!close_v4l@{close\_\-v4l}}
\index{close_v4l@{close\_\-v4l}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int close\_\-v4l (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_ga7b6cf1c3b04b4758f8c256879c96672}


Fuction close v4l device.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 137 of file camv4l.c.

References vd\-In::fd, vd\-In::grab\-Method, vd\-In::mmapsize, vd\-In::p\-Framebuffer, and vd\-In::pix\-Tmp.

Referenced by main().\index{common@{common}!getBrightness@{getBrightness}}
\index{getBrightness@{getBrightness}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-u8 get\-Brightness (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_ga35212f7c527f755fd38ed31f6567876}


Fuction get brightness from the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 465 of file camv4l.c.

References Get\-Video\-Pict().\index{common@{common}!getChannel@{getChannel}}
\index{getChannel@{getChannel}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-u8 get\-Channel (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g0f30a35aefb43f696c8700e8ee086158}


Fuction get channel from the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}
\index{common@{common}!getColors@{getColors}}
\index{getColors@{getColors}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-u8 get\-Colors (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g099243def65c4c72efa563e1c3a95f6a}


Fuction get colors from the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 503 of file camv4l.c.

References Get\-Video\-Pict().\index{common@{common}!getContrast@{getContrast}}
\index{getContrast@{getContrast}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-u8 get\-Contrast (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g27a2a2aa5b19632b19ebc8c0652b097e}


Fuction get contrast from the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 485 of file camv4l.c.

References Get\-Video\-Pict().\index{common@{common}!getNorme@{getNorme}}
\index{getNorme@{getNorme}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-u8 get\-Norme (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g31aba12be45387bd98ccf111606f15e6}


Fuction get norme from the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}
\index{common@{common}!grab@{grab}}
\index{grab@{grab}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int grab (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g2b042146ea433ba800a754e3d056a86d}


Fuction for initialization v4l device.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 212 of file camv4l.c.

References vd\-In::fd, flip\-UV(), vd\-In::flip\-UV, vd\-In::format\-In, vd\-In::framesize\-In, vd\-In::grab\-Method, vd\-In::hdrheight, vd\-In::hdrwidth, vd\-In::p\-Framebuffer, vd\-In::pix\-Tmp, size, vd\-In::videombuf, and vd\-In::vmmap.

Referenced by processvideo().\index{common@{common}!init_v4l@{init\_\-v4l}}
\index{init_v4l@{init\_\-v4l}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int init\_\-v4l (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_gdc0c206abad8d7210c57022190f93dc4}


Fuction for initialization v4l device.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 31 of file camv4l.c.

References vd\-In::bpp\-In, vd\-In::bridge, vd\-In::cameraname, vd\-In::cameratype, f, vd\-In::fd, vd\-In::flip\-UV, vd\-In::format\-In, vd\-In::framesize\-In, Get\-Video\-Pict(), vd\-In::grab\-Method, vd\-In::hdrheight, vd\-In::hdrwidth, vd\-In::mmapsize, vd\-In::p\-Framebuffer, probe\-Palette(), probe\-Size(), UNKNOW, vd\-In::videocap, vd\-In::videochan, vd\-In::videodevice, vd\-In::videombuf, vd\-In::videopict, and vd\-In::vmmap.

Referenced by main().\index{common@{common}!setBrightness@{setBrightness}}
\index{setBrightness@{setBrightness}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void set\-Brightness (struct {\bf vd\-In} $\ast$ {\em vd}, \_\-\_\-u8 {\em bright})}\label{group__common_ge1d8001afa8f1cbe9ff187e53e9089bb}


Fuction set brightness to the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \item[{\em bright}]New brightness value \end{description}
\end{Desc}


Definition at line 475 of file camv4l.c.

References Set\-Video\-Pict(), and vd\-In::videopict.\index{common@{common}!setChannel@{setChannel}}
\index{setChannel@{setChannel}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void set\-Channel (struct {\bf vd\-In} $\ast$ {\em vd}, \_\-\_\-u8 {\em channel})}\label{group__common_g934ec7ef103b0ad6b7f319b289c13094}


Fuction set channels to the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \item[{\em channel}]New channel value \end{description}
\end{Desc}
\index{common@{common}!setColors@{setColors}}
\index{setColors@{setColors}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void set\-Colors (struct {\bf vd\-In} $\ast$ {\em vd}, \_\-\_\-u8 {\em colors})}\label{group__common_g20703b2ca537132fde1e0a9fccbfd6c5}


Fuction set colors to the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \item[{\em colors}]New colors value \end{description}
\end{Desc}


Definition at line 513 of file camv4l.c.

References Set\-Video\-Pict(), and vd\-In::videopict.\index{common@{common}!setContrast@{setContrast}}
\index{setContrast@{setContrast}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void set\-Contrast (struct {\bf vd\-In} $\ast$ {\em vd}, \_\-\_\-u8 {\em contrast})}\label{group__common_g3386f2919710868906af5025aa220f64}


Fuction set contrast to the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \item[{\em contrast}]New contrast value \end{description}
\end{Desc}


Definition at line 495 of file camv4l.c.

References Set\-Video\-Pict(), and vd\-In::videopict.\index{common@{common}!setNorme@{setNorme}}
\index{setNorme@{setNorme}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void set\-Norme (struct {\bf vd\-In} $\ast$ {\em vd}, \_\-\_\-u8 {\em norme})}\label{group__common_ga723eaba9e11996dc99e8dace7b87aa5}


Fuction set norme to the camera.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \item[{\em norme}]New norme value \end{description}
\end{Desc}
\index{common@{common}!setPalette@{setPalette}}
\index{setPalette@{setPalette}!common@{common}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int set\-Palette (struct {\bf vd\-In} $\ast$ {\em vd})}\label{group__common_g4f1b347f61daa1e55c12a2a3ebb22ee3}


Fuction sets color pallete video device.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vd}]Video device pointer \end{description}
\end{Desc}


Definition at line 260 of file camv4l.c.

References vd\-In::bpp\-In, vd\-In::format\-In, vd\-In::framesize\-In, Get\-Depth(), vd\-In::hdrheight, vd\-In::hdrwidth, vd\-In::pix\-Tmp, Set\-Video\-Pict(), and vd\-In::videopict.

Referenced by processvideo().