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_GetMaxLinesRound</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CAMERA_GetMaxLinesRound <IMG src="../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <CODE>#include <twl/camera.h></CODE><BR> 16 <BR> 17 <CODE>int CAMERA_GetMaxLinesRound(u16 width, u16 height);</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 <TR> 27 <TD width="13%"><EM><STRONG>height</STRONG></EM></TD> 28 <TD width="87%">Height (in pixels)</TD> 29 </TR> 30 </TBODY> 31</TABLE> 32 33<H2>Return Values</H2> 34<P> 35Returns the maximum value that can be specified for <SPAN class="argument">lines</SPAN> in the <code><A href="CAMERA_SetTransferLines.html">CAMERA_SetTransferLines</A></code> function to avoid fractions at the end of a frame. 36</P> 37 38<H2>Description</H2> 39<P> 40As described in <code><A href="CAMERA_SetTransferLines.html">CAMERA_SetTransferLines()</A></code>, if the line count and the height specified by a <code><A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A></code> function or the <code><A href="CAMERA_SetTrimmingParams.html">CAMERA_SetTrimmingParams</A></code> function are not divisible, a new DMA will be started synchronously with the start of a camera V-Blank and the odd amount remaining at the end of the frame will be transferred. In this case, the new DMA will be left running in the camera V-Blank. In order to avoid this, it is possible to find the maximum line count that will keep odd amounts from occurring. 41</P> 42 43<H2>See Also</H2> 44<P><CODE><A href="CAMERA_SetTransferLines.html">CAMERA_SetTransferLines</A>, <A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A>, <A href="CAMERA_SetTrimmingParams.html">CAMERA_SetTrimmingParams</A></CODE></P> 45<H2>Revision History</H2> 46<P>2007/11/14 Initial version.</P> 47<hr><p>CONFIDENTIAL</p></body> 48</HTML> 49