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_GET_MAX_LINES</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CAMERA_GET_LINE_BYTES <IMG src="../image/TWL.gif" align="middle"></H1> 12<H2>Definition</H2> 13 14<dl> 15 <dd> 16<CODE>#include <twl/camera.h></CODE><BR> 17 <BR> 18 <CODE>#define CAMERA_GET_LINE_BYTES(width) ((width) << 1)</CODE><br> 19 <br> 20 </dd> 21</dl> 22 23<H2>Description</H2> 24<P> 25Calculates the number of bytes to transfer with a single line. For both the RGB5:5:5 and YUV4:2:2 formats, each pixel of camera output data uses two bytes. As a result, the number of bytes per line is the width of the line multiplied by 2. The width of the camera size set by a <code><A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A></code> function is specified as the argument value. 26</P> 27 28<H2>See Also</H2> 29<P><CODE><A href="CAMERA_SetTransferLines.html">CAMERA_SetTransferLines</A>, <A href="CAMERA_I2CSize.html">CAMERA_I2CSize*</A></CODE></P> 30<H2>Revision History</H2> 31<P>2007/10/12 Initial version.</P> 32<hr><p>CONFIDENTIAL</p></body> 33</HTML> 34