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>GstRTPBuffer: 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-rtp.html" title="RTP Library"> 9<link rel="prev" href="GstRTPBasePayload.html" title="GstRTPBasePayload"> 10<link rel="next" href="gst-plugins-base-libs-GstRTCPBuffer.html" title="GstRTCPBuffer"> 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-GstRTPBuffer.description" class="shortcut">Description</a></span> 19</td> 20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 21<td><a accesskey="u" href="gstreamer-rtp.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 22<td><a accesskey="p" href="GstRTPBasePayload.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="gst-plugins-base-libs-GstRTCPBuffer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 24</tr></table> 25<div class="refentry"> 26<a name="gst-plugins-base-libs-GstRTPBuffer"></a><div class="titlepage"></div> 27<div class="refnamediv"><table width="100%"><tr> 28<td valign="top"> 29<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-GstRTPBuffer.top_of_page"></a>GstRTPBuffer</span></h2> 30<p>GstRTPBuffer — Helper methods for dealing with RTP buffers</p> 31</td> 32<td class="gallery_image" valign="top" align="right"></td> 33</tr></table></div> 34<div class="refsect1"> 35<a name="gst-plugins-base-libs-GstRTPBuffer.functions"></a><h2>Functions</h2> 36<div class="informaltable"><table class="informaltable" width="100%" border="0"> 37<colgroup> 38<col width="150px" class="functions_return"> 39<col class="functions_name"> 40</colgroup> 41<tbody> 42<tr> 43<td class="function_type"> 44<span class="returnvalue">void</span> 45</td> 46<td class="function_name"> 47<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-allocate-data" title="gst_rtp_buffer_allocate_data ()">gst_rtp_buffer_allocate_data</a> <span class="c_punctuation">()</span> 48</td> 49</tr> 50<tr> 51<td class="function_type"> 52<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 53</td> 54<td class="function_name"> 55<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-new-take-data" title="gst_rtp_buffer_new_take_data ()">gst_rtp_buffer_new_take_data</a> <span class="c_punctuation">()</span> 56</td> 57</tr> 58<tr> 59<td class="function_type"> 60<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 61</td> 62<td class="function_name"> 63<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-new-copy-data" title="gst_rtp_buffer_new_copy_data ()">gst_rtp_buffer_new_copy_data</a> <span class="c_punctuation">()</span> 64</td> 65</tr> 66<tr> 67<td class="function_type"> 68<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 69</td> 70<td class="function_name"> 71<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-new-allocate" title="gst_rtp_buffer_new_allocate ()">gst_rtp_buffer_new_allocate</a> <span class="c_punctuation">()</span> 72</td> 73</tr> 74<tr> 75<td class="function_type"> 76<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 77</td> 78<td class="function_name"> 79<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-new-allocate-len" title="gst_rtp_buffer_new_allocate_len ()">gst_rtp_buffer_new_allocate_len</a> <span class="c_punctuation">()</span> 80</td> 81</tr> 82<tr> 83<td class="function_type"> 84<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 85</td> 86<td class="function_name"> 87<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-map" title="gst_rtp_buffer_map ()">gst_rtp_buffer_map</a> <span class="c_punctuation">()</span> 88</td> 89</tr> 90<tr> 91<td class="function_type"> 92<span class="returnvalue">void</span> 93</td> 94<td class="function_name"> 95<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-unmap" title="gst_rtp_buffer_unmap ()">gst_rtp_buffer_unmap</a> <span class="c_punctuation">()</span> 96</td> 97</tr> 98<tr> 99<td class="function_type"> 100<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 101</td> 102<td class="function_name"> 103<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-calc-header-len" title="gst_rtp_buffer_calc_header_len ()">gst_rtp_buffer_calc_header_len</a> <span class="c_punctuation">()</span> 104</td> 105</tr> 106<tr> 107<td class="function_type"> 108<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 109</td> 110<td class="function_name"> 111<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-calc-packet-len" title="gst_rtp_buffer_calc_packet_len ()">gst_rtp_buffer_calc_packet_len</a> <span class="c_punctuation">()</span> 112</td> 113</tr> 114<tr> 115<td class="function_type"> 116<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 117</td> 118<td class="function_name"> 119<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-calc-payload-len" title="gst_rtp_buffer_calc_payload_len ()">gst_rtp_buffer_calc_payload_len</a> <span class="c_punctuation">()</span> 120</td> 121</tr> 122<tr> 123<td class="function_type"> 124<span class="returnvalue">void</span> 125</td> 126<td class="function_name"> 127<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-packet-len" title="gst_rtp_buffer_set_packet_len ()">gst_rtp_buffer_set_packet_len</a> <span class="c_punctuation">()</span> 128</td> 129</tr> 130<tr> 131<td class="function_type"> 132<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 133</td> 134<td class="function_name"> 135<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-packet-len" title="gst_rtp_buffer_get_packet_len ()">gst_rtp_buffer_get_packet_len</a> <span class="c_punctuation">()</span> 136</td> 137</tr> 138<tr> 139<td class="function_type"> 140<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 141</td> 142<td class="function_name"> 143<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-header-len" title="gst_rtp_buffer_get_header_len ()">gst_rtp_buffer_get_header_len</a> <span class="c_punctuation">()</span> 144</td> 145</tr> 146<tr> 147<td class="function_type"> 148<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 149</td> 150<td class="function_name"> 151<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-version" title="gst_rtp_buffer_get_version ()">gst_rtp_buffer_get_version</a> <span class="c_punctuation">()</span> 152</td> 153</tr> 154<tr> 155<td class="function_type"> 156<span class="returnvalue">void</span> 157</td> 158<td class="function_name"> 159<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-version" title="gst_rtp_buffer_set_version ()">gst_rtp_buffer_set_version</a> <span class="c_punctuation">()</span> 160</td> 161</tr> 162<tr> 163<td class="function_type"> 164<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 165</td> 166<td class="function_name"> 167<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-padding" title="gst_rtp_buffer_get_padding ()">gst_rtp_buffer_get_padding</a> <span class="c_punctuation">()</span> 168</td> 169</tr> 170<tr> 171<td class="function_type"> 172<span class="returnvalue">void</span> 173</td> 174<td class="function_name"> 175<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-padding" title="gst_rtp_buffer_set_padding ()">gst_rtp_buffer_set_padding</a> <span class="c_punctuation">()</span> 176</td> 177</tr> 178<tr> 179<td class="function_type"> 180<span class="returnvalue">void</span> 181</td> 182<td class="function_name"> 183<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-pad-to" title="gst_rtp_buffer_pad_to ()">gst_rtp_buffer_pad_to</a> <span class="c_punctuation">()</span> 184</td> 185</tr> 186<tr> 187<td class="function_type"> 188<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 189</td> 190<td class="function_name"> 191<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-extension" title="gst_rtp_buffer_get_extension ()">gst_rtp_buffer_get_extension</a> <span class="c_punctuation">()</span> 192</td> 193</tr> 194<tr> 195<td class="function_type"> 196<span class="returnvalue">void</span> 197</td> 198<td class="function_name"> 199<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-extension" title="gst_rtp_buffer_set_extension ()">gst_rtp_buffer_set_extension</a> <span class="c_punctuation">()</span> 200</td> 201</tr> 202<tr> 203<td class="function_type"> 204<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 205</td> 206<td class="function_name"> 207<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-extension-data" title="gst_rtp_buffer_get_extension_data ()">gst_rtp_buffer_get_extension_data</a> <span class="c_punctuation">()</span> 208</td> 209</tr> 210<tr> 211<td class="function_type"> 212<a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> * 213</td> 214<td class="function_name"> 215<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-extension-bytes" title="gst_rtp_buffer_get_extension_bytes ()">gst_rtp_buffer_get_extension_bytes</a> <span class="c_punctuation">()</span> 216</td> 217</tr> 218<tr> 219<td class="function_type"> 220<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 221</td> 222<td class="function_name"> 223<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-ssrc" title="gst_rtp_buffer_get_ssrc ()">gst_rtp_buffer_get_ssrc</a> <span class="c_punctuation">()</span> 224</td> 225</tr> 226<tr> 227<td class="function_type"> 228<span class="returnvalue">void</span> 229</td> 230<td class="function_name"> 231<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-ssrc" title="gst_rtp_buffer_set_ssrc ()">gst_rtp_buffer_set_ssrc</a> <span class="c_punctuation">()</span> 232</td> 233</tr> 234<tr> 235<td class="function_type"> 236<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 237</td> 238<td class="function_name"> 239<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-csrc-count" title="gst_rtp_buffer_get_csrc_count ()">gst_rtp_buffer_get_csrc_count</a> <span class="c_punctuation">()</span> 240</td> 241</tr> 242<tr> 243<td class="function_type"> 244<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 245</td> 246<td class="function_name"> 247<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-csrc" title="gst_rtp_buffer_get_csrc ()">gst_rtp_buffer_get_csrc</a> <span class="c_punctuation">()</span> 248</td> 249</tr> 250<tr> 251<td class="function_type"> 252<span class="returnvalue">void</span> 253</td> 254<td class="function_name"> 255<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-csrc" title="gst_rtp_buffer_set_csrc ()">gst_rtp_buffer_set_csrc</a> <span class="c_punctuation">()</span> 256</td> 257</tr> 258<tr> 259<td class="function_type"> 260<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 261</td> 262<td class="function_name"> 263<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-marker" title="gst_rtp_buffer_get_marker ()">gst_rtp_buffer_get_marker</a> <span class="c_punctuation">()</span> 264</td> 265</tr> 266<tr> 267<td class="function_type"> 268<span class="returnvalue">void</span> 269</td> 270<td class="function_name"> 271<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-marker" title="gst_rtp_buffer_set_marker ()">gst_rtp_buffer_set_marker</a> <span class="c_punctuation">()</span> 272</td> 273</tr> 274<tr> 275<td class="function_type"> 276<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 277</td> 278<td class="function_name"> 279<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload-type" title="gst_rtp_buffer_get_payload_type ()">gst_rtp_buffer_get_payload_type</a> <span class="c_punctuation">()</span> 280</td> 281</tr> 282<tr> 283<td class="function_type"> 284<span class="returnvalue">void</span> 285</td> 286<td class="function_name"> 287<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-payload-type" title="gst_rtp_buffer_set_payload_type ()">gst_rtp_buffer_set_payload_type</a> <span class="c_punctuation">()</span> 288</td> 289</tr> 290<tr> 291<td class="function_type"> 292<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> 293</td> 294<td class="function_name"> 295<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-seq" title="gst_rtp_buffer_get_seq ()">gst_rtp_buffer_get_seq</a> <span class="c_punctuation">()</span> 296</td> 297</tr> 298<tr> 299<td class="function_type"> 300<span class="returnvalue">void</span> 301</td> 302<td class="function_name"> 303<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-seq" title="gst_rtp_buffer_set_seq ()">gst_rtp_buffer_set_seq</a> <span class="c_punctuation">()</span> 304</td> 305</tr> 306<tr> 307<td class="function_type"> 308<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 309</td> 310<td class="function_name"> 311<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-timestamp" title="gst_rtp_buffer_get_timestamp ()">gst_rtp_buffer_get_timestamp</a> <span class="c_punctuation">()</span> 312</td> 313</tr> 314<tr> 315<td class="function_type"> 316<span class="returnvalue">void</span> 317</td> 318<td class="function_name"> 319<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-timestamp" title="gst_rtp_buffer_set_timestamp ()">gst_rtp_buffer_set_timestamp</a> <span class="c_punctuation">()</span> 320</td> 321</tr> 322<tr> 323<td class="function_type"> 324<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 325</td> 326<td class="function_name"> 327<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload-buffer" title="gst_rtp_buffer_get_payload_buffer ()">gst_rtp_buffer_get_payload_buffer</a> <span class="c_punctuation">()</span> 328</td> 329</tr> 330<tr> 331<td class="function_type"> 332<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 333</td> 334<td class="function_name"> 335<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload-subbuffer" title="gst_rtp_buffer_get_payload_subbuffer ()">gst_rtp_buffer_get_payload_subbuffer</a> <span class="c_punctuation">()</span> 336</td> 337</tr> 338<tr> 339<td class="function_type"> 340<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 341</td> 342<td class="function_name"> 343<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload-len" title="gst_rtp_buffer_get_payload_len ()">gst_rtp_buffer_get_payload_len</a> <span class="c_punctuation">()</span> 344</td> 345</tr> 346<tr> 347<td class="function_type"> 348<a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> * 349</td> 350<td class="function_name"> 351<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload-bytes" title="gst_rtp_buffer_get_payload_bytes ()">gst_rtp_buffer_get_payload_bytes</a> <span class="c_punctuation">()</span> 352</td> 353</tr> 354<tr> 355<td class="function_type"> 356<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> 357</td> 358<td class="function_name"> 359<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-payload" title="gst_rtp_buffer_get_payload ()">gst_rtp_buffer_get_payload</a> <span class="c_punctuation">()</span> 360</td> 361</tr> 362<tr> 363<td class="function_type"> 364<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 365</td> 366<td class="function_name"> 367<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-default-clock-rate" title="gst_rtp_buffer_default_clock_rate ()">gst_rtp_buffer_default_clock_rate</a> <span class="c_punctuation">()</span> 368</td> 369</tr> 370<tr> 371<td class="function_type"> 372<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> 373</td> 374<td class="function_name"> 375<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-compare-seqnum" title="gst_rtp_buffer_compare_seqnum ()">gst_rtp_buffer_compare_seqnum</a> <span class="c_punctuation">()</span> 376</td> 377</tr> 378<tr> 379<td class="function_type"> 380<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> 381</td> 382<td class="function_name"> 383<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-ext-timestamp" title="gst_rtp_buffer_ext_timestamp ()">gst_rtp_buffer_ext_timestamp</a> <span class="c_punctuation">()</span> 384</td> 385</tr> 386<tr> 387<td class="function_type"> 388<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 389</td> 390<td class="function_name"> 391<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-set-extension-data" title="gst_rtp_buffer_set_extension_data ()">gst_rtp_buffer_set_extension_data</a> <span class="c_punctuation">()</span> 392</td> 393</tr> 394<tr> 395<td class="function_type"> 396<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 397</td> 398<td class="function_name"> 399<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-extension-onebyte-header" title="gst_rtp_buffer_get_extension_onebyte_header ()">gst_rtp_buffer_get_extension_onebyte_header</a> <span class="c_punctuation">()</span> 400</td> 401</tr> 402<tr> 403<td class="function_type"> 404<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 405</td> 406<td class="function_name"> 407<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-get-extension-twobytes-header" title="gst_rtp_buffer_get_extension_twobytes_header ()">gst_rtp_buffer_get_extension_twobytes_header</a> <span class="c_punctuation">()</span> 408</td> 409</tr> 410<tr> 411<td class="function_type"> 412<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 413</td> 414<td class="function_name"> 415<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-add-extension-onebyte-header" title="gst_rtp_buffer_add_extension_onebyte_header ()">gst_rtp_buffer_add_extension_onebyte_header</a> <span class="c_punctuation">()</span> 416</td> 417</tr> 418<tr> 419<td class="function_type"> 420<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 421</td> 422<td class="function_name"> 423<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-add-extension-twobytes-header" title="gst_rtp_buffer_add_extension_twobytes_header ()">gst_rtp_buffer_add_extension_twobytes_header</a> <span class="c_punctuation">()</span> 424</td> 425</tr> 426</tbody> 427</table></div> 428</div> 429<div class="refsect1"> 430<a name="gst-plugins-base-libs-GstRTPBuffer.other"></a><h2>Types and Values</h2> 431<div class="informaltable"><table class="informaltable" width="100%" border="0"> 432<colgroup> 433<col width="150px" class="name"> 434<col class="description"> 435</colgroup> 436<tbody> 437<tr> 438<td class="define_keyword">#define</td> 439<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GST-RTP-VERSION:CAPS" title="GST_RTP_VERSION">GST_RTP_VERSION</a></td> 440</tr> 441<tr> 442<td class="datatype_keyword">struct</td> 443<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer">GstRTPBuffer</a></td> 444</tr> 445<tr> 446<td class="define_keyword">#define</td> 447<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GST-RTP-BUFFER-INIT:CAPS" title="GST_RTP_BUFFER_INIT">GST_RTP_BUFFER_INIT</a></td> 448</tr> 449<tr> 450<td class="datatype_keyword">enum</td> 451<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBufferFlags" title="enum GstRTPBufferFlags">GstRTPBufferFlags</a></td> 452</tr> 453<tr> 454<td class="datatype_keyword">enum</td> 455<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBufferMapFlags" title="enum GstRTPBufferMapFlags">GstRTPBufferMapFlags</a></td> 456</tr> 457</tbody> 458</table></div> 459</div> 460<div class="refsect1"> 461<a name="gst-plugins-base-libs-GstRTPBuffer.includes"></a><h2>Includes</h2> 462<pre class="synopsis">#include <gst/rtp/rtp.h> 463</pre> 464</div> 465<div class="refsect1"> 466<a name="gst-plugins-base-libs-GstRTPBuffer.description"></a><h2>Description</h2> 467<p>The GstRTPBuffer helper functions makes it easy to parse and create regular 468<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> objects that contain RTP payloads. These buffers are typically of 469'application/x-rtp' <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a>.</p> 470</div> 471<div class="refsect1"> 472<a name="gst-plugins-base-libs-GstRTPBuffer.functions_details"></a><h2>Functions</h2> 473<div class="refsect2"> 474<a name="gst-rtp-buffer-allocate-data"></a><h3>gst_rtp_buffer_allocate_data ()</h3> 475<pre class="programlisting"><span class="returnvalue">void</span> 476gst_rtp_buffer_allocate_data (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buffer</code></em>, 477 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>, 478 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>, 479 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 480<p>Allocate enough data in <em class="parameter"><code>buffer</code></em> 481 to hold an RTP packet with <em class="parameter"><code>csrc_count</code></em> 482 CSRCs, 483a payload length of <em class="parameter"><code>payload_len</code></em> 484 and padding of <em class="parameter"><code>pad_len</code></em> 485. 486<em class="parameter"><code>buffer</code></em> 487 must be writable and all previous memory in <em class="parameter"><code>buffer</code></em> 488 will be freed. 489If <em class="parameter"><code>pad_len</code></em> 490 is >0, the padding bit will be set. All other RTP header fields 491will be set to 0/FALSE.</p> 492<div class="refsect3"> 493<a name="gst-rtp-buffer-allocate-data.parameters"></a><h4>Parameters</h4> 494<div class="informaltable"><table class="informaltable" width="100%" border="0"> 495<colgroup> 496<col width="150px" class="parameters_name"> 497<col class="parameters_description"> 498<col width="200px" class="parameters_annotations"> 499</colgroup> 500<tbody> 501<tr> 502<td class="parameter_name"><p>buffer</p></td> 503<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a></p></td> 504<td class="parameter_annotations"> </td> 505</tr> 506<tr> 507<td class="parameter_name"><p>payload_len</p></td> 508<td class="parameter_description"><p>the length of the payload</p></td> 509<td class="parameter_annotations"> </td> 510</tr> 511<tr> 512<td class="parameter_name"><p>pad_len</p></td> 513<td class="parameter_description"><p>the amount of padding</p></td> 514<td class="parameter_annotations"> </td> 515</tr> 516<tr> 517<td class="parameter_name"><p>csrc_count</p></td> 518<td class="parameter_description"><p>the number of CSRC entries</p></td> 519<td class="parameter_annotations"> </td> 520</tr> 521</tbody> 522</table></div> 523</div> 524</div> 525<hr> 526<div class="refsect2"> 527<a name="gst-rtp-buffer-new-take-data"></a><h3>gst_rtp_buffer_new_take_data ()</h3> 528<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 529gst_rtp_buffer_new_take_data (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>, 530 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> len</code></em>);</pre> 531<p>Create a new buffer and set the data and size of the buffer to <em class="parameter"><code>data</code></em> 532 and <em class="parameter"><code>len</code></em> 533 534respectively. <em class="parameter"><code>data</code></em> 535 will be freed when the buffer is unreffed, so this 536function transfers ownership of <em class="parameter"><code>data</code></em> 537 to the new buffer.</p> 538<div class="refsect3"> 539<a name="gst-rtp-buffer-new-take-data.parameters"></a><h4>Parameters</h4> 540<div class="informaltable"><table class="informaltable" width="100%" border="0"> 541<colgroup> 542<col width="150px" class="parameters_name"> 543<col class="parameters_description"> 544<col width="200px" class="parameters_annotations"> 545</colgroup> 546<tbody> 547<tr> 548<td class="parameter_name"><p>data</p></td> 549<td class="parameter_description"><p>data for the new buffer. </p></td> 550<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td> 551</tr> 552<tr> 553<td class="parameter_name"><p>len</p></td> 554<td class="parameter_description"><p>the length of data</p></td> 555<td class="parameter_annotations"> </td> 556</tr> 557</tbody> 558</table></div> 559</div> 560<div class="refsect3"> 561<a name="gst-rtp-buffer-new-take-data.returns"></a><h4>Returns</h4> 562<p> A newly allocated buffer with <em class="parameter"><code>data</code></em> 563and of size <em class="parameter"><code>len</code></em> 564.</p> 565</div> 566</div> 567<hr> 568<div class="refsect2"> 569<a name="gst-rtp-buffer-new-copy-data"></a><h3>gst_rtp_buffer_new_copy_data ()</h3> 570<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 571gst_rtp_buffer_new_copy_data (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> data</code></em>, 572 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> len</code></em>);</pre> 573<p>Create a new buffer and set the data to a copy of <em class="parameter"><code>len</code></em> 574 575bytes of <em class="parameter"><code>data</code></em> 576 and the size to <em class="parameter"><code>len</code></em> 577. The data will be freed when the buffer 578is freed.</p> 579<div class="refsect3"> 580<a name="gst-rtp-buffer-new-copy-data.parameters"></a><h4>Parameters</h4> 581<div class="informaltable"><table class="informaltable" width="100%" border="0"> 582<colgroup> 583<col width="150px" class="parameters_name"> 584<col class="parameters_description"> 585<col width="200px" class="parameters_annotations"> 586</colgroup> 587<tbody> 588<tr> 589<td class="parameter_name"><p>data</p></td> 590<td class="parameter_description"><p>data for the new 591buffer. </p></td> 592<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td> 593</tr> 594<tr> 595<td class="parameter_name"><p>len</p></td> 596<td class="parameter_description"><p>the length of data</p></td> 597<td class="parameter_annotations"> </td> 598</tr> 599</tbody> 600</table></div> 601</div> 602<div class="refsect3"> 603<a name="gst-rtp-buffer-new-copy-data.returns"></a><h4>Returns</h4> 604<p> A newly allocated buffer with a copy of <em class="parameter"><code>data</code></em> 605and of size <em class="parameter"><code>len</code></em> 606.</p> 607</div> 608</div> 609<hr> 610<div class="refsect2"> 611<a name="gst-rtp-buffer-new-allocate"></a><h3>gst_rtp_buffer_new_allocate ()</h3> 612<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 613gst_rtp_buffer_new_allocate (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>, 614 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>, 615 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 616<p>Allocate a new <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> with enough data to hold an RTP packet with 617<em class="parameter"><code>csrc_count</code></em> 618 CSRCs, a payload length of <em class="parameter"><code>payload_len</code></em> 619 and padding of <em class="parameter"><code>pad_len</code></em> 620. 621All other RTP header fields will be set to 0/FALSE.</p> 622<div class="refsect3"> 623<a name="gst-rtp-buffer-new-allocate.parameters"></a><h4>Parameters</h4> 624<div class="informaltable"><table class="informaltable" width="100%" border="0"> 625<colgroup> 626<col width="150px" class="parameters_name"> 627<col class="parameters_description"> 628<col width="200px" class="parameters_annotations"> 629</colgroup> 630<tbody> 631<tr> 632<td class="parameter_name"><p>payload_len</p></td> 633<td class="parameter_description"><p>the length of the payload</p></td> 634<td class="parameter_annotations"> </td> 635</tr> 636<tr> 637<td class="parameter_name"><p>pad_len</p></td> 638<td class="parameter_description"><p>the amount of padding</p></td> 639<td class="parameter_annotations"> </td> 640</tr> 641<tr> 642<td class="parameter_name"><p>csrc_count</p></td> 643<td class="parameter_description"><p>the number of CSRC entries</p></td> 644<td class="parameter_annotations"> </td> 645</tr> 646</tbody> 647</table></div> 648</div> 649<div class="refsect3"> 650<a name="gst-rtp-buffer-new-allocate.returns"></a><h4>Returns</h4> 651<p> A newly allocated buffer that can hold an RTP packet with given 652parameters.</p> 653</div> 654</div> 655<hr> 656<div class="refsect2"> 657<a name="gst-rtp-buffer-new-allocate-len"></a><h3>gst_rtp_buffer_new_allocate_len ()</h3> 658<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 659gst_rtp_buffer_new_allocate_len (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>, 660 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>, 661 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 662<p>Create a new <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> that can hold an RTP packet that is exactly 663<em class="parameter"><code>packet_len</code></em> 664 long. The length of the payload depends on <em class="parameter"><code>pad_len</code></em> 665 and 666<em class="parameter"><code>csrc_count</code></em> 667 and can be calculated with <a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-calc-payload-len" title="gst_rtp_buffer_calc_payload_len ()"><code class="function">gst_rtp_buffer_calc_payload_len()</code></a>. 668All RTP header fields will be set to 0/FALSE.</p> 669<div class="refsect3"> 670<a name="gst-rtp-buffer-new-allocate-len.parameters"></a><h4>Parameters</h4> 671<div class="informaltable"><table class="informaltable" width="100%" border="0"> 672<colgroup> 673<col width="150px" class="parameters_name"> 674<col class="parameters_description"> 675<col width="200px" class="parameters_annotations"> 676</colgroup> 677<tbody> 678<tr> 679<td class="parameter_name"><p>packet_len</p></td> 680<td class="parameter_description"><p>the total length of the packet</p></td> 681<td class="parameter_annotations"> </td> 682</tr> 683<tr> 684<td class="parameter_name"><p>pad_len</p></td> 685<td class="parameter_description"><p>the amount of padding</p></td> 686<td class="parameter_annotations"> </td> 687</tr> 688<tr> 689<td class="parameter_name"><p>csrc_count</p></td> 690<td class="parameter_description"><p>the number of CSRC entries</p></td> 691<td class="parameter_annotations"> </td> 692</tr> 693</tbody> 694</table></div> 695</div> 696<div class="refsect3"> 697<a name="gst-rtp-buffer-new-allocate-len.returns"></a><h4>Returns</h4> 698<p> A newly allocated buffer that can hold an RTP packet of <em class="parameter"><code>packet_len</code></em> 699.</p> 700</div> 701</div> 702<hr> 703<div class="refsect2"> 704<a name="gst-rtp-buffer-map"></a><h3>gst_rtp_buffer_map ()</h3> 705<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 706gst_rtp_buffer_map (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buffer</code></em>, 707 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a> flags</code></em>, 708 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 709<p>Map the contents of <em class="parameter"><code>buffer</code></em> 710 into <em class="parameter"><code>rtp</code></em> 711.</p> 712<div class="refsect3"> 713<a name="gst-rtp-buffer-map.parameters"></a><h4>Parameters</h4> 714<div class="informaltable"><table class="informaltable" width="100%" border="0"> 715<colgroup> 716<col width="150px" class="parameters_name"> 717<col class="parameters_description"> 718<col width="200px" class="parameters_annotations"> 719</colgroup> 720<tbody> 721<tr> 722<td class="parameter_name"><p>buffer</p></td> 723<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a></p></td> 724<td class="parameter_annotations"> </td> 725</tr> 726<tr> 727<td class="parameter_name"><p>flags</p></td> 728<td class="parameter_description"><p><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a></p></td> 729<td class="parameter_annotations"> </td> 730</tr> 731<tr> 732<td class="parameter_name"><p>rtp</p></td> 733<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a>. </p></td> 734<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> 735</tr> 736</tbody> 737</table></div> 738</div> 739<div class="refsect3"> 740<a name="gst-rtp-buffer-map.returns"></a><h4>Returns</h4> 741<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>buffer</code></em> 742could be mapped.</p> 743</div> 744</div> 745<hr> 746<div class="refsect2"> 747<a name="gst-rtp-buffer-unmap"></a><h3>gst_rtp_buffer_unmap ()</h3> 748<pre class="programlisting"><span class="returnvalue">void</span> 749gst_rtp_buffer_unmap (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 750<p>Unmap <em class="parameter"><code>rtp</code></em> 751 previously mapped with <a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-map" title="gst_rtp_buffer_map ()"><code class="function">gst_rtp_buffer_map()</code></a>.</p> 752<div class="refsect3"> 753<a name="gst-rtp-buffer-unmap.parameters"></a><h4>Parameters</h4> 754<div class="informaltable"><table class="informaltable" width="100%" border="0"> 755<colgroup> 756<col width="150px" class="parameters_name"> 757<col class="parameters_description"> 758<col width="200px" class="parameters_annotations"> 759</colgroup> 760<tbody><tr> 761<td class="parameter_name"><p>rtp</p></td> 762<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a></p></td> 763<td class="parameter_annotations"> </td> 764</tr></tbody> 765</table></div> 766</div> 767</div> 768<hr> 769<div class="refsect2"> 770<a name="gst-rtp-buffer-calc-header-len"></a><h3>gst_rtp_buffer_calc_header_len ()</h3> 771<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 772gst_rtp_buffer_calc_header_len (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 773<p>Calculate the header length of an RTP packet with <em class="parameter"><code>csrc_count</code></em> 774 CSRC entries. 775An RTP packet can have at most 15 CSRC entries.</p> 776<div class="refsect3"> 777<a name="gst-rtp-buffer-calc-header-len.parameters"></a><h4>Parameters</h4> 778<div class="informaltable"><table class="informaltable" width="100%" border="0"> 779<colgroup> 780<col width="150px" class="parameters_name"> 781<col class="parameters_description"> 782<col width="200px" class="parameters_annotations"> 783</colgroup> 784<tbody><tr> 785<td class="parameter_name"><p>csrc_count</p></td> 786<td class="parameter_description"><p>the number of CSRC entries</p></td> 787<td class="parameter_annotations"> </td> 788</tr></tbody> 789</table></div> 790</div> 791<div class="refsect3"> 792<a name="gst-rtp-buffer-calc-header-len.returns"></a><h4>Returns</h4> 793<p> The length of an RTP header with <em class="parameter"><code>csrc_count</code></em> 794CSRC entries.</p> 795</div> 796</div> 797<hr> 798<div class="refsect2"> 799<a name="gst-rtp-buffer-calc-packet-len"></a><h3>gst_rtp_buffer_calc_packet_len ()</h3> 800<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 801gst_rtp_buffer_calc_packet_len (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>, 802 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>, 803 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 804<p>Calculate the total length of an RTP packet with a payload size of <em class="parameter"><code>payload_len</code></em> 805, 806a padding of <em class="parameter"><code>pad_len</code></em> 807 and a <em class="parameter"><code>csrc_count</code></em> 808 CSRC entries.</p> 809<div class="refsect3"> 810<a name="gst-rtp-buffer-calc-packet-len.parameters"></a><h4>Parameters</h4> 811<div class="informaltable"><table class="informaltable" width="100%" border="0"> 812<colgroup> 813<col width="150px" class="parameters_name"> 814<col class="parameters_description"> 815<col width="200px" class="parameters_annotations"> 816</colgroup> 817<tbody> 818<tr> 819<td class="parameter_name"><p>payload_len</p></td> 820<td class="parameter_description"><p>the length of the payload</p></td> 821<td class="parameter_annotations"> </td> 822</tr> 823<tr> 824<td class="parameter_name"><p>pad_len</p></td> 825<td class="parameter_description"><p>the amount of padding</p></td> 826<td class="parameter_annotations"> </td> 827</tr> 828<tr> 829<td class="parameter_name"><p>csrc_count</p></td> 830<td class="parameter_description"><p>the number of CSRC entries</p></td> 831<td class="parameter_annotations"> </td> 832</tr> 833</tbody> 834</table></div> 835</div> 836<div class="refsect3"> 837<a name="gst-rtp-buffer-calc-packet-len.returns"></a><h4>Returns</h4> 838<p> The total length of an RTP header with given parameters.</p> 839</div> 840</div> 841<hr> 842<div class="refsect2"> 843<a name="gst-rtp-buffer-calc-payload-len"></a><h3>gst_rtp_buffer_calc_payload_len ()</h3> 844<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 845gst_rtp_buffer_calc_payload_len (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>, 846 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>, 847 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre> 848<p>Calculate the length of the payload of an RTP packet with size <em class="parameter"><code>packet_len</code></em> 849, 850a padding of <em class="parameter"><code>pad_len</code></em> 851 and a <em class="parameter"><code>csrc_count</code></em> 852 CSRC entries.</p> 853<div class="refsect3"> 854<a name="gst-rtp-buffer-calc-payload-len.parameters"></a><h4>Parameters</h4> 855<div class="informaltable"><table class="informaltable" width="100%" border="0"> 856<colgroup> 857<col width="150px" class="parameters_name"> 858<col class="parameters_description"> 859<col width="200px" class="parameters_annotations"> 860</colgroup> 861<tbody> 862<tr> 863<td class="parameter_name"><p>packet_len</p></td> 864<td class="parameter_description"><p>the length of the total RTP packet</p></td> 865<td class="parameter_annotations"> </td> 866</tr> 867<tr> 868<td class="parameter_name"><p>pad_len</p></td> 869<td class="parameter_description"><p>the amount of padding</p></td> 870<td class="parameter_annotations"> </td> 871</tr> 872<tr> 873<td class="parameter_name"><p>csrc_count</p></td> 874<td class="parameter_description"><p>the number of CSRC entries</p></td> 875<td class="parameter_annotations"> </td> 876</tr> 877</tbody> 878</table></div> 879</div> 880<div class="refsect3"> 881<a name="gst-rtp-buffer-calc-payload-len.returns"></a><h4>Returns</h4> 882<p> The length of the payload of an RTP packet with given parameters.</p> 883</div> 884</div> 885<hr> 886<div class="refsect2"> 887<a name="gst-rtp-buffer-set-packet-len"></a><h3>gst_rtp_buffer_set_packet_len ()</h3> 888<pre class="programlisting"><span class="returnvalue">void</span> 889gst_rtp_buffer_set_packet_len (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 890 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre> 891<p>Set the total <em class="parameter"><code>rtp</code></em> 892 size to <em class="parameter"><code>len</code></em> 893. The data in the buffer will be made 894larger if needed. Any padding will be removed from the packet.</p> 895<div class="refsect3"> 896<a name="gst-rtp-buffer-set-packet-len.parameters"></a><h4>Parameters</h4> 897<div class="informaltable"><table class="informaltable" width="100%" border="0"> 898<colgroup> 899<col width="150px" class="parameters_name"> 900<col class="parameters_description"> 901<col width="200px" class="parameters_annotations"> 902</colgroup> 903<tbody> 904<tr> 905<td class="parameter_name"><p>rtp</p></td> 906<td class="parameter_description"><p>the RTP packet</p></td> 907<td class="parameter_annotations"> </td> 908</tr> 909<tr> 910<td class="parameter_name"><p>len</p></td> 911<td class="parameter_description"><p>the new packet length</p></td> 912<td class="parameter_annotations"> </td> 913</tr> 914</tbody> 915</table></div> 916</div> 917</div> 918<hr> 919<div class="refsect2"> 920<a name="gst-rtp-buffer-get-packet-len"></a><h3>gst_rtp_buffer_get_packet_len ()</h3> 921<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 922gst_rtp_buffer_get_packet_len (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 923<p>Return the total length of the packet in <em class="parameter"><code>buffer</code></em> 924.</p> 925<div class="refsect3"> 926<a name="gst-rtp-buffer-get-packet-len.parameters"></a><h4>Parameters</h4> 927<div class="informaltable"><table class="informaltable" width="100%" border="0"> 928<colgroup> 929<col width="150px" class="parameters_name"> 930<col class="parameters_description"> 931<col width="200px" class="parameters_annotations"> 932</colgroup> 933<tbody><tr> 934<td class="parameter_name"><p>rtp</p></td> 935<td class="parameter_description"><p>the RTP packet</p></td> 936<td class="parameter_annotations"> </td> 937</tr></tbody> 938</table></div> 939</div> 940<div class="refsect3"> 941<a name="gst-rtp-buffer-get-packet-len.returns"></a><h4>Returns</h4> 942<p> The total length of the packet in <em class="parameter"><code>buffer</code></em> 943.</p> 944</div> 945</div> 946<hr> 947<div class="refsect2"> 948<a name="gst-rtp-buffer-get-header-len"></a><h3>gst_rtp_buffer_get_header_len ()</h3> 949<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 950gst_rtp_buffer_get_header_len (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 951<p>Return the total length of the header in <em class="parameter"><code>buffer</code></em> 952. This include the length of 953the fixed header, the CSRC list and the extension header.</p> 954<div class="refsect3"> 955<a name="gst-rtp-buffer-get-header-len.parameters"></a><h4>Parameters</h4> 956<div class="informaltable"><table class="informaltable" width="100%" border="0"> 957<colgroup> 958<col width="150px" class="parameters_name"> 959<col class="parameters_description"> 960<col width="200px" class="parameters_annotations"> 961</colgroup> 962<tbody><tr> 963<td class="parameter_name"><p>rtp</p></td> 964<td class="parameter_description"><p>the RTP packet</p></td> 965<td class="parameter_annotations"> </td> 966</tr></tbody> 967</table></div> 968</div> 969<div class="refsect3"> 970<a name="gst-rtp-buffer-get-header-len.returns"></a><h4>Returns</h4> 971<p> The total length of the header in <em class="parameter"><code>buffer</code></em> 972.</p> 973</div> 974</div> 975<hr> 976<div class="refsect2"> 977<a name="gst-rtp-buffer-get-version"></a><h3>gst_rtp_buffer_get_version ()</h3> 978<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 979gst_rtp_buffer_get_version (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 980<p>Get the version number of the RTP packet in <em class="parameter"><code>buffer</code></em> 981.</p> 982<div class="refsect3"> 983<a name="gst-rtp-buffer-get-version.parameters"></a><h4>Parameters</h4> 984<div class="informaltable"><table class="informaltable" width="100%" border="0"> 985<colgroup> 986<col width="150px" class="parameters_name"> 987<col class="parameters_description"> 988<col width="200px" class="parameters_annotations"> 989</colgroup> 990<tbody><tr> 991<td class="parameter_name"><p>rtp</p></td> 992<td class="parameter_description"><p>the RTP packet</p></td> 993<td class="parameter_annotations"> </td> 994</tr></tbody> 995</table></div> 996</div> 997<div class="refsect3"> 998<a name="gst-rtp-buffer-get-version.returns"></a><h4>Returns</h4> 999<p> The version of <em class="parameter"><code>buffer</code></em> 1000.</p> 1001</div> 1002</div> 1003<hr> 1004<div class="refsect2"> 1005<a name="gst-rtp-buffer-set-version"></a><h3>gst_rtp_buffer_set_version ()</h3> 1006<pre class="programlisting"><span class="returnvalue">void</span> 1007gst_rtp_buffer_set_version (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1008 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> version</code></em>);</pre> 1009<p>Set the version of the RTP packet in <em class="parameter"><code>buffer</code></em> 1010 to <em class="parameter"><code>version</code></em> 1011.</p> 1012<div class="refsect3"> 1013<a name="gst-rtp-buffer-set-version.parameters"></a><h4>Parameters</h4> 1014<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1015<colgroup> 1016<col width="150px" class="parameters_name"> 1017<col class="parameters_description"> 1018<col width="200px" class="parameters_annotations"> 1019</colgroup> 1020<tbody> 1021<tr> 1022<td class="parameter_name"><p>rtp</p></td> 1023<td class="parameter_description"><p>the RTP packet</p></td> 1024<td class="parameter_annotations"> </td> 1025</tr> 1026<tr> 1027<td class="parameter_name"><p>version</p></td> 1028<td class="parameter_description"><p>the new version</p></td> 1029<td class="parameter_annotations"> </td> 1030</tr> 1031</tbody> 1032</table></div> 1033</div> 1034</div> 1035<hr> 1036<div class="refsect2"> 1037<a name="gst-rtp-buffer-get-padding"></a><h3>gst_rtp_buffer_get_padding ()</h3> 1038<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 1039gst_rtp_buffer_get_padding (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1040<p>Check if the padding bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em> 1041.</p> 1042<div class="refsect3"> 1043<a name="gst-rtp-buffer-get-padding.parameters"></a><h4>Parameters</h4> 1044<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1045<colgroup> 1046<col width="150px" class="parameters_name"> 1047<col class="parameters_description"> 1048<col width="200px" class="parameters_annotations"> 1049</colgroup> 1050<tbody><tr> 1051<td class="parameter_name"><p>rtp</p></td> 1052<td class="parameter_description"><p>the RTP packet</p></td> 1053<td class="parameter_annotations"> </td> 1054</tr></tbody> 1055</table></div> 1056</div> 1057<div class="refsect3"> 1058<a name="gst-rtp-buffer-get-padding.returns"></a><h4>Returns</h4> 1059<p> TRUE if <em class="parameter"><code>buffer</code></em> 1060has the padding bit set.</p> 1061</div> 1062</div> 1063<hr> 1064<div class="refsect2"> 1065<a name="gst-rtp-buffer-set-padding"></a><h3>gst_rtp_buffer_set_padding ()</h3> 1066<pre class="programlisting"><span class="returnvalue">void</span> 1067gst_rtp_buffer_set_padding (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1068 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> padding</code></em>);</pre> 1069<p>Set the padding bit on the RTP packet in <em class="parameter"><code>buffer</code></em> 1070 to <em class="parameter"><code>padding</code></em> 1071.</p> 1072<div class="refsect3"> 1073<a name="gst-rtp-buffer-set-padding.parameters"></a><h4>Parameters</h4> 1074<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1075<colgroup> 1076<col width="150px" class="parameters_name"> 1077<col class="parameters_description"> 1078<col width="200px" class="parameters_annotations"> 1079</colgroup> 1080<tbody> 1081<tr> 1082<td class="parameter_name"><p>rtp</p></td> 1083<td class="parameter_description"><p>the buffer</p></td> 1084<td class="parameter_annotations"> </td> 1085</tr> 1086<tr> 1087<td class="parameter_name"><p>padding</p></td> 1088<td class="parameter_description"><p>the new padding</p></td> 1089<td class="parameter_annotations"> </td> 1090</tr> 1091</tbody> 1092</table></div> 1093</div> 1094</div> 1095<hr> 1096<div class="refsect2"> 1097<a name="gst-rtp-buffer-pad-to"></a><h3>gst_rtp_buffer_pad_to ()</h3> 1098<pre class="programlisting"><span class="returnvalue">void</span> 1099gst_rtp_buffer_pad_to (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1100 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre> 1101<p>Set the amount of padding in the RTP packet in <em class="parameter"><code>buffer</code></em> 1102 to 1103<em class="parameter"><code>len</code></em> 1104. If <em class="parameter"><code>len</code></em> 1105 is 0, the padding is removed.</p> 1106<p>NOTE: This function does not work correctly.</p> 1107<div class="refsect3"> 1108<a name="gst-rtp-buffer-pad-to.parameters"></a><h4>Parameters</h4> 1109<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1110<colgroup> 1111<col width="150px" class="parameters_name"> 1112<col class="parameters_description"> 1113<col width="200px" class="parameters_annotations"> 1114</colgroup> 1115<tbody> 1116<tr> 1117<td class="parameter_name"><p>rtp</p></td> 1118<td class="parameter_description"><p>the RTP packet</p></td> 1119<td class="parameter_annotations"> </td> 1120</tr> 1121<tr> 1122<td class="parameter_name"><p>len</p></td> 1123<td class="parameter_description"><p>the new amount of padding</p></td> 1124<td class="parameter_annotations"> </td> 1125</tr> 1126</tbody> 1127</table></div> 1128</div> 1129</div> 1130<hr> 1131<div class="refsect2"> 1132<a name="gst-rtp-buffer-get-extension"></a><h3>gst_rtp_buffer_get_extension ()</h3> 1133<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 1134gst_rtp_buffer_get_extension (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1135<p>Check if the extension bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em> 1136.</p> 1137<div class="refsect3"> 1138<a name="gst-rtp-buffer-get-extension.parameters"></a><h4>Parameters</h4> 1139<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1140<colgroup> 1141<col width="150px" class="parameters_name"> 1142<col class="parameters_description"> 1143<col width="200px" class="parameters_annotations"> 1144</colgroup> 1145<tbody><tr> 1146<td class="parameter_name"><p>rtp</p></td> 1147<td class="parameter_description"><p>the RTP packet</p></td> 1148<td class="parameter_annotations"> </td> 1149</tr></tbody> 1150</table></div> 1151</div> 1152<div class="refsect3"> 1153<a name="gst-rtp-buffer-get-extension.returns"></a><h4>Returns</h4> 1154<p> TRUE if <em class="parameter"><code>buffer</code></em> 1155has the extension bit set.</p> 1156</div> 1157</div> 1158<hr> 1159<div class="refsect2"> 1160<a name="gst-rtp-buffer-set-extension"></a><h3>gst_rtp_buffer_set_extension ()</h3> 1161<pre class="programlisting"><span class="returnvalue">void</span> 1162gst_rtp_buffer_set_extension (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1163 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extension</code></em>);</pre> 1164<p>Set the extension bit on the RTP packet in <em class="parameter"><code>buffer</code></em> 1165 to <em class="parameter"><code>extension</code></em> 1166.</p> 1167<div class="refsect3"> 1168<a name="gst-rtp-buffer-set-extension.parameters"></a><h4>Parameters</h4> 1169<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1170<colgroup> 1171<col width="150px" class="parameters_name"> 1172<col class="parameters_description"> 1173<col width="200px" class="parameters_annotations"> 1174</colgroup> 1175<tbody> 1176<tr> 1177<td class="parameter_name"><p>rtp</p></td> 1178<td class="parameter_description"><p>the RTP packet</p></td> 1179<td class="parameter_annotations"> </td> 1180</tr> 1181<tr> 1182<td class="parameter_name"><p>extension</p></td> 1183<td class="parameter_description"><p>the new extension</p></td> 1184<td class="parameter_annotations"> </td> 1185</tr> 1186</tbody> 1187</table></div> 1188</div> 1189</div> 1190<hr> 1191<div class="refsect2"> 1192<a name="gst-rtp-buffer-get-extension-data"></a><h3>gst_rtp_buffer_get_extension_data ()</h3> 1193<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 1194gst_rtp_buffer_get_extension_data (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1195 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *bits</code></em>, 1196 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>, 1197 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *wordlen</code></em>);</pre> 1198<p>Get the extension data. <em class="parameter"><code>bits</code></em> 1199 will contain the extension 16 bits of custom 1200data. <em class="parameter"><code>data</code></em> 1201 will point to the data in the extension and <em class="parameter"><code>wordlen</code></em> 1202 will contain 1203the length of <em class="parameter"><code>data</code></em> 1204 in 32 bits words.</p> 1205<p>If <em class="parameter"><code>buffer</code></em> 1206 did not contain an extension, this function will return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> 1207with <em class="parameter"><code>bits</code></em> 1208, <em class="parameter"><code>data</code></em> 1209 and <em class="parameter"><code>wordlen</code></em> 1210 unchanged.</p> 1211<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p> 1212<div class="refsect3"> 1213<a name="gst-rtp-buffer-get-extension-data.parameters"></a><h4>Parameters</h4> 1214<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1215<colgroup> 1216<col width="150px" class="parameters_name"> 1217<col class="parameters_description"> 1218<col width="200px" class="parameters_annotations"> 1219</colgroup> 1220<tbody> 1221<tr> 1222<td class="parameter_name"><p>rtp</p></td> 1223<td class="parameter_description"><p>the RTP packet</p></td> 1224<td class="parameter_annotations"> </td> 1225</tr> 1226<tr> 1227<td class="parameter_name"><p>bits</p></td> 1228<td class="parameter_description"><p>location for result bits. </p></td> 1229<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> 1230</tr> 1231<tr> 1232<td class="parameter_name"><p>data</p></td> 1233<td class="parameter_description"><p>location for data. </p></td> 1234<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td> 1235</tr> 1236<tr> 1237<td class="parameter_name"><p>wordlen</p></td> 1238<td class="parameter_description"><p>location for length of <em class="parameter"><code>data</code></em> 1239in 32 bits words. </p></td> 1240<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> 1241</tr> 1242</tbody> 1243</table></div> 1244</div> 1245<div class="refsect3"> 1246<a name="gst-rtp-buffer-get-extension-data.returns"></a><h4>Returns</h4> 1247<p> TRUE if <em class="parameter"><code>buffer</code></em> 1248had the extension bit set.</p> 1249</div> 1250</div> 1251<hr> 1252<div class="refsect2"> 1253<a name="gst-rtp-buffer-get-extension-bytes"></a><h3>gst_rtp_buffer_get_extension_bytes ()</h3> 1254<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> * 1255gst_rtp_buffer_get_extension_bytes (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1256 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *bits</code></em>);</pre> 1257<p>Similar to gst_rtp_buffer_get_extension_data, but more suitable for language 1258bindings usage. <em class="parameter"><code>bits</code></em> 1259 will contain the extension 16 bits of custom data and 1260the extension data (not including the extension header) is placed in a new 1261<a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> structure.</p> 1262<p>If <em class="parameter"><code>rtp</code></em> 1263 did not contain an extension, this function will return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, with 1264<em class="parameter"><code>bits</code></em> 1265 unchanged. If there is an extension header but no extension data then 1266an empty <a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> will be returned.</p> 1267<p><span class="annotation">[<acronym title="Rename the original symbol's name to SYMBOL."><span class="acronym">rename-to</span></acronym> gst_rtp_buffer_get_extension_data]</span></p> 1268<div class="refsect3"> 1269<a name="gst-rtp-buffer-get-extension-bytes.parameters"></a><h4>Parameters</h4> 1270<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1271<colgroup> 1272<col width="150px" class="parameters_name"> 1273<col class="parameters_description"> 1274<col width="200px" class="parameters_annotations"> 1275</colgroup> 1276<tbody> 1277<tr> 1278<td class="parameter_name"><p>rtp</p></td> 1279<td class="parameter_description"><p>the RTP packet</p></td> 1280<td class="parameter_annotations"> </td> 1281</tr> 1282<tr> 1283<td class="parameter_name"><p>bits</p></td> 1284<td class="parameter_description"><p>location for header bits. </p></td> 1285<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> 1286</tr> 1287</tbody> 1288</table></div> 1289</div> 1290<div class="refsect3"> 1291<a name="gst-rtp-buffer-get-extension-bytes.returns"></a><h4>Returns</h4> 1292<p>A new <a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> if an extension header was present 1293and <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise. </p> 1294<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> 1295</div> 1296<p class="since">Since: <a class="link" href="ix14.html#api-index-1.2">1.2</a></p> 1297</div> 1298<hr> 1299<div class="refsect2"> 1300<a name="gst-rtp-buffer-get-ssrc"></a><h3>gst_rtp_buffer_get_ssrc ()</h3> 1301<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 1302gst_rtp_buffer_get_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1303<p>Get the SSRC of the RTP packet in <em class="parameter"><code>buffer</code></em> 1304.</p> 1305<div class="refsect3"> 1306<a name="gst-rtp-buffer-get-ssrc.parameters"></a><h4>Parameters</h4> 1307<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1308<colgroup> 1309<col width="150px" class="parameters_name"> 1310<col class="parameters_description"> 1311<col width="200px" class="parameters_annotations"> 1312</colgroup> 1313<tbody><tr> 1314<td class="parameter_name"><p>rtp</p></td> 1315<td class="parameter_description"><p>the RTP packet</p></td> 1316<td class="parameter_annotations"> </td> 1317</tr></tbody> 1318</table></div> 1319</div> 1320<div class="refsect3"> 1321<a name="gst-rtp-buffer-get-ssrc.returns"></a><h4>Returns</h4> 1322<p> the SSRC of <em class="parameter"><code>buffer</code></em> 1323in host order.</p> 1324</div> 1325</div> 1326<hr> 1327<div class="refsect2"> 1328<a name="gst-rtp-buffer-set-ssrc"></a><h3>gst_rtp_buffer_set_ssrc ()</h3> 1329<pre class="programlisting"><span class="returnvalue">void</span> 1330gst_rtp_buffer_set_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1331 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ssrc</code></em>);</pre> 1332<p>Set the SSRC on the RTP packet in <em class="parameter"><code>buffer</code></em> 1333 to <em class="parameter"><code>ssrc</code></em> 1334.</p> 1335<div class="refsect3"> 1336<a name="gst-rtp-buffer-set-ssrc.parameters"></a><h4>Parameters</h4> 1337<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1338<colgroup> 1339<col width="150px" class="parameters_name"> 1340<col class="parameters_description"> 1341<col width="200px" class="parameters_annotations"> 1342</colgroup> 1343<tbody> 1344<tr> 1345<td class="parameter_name"><p>rtp</p></td> 1346<td class="parameter_description"><p>the RTP packet</p></td> 1347<td class="parameter_annotations"> </td> 1348</tr> 1349<tr> 1350<td class="parameter_name"><p>ssrc</p></td> 1351<td class="parameter_description"><p>the new SSRC</p></td> 1352<td class="parameter_annotations"> </td> 1353</tr> 1354</tbody> 1355</table></div> 1356</div> 1357</div> 1358<hr> 1359<div class="refsect2"> 1360<a name="gst-rtp-buffer-get-csrc-count"></a><h3>gst_rtp_buffer_get_csrc_count ()</h3> 1361<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 1362gst_rtp_buffer_get_csrc_count (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1363<p>Get the CSRC count of the RTP packet in <em class="parameter"><code>buffer</code></em> 1364.</p> 1365<div class="refsect3"> 1366<a name="gst-rtp-buffer-get-csrc-count.parameters"></a><h4>Parameters</h4> 1367<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1368<colgroup> 1369<col width="150px" class="parameters_name"> 1370<col class="parameters_description"> 1371<col width="200px" class="parameters_annotations"> 1372</colgroup> 1373<tbody><tr> 1374<td class="parameter_name"><p>rtp</p></td> 1375<td class="parameter_description"><p>the RTP packet</p></td> 1376<td class="parameter_annotations"> </td> 1377</tr></tbody> 1378</table></div> 1379</div> 1380<div class="refsect3"> 1381<a name="gst-rtp-buffer-get-csrc-count.returns"></a><h4>Returns</h4> 1382<p> the CSRC count of <em class="parameter"><code>buffer</code></em> 1383.</p> 1384</div> 1385</div> 1386<hr> 1387<div class="refsect2"> 1388<a name="gst-rtp-buffer-get-csrc"></a><h3>gst_rtp_buffer_get_csrc ()</h3> 1389<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 1390gst_rtp_buffer_get_csrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1391 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>);</pre> 1392<p>Get the CSRC at index <em class="parameter"><code>idx</code></em> 1393 in <em class="parameter"><code>buffer</code></em> 1394.</p> 1395<div class="refsect3"> 1396<a name="gst-rtp-buffer-get-csrc.parameters"></a><h4>Parameters</h4> 1397<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1398<colgroup> 1399<col width="150px" class="parameters_name"> 1400<col class="parameters_description"> 1401<col width="200px" class="parameters_annotations"> 1402</colgroup> 1403<tbody> 1404<tr> 1405<td class="parameter_name"><p>rtp</p></td> 1406<td class="parameter_description"><p>the RTP packet</p></td> 1407<td class="parameter_annotations"> </td> 1408</tr> 1409<tr> 1410<td class="parameter_name"><p>idx</p></td> 1411<td class="parameter_description"><p>the index of the CSRC to get</p></td> 1412<td class="parameter_annotations"> </td> 1413</tr> 1414</tbody> 1415</table></div> 1416</div> 1417<div class="refsect3"> 1418<a name="gst-rtp-buffer-get-csrc.returns"></a><h4>Returns</h4> 1419<p> the CSRC at index <em class="parameter"><code>idx</code></em> 1420in host order.</p> 1421</div> 1422</div> 1423<hr> 1424<div class="refsect2"> 1425<a name="gst-rtp-buffer-set-csrc"></a><h3>gst_rtp_buffer_set_csrc ()</h3> 1426<pre class="programlisting"><span class="returnvalue">void</span> 1427gst_rtp_buffer_set_csrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1428 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>, 1429 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> csrc</code></em>);</pre> 1430<p>Modify the CSRC at index <em class="parameter"><code>idx</code></em> 1431 in <em class="parameter"><code>buffer</code></em> 1432 to <em class="parameter"><code>csrc</code></em> 1433.</p> 1434<div class="refsect3"> 1435<a name="gst-rtp-buffer-set-csrc.parameters"></a><h4>Parameters</h4> 1436<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1437<colgroup> 1438<col width="150px" class="parameters_name"> 1439<col class="parameters_description"> 1440<col width="200px" class="parameters_annotations"> 1441</colgroup> 1442<tbody> 1443<tr> 1444<td class="parameter_name"><p>rtp</p></td> 1445<td class="parameter_description"><p>the RTP packet</p></td> 1446<td class="parameter_annotations"> </td> 1447</tr> 1448<tr> 1449<td class="parameter_name"><p>idx</p></td> 1450<td class="parameter_description"><p>the CSRC index to set</p></td> 1451<td class="parameter_annotations"> </td> 1452</tr> 1453<tr> 1454<td class="parameter_name"><p>csrc</p></td> 1455<td class="parameter_description"><p>the CSRC in host order to set at <em class="parameter"><code>idx</code></em> 1456</p></td> 1457<td class="parameter_annotations"> </td> 1458</tr> 1459</tbody> 1460</table></div> 1461</div> 1462</div> 1463<hr> 1464<div class="refsect2"> 1465<a name="gst-rtp-buffer-get-marker"></a><h3>gst_rtp_buffer_get_marker ()</h3> 1466<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 1467gst_rtp_buffer_get_marker (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1468<p>Check if the marker bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em> 1469.</p> 1470<div class="refsect3"> 1471<a name="gst-rtp-buffer-get-marker.parameters"></a><h4>Parameters</h4> 1472<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1473<colgroup> 1474<col width="150px" class="parameters_name"> 1475<col class="parameters_description"> 1476<col width="200px" class="parameters_annotations"> 1477</colgroup> 1478<tbody><tr> 1479<td class="parameter_name"><p>rtp</p></td> 1480<td class="parameter_description"><p>the RTP packet</p></td> 1481<td class="parameter_annotations"> </td> 1482</tr></tbody> 1483</table></div> 1484</div> 1485<div class="refsect3"> 1486<a name="gst-rtp-buffer-get-marker.returns"></a><h4>Returns</h4> 1487<p> TRUE if <em class="parameter"><code>buffer</code></em> 1488has the marker bit set.</p> 1489</div> 1490</div> 1491<hr> 1492<div class="refsect2"> 1493<a name="gst-rtp-buffer-set-marker"></a><h3>gst_rtp_buffer_set_marker ()</h3> 1494<pre class="programlisting"><span class="returnvalue">void</span> 1495gst_rtp_buffer_set_marker (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1496 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> marker</code></em>);</pre> 1497<p>Set the marker bit on the RTP packet in <em class="parameter"><code>buffer</code></em> 1498 to <em class="parameter"><code>marker</code></em> 1499.</p> 1500<div class="refsect3"> 1501<a name="gst-rtp-buffer-set-marker.parameters"></a><h4>Parameters</h4> 1502<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1503<colgroup> 1504<col width="150px" class="parameters_name"> 1505<col class="parameters_description"> 1506<col width="200px" class="parameters_annotations"> 1507</colgroup> 1508<tbody> 1509<tr> 1510<td class="parameter_name"><p>rtp</p></td> 1511<td class="parameter_description"><p>the RTP packet</p></td> 1512<td class="parameter_annotations"> </td> 1513</tr> 1514<tr> 1515<td class="parameter_name"><p>marker</p></td> 1516<td class="parameter_description"><p>the new marker</p></td> 1517<td class="parameter_annotations"> </td> 1518</tr> 1519</tbody> 1520</table></div> 1521</div> 1522</div> 1523<hr> 1524<div class="refsect2"> 1525<a name="gst-rtp-buffer-get-payload-type"></a><h3>gst_rtp_buffer_get_payload_type ()</h3> 1526<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> 1527gst_rtp_buffer_get_payload_type (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1528<p>Get the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em> 1529.</p> 1530<div class="refsect3"> 1531<a name="gst-rtp-buffer-get-payload-type.parameters"></a><h4>Parameters</h4> 1532<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1533<colgroup> 1534<col width="150px" class="parameters_name"> 1535<col class="parameters_description"> 1536<col width="200px" class="parameters_annotations"> 1537</colgroup> 1538<tbody><tr> 1539<td class="parameter_name"><p>rtp</p></td> 1540<td class="parameter_description"><p>the RTP packet</p></td> 1541<td class="parameter_annotations"> </td> 1542</tr></tbody> 1543</table></div> 1544</div> 1545<div class="refsect3"> 1546<a name="gst-rtp-buffer-get-payload-type.returns"></a><h4>Returns</h4> 1547<p> The payload type.</p> 1548</div> 1549</div> 1550<hr> 1551<div class="refsect2"> 1552<a name="gst-rtp-buffer-set-payload-type"></a><h3>gst_rtp_buffer_set_payload_type ()</h3> 1553<pre class="programlisting"><span class="returnvalue">void</span> 1554gst_rtp_buffer_set_payload_type (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1555 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);</pre> 1556<p>Set the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em> 1557 to <em class="parameter"><code>payload_type</code></em> 1558.</p> 1559<div class="refsect3"> 1560<a name="gst-rtp-buffer-set-payload-type.parameters"></a><h4>Parameters</h4> 1561<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1562<colgroup> 1563<col width="150px" class="parameters_name"> 1564<col class="parameters_description"> 1565<col width="200px" class="parameters_annotations"> 1566</colgroup> 1567<tbody> 1568<tr> 1569<td class="parameter_name"><p>rtp</p></td> 1570<td class="parameter_description"><p>the RTP packet</p></td> 1571<td class="parameter_annotations"> </td> 1572</tr> 1573<tr> 1574<td class="parameter_name"><p>payload_type</p></td> 1575<td class="parameter_description"><p>the new type</p></td> 1576<td class="parameter_annotations"> </td> 1577</tr> 1578</tbody> 1579</table></div> 1580</div> 1581</div> 1582<hr> 1583<div class="refsect2"> 1584<a name="gst-rtp-buffer-get-seq"></a><h3>gst_rtp_buffer_get_seq ()</h3> 1585<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> 1586gst_rtp_buffer_get_seq (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1587<p>Get the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em> 1588.</p> 1589<div class="refsect3"> 1590<a name="gst-rtp-buffer-get-seq.parameters"></a><h4>Parameters</h4> 1591<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1592<colgroup> 1593<col width="150px" class="parameters_name"> 1594<col class="parameters_description"> 1595<col width="200px" class="parameters_annotations"> 1596</colgroup> 1597<tbody><tr> 1598<td class="parameter_name"><p>rtp</p></td> 1599<td class="parameter_description"><p>the RTP packet</p></td> 1600<td class="parameter_annotations"> </td> 1601</tr></tbody> 1602</table></div> 1603</div> 1604<div class="refsect3"> 1605<a name="gst-rtp-buffer-get-seq.returns"></a><h4>Returns</h4> 1606<p> The sequence number in host order.</p> 1607</div> 1608</div> 1609<hr> 1610<div class="refsect2"> 1611<a name="gst-rtp-buffer-set-seq"></a><h3>gst_rtp_buffer_set_seq ()</h3> 1612<pre class="programlisting"><span class="returnvalue">void</span> 1613gst_rtp_buffer_set_seq (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1614 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seq</code></em>);</pre> 1615<p>Set the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em> 1616 to <em class="parameter"><code>seq</code></em> 1617.</p> 1618<div class="refsect3"> 1619<a name="gst-rtp-buffer-set-seq.parameters"></a><h4>Parameters</h4> 1620<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1621<colgroup> 1622<col width="150px" class="parameters_name"> 1623<col class="parameters_description"> 1624<col width="200px" class="parameters_annotations"> 1625</colgroup> 1626<tbody> 1627<tr> 1628<td class="parameter_name"><p>rtp</p></td> 1629<td class="parameter_description"><p>the RTP packet</p></td> 1630<td class="parameter_annotations"> </td> 1631</tr> 1632<tr> 1633<td class="parameter_name"><p>seq</p></td> 1634<td class="parameter_description"><p>the new sequence number</p></td> 1635<td class="parameter_annotations"> </td> 1636</tr> 1637</tbody> 1638</table></div> 1639</div> 1640</div> 1641<hr> 1642<div class="refsect2"> 1643<a name="gst-rtp-buffer-get-timestamp"></a><h3>gst_rtp_buffer_get_timestamp ()</h3> 1644<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 1645gst_rtp_buffer_get_timestamp (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1646<p>Get the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em> 1647.</p> 1648<div class="refsect3"> 1649<a name="gst-rtp-buffer-get-timestamp.parameters"></a><h4>Parameters</h4> 1650<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1651<colgroup> 1652<col width="150px" class="parameters_name"> 1653<col class="parameters_description"> 1654<col width="200px" class="parameters_annotations"> 1655</colgroup> 1656<tbody><tr> 1657<td class="parameter_name"><p>rtp</p></td> 1658<td class="parameter_description"><p>the RTP packet</p></td> 1659<td class="parameter_annotations"> </td> 1660</tr></tbody> 1661</table></div> 1662</div> 1663<div class="refsect3"> 1664<a name="gst-rtp-buffer-get-timestamp.returns"></a><h4>Returns</h4> 1665<p> The timestamp in host order.</p> 1666</div> 1667</div> 1668<hr> 1669<div class="refsect2"> 1670<a name="gst-rtp-buffer-set-timestamp"></a><h3>gst_rtp_buffer_set_timestamp ()</h3> 1671<pre class="programlisting"><span class="returnvalue">void</span> 1672gst_rtp_buffer_set_timestamp (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1673 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre> 1674<p>Set the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em> 1675 to <em class="parameter"><code>timestamp</code></em> 1676.</p> 1677<div class="refsect3"> 1678<a name="gst-rtp-buffer-set-timestamp.parameters"></a><h4>Parameters</h4> 1679<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1680<colgroup> 1681<col width="150px" class="parameters_name"> 1682<col class="parameters_description"> 1683<col width="200px" class="parameters_annotations"> 1684</colgroup> 1685<tbody> 1686<tr> 1687<td class="parameter_name"><p>rtp</p></td> 1688<td class="parameter_description"><p>the RTP packet</p></td> 1689<td class="parameter_annotations"> </td> 1690</tr> 1691<tr> 1692<td class="parameter_name"><p>timestamp</p></td> 1693<td class="parameter_description"><p>the new timestamp</p></td> 1694<td class="parameter_annotations"> </td> 1695</tr> 1696</tbody> 1697</table></div> 1698</div> 1699</div> 1700<hr> 1701<div class="refsect2"> 1702<a name="gst-rtp-buffer-get-payload-buffer"></a><h3>gst_rtp_buffer_get_payload_buffer ()</h3> 1703<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 1704gst_rtp_buffer_get_payload_buffer (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1705<p>Create a buffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em> 1706. This function 1707will internally create a subbuffer of <em class="parameter"><code>buffer</code></em> 1708 so that a memcpy can be 1709avoided.</p> 1710<div class="refsect3"> 1711<a name="gst-rtp-buffer-get-payload-buffer.parameters"></a><h4>Parameters</h4> 1712<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1713<colgroup> 1714<col width="150px" class="parameters_name"> 1715<col class="parameters_description"> 1716<col width="200px" class="parameters_annotations"> 1717</colgroup> 1718<tbody><tr> 1719<td class="parameter_name"><p>rtp</p></td> 1720<td class="parameter_description"><p>the RTP packet</p></td> 1721<td class="parameter_annotations"> </td> 1722</tr></tbody> 1723</table></div> 1724</div> 1725<div class="refsect3"> 1726<a name="gst-rtp-buffer-get-payload-buffer.returns"></a><h4>Returns</h4> 1727<p> A new buffer with the data of the payload.</p> 1728</div> 1729</div> 1730<hr> 1731<div class="refsect2"> 1732<a name="gst-rtp-buffer-get-payload-subbuffer"></a><h3>gst_rtp_buffer_get_payload_subbuffer ()</h3> 1733<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="returnvalue">GstBuffer</span></a> * 1734gst_rtp_buffer_get_payload_subbuffer (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1735 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>, 1736 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre> 1737<p>Create a subbuffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em> 1738. <em class="parameter"><code>offset</code></em> 1739 bytes 1740are skipped in the payload and the subbuffer will be of size <em class="parameter"><code>len</code></em> 1741. 1742If <em class="parameter"><code>len</code></em> 1743 is -1 the total payload starting from <em class="parameter"><code>offset</code></em> 1744 is subbuffered.</p> 1745<div class="refsect3"> 1746<a name="gst-rtp-buffer-get-payload-subbuffer.parameters"></a><h4>Parameters</h4> 1747<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1748<colgroup> 1749<col width="150px" class="parameters_name"> 1750<col class="parameters_description"> 1751<col width="200px" class="parameters_annotations"> 1752</colgroup> 1753<tbody> 1754<tr> 1755<td class="parameter_name"><p>rtp</p></td> 1756<td class="parameter_description"><p>the RTP packet</p></td> 1757<td class="parameter_annotations"> </td> 1758</tr> 1759<tr> 1760<td class="parameter_name"><p>offset</p></td> 1761<td class="parameter_description"><p>the offset in the payload</p></td> 1762<td class="parameter_annotations"> </td> 1763</tr> 1764<tr> 1765<td class="parameter_name"><p>len</p></td> 1766<td class="parameter_description"><p>the length in the payload</p></td> 1767<td class="parameter_annotations"> </td> 1768</tr> 1769</tbody> 1770</table></div> 1771</div> 1772<div class="refsect3"> 1773<a name="gst-rtp-buffer-get-payload-subbuffer.returns"></a><h4>Returns</h4> 1774<p> A new buffer with the specified data of the payload.</p> 1775</div> 1776</div> 1777<hr> 1778<div class="refsect2"> 1779<a name="gst-rtp-buffer-get-payload-len"></a><h3>gst_rtp_buffer_get_payload_len ()</h3> 1780<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 1781gst_rtp_buffer_get_payload_len (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1782<p>Get the length of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em> 1783.</p> 1784<div class="refsect3"> 1785<a name="gst-rtp-buffer-get-payload-len.parameters"></a><h4>Parameters</h4> 1786<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1787<colgroup> 1788<col width="150px" class="parameters_name"> 1789<col class="parameters_description"> 1790<col width="200px" class="parameters_annotations"> 1791</colgroup> 1792<tbody><tr> 1793<td class="parameter_name"><p>rtp</p></td> 1794<td class="parameter_description"><p>the RTP packet</p></td> 1795<td class="parameter_annotations"> </td> 1796</tr></tbody> 1797</table></div> 1798</div> 1799<div class="refsect3"> 1800<a name="gst-rtp-buffer-get-payload-len.returns"></a><h4>Returns</h4> 1801<p> The length of the payload in <em class="parameter"><code>buffer</code></em> 1802.</p> 1803</div> 1804</div> 1805<hr> 1806<div class="refsect2"> 1807<a name="gst-rtp-buffer-get-payload-bytes"></a><h3>gst_rtp_buffer_get_payload_bytes ()</h3> 1808<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> * 1809gst_rtp_buffer_get_payload_bytes (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1810<p>Similar to gst_rtp_buffer_get_payload, but more suitable for language 1811bindings usage. The return value is a pointer to a <a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> structure 1812containing the payload data in <em class="parameter"><code>rtp</code></em> 1813.</p> 1814<p><span class="annotation">[<acronym title="Rename the original symbol's name to SYMBOL."><span class="acronym">rename-to</span></acronym> gst_rtp_buffer_get_payload]</span></p> 1815<div class="refsect3"> 1816<a name="gst-rtp-buffer-get-payload-bytes.parameters"></a><h4>Parameters</h4> 1817<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1818<colgroup> 1819<col width="150px" class="parameters_name"> 1820<col class="parameters_description"> 1821<col width="200px" class="parameters_annotations"> 1822</colgroup> 1823<tbody><tr> 1824<td class="parameter_name"><p>rtp</p></td> 1825<td class="parameter_description"><p>the RTP packet</p></td> 1826<td class="parameter_annotations"> </td> 1827</tr></tbody> 1828</table></div> 1829</div> 1830<div class="refsect3"> 1831<a name="gst-rtp-buffer-get-payload-bytes.returns"></a><h4>Returns</h4> 1832<p>A new <a href="/usr/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> containing the payload data in <em class="parameter"><code>rtp</code></em> 1833. </p> 1834<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> 1835</div> 1836<p class="since">Since: <a class="link" href="ix14.html#api-index-1.2">1.2</a></p> 1837</div> 1838<hr> 1839<div class="refsect2"> 1840<a name="gst-rtp-buffer-get-payload"></a><h3>gst_rtp_buffer_get_payload ()</h3> 1841<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> 1842gst_rtp_buffer_get_payload (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>);</pre> 1843<p>Get a pointer to the payload data in <em class="parameter"><code>buffer</code></em> 1844. This pointer is valid as long 1845as a reference to <em class="parameter"><code>buffer</code></em> 1846 is held.</p> 1847<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p> 1848<div class="refsect3"> 1849<a name="gst-rtp-buffer-get-payload.parameters"></a><h4>Parameters</h4> 1850<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1851<colgroup> 1852<col width="150px" class="parameters_name"> 1853<col class="parameters_description"> 1854<col width="200px" class="parameters_annotations"> 1855</colgroup> 1856<tbody><tr> 1857<td class="parameter_name"><p>rtp</p></td> 1858<td class="parameter_description"><p>the RTP packet</p></td> 1859<td class="parameter_annotations"> </td> 1860</tr></tbody> 1861</table></div> 1862</div> 1863<div class="refsect3"> 1864<a name="gst-rtp-buffer-get-payload.returns"></a><h4>Returns</h4> 1865<p>A pointer 1866to the payload data in <em class="parameter"><code>buffer</code></em> 1867. </p> 1868<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p> 1869</div> 1870</div> 1871<hr> 1872<div class="refsect2"> 1873<a name="gst-rtp-buffer-default-clock-rate"></a><h3>gst_rtp_buffer_default_clock_rate ()</h3> 1874<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> 1875gst_rtp_buffer_default_clock_rate (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);</pre> 1876<p>Get the default clock-rate for the static payload type <em class="parameter"><code>payload_type</code></em> 1877.</p> 1878<div class="refsect3"> 1879<a name="gst-rtp-buffer-default-clock-rate.parameters"></a><h4>Parameters</h4> 1880<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1881<colgroup> 1882<col width="150px" class="parameters_name"> 1883<col class="parameters_description"> 1884<col width="200px" class="parameters_annotations"> 1885</colgroup> 1886<tbody><tr> 1887<td class="parameter_name"><p>payload_type</p></td> 1888<td class="parameter_description"><p>the static payload type</p></td> 1889<td class="parameter_annotations"> </td> 1890</tr></tbody> 1891</table></div> 1892</div> 1893<div class="refsect3"> 1894<a name="gst-rtp-buffer-default-clock-rate.returns"></a><h4>Returns</h4> 1895<p> the default clock rate or -1 if the payload type is not static or 1896the clock-rate is undefined.</p> 1897</div> 1898</div> 1899<hr> 1900<div class="refsect2"> 1901<a name="gst-rtp-buffer-compare-seqnum"></a><h3>gst_rtp_buffer_compare_seqnum ()</h3> 1902<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> 1903gst_rtp_buffer_compare_seqnum (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum1</code></em>, 1904 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum2</code></em>);</pre> 1905<p>Compare two sequence numbers, taking care of wraparounds. This function 1906returns the difference between <em class="parameter"><code>seqnum1</code></em> 1907 and <em class="parameter"><code>seqnum2</code></em> 1908.</p> 1909<div class="refsect3"> 1910<a name="gst-rtp-buffer-compare-seqnum.parameters"></a><h4>Parameters</h4> 1911<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1912<colgroup> 1913<col width="150px" class="parameters_name"> 1914<col class="parameters_description"> 1915<col width="200px" class="parameters_annotations"> 1916</colgroup> 1917<tbody> 1918<tr> 1919<td class="parameter_name"><p>seqnum1</p></td> 1920<td class="parameter_description"><p>a sequence number</p></td> 1921<td class="parameter_annotations"> </td> 1922</tr> 1923<tr> 1924<td class="parameter_name"><p>seqnum2</p></td> 1925<td class="parameter_description"><p>a sequence number</p></td> 1926<td class="parameter_annotations"> </td> 1927</tr> 1928</tbody> 1929</table></div> 1930</div> 1931<div class="refsect3"> 1932<a name="gst-rtp-buffer-compare-seqnum.returns"></a><h4>Returns</h4> 1933<p> a negative value if <em class="parameter"><code>seqnum1</code></em> 1934is bigger than <em class="parameter"><code>seqnum2</code></em> 1935, 0 if they 1936are equal or a positive value if <em class="parameter"><code>seqnum1</code></em> 1937is smaller than <em class="parameter"><code>segnum2</code></em> 1938.</p> 1939</div> 1940</div> 1941<hr> 1942<div class="refsect2"> 1943<a name="gst-rtp-buffer-ext-timestamp"></a><h3>gst_rtp_buffer_ext_timestamp ()</h3> 1944<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> 1945gst_rtp_buffer_ext_timestamp (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> *exttimestamp</code></em>, 1946 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre> 1947<p>Update the <em class="parameter"><code>exttimestamp</code></em> 1948 field with the extended timestamp of <em class="parameter"><code>timestamp</code></em> 1949 1950For the first call of the method, <em class="parameter"><code>exttimestamp</code></em> 1951 should point to a location 1952with a value of -1.</p> 1953<p>This function is able to handle both forward and backward timestamps taking 1954into account:</p> 1955<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 1956<li class="listitem"><p>timestamp wraparound making sure that the returned value is properly increased.</p></li> 1957<li class="listitem"><p>timestamp unwraparound making sure that the returned value is properly decreased.</p></li> 1958</ul></div> 1959<div class="refsect3"> 1960<a name="gst-rtp-buffer-ext-timestamp.parameters"></a><h4>Parameters</h4> 1961<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1962<colgroup> 1963<col width="150px" class="parameters_name"> 1964<col class="parameters_description"> 1965<col width="200px" class="parameters_annotations"> 1966</colgroup> 1967<tbody> 1968<tr> 1969<td class="parameter_name"><p>exttimestamp</p></td> 1970<td class="parameter_description"><p>a previous extended timestamp. </p></td> 1971<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td> 1972</tr> 1973<tr> 1974<td class="parameter_name"><p>timestamp</p></td> 1975<td class="parameter_description"><p>a new timestamp</p></td> 1976<td class="parameter_annotations"> </td> 1977</tr> 1978</tbody> 1979</table></div> 1980</div> 1981<div class="refsect3"> 1982<a name="gst-rtp-buffer-ext-timestamp.returns"></a><h4>Returns</h4> 1983<p> The extended timestamp of <em class="parameter"><code>timestamp</code></em> 1984or 0 if the result can't go anywhere backwards.</p> 1985</div> 1986</div> 1987<hr> 1988<div class="refsect2"> 1989<a name="gst-rtp-buffer-set-extension-data"></a><h3>gst_rtp_buffer_set_extension_data ()</h3> 1990<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 1991gst_rtp_buffer_set_extension_data (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 1992 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> bits</code></em>, 1993 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> length</code></em>);</pre> 1994<p>Set the extension bit of the rtp buffer and fill in the <em class="parameter"><code>bits</code></em> 1995 and <em class="parameter"><code>length</code></em> 1996 of the 1997extension header. If the existing extension data is not large enough, it will 1998be made larger.</p> 1999<div class="refsect3"> 2000<a name="gst-rtp-buffer-set-extension-data.parameters"></a><h4>Parameters</h4> 2001<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2002<colgroup> 2003<col width="150px" class="parameters_name"> 2004<col class="parameters_description"> 2005<col width="200px" class="parameters_annotations"> 2006</colgroup> 2007<tbody> 2008<tr> 2009<td class="parameter_name"><p>rtp</p></td> 2010<td class="parameter_description"><p>the RTP packet</p></td> 2011<td class="parameter_annotations"> </td> 2012</tr> 2013<tr> 2014<td class="parameter_name"><p>bits</p></td> 2015<td class="parameter_description"><p>the bits specific for the extension</p></td> 2016<td class="parameter_annotations"> </td> 2017</tr> 2018<tr> 2019<td class="parameter_name"><p>length</p></td> 2020<td class="parameter_description"><p>the length that counts the number of 32-bit words in 2021the extension, excluding the extension header ( therefore zero is a valid length)</p></td> 2022<td class="parameter_annotations"> </td> 2023</tr> 2024</tbody> 2025</table></div> 2026</div> 2027<div class="refsect3"> 2028<a name="gst-rtp-buffer-set-extension-data.returns"></a><h4>Returns</h4> 2029<p> True if done.</p> 2030</div> 2031</div> 2032<hr> 2033<div class="refsect2"> 2034<a name="gst-rtp-buffer-get-extension-onebyte-header"></a><h3>gst_rtp_buffer_get_extension_onebyte_header ()</h3> 2035<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 2036gst_rtp_buffer_get_extension_onebyte_header 2037 (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 2038 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>, 2039 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>, 2040 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>, 2041 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre> 2042<p>Parses RFC 5285 style header extensions with a one byte header. It will 2043return the nth extension with the requested id.</p> 2044<div class="refsect3"> 2045<a name="gst-rtp-buffer-get-extension-onebyte-header.parameters"></a><h4>Parameters</h4> 2046<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2047<colgroup> 2048<col width="150px" class="parameters_name"> 2049<col class="parameters_description"> 2050<col width="200px" class="parameters_annotations"> 2051</colgroup> 2052<tbody> 2053<tr> 2054<td class="parameter_name"><p>rtp</p></td> 2055<td class="parameter_description"><p>the RTP packet</p></td> 2056<td class="parameter_annotations"> </td> 2057</tr> 2058<tr> 2059<td class="parameter_name"><p>id</p></td> 2060<td class="parameter_description"><p>The ID of the header extension to be read (between 1 and 14).</p></td> 2061<td class="parameter_annotations"> </td> 2062</tr> 2063<tr> 2064<td class="parameter_name"><p>nth</p></td> 2065<td class="parameter_description"><p>Read the nth extension packet with the requested ID</p></td> 2066<td class="parameter_annotations"> </td> 2067</tr> 2068<tr> 2069<td class="parameter_name"><p>data</p></td> 2070<td class="parameter_description"><p>location for data. </p></td> 2071<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td> 2072</tr> 2073<tr> 2074<td class="parameter_name"><p>size</p></td> 2075<td class="parameter_description"><p>the size of the data in bytes. </p></td> 2076<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> 2077</tr> 2078</tbody> 2079</table></div> 2080</div> 2081<div class="refsect3"> 2082<a name="gst-rtp-buffer-get-extension-onebyte-header.returns"></a><h4>Returns</h4> 2083<p> TRUE if <em class="parameter"><code>buffer</code></em> 2084had the requested header extension</p> 2085</div> 2086</div> 2087<hr> 2088<div class="refsect2"> 2089<a name="gst-rtp-buffer-get-extension-twobytes-header"></a><h3>gst_rtp_buffer_get_extension_twobytes_header ()</h3> 2090<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 2091gst_rtp_buffer_get_extension_twobytes_header 2092 (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 2093 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *appbits</code></em>, 2094 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>, 2095 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>, 2096 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>, 2097 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre> 2098<p>Parses RFC 5285 style header extensions with a two bytes header. It will 2099return the nth extension with the requested id.</p> 2100<div class="refsect3"> 2101<a name="gst-rtp-buffer-get-extension-twobytes-header.parameters"></a><h4>Parameters</h4> 2102<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2103<colgroup> 2104<col width="150px" class="parameters_name"> 2105<col class="parameters_description"> 2106<col width="200px" class="parameters_annotations"> 2107</colgroup> 2108<tbody> 2109<tr> 2110<td class="parameter_name"><p>rtp</p></td> 2111<td class="parameter_description"><p>the RTP packet</p></td> 2112<td class="parameter_annotations"> </td> 2113</tr> 2114<tr> 2115<td class="parameter_name"><p>appbits</p></td> 2116<td class="parameter_description"><p>Application specific bits. </p></td> 2117<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> 2118</tr> 2119<tr> 2120<td class="parameter_name"><p>id</p></td> 2121<td class="parameter_description"><p>The ID of the header extension to be read (between 1 and 14).</p></td> 2122<td class="parameter_annotations"> </td> 2123</tr> 2124<tr> 2125<td class="parameter_name"><p>nth</p></td> 2126<td class="parameter_description"><p>Read the nth extension packet with the requested ID</p></td> 2127<td class="parameter_annotations"> </td> 2128</tr> 2129<tr> 2130<td class="parameter_name"><p>data</p></td> 2131<td class="parameter_description"><p>location for data. </p></td> 2132<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td> 2133</tr> 2134<tr> 2135<td class="parameter_name"><p>size</p></td> 2136<td class="parameter_description"><p>the size of the data in bytes. </p></td> 2137<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> 2138</tr> 2139</tbody> 2140</table></div> 2141</div> 2142<div class="refsect3"> 2143<a name="gst-rtp-buffer-get-extension-twobytes-header.returns"></a><h4>Returns</h4> 2144<p> TRUE if <em class="parameter"><code>buffer</code></em> 2145had the requested header extension</p> 2146</div> 2147</div> 2148<hr> 2149<div class="refsect2"> 2150<a name="gst-rtp-buffer-add-extension-onebyte-header"></a><h3>gst_rtp_buffer_add_extension_onebyte_header ()</h3> 2151<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 2152gst_rtp_buffer_add_extension_onebyte_header 2153 (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 2154 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>, 2155 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> data</code></em>, 2156 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre> 2157<p>Adds a RFC 5285 header extension with a one byte header to the end of the 2158RTP header. If there is already a RFC 5285 header extension with a one byte 2159header, the new extension will be appended. 2160It will not work if there is already a header extension that does not follow 2161the mecanism described in RFC 5285 or if there is a header extension with 2162a two bytes header as described in RFC 5285. In that case, use 2163<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-add-extension-twobytes-header" title="gst_rtp_buffer_add_extension_twobytes_header ()"><code class="function">gst_rtp_buffer_add_extension_twobytes_header()</code></a></p> 2164<div class="refsect3"> 2165<a name="gst-rtp-buffer-add-extension-onebyte-header.parameters"></a><h4>Parameters</h4> 2166<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2167<colgroup> 2168<col width="150px" class="parameters_name"> 2169<col class="parameters_description"> 2170<col width="200px" class="parameters_annotations"> 2171</colgroup> 2172<tbody> 2173<tr> 2174<td class="parameter_name"><p>rtp</p></td> 2175<td class="parameter_description"><p>the RTP packet</p></td> 2176<td class="parameter_annotations"> </td> 2177</tr> 2178<tr> 2179<td class="parameter_name"><p>id</p></td> 2180<td class="parameter_description"><p>The ID of the header extension (between 1 and 14).</p></td> 2181<td class="parameter_annotations"> </td> 2182</tr> 2183<tr> 2184<td class="parameter_name"><p>data</p></td> 2185<td class="parameter_description"><p>location for data. </p></td> 2186<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td> 2187</tr> 2188<tr> 2189<td class="parameter_name"><p>size</p></td> 2190<td class="parameter_description"><p>the size of the data in bytes</p></td> 2191<td class="parameter_annotations"> </td> 2192</tr> 2193</tbody> 2194</table></div> 2195</div> 2196<div class="refsect3"> 2197<a name="gst-rtp-buffer-add-extension-onebyte-header.returns"></a><h4>Returns</h4> 2198<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</p> 2199</div> 2200</div> 2201<hr> 2202<div class="refsect2"> 2203<a name="gst-rtp-buffer-add-extension-twobytes-header"></a><h3>gst_rtp_buffer_add_extension_twobytes_header ()</h3> 2204<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 2205gst_rtp_buffer_add_extension_twobytes_header 2206 (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a> *rtp</code></em>, 2207 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> appbits</code></em>, 2208 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>, 2209 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> data</code></em>, 2210 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre> 2211<p>Adds a RFC 5285 header extension with a two bytes header to the end of the 2212RTP header. If there is already a RFC 5285 header extension with a two bytes 2213header, the new extension will be appended. 2214It will not work if there is already a header extension that does not follow 2215the mecanism described in RFC 5285 or if there is a header extension with 2216a one byte header as described in RFC 5285. In that case, use 2217<a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-add-extension-onebyte-header" title="gst_rtp_buffer_add_extension_onebyte_header ()"><code class="function">gst_rtp_buffer_add_extension_onebyte_header()</code></a></p> 2218<div class="refsect3"> 2219<a name="gst-rtp-buffer-add-extension-twobytes-header.parameters"></a><h4>Parameters</h4> 2220<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2221<colgroup> 2222<col width="150px" class="parameters_name"> 2223<col class="parameters_description"> 2224<col width="200px" class="parameters_annotations"> 2225</colgroup> 2226<tbody> 2227<tr> 2228<td class="parameter_name"><p>rtp</p></td> 2229<td class="parameter_description"><p>the RTP packet</p></td> 2230<td class="parameter_annotations"> </td> 2231</tr> 2232<tr> 2233<td class="parameter_name"><p>appbits</p></td> 2234<td class="parameter_description"><p>Application specific bits</p></td> 2235<td class="parameter_annotations"> </td> 2236</tr> 2237<tr> 2238<td class="parameter_name"><p>id</p></td> 2239<td class="parameter_description"><p>The ID of the header extension</p></td> 2240<td class="parameter_annotations"> </td> 2241</tr> 2242<tr> 2243<td class="parameter_name"><p>data</p></td> 2244<td class="parameter_description"><p>location for data. </p></td> 2245<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td> 2246</tr> 2247<tr> 2248<td class="parameter_name"><p>size</p></td> 2249<td class="parameter_description"><p>the size of the data in bytes</p></td> 2250<td class="parameter_annotations"> </td> 2251</tr> 2252</tbody> 2253</table></div> 2254</div> 2255<div class="refsect3"> 2256<a name="gst-rtp-buffer-add-extension-twobytes-header.returns"></a><h4>Returns</h4> 2257<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</p> 2258</div> 2259</div> 2260</div> 2261<div class="refsect1"> 2262<a name="gst-plugins-base-libs-GstRTPBuffer.other_details"></a><h2>Types and Values</h2> 2263<div class="refsect2"> 2264<a name="GST-RTP-VERSION:CAPS"></a><h3>GST_RTP_VERSION</h3> 2265<pre class="programlisting">#define GST_RTP_VERSION 2 2266</pre> 2267<p>The supported RTP version 2.</p> 2268</div> 2269<hr> 2270<div class="refsect2"> 2271<a name="GstRTPBuffer"></a><h3>struct GstRTPBuffer</h3> 2272<pre class="programlisting">struct GstRTPBuffer { 2273 GstBuffer *buffer; 2274 guint state; 2275 gpointer data[4]; 2276 gsize size[4]; 2277 GstMapInfo map[4]; 2278}; 2279</pre> 2280<p>Data structure that points to an RTP packet. 2281The size of the structure is made public to allow stack allocations.</p> 2282<div class="refsect3"> 2283<a name="GstRTPBuffer.members"></a><h4>Members</h4> 2284<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2285<colgroup> 2286<col width="300px" class="struct_members_name"> 2287<col class="struct_members_description"> 2288<col width="200px" class="struct_members_annotations"> 2289</colgroup> 2290<tbody> 2291<tr> 2292<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *<em class="structfield"><code><a name="GstRTPBuffer.buffer"></a>buffer</code></em>;</p></td> 2293<td class="struct_member_description"><p>pointer to RTP buffer</p></td> 2294<td class="struct_member_annotations"> </td> 2295</tr> 2296<tr> 2297<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="GstRTPBuffer.state"></a>state</code></em>;</p></td> 2298<td class="struct_member_description"><p>internal state</p></td> 2299<td class="struct_member_annotations"> </td> 2300</tr> 2301<tr> 2302<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="GstRTPBuffer.data"></a>data</code></em>[4];</p></td> 2303<td class="struct_member_description"><p>array of data</p></td> 2304<td class="struct_member_annotations"> </td> 2305</tr> 2306<tr> 2307<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> <em class="structfield"><code><a name="GstRTPBuffer.size"></a>size</code></em>[4];</p></td> 2308<td class="struct_member_description"><p>array of size</p></td> 2309<td class="struct_member_annotations"> </td> 2310</tr> 2311<tr> 2312<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a> <em class="structfield"><code><a name="GstRTPBuffer.map"></a>map</code></em>[4];</p></td> 2313<td class="struct_member_description"><p>array of <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a></p></td> 2314<td class="struct_member_annotations"> </td> 2315</tr> 2316</tbody> 2317</table></div> 2318</div> 2319</div> 2320<hr> 2321<div class="refsect2"> 2322<a name="GST-RTP-BUFFER-INIT:CAPS"></a><h3>GST_RTP_BUFFER_INIT</h3> 2323<pre class="programlisting">#define GST_RTP_BUFFER_INIT</pre> 2324</div> 2325<hr> 2326<div class="refsect2"> 2327<a name="GstRTPBufferFlags"></a><h3>enum GstRTPBufferFlags</h3> 2328<p>Additional RTP buffer flags. These flags can potentially be used on any 2329buffers carrying RTP packets.</p> 2330<p>Note that these are only valid for <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> of type: application/x-rtp (x-rtcp). 2331They can conflict with other extended buffer flags.</p> 2332<div class="refsect3"> 2333<a name="GstRTPBufferFlags.members"></a><h4>Members</h4> 2334<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2335<colgroup> 2336<col width="300px" class="enum_members_name"> 2337<col class="enum_members_description"> 2338<col width="200px" class="enum_members_annotations"> 2339</colgroup> 2340<tbody> 2341<tr> 2342<td class="enum_member_name"><p><a name="GST-RTP-BUFFER-FLAG-RETRANSMISSION:CAPS"></a>GST_RTP_BUFFER_FLAG_RETRANSMISSION</p></td> 2343<td class="enum_member_description"> 2344<p>The <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> was once wrapped 2345 in a retransmitted packet as specified by RFC 4588.</p> 2346</td> 2347<td class="enum_member_annotations"> </td> 2348</tr> 2349<tr> 2350<td class="enum_member_name"><p><a name="GST-RTP-BUFFER-FLAG-REDUNDANT:CAPS"></a>GST_RTP_BUFFER_FLAG_REDUNDANT</p></td> 2351<td class="enum_member_description"> 2352<p>The packet represents redundant RTP packet. 2353 The flag is used in gstrtpstorage to be able to hold the packetback 2354 and use it only for recovery from packet loss. 2355 Since: 1.14</p> 2356</td> 2357<td class="enum_member_annotations"> </td> 2358</tr> 2359<tr> 2360<td class="enum_member_name"><p><a name="GST-RTP-BUFFER-FLAG-LAST:CAPS"></a>GST_RTP_BUFFER_FLAG_LAST</p></td> 2361<td class="enum_member_description"> 2362<p>Offset to define more flags.</p> 2363</td> 2364<td class="enum_member_annotations"> </td> 2365</tr> 2366</tbody> 2367</table></div> 2368</div> 2369<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 2370</div> 2371<hr> 2372<div class="refsect2"> 2373<a name="GstRTPBufferMapFlags"></a><h3>enum GstRTPBufferMapFlags</h3> 2374<p>Additional mapping flags for <a class="link" href="gst-plugins-base-libs-GstRTPBuffer.html#gst-rtp-buffer-map" title="gst_rtp_buffer_map ()"><code class="function">gst_rtp_buffer_map()</code></a>.</p> 2375<div class="refsect3"> 2376<a name="GstRTPBufferMapFlags.members"></a><h4>Members</h4> 2377<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2378<colgroup> 2379<col width="300px" class="enum_members_name"> 2380<col class="enum_members_description"> 2381<col width="200px" class="enum_members_annotations"> 2382</colgroup> 2383<tbody> 2384<tr> 2385<td class="enum_member_name"><p><a name="GST-RTP-BUFFER-MAP-FLAG-SKIP-PADDING:CAPS"></a>GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING</p></td> 2386<td class="enum_member_description"> 2387<p>Skip mapping and validation of RTP 2388 padding and RTP pad count when present. Useful for buffers where 2389 the padding may be encrypted.</p> 2390</td> 2391<td class="enum_member_annotations"> </td> 2392</tr> 2393<tr> 2394<td class="enum_member_name"><p><a name="GST-RTP-BUFFER-MAP-FLAG-LAST:CAPS"></a>GST_RTP_BUFFER_MAP_FLAG_LAST</p></td> 2395<td class="enum_member_description"> 2396<p>Offset to define more flags</p> 2397</td> 2398<td class="enum_member_annotations"> </td> 2399</tr> 2400</tbody> 2401</table></div> 2402</div> 2403<p class="since">Since: <a class="link" href="ix09.html#api-index-1.6.1">1.6.1</a></p> 2404</div> 2405</div> 2406<div class="refsect1"> 2407<a name="gst-plugins-base-libs-GstRTPBuffer.see-also"></a><h2>See Also</h2> 2408<p><a class="link" href="GstRTPBasePayload.html" title="GstRTPBasePayload"><span class="type">GstRTPBasePayload</span></a>, <a class="link" href="GstRTPBaseDepayload.html" title="GstRTPBaseDepayload"><span class="type">GstRTPBaseDepayload</span></a>, gstrtcpbuffer</p> 2409</div> 2410</div> 2411<div class="footer"> 2412<hr>Generated by GTK-Doc V1.28</div> 2413</body> 2414</html>