\section{camv4l.c File Reference}
\label{camv4l_8c}\index{camv4l.c@{camv4l.c}}
This file implement function. 

{\tt \#include \char`\"{}camv4l.h\char`\"{}}\par


Include dependency graph for camv4l.c:\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf LEN\_\-PALLETE}~4
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static int {\bf Get\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
\item 
static int {\bf Set\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
\item 
static int {\bf Get\-Depth} (int format)
\item 
static int {\bf probe\-Palette} (struct {\bf vd\-In} $\ast$vd)
\item 
static int {\bf probe\-Size} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf init\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
\item 
int {\bf close\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
\item 
static void {\bf flip\-UV} (unsigned char $\ast$src, int format, int w, int h)
\item 
int {\bf grab} (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$vdin)
\item 
void {\bf set\-Brightness} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 bright)
\item 
\_\-\_\-u8 {\bf get\-Contrast} (struct {\bf vd\-In} $\ast$vdin)
\item 
void {\bf set\-Contrast} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 contrast)
\item 
\_\-\_\-u8 {\bf get\-Colors} (struct {\bf vd\-In} $\ast$vdin)
\item 
void {\bf set\-Colors} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 colors)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int {\bf PAL} [$\,$] = \{VIDEO\_\-PALETTE\_\-YUV420P,VIDEO\_\-PALETTE\_\-RGB565,VIDEO\_\-PALETTE\_\-RGB24,VIDEO\_\-PALETTE\_\-RGB32\}
\begin{CompactList}\small\item\em Definitions. \item\end{CompactList}\item 
int {\bf SIZE} [$\,$] = \{ 640,480,384,288,352,288,320,240,192,144,176,144,160,120 \}
\end{CompactItemize}


\subsection{Detailed Description}
This file implement function. 



Definition in file {\bf camv4l.c}.

\subsection{Define Documentation}
\index{camv4l.c@{camv4l.c}!LEN_PALLETE@{LEN\_\-PALLETE}}
\index{LEN_PALLETE@{LEN\_\-PALLETE}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LEN\_\-PALLETE~4}\label{camv4l_8c_1ae3f99c00fbdb4eec4a4eb4fdfeacd0}




Definition at line 12 of file camv4l.c.

Referenced by probe\-Palette().

\subsection{Function Documentation}
\index{camv4l.c@{camv4l.c}!flipUV@{flipUV}}
\index{flipUV@{flipUV}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void flip\-UV (unsigned char $\ast$ {\em src}, int {\em format}, int {\em w}, int {\em h})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_1da8db34b1923c570a40f54e2b22ca39}




Definition at line 151 of file camv4l.c.

References i, VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.

Referenced by grab().\index{camv4l.c@{camv4l.c}!GetDepth@{GetDepth}}
\index{GetDepth@{GetDepth}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Get\-Depth (int {\em format})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_283b0e82a3d74f512e682a8ac52659b7}




Definition at line 432 of file camv4l.c.

References VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.

Referenced by change\-Size(), probe\-Palette(), and set\-Palette().\index{camv4l.c@{camv4l.c}!GetVideoPict@{GetVideoPict}}
\index{GetVideoPict@{GetVideoPict}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Get\-Video\-Pict (struct {\bf vd\-In} $\ast$ {\em vd})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_8cb6f747fd7726860f771609946d09b3}




Definition at line 400 of file camv4l.c.

References vd\-In::fd, and vd\-In::videopict.

Referenced by change\-Size(), get\-Brightness(), get\-Colors(), get\-Contrast(), and init\_\-v4l().\index{camv4l.c@{camv4l.c}!probePalette@{probePalette}}
\index{probePalette@{probePalette}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int probe\-Palette (struct {\bf vd\-In} $\ast$ {\em vd})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_e2f8dd81ccfc3b70fdeb99b07586a1b1}




Definition at line 273 of file camv4l.c.

References vd\-In::bpp\-In, vd\-In::fd, vd\-In::format\-In, Get\-Depth(), i, LEN\_\-PALLETE, PAL, and vd\-In::palette.

Referenced by init\_\-v4l().\index{camv4l.c@{camv4l.c}!probeSize@{probeSize}}
\index{probeSize@{probeSize}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int probe\-Size (struct {\bf vd\-In} $\ast$ {\em vd})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_bee824dc095955f0175643284986b23e}




Definition at line 320 of file camv4l.c.

References vd\-In::fd, vd\-In::hdrheight, vd\-In::hdrwidth, i, SIZE, vd\-In::sizeothers, and vd\-In::videocap.

Referenced by init\_\-v4l().\index{camv4l.c@{camv4l.c}!SetVideoPict@{SetVideoPict}}
\index{SetVideoPict@{SetVideoPict}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Set\-Video\-Pict (struct {\bf vd\-In} $\ast$ {\em vd})\hspace{0.3cm}{\tt  [static]}}\label{camv4l_8c_6391de2c695ffff5ba0a8632f6db3c1f}




Definition at line 416 of file camv4l.c.

References vd\-In::fd, and vd\-In::videopict.

Referenced by set\-Brightness(), set\-Colors(), set\-Contrast(), and set\-Palette().

\subsection{Variable Documentation}
\index{camv4l.c@{camv4l.c}!PAL@{PAL}}
\index{PAL@{PAL}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf PAL}[$\,$] = \{VIDEO\_\-PALETTE\_\-YUV420P,VIDEO\_\-PALETTE\_\-RGB565,VIDEO\_\-PALETTE\_\-RGB24,VIDEO\_\-PALETTE\_\-RGB32\}}\label{camv4l_8c_ee54b939c70ffe5540c8e77e8b75c331}


Definitions. 



Definition at line 10 of file camv4l.c.

Referenced by probe\-Palette().\index{camv4l.c@{camv4l.c}!SIZE@{SIZE}}
\index{SIZE@{SIZE}!camv4l.c@{camv4l.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf SIZE}[$\,$] = \{ 640,480,384,288,352,288,320,240,192,144,176,144,160,120 \}}\label{camv4l_8c_26ffb7e515435a5ff2d24656ecacd181}




Definition at line 14 of file camv4l.c.

Referenced by probe\-Size().