1 \section{camv4l.c File Reference}
2 \label{camv4l_8c}\index{camv4l.c@{camv4l.c}}
3 This file implement function.
5 {\tt \#include \char`\"{}camv4l.h\char`\"{}}\par
8 Include dependency graph for camv4l.c:\subsection*{Defines}
11 \#define {\bf LEN\_\-PALLETE}~4
13 \subsection*{Functions}
14 \begin{CompactItemize}
16 static int {\bf Get\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
18 static int {\bf Set\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
20 static int {\bf Get\-Depth} (int format)
22 static int {\bf probe\-Palette} (struct {\bf vd\-In} $\ast$vd)
24 static int {\bf probe\-Size} (struct {\bf vd\-In} $\ast$vd)
26 int {\bf init\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
28 int {\bf close\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
30 static void {\bf flip\-UV} (unsigned char $\ast$src, int format, int w, int h)
32 int {\bf grab} (struct {\bf vd\-In} $\ast$vd)
34 int {\bf set\-Palette} (struct {\bf vd\-In} $\ast$vd)
36 int {\bf change\-Size} (struct {\bf vd\-In} $\ast$vd)
38 \_\-\_\-u8 {\bf get\-Brightness} (struct {\bf vd\-In} $\ast$vdin)
40 void {\bf set\-Brightness} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 bright)
42 \_\-\_\-u8 {\bf get\-Contrast} (struct {\bf vd\-In} $\ast$vdin)
44 void {\bf set\-Contrast} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 contrast)
46 \_\-\_\-u8 {\bf get\-Colors} (struct {\bf vd\-In} $\ast$vdin)
48 void {\bf set\-Colors} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 colors)
50 \subsection*{Variables}
51 \begin{CompactItemize}
53 int {\bf PAL} [$\,$] = \{VIDEO\_\-PALETTE\_\-YUV420P,VIDEO\_\-PALETTE\_\-RGB565,VIDEO\_\-PALETTE\_\-RGB24,VIDEO\_\-PALETTE\_\-RGB32\}
54 \begin{CompactList}\small\item\em Definitions. \item\end{CompactList}\item
55 int {\bf SIZE} [$\,$] = \{ 640,480,384,288,352,288,320,240,192,144,176,144,160,120 \}
59 \subsection{Detailed Description}
60 This file implement function.
64 Definition in file {\bf camv4l.c}.
66 \subsection{Define Documentation}
67 \index{camv4l.c@{camv4l.c}!LEN_PALLETE@{LEN\_\-PALLETE}}
68 \index{LEN_PALLETE@{LEN\_\-PALLETE}!camv4l.c@{camv4l.c}}
69 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LEN\_\-PALLETE~4}\label{camv4l_8c_1ae3f99c00fbdb4eec4a4eb4fdfeacd0}
74 Definition at line 12 of file camv4l.c.
76 Referenced by probe\-Palette().
78 \subsection{Function Documentation}
79 \index{camv4l.c@{camv4l.c}!flipUV@{flipUV}}
80 \index{flipUV@{flipUV}!camv4l.c@{camv4l.c}}
81 \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}
86 Definition at line 151 of file camv4l.c.
88 References i, VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.
90 Referenced by grab().\index{camv4l.c@{camv4l.c}!GetDepth@{GetDepth}}
91 \index{GetDepth@{GetDepth}!camv4l.c@{camv4l.c}}
92 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int Get\-Depth (int {\em format})\hspace{0.3cm}{\tt [static]}}\label{camv4l_8c_283b0e82a3d74f512e682a8ac52659b7}
97 Definition at line 432 of file camv4l.c.
99 References VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.
101 Referenced by change\-Size(), probe\-Palette(), and set\-Palette().\index{camv4l.c@{camv4l.c}!GetVideoPict@{GetVideoPict}}
102 \index{GetVideoPict@{GetVideoPict}!camv4l.c@{camv4l.c}}
103 \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}
108 Definition at line 400 of file camv4l.c.
110 References vd\-In::fd, and vd\-In::videopict.
112 Referenced by change\-Size(), get\-Brightness(), get\-Colors(), get\-Contrast(), and init\_\-v4l().\index{camv4l.c@{camv4l.c}!probePalette@{probePalette}}
113 \index{probePalette@{probePalette}!camv4l.c@{camv4l.c}}
114 \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}
119 Definition at line 273 of file camv4l.c.
121 References vd\-In::bpp\-In, vd\-In::fd, vd\-In::format\-In, Get\-Depth(), i, LEN\_\-PALLETE, PAL, and vd\-In::palette.
123 Referenced by init\_\-v4l().\index{camv4l.c@{camv4l.c}!probeSize@{probeSize}}
124 \index{probeSize@{probeSize}!camv4l.c@{camv4l.c}}
125 \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}
130 Definition at line 320 of file camv4l.c.
132 References vd\-In::fd, vd\-In::hdrheight, vd\-In::hdrwidth, i, SIZE, vd\-In::sizeothers, and vd\-In::videocap.
134 Referenced by init\_\-v4l().\index{camv4l.c@{camv4l.c}!SetVideoPict@{SetVideoPict}}
135 \index{SetVideoPict@{SetVideoPict}!camv4l.c@{camv4l.c}}
136 \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}
141 Definition at line 416 of file camv4l.c.
143 References vd\-In::fd, and vd\-In::videopict.
145 Referenced by set\-Brightness(), set\-Colors(), set\-Contrast(), and set\-Palette().
147 \subsection{Variable Documentation}
148 \index{camv4l.c@{camv4l.c}!PAL@{PAL}}
149 \index{PAL@{PAL}!camv4l.c@{camv4l.c}}
150 \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}
157 Definition at line 10 of file camv4l.c.
159 Referenced by probe\-Palette().\index{camv4l.c@{camv4l.c}!SIZE@{SIZE}}
160 \index{SIZE@{SIZE}!camv4l.c@{camv4l.c}}
161 \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}
166 Definition at line 14 of file camv4l.c.
168 Referenced by probe\-Size().