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<LINK rel="stylesheet" type="text/css" href="../../css/nitro.css"> 8<TITLE>CAMERA Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>Camera Library (CAMERA) Sample Demos</H1> 12<H2>Location</H2> 13<P><CODE>$TwlSDK/build/demos.TWL/camera</CODE></P> 14<H2>Compilation</H2> 15<P>Move to the <CODE>$TwlSDK/build/demos.TWL/camera</CODE> directory and enter the following.</P> 16<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE> 17<P> Compiling begins, and the SRL executable file and the TEF files with the binary information are generated in:</P> 18<BLOCKQUOTE><CODE>$TwlSDK/build/demos.TWL/camera/<I>(sample_name)</I>/bin/<I>(platform)</I>/<I>(target)</I>/</CODE></BLOCKQUOTE> 19<P> For example:</P> 20<BLOCKQUOTE><CODE>$TwlSDK/build/demos.TWL/camera/simpleShoot-1/bin/ARM9-TS/Release/main.srl</CODE></BLOCKQUOTE> 21<P>is the executable file for the <CODE>simpleShoot-1</CODE> demo.</P> 22 23<H2>Running the Tool</H2> 24<H3>For TWL/NITRO Hybrid ROMs</H3> 25<P>If using IS-TWL-DEBUGGER:</P> 26<UL> 27<LI>Load and execute a TLF file with IS-TWL-DEBUGGER 28<LI>Execute an SRL file with IS-TWL-DEBUGGER 29<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line 30</UL> 31<H3>For TWL Limited ROMs</H3> 32<P>If using IS-TWL-DEBUGGER:</P> 33<UL> 34<LI>Load and execute a TLF file with IS-TWL-DEBUGGER. 35<LI>Execute an SRL file with IS-TWL-DEBUGGER. 36<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line 37</UL> 38 39<H2>Description</H2> 40<BR> 41<TABLE width="720"> 42 <TBODY> 43 <TR> 44<TH>Name</TH> 45<TH>Directories</TH> 46<TH>Operation</TH> 47 </TR> 48 <TR> 49<TD width="187"><CODE>camera-1</CODE></TD> 50<TD><CODE>demos.TWL</CODE></TD> 51<TD width="525">This demo shows the basics of how to use the camera.</TD> 52 </TR> 53 <TR> 54<TD width="187"><CODE>camera-2</CODE></TD> 55<TD><CODE>demos.TWL</CODE></TD> 56<TD width="525">This demo uses the <a href="../../camera/CAMERA_DmaPipeInfinity.html"><code>CAMERA_DmaPipeInfinity</code></a> function.</TD> 57 </TR> 58 <TR> 59<TD width="187"><CODE>camera-3</CODE></TD> 60<TD><CODE>demos.TWL</CODE></TD> 61<TD width="525">This demo creates three buffers in VRAM.</TD> 62 </TR> 63 <TR> 64<TD width="187"><CODE>camera-4</CODE></TD> 65<TD><CODE>demos.TWL</CODE></TD> 66<TD width="525">This demo creates two buffers in main memory and one buffer in VRAM.</TD> 67 </TR> 68 <TR> 69<TD width="187"><CODE>simpleShoot-1</CODE></TD> 70<TD><CODE>demos.TWL</CODE></TD> 71<TD width="525">This demo grabs and displays a still image from the video being captured by the camera, and plays a shutter sound.<BR>It forces the shutter sound to be played while background music is playing.<BR>It will be output through the speakers, even if headphones are in use.</TD> 72 </TR> 73 <TR> 74<TD width="187"><CODE>simpleShoot-2</CODE></TD> 75<TD><CODE>demos.TWL</CODE></TD> 76<TD width="525">This demo is the same as <CODE>simpleShoot-1</CODE> with the video capture feature added.</TD> 77 </TR> 78 </TBODY> 79</TABLE> 80<H2>Operation</H2> 81<P>The CAMERA library demos operate normally only in TWL mode.</P> 82<H2>See Also</H2> 83<P><A href="../../camera/list_camera.html">CAMERA Function List</A></P> 84<H2>Revision History</H2> 85<P> 862008/12/12 Deleted <CODE>mp_camera-1</CODE>.<br> 2008/09/16 Added <CODE>simpleShoot-2</CODE>. <br>2008/03/21 Deleted the SD-related demos and combined the <CODE>camera_shutter</CODE> demo with <CODE>simpleShoot-1</CODE>. <br>2008/03/13 Added the demo <CODE>saveShoot-3</CODE>. <br>2008/03/04 Added the shutter sound demo. <br>2007/11/15 Initial version. 87</P> 88<hr><p>CONFIDENTIAL</p></body> 89</HTML>