]> rtime.felk.cvut.cz Git - v4l-streaming.git/blob - doc/latex/camv4l_8c.tex
Initial commit
[v4l-streaming.git] / doc / latex / camv4l_8c.tex
1 \section{camv4l.c File Reference}
2 \label{camv4l_8c}\index{camv4l.c@{camv4l.c}}
3 This file implement function. 
4
5 {\tt \#include \char`\"{}camv4l.h\char`\"{}}\par
6
7
8 Include dependency graph for camv4l.c:\subsection*{Defines}
9 \begin{CompactItemize}
10 \item 
11 \#define {\bf LEN\_\-PALLETE}~4
12 \end{CompactItemize}
13 \subsection*{Functions}
14 \begin{CompactItemize}
15 \item 
16 static int {\bf Get\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
17 \item 
18 static int {\bf Set\-Video\-Pict} (struct {\bf vd\-In} $\ast$vd)
19 \item 
20 static int {\bf Get\-Depth} (int format)
21 \item 
22 static int {\bf probe\-Palette} (struct {\bf vd\-In} $\ast$vd)
23 \item 
24 static int {\bf probe\-Size} (struct {\bf vd\-In} $\ast$vd)
25 \item 
26 int {\bf init\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
27 \item 
28 int {\bf close\_\-v4l} (struct {\bf vd\-In} $\ast$vd)
29 \item 
30 static void {\bf flip\-UV} (unsigned char $\ast$src, int format, int w, int h)
31 \item 
32 int {\bf grab} (struct {\bf vd\-In} $\ast$vd)
33 \item 
34 int {\bf set\-Palette} (struct {\bf vd\-In} $\ast$vd)
35 \item 
36 int {\bf change\-Size} (struct {\bf vd\-In} $\ast$vd)
37 \item 
38 \_\-\_\-u8 {\bf get\-Brightness} (struct {\bf vd\-In} $\ast$vdin)
39 \item 
40 void {\bf set\-Brightness} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 bright)
41 \item 
42 \_\-\_\-u8 {\bf get\-Contrast} (struct {\bf vd\-In} $\ast$vdin)
43 \item 
44 void {\bf set\-Contrast} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 contrast)
45 \item 
46 \_\-\_\-u8 {\bf get\-Colors} (struct {\bf vd\-In} $\ast$vdin)
47 \item 
48 void {\bf set\-Colors} (struct {\bf vd\-In} $\ast$vdin, \_\-\_\-u8 colors)
49 \end{CompactItemize}
50 \subsection*{Variables}
51 \begin{CompactItemize}
52 \item 
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 \}
56 \end{CompactItemize}
57
58
59 \subsection{Detailed Description}
60 This file implement function. 
61
62
63
64 Definition in file {\bf camv4l.c}.
65
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}
70
71
72
73
74 Definition at line 12 of file camv4l.c.
75
76 Referenced by probe\-Palette().
77
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}
82
83
84
85
86 Definition at line 151 of file camv4l.c.
87
88 References i, VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.
89
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}
93
94
95
96
97 Definition at line 432 of file camv4l.c.
98
99 References VIDEO\_\-PALETTE\_\-RAW\_\-JPEG, VIDEO\_\-PALETTE\_\-RGB24, VIDEO\_\-PALETTE\_\-RGB32, VIDEO\_\-PALETTE\_\-RGB565, and VIDEO\_\-PALETTE\_\-YUV420P.
100
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}
104
105
106
107
108 Definition at line 400 of file camv4l.c.
109
110 References vd\-In::fd, and vd\-In::videopict.
111
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}
115
116
117
118
119 Definition at line 273 of file camv4l.c.
120
121 References vd\-In::bpp\-In, vd\-In::fd, vd\-In::format\-In, Get\-Depth(), i, LEN\_\-PALLETE, PAL, and vd\-In::palette.
122
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}
126
127
128
129
130 Definition at line 320 of file camv4l.c.
131
132 References vd\-In::fd, vd\-In::hdrheight, vd\-In::hdrwidth, i, SIZE, vd\-In::sizeothers, and vd\-In::videocap.
133
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}
137
138
139
140
141 Definition at line 416 of file camv4l.c.
142
143 References vd\-In::fd, and vd\-In::videopict.
144
145 Referenced by set\-Brightness(), set\-Colors(), set\-Contrast(), and set\-Palette().
146
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}
151
152
153 Definitions. 
154
155
156
157 Definition at line 10 of file camv4l.c.
158
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}
162
163
164
165
166 Definition at line 14 of file camv4l.c.
167
168 Referenced by probe\-Size().