⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
00112   <span class="keyword">public</span>:<a name="l00115"></a><a class="code" href="classPVideoChannel.html#z471_0">00115</a>     <span class="keyword">enum</span> <a class="code" href="classPVideoChannel.html#z471_0">Directions</a> {00116       <a class="code" href="classPVideoChannel.html#z471_0s0">Recorder</a>,00117       <a class="code" href="classPVideoChannel.html#z471_0s1">Player</a>00118     };00119 00121     <a class="code" href="classPVideoChannel.html#z471_1">PVideoChannel</a>();00122 00126     <a class="code" href="classPVideoChannel.html#z471_1">PVideoChannel</a>(00127       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; device,       00128       <a class="code" href="classPVideoChannel.html#z471_0">Directions</a> dir               00129     );00130     <span class="comment">// </span>00131 00132     <a class="code" href="classPVideoChannel.html#z471_3">~PVideoChannel</a>();00133     <span class="comment">// Destroy and close the video driver</span>00135 <span class="comment"></span>00144 <span class="comment"></span>    BOOL <a class="code" href="classPVideoChannel.html#z473_0">Open</a>(00145       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; device,       00146       <a class="code" href="classPVideoChannel.html#z471_0">Directions</a> dir               00147     );00148 00153      BOOL <a class="code" href="classPVideoChannel.html#z473_1">IsOpen</a>() <span class="keyword">const</span>;00154     00163     <span class="keyword">static</span> <a class="code" href="classPStringList.html">PStringList</a> <a class="code" href="classPVideoChannel.html#z473_2">GetDeviceNames</a>(00164       <a class="code" href="classPVideoChannel.html#z471_0">Directions</a> dir    <span class="comment">// Video I/O direction</span>00165     )  ;00166 00175     <span class="keyword">static</span> <a class="code" href="classPString.html">PString</a> <a class="code" href="classPVideoChannel.html#z473_3">GetDefaultDevice</a>(00176       <a class="code" href="classPVideoChannel.html#z471_0">Directions</a> dir    <span class="comment">// Video I/O direction</span>00177     );00179 00180     00183     <span class="keyword">virtual</span> PINDEX  <a class="code" href="classPVideoChannel.html#a0">GetGrabWidth</a>(); 00184 00187     <span class="keyword">virtual</span> PINDEX  <a class="code" href="classPVideoChannel.html#a1">GetGrabHeight</a>();00188 00189     <span class="keyword">virtual</span> BOOL <a class="code" href="classPVideoChannel.html#a2">Read</a>(<span class="keywordtype">void</span> * buf, PINDEX  len);00190       <span class="comment">// Low level read from the video channel. This function will block until the</span>00191       <span class="comment">// requested number of characters were read.</span>00192   00193   00197     BOOL <a class="code" href="classPVideoChannel.html#a3">Write</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * buf,  <span class="comment">//Pointer to the image data to be rendered</span>00198                PINDEX      len);00199                00203     <span class="keyword">virtual</span> BOOL <a class="code" href="classPVideoChannel.html#a4">Redraw</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * frame); 00204 00207     PINDEX  <a class="code" href="classPVideoChannel.html#a5">GetRenderWidth</a>();00208 00211     PINDEX  <a class="code" href="classPVideoChannel.html#a6">GetRenderHeight</a>();00212 00216     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a7">SetRenderFrameSize</a>(<span class="keywordtype">int</span> _width, <span class="keywordtype">int</span> _height); 00217 00221     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a8">SetGrabberFrameSize</a>(<span class="keywordtype">int</span> _width, <span class="keywordtype">int</span> _height); 00222 00231     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a9">AttachVideoPlayer</a>(<a class="code" href="classPVideoOutputDevice.html">PVideoOutputDevice</a> * device, BOOL keepCurrent = TRUE);00232 00241     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a10">AttachVideoReader</a>(<a class="code" href="classPVideoInputDevice.html">PVideoInputDevice</a> * device, BOOL keepCurrent = TRUE);00242 00245     <span class="keyword">virtual</span> <a class="code" href="classPVideoInputDevice.html">PVideoInputDevice</a> *<a class="code" href="classPVideoChannel.html#a11">GetVideoReader</a>();00246 00249     <span class="keyword">virtual</span> <a class="code" href="classPVideoOutputDevice.html">PVideoOutputDevice</a> *<a class="code" href="classPVideoChannel.html#a12">GetVideoPlayer</a>();00250 00253     <span class="keyword">virtual</span> BOOL <a class="code" href="classPVideoChannel.html#a13">IsGrabberOpen</a>();00254     00257     <span class="keyword">virtual</span> BOOL <a class="code" href="classPVideoChannel.html#a14">IsRenderOpen</a>();00258 00262     BOOL <a class="code" href="classPVideoChannel.html#a15">DisplayRawData</a>(<span class="keywordtype">void</span> *videoBuffer);00263 00266     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a16">CloseVideoReader</a>();00267 00270     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a17">CloseVideoPlayer</a>();00271 00274     <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a18">RestrictAccess</a>();00275     00278     <span class="keywordtype">void</span> <a class="code" href="classPVideoChannel.html#a19">EnableAccess</a>();00279 00282     BOOL <a class="code" href="classPVideoChannel.html#a20">ToggleVFlipInput</a>();00283 00284  <span class="keyword">protected</span>:00285 <a name="l00286"></a><a class="code" href="classPVideoChannel.html#n0">00286</a>     <a class="code" href="classPVideoChannel.html#z471_0">Directions</a>       <a class="code" href="classPVideoChannel.html#n0">direction</a>;00287 <a name="l00288"></a><a class="code" href="classPVideoChannel.html#n1">00288</a>     <a class="code" href="classPString.html">PString</a>          <a class="code" href="classPVideoChannel.html#n1">deviceName</a>;     <a name="l00289"></a><a class="code" href="classPVideoChannel.html#n2">00289</a>     <a class="code" href="classPVideoInputDevice.html">PVideoInputDevice</a>  *<a class="code" href="classPVideoChannel.html#n2">mpInput</a>;    <a name="l00290"></a><a class="code" href="classPVideoChannel.html#n3">00290</a>     <a class="code" href="classPVideoOutputDevice.html">PVideoOutputDevice</a> *<a class="code" href="classPVideoChannel.html#n3">mpOutput</a>;   00291 <a name="l00292"></a><a class="code" href="classPVideoChannel.html#n4">00292</a>     <a class="code" href="classPMutex.html">PMutex</a>           <a class="code" href="classPVideoChannel.html#n4">accessMutex</a>;   <span class="comment">// Ensure that only task is accesing </span>00293                                     <span class="comment">// members in this video channel.</span>00294   <span class="keyword">private</span>:00295     <span class="keywordtype">void</span> Construct();00296 00297 00298 <span class="comment">// Include platform dependent part of class</span>00299 <span class="preprocessor">#ifdef _WIN32</span>00300 <span class="preprocessor"></span><span class="preprocessor">#include "msos/ptlib/video.h"</span>00301 <span class="preprocessor">#else</span>00302 <span class="preprocessor"></span><span class="preprocessor">#include "unix/ptlib/video.h"</span>00303 <span class="preprocessor">#endif</span>00304 <span class="preprocessor"></span>};00305 00306 <span class="preprocessor">#endif</span>00307 <span class="preprocessor"></span>00308 00309 <span class="comment">// End Of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -