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

📄 classpvideoinput1394dcdevice.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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>PVideoInput1394DcDevice class Reference</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>PVideoInput1394DcDevice Class Reference</h1><code>#include &lt;<a class="el" href="videoio1394dc_8h-source.html">videoio1394dc.h</a>&gt;</code><p><p>Inheritance diagram for PVideoInput1394DcDevice:<p><center><img src="classPVideoInput1394DcDevice.png" usemap="#PVideoInput1394DcDevice_map" border="0" alt=""></center><map name="PVideoInput1394DcDevice_map"><area href="classPVideoInputDevice.html" alt="PVideoInputDevice" shape="rect" coords="0,112,164,136"><area href="classPVideoDevice.html" alt="PVideoDevice" shape="rect" coords="0,56,164,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,164,24"></map><a href="classPVideoInput1394DcDevice-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a0">PVideoInput1394DcDevice</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a1">~PVideoInput1394DcDevice</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a2">Open</a> (const <a class="el" href="classPString.html">PString</a> &amp;<a class="el" href="classPVideoDevice.html#n0">deviceName</a>, BOOL startImmediate=TRUE)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a3">IsOpen</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a4">Close</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a5">Start</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a6">Stop</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a7">IsCapturing</a> ()</td></tr><tr><td nowrap align=right valign=top>PINDEX&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a8">GetMaxFrameBytes</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a9">GetFrameData</a> (BYTE *buffer, PINDEX *bytesReturned=NULL)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a10">GetFrameDataNoDelay</a> (BYTE *buffer, PINDEX *bytesReturned=NULL)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a11">GetBrightness</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a12">SetBrightness</a> (unsigned newBrightness)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a13">GetWhiteness</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a14">SetWhiteness</a> (unsigned newWhiteness)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a15">GetColour</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a16">SetColour</a> (unsigned newColour)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a17">GetContrast</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a18">SetContrast</a> (unsigned newContrast)</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a19">GetHue</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a20">SetHue</a> (unsigned newHue)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a21">GetParameters</a> (int *whiteness, int *brightness, int *colour, int *contrast, int *hue)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a22">GetFrameSizeLimits</a> (unsigned &amp;minWidth, unsigned &amp;minHeight, unsigned &amp;maxWidth, unsigned &amp;maxHeight)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a23">ClearMapping</a> ()</td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a24">GetNumChannels</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a25">SetChannel</a> (int <a class="el" href="classPVideoDevice.html#n3">channelNumber</a>)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a26">SetFrameRate</a> (unsigned rate)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a27">SetVideoFormat</a> (<a class="el" href="classPVideoDevice.html#s15">VideoFormat</a> <a class="el" href="classPVideoDevice.html#n2">videoFormat</a>)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a28">SetFrameSize</a> (unsigned width, unsigned height)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a29">SetColourFormat</a> (const <a class="el" href="classPString.html">PString</a> &amp;<a class="el" href="classPVideoDevice.html#n4">colourFormat</a>)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a30">TestAllFormats</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a31">SetFrameSizeConverter</a> (unsigned width, unsigned height, BOOL bScaleNotCrop)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#a32">SetColourFormatConverter</a> (const <a class="el" href="classPString.html">PString</a> &amp;<a class="el" href="classPVideoDevice.html#n4">colourFormat</a>)</td></tr><tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPStringList.html">PStringList</a>&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#d0">GetInputDeviceNames</a> ()</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top>raw1394handle_t&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n0">handle</a></td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n1">is_capturing</a></td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n2">UseDMA</a></td></tr><tr><td nowrap align=right valign=top>nodeid_t *&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n3">camera_nodes</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n4">numCameras</a></td></tr><tr><td nowrap align=right valign=top>dc1394_cameracapture&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n5">camera</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n6">capturing_duration</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n7">desiredColourFormat</a></td></tr><tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n8">desiredFrameWidth</a></td></tr><tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="classPVideoInput1394DcDevice.html#n9">desiredFrameHeight</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class defines a video input device that generates fictitous image data. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PVideoInput1394DcDevice::PVideoInput1394DcDevice"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PVideoInput1394DcDevice::PVideoInput1394DcDevice </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a new video input device.     </td>  </tr></table><a name="a1" doxytag="PVideoInput1394DcDevice::~PVideoInput1394DcDevice"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PVideoInput1394DcDevice::~PVideoInput1394DcDevice </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Close the video input device on destruction.     </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a23" doxytag="PVideoInput1394DcDevice::ClearMapping"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void PVideoInput1394DcDevice::ClearMapping </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a4" doxytag="PVideoInput1394DcDevice::Close"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PVideoInput1394DcDevice::Close </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Close the device. <p>Reimplemented from <a class="el" href="classPVideoInputDevice.html#a3">PVideoInputDevice</a>.    </td>  </tr></table><a name="a11" doxytag="PVideoInput1394DcDevice::GetBrightness"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int PVideoInput1394DcDevice::GetBrightness </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the brightness of the image. 0xffff-Very bright. <p>Reimplemented from <a class="el" href="classPVideoDevice.html#a28">PVideoDevice</a>.    </td>  </tr></table><a name="a15" doxytag="PVideoInput1394DcDevice::GetColour"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int PVideoInput1394DcDevice::GetColour </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the colour of the image. 0xffff-lots of colour. <p>Reimplemented from <a class="el" href="classPVideoDevice.html#a32">PVideoDevice</a>.    </td>  </tr></table><a name="a17" doxytag="PVideoInput1394DcDevice::GetContrast"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int PVideoInput1394DcDevice::GetContrast </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the contrast of the image. 0xffff-High contrast. <p>Reimplemented from <a class="el" href="classPVideoDevice.html#a34">PVideoDevice</a>.    </td>  </tr></table><a name="a9" doxytag="PVideoInput1394DcDevice::GetFrameData"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PVideoInput1394DcDevice::GetFrameData </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buffer</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bytesReturned</em> = NULL</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Grab a frame, after a delay as specified by the frame rate. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>bytesReturned</em>&nbsp;</td><td>Buffer to receive frame OPtional bytes returned. </td></tr></table></dl><p>Implements <a class="el" href="classPVideoInputDevice.html#a7">PVideoInputDevice</a>.    </td>  </tr></table><a name="a10" doxytag="PVideoInput1394DcDevice::GetFrameDataNoDelay"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PVideoInput1394DcDevice::GetFrameDataNoDelay </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buffer</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bytesReturned</em> = NULL</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Grab a frame. Do not delay according to the current frame rate parameter. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>bytesReturned</em>&nbsp;</td><td>Buffer to receive frame OPtional bytes returned. </td></tr></table></dl><p>Implements <a class="el" href="classPVideoInputDevice.html#a8">PVideoInputDevice</a>.    </td>  </tr></table><a name="a22" doxytag="PVideoInput1394DcDevice::GetFrameSizeLimits"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PVideoInput1394DcDevice::GetFrameSizeLimits </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>minWidth</em>, </td>

⌨️ 快捷键说明

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