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

📄 videoio1394dc_8h-source.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>videoio1394dc.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>videoio1394dc.h</h1><a href="videoio1394dc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * videoio1394dc.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Copyright:</span>00005 <span class="comment"> * Copyright (c) 2002 Ryutaroh Matsumoto &lt;ryutaroh@rmatsumoto.org&gt;</span>00006 <span class="comment"> *</span>00007 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00008 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00009 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00010 <span class="comment"> * http://www.mozilla.org/MPL/</span>00011 <span class="comment"> *</span>00012 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00013 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00014 <span class="comment"> * the License for the specific language governing rights and limitations</span>00015 <span class="comment"> * under the License.</span>00016 <span class="comment"> *</span>00017 <span class="comment"> *</span>00018 <span class="comment"> * Classes to support streaming video input from IEEE 1394 cameras.</span>00019 <span class="comment"> * Detailed explanation can be found at src/ptlib/unix/video4dc1394.cxx</span>00020 <span class="comment"> *</span>00021 <span class="comment"> * $Log: videoio1394dc.h,v $</span>00022 <span class="comment"> * Revision 1.2  2002/05/30 22:49:35  dereks</span>00023 <span class="comment"> * correct implementation of GetInputDeviceNames().</span>00024 <span class="comment"> *</span>00025 <span class="comment"> * Revision 1.1  2002/02/20 02:37:26  dereks</span>00026 <span class="comment"> * Initial release of Firewire camera support for linux.</span>00027 <span class="comment"> * Many thanks to Ryutaroh Matsumoto &lt;ryutaroh@rmatsumoto.org&gt;.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> *</span>00030 <span class="comment"> */</span>00031 00032 00033 <span class="preprocessor">#ifndef _PVIDEOIO1394DC</span>00034 <span class="preprocessor"></span>00035 <span class="preprocessor">#define _PVIDEOIO1394DC</span>00036 <span class="preprocessor"></span>00037 <span class="preprocessor">#ifdef __GNUC__</span>00038 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00040 <span class="preprocessor"></span>00041 <span class="preprocessor">#include &lt;libraw1394/raw1394.h&gt;</span>00042 <span class="preprocessor">#include &lt;libdc1394/dc1394_control.h&gt;</span>00043 <a name="l00047"></a><a class="code" href="classPVideoInput1394DcDevice.html">00047</a> <span class="keyword">class </span><a class="code" href="classPVideoInput1394DcDevice.html">PVideoInput1394DcDevice</a> : <span class="keyword">public</span> <a class="code" href="classPVideoInputDevice.html">PVideoInputDevice</a>00048 {00049     <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPVideoInput1394DcDevice.html">PVideoInput1394DcDevice</a>, <a class="code" href="classPVideoInputDevice.html">PVideoInputDevice</a>);00050  <span class="keyword">public</span>:00053     <a class="code" href="classPVideoInput1394DcDevice.html#a0">PVideoInput1394DcDevice</a>();00054 00057     <a class="code" href="classPVideoInput1394DcDevice.html#a1">~PVideoInput1394DcDevice</a>();00058 00061     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a2">Open</a>(00062       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPVideoDevice.html#n0">deviceName</a>,   00063       BOOL startImmediate = TRUE    00064     );00065 00068     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a3">IsOpen</a>();00069 00072     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a4">Close</a>();00073 00076     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a5">Start</a>();00077 00080     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a6">Stop</a>();00081 00084     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a7">IsCapturing</a>();00085 00088     <span class="keyword">static</span> <a class="code" href="classPStringList.html">PStringList</a> <a class="code" href="classPVideoInput1394DcDevice.html#d0">GetInputDeviceNames</a>();00089 00095     PINDEX <a class="code" href="classPVideoInput1394DcDevice.html#a8">GetMaxFrameBytes</a>();00096 00099     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a9">GetFrameData</a>(00100       BYTE * buffer,                 00101       PINDEX * bytesReturned = NULL  00102     );00103 00106     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a10">GetFrameDataNoDelay</a>(00107       BYTE * buffer,                 00108       PINDEX * bytesReturned = NULL  00109     );00110 00111 00114     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a11">GetBrightness</a>();00115 00118     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a12">SetBrightness</a>(<span class="keywordtype">unsigned</span> newBrightness);00119 00120 00123     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a13">GetWhiteness</a>();00124 00127     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a14">SetWhiteness</a>(<span class="keywordtype">unsigned</span> newWhiteness);00128 00129 00132     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a15">GetColour</a>();00133 00136     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a16">SetColour</a>(<span class="keywordtype">unsigned</span> newColour);00137 00138 00141     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a17">GetContrast</a>();00142 00145     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a18">SetContrast</a>(<span class="keywordtype">unsigned</span> newContrast);00146 00147 00150     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a19">GetHue</a>();00151 00154     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a20">SetHue</a>(<span class="keywordtype">unsigned</span> newHue);00155     00156     00159     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a21">GetParameters</a> (<span class="keywordtype">int</span> *whiteness, <span class="keywordtype">int</span> *brightness, 00160                                 <span class="keywordtype">int</span> *colour, <span class="keywordtype">int</span> *contrast, <span class="keywordtype">int</span> *hue);00161 00164     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a22">GetFrameSizeLimits</a>(00165       <span class="keywordtype">unsigned</span> &amp; minWidth,   00166       <span class="keywordtype">unsigned</span> &amp; minHeight,  00167       <span class="keywordtype">unsigned</span> &amp; maxWidth,   00168       <span class="keywordtype">unsigned</span> &amp; maxHeight   00169     ) ;00170 00171     <span class="keywordtype">void</span> <a class="code" href="classPVideoInput1394DcDevice.html#a23">ClearMapping</a>();00172 00173     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#a24">GetNumChannels</a>();00174     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a25">SetChannel</a>(00175          <span class="keywordtype">int</span> <a class="code" href="classPVideoDevice.html#n3">channelNumber</a>  00176     );00177     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a26">SetFrameRate</a>(00178       <span class="keywordtype">unsigned</span> rate  00179     );00180     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a27">SetVideoFormat</a>(00181       <a class="code" href="classPVideoDevice.html#s15">VideoFormat</a> <a class="code" href="classPVideoDevice.html#n2">videoFormat</a>   00182     );00183     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a28">SetFrameSize</a>(00184       <span class="keywordtype">unsigned</span> width,   00185       <span class="keywordtype">unsigned</span> height   00186     );00187     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a29">SetColourFormat</a>(00188       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPVideoDevice.html#n4">colourFormat</a>   <span class="comment">// New colour format for device.</span>00189     );00190 00191 00194     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a30">TestAllFormats</a>();00195 00201     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a31">SetFrameSizeConverter</a>(00202       <span class="keywordtype">unsigned</span> width,        00203       <span class="keywordtype">unsigned</span> height,       00204       BOOL     bScaleNotCrop 00205     );00206 00213     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#a32">SetColourFormatConverter</a>(00214       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPVideoDevice.html#n4">colourFormat</a> <span class="comment">// New colour format for device.</span>00215     );00216 00217 00218  <span class="keyword">protected</span>:<a name="l00219"></a><a class="code" href="classPVideoInput1394DcDevice.html#n0">00219</a>     raw1394handle_t <a class="code" href="classPVideoInput1394DcDevice.html#n0">handle</a>;<a name="l00220"></a><a class="code" href="classPVideoInput1394DcDevice.html#n1">00220</a>     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#n1">is_capturing</a>;<a name="l00221"></a><a class="code" href="classPVideoInput1394DcDevice.html#n2">00221</a>     BOOL <a class="code" href="classPVideoInput1394DcDevice.html#n2">UseDMA</a>;<a name="l00222"></a><a class="code" href="classPVideoInput1394DcDevice.html#n3">00222</a>     nodeid_t * <a class="code" href="classPVideoInput1394DcDevice.html#n3">camera_nodes</a>;<a name="l00223"></a><a class="code" href="classPVideoInput1394DcDevice.html#n4">00223</a>     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#n4">numCameras</a>;<a name="l00224"></a><a class="code" href="classPVideoInput1394DcDevice.html#n5">00224</a>     dc1394_cameracapture <a class="code" href="classPVideoInput1394DcDevice.html#n5">camera</a>;<a name="l00225"></a><a class="code" href="classPVideoInput1394DcDevice.html#n6">00225</a>     <span class="keywordtype">int</span> <a class="code" href="classPVideoInput1394DcDevice.html#n6">capturing_duration</a>;<a name="l00226"></a><a class="code" href="classPVideoInput1394DcDevice.html#n7">00226</a>     <a class="code" href="classPString.html">PString</a>      <a class="code" href="classPVideoInput1394DcDevice.html#n7">desiredColourFormat</a>;<a name="l00227"></a><a class="code" href="classPVideoInput1394DcDevice.html#n8">00227</a>     <span class="keywordtype">unsigned</span>     <a class="code" href="classPVideoInput1394DcDevice.html#n8">desiredFrameWidth</a>;<a name="l00228"></a><a class="code" href="classPVideoInput1394DcDevice.html#n9">00228</a>     <span class="keywordtype">unsigned</span>     <a class="code" href="classPVideoInput1394DcDevice.html#n9">desiredFrameHeight</a>;00229 };00230 00231 <span class="preprocessor">#endif</span>00232 <span class="preprocessor"></span>00233 00234 <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 + -