Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > f493f9a612b4ddc437422c0df71f6b6a > files > 698

lib64gstreamermm-devel-0.10.7-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gstreamermm: Gst::QueryDuration Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGst.html">Gst</a>::<a class="el" href="classGst_1_1QueryDuration.html">QueryDuration</a>
  </div>
</div>
<div class="contents">
<h1>Gst::QueryDuration Class Reference</h1><!-- doxytag: class="Gst::QueryDuration" --><!-- doxytag: inherits="Gst::Query" -->
<p>A stream duration query object. <a href="#_details">More...</a></p>

<p>Inherits <a class="el" href="classGst_1_1Query.html">Gst::Query</a>.</p>
<div class="dynheader">
Collaboration diagram for Gst::QueryDuration:</div>
<div class="dynsection">
<div class="center"><img src="classGst_1_1QueryDuration__coll__graph.png" border="0" usemap="#Gst_1_1QueryDuration_coll__map" alt="Collaboration graph"/></div>
<map name="Gst_1_1QueryDuration_coll__map" id="Gst_1_1QueryDuration_coll__map">
<area shape="rect" id="node2" href="classGst_1_1Query.html" title="A class used to perform queries on pads and elements." alt="" coords="29,86,115,117"/><area shape="rect" id="node4" href="classGst_1_1MiniObject.html" title="This is a base class for some gstreamermm objects." alt="" coords="16,6,128,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGst_1_1QueryDuration-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#a19cd49299683e87b6b0ab5b03cc21c86">QueryDuration</a> (GstQuery* query)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#a0b6c7ba90d5f82d257aa43e73a1e10bb">set</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> format, gint64 duration)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Answer a duration query by setting the requested value in the given format. <a href="#a0b6c7ba90d5f82d257aa43e73a1e10bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#ac0af6df36f84af9f7d859197211f6f64">parse</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>&amp; format, gint64&amp; duration) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer. <a href="#ac0af6df36f84af9f7d859197211f6f64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#a6e826eac5a3ec6cfe74b3d402d169c41">parse</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer, returning the duration. <a href="#a6e826eac5a3ec6cfe74b3d402d169c41"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#ac411fe056eb6da662ad0ae527997ff6f">parse_format</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer, returning the format of the duration. <a href="#ac411fe056eb6da662ad0ae527997ff6f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGst_1_1Query.html">Gst::Query</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryDuration.html#a2455aed70a8de47d99472c01411122d9">create</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> format)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new stream duration query object to query in the given format. <a href="#a2455aed70a8de47d99472c01411122d9"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A stream duration query object. </p>
<p>See <a class="el" href="classGst_1_1QueryDuration.html#a2455aed70a8de47d99472c01411122d9" title="Constructs a new stream duration query object to query in the given format.">create()</a> for more details. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a19cd49299683e87b6b0ab5b03cc21c86"></a><!-- doxytag: member="Gst::QueryDuration::QueryDuration" ref="a19cd49299683e87b6b0ab5b03cc21c86" args="(GstQuery *query)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gst::QueryDuration::QueryDuration </td>
          <td>(</td>
          <td class="paramtype">GstQuery *&#160;</td>
          <td class="paramname"> <em>query</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2455aed70a8de47d99472c01411122d9"></a><!-- doxytag: member="Gst::QueryDuration::create" ref="a2455aed70a8de47d99472c01411122d9" args="(Format format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGst_1_1Query.html">Gst::Query</a>&gt; Gst::QueryDuration::create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>&#160;</td>
          <td class="paramname"> <em>format</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a new stream duration query object to query in the given format. </p>
<p>A duration query will give the total length of the stream. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>format</em>&#160;</td><td>The <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> for this duration query. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new <a class="el" href="classGst_1_1QueryDuration.html" title="A stream duration query object.">Gst::QueryDuration</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a6e826eac5a3ec6cfe74b3d402d169c41"></a><!-- doxytag: member="Gst::QueryDuration::parse" ref="a6e826eac5a3ec6cfe74b3d402d169c41" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gint64 Gst::QueryDuration::parse </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer, returning the duration. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The total duration. </dd></dl>

</div>
</div>
<a class="anchor" id="ac0af6df36f84af9f7d859197211f6f64"></a><!-- doxytag: member="Gst::QueryDuration::parse" ref="ac0af6df36f84af9f7d859197211f6f64" args="(Format &amp;format, gint64 &amp;duration) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gst::QueryDuration::parse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>&amp;&#160;</td>
          <td class="paramname"> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint64 &amp;&#160;</td>
          <td class="paramname"> <em>duration</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer. </p>
<p>Write the format of the duration into <em>format</em>, and the value into <em>duration</em>. Use the other <a class="el" href="classGst_1_1QueryDuration.html#ac0af6df36f84af9f7d859197211f6f64" title="Parse a duration query answer.">parse()</a> methods for parsing individual values. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>format</em>&#160;</td><td>The storage for the <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> of the duration value. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>duration</em>&#160;</td><td>The storage for the total duration. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac411fe056eb6da662ad0ae527997ff6f"></a><!-- doxytag: member="Gst::QueryDuration::parse_format" ref="ac411fe056eb6da662ad0ae527997ff6f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> Gst::QueryDuration::parse_format </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classGst_1_1Parse.html" title="A class that gets a pipeline from a text pipeline description.">Parse</a> a duration query answer, returning the format of the duration. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> of the duration value. </dd></dl>

</div>
</div>
<a class="anchor" id="a0b6c7ba90d5f82d257aa43e73a1e10bb"></a><!-- doxytag: member="Gst::QueryDuration::set" ref="a0b6c7ba90d5f82d257aa43e73a1e10bb" args="(Format format, gint64 duration)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gst::QueryDuration::set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>&#160;</td>
          <td class="paramname"> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint64&#160;</td>
          <td class="paramname"> <em>duration</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Answer a duration query by setting the requested value in the given format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>format</em>&#160;</td><td>The <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> for the duration. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>duration</em>&#160;</td><td>The duration of the stream. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gstreamermm/query.h</li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Apr 12 20:33:56 2010 for gstreamermm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>