\section{camv4l.h File Reference}
\label{camv4l_8h}\index{camv4l.h@{camv4l.h}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$fcntl.h$>$}\par
{\tt \#include $<$signal.h$>$}\par
{\tt \#include $<$errno.h$>$}\par
{\tt \#include $<$time.h$>$}\par
{\tt \#include $<$math.h$>$}\par
{\tt \#include $<$stdarg.h$>$}\par
{\tt \#include $<$linux/types.h$>$}\par
{\tt \#include $<$linux/videodev.h$>$}\par
{\tt \#include $<$sys/mman.h$>$}\par
{\tt \#include $<$sys/ioctl.h$>$}\par
{\tt \#include $<$sys/file.h$>$}\par
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$sys/stat.h$>$}\par


Include dependency graph for camv4l.h:

This graph shows which files directly or indirectly include this file:\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf vd\-In}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf DWIDTH}~320
\item 
\#define {\bf DHEIGHT}~240
\item 
\#define {\bf VIDEO\_\-PALETTE\_\-RGB565}~3
\item 
\#define {\bf VIDEO\_\-PALETTE\_\-RGB24}~4
\item 
\#define {\bf VIDEO\_\-PALETTE\_\-RGB32}~5
\item 
\#define {\bf VIDEO\_\-PALETTE\_\-YUV420P}~15
\item 
\#define {\bf VIDEO\_\-PALETTE\_\-RAW\_\-JPEG}~20
\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum {\bf cam\_\-form} \{ \par
{\bf JPEG}, 
{\bf YUVY}, 
{\bf YYUV}, 
{\bf YUYV}, 
\par
{\bf GREY}, 
{\bf GBRG}, 
{\bf UNKNOW}
 \}
\end{CompactItemize}
\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}


Definition in file {\bf camv4l.h}.

\subsection{Define Documentation}
\index{camv4l.h@{camv4l.h}!DHEIGHT@{DHEIGHT}}
\index{DHEIGHT@{DHEIGHT}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DHEIGHT~240}\label{camv4l_8h_2c0e9cadedb91327295c0249e8a3ad6f}




Definition at line 28 of file camv4l.h.\index{camv4l.h@{camv4l.h}!DWIDTH@{DWIDTH}}
\index{DWIDTH@{DWIDTH}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DWIDTH~320}\label{camv4l_8h_7f32e26ea2ffbc0c5408e65b30d4f0c8}




Definition at line 27 of file camv4l.h.\index{camv4l.h@{camv4l.h}!VIDEO_PALETTE_RAW_JPEG@{VIDEO\_\-PALETTE\_\-RAW\_\-JPEG}}
\index{VIDEO_PALETTE_RAW_JPEG@{VIDEO\_\-PALETTE\_\-RAW\_\-JPEG}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define VIDEO\_\-PALETTE\_\-RAW\_\-JPEG~20}\label{camv4l_8h_f86678f63c4ac31acaf68b38d90d94a9}




Definition at line 35 of file camv4l.h.

Referenced by flip\-UV(), and Get\-Depth().\index{camv4l.h@{camv4l.h}!VIDEO_PALETTE_RGB24@{VIDEO\_\-PALETTE\_\-RGB24}}
\index{VIDEO_PALETTE_RGB24@{VIDEO\_\-PALETTE\_\-RGB24}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define VIDEO\_\-PALETTE\_\-RGB24~4}\label{camv4l_8h_8dd93a2c957ded118f8ff17680cbf220}




Definition at line 32 of file camv4l.h.

Referenced by flip\-UV(), and Get\-Depth().\index{camv4l.h@{camv4l.h}!VIDEO_PALETTE_RGB32@{VIDEO\_\-PALETTE\_\-RGB32}}
\index{VIDEO_PALETTE_RGB32@{VIDEO\_\-PALETTE\_\-RGB32}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define VIDEO\_\-PALETTE\_\-RGB32~5}\label{camv4l_8h_d50994973596a30826522de0701ad02b}




Definition at line 33 of file camv4l.h.

Referenced by flip\-UV(), and Get\-Depth().\index{camv4l.h@{camv4l.h}!VIDEO_PALETTE_RGB565@{VIDEO\_\-PALETTE\_\-RGB565}}
\index{VIDEO_PALETTE_RGB565@{VIDEO\_\-PALETTE\_\-RGB565}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define VIDEO\_\-PALETTE\_\-RGB565~3}\label{camv4l_8h_dbf692218d97fffa111494787562d9e8}




Definition at line 31 of file camv4l.h.

Referenced by flip\-UV(), and Get\-Depth().\index{camv4l.h@{camv4l.h}!VIDEO_PALETTE_YUV420P@{VIDEO\_\-PALETTE\_\-YUV420P}}
\index{VIDEO_PALETTE_YUV420P@{VIDEO\_\-PALETTE\_\-YUV420P}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define VIDEO\_\-PALETTE\_\-YUV420P~15}\label{camv4l_8h_dea1e94780da3ba61a1a1d9a11affdd2}




Definition at line 34 of file camv4l.h.

Referenced by flip\-UV(), Get\-Depth(), and processvideo().

\subsection{Enumeration Type Documentation}
\index{camv4l.h@{camv4l.h}!cam_form@{cam\_\-form}}
\index{cam_form@{cam\_\-form}!camv4l.h@{camv4l.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf cam\_\-form}}\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe2161}


Camera type format date \begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{JPEG@{JPEG}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!JPEG@{JPEG}}\item[{\em 
JPEG\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe216196f4d8a8c2070cf7bdd2236a48eae07a}
}]\index{YUVY@{YUVY}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!YUVY@{YUVY}}\item[{\em 
YUVY\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe21619c6051edb55a8fb694528d81aa2c92dc}
}]\index{YYUV@{YYUV}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!YYUV@{YYUV}}\item[{\em 
YYUV\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe21614dd75c8cff6ed2dad455d9b1e3066a7c}
}]\index{YUYV@{YUYV}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!YUYV@{YUYV}}\item[{\em 
YUYV\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe21610105757557d0eed9bac6f9f1c0185a0b}
}]\index{GREY@{GREY}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!GREY@{GREY}}\item[{\em 
GREY\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe216138566822dbd9408c447abfd3ed4a85d2}
}]\index{GBRG@{GBRG}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!GBRG@{GBRG}}\item[{\em 
GBRG\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe21613cae9f5260ee8e2b52164f174e076fa2}
}]\index{UNKNOW@{UNKNOW}!camv4l.h@{camv4l.h}}\index{camv4l.h@{camv4l.h}!UNKNOW@{UNKNOW}}\item[{\em 
UNKNOW\label{camv4l_8h_2f8d40fca22af63d98fcaad73efe216109b024ff449662360c66ce18d20096fa}
}]\end{description}
\end{Desc}



Definition at line 41 of file camv4l.h.