Sophie

Sophie

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

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-bayer.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-bayer.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>

<p>
<a href="stk11xx-bayer_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>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fa99ec4acc4ecb2dc3c2d05da15d0e3f"></a><!-- doxytag: member="stk11xx&#45;bayer.c::MAX" ref="fa99ec4acc4ecb2dc3c2d05da15d0e3f" args="(a, b)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>MAX</b>(a, b)&nbsp;&nbsp;&nbsp;((a)&gt;(b)?(a):(b))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3acffbd305ee72dcd4593c0d8af64a4f"></a><!-- doxytag: member="stk11xx&#45;bayer.c::MIN" ref="3acffbd305ee72dcd4593c0d8af64a4f" args="(a, b)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>MIN</b>(a, b)&nbsp;&nbsp;&nbsp;((a)&lt;(b)?(a):(b))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a76ddc15243738f775eedd2b71fb6c0"></a><!-- doxytag: member="stk11xx&#45;bayer.c::CLIP" ref="0a76ddc15243738f775eedd2b71fb6c0" args="(a, low, high)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>CLIP</b>(a, low, high)&nbsp;&nbsp;&nbsp;MAX((low),MIN((high),(a)))</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#4cee14da251a2cf93345ea8917333be7">stk11xx_b2rgb24</a> (uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to RGB24.  <a href="#4cee14da251a2cf93345ea8917333be7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#1687564c87776276417ab1cb081da473">stk11xx_b2rgb32</a> (uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to RGB32.  <a href="#1687564c87776276417ab1cb081da473"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#6bcbf1bf31134702d6d0bd68dc6cf1ff">stk11xx_b2bgr24</a> (uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to BGR24.  <a href="#6bcbf1bf31134702d6d0bd68dc6cf1ff"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#7da25f2658112c5df6f4ba8a110fc659">stk11xx_b2bgr32</a> (uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to BGR32.  <a href="#7da25f2658112c5df6f4ba8a110fc659"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#392c3eb4d04531cb734ba5a8450ba251">stk11xx_b2uyvy</a> (uint8_t *bayer, uint8_t *yuv, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to YUV (UYVY).  <a href="#392c3eb4d04531cb734ba5a8450ba251"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#fc1e5a5cca4978b3640306f0b7166a4f">stk11xx_b2yuyv</a> (uint8_t *bayer, uint8_t *yuv, struct stk11xx_coord *image, struct stk11xx_coord *view, const int <a class="el" href="stk11xx-usb_8c.html#16f641fad5b6a3a19b62c1486d413728">hflip</a>, const int <a class="el" href="stk11xx-usb_8c.html#5cd2e203aadee84bf52b7c8abf5af815">vflip</a>, const int factor)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function permits to convert an image from bayer to YUV (YUYV).  <a href="#fc1e5a5cca4978b3640306f0b7166a4f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-bayer_8c.html#620c3dcd6b59c0bd2dcad4b8741a8c9d">stk11xx_correct_brightness</a> (uint8_t *img, const int width, const int height, const int <a class="el" href="stk11xx-usb_8c.html#f3e3271e8fbc9f3863a2989d0105b070">brightness</a>, int palette, int depth)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Correct the brightness of an image.  <a href="#620c3dcd6b59c0bd2dcad4b8741a8c9d"></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-bayer_8c.html#9ee33d88b9cef4d591b6f426599ac1de">stk11xx_decompress</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decompress a frame.  <a href="#9ee33d88b9cef4d591b6f426599ac1de"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51070c4547e419a3b2dc9dcda7e4f99e"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_yuv_interp" ref="51070c4547e419a3b2dc9dcda7e4f99e" args="[256][8]" -->
static signed short&nbsp;</td><td class="memItemRight" valign="bottom"><b>stk11xx_yuv_interp</b> [256][8]</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>Martin ROOS </dd></dl>
<dl class="date" compact><dt><b>Date:</b></dt><dd>2006-01-14 </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></dd></dl>
<dl class="rcs" compact><dt><b>Revision</b></dt><dd></dd></dl>
<dl class="rcs" compact><dt><b>Author</b></dt><dd></dd></dl>
<dl class="rcs" compact><dt><b>HeadURL</b></dt><dd></dd></dl>

<p>Definition in file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="6bcbf1bf31134702d6d0bd68dc6cf1ff"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2bgr24" ref="6bcbf1bf31134702d6d0bd68dc6cf1ff" args="(uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2bgr24           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bgr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to BGR24. 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bgr</em>&nbsp;</td><td>Buffer with the BGR data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00660">660</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="7da25f2658112c5df6f4ba8a110fc659"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2bgr32" ref="7da25f2658112c5df6f4ba8a110fc659" args="(uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2bgr32           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bgr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to BGR32. 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bgr</em>&nbsp;</td><td>Buffer with the BGR data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00799">799</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4cee14da251a2cf93345ea8917333be7"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2rgb24" ref="4cee14da251a2cf93345ea8917333be7" args="(uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2rgb24           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>rgb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to RGB24. 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rgb</em>&nbsp;</td><td>Buffer with the RGB data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00374">374</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="1687564c87776276417ab1cb081da473"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2rgb32" ref="1687564c87776276417ab1cb081da473" args="(uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2rgb32           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>rgb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to RGB32. 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rgb</em>&nbsp;</td><td>Buffer with the RGB data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00513">513</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="392c3eb4d04531cb734ba5a8450ba251"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2uyvy" ref="392c3eb4d04531cb734ba5a8450ba251" args="(uint8_t *bayer, uint8_t *yuv, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2uyvy           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>yuv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to YUV (UYVY). 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>yuv</em>&nbsp;</td><td>Buffer with the YUV data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00946">946</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fc1e5a5cca4978b3640306f0b7166a4f"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_b2yuyv" ref="fc1e5a5cca4978b3640306f0b7166a4f" args="(uint8_t *bayer, uint8_t *yuv, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_b2yuyv           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>bayer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>yuv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct stk11xx_coord *&nbsp;</td>
          <td class="paramname"> <em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>hflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>vflip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>factor</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 convert an image from bayer to YUV (YUYV). 
<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>bayer</em>&nbsp;</td><td>Buffer with the bayer data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>image</em>&nbsp;</td><td>Size of image </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>Size of view </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hflip</em>&nbsp;</td><td>Horizontal flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vflip</em>&nbsp;</td><td>Vertical flip </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Factor of redimensioning</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>yuv</em>&nbsp;</td><td>Buffer with the YUV data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l01125">1125</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="620c3dcd6b59c0bd2dcad4b8741a8c9d"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_correct_brightness" ref="620c3dcd6b59c0bd2dcad4b8741a8c9d" args="(uint8_t *img, const int width, const int height, const int brightness, int palette, int depth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_correct_brightness           </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>brightness</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>palette</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>depth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Correct the brightness of an image. 
<p>
This function permits to correct the brightness of an image.<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>img</em>&nbsp;</td><td>Buffer to RGB/YUV data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Width of frame </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Height of frame </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>brightness</em>&nbsp;</td><td>Brightness correction </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>depth</em>&nbsp;</td><td>Color depth</td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rgb</em>&nbsp;</td><td>Buffer to RGB/YUV data </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00270">270</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9ee33d88b9cef4d591b6f426599ac1de"></a><!-- doxytag: member="stk11xx&#45;bayer.c::stk11xx_decompress" ref="9ee33d88b9cef4d591b6f426599ac1de" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_decompress           </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>
Decompress a frame. 
<p>
This function permits to decompress a frame from the video 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>

<p>Definition at line <a class="el" href="stk11xx-bayer_8c_source.html#l00155">155</a> of file <a class="el" href="stk11xx-bayer_8c_source.html">stk11xx-bayer.c</a>.</p>

<p>References <a class="el" href="stk11xx-bayer_8c_source.html#l00660">stk11xx_b2bgr24()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l00799">stk11xx_b2bgr32()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l00374">stk11xx_b2rgb24()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l00513">stk11xx_b2rgb32()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l00946">stk11xx_b2uyvy()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l01125">stk11xx_b2yuyv()</a>, and <a class="el" href="stk11xx-bayer_8c_source.html#l00270">stk11xx_correct_brightness()</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-buf_8c_source.html#l00408">stk11xx_handle_frame()</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>