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>CAMERAContext</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CAMERAContext <IMG src="../image/TWL.gif" align="middle"></H1> 12<H2>Definition</H2> 13<DL> 14 <DD> 15 <CODE>#include <twl/camera.h></CODE><BR> 16 <BR> 17 <PRE><CODE> 18typedef enum 19{ 20 CAMERA_CONTEXT_A = (1<<0), 21 CAMERA_CONTEXT_B = (1<<1), 22 CAMERA_CONTEXT_BOTH = (CAMERA_CONTEXT_A|CAMERA_CONTEXT_B) 23} 24CAMERAContext; 25</CODE></PRE> 26</DL> 27 28<H2>Elements</H2> 29<TABLE border="1" width="100%"> 30 <TBODY> 31 <TR> 32<TD width="13%"><CODE>CAMERA_CONTEXT_A</CODE></TD> 33<TD width="87%">Camera setting context A.</TD> 34 </TR> 35 <TR> 36<TD width="13%"><CODE>CAMERA_CONTEXT_B</CODE></TD> 37<TD width="87%">Camera setting context B.</TD> 38 </TR> 39 <TR> 40<TD width="13%"><CODE>CAMERA_CONTEXT_BOTH</CODE></TD> 41<TD width="87%">Both context A and B.</TD> 42 </TR> 43 </TBODY> 44</TABLE> 45 46<H2>Description</H2> 47<P> 48An enumerated type that specifies the camera setting context.<BR><BR> Think of a "context" here as a place to save the state for camera settings.<BR> The library currently allows you to save combinations of settings for the resolution, effect, and flipping in two contexts: A and B. By default, both the inner and outer camera use context A when started. See the section on default values in the <A href="about_camera.html"><B>Overview</B></A> for more details.<BR><BR>Contexts are used as follows. If the <A href="CAMERA_I2CSize.html"><CODE>CAMERA_I2CSizeEx</CODE></A>, <A href="CAMERA_I2CEffect.html"><CODE>CAMERA_I2CEffectEx</CODE></A>, and <A href="CAMERA_I2CFlip.html"><CODE>CAMERA_I2CFlipEx</CODE></A> functions are used to set the necessary values in context B, the <code><A href="CAMERA_I2CContextSwitch.html">CAMERA_I2CContextSwitch</A></code> function is then called to switch the current context to context B when those settings are required. It is faster to switch settings in this way than to individually change camera settings on demand. 49</P> 50 51<H2>Revision History</H2> 52<P> 532008/11/13 Corrected errors.<br> 2007/11/09 Initial version.</P> 54<hr><p>CONFIDENTIAL</p></body> 55</HTML> 56