class_video_surface.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>QHdrCamera: VideoSurface Class Reference</title>
  7. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  8. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  9. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="search/search.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function() { searchBox.OnSelectItem(0); });
  14. </script>
  15. </head>
  16. <body>
  17. <div id="top"><!-- do not remove this div! -->
  18. <div id="titlearea">
  19. <table cellspacing="0" cellpadding="0">
  20. <tbody>
  21. <tr style="height: 56px;">
  22. <td style="padding-left: 0.5em;">
  23. <div id="projectname">QHdrCamera
  24. &#160;<span id="projectnumber">1.9.0</span>
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- Generated by Doxygen 1.7.6.1 -->
  32. <script type="text/javascript">
  33. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  34. </script>
  35. <div id="navrow1" class="tabs">
  36. <ul class="tablist">
  37. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  38. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  39. <li><a href="files.html"><span>Files</span></a></li>
  40. <li>
  41. <div id="MSearchBox" class="MSearchBoxInactive">
  42. <span class="left">
  43. <img id="MSearchSelect" src="search/mag_sel.png"
  44. onmouseover="return searchBox.OnSearchSelectShow()"
  45. onmouseout="return searchBox.OnSearchSelectHide()"
  46. alt=""/>
  47. <input type="text" id="MSearchField" value="Search" accesskey="S"
  48. onfocus="searchBox.OnSearchFieldFocus(true)"
  49. onblur="searchBox.OnSearchFieldFocus(false)"
  50. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  51. </span><span class="right">
  52. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  53. </span>
  54. </div>
  55. </li>
  56. </ul>
  57. </div>
  58. <div id="navrow2" class="tabs2">
  59. <ul class="tablist">
  60. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  61. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  62. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  63. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  64. </ul>
  65. </div>
  66. </div>
  67. <div class="header">
  68. <div class="summary">
  69. <a href="#pub-methods">Public Member Functions</a> &#124;
  70. <a href="#pro-attribs">Protected Attributes</a> </div>
  71. <div class="headertitle">
  72. <div class="title">VideoSurface Class Reference</div> </div>
  73. </div><!--header-->
  74. <div class="contents">
  75. <!-- doxytag: class="VideoSurface" -->
  76. <p>Receives the frames from the camera.
  77. <a href="class_video_surface.html#details">More...</a></p>
  78. <p><a href="class_video_surface-members.html">List of all members.</a></p>
  79. <table class="memberdecls">
  80. <tr><td colspan="2"><h2><a name="pub-methods"></a>
  81. Public Member Functions</h2></td></tr>
  82. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_video_surface.html#a51856792268280b7fef52c4321de27d9">VideoSurface</a> (<a class="el" href="class_frame_observer.html">FrameObserver</a> *frameObserver, QObject *parent=0)</td></tr>
  83. <tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_video_surface.html#aecea93119c1abf87f62e0e34da5e618e">~VideoSurface</a> ()</td></tr>
  84. <tr><td class="memItemLeft" align="right" valign="top">virtual QList<br class="typebreak"/>
  85. &lt; QVideoFrame::PixelFormat &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_video_surface.html#a4863064cd19a30e467a92ce8d4e252f9">supportedPixelFormats</a> (QAbstractVideoBuffer::HandleType handleType=QAbstractVideoBuffer::NoHandle) const </td></tr>
  86. <tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_video_surface.html#a930a2093a5da13e01e7b1f8dd39db35e">present</a> (const QVideoFrame &amp;frame)</td></tr>
  87. <tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_video_surface.html#adf8e48140eab4a81df4ac84151413ab1">start</a> (const QVideoSurfaceFormat &amp;format)</td></tr>
  88. <tr><td colspan="2"><h2><a name="pro-attribs"></a>
  89. Protected Attributes</h2></td></tr>
  90. <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1790f978df32d4732a3b5d4cda60ddfc"></a><!-- doxytag: member="VideoSurface::m_frameObserver" ref="a1790f978df32d4732a3b5d4cda60ddfc" args="" -->
  91. <a class="el" href="class_frame_observer.html">FrameObserver</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_frameObserver</b></td></tr>
  92. </table>
  93. <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
  94. <div class="textblock"><p>Receives the frames from the camera. </p>
  95. <p>Copyright (c) 2012 Nokia Corporation. </p>
  96. </div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
  97. <a class="anchor" id="a51856792268280b7fef52c4321de27d9"></a><!-- doxytag: member="VideoSurface::VideoSurface" ref="a51856792268280b7fef52c4321de27d9" args="(FrameObserver *frameObserver, QObject *parent=0)" -->
  98. <div class="memitem">
  99. <div class="memproto">
  100. <table class="memname">
  101. <tr>
  102. <td class="memname"><a class="el" href="class_video_surface.html#a51856792268280b7fef52c4321de27d9">VideoSurface::VideoSurface</a> </td>
  103. <td>(</td>
  104. <td class="paramtype"><a class="el" href="class_frame_observer.html">FrameObserver</a> *&#160;</td>
  105. <td class="paramname"><em>frameObserver</em>, </td>
  106. </tr>
  107. <tr>
  108. <td class="paramkey"></td>
  109. <td></td>
  110. <td class="paramtype">QObject *&#160;</td>
  111. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  112. </tr>
  113. <tr>
  114. <td></td>
  115. <td>)</td>
  116. <td></td><td><code> [explicit]</code></td>
  117. </tr>
  118. </table>
  119. </div>
  120. <div class="memdoc">
  121. <p>Constructor. </p>
  122. </div>
  123. </div>
  124. <a class="anchor" id="aecea93119c1abf87f62e0e34da5e618e"></a><!-- doxytag: member="VideoSurface::~VideoSurface" ref="aecea93119c1abf87f62e0e34da5e618e" args="()" -->
  125. <div class="memitem">
  126. <div class="memproto">
  127. <table class="memname">
  128. <tr>
  129. <td class="memname"><a class="el" href="class_video_surface.html#aecea93119c1abf87f62e0e34da5e618e">VideoSurface::~VideoSurface</a> </td>
  130. <td>(</td>
  131. <td class="paramname"></td><td>)</td>
  132. <td><code> [virtual]</code></td>
  133. </tr>
  134. </table>
  135. </div>
  136. <div class="memdoc">
  137. <p>Destructor. </p>
  138. </div>
  139. </div>
  140. <hr/><h2>Member Function Documentation</h2>
  141. <a class="anchor" id="a930a2093a5da13e01e7b1f8dd39db35e"></a><!-- doxytag: member="VideoSurface::present" ref="a930a2093a5da13e01e7b1f8dd39db35e" args="(const QVideoFrame &amp;frame)" -->
  142. <div class="memitem">
  143. <div class="memproto">
  144. <table class="memname">
  145. <tr>
  146. <td class="memname">bool <a class="el" href="class_video_surface.html#a930a2093a5da13e01e7b1f8dd39db35e">VideoSurface::present</a> </td>
  147. <td>(</td>
  148. <td class="paramtype">const QVideoFrame &amp;&#160;</td>
  149. <td class="paramname"><em>frame</em></td><td>)</td>
  150. <td><code> [virtual]</code></td>
  151. </tr>
  152. </table>
  153. </div>
  154. <div class="memdoc">
  155. <p>Handles the just taken frame from camera and passes it to the observer. Returning false will stop the surface. </p>
  156. </div>
  157. </div>
  158. <a class="anchor" id="adf8e48140eab4a81df4ac84151413ab1"></a><!-- doxytag: member="VideoSurface::start" ref="adf8e48140eab4a81df4ac84151413ab1" args="(const QVideoSurfaceFormat &amp;format)" -->
  159. <div class="memitem">
  160. <div class="memproto">
  161. <table class="memname">
  162. <tr>
  163. <td class="memname">bool <a class="el" href="class_video_surface.html#adf8e48140eab4a81df4ac84151413ab1">VideoSurface::start</a> </td>
  164. <td>(</td>
  165. <td class="paramtype">const QVideoSurfaceFormat &amp;&#160;</td>
  166. <td class="paramname"><em>format</em></td><td>)</td>
  167. <td><code> [virtual]</code></td>
  168. </tr>
  169. </table>
  170. </div>
  171. <div class="memdoc">
  172. <p>Starts the receiving of the frames for the view finder. </p>
  173. </div>
  174. </div>
  175. <a class="anchor" id="a4863064cd19a30e467a92ce8d4e252f9"></a><!-- doxytag: member="VideoSurface::supportedPixelFormats" ref="a4863064cd19a30e467a92ce8d4e252f9" args="(QAbstractVideoBuffer::HandleType handleType=QAbstractVideoBuffer::NoHandle) const " -->
  176. <div class="memitem">
  177. <div class="memproto">
  178. <table class="memname">
  179. <tr>
  180. <td class="memname">QList&lt; QVideoFrame::PixelFormat &gt; <a class="el" href="class_video_surface.html#a4863064cd19a30e467a92ce8d4e252f9">VideoSurface::supportedPixelFormats</a> </td>
  181. <td>(</td>
  182. <td class="paramtype">QAbstractVideoBuffer::HandleType&#160;</td>
  183. <td class="paramname"><em>handleType</em> = <code>QAbstractVideoBuffer::NoHandle</code></td><td>)</td>
  184. <td> const<code> [virtual]</code></td>
  185. </tr>
  186. </table>
  187. </div>
  188. <div class="memdoc">
  189. <p>Sets the list of supported pixel formats that we are intrested of. </p>
  190. </div>
  191. </div>
  192. <hr/>The documentation for this class was generated from the following files:<ul>
  193. <li><a class="el" href="videosurface_8h_source.html">videosurface.h</a></li>
  194. <li>videosurface.cpp</li>
  195. </ul>
  196. </div><!-- contents -->
  197. <!-- window showing the filter options -->
  198. <div id="MSearchSelectWindow"
  199. onmouseover="return searchBox.OnSearchSelectShow()"
  200. onmouseout="return searchBox.OnSearchSelectHide()"
  201. onkeydown="return searchBox.OnSearchSelectKey(event)">
  202. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Properties</a></div>
  203. <!-- iframe showing the search results (closed by default) -->
  204. <div id="MSearchResultsWindow">
  205. <iframe src="javascript:void(0)" frameborder="0"
  206. name="MSearchResults" id="MSearchResults">
  207. </iframe>
  208. </div>
  209. <hr class="footer"/><address class="footer"><small>
  210. Generated on Thu May 24 2012 22:25:56 for QHdrCamera by &#160;<a href="http://www.doxygen.org/index.html">
  211. <img class="footer" src="doxygen.png" alt="doxygen"/>
  212. </a> 1.7.6.1
  213. </small></address>
  214. </body>
  215. </html>