videosurface_8h_source.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.h Source File</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><a href="annotated.html"><span>Classes</span></a></li>
  39. <li class="current"><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="files.html"><span>File&#160;List</span></a></li>
  61. </ul>
  62. </div>
  63. </div>
  64. <div class="header">
  65. <div class="headertitle">
  66. <div class="title">videosurface.h</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
  70. <a name="l00005"></a>00005 <span class="preprocessor">#ifndef VIDEOSURFACE_H</span>
  71. <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define VIDEOSURFACE_H</span>
  72. <a name="l00007"></a>00007 <span class="preprocessor"></span>
  73. <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;QAbstractVideoSurface&gt;</span>
  74. <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;QVideoSurfaceFormat&gt;</span>
  75. <a name="l00010"></a>00010
  76. <a name="l00011"></a>00011 <span class="keyword">class </span><a class="code" href="class_frame_observer.html">FrameObserver</a>;
  77. <a name="l00012"></a>00012
  78. <a name="l00013"></a><a class="code" href="class_video_surface.html">00013</a> <span class="keyword">class </span><a class="code" href="class_video_surface.html" title="Receives the frames from the camera.">VideoSurface</a> : <span class="keyword">public</span> QAbstractVideoSurface
  79. <a name="l00014"></a>00014 {
  80. <a name="l00015"></a>00015 Q_OBJECT
  81. <a name="l00016"></a>00016 <span class="keyword">public</span>:
  82. <a name="l00017"></a>00017 <span class="keyword">explicit</span> <a class="code" href="class_video_surface.html#a51856792268280b7fef52c4321de27d9">VideoSurface</a>(<a class="code" href="class_frame_observer.html">FrameObserver</a> *frameObserver, QObject *parent = 0);
  83. <a name="l00018"></a>00018 <span class="keyword">virtual</span> <a class="code" href="class_video_surface.html#aecea93119c1abf87f62e0e34da5e618e">~VideoSurface</a>();
  84. <a name="l00019"></a>00019
  85. <a name="l00020"></a>00020 <span class="keyword">virtual</span> QList&lt;QVideoFrame::PixelFormat&gt; <a class="code" href="class_video_surface.html#a4863064cd19a30e467a92ce8d4e252f9">supportedPixelFormats</a>(QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) <span class="keyword">const</span>;
  86. <a name="l00021"></a>00021 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_video_surface.html#a930a2093a5da13e01e7b1f8dd39db35e">present</a>(<span class="keyword">const</span> QVideoFrame &amp;frame);
  87. <a name="l00022"></a>00022 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_video_surface.html#adf8e48140eab4a81df4ac84151413ab1">start</a>(<span class="keyword">const</span> QVideoSurfaceFormat &amp;format);
  88. <a name="l00023"></a>00023
  89. <a name="l00024"></a>00024 <span class="keyword">protected</span>:
  90. <a name="l00025"></a>00025 <a class="code" href="class_frame_observer.html">FrameObserver</a> *m_frameObserver; <span class="comment">// Not owned</span>
  91. <a name="l00026"></a>00026 };
  92. <a name="l00027"></a>00027
  93. <a name="l00028"></a>00028 <span class="preprocessor">#endif // VIDEOSURFACE_H</span>
  94. </pre></div></div><!-- contents -->
  95. <!-- window showing the filter options -->
  96. <div id="MSearchSelectWindow"
  97. onmouseover="return searchBox.OnSearchSelectShow()"
  98. onmouseout="return searchBox.OnSearchSelectHide()"
  99. onkeydown="return searchBox.OnSearchSelectKey(event)">
  100. <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>
  101. <!-- iframe showing the search results (closed by default) -->
  102. <div id="MSearchResultsWindow">
  103. <iframe src="javascript:void(0)" frameborder="0"
  104. name="MSearchResults" id="MSearchResults">
  105. </iframe>
  106. </div>
  107. <hr class="footer"/><address class="footer"><small>
  108. Generated on Thu May 24 2012 22:25:56 for QHdrCamera by &#160;<a href="http://www.doxygen.org/index.html">
  109. <img class="footer" src="doxygen.png" alt="doxygen"/>
  110. </a> 1.7.6.1
  111. </small></address>
  112. </body>
  113. </html>