File: pwc-ioctl_h-source.html

package info (click to toggle)
camstream 0.25-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,996 kB
  • ctags: 1,478
  • sloc: cpp: 6,074; asm: 1,033; makefile: 272
file content (76 lines) | stat: -rw-r--r-- 6,521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>pwc-ioctl.h</h1><a href="pwc-ioctl_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#ifndef PWC_IOCTL_H</font>
00002 <font class="preprocessor"></font><font class="preprocessor">#define PWC_IOCTL_H</font>
00003 <font class="preprocessor"></font>
00004 <font class="comment">/* These are private ioctl() commands, specific for the Philips webcams.</font>
00005 <font class="comment">   They contain functions not found in other webcams, and settings not</font>
00006 <font class="comment">   specified in the Video4Linux API. </font>
00007 <font class="comment">   </font>
00008 <font class="comment">   The #define names are built up like follows:</font>
00009 <font class="comment">   VIDIOC               VIDeo IOCtl prefix</font>
00010 <font class="comment">         PWC            Philps WebCam</font>
00011 <font class="comment">            [GS]        optional: Get or Set</font>
00012 <font class="comment">                ...     The function</font>
00013 <font class="comment"> */</font>
00014 
00015 <font class="comment">/* The frame rate is encoded in the video_window.flags parameter,</font>
00016 <font class="comment">   in the high 16 bits, since some flags are defined nowadays. The following</font>
00017 <font class="comment">   defines provide a mask and shift to filter out this value.</font>
00018 <font class="comment">   </font>
00019 <font class="comment">   In 'Snapshot' mode the camera freezes its automatic exposure and colour </font>
00020 <font class="comment">   balance controls.</font>
00021 <font class="comment"> */</font>
<a name="l00022"></a><a class="code" href="pwc-ioctl_h.html#a0">00022</a> <font class="preprocessor">#define PWC_FPS_SHIFT           16</font>
<a name="l00023"></a><a class="code" href="pwc-ioctl_h.html#a1">00023</a> <font class="preprocessor"></font><font class="preprocessor">#define PWC_FPS_MASK            0x00FF0000</font>
<a name="l00024"></a><a class="code" href="pwc-ioctl_h.html#a2">00024</a> <font class="preprocessor"></font><font class="preprocessor">#define PWC_FPS_FRMASK          0x003F0000</font>
<a name="l00025"></a><a class="code" href="pwc-ioctl_h.html#a3">00025</a> <font class="preprocessor"></font><font class="preprocessor">#define PWC_FPS_SNAPSHOT        0x00400000</font>
00026 <font class="preprocessor"></font>
00027 <font class="comment">/* These are private ioctl() commands, specific for the Philips webcams.</font>
00028 <font class="comment">   They contain functions not found in other webcams, and settings not</font>
00029 <font class="comment">   specified in the Video4Linux API. </font>
00030 <font class="comment"> */</font>
00031 
00032 
00033  <font class="comment">/* Restore user settings */</font>
<a name="l00034"></a><a class="code" href="pwc-ioctl_h.html#a4">00034</a> <font class="preprocessor">#define VIDIOCPWCRUSER          _IO('v', 192)</font>
00035 <font class="preprocessor"></font> <font class="comment">/* Save user settings */</font>
<a name="l00036"></a><a class="code" href="pwc-ioctl_h.html#a5">00036</a> <font class="preprocessor">#define VIDIOCPWCSUSER          _IO('v', 193)</font>
00037 <font class="preprocessor"></font> <font class="comment">/* Restore factory settings */</font>
<a name="l00038"></a><a class="code" href="pwc-ioctl_h.html#a6">00038</a> <font class="preprocessor">#define VIDIOCPWCFACTORY        _IO('v', 194)</font>
00039 <font class="preprocessor"></font>
00040  <font class="comment">/* You can manipulate the compression factor. A compression preference of 0</font>
00041 <font class="comment">    means use uncompressed modes when available; 1 is low compression, 2 is</font>
00042 <font class="comment">    medium and 3 is high compression preferred. Of course, the higher the</font>
00043 <font class="comment">    compression, the lower the bandwidth used but more chance of artefacts</font>
00044 <font class="comment">    in the image. The driver automaticly chooses a higher compression when</font>
00045 <font class="comment">    the preferred mode is not available.</font>
00046 <font class="comment">  */</font>
00047  <font class="comment">/* Set preferred compression quality (0 = uncompressed, 3 = highest compression) */</font>
<a name="l00048"></a><a class="code" href="pwc-ioctl_h.html#a7">00048</a> <font class="preprocessor">#define VIDIOCPWCSCQUAL         _IOW('v', 195, int)</font>
00049 <font class="preprocessor"></font> <font class="comment">/* Get preferred compression quality */</font>
<a name="l00050"></a><a class="code" href="pwc-ioctl_h.html#a8">00050</a> <font class="preprocessor">#define VIDIOCPWCGCQUAL         _IOR('v', 195, int)</font>
00051 <font class="preprocessor"></font>
00052  <font class="comment">/* Set AGC (Automatic Gain Control); int &lt; 0 = auto, 0..65535 = fixed */</font>
<a name="l00053"></a><a class="code" href="pwc-ioctl_h.html#a9">00053</a> <font class="preprocessor">#define VIDIOCPWCSAGC           _IOW('v', 200, int)</font>
00054 <font class="preprocessor"></font> <font class="comment">/* Get AGC; int &lt; 0 = auto, &gt;= 0 = fixed. range 0..65535 */</font>
<a name="l00055"></a><a class="code" href="pwc-ioctl_h.html#a10">00055</a> <font class="preprocessor">#define VIDIOCPWCGAGC           _IOR('v', 200, int)</font>
00056 <font class="preprocessor"></font>
<a name="l00057"></a><a class="code" href="pwc-ioctl_h.html#a11">00057</a> <font class="preprocessor">#define VIDIOCPWCSSHUTTER       _IOW('v', 201, int)</font>
00058 <font class="preprocessor"></font>
00059 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Wed Jun 20 02:51:23 2001 for Camstream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>