PVRShell_8cpp.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRShell.cpp File Reference</h1><code>#include &lt;stdio.h&gt;</code><br>
  24. <code>#include &lt;stdlib.h&gt;</code><br>
  25. <code>#include &lt;string.h&gt;</code><br>
  26. <code>#include &lt;stdarg.h&gt;</code><br>
  27. <code>#include "<a class="el" href="PVRShell_8h-source.html">PVRShell.h</a>"</code><br>
  28. <code>#include "<a class="el" href="PVRShellOS_8h-source.html">PVRShellOS.h</a>"</code><br>
  29. <code>#include "<a class="el" href="PVRShellAPI_8h-source.html">PVRShellAPI.h</a>"</code><br>
  30. <code>#include "<a class="el" href="PVRShellImpl_8h-source.html">PVRShellImpl.h</a>"</code><br>
  31. <code>#include "../Builds/sdkver.h"</code><br>
  32. <p>
  33. Include dependency graph for PVRShell.cpp:<p><center><img src="PVRShell_8cpp__incl.png" border="0" usemap="#PVRShell.cpp_map" alt="Include dependency graph"></center>
  34. <map name="PVRShell.cpp_map">
  35. <area href="PVRShell_8h.html" shape="rect" coords="143,81,233,108" alt="">
  36. <area href="PVRShellOS_8h.html" shape="rect" coords="441,81,551,108" alt="">
  37. <area href="PVRShellAPI_8h.html" shape="rect" coords="575,81,687,108" alt="">
  38. <area href="PVRShellImpl_8h.html" shape="rect" coords="711,81,828,108" alt="">
  39. </map>
  40. <table border=0 cellpadding=0 cellspacing=0>
  41. <tr><td></td></tr>
  42. <tr><td colspan=2><br><h2>Defines</h2></td></tr>
  43. <tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a0">PVRSHELL_QUIT_AFTER_FRAME</a>&nbsp;&nbsp;&nbsp;-1</td></tr>
  44. <tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a1">PVRSHELL_QUIT_AFTER_TIME</a>&nbsp;&nbsp;&nbsp;-1</td></tr>
  45. <tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a2">PVRSHELL_SCREENSHOT_NAME</a>&nbsp;&nbsp;&nbsp;"PVRShell"</td></tr>
  46. <tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a3">ByteSwap</a>(x)&nbsp;&nbsp;&nbsp;PVRShellByteSwap((unsigned char*) &amp;x, sizeof(x))</td></tr>
  47. <tr><td colspan=2><br><h2>Functions</h2></td></tr>
  48. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a7">PVRShellByteSwap</a> (unsigned char *pBytes, int i32ByteNo)</td></tr>
  49. <tr><td colspan=2><br><h2>Variables</h2></td></tr>
  50. <tr><td class="memItemLeft" nowrap align=right valign=top>const int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a4">g_i32BMPHeaderSize</a> = 14</td></tr>
  51. <tr><td class="memItemLeft" nowrap align=right valign=top>const int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRShell_8cpp.html#a5">g_i32BMPInfoSize</a> = 40</td></tr>
  52. </table>
  53. <hr><h2>Define Documentation</h2>
  54. <a class="anchor" name="a3" doxytag="PVRShell.cpp::ByteSwap" ></a><p>
  55. <br><br><h3>ByteSwap</h3><br><div>
  56. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  57. <tr>
  58. <td class="mdRow">
  59. <table cellpadding="0" cellspacing="0" border="0">
  60. <tr>
  61. <td class="md" nowrap valign="top"> #define ByteSwap</td>
  62. <td class="md" valign="top">(&nbsp;</td>
  63. <td class="md" nowrap valign="top">x&nbsp;</td>
  64. <td class="mdname1" valign="top" nowrap> </td>
  65. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  66. <td class="md" nowrap>&nbsp;&nbsp;&nbsp;PVRShellByteSwap((unsigned char*) &amp;x, sizeof(x))
  67. </table>
  68. </td>
  69. </tr>
  70. </table>
  71. <table cellspacing=5 cellpadding=0 border=0>
  72. <tr>
  73. <td>
  74. &nbsp;
  75. </td>
  76. <td>
  77. <p>
  78. </td>
  79. </tr>
  80. </table>
  81. <a class="anchor" name="a0" doxytag="PVRShell.cpp::PVRSHELL_QUIT_AFTER_FRAME" ></a><p>
  82. <br><br><h3>PVRSHELL_QUIT_AFTER_FRAME</h3><br><div>
  83. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  84. <tr>
  85. <td class="mdRow">
  86. <table cellpadding="0" cellspacing="0" border="0">
  87. <tr>
  88. <td class="md" nowrap valign="top"> #define PVRSHELL_QUIT_AFTER_FRAME&nbsp;&nbsp;&nbsp;-1
  89. </table>
  90. </td>
  91. </tr>
  92. </table>
  93. <table cellspacing=5 cellpadding=0 border=0>
  94. <tr>
  95. <td>
  96. &nbsp;
  97. </td>
  98. <td>
  99. <p>
  100. Define to automatically stop the app after x frames. If negative, run forever. </td>
  101. </tr>
  102. </table>
  103. <a class="anchor" name="a1" doxytag="PVRShell.cpp::PVRSHELL_QUIT_AFTER_TIME" ></a><p>
  104. <br><br><h3>PVRSHELL_QUIT_AFTER_TIME</h3><br><div>
  105. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  106. <tr>
  107. <td class="mdRow">
  108. <table cellpadding="0" cellspacing="0" border="0">
  109. <tr>
  110. <td class="md" nowrap valign="top"> #define PVRSHELL_QUIT_AFTER_TIME&nbsp;&nbsp;&nbsp;-1
  111. </table>
  112. </td>
  113. </tr>
  114. </table>
  115. <table cellspacing=5 cellpadding=0 border=0>
  116. <tr>
  117. <td>
  118. &nbsp;
  119. </td>
  120. <td>
  121. <p>
  122. Define to automatically stop the app after x amount of seconds. If negative, run forever. </td>
  123. </tr>
  124. </table>
  125. <a class="anchor" name="a2" doxytag="PVRShell.cpp::PVRSHELL_SCREENSHOT_NAME" ></a><p>
  126. <br><br><h3>PVRSHELL_SCREENSHOT_NAME</h3><br><div>
  127. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  128. <tr>
  129. <td class="mdRow">
  130. <table cellpadding="0" cellspacing="0" border="0">
  131. <tr>
  132. <td class="md" nowrap valign="top"> #define PVRSHELL_SCREENSHOT_NAME&nbsp;&nbsp;&nbsp;"PVRShell"
  133. </table>
  134. </td>
  135. </tr>
  136. </table>
  137. <table cellspacing=5 cellpadding=0 border=0>
  138. <tr>
  139. <td>
  140. &nbsp;
  141. </td>
  142. <td>
  143. <p>
  144. Define for the screen shot file name. </td>
  145. </tr>
  146. </table>
  147. <hr><h2>Function Documentation</h2>
  148. <a class="anchor" name="a7" doxytag="PVRShell.cpp::PVRShellByteSwap" ></a><p>
  149. <br><br><h3>PVRShellByteSwap</h3><br><div>
  150. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  151. <tr>
  152. <td class="mdRow">
  153. <table cellpadding="0" cellspacing="0" border="0">
  154. <tr>
  155. <td class="md" nowrap valign="top"> void PVRShellByteSwap </td>
  156. <td class="md" valign="top">(&nbsp;</td>
  157. <td class="md" nowrap valign="top">unsigned char *&nbsp;</td>
  158. <td class="mdname" nowrap> <em>pBytes</em>, </td>
  159. </tr>
  160. <tr>
  161. <td class="md" nowrap align="right"></td>
  162. <td></td>
  163. <td class="md" nowrap>int&nbsp;</td>
  164. <td class="mdname" nowrap> <em>i32ByteNo</em></td>
  165. </tr>
  166. <tr>
  167. <td></td>
  168. <td class="md">)&nbsp;</td>
  169. <td class="md" colspan="2"><code> [inline]</code></td>
  170. </tr>
  171. </table>
  172. </td>
  173. </tr>
  174. </table>
  175. <table cellspacing=5 cellpadding=0 border=0>
  176. <tr>
  177. <td>
  178. &nbsp;
  179. </td>
  180. <td>
  181. <p>
  182. <dl compact><dt><b>Inputs:</b></dt><dd>
  183. <table border="0" cellspacing="2" cellpadding="0">
  184. <tr><td valign=top><em>pBytes</em>&nbsp;</td><td>The bytes to swap </td></tr>
  185. <tr><td valign=top><em>i32ByteNo</em>&nbsp;</td><td>The number of bytes to swap </td></tr>
  186. </table>
  187. </dl>
  188. <dl compact><dt><b>Description:</b></dt><dd>Swaps the bytes in pBytes from little to big endian (or vice versa) </dd></dl>
  189. </td>
  190. </tr>
  191. </table>
  192. <hr><h2>Variable Documentation</h2>
  193. <a class="anchor" name="a4" doxytag="PVRShell.cpp::g_i32BMPHeaderSize" ></a><p>
  194. <br><br><h3>g_i32BMPHeaderSize</h3><br><div>
  195. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  196. <tr>
  197. <td class="mdRow">
  198. <table cellpadding="0" cellspacing="0" border="0">
  199. <tr>
  200. <td class="md" nowrap valign="top"> const int <a class="el" href="PVRShell_8cpp.html#a4">g_i32BMPHeaderSize</a> = 14
  201. </table>
  202. </td>
  203. </tr>
  204. </table>
  205. <table cellspacing=5 cellpadding=0 border=0>
  206. <tr>
  207. <td>
  208. &nbsp;
  209. </td>
  210. <td>
  211. <p>
  212. The size of a BMP header </td>
  213. </tr>
  214. </table>
  215. <a class="anchor" name="a5" doxytag="PVRShell.cpp::g_i32BMPInfoSize" ></a><p>
  216. <br><br><h3>g_i32BMPInfoSize</h3><br><div>
  217. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  218. <tr>
  219. <td class="mdRow">
  220. <table cellpadding="0" cellspacing="0" border="0">
  221. <tr>
  222. <td class="md" nowrap valign="top"> const int <a class="el" href="PVRShell_8cpp.html#a5">g_i32BMPInfoSize</a> = 40
  223. </table>
  224. </td>
  225. </tr>
  226. </table>
  227. <table cellspacing=5 cellpadding=0 border=0>
  228. <tr>
  229. <td>
  230. &nbsp;
  231. </td>
  232. <td>
  233. <p>
  234. The size of a BMP info header </td>
  235. </tr>
  236. </table>
  237. <br>
  238. <br>
  239. <P align=left><FONT size=2><STRONG><A
  240. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  241. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  242. <hr>
  243. <address style="align: left;"><small><FONT color=f0f>
  244. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  245. </body>
  246. </html>