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>GstRTSPTimeRange: GStreamer Base Plugins 1.0 Library Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual"> 8<link rel="up" href="gstreamer-rtsp.html" title="RTSP Library"> 9<link rel="prev" href="GstRTSPMessage.html" title="GstRTSPMessage"> 10<link rel="next" href="gst-plugins-base-libs-GstRTSPRange.html" title="GstRTSPRange"> 11<meta name="generator" content="GTK-Doc V1.28 (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="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-base-libs-GstRTSPTimeRange.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-base-libs-GstRTSPTimeRange.object-hierarchy" class="shortcut">Object Hierarchy</a></span> 20</td> 21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 22<td><a accesskey="u" href="gstreamer-rtsp.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 23<td><a accesskey="p" href="GstRTSPMessage.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 24<td><a accesskey="n" href="gst-plugins-base-libs-GstRTSPRange.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 25</tr></table> 26<div class="refentry"> 27<a name="gst-plugins-base-libs-GstRTSPTimeRange"></a><div class="titlepage"></div> 28<div class="refnamediv"><table width="100%"><tr> 29<td valign="top"> 30<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-GstRTSPTimeRange.top_of_page"></a>GstRTSPTimeRange</span></h2> 31<p>GstRTSPTimeRange — dealing with time ranges</p> 32</td> 33<td class="gallery_image" valign="top" align="right"></td> 34</tr></table></div> 35<div class="refsect1"> 36<a name="gst-plugins-base-libs-GstRTSPTimeRange.functions"></a><h2>Functions</h2> 37<div class="informaltable"><table class="informaltable" width="100%" border="0"> 38<colgroup> 39<col width="150px" class="functions_return"> 40<col class="functions_name"> 41</colgroup> 42<tbody> 43<tr> 44<td class="function_type"> 45<a class="link" href="gst-plugins-base-libs-GstRtspdefs.html#GstRTSPResult" title="enum GstRTSPResult"><span class="returnvalue">GstRTSPResult</span></a> 46</td> 47<td class="function_name"> 48<a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#gst-rtsp-range-parse" title="gst_rtsp_range_parse ()">gst_rtsp_range_parse</a> <span class="c_punctuation">()</span> 49</td> 50</tr> 51<tr> 52<td class="function_type"> 53<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 54</td> 55<td class="function_name"> 56<a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#gst-rtsp-range-get-times" title="gst_rtsp_range_get_times ()">gst_rtsp_range_get_times</a> <span class="c_punctuation">()</span> 57</td> 58</tr> 59<tr> 60<td class="function_type"> 61<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 62</td> 63<td class="function_name"> 64<a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#gst-rtsp-range-to-string" title="gst_rtsp_range_to_string ()">gst_rtsp_range_to_string</a> <span class="c_punctuation">()</span> 65</td> 66</tr> 67<tr> 68<td class="function_type"> 69<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 70</td> 71<td class="function_name"> 72<a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#gst-rtsp-range-convert-units" title="gst_rtsp_range_convert_units ()">gst_rtsp_range_convert_units</a> <span class="c_punctuation">()</span> 73</td> 74</tr> 75<tr> 76<td class="function_type"> 77<span class="returnvalue">void</span> 78</td> 79<td class="function_name"> 80<a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#gst-rtsp-range-free" title="gst_rtsp_range_free ()">gst_rtsp_range_free</a> <span class="c_punctuation">()</span> 81</td> 82</tr> 83</tbody> 84</table></div> 85</div> 86<div class="refsect1"> 87<a name="gst-plugins-base-libs-GstRTSPTimeRange.other"></a><h2>Types and Values</h2> 88<div class="informaltable"><table class="informaltable" width="100%" border="0"> 89<colgroup> 90<col width="150px" class="name"> 91<col class="description"> 92</colgroup> 93<tbody> 94<tr> 95<td class="datatype_keyword">enum</td> 96<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPRangeUnit" title="enum GstRTSPRangeUnit">GstRTSPRangeUnit</a></td> 97</tr> 98<tr> 99<td class="datatype_keyword">struct</td> 100<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange">GstRTSPTimeRange</a></td> 101</tr> 102<tr> 103<td class="datatype_keyword">struct</td> 104<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime" title="struct GstRTSPTime">GstRTSPTime</a></td> 105</tr> 106<tr> 107<td class="datatype_keyword">struct</td> 108<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime2" title="struct GstRTSPTime2">GstRTSPTime2</a></td> 109</tr> 110<tr> 111<td class="datatype_keyword">enum</td> 112<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeType" title="enum GstRTSPTimeType">GstRTSPTimeType</a></td> 113</tr> 114</tbody> 115</table></div> 116</div> 117<div class="refsect1"> 118<a name="gst-plugins-base-libs-GstRTSPTimeRange.object-hierarchy"></a><h2>Object Hierarchy</h2> 119<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a> 120 <span class="lineart">├──</span> GstRTSPRangeUnit 121 <span class="lineart">╰──</span> GstRTSPTimeType 122</pre> 123</div> 124<div class="refsect1"> 125<a name="gst-plugins-base-libs-GstRTSPTimeRange.includes"></a><h2>Includes</h2> 126<pre class="synopsis">#include <gst/rtsp/rtsp.h> 127</pre> 128</div> 129<div class="refsect1"> 130<a name="gst-plugins-base-libs-GstRTSPTimeRange.description"></a><h2>Description</h2> 131<p>Provides helper functions to deal with time ranges.</p> 132</div> 133<div class="refsect1"> 134<a name="gst-plugins-base-libs-GstRTSPTimeRange.functions_details"></a><h2>Functions</h2> 135<div class="refsect2"> 136<a name="gst-rtsp-range-parse"></a><h3>gst_rtsp_range_parse ()</h3> 137<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstRtspdefs.html#GstRTSPResult" title="enum GstRTSPResult"><span class="returnvalue">GstRTSPResult</span></a> 138gst_rtsp_range_parse (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *rangestr</code></em>, 139 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> **range</code></em>);</pre> 140<p>Parse <em class="parameter"><code>rangestr</code></em> 141 to a <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a>.</p> 142<div class="refsect3"> 143<a name="gst-rtsp-range-parse.parameters"></a><h4>Parameters</h4> 144<div class="informaltable"><table class="informaltable" width="100%" border="0"> 145<colgroup> 146<col width="150px" class="parameters_name"> 147<col class="parameters_description"> 148<col width="200px" class="parameters_annotations"> 149</colgroup> 150<tbody> 151<tr> 152<td class="parameter_name"><p>rangestr</p></td> 153<td class="parameter_description"><p>a range string to parse</p></td> 154<td class="parameter_annotations"> </td> 155</tr> 156<tr> 157<td class="parameter_name"><p>range</p></td> 158<td class="parameter_description"><p>location to hold the <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> result. </p></td> 159<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 160</tr> 161</tbody> 162</table></div> 163</div> 164<div class="refsect3"> 165<a name="gst-rtsp-range-parse.returns"></a><h4>Returns</h4> 166<p> <a class="link" href="gst-plugins-base-libs-GstRtspdefs.html#GST-RTSP-OK:CAPS"><span class="type">GST_RTSP_OK</span></a> on success.</p> 167</div> 168</div> 169<hr> 170<div class="refsect2"> 171<a name="gst-rtsp-range-get-times"></a><h3>gst_rtsp_range_get_times ()</h3> 172<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 173gst_rtsp_range_get_times (<em class="parameter"><code>const <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> *range</code></em>, 174 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> *min</code></em>, 175 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> *max</code></em>);</pre> 176<p>Retrieve the minimum and maximum values from <em class="parameter"><code>range</code></em> 177 converted to 178<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> in <em class="parameter"><code>min</code></em> 179 and <em class="parameter"><code>max</code></em> 180.</p> 181<p>A value of <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GST-CLOCK-TIME-NONE:CAPS"><code class="literal">GST_CLOCK_TIME_NONE</code></a> will be used to signal <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GST-RTSP-TIME-NOW:CAPS"><span class="type">GST_RTSP_TIME_NOW</span></a> 182and <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GST-RTSP-TIME-END:CAPS"><span class="type">GST_RTSP_TIME_END</span></a> for <em class="parameter"><code>min</code></em> 183 and <em class="parameter"><code>max</code></em> 184 respectively.</p> 185<p>UTC times will be converted to nanoseconds since 1900.</p> 186<div class="refsect3"> 187<a name="gst-rtsp-range-get-times.parameters"></a><h4>Parameters</h4> 188<div class="informaltable"><table class="informaltable" width="100%" border="0"> 189<colgroup> 190<col width="150px" class="parameters_name"> 191<col class="parameters_description"> 192<col width="200px" class="parameters_annotations"> 193</colgroup> 194<tbody> 195<tr> 196<td class="parameter_name"><p>range</p></td> 197<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a></p></td> 198<td class="parameter_annotations"> </td> 199</tr> 200<tr> 201<td class="parameter_name"><p>min</p></td> 202<td class="parameter_description"><p>result minimum <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a>. </p></td> 203<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 204</tr> 205<tr> 206<td class="parameter_name"><p>max</p></td> 207<td class="parameter_description"><p>result maximum <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a>. </p></td> 208<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 209</tr> 210</tbody> 211</table></div> 212</div> 213<div class="refsect3"> 214<a name="gst-rtsp-range-get-times.returns"></a><h4>Returns</h4> 215<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p> 216</div> 217<p class="since">Since: <a class="link" href="ix14.html#api-index-1.2">1.2</a></p> 218</div> 219<hr> 220<div class="refsect2"> 221<a name="gst-rtsp-range-to-string"></a><h3>gst_rtsp_range_to_string ()</h3> 222<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 223gst_rtsp_range_to_string (<em class="parameter"><code>const <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> *range</code></em>);</pre> 224<p>Convert <em class="parameter"><code>range</code></em> 225 into a string representation.</p> 226<div class="refsect3"> 227<a name="gst-rtsp-range-to-string.parameters"></a><h4>Parameters</h4> 228<div class="informaltable"><table class="informaltable" width="100%" border="0"> 229<colgroup> 230<col width="150px" class="parameters_name"> 231<col class="parameters_description"> 232<col width="200px" class="parameters_annotations"> 233</colgroup> 234<tbody><tr> 235<td class="parameter_name"><p>range</p></td> 236<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a></p></td> 237<td class="parameter_annotations"> </td> 238</tr></tbody> 239</table></div> 240</div> 241<div class="refsect3"> 242<a name="gst-rtsp-range-to-string.returns"></a><h4>Returns</h4> 243<p> The string representation of <em class="parameter"><code>range</code></em> 244. <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage.</p> 245</div> 246</div> 247<hr> 248<div class="refsect2"> 249<a name="gst-rtsp-range-convert-units"></a><h3>gst_rtsp_range_convert_units ()</h3> 250<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 251gst_rtsp_range_convert_units (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> *range</code></em>, 252 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPRangeUnit" title="enum GstRTSPRangeUnit"><span class="type">GstRTSPRangeUnit</span></a> unit</code></em>);</pre> 253<p>Converts the range in-place between different types of units. 254Ranges containing the special value <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GST-RTSP-TIME-NOW:CAPS"><span class="type">GST_RTSP_TIME_NOW</span></a> can not be 255converted as these are only valid for <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GST-RTSP-RANGE-NPT:CAPS"><span class="type">GST_RTSP_RANGE_NPT</span></a>.</p> 256<div class="refsect3"> 257<a name="gst-rtsp-range-convert-units.parameters"></a><h4>Parameters</h4> 258<div class="informaltable"><table class="informaltable" width="100%" border="0"> 259<colgroup> 260<col width="150px" class="parameters_name"> 261<col class="parameters_description"> 262<col width="200px" class="parameters_annotations"> 263</colgroup> 264<tbody> 265<tr> 266<td class="parameter_name"><p>range</p></td> 267<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a></p></td> 268<td class="parameter_annotations"> </td> 269</tr> 270<tr> 271<td class="parameter_name"><p>unit</p></td> 272<td class="parameter_description"><p>the unit to convert the range into</p></td> 273<td class="parameter_annotations"> </td> 274</tr> 275</tbody> 276</table></div> 277</div> 278<div class="refsect3"> 279<a name="gst-rtsp-range-convert-units.returns"></a><h4>Returns</h4> 280<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the range could be converted</p> 281</div> 282</div> 283<hr> 284<div class="refsect2"> 285<a name="gst-rtsp-range-free"></a><h3>gst_rtsp_range_free ()</h3> 286<pre class="programlisting"><span class="returnvalue">void</span> 287gst_rtsp_range_free (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a> *range</code></em>);</pre> 288<p>Free the memory allocated by <em class="parameter"><code>range</code></em> 289.</p> 290<div class="refsect3"> 291<a name="gst-rtsp-range-free.parameters"></a><h4>Parameters</h4> 292<div class="informaltable"><table class="informaltable" width="100%" border="0"> 293<colgroup> 294<col width="150px" class="parameters_name"> 295<col class="parameters_description"> 296<col width="200px" class="parameters_annotations"> 297</colgroup> 298<tbody><tr> 299<td class="parameter_name"><p>range</p></td> 300<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeRange" title="struct GstRTSPTimeRange"><span class="type">GstRTSPTimeRange</span></a></p></td> 301<td class="parameter_annotations"> </td> 302</tr></tbody> 303</table></div> 304</div> 305</div> 306</div> 307<div class="refsect1"> 308<a name="gst-plugins-base-libs-GstRTSPTimeRange.other_details"></a><h2>Types and Values</h2> 309<div class="refsect2"> 310<a name="GstRTSPRangeUnit"></a><h3>enum GstRTSPRangeUnit</h3> 311<p>Different possible time range units.</p> 312<div class="refsect3"> 313<a name="GstRTSPRangeUnit.members"></a><h4>Members</h4> 314<div class="informaltable"><table class="informaltable" width="100%" border="0"> 315<colgroup> 316<col width="300px" class="enum_members_name"> 317<col class="enum_members_description"> 318<col width="200px" class="enum_members_annotations"> 319</colgroup> 320<tbody> 321<tr> 322<td class="enum_member_name"><p><a name="GST-RTSP-RANGE-SMPTE:CAPS"></a>GST_RTSP_RANGE_SMPTE</p></td> 323<td class="enum_member_description"> 324<p>SMPTE timecode</p> 325</td> 326<td class="enum_member_annotations"> </td> 327</tr> 328<tr> 329<td class="enum_member_name"><p><a name="GST-RTSP-RANGE-SMPTE-30-DROP:CAPS"></a>GST_RTSP_RANGE_SMPTE_30_DROP</p></td> 330<td class="enum_member_description"> 331<p>29.97 frames per second</p> 332</td> 333<td class="enum_member_annotations"> </td> 334</tr> 335<tr> 336<td class="enum_member_name"><p><a name="GST-RTSP-RANGE-SMPTE-25:CAPS"></a>GST_RTSP_RANGE_SMPTE_25</p></td> 337<td class="enum_member_description"> 338<p>25 frames per second</p> 339</td> 340<td class="enum_member_annotations"> </td> 341</tr> 342<tr> 343<td class="enum_member_name"><p><a name="GST-RTSP-RANGE-NPT:CAPS"></a>GST_RTSP_RANGE_NPT</p></td> 344<td class="enum_member_description"> 345<p>Normal play time</p> 346</td> 347<td class="enum_member_annotations"> </td> 348</tr> 349<tr> 350<td class="enum_member_name"><p><a name="GST-RTSP-RANGE-CLOCK:CAPS"></a>GST_RTSP_RANGE_CLOCK</p></td> 351<td class="enum_member_description"> 352<p>Absolute time expressed as ISO 8601 timestamps</p> 353</td> 354<td class="enum_member_annotations"> </td> 355</tr> 356</tbody> 357</table></div> 358</div> 359</div> 360<hr> 361<div class="refsect2"> 362<a name="GstRTSPTimeRange"></a><h3>struct GstRTSPTimeRange</h3> 363<pre class="programlisting">struct GstRTSPTimeRange { 364 GstRTSPRangeUnit unit; 365 366 GstRTSPTime min; 367 GstRTSPTime max; 368 GstRTSPTime2 min2; 369 GstRTSPTime2 max2; 370}; 371</pre> 372<p>A time range.</p> 373<div class="refsect3"> 374<a name="GstRTSPTimeRange.members"></a><h4>Members</h4> 375<div class="informaltable"><table class="informaltable" width="100%" border="0"> 376<colgroup> 377<col width="300px" class="struct_members_name"> 378<col class="struct_members_description"> 379<col width="200px" class="struct_members_annotations"> 380</colgroup> 381<tbody> 382<tr> 383<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPRangeUnit" title="enum GstRTSPRangeUnit"><span class="type">GstRTSPRangeUnit</span></a> <em class="structfield"><code><a name="GstRTSPTimeRange.unit"></a>unit</code></em>;</p></td> 384<td class="struct_member_description"><p>the time units used</p></td> 385<td class="struct_member_annotations"> </td> 386</tr> 387<tr> 388<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime" title="struct GstRTSPTime"><span class="type">GstRTSPTime</span></a> <em class="structfield"><code><a name="GstRTSPTimeRange.min"></a>min</code></em>;</p></td> 389<td class="struct_member_description"><p>the minimum interval</p></td> 390<td class="struct_member_annotations"> </td> 391</tr> 392<tr> 393<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime" title="struct GstRTSPTime"><span class="type">GstRTSPTime</span></a> <em class="structfield"><code><a name="GstRTSPTimeRange.max"></a>max</code></em>;</p></td> 394<td class="struct_member_description"><p>the maximum interval</p></td> 395<td class="struct_member_annotations"> </td> 396</tr> 397<tr> 398<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime2" title="struct GstRTSPTime2"><span class="type">GstRTSPTime2</span></a> <em class="structfield"><code><a name="GstRTSPTimeRange.min2"></a>min2</code></em>;</p></td> 399<td class="struct_member_description"><p>extra fields in the minimum interval (Since: 1.2)</p></td> 400<td class="struct_member_annotations"> </td> 401</tr> 402<tr> 403<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTime2" title="struct GstRTSPTime2"><span class="type">GstRTSPTime2</span></a> <em class="structfield"><code><a name="GstRTSPTimeRange.max2"></a>max2</code></em>;</p></td> 404<td class="struct_member_description"><p>extra fields in the maximum interval (Since: 1.2)</p></td> 405<td class="struct_member_annotations"> </td> 406</tr> 407</tbody> 408</table></div> 409</div> 410</div> 411<hr> 412<div class="refsect2"> 413<a name="GstRTSPTime"></a><h3>struct GstRTSPTime</h3> 414<pre class="programlisting">struct GstRTSPTime { 415 GstRTSPTimeType type; 416 gdouble seconds; 417}; 418</pre> 419<p>A time indication.</p> 420<div class="refsect3"> 421<a name="GstRTSPTime.members"></a><h4>Members</h4> 422<div class="informaltable"><table class="informaltable" width="100%" border="0"> 423<colgroup> 424<col width="300px" class="struct_members_name"> 425<col class="struct_members_description"> 426<col width="200px" class="struct_members_annotations"> 427</colgroup> 428<tbody> 429<tr> 430<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-GstRTSPTimeRange.html#GstRTSPTimeType" title="enum GstRTSPTimeType"><span class="type">GstRTSPTimeType</span></a> <em class="structfield"><code><a name="GstRTSPTime.type"></a>type</code></em>;</p></td> 431<td class="struct_member_description"><p>the time of the time</p></td> 432<td class="struct_member_annotations"> </td> 433</tr> 434<tr> 435<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GstRTSPTime.seconds"></a>seconds</code></em>;</p></td> 436<td class="struct_member_description"><p>seconds when <em class="parameter"><code>type</code></em> 437is GST_RTSP_TIME_SECONDS, 438GST_RTSP_TIME_UTC and GST_RTSP_TIME_FRAMES</p></td> 439<td class="struct_member_annotations"> </td> 440</tr> 441</tbody> 442</table></div> 443</div> 444</div> 445<hr> 446<div class="refsect2"> 447<a name="GstRTSPTime2"></a><h3>struct GstRTSPTime2</h3> 448<pre class="programlisting">struct GstRTSPTime2 { 449 gdouble frames; 450 guint year; 451 guint month; 452 guint day; 453}; 454</pre> 455<p>Extra fields for a time indication.</p> 456<div class="refsect3"> 457<a name="GstRTSPTime2.members"></a><h4>Members</h4> 458<div class="informaltable"><table class="informaltable" width="100%" border="0"> 459<colgroup> 460<col width="300px" class="struct_members_name"> 461<col class="struct_members_description"> 462<col width="200px" class="struct_members_annotations"> 463</colgroup> 464<tbody> 465<tr> 466<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="GstRTSPTime2.frames"></a>frames</code></em>;</p></td> 467<td class="struct_member_description"><p>frames and subframes when type in GstRTSPTime is 468GST_RTSP_TIME_FRAMES</p></td> 469<td class="struct_member_annotations"> </td> 470</tr> 471<tr> 472<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstRTSPTime2.year"></a>year</code></em>;</p></td> 473<td class="struct_member_description"><p>year when type is GST_RTSP_TIME_UTC</p></td> 474<td class="struct_member_annotations"> </td> 475</tr> 476<tr> 477<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstRTSPTime2.month"></a>month</code></em>;</p></td> 478<td class="struct_member_description"><p>month when type is GST_RTSP_TIME_UTC</p></td> 479<td class="struct_member_annotations"> </td> 480</tr> 481<tr> 482<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstRTSPTime2.day"></a>day</code></em>;</p></td> 483<td class="struct_member_description"><p>day when type is GST_RTSP_TIME_UTC</p></td> 484<td class="struct_member_annotations"> </td> 485</tr> 486</tbody> 487</table></div> 488</div> 489<p class="since">Since: <a class="link" href="ix14.html#api-index-1.2">1.2</a></p> 490</div> 491<hr> 492<div class="refsect2"> 493<a name="GstRTSPTimeType"></a><h3>enum GstRTSPTimeType</h3> 494<p>Possible time types.</p> 495<div class="refsect3"> 496<a name="GstRTSPTimeType.members"></a><h4>Members</h4> 497<div class="informaltable"><table class="informaltable" width="100%" border="0"> 498<colgroup> 499<col width="300px" class="enum_members_name"> 500<col class="enum_members_description"> 501<col width="200px" class="enum_members_annotations"> 502</colgroup> 503<tbody> 504<tr> 505<td class="enum_member_name"><p><a name="GST-RTSP-TIME-SECONDS:CAPS"></a>GST_RTSP_TIME_SECONDS</p></td> 506<td class="enum_member_description"> 507<p>seconds</p> 508</td> 509<td class="enum_member_annotations"> </td> 510</tr> 511<tr> 512<td class="enum_member_name"><p><a name="GST-RTSP-TIME-NOW:CAPS"></a>GST_RTSP_TIME_NOW</p></td> 513<td class="enum_member_description"> 514<p>now</p> 515</td> 516<td class="enum_member_annotations"> </td> 517</tr> 518<tr> 519<td class="enum_member_name"><p><a name="GST-RTSP-TIME-END:CAPS"></a>GST_RTSP_TIME_END</p></td> 520<td class="enum_member_description"> 521<p>end</p> 522</td> 523<td class="enum_member_annotations"> </td> 524</tr> 525<tr> 526<td class="enum_member_name"><p><a name="GST-RTSP-TIME-FRAMES:CAPS"></a>GST_RTSP_TIME_FRAMES</p></td> 527<td class="enum_member_description"> 528<p>frames and subframes</p> 529</td> 530<td class="enum_member_annotations"> </td> 531</tr> 532<tr> 533<td class="enum_member_name"><p><a name="GST-RTSP-TIME-UTC:CAPS"></a>GST_RTSP_TIME_UTC</p></td> 534<td class="enum_member_description"> 535<p>UTC time</p> 536</td> 537<td class="enum_member_annotations"> </td> 538</tr> 539</tbody> 540</table></div> 541</div> 542</div> 543</div> 544</div> 545<div class="footer"> 546<hr>Generated by GTK-Doc V1.28</div> 547</body> 548</html>