1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>CAMERA_GetBytesAtOnce</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">CAMERA_GetBytesAtOnce <IMG src="../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <CODE>#include &lt;twl/camera.h&gt;</CODE><BR>
16  <BR>
17  <CODE>u32 CAMERA_GetBytesAtOnce(u16 width);</CODE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" width="100%">
21  <TBODY>
22    <TR>
23      <TD width="13%"><EM><STRONG>width</STRONG></EM></TD>
24      <TD width="87%">Width (in pixels)</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28
29<H2>Return Values</H2>
30<P>
31Returns the one-time transfer size to specify to a <code><A href="CAMERA_DmaRecv.html">CAMERA_DmaRecv*</A></code> function for receiving data from the camera buffer.
32</P>
33
34<H2>Description</H2>
35<P>
36This function is used to calculate the one-time transfer size to specify to a <code><A href="CAMERA_DmaRecv.html">CAMERA_DmaRecv*</A></code> function for receiving data from the camera buffer. If the <code><A href="CAMERA_SetTrimmingParams.html">CAMERA_SetTrimmingParams</A></code> function is called to set the width, that width is specified as an argument. Otherwise, the width set by a <code><A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A></code> function is specified as an argument, as described in the function reference for <code><A href="CAMERA_DmaRecv.html">CAMERA_DmaRecv*</A></code>. Although the transfer size may be calculated using the method described in the function reference for <code><A href="CAMERA_DmaRecv.html">CAMERA_DmaRecv*</A></code>, we recommend using this function unless there is a particular reason to do otherwise.
37</P>
38
39<H2>See Also</H2>
40<P><CODE><A href="CAMERA_DmaRecv.html">CAMERA_DmaRecv*</A>, <A href="CAMERA_SetTrimmingParams.html">CAMERA_SetTrimmingParams</A>, <A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A></CODE></P>
41<H2>Revision History</H2>
42<P>2008/01/15 Initial version.</P>
43<hr><p>CONFIDENTIAL</p></body>
44</HTML>
45