Initialize Tizen 2.3
[framework/multimedia/gstreamer0.10.git] / wearable / docs / gst / html / GstSystemClock.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
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">
13 </head>
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">
16 <tr valign="middle">
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>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GstSystemClock.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GstSystemClock.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GstSystemClock.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GstSystemClock.properties" class="shortcut">Properties</a>
31 </td></tr>
32 </table>
33 <div class="refentry">
34 <a name="GstSystemClock"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
36 <td valign="top">
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>
39 </td>
40 <td valign="top" align="right"></td>
41 </tr></table></div>
42 <div class="refsynopsisdiv">
43 <a name="GstSystemClock.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">
45 #include &lt;gst/gst.h&gt;
46
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>);
50 </pre>
51 </div>
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>
58                +----GstSystemClock
59 </pre>
60 </div>
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
65 </pre>
66 </div>
67 <div class="refsect1">
68 <a name="GstSystemClock.description"></a><h2>Description</h2>
69 <p>
70 The GStreamer core provides a GstSystemClock based on the system time.
71 Asynchronous callbacks are scheduled from an internal thread.
72 </p>
73 <p>
74 Clock implementors are encouraged to subclass this systemclock as it
75 implements the async notification.
76 </p>
77 <p>
78 Subclasses can however override all of the important methods for sync and
79 async notifications to implement their own callback methods or blocking
80 wait operations.
81 </p>
82 <p>
83 Last reviewed on 2006-03-08 (0.10.4)
84 </p>
85 </div>
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
93 } GstClockType;
94 </pre>
95 <p>
96 The different kind of clocks.
97 </p>
98 <div class="variablelist"><table border="0">
99 <col align="left" valign="top">
100 <tbody>
101 <tr>
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>
103 <td>time since Epoch
104 </td>
105 </tr>
106 <tr>
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
109                            point
110 </td>
111 </tr>
112 </tbody>
113 </table></div>
114 </div>
115 <hr>
116 <div class="refsect2">
117 <a name="GstSystemClock-struct"></a><h3>struct GstSystemClock</h3>
118 <pre class="programlisting">struct GstSystemClock;</pre>
119 <p>
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.
121 </p>
122 </div>
123 <hr>
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>
127 <p>
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
130 usage.
131 </p>
132 <div class="variablelist"><table border="0">
133 <col align="left" valign="top">
134 <tbody><tr>
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>
138 </td>
139 </tr></tbody>
140 </table></div>
141 </div>
142 </div>
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>
150 </div>
151 </div>
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>
155 </div>
156 </div>
157 <div class="footer">
158 <hr>
159           Generated by GTK-Doc V1.18</div>
160 </body>
161 </html>