1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GstSystemClock</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GStreamer 0.10 Core Reference Manual">
8 <link rel="up" href="libgstreamer.html" title="GStreamer Core Library">
9 <link rel="prev" href="gstreamer-GstStructure.html" title="GstStructure">
10 <link rel="next" href="gstreamer-GstTagList.html" title="GstTagList">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gstreamer-GstStructure.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="libgstreamer.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer 0.10 Core Reference Manual</th>
21 <td><a accesskey="n" href="gstreamer-GstTagList.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GstSystemClock.synopsis" class="shortcut">Top</a>
26 <a href="#GstSystemClock.description" class="shortcut">Description</a>
28 <a href="#GstSystemClock.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#GstSystemClock.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="GstSystemClock"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="GstSystemClock.top_of_page"></a>GstSystemClock</span></h2>
38 <p>GstSystemClock — Default clock that uses the current system time</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="GstSystemClock.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">
45 #include <gst/gst.h>
47 enum <a class="link" href="GstSystemClock.html#GstClockType" title="enum GstClockType">GstClockType</a>;
48 struct <a class="link" href="GstSystemClock.html#GstSystemClock-struct" title="struct GstSystemClock">GstSystemClock</a>;
49 <a class="link" href="GstClock.html" title="GstClock"><span class="returnvalue">GstClock</span></a> * <a class="link" href="GstSystemClock.html#gst-system-clock-obtain" title="gst_system_clock_obtain ()">gst_system_clock_obtain</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
52 <div class="refsect1">
53 <a name="GstSystemClock.object-hierarchy"></a><h2>Object Hierarchy</h2>
54 <pre class="synopsis">
55 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
56 +----<a class="link" href="GstObject.html" title="GstObject">GstObject</a>
57 +----<a class="link" href="GstClock.html" title="GstClock">GstClock</a>
61 <div class="refsect1">
62 <a name="GstSystemClock.properties"></a><h2>Properties</h2>
63 <pre class="synopsis">
64 "<a class="link" href="GstSystemClock.html#GstSystemClock--clock-type" title='The "clock-type" property'>clock-type</a>" <a class="link" href="GstSystemClock.html#GstClockType" title="enum GstClockType"><span class="type">GstClockType</span></a> : Read / Write
67 <div class="refsect1">
68 <a name="GstSystemClock.description"></a><h2>Description</h2>
70 The GStreamer core provides a GstSystemClock based on the system time.
71 Asynchronous callbacks are scheduled from an internal thread.
74 Clock implementors are encouraged to subclass this systemclock as it
75 implements the async notification.
78 Subclasses can however override all of the important methods for sync and
79 async notifications to implement their own callback methods or blocking
83 Last reviewed on 2006-03-08 (0.10.4)
86 <div class="refsect1">
87 <a name="GstSystemClock.details"></a><h2>Details</h2>
88 <div class="refsect2">
89 <a name="GstClockType"></a><h3>enum GstClockType</h3>
90 <pre class="programlisting">typedef enum {
91 GST_CLOCK_TYPE_REALTIME = 0,
92 GST_CLOCK_TYPE_MONOTONIC = 1
96 The different kind of clocks.
98 <div class="variablelist"><table border="0">
99 <col align="left" valign="top">
102 <td><p><a name="GST-CLOCK-TYPE-REALTIME:CAPS"></a><span class="term"><code class="literal">GST_CLOCK_TYPE_REALTIME</code></span></p></td>
107 <td><p><a name="GST-CLOCK-TYPE-MONOTONIC:CAPS"></a><span class="term"><code class="literal">GST_CLOCK_TYPE_MONOTONIC</code></span></p></td>
108 <td>monotonic time since some unspecified starting
116 <div class="refsect2">
117 <a name="GstSystemClock-struct"></a><h3>struct GstSystemClock</h3>
118 <pre class="programlisting">struct GstSystemClock;</pre>
120 The default implementation of a <a class="link" href="GstClock.html" title="GstClock"><span class="type">GstClock</span></a> that uses the system time.
124 <div class="refsect2">
125 <a name="gst-system-clock-obtain"></a><h3>gst_system_clock_obtain ()</h3>
126 <pre class="programlisting"><a class="link" href="GstClock.html" title="GstClock"><span class="returnvalue">GstClock</span></a> * gst_system_clock_obtain (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
128 Get a handle to the default system clock. The refcount of the
129 clock will be increased so you need to unref the clock after
132 <div class="variablelist"><table border="0">
133 <col align="left" valign="top">
135 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
136 <td>the default clock.
137 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
143 <div class="refsect1">
144 <a name="GstSystemClock.property-details"></a><h2>Property Details</h2>
145 <div class="refsect2">
146 <a name="GstSystemClock--clock-type"></a><h3>The <code class="literal">"clock-type"</code> property</h3>
147 <pre class="programlisting"> "clock-type" <a class="link" href="GstSystemClock.html#GstClockType" title="enum GstClockType"><span class="type">GstClockType</span></a> : Read / Write</pre>
148 <p>The type of underlying clock implementation used.</p>
149 <p>Default value: GST_CLOCK_TYPE_MONOTONIC</p>
152 <div class="refsect1">
153 <a name="GstSystemClock.see-also"></a><h2>See Also</h2>
154 <a class="link" href="GstClock.html" title="GstClock"><span class="type">GstClock</span></a>
159 Generated by GTK-Doc V1.18</div>