Sophie

Sophie

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

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-buf.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-buf.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/vmalloc.h&gt;</code><br>
<code>#include &lt;linux/mm.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-buf_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">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-buf_8c.html#b4a4e3bb8dfa019f796d69aa219ab036">stk11xx_rvmalloc</a> (unsigned long size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate a buffer.  <a href="#b4a4e3bb8dfa019f796d69aa219ab036"></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-buf_8c.html#8280ec87ea86b172bf3b44394a243158">stk11xx_rvfree</a> (void *mem, unsigned long size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free a buffer.  <a href="#8280ec87ea86b172bf3b44394a243158"></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-buf_8c.html#a04b5e0d601d6e4bd6a5dd53579b9628">stk11xx_allocate_buffers</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate all ISOC buffers.  <a href="#a04b5e0d601d6e4bd6a5dd53579b9628"></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-buf_8c.html#0440ed10dc62dfbe7cec72e328dec04f">stk11xx_reset_buffers</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset all ISOC buffers.  <a href="#0440ed10dc62dfbe7cec72e328dec04f"></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-buf_8c.html#cd7e46aba32bcbb5d429b21878d44845">stk11xx_clear_buffers</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear current buffers.  <a href="#cd7e46aba32bcbb5d429b21878d44845"></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-buf_8c.html#3bc8bb033fc9697ba1e8b42be11a6efe">stk11xx_free_buffers</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Release all buffers.  <a href="#3bc8bb033fc9697ba1e8b42be11a6efe"></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-buf_8c.html#5805bf7c1173f7f6063c1c5934c73e1b">stk11xx_next_image</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prepare the next image.  <a href="#5805bf7c1173f7f6063c1c5934c73e1b"></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-buf_8c.html#42ee71f1080bbad747679c4b1f5040f4">stk11xx_next_frame</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prepare the next frame.  <a href="#42ee71f1080bbad747679c4b1f5040f4"></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-buf_8c.html#21bfe8791f1f53fcd64a185dc6fdc686">stk11xx_handle_frame</a> (struct usb_stk11xx *dev)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handler frame.  <a href="#21bfe8791f1f53fcd64a185dc6fdc686"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stk11xx-buf_8c.html#385b5670ebc09051672b831ac96d7e9d">default_nbrframebuf</a> = 3</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>2006-10-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-buf.c">https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/tags/1.3.1/stk11xx-buf.c</a> </dd></dl>

<p>Definition in file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a04b5e0d601d6e4bd6a5dd53579b9628"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_allocate_buffers" ref="a04b5e0d601d6e4bd6a5dd53579b9628" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_allocate_buffers           </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>
Allocate all ISOC buffers. 
<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 reserved the memory for each ISOC buffer. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00129">129</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx-buf_8c_source.html#l00056">default_nbrframebuf</a>, <a class="el" href="stk11xx_8h_source.html#l00085">ISO_BUFFER_SIZE</a>, <a class="el" href="stk11xx_8h_source.html#l00082">MAX_ISO_BUFS</a>, <a class="el" href="stk11xx_8h_source.html#l00096">STK11XX_FRAME_SIZE</a>, <a class="el" href="stk11xx_8h_source.html#l00095">STK11XX_MAX_IMAGES</a>, <a class="el" href="stk11xx-buf_8c_source.html#l00068">stk11xx_rvmalloc()</a>, <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>, and <a class="el" href="stk11xx_8h_source.html#l00146">STK_ERROR</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cd7e46aba32bcbb5d429b21878d44845"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_clear_buffers" ref="cd7e46aba32bcbb5d429b21878d44845" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_clear_buffers           </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>
Clear current buffers. 
<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 clear the memory. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00271">271</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3bc8bb033fc9697ba1e8b42be11a6efe"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_free_buffers" ref="3bc8bb033fc9697ba1e8b42be11a6efe" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_free_buffers           </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>
Release all buffers. 
<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 release and free the memory for each ISOC buffer. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00288">288</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx-buf_8c_source.html#l00056">default_nbrframebuf</a>, <a class="el" href="stk11xx_8h_source.html#l00082">MAX_ISO_BUFS</a>, <a class="el" href="stk11xx-buf_8c_source.html#l00101">stk11xx_rvfree()</a>, and <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00339">v4l_stk11xx_release()</a>.</p>

