Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 727fa15453fcace956b835e2377d4269 > files > 901

player-doc-3.0.2-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html>
<!-- $Id: header.html 8799 2010-06-28 04:12:42Z jpgr87 $ -->

<HEAD>


<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<meta name="keywords" content="stage, robot, simulation, player, player/stage">
<link href="doxygen.css" rel="stylesheet" type="text/css">

<style type="text/css">

.floatright { float: right; margin: 0 0 1em 1em; }

body {
  font-family: sans-serif;
  #font-family: Geneva, Verdana, Helvetica, Arial, sans-serif;
  background-color: #FFF;
  color:#000;
}


a:link { 
	color: #A00;
}

a:visited { 
	color: #800;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }


.timestamp { text-align:right; background-color: #DDD; font-size:75%;}

h1 { 
  font-size:160%; 
}

h2 {
  font-size:110%;
  #color: #FFF;
  #background-color: #666;
  #padding:3px;
}

h3 { text-align:left; }

img {
  border: 0;
}

ul.menu { 
    position:relative;
    left:-2.5em;
    margin-bottom:0px;
    margin-top:0px;
}

ul.menu1 { 
    position:relative;
    left:-2.1em;
    margin-bottom:0px;
    margin-top:0px;
}

li.menu { 
    list-style-type: none;
    position:relative;
    #left:-0.5em;
}


#sidebar { position: absolute; left:0px; padding:2em; top:0em; width:12em;}

#content { position: absolute; left:12em; top:0em; padding-left:3em; padding-right:3em; padding-bottom:2em; margin-top:1em; margin-right:2em; }

div.box { background-color:#EEE; border: 1px solid #000; padding: 0.5ex 0.4em 0.5ex 0.6em; margin:1em;  }
div.title { font-weight:bold; background-color:#eee; margin-bottom:2px;}

div.topbar { position: absolute; top:0px; left:9em; margin:1em; }

</style>

<TITLE>Player Manual</TITLE>

</HEAD>

<body>

<div id="sidebar"> 

<h2 style="text-align:center;">
<a href="index.html">
<img width=140 src="http://playerstage.sourceforge.net/images/player_button_v3.png" alt="Player logo"><br></a>
</h2>



<div class="box">
<div class=title>Player</div>

<ul class=menu>
<li class=menu><a href="index.html">Frontpage</a>
<li class=menu><a href="modules.html">Contents</a>
</ul>
</div>

<div class="box">
<div class=title>User</div>

<ul class=menu>
<li class=menu><a href="install.html">Installation</a>
<li class=menu><a href="start.html">Quick start</a>
<li class=menu><a href="supported_hardware.html">Supported&nbsp;devices</a>
<li class=menu><a href="group__tutorials.html">Tutorials</a>
<li class=menu><a href="group__utils.html">Utilities</a>
<li class=menu><a href="group__clientlibs.html">Client&nbsp;libraries</a>
<li class=menu><a href="http://playerstage.sourceforge.net/wiki/Basic_FAQ">FAQ</a>
<li class=menu><a href="help.html">Help</a>

</ul>
</div>

<div class=box>
<div class="title">Developer</div>
<ul class=menu>
<li class=menu><a href="architecture.html">Architecture</a>
<li class=menu><a href="group__libplayercore.html">libplayercore</a>
<ul class=menu1>
<li class=menu><a href="group__interfaces.html">interfaces</a></li>
</ul>
<li class=menu><a href="group__libplayerdrivers.html">libplayerdrivers</a>
<ul class=menu1>
<li class=menu><a href="group__drivers.html">drivers</a></li>
</ul>
<li class=menu><a href="group__libplayercommon.html">libplayercommon</a>
<li class=menu><a href="group__libplayerutils.html">libplayerutils</a>
<li class=menu><a href="group__libplayersd.html">libplayersd</a>
<li class=menu><a href="group__libplayertcp.html">libplayertcp</a>
<li class=menu><a href="group__libplayerxdr.html">libplayerxdr</a>
<li class=menu><a href="todo.html">TODO</a>
</ul>
</div>

<div class=box>
<!-- <a href="http://sourceforge.net"><img border=0 src="http://sourceforge.net/sflogo.php?group_id=42445&type=1"></a> -->
<div class="title">Online</div>
<a href="http://playerstage.sourceforge.net">Homepage</a><br>
<a href="http://sourceforge.net/project/showfiles.php?group_id=42445">Download</a><br>
<a href="http://sourceforge.net/projects/playerstage">Project</a><br>
<a href="http://sourceforge.net/tracker/?group_id=42445">Bugs</a><br>
<a href="http://sourceforge.net/mail/?group_id=42445">Help</a>
</div>


</div>

<div id="content" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="header">
  <div class="headertitle">
<h1>pwc-ioctl.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef PWC_IOCTL_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define PWC_IOCTL_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/* Copyright (C) 2001-2004 Nemosoft Unv.</span>
<a name="l00005"></a>00005 <span class="comment">   Copyright (C) 2004      Luc Saillard (luc@saillard.org)</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">   NOTE: this version of pwc is an unofficial (modified) release of pwc &amp; pcwx</span>
<a name="l00008"></a>00008 <span class="comment">   driver and thus may have bugs that are not present in the original version.</span>
<a name="l00009"></a>00009 <span class="comment">   Please send bug reports and support requests to &lt;luc@saillard.org&gt;.</span>
<a name="l00010"></a>00010 <span class="comment">   The decompression routines have been implemented by reverse-engineering the</span>
<a name="l00011"></a>00011 <span class="comment">   Nemosoft binary pwcx module. Caveat emptor.</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">   This program is free software; you can redistribute it and/or modify</span>
<a name="l00014"></a>00014 <span class="comment">   it under the terms of the GNU General Public License as published by</span>
<a name="l00015"></a>00015 <span class="comment">   the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00016"></a>00016 <span class="comment">   (at your option) any later version.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment">   This program is distributed in the hope that it will be useful,</span>
<a name="l00019"></a>00019 <span class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00020"></a>00020 <span class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00021"></a>00021 <span class="comment">   GNU General Public License for more details.</span>
<a name="l00022"></a>00022 <span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">   You should have received a copy of the GNU General Public License</span>
<a name="l00024"></a>00024 <span class="comment">   along with this program; if not, write to the Free Software</span>
<a name="l00025"></a>00025 <span class="comment">   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00026"></a>00026 <span class="comment">*/</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">/* This is pwc-ioctl.h belonging to PWC 8.12.1</span>
<a name="l00029"></a>00029 <span class="comment">   It contains structures and defines to communicate from user space</span>
<a name="l00030"></a>00030 <span class="comment">   directly to the driver.</span>
<a name="l00031"></a>00031 <span class="comment"> */</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">/*</span>
<a name="l00034"></a>00034 <span class="comment">   Changes</span>
<a name="l00035"></a>00035 <span class="comment">   2001/08/03  Alvarado   Added ioctl constants to access methods for</span>
<a name="l00036"></a>00036 <span class="comment">                          changing white balance and red/blue gains</span>
<a name="l00037"></a>00037 <span class="comment">   2002/12/15  G. H. Fernandez-Toribio   VIDIOCGREALSIZE</span>
<a name="l00038"></a>00038 <span class="comment">   2003/12/13  Nemosft Unv. Some modifications to make interfacing to</span>
<a name="l00039"></a>00039 <span class="comment">               PWCX easier</span>
<a name="l00040"></a>00040 <span class="comment"> */</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="comment">/* These are private ioctl() commands, specific for the Philips webcams.</span>
<a name="l00043"></a>00043 <span class="comment">   They contain functions not found in other webcams, and settings not</span>
<a name="l00044"></a>00044 <span class="comment">   specified in the Video4Linux API.</span>
<a name="l00045"></a>00045 <span class="comment"></span>
<a name="l00046"></a>00046 <span class="comment">   The #define names are built up like follows:</span>
<a name="l00047"></a>00047 <span class="comment">   VIDIOC               VIDeo IOCtl prefix</span>
<a name="l00048"></a>00048 <span class="comment">         PWC            Philps WebCam</span>
<a name="l00049"></a>00049 <span class="comment">            G           optional: Get</span>
<a name="l00050"></a>00050 <span class="comment">            S           optional: Set</span>
<a name="l00051"></a>00051 <span class="comment">             ...        the function</span>
<a name="l00052"></a>00052 <span class="comment"> */</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 
<a name="l00055"></a>00055  <span class="comment">/* Enumeration of image sizes */</span>
<a name="l00056"></a>00056 <span class="preprocessor">#define PSZ_SQCIF       0x00</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_QSIF        0x01</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_QCIF        0x02</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_SIF         0x03</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_CIF         0x04</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_VGA         0x05</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#define PSZ_MAX         6</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/* The frame rate is encoded in the video_window.flags parameter using</span>
<a name="l00066"></a>00066 <span class="comment">   the upper 16 bits, since some flags are defined nowadays. The following</span>
<a name="l00067"></a>00067 <span class="comment">   defines provide a mask and shift to filter out this value.</span>
<a name="l00068"></a>00068 <span class="comment"></span>
<a name="l00069"></a>00069 <span class="comment">   In &#39;Snapshot&#39; mode the camera freezes its automatic exposure and colour</span>
<a name="l00070"></a>00070 <span class="comment">   balance controls.</span>
<a name="l00071"></a>00071 <span class="comment"> */</span>
<a name="l00072"></a>00072 <span class="preprocessor">#define PWC_FPS_SHIFT           16</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor">#define PWC_FPS_MASK            0x00FF0000</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define PWC_FPS_FRMASK          0x003F0000</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define PWC_FPS_SNAPSHOT        0x00400000</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="comment">/* structure for transfering x &amp; y coordinates */</span>
<a name="l00079"></a><a class="code" href="structpwc__coord.html">00079</a> <span class="keyword">struct </span><a class="code" href="structpwc__coord.html">pwc_coord</a>
<a name="l00080"></a>00080 {
<a name="l00081"></a>00081         <span class="keywordtype">int</span> x, y;               <span class="comment">/* guess what */</span>
<a name="l00082"></a>00082         <span class="keywordtype">int</span> size;               <span class="comment">/* size, or offset */</span>
<a name="l00083"></a>00083 };
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="comment">/* Used with VIDIOCPWCPROBE */</span>
<a name="l00087"></a><a class="code" href="structpwc__probe.html">00087</a> <span class="keyword">struct </span><a class="code" href="structpwc__probe.html">pwc_probe</a>
<a name="l00088"></a>00088 {
<a name="l00089"></a>00089         <span class="keywordtype">char</span> name[32];
<a name="l00090"></a>00090         <span class="keywordtype">int</span> type;
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="structpwc__serial.html">00093</a> <span class="keyword">struct </span><a class="code" href="structpwc__serial.html">pwc_serial</a>
<a name="l00094"></a>00094 {
<a name="l00095"></a>00095         <span class="keywordtype">char</span> serial[30];        <span class="comment">/* String with serial number. Contains terminating 0 */</span>
<a name="l00096"></a>00096 };
<a name="l00097"></a>00097         
<a name="l00098"></a>00098 <span class="comment">/* pwc_whitebalance.mode values */</span>
<a name="l00099"></a>00099 <span class="preprocessor">#define PWC_WB_INDOOR           0</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#define PWC_WB_OUTDOOR          1</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#define PWC_WB_FL               2</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#define PWC_WB_MANUAL           3</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#define PWC_WB_AUTO             4</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="comment">/* Used with VIDIOCPWC[SG]AWB (Auto White Balance). </span>
<a name="l00106"></a>00106 <span class="comment">   Set mode to one of the PWC_WB_* values above.</span>
<a name="l00107"></a>00107 <span class="comment">   *red and *blue are the respective gains of these colour components inside </span>
<a name="l00108"></a>00108 <span class="comment">   the camera; range 0..65535</span>
<a name="l00109"></a>00109 <span class="comment">   When &#39;mode&#39; == PWC_WB_MANUAL, &#39;manual_red&#39; and &#39;manual_blue&#39; are set or read; </span>
<a name="l00110"></a>00110 <span class="comment">   otherwise undefined.</span>
<a name="l00111"></a>00111 <span class="comment">   &#39;read_red&#39; and &#39;read_blue&#39; are read-only.</span>
<a name="l00112"></a>00112 <span class="comment">*/</span>   
<a name="l00113"></a><a class="code" href="structpwc__whitebalance.html">00113</a> <span class="keyword">struct </span><a class="code" href="structpwc__whitebalance.html">pwc_whitebalance</a>
<a name="l00114"></a>00114 {
<a name="l00115"></a>00115         <span class="keywordtype">int</span> mode;
<a name="l00116"></a>00116         <span class="keywordtype">int</span> manual_red, manual_blue;    <span class="comment">/* R/W */</span>
<a name="l00117"></a>00117         <span class="keywordtype">int</span> read_red, read_blue;        <span class="comment">/* R/O */</span>
<a name="l00118"></a>00118 };
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="comment">/* </span>
<a name="l00121"></a>00121 <span class="comment">   &#39;control_speed&#39; and &#39;control_delay&#39; are used in automatic whitebalance mode,</span>
<a name="l00122"></a>00122 <span class="comment">   and tell the camera how fast it should react to changes in lighting, and </span>
<a name="l00123"></a>00123 <span class="comment">   with how much delay. Valid values are 0..65535.</span>
<a name="l00124"></a>00124 <span class="comment">*/</span>
<a name="l00125"></a><a class="code" href="structpwc__wb__speed.html">00125</a> <span class="keyword">struct </span><a class="code" href="structpwc__wb__speed.html">pwc_wb_speed</a>
<a name="l00126"></a>00126 {
<a name="l00127"></a>00127         <span class="keywordtype">int</span> control_speed;
<a name="l00128"></a>00128         <span class="keywordtype">int</span> control_delay;
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="comment">/* Used with VIDIOCPWC[SG]LED */</span>
<a name="l00133"></a><a class="code" href="structpwc__leds.html">00133</a> <span class="keyword">struct </span><a class="code" href="structpwc__leds.html">pwc_leds</a>
<a name="l00134"></a>00134 {
<a name="l00135"></a>00135         <span class="keywordtype">int</span> led_on;                     <span class="comment">/* Led on-time; range = 0..25000 */</span>
<a name="l00136"></a>00136         <span class="keywordtype">int</span> led_off;                    <span class="comment">/* Led off-time; range = 0..25000  */</span>
<a name="l00137"></a>00137 };
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="comment">/* Image size (used with GREALSIZE) */</span>
<a name="l00140"></a><a class="code" href="structpwc__imagesize.html">00140</a> <span class="keyword">struct </span><a class="code" href="structpwc__imagesize.html">pwc_imagesize</a>
<a name="l00141"></a>00141 {
<a name="l00142"></a>00142         <span class="keywordtype">int</span> width;
<a name="l00143"></a>00143         <span class="keywordtype">int</span> height;
<a name="l00144"></a>00144 };
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="comment">/* Defines and structures for Motorized Pan &amp; Tilt */</span>
<a name="l00147"></a>00147 <span class="preprocessor">#define PWC_MPT_PAN             0x01</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span><span class="preprocessor">#define PWC_MPT_TILT            0x02</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="preprocessor">#define PWC_MPT_TIMEOUT         0x04 </span><span class="comment">/* for status */</span>
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="comment">/* Set angles; when absolute != 0, the angle is absolute and the </span>
<a name="l00152"></a>00152 <span class="comment">   driver calculates the relative offset for you. This can only</span>
<a name="l00153"></a>00153 <span class="comment">   be used with VIDIOCPWCSANGLE; VIDIOCPWCGANGLE always returns</span>
<a name="l00154"></a>00154 <span class="comment">   absolute angles.</span>
<a name="l00155"></a>00155 <span class="comment"> */</span>   
<a name="l00156"></a><a class="code" href="structpwc__mpt__angles.html">00156</a> <span class="keyword">struct </span><a class="code" href="structpwc__mpt__angles.html">pwc_mpt_angles</a>
<a name="l00157"></a>00157 {
<a name="l00158"></a>00158         <span class="keywordtype">int</span> absolute;           <span class="comment">/* write-only */</span>
<a name="l00159"></a>00159         <span class="keywordtype">int</span> pan;                <span class="comment">/* degrees * 100 */</span>
<a name="l00160"></a>00160         <span class="keywordtype">int</span> tilt;               <span class="comment">/* degress * 100 */</span>
<a name="l00161"></a>00161 };
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 <span class="comment">/* Range of angles of the camera, both horizontally and vertically.</span>
<a name="l00164"></a>00164 <span class="comment"> */</span>
<a name="l00165"></a><a class="code" href="structpwc__mpt__range.html">00165</a> <span class="keyword">struct </span><a class="code" href="structpwc__mpt__range.html">pwc_mpt_range</a>
<a name="l00166"></a>00166 {
<a name="l00167"></a>00167         <span class="keywordtype">int</span> pan_min, pan_max;           <span class="comment">/* degrees * 100 */</span>
<a name="l00168"></a>00168         <span class="keywordtype">int</span> tilt_min, tilt_max;
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170 
<a name="l00171"></a><a class="code" href="structpwc__mpt__status.html">00171</a> <span class="keyword">struct </span><a class="code" href="structpwc__mpt__status.html">pwc_mpt_status</a>
<a name="l00172"></a>00172 {
<a name="l00173"></a>00173         <span class="keywordtype">int</span> status;
<a name="l00174"></a>00174         <span class="keywordtype">int</span> time_pan;
<a name="l00175"></a>00175         <span class="keywordtype">int</span> time_tilt;
<a name="l00176"></a>00176 };
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="comment">/* This is used for out-of-kernel decompression. With it, you can get</span>
<a name="l00180"></a>00180 <span class="comment">   all the necessary information to initialize and use the decompressor</span>
<a name="l00181"></a>00181 <span class="comment">   routines in standalone applications.</span>
<a name="l00182"></a>00182 <span class="comment"> */</span>   
<a name="l00183"></a><a class="code" href="structpwc__video__command.html">00183</a> <span class="keyword">struct </span><a class="code" href="structpwc__video__command.html">pwc_video_command</a>
<a name="l00184"></a>00184 {
<a name="l00185"></a>00185         <span class="keywordtype">int</span> type;               <span class="comment">/* camera type (645, 675, 730, etc.) */</span>
<a name="l00186"></a>00186         <span class="keywordtype">int</span> release;            <span class="comment">/* release number */</span>
<a name="l00187"></a>00187 
<a name="l00188"></a>00188         <span class="keywordtype">int</span> size;               <span class="comment">/* one of PSZ_* */</span>
<a name="l00189"></a>00189         <span class="keywordtype">int</span> alternate;
<a name="l00190"></a>00190         <span class="keywordtype">int</span> command_len;        <span class="comment">/* length of USB video command */</span>
<a name="l00191"></a>00191         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> command_buf[13];  <span class="comment">/* Actual USB video command */</span>
<a name="l00192"></a>00192         <span class="keywordtype">int</span> bandlength;         <span class="comment">/* &gt;0 = compressed */</span>
<a name="l00193"></a>00193         <span class="keywordtype">int</span> frame_size;         <span class="comment">/* Size of one (un)compressed frame */</span>
<a name="l00194"></a>00194 };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <span class="comment">/* Flags for PWCX subroutines. Not all modules honour all flags. */</span>
<a name="l00197"></a>00197 <span class="preprocessor">#define PWCX_FLAG_PLANAR        0x0001</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#define PWCX_FLAG_BAYER         0x0008</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 <span class="comment">/* IOCTL definitions */</span>
<a name="l00202"></a>00202 
<a name="l00203"></a>00203  <span class="comment">/* Restore user settings */</span>
<a name="l00204"></a>00204 <span class="preprocessor">#define VIDIOCPWCRUSER          _IO(&#39;v&#39;, 192)</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span> <span class="comment">/* Save user settings */</span>
<a name="l00206"></a>00206 <span class="preprocessor">#define VIDIOCPWCSUSER          _IO(&#39;v&#39;, 193)</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span> <span class="comment">/* Restore factory settings */</span>
<a name="l00208"></a>00208 <span class="preprocessor">#define VIDIOCPWCFACTORY        _IO(&#39;v&#39;, 194)</span>
<a name="l00209"></a>00209 <span class="preprocessor"></span>
<a name="l00210"></a>00210  <span class="comment">/* You can manipulate the compression factor. A compression preference of 0</span>
<a name="l00211"></a>00211 <span class="comment">    means use uncompressed modes when available; 1 is low compression, 2 is</span>
<a name="l00212"></a>00212 <span class="comment">    medium and 3 is high compression preferred. Of course, the higher the</span>
<a name="l00213"></a>00213 <span class="comment">    compression, the lower the bandwidth used but more chance of artefacts</span>
<a name="l00214"></a>00214 <span class="comment">    in the image. The driver automatically chooses a higher compression when</span>
<a name="l00215"></a>00215 <span class="comment">    the preferred mode is not available.</span>
<a name="l00216"></a>00216 <span class="comment">  */</span>
<a name="l00217"></a>00217  <span class="comment">/* Set preferred compression quality (0 = uncompressed, 3 = highest compression) */</span>
<a name="l00218"></a>00218 <span class="preprocessor">#define VIDIOCPWCSCQUAL         _IOW(&#39;v&#39;, 195, int)</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span> <span class="comment">/* Get preferred compression quality */</span>
<a name="l00220"></a>00220 <span class="preprocessor">#define VIDIOCPWCGCQUAL         _IOR(&#39;v&#39;, 195, int)</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span>
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="comment">/* Retrieve serial number of camera */</span>
<a name="l00224"></a>00224 <span class="preprocessor">#define VIDIOCPWCGSERIAL        _IOR(&#39;v&#39;, 198, struct pwc_serial)</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span>
<a name="l00226"></a>00226  <span class="comment">/* This is a probe function; since so many devices are supported, it</span>
<a name="l00227"></a>00227 <span class="comment">    becomes difficult to include all the names in programs that want to</span>
<a name="l00228"></a>00228 <span class="comment">    check for the enhanced Philips stuff. So in stead, try this PROBE;</span>
<a name="l00229"></a>00229 <span class="comment">    it returns a structure with the original name, and the corresponding</span>
<a name="l00230"></a>00230 <span class="comment">    Philips type.</span>
<a name="l00231"></a>00231 <span class="comment">    To use, fill the structure with zeroes, call PROBE and if that succeeds,</span>
<a name="l00232"></a>00232 <span class="comment">    compare the name with that returned from VIDIOCGCAP; they should be the</span>
<a name="l00233"></a>00233 <span class="comment">    same. If so, you can be assured it is a Philips (OEM) cam and the type</span>
<a name="l00234"></a>00234 <span class="comment">    is valid.</span>
<a name="l00235"></a>00235 <span class="comment"> */</span>
<a name="l00236"></a>00236 <span class="preprocessor">#define VIDIOCPWCPROBE          _IOR(&#39;v&#39;, 199, struct pwc_probe)</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span>
<a name="l00238"></a>00238  <span class="comment">/* Set AGC (Automatic Gain Control); int &lt; 0 = auto, 0..65535 = fixed */</span>
<a name="l00239"></a>00239 <span class="preprocessor">#define VIDIOCPWCSAGC           _IOW(&#39;v&#39;, 200, int)</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span> <span class="comment">/* Get AGC; int &lt; 0 = auto; &gt;= 0 = fixed, range 0..65535 */</span>
<a name="l00241"></a>00241 <span class="preprocessor">#define VIDIOCPWCGAGC           _IOR(&#39;v&#39;, 200, int)</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span> <span class="comment">/* Set shutter speed; int &lt; 0 = auto; &gt;= 0 = fixed, range 0..65535 */</span>
<a name="l00243"></a>00243 <span class="preprocessor">#define VIDIOCPWCSSHUTTER       _IOW(&#39;v&#39;, 201, int)</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>
<a name="l00245"></a>00245  <span class="comment">/* Color compensation (Auto White Balance) */</span>
<a name="l00246"></a>00246 <span class="preprocessor">#define VIDIOCPWCSAWB           _IOW(&#39;v&#39;, 202, struct pwc_whitebalance)</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGAWB           _IOR(&#39;v&#39;, 202, struct pwc_whitebalance)</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>
<a name="l00249"></a>00249  <span class="comment">/* Auto WB speed */</span>
<a name="l00250"></a>00250 <span class="preprocessor">#define VIDIOCPWCSAWBSPEED      _IOW(&#39;v&#39;, 203, struct pwc_wb_speed)</span>
<a name="l00251"></a>00251 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGAWBSPEED      _IOR(&#39;v&#39;, 203, struct pwc_wb_speed)</span>
<a name="l00252"></a>00252 <span class="preprocessor"></span>
<a name="l00253"></a>00253  <span class="comment">/* LEDs on/off/blink; int range 0..65535 */</span>
<a name="l00254"></a>00254 <span class="preprocessor">#define VIDIOCPWCSLED           _IOW(&#39;v&#39;, 205, struct pwc_leds)</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGLED           _IOR(&#39;v&#39;, 205, struct pwc_leds)</span>
<a name="l00256"></a>00256 <span class="preprocessor"></span>
<a name="l00257"></a>00257   <span class="comment">/* Contour (sharpness); int &lt; 0 = auto, 0..65536 = fixed */</span>
<a name="l00258"></a>00258 <span class="preprocessor">#define VIDIOCPWCSCONTOUR       _IOW(&#39;v&#39;, 206, int)</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGCONTOUR       _IOR(&#39;v&#39;, 206, int)</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span>
<a name="l00261"></a>00261   <span class="comment">/* Backlight compensation; 0 = off, otherwise on */</span>
<a name="l00262"></a>00262 <span class="preprocessor">#define VIDIOCPWCSBACKLIGHT     _IOW(&#39;v&#39;, 207, int)</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGBACKLIGHT     _IOR(&#39;v&#39;, 207, int)</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span>
<a name="l00265"></a>00265   <span class="comment">/* Flickerless mode; = 0 off, otherwise on */</span>
<a name="l00266"></a>00266 <span class="preprocessor">#define VIDIOCPWCSFLICKER       _IOW(&#39;v&#39;, 208, int)</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGFLICKER       _IOR(&#39;v&#39;, 208, int)  </span>
<a name="l00268"></a>00268 <span class="preprocessor"></span>
<a name="l00269"></a>00269   <span class="comment">/* Dynamic noise reduction; 0 off, 3 = high noise reduction */</span>
<a name="l00270"></a>00270 <span class="preprocessor">#define VIDIOCPWCSDYNNOISE      _IOW(&#39;v&#39;, 209, int)</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCGDYNNOISE      _IOR(&#39;v&#39;, 209, int)</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>
<a name="l00273"></a>00273  <span class="comment">/* Real image size as used by the camera; tells you whether or not there&#39;s a gray border around the image */</span>
<a name="l00274"></a>00274 <span class="preprocessor">#define VIDIOCPWCGREALSIZE      _IOR(&#39;v&#39;, 210, struct pwc_imagesize)</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span>
<a name="l00276"></a>00276  <span class="comment">/* Motorized pan &amp; tilt functions */</span> 
<a name="l00277"></a>00277 <span class="preprocessor">#define VIDIOCPWCMPTRESET       _IOW(&#39;v&#39;, 211, int)</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCMPTGRANGE      _IOR(&#39;v&#39;, 211, struct pwc_mpt_range)</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCMPTSANGLE      _IOW(&#39;v&#39;, 212, struct pwc_mpt_angles)</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCMPTGANGLE      _IOR(&#39;v&#39;, 212, struct pwc_mpt_angles)</span>
<a name="l00281"></a>00281 <span class="preprocessor"></span><span class="preprocessor">#define VIDIOCPWCMPTSTATUS      _IOR(&#39;v&#39;, 213, struct pwc_mpt_status)</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span>
<a name="l00283"></a>00283  <span class="comment">/* Get the USB set-video command; needed for initializing libpwcx */</span>
<a name="l00284"></a>00284 <span class="preprocessor">#define VIDIOCPWCGVIDCMD        _IOR(&#39;v&#39;, 215, struct pwc_video_command)</span>
<a name="l00285"></a><a class="code" href="structpwc__table__init__buffer.html">00285</a> <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structpwc__table__init__buffer.html">pwc_table_init_buffer</a> {
<a name="l00286"></a>00286    <span class="keywordtype">int</span> len;
<a name="l00287"></a>00287    <span class="keywordtype">char</span> *buffer;
<a name="l00288"></a>00288 
<a name="l00289"></a>00289 };
<a name="l00290"></a>00290 <span class="preprocessor">#define VIDIOCPWCGVIDTABLE      _IOR(&#39;v&#39;, 216, struct pwc_table_init_buffer)</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span>
<a name="l00292"></a>00292 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- render the modification time of the source file -->


<div class="timestamp">
<hr>

<table style="width:100%;">
<tr>
<td style="text-align:left;">
Last updated 12 September 2005 21:38:45
<!--
<td style="text-align:right;">
<a href="http://validator.w3.org/check/referer"><img style="vertical-align:middle;border:0;width:88px;height:31px"
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!"></a>

 <a href="http://jigsaw.w3.org/css-validator/">
  <img style="vertical-align:middle;border:0;width:88px;height:31px"
       src="http://jigsaw.w3.org/css-validator/images/vcss"
       alt="Valid CSS!">
 </a>
-->
</tr>
</table>
</div>


</tr>
</table>

</BODY>
</HTML>