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>CAMERAOutput</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">CAMERAOutput <IMG src="../image/TWL.gif" align="middle"></H1>
12<H2>Definition</H2>
13<DL>
14  <DD>
15  <CODE>#include &lt;twl/camera.h&gt;</CODE><BR>
16  <BR>
17  <PRE><CODE>
18typedef enum {
19    CAMERA_OUTPUT_YUV,
20    CAMERA_OUTPUT_RGB
21} CAMERAOutput;
22</CODE></PRE>
23</DL>
24
25<H2>Elements</H2>
26<TABLE border="1" width="100%">
27  <TBODY>
28    <TR>
29      <TD width="13%"><EM><STRONG>CAMERA_OUTPUT_YUV</STRONG></EM></TD>
30      <TD width="87%">Sets the format to YUV4:2:2 (YCbCr).</TD>
31    </TR>
32    <TR>
33      <TD width="13%"><EM><STRONG>CAMERA_OUTPUT_RGB</STRONG></EM></TD>
34      <TD width="87%">Sets the format to RGB5:5:5.</TD>
35    </TR>
36  </TBODY>
37</TABLE>
38
39<H2>Description</H2>
40<P>
41This is an enumerated type that is used to specify the camera's output data format.<BR> Each of these data formats are output as follows.<BR> <BR> <B>YUV4:2:2(YCbCr)</B>
42<table>
43<tr>
44<td>Bits 31&ndash;24</td><td>Bits 23&ndash;16</td><td>Bits 15&ndash;8</td><td>Bits 7&ndash;0</td>
45</tr>
46<tr>
47<td>V (Cr)</td><td>Y [n+1 pixel]</td><td>U (Cb)</td><td>Y [n pixel]</td>
48</tr>
49</table>
50<BR> <B>RGB5:5:5</B>
51<table>
52<tr>
53<td>Bit 31</td><td>Bits 30&ndash;26</td><td>Bits 25&ndash;21</td><td>Bits 20&ndash;16</td><td>Bit 15</td><td>Bits 14&ndash;10</td><td>Bits 9&ndash;5</td><td>Bits 4&ndash;0</td>
54</tr>
55<tr>
56<td>Always 1.</td><td>Blue [n+1 pixel]</td><td>Green [n+1 pixel]</td><td>Red [n+1 pixel]</td><td>Always 1.</td><td>Blue [n pixel]</td><td>Green [n pixel]</td><td>Red [n pixel]</td>
57</tr>
58</table>
59</P>
60
61<H2>Revision History</H2>
62<P>2007/11/14 Added descriptions of the data formats. <BR>2007/11/09 Initial version.</P>
63<hr><p>CONFIDENTIAL</p></body>
64</HTML>
65