</div>
</div><p>
<a class="anchor" name="21bfe8791f1f53fcd64a185dc6fdc686"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_handle_frame" ref="21bfe8791f1f53fcd64a185dc6fdc686" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_handle_frame           </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>
Handler frame. 
<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 gets called for the isochronous pipe. This function is only called when a frame is ready. So we have to be fast to decompress the data. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00408">408</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx-dev_8c_source.html#l00201">dev_stk11xx_watchdog_camera()</a>, <a class="el" href="stk11xx-bayer_8c_source.html#l00155">stk11xx_decompress()</a>, and <a class="el" href="stk11xx_8h_source.html#l00171">STK_STREAM</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00383">v4l_stk11xx_read()</a>.</p>

</div>
</div><p>
<a class="anchor" name="42ee71f1080bbad747679c4b1f5040f4"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_next_frame" ref="42ee71f1080bbad747679c4b1f5040f4" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_next_frame           </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>
Prepare the next frame. 
<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 is called when a frame is ready, so as to prepare the next frame. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00353">353</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx_8h_source.html#l00146">STK_ERROR</a>, and <a class="el" href="stk11xx_8h_source.html#l00171">STK_STREAM</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-usb_8c_source.html#l00246">usb_stk11xx_isoc_handler()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5805bf7c1173f7f6063c1c5934c73e1b"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_next_image" ref="5805bf7c1173f7f6063c1c5934c73e1b" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_next_image           </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>
Prepare the next 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>dev</em>&nbsp;</td><td>Device structure</td></tr>
  </table>
</dl>
This function is called when an image is ready, so as to prepare the next image. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00335">335</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx_8h_source.html#l00171">STK_STREAM</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00590">v4l_stk11xx_do_ioctl()</a>, and <a class="el" href="stk11xx-v4l_8c_source.html#l00383">v4l_stk11xx_read()</a>.</p>

</div>
</div><p>
<a class="anchor" name="0440ed10dc62dfbe7cec72e328dec04f"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_reset_buffers" ref="0440ed10dc62dfbe7cec72e328dec04f" args="(struct usb_stk11xx *dev)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int stk11xx_reset_buffers           </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>
Reset all ISOC buffers. 
<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 reset all ISOC buffers. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00222">222</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>References <a class="el" href="stk11xx_8h_source.html#l00148">STK_DEBUG</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-v4l_8c_source.html#l00258">v4l_stk11xx_open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8280ec87ea86b172bf3b44394a243158"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_rvfree" ref="8280ec87ea86b172bf3b44394a243158" args="(void *mem, unsigned long size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stk11xx_rvfree           </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>mem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Free a buffer. 
<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>mem</em>&nbsp;</td><td>Memory address </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>Size of allocated memory</td></tr>
  </table>
</dl>
This function permits to free a buffer. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00101">101</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-buf_8c_source.html#l00288">stk11xx_free_buffers()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b4a4e3bb8dfa019f796d69aa219ab036"></a><!-- doxytag: member="stk11xx&#45;buf.c::stk11xx_rvmalloc" ref="b4a4e3bb8dfa019f796d69aa219ab036" args="(unsigned long size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* stk11xx_rvmalloc           </td>
          <td>(</td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>size</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allocate a buffer. 
<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>size</em>&nbsp;</td><td>Size of memory</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Address on the allocated memory</dd></dl>
This function permits to allocate a buffer in memory. 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00068">68</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-buf_8c_source.html#l00129">stk11xx_allocate_buffers()</a>.</p>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="385b5670ebc09051672b831ac96d7e9d"></a><!-- doxytag: member="stk11xx&#45;buf.c::default_nbrframebuf" ref="385b5670ebc09051672b831ac96d7e9d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="stk11xx-buf_8c.html#385b5670ebc09051672b831ac96d7e9d">default_nbrframebuf</a> = 3<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Number of frame buffer by default 
<p>Definition at line <a class="el" href="stk11xx-buf_8c_source.html#l00056">56</a> of file <a class="el" href="stk11xx-buf_8c_source.html">stk11xx-buf.c</a>.</p>

<p>Referenced by <a class="el" href="stk11xx-buf_8c_source.html#l00129">stk11xx_allocate_buffers()</a>, and <a class="el" href="stk11xx-buf_8c_source.html#l00288">stk11xx_free_buffers()</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>