Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b7b6877999d0754e8ed227e0b2f603dc > files > 34

syntek-1.3.1-6mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>SyntekUSBVideoCamera: stk11xx-dev-6a31.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>stk11xx-dev-6a31.c File Reference</h1>Driver for Syntek USB video camera.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;linux/module.h&gt;</code><br>
<code>#include &lt;linux/init.h&gt;</code><br>
<code>#include &lt;linux/kernel.h&gt;</code><br>
<code>#include &lt;linux/version.h&gt;</code><br>
<code>#include &lt;linux/errno.h&gt;</code><br>
<code>#include &lt;linux/slab.h&gt;</code><br>
<code>#include &lt;linux/kref.h&gt;</code><br>
<code>#include &lt;linux/usb.h&gt;</code><br>
<code>#include &lt;media/v4l2-common.h&gt;</code><br>
<code>#include &quot;<a class="el" href="stk11xx_8h_source.html">stk11xx.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="stk11xx-dev_8h_source.html">stk11xx-dev.h</a>&quot;</code><br>

<p>
<a href="stk11xx-dev-6a31_8c_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#f2eac19013c70befa0392c4b86010ede">dev_stk6a31_initialize_device</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to initialize the device.  <a href="#f2eac19013c70befa0392c4b86010ede"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#5ae564247398c79e6ceb9df73ed46703">dev_stk6a31_configure_device</a> (struct usb_stk11xx *dev, int step)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to configure the device.  <a href="#5ae564247398c79e6ceb9df73ed46703"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#80a76fd34560614e46ffed1ea546b179">dev_stk6a31_camera_asleep</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wake-up the camera.  <a href="#80a76fd34560614e46ffed1ea546b179"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#80cc7213072b78dc31fae935a02b0e5e">dev_stk6a31_init_camera</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function initializes the device for the stream.  <a href="#80cc7213072b78dc31fae935a02b0e5e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#92ab6f0340b1fa6e59535c89738b8953">dev_stk6a31_sensor_settings</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to set default sensor settings.  <a href="#92ab6f0340b1fa6e59535c89738b8953"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#5f1c2b135e9b48a232bb45a3cd683c43">dev_stk6a31_camera_settings</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#5f1c2b135e9b48a232bb45a3cd683c43"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#257a46ade40beddf488faea3c5111e06">dev_stk6a31_set_camera_quality</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#257a46ade40beddf488faea3c5111e06"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#13991cc1763c0b7f92779149bc4f7c04">dev_stk6a31_set_camera_fps</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to modify the settings of the camera.  <a href="#13991cc1763c0b7f92779149bc4f7c04"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#4825fb4caf03adaea6fda198d67dba8a">dev_stk6a31_start_stream</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function sets the device to start the stream.  <a href="#4825fb4caf03adaea6fda198d67dba8a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#ee6f440bf3afacfba4455521b1f33557">dev_stk6a31_reconf_camera</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reconfigure the camera before the stream.  <a href="#ee6f440bf3afacfba4455521b1f33557"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-dev-6a31_8c.html#fbf9b4ef71342f7c5c3fec4ea6ea0065">dev_stk6a31_stop_stream</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function sets the device to stop the stream.  <a href="#fbf9b4ef71342f7c5c3fec4ea6ea0065"></a><br></td></tr>
</table>
<hr><h2>Detailed Description</h2>
Driver for Syntek USB video camera. 
<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Nicolas VIVIEN </dd></dl>
<dl class="date" compact><dt><b>Date:</b></dt><dd>2007-11-23 </dd></dl>
<dl class="version" compact><dt><b>Version:</b></dt><dd>v1.3.x</dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Copyright (C) Nicolas VIVIEN</dd></dl>
<dl class="user" compact><dt><b>Licences</b></dt><dd></dd></dl>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.<p>
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p>
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<p>
<dl class="user" compact><dt><b>SubVersion</b></dt><dd></dd></dl>
<dl class="rcs" compact><dt><b>Date</b></dt><dd>2007-12-08 11:34:45 +0100 (sam, 08 déc 2007) </dd></dl>
<dl class="rcs" compact><dt><b>Revision</b></dt><dd>68 </dd></dl>
<dl class="rcs" compact><dt><b>Author</b></dt><dd>nicklas79 </dd></dl>
<dl class="rcs" compact><dt><b>HeadURL</b></dt><dd><a href="https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/1.3.1/stk11xx-dev-6a31.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/1.3.1/stk11xx-dev-6a31.c</a> </dd></dl>

<p>Definition in file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="80a76fd34560614e46ffed1ea546b179"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_camera_asleep" ref="80a76fd34560614e46ffed1ea546b179" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_camera_asleep           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Wake-up the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This function permits to wake-up the device. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00541">541</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00270">dev_stk11xx_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00571">dev_stk6a31_init_camera()</a>, and <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00069">dev_stk6a31_initialize_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5f1c2b135e9b48a232bb45a3cd683c43"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_camera_settings" ref="5f1c2b135e9b48a232bb45a3cd683c43" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_camera_settings           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the settings :<ul>
<li>brightness</li><li>contrast</li><li>white balance</li><li>... </li></ul>

<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00717">717</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00321">dev_stk11xx_camera_settings()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5ae564247398c79e6ceb9df73ed46703"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_configure_device" ref="5ae564247398c79e6ceb9df73ed46703" args="(struct usb_stk11xx *dev, int step)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_configure_device           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>step</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to configure the device. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>step</em>&nbsp;</td><td>The step of configuration [0-11]</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
The configuration of device is composed of 12 steps. This function is called by the initialization process.<p>
We don't know the meaning of these steps ! We only replay the USB log. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">154</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00605">dev_stk6a31_sensor_settings()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00571">dev_stk6a31_init_camera()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00069">dev_stk6a31_initialize_device()</a>, and <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00847">dev_stk6a31_reconf_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="80cc7213072b78dc31fae935a02b0e5e"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_init_camera" ref="80cc7213072b78dc31fae935a02b0e5e" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_init_camera           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function initializes the device for the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
It's the start. This function has to be called at first, before enabling the video stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00571">571</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00247">dev_stk11xx_camera_off()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00541">dev_stk6a31_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">dev_stk6a31_configure_device()</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00478">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00110">dev_stk11xx_init_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f2eac19013c70befa0392c4b86010ede"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_initialize_device" ref="f2eac19013c70befa0392c4b86010ede" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_initialize_device           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to initialize the device. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This function must be called at first. It's the start of the initialization process. After this process, the device is completly initalized and it's ready.<p>
This function is written from the USB log. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00069">69</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00541">dev_stk6a31_camera_asleep()</a>, <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">dev_stk6a31_configure_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00145">STK_INFO</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00478">usb_stk11xx_set_feature()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00062">dev_stk11xx_initialize_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ee6f440bf3afacfba4455521b1f33557"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_reconf_camera" ref="ee6f440bf3afacfba4455521b1f33557" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_reconf_camera           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reconfigure the camera before the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
Before enabling the video stream, you have to reconfigure the device. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00847">847</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00321">dev_stk11xx_camera_settings()</a>, and <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">dev_stk6a31_configure_device()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00515">dev_stk11xx_reconf_camera()</a>.</p>

</div>
</div><p>
<a class="anchor" name="92ab6f0340b1fa6e59535c89738b8953"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_sensor_settings" ref="92ab6f0340b1fa6e59535c89738b8953" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_sensor_settings           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to set default sensor settings. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
We set some registers in using a I2C bus. WARNING, the sensor settings can be different following the situation. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00605">605</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00146">STK_ERROR</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00154">dev_stk6a31_configure_device()</a>.</p>

</div>
</div><p>
<a class="anchor" name="13991cc1763c0b7f92779149bc4f7c04"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_set_camera_fps" ref="13991cc1763c0b7f92779149bc4f7c04" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_set_camera_fps           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the frame rate per second. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00798">798</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00420">dev_stk11xx_set_camera_fps()</a>.</p>

</div>
</div><p>
<a class="anchor" name="257a46ade40beddf488faea3c5111e06"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_set_camera_quality" ref="257a46ade40beddf488faea3c5111e06" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_set_camera_quality           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function permits to modify the settings of the camera. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
This functions permits to modify the settings :<ul>
<li>brightness</li><li>contrast</li><li>white balance</li><li>... </li></ul>

<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00764">764</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00161">dev_stk11xx_check_device()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00372">dev_stk11xx_set_camera_quality()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4825fb4caf03adaea6fda198d67dba8a"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_start_stream" ref="4825fb4caf03adaea6fda198d67dba8a" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_start_stream           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function sets the device to start the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
After the initialization of the device and the initialization of the video stream, this function permits to enable the stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00814">814</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>References <a class="el" href="stk11xx-usb_8c_source.html#l00576">usb_stk11xx_read_registry()</a>, and <a class="el" href="stk11xx-usb_8c_source.html#l00544">usb_stk11xx_write_registry()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00468">dev_stk11xx_start_stream()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fbf9b4ef71342f7c5c3fec4ea6ea0065"></a><!-- doxytag: member="stk11xx&#45;dev&#45;6a31.c::dev_stk6a31_stop_stream" ref="fbf9b4ef71342f7c5c3fec4ea6ea0065" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dev_stk6a31_stop_stream           </td>
          <td>(</td>
          <td class="paramtype">struct usb_stk11xx *&nbsp;</td>
          <td class="paramname"> <em>dev</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function sets the device to stop the stream. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if all is OK</dd></dl>
You use the function start_stream to enable the video stream. So you have to use the function stop_strem to disable the video stream. 
<p>Definition at line <a class="el" href="stk11xx-dev-6a31_8c_source.html#l00867">867</a> of file <a class="el" href="stk11xx-dev-6a31_8c_source.html">stk11xx-dev-6a31.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-dev_8c_source.html#l00563">dev_stk11xx_stop_stream()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Sep 20 12:18:50 2009 for SyntekUSBVideoCamera by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>