1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>Camera grab convert to MPEG: camv4l.h File Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 <link href="tabs.css" rel="stylesheet" type="text/css">
7 <!-- Generated by Doxygen 1.5.1 -->
10 <li><a href="main.html"><span>Main Page</span></a></li>
11 <li><a href="modules.html"><span>Modules</span></a></li>
12 <li><a href="annotated.html"><span>Data Structures</span></a></li>
13 <li id="current"><a href="files.html"><span>Files</span></a></li>
17 <li><a href="files.html"><span>File List</span></a></li>
18 <li><a href="globals.html"><span>Globals</span></a></li>
20 <h1>camv4l.h File Reference</h1><code>#include <stdio.h></code><br>
21 <code>#include <unistd.h></code><br>
22 <code>#include <stdlib.h></code><br>
23 <code>#include <string.h></code><br>
24 <code>#include <fcntl.h></code><br>
25 <code>#include <signal.h></code><br>
26 <code>#include <errno.h></code><br>
27 <code>#include <time.h></code><br>
28 <code>#include <math.h></code><br>
29 <code>#include <stdarg.h></code><br>
30 <code>#include <linux/types.h></code><br>
31 <code>#include <linux/videodev.h></code><br>
32 <code>#include <sys/mman.h></code><br>
33 <code>#include <sys/ioctl.h></code><br>
34 <code>#include <sys/file.h></code><br>
35 <code>#include <sys/types.h></code><br>
36 <code>#include <sys/stat.h></code><br>
39 Include dependency graph for camv4l.h:
41 This graph shows which files directly or indirectly include this file:
43 <a href="camv4l_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
45 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structvdIn.html">vdIn</a></td></tr>
48 <tr><td colspan="2"><br><h2>Defines</h2></td></tr>
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> 320</td></tr>
51 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> 240</td></tr>
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#dbf692218d97fffa111494787562d9e8">VIDEO_PALETTE_RGB565</a> 3</td></tr>
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#8dd93a2c957ded118f8ff17680cbf220">VIDEO_PALETTE_RGB24</a> 4</td></tr>
57 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#d50994973596a30826522de0701ad02b">VIDEO_PALETTE_RGB32</a> 5</td></tr>
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#dea1e94780da3ba61a1a1d9a11affdd2">VIDEO_PALETTE_YUV420P</a> 15</td></tr>
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#f86678f63c4ac31acaf68b38d90d94a9">VIDEO_PALETTE_RAW_JPEG</a> 20</td></tr>
63 <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe2161">cam_form</a> { <br>
65 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe216196f4d8a8c2070cf7bdd2236a48eae07a">JPEG</a>,
66 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe21619c6051edb55a8fb694528d81aa2c92dc">YUVY</a>,
67 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe21614dd75c8cff6ed2dad455d9b1e3066a7c">YYUV</a>,
68 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe21610105757557d0eed9bac6f9f1c0185a0b">YUYV</a>,
70 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe216138566822dbd9408c447abfd3ed4a85d2">GREY</a>,
71 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe21613cae9f5260ee8e2b52164f174e076fa2">GBRG</a>,
72 <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe216109b024ff449662360c66ce18d20096fa">UNKNOW</a>
76 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
77 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#gdc0c206abad8d7210c57022190f93dc4">init_v4l</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
79 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g2b042146ea433ba800a754e3d056a86d">grab</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
81 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#ga7b6cf1c3b04b4758f8c256879c96672">close_v4l</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
83 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g4f1b347f61daa1e55c12a2a3ebb22ee3">setPalette</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
85 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#gc42ddb12fdb3b8855b07988e18d09432">changeSize</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
87 <tr><td class="memItemLeft" nowrap align="right" valign="top">__u8 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#ga35212f7c527f755fd38ed31f6567876">getBrightness</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
89 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#ge1d8001afa8f1cbe9ff187e53e9089bb">setBrightness</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd, __u8 bright)</td></tr>
91 <tr><td class="memItemLeft" nowrap align="right" valign="top">__u8 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g27a2a2aa5b19632b19ebc8c0652b097e">getContrast</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
93 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g3386f2919710868906af5025aa220f64">setContrast</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd, __u8 contrast)</td></tr>
95 <tr><td class="memItemLeft" nowrap align="right" valign="top">__u8 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g099243def65c4c72efa563e1c3a95f6a">getColors</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
97 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g20703b2ca537132fde1e0a9fccbfd6c5">setColors</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd, __u8 colors)</td></tr>
99 <tr><td class="memItemLeft" nowrap align="right" valign="top">__u8 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g31aba12be45387bd98ccf111606f15e6">getNorme</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
101 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#ga723eaba9e11996dc99e8dace7b87aa5">setNorme</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd, __u8 norme)</td></tr>
103 <tr><td class="memItemLeft" nowrap align="right" valign="top">__u8 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g0f30a35aefb43f696c8700e8ee086158">getChannel</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd)</td></tr>
105 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__common.html#g934ec7ef103b0ad6b7f319b289c13094">setChannel</a> (struct <a class="el" href="structvdIn.html">vdIn</a> *vd, __u8 channel)</td></tr>
108 <hr><a name="_details"></a><h2>Detailed Description</h2>
111 Definition in file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.<hr><h2>Define Documentation</h2>
112 <a class="anchor" name="2c0e9cadedb91327295c0249e8a3ad6f"></a><!-- doxytag: member="camv4l.h::DHEIGHT" ref="2c0e9cadedb91327295c0249e8a3ad6f" args="" -->
113 <div class="memitem">
114 <div class="memproto">
115 <table class="memname">
117 <td class="memname">#define DHEIGHT 240 </td>
126 Definition at line <a class="el" href="camv4l_8h-source.html#l00028">28</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
129 <a class="anchor" name="7f32e26ea2ffbc0c5408e65b30d4f0c8"></a><!-- doxytag: member="camv4l.h::DWIDTH" ref="7f32e26ea2ffbc0c5408e65b30d4f0c8" args="" -->
130 <div class="memitem">
131 <div class="memproto">
132 <table class="memname">
134 <td class="memname">#define DWIDTH 320 </td>
143 Definition at line <a class="el" href="camv4l_8h-source.html#l00027">27</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
146 <a class="anchor" name="f86678f63c4ac31acaf68b38d90d94a9"></a><!-- doxytag: member="camv4l.h::VIDEO_PALETTE_RAW_JPEG" ref="f86678f63c4ac31acaf68b38d90d94a9" args="" -->
147 <div class="memitem">
148 <div class="memproto">
149 <table class="memname">
151 <td class="memname">#define VIDEO_PALETTE_RAW_JPEG 20 </td>
160 Definition at line <a class="el" href="camv4l_8h-source.html#l00035">35</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
162 Referenced by <a class="el" href="camv4l_8c-source.html#l00151">flipUV()</a>, and <a class="el" href="camv4l_8c-source.html#l00432">GetDepth()</a>.
165 <a class="anchor" name="8dd93a2c957ded118f8ff17680cbf220"></a><!-- doxytag: member="camv4l.h::VIDEO_PALETTE_RGB24" ref="8dd93a2c957ded118f8ff17680cbf220" args="" -->
166 <div class="memitem">
167 <div class="memproto">
168 <table class="memname">
170 <td class="memname">#define VIDEO_PALETTE_RGB24 4 </td>
179 Definition at line <a class="el" href="camv4l_8h-source.html#l00032">32</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
181 Referenced by <a class="el" href="camv4l_8c-source.html#l00151">flipUV()</a>, and <a class="el" href="camv4l_8c-source.html#l00432">GetDepth()</a>.
184 <a class="anchor" name="d50994973596a30826522de0701ad02b"></a><!-- doxytag: member="camv4l.h::VIDEO_PALETTE_RGB32" ref="d50994973596a30826522de0701ad02b" args="" -->
185 <div class="memitem">
186 <div class="memproto">
187 <table class="memname">
189 <td class="memname">#define VIDEO_PALETTE_RGB32 5 </td>
198 Definition at line <a class="el" href="camv4l_8h-source.html#l00033">33</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
200 Referenced by <a class="el" href="camv4l_8c-source.html#l00151">flipUV()</a>, and <a class="el" href="camv4l_8c-source.html#l00432">GetDepth()</a>.
203 <a class="anchor" name="dbf692218d97fffa111494787562d9e8"></a><!-- doxytag: member="camv4l.h::VIDEO_PALETTE_RGB565" ref="dbf692218d97fffa111494787562d9e8" args="" -->
204 <div class="memitem">
205 <div class="memproto">
206 <table class="memname">
208 <td class="memname">#define VIDEO_PALETTE_RGB565 3 </td>
217 Definition at line <a class="el" href="camv4l_8h-source.html#l00031">31</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
219 Referenced by <a class="el" href="camv4l_8c-source.html#l00151">flipUV()</a>, and <a class="el" href="camv4l_8c-source.html#l00432">GetDepth()</a>.
222 <a class="anchor" name="dea1e94780da3ba61a1a1d9a11affdd2"></a><!-- doxytag: member="camv4l.h::VIDEO_PALETTE_YUV420P" ref="dea1e94780da3ba61a1a1d9a11affdd2" args="" -->
223 <div class="memitem">
224 <div class="memproto">
225 <table class="memname">
227 <td class="memname">#define VIDEO_PALETTE_YUV420P 15 </td>
236 Definition at line <a class="el" href="camv4l_8h-source.html#l00034">34</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
238 Referenced by <a class="el" href="camv4l_8c-source.html#l00151">flipUV()</a>, <a class="el" href="camv4l_8c-source.html#l00432">GetDepth()</a>, and <a class="el" href="grab__mpeg_8c-source.html#l00137">processvideo()</a>.
241 <hr><h2>Enumeration Type Documentation</h2>
242 <a class="anchor" name="2f8d40fca22af63d98fcaad73efe2161"></a><!-- doxytag: member="camv4l.h::cam_form" ref="2f8d40fca22af63d98fcaad73efe2161" args="" -->
243 <div class="memitem">
244 <div class="memproto">
245 <table class="memname">
247 <td class="memname">enum <a class="el" href="camv4l_8h.html#2f8d40fca22af63d98fcaad73efe2161">cam_form</a> </td>
254 Camera type format date <dl compact><dt><b>Enumerator: </b></dt><dd>
255 <table border="0" cellspacing="2" cellpadding="0">
256 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe216196f4d8a8c2070cf7bdd2236a48eae07a"></a><!-- doxytag: member="JPEG" ref="2f8d40fca22af63d98fcaad73efe216196f4d8a8c2070cf7bdd2236a48eae07a" args="" -->JPEG</em> </td><td>
258 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe21619c6051edb55a8fb694528d81aa2c92dc"></a><!-- doxytag: member="YUVY" ref="2f8d40fca22af63d98fcaad73efe21619c6051edb55a8fb694528d81aa2c92dc" args="" -->YUVY</em> </td><td>
260 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe21614dd75c8cff6ed2dad455d9b1e3066a7c"></a><!-- doxytag: member="YYUV" ref="2f8d40fca22af63d98fcaad73efe21614dd75c8cff6ed2dad455d9b1e3066a7c" args="" -->YYUV</em> </td><td>
262 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe21610105757557d0eed9bac6f9f1c0185a0b"></a><!-- doxytag: member="YUYV" ref="2f8d40fca22af63d98fcaad73efe21610105757557d0eed9bac6f9f1c0185a0b" args="" -->YUYV</em> </td><td>
264 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe216138566822dbd9408c447abfd3ed4a85d2"></a><!-- doxytag: member="GREY" ref="2f8d40fca22af63d98fcaad73efe216138566822dbd9408c447abfd3ed4a85d2" args="" -->GREY</em> </td><td>
266 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe21613cae9f5260ee8e2b52164f174e076fa2"></a><!-- doxytag: member="GBRG" ref="2f8d40fca22af63d98fcaad73efe21613cae9f5260ee8e2b52164f174e076fa2" args="" -->GBRG</em> </td><td>
268 <tr><td valign="top"><em><a class="anchor" name="2f8d40fca22af63d98fcaad73efe216109b024ff449662360c66ce18d20096fa"></a><!-- doxytag: member="UNKNOW" ref="2f8d40fca22af63d98fcaad73efe216109b024ff449662360c66ce18d20096fa" args="" -->UNKNOW</em> </td><td>
274 Definition at line <a class="el" href="camv4l_8h-source.html#l00041">41</a> of file <a class="el" href="camv4l_8h-source.html">camv4l.h</a>.
277 <hr size="1"><address style="align: right;"><small>Generated on Mon Jan 26 20:51:51 2009 for Camera grab convert to MPEG by
278 <a href="http://www.doxygen.org/index.html">
279 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>