Sophie

Sophie

distrib > Fedora > 15 > x86_64 > by-pkgid > ec9ccd822be669bf449eecc0e640e0be > files > 124

camstream-0.26.3-19.fc12.x86_64.rpm

<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</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>CVideoDeviceInput  Class Reference</h1><code>#include &lt;<a class="el" href="videodeviceinput_h-source.html">VideoDeviceInput.h</a>&gt;</code>
<p>
<p>Inheritance diagram for CVideoDeviceInput::
<p><center><img src="class_cvideodeviceinput.gif" usemap="#CVideoDeviceInput_map" border="0"></center>
<map name="CVideoDeviceInput_map">
<area href="class_qobject.html" alt="QObject" shape="rect" coords="0,0,121,24">
</map>
<a href="class_cvideodeviceinput-members.html">List of all members.</a><h2>Public Types</h2>
<ul>
<li>enum { <a class="el" href="class_cvideodeviceinput.html#s3s0">Unknown</a>, 
<a class="el" href="class_cvideodeviceinput.html#s3s1">TV</a>, 
<a class="el" href="class_cvideodeviceinput.html#s3s2">Camera</a>
 }
</ul>
<h2>Public Methods</h2>
<ul>
<li><a class="el" href="class_cvideodeviceinput.html#a0">CVideoDeviceInput</a> (<a class="el" href="class_cvideodevice.html">CVideoDevice</a> *video, int channel)
<li>int <a class="el" href="class_cvideodeviceinput.html#a1">GetNumber</a> () const
<li>QString <a class="el" href="class_cvideodeviceinput.html#a2">GetName</a> () const
<li>bool <a class="el" href="class_cvideodeviceinput.html#a3">HasAudio</a> () const
<li>int <a class="el" href="class_cvideodeviceinput.html#a4">GetType</a> () const
<li>int <a class="el" href="class_cvideodeviceinput.html#a5">GetTuners</a> () const
<li>int <a class="el" href="class_cvideodeviceinput.html#a6">GetCurrentTuner</a> () const
<li><a class="el" href="class_cvideodevicetuner.html">CVideoDeviceTuner</a>* <a class="el" href="class_cvideodeviceinput.html#a7">GetTuner</a> (int number=-1) const
<li>bool <a class="el" href="class_cvideodeviceinput.html#a8">SelectTuner</a> (int number)
<li>bool <a class="el" href="class_cvideodeviceinput.html#a9">Select</a> ()
</ul>
<h2>Public Attributes</h2>
<ul>
<li>enum CVideoDeviceInput:: { ... }   <a class="el" href="class_cvideodeviceinput.html#m0">InputTypes</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Every video device has one or more inputs (called channels in the Video4Linux API). Each input refers to one of the physical inputs on the card/chip, like Tuner, Composite, S-video, etc. This class represents such an input.
<p>
In addition, each input can have 0 or more tuners attached to it (to keep matters simple...). A tuner does the actual frequency and norm setting,  and is represented by a <a class="el" href="class_cvideodevicetuner.html">CVideoDeviceTuner</a> class. 
<p>
<hr><h2>Member Enumeration Documentation</h2>
<a name="s3" doxytag="CVideoDeviceInput::@7"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
anonymous enum
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt>
<b>Enumeration values:</b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><a name="s3s0" doxytag="Unknown"></a><em>Unknown</em>
&nbsp;</td><td>
</td></tr>
<tr><td valign=top><a name="s3s1" doxytag="TV"></a><em>TV</em>
&nbsp;</td><td>
</td></tr>
<tr><td valign=top><a name="s3s2" doxytag="Camera"></a><em>Camera</em>
&nbsp;</td><td>
</td></tr>
</table>
</dl>
    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="CVideoDeviceInput::CVideoDeviceInput"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
CVideoDeviceInput::CVideoDeviceInput (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_cvideodevice.html">CVideoDevice</a> * <em>video</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
int <em>channel</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor.
<p>

<p>
 In the constructor the channel information is queried and stored. It will also create any Tuner objects that may be needed.     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a6" doxytag="CVideoDeviceInput::GetCurrentTuner"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int CVideoDeviceInput::GetCurrentTuner (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return current tuner number.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
Tuner number, or -1 if the current tuner is unknown
<p>
</dl>Since there is no way to query the current selected tuner from the device, this function returns -1 until a tuner has been selected.     </td>
  </tr>
</table>
<a name="a2" doxytag="CVideoDeviceInput::GetName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
QString CVideoDeviceInput::GetName (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return symbolic name for input.
<p>
    </td>
  </tr>
</table>
<a name="a1" doxytag="CVideoDeviceInput::GetNumber"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int CVideoDeviceInput::GetNumber (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return channel number.
<p>
    </td>
  </tr>
</table>
<a name="a7" doxytag="CVideoDeviceInput::GetTuner"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="class_cvideodevicetuner.html">CVideoDeviceTuner</a> * CVideoDeviceInput::GetTuner (
          </b></td>
          <td valign="bottom"><b>
int <em>number</em> = -1&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get a Tuner object.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>number</em>
&nbsp;</td><td>
The desired input (0 to <a class="el" href="class_cvideodeviceinput.html#a5">GetTuners</a>() - 1); -1 for default (current) one </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a5" doxytag="CVideoDeviceInput::GetTuners"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int CVideoDeviceInput::GetTuners (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return number of tuners.
<p>

<p>
 Most inputs don't have a tuner, or at most 1. Multiple tuners could be used for multi-norm cards (each norm having a separate tuner), but this hasn't happened sofar.     </td>
  </tr>
</table>
<a name="a4" doxytag="CVideoDeviceInput::GetType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int CVideoDeviceInput::GetType (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return type for this input.
<p>

<p>
 Returns a value from the <a class="el" href="class_cvideodeviceinput.html#m0">InputTypes</a> enum, either TV or Camera     </td>
  </tr>
</table>
<a name="a3" doxytag="CVideoDeviceInput::HasAudio"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
bool CVideoDeviceInput::HasAudio (
          </b></td>
          <td valign="bottom"><b>
) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns whether this input has audio settings associated with it.
<p>
    </td>
  </tr>
</table>
<a name="a9" doxytag="CVideoDeviceInput::Select"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
bool CVideoDeviceInput::Select (
          </b></td>
          <td valign="bottom"><b>
)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Make this input the current one.
<p>

<p>
     </td>
  </tr>
</table>
<a name="a8" doxytag="CVideoDeviceInput::SelectTuner"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
bool CVideoDeviceInput::SelectTuner (
          </b></td>
          <td valign="bottom"><b>
int <em>number</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="m0" doxytag="CVideoDeviceInput::InputTypes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
enum { ... }   CVideoDeviceInput::InputTypes
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="videodeviceinput_cc.html">VideoDeviceInput.cc</a><li><a class="el" href="videodeviceinput_h-source.html">VideoDeviceInput.h</a></ul>
<hr><address><small>Generated at Sat May 18 02:56:56 2002 for Camstream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>