33
30
<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-gstrtpbuffer.top_of_page"></a>gstrtpbuffer</span></h2>
34
31
<p>gstrtpbuffer — Helper methods for dealing with RTP buffers</p>
36
<td valign="top" align="right"></td>
33
<td class="gallery_image" valign="top" align="right"></td>
37
34
</tr></table></div>
38
<div class="refsynopsisdiv">
39
<a name="gst-plugins-base-libs-gstrtpbuffer.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">
41
#include <gst/rtp/gstrtpbuffer.h>
43
#define <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#GST-RTP-VERSION:CAPS" title="GST_RTP_VERSION">GST_RTP_VERSION</a>
44
<span class="returnvalue">void</span> <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> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
45
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
46
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
47
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
48
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
49
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);
50
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
51
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);
52
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
53
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
54
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
55
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
56
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
57
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
58
struct <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#GstRTPBuffer" title="struct GstRTPBuffer">GstRTPBuffer</a>;
59
#define <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>
60
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-map" title="gst_rtp_buffer_map ()">gst_rtp_buffer_map</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
61
<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a> flags</code></em>,
62
<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>);
63
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-unmap" title="gst_rtp_buffer_unmap ()">gst_rtp_buffer_unmap</a> (<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>);
64
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
66
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
67
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
68
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
69
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
70
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);
71
<span class="returnvalue">void</span> <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> (<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>,
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);
73
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<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>);
74
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<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>);
75
<span class="returnvalue">guint8</span> <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> (<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>);
76
<span class="returnvalue">void</span> <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> (<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>,
77
<em class="parameter"><code><span class="type">guint8</span> version</code></em>);
78
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<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>);
79
<span class="returnvalue">void</span> <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> (<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>,
80
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> padding</code></em>);
81
<span class="returnvalue">void</span> <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> (<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>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);
83
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<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>);
84
<span class="returnvalue">void</span> <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> (<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>,
85
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extension</code></em>);
86
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<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>,
87
<em class="parameter"><code><span class="type">guint16</span> *bits</code></em>,
88
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
89
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *wordlen</code></em>);
90
<span class="returnvalue">guint32</span> <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> (<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>);
91
<span class="returnvalue">void</span> <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> (<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>,
92
<em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
93
<span class="returnvalue">guint8</span> <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> (<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>);
94
<span class="returnvalue">guint32</span> <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> (<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>,
95
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>);
96
<span class="returnvalue">void</span> <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> (<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>,
97
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>,
98
<em class="parameter"><code><span class="type">guint32</span> csrc</code></em>);
99
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<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>);
100
<span class="returnvalue">void</span> <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> (<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>,
101
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> marker</code></em>);
102
<span class="returnvalue">guint8</span> <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> (<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>);
103
<span class="returnvalue">void</span> <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> (<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>,
104
<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);
105
<span class="returnvalue">guint16</span> <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> (<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>);
106
<span class="returnvalue">void</span> <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> (<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>,
107
<em class="parameter"><code><span class="type">guint16</span> seq</code></em>);
108
<span class="returnvalue">guint32</span> <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> (<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>);
109
<span class="returnvalue">void</span> <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> (<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>,
110
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
111
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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> (<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>);
112
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * <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>
113
(<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>,
114
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>,
115
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);
116
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <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> (<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>);
117
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <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> (<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>);
118
<span class="returnvalue">guint32</span> <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> (<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);
119
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <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> (<em class="parameter"><code><span class="type">guint16</span> seqnum1</code></em>,
120
<em class="parameter"><code><span class="type">guint16</span> seqnum2</code></em>);
121
<span class="returnvalue">guint64</span> <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> (<em class="parameter"><code><span class="type">guint64</span> *exttimestamp</code></em>,
122
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
123
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<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>,
124
<em class="parameter"><code><span class="type">guint16</span> bits</code></em>,
125
<em class="parameter"><code><span class="type">guint16</span> length</code></em>);
126
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>
127
(<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>,
128
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
129
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
130
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
131
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);
132
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>
133
(<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>,
134
<em class="parameter"><code><span class="type">guint8</span> *appbits</code></em>,
135
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
136
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
137
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
138
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);
139
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>
140
(<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>,
141
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
142
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
143
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);
144
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>
145
(<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>,
146
<em class="parameter"><code><span class="type">guint8</span> appbits</code></em>,
147
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
148
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
149
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);
35
<div class="refsect1">
36
<a name="gst-plugins-base-libs-gstrtpbuffer.functions"></a><h2>Functions</h2>
37
<div class="informaltable"><table width="100%" border="0">
39
<col width="150px" class="functions_return">
40
<col class="functions_name">
44
<td class="function_type">
45
<span class="returnvalue">void</span>
47
<td class="function_name">
48
<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>
52
<td class="function_type">
53
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
55
<td class="function_name">
56
<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>
60
<td class="function_type">
61
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
63
<td class="function_name">
64
<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>
68
<td class="function_type">
69
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
71
<td class="function_name">
72
<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>
76
<td class="function_type">
77
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
79
<td class="function_name">
80
<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>
84
<td class="function_type">
85
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
87
<td class="function_name">
88
<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>
92
<td class="function_type">
93
<span class="returnvalue">void</span>
95
<td class="function_name">
96
<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>
100
<td class="function_type">
101
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
103
<td class="function_name">
104
<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>
108
<td class="function_type">
109
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
111
<td class="function_name">
112
<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>
116
<td class="function_type">
117
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
119
<td class="function_name">
120
<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>
124
<td class="function_type">
125
<span class="returnvalue">void</span>
127
<td class="function_name">
128
<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>
132
<td class="function_type">
133
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
135
<td class="function_name">
136
<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>
140
<td class="function_type">
141
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
143
<td class="function_name">
144
<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>
148
<td class="function_type">
149
<span class="returnvalue">guint8</span>
151
<td class="function_name">
152
<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>
156
<td class="function_type">
157
<span class="returnvalue">void</span>
159
<td class="function_name">
160
<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>
164
<td class="function_type">
165
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
167
<td class="function_name">
168
<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>
172
<td class="function_type">
173
<span class="returnvalue">void</span>
175
<td class="function_name">
176
<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>
180
<td class="function_type">
181
<span class="returnvalue">void</span>
183
<td class="function_name">
184
<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>
188
<td class="function_type">
189
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
191
<td class="function_name">
192
<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>
196
<td class="function_type">
197
<span class="returnvalue">void</span>
199
<td class="function_name">
200
<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>
204
<td class="function_type">
205
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
207
<td class="function_name">
208
<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>
212
<td class="function_type">
213
<span class="returnvalue">guint32</span>
215
<td class="function_name">
216
<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>
220
<td class="function_type">
221
<span class="returnvalue">void</span>
223
<td class="function_name">
224
<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>
228
<td class="function_type">
229
<span class="returnvalue">guint8</span>
231
<td class="function_name">
232
<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>
236
<td class="function_type">
237
<span class="returnvalue">guint32</span>
239
<td class="function_name">
240
<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>
244
<td class="function_type">
245
<span class="returnvalue">void</span>
247
<td class="function_name">
248
<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>
252
<td class="function_type">
253
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
255
<td class="function_name">
256
<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>
260
<td class="function_type">
261
<span class="returnvalue">void</span>
263
<td class="function_name">
264
<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>
268
<td class="function_type">
269
<span class="returnvalue">guint8</span>
271
<td class="function_name">
272
<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>
276
<td class="function_type">
277
<span class="returnvalue">void</span>
279
<td class="function_name">
280
<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>
284
<td class="function_type">
285
<span class="returnvalue">guint16</span>
287
<td class="function_name">
288
<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>
292
<td class="function_type">
293
<span class="returnvalue">void</span>
295
<td class="function_name">
296
<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>
300
<td class="function_type">
301
<span class="returnvalue">guint32</span>
303
<td class="function_name">
304
<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>
308
<td class="function_type">
309
<span class="returnvalue">void</span>
311
<td class="function_name">
312
<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>
316
<td class="function_type">
317
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
319
<td class="function_name">
320
<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>
324
<td class="function_type">
325
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
327
<td class="function_name">
328
<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>
332
<td class="function_type">
333
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
335
<td class="function_name">
336
<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>
340
<td class="function_type">
341
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
343
<td class="function_name">
344
<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>
348
<td class="function_type">
349
<span class="returnvalue">guint32</span>
351
<td class="function_name">
352
<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>
356
<td class="function_type">
357
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
359
<td class="function_name">
360
<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>
364
<td class="function_type">
365
<span class="returnvalue">guint64</span>
367
<td class="function_name">
368
<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>
372
<td class="function_type">
373
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
375
<td class="function_name">
376
<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>
380
<td class="function_type">
381
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
383
<td class="function_name">
384
<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>
388
<td class="function_type">
389
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
391
<td class="function_name">
392
<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>
396
<td class="function_type">
397
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
399
<td class="function_name">
400
<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>
404
<td class="function_type">
405
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
407
<td class="function_name">
408
<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>
414
<div class="refsect1">
415
<a name="gst-plugins-base-libs-gstrtpbuffer.other"></a><h2>Types and Values</h2>
416
<div class="informaltable"><table width="100%" border="0">
418
<col width="150px" class="name">
419
<col class="description">
423
<td class="define_keyword">#define</td>
424
<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>
427
<td class="datatype_keyword">struct</td>
428
<td class="function_name"><a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#GstRTPBuffer" title="struct GstRTPBuffer">GstRTPBuffer</a></td>
431
<td class="define_keyword">#define</td>
432
<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>
437
<div class="refsect1">
438
<a name="gst-plugins-base-libs-gstrtpbuffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
442
<div class="refsect1">
443
<a name="gst-plugins-base-libs-gstrtpbuffer.includes"></a><h2>Includes</h2>
444
<pre class="synopsis">#include <gst/rtp/gstrtpbuffer.h>
152
447
<div class="refsect1">
153
448
<a name="gst-plugins-base-libs-gstrtpbuffer.description"></a><h2>Description</h2>
156
449
<div class="refsect2">
157
<a name="id-1.2.9.6.4.2.1"></a><p>
450
<a name="id-1.2.9.6.7.2"></a><p>
158
451
The GstRTPBuffer helper functions makes it easy to parse and create regular
159
452
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> objects that contain RTP payloads. These buffers are typically of
160
453
'application/x-rtp' <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a>.
166
Last reviewed on 2006-07-17 (0.10.10)
169
<div class="refsect1">
170
<a name="gst-plugins-base-libs-gstrtpbuffer.details"></a><h2>Details</h2>
456
<p>Last reviewed on 2006-07-17 (0.10.10)</p>
458
<div class="refsect1">
459
<a name="gst-plugins-base-libs-gstrtpbuffer.functions_details"></a><h2>Functions</h2>
460
<div class="refsect2">
461
<a name="gst-rtp-buffer-allocate-data"></a><h3>gst_rtp_buffer_allocate_data ()</h3>
462
<pre class="programlisting"><span class="returnvalue">void</span>
463
gst_rtp_buffer_allocate_data (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
464
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
465
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
466
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
467
<p>Allocate enough data in <em class="parameter"><code>buffer</code></em>
468
to hold an RTP packet with <em class="parameter"><code>csrc_count</code></em>
470
a payload length of <em class="parameter"><code>payload_len</code></em>
471
and padding of <em class="parameter"><code>pad_len</code></em>
473
<em class="parameter"><code>buffer</code></em>
474
must be writable and all previous memory in <em class="parameter"><code>buffer</code></em>
476
If <em class="parameter"><code>pad_len</code></em>
477
is >0, the padding bit will be set. All other RTP header fields
478
will be set to 0/FALSE.</p>
479
<div class="refsect3">
480
<a name="id-1.2.9.6.8.2.5"></a><h4>Parameters</h4>
481
<div class="informaltable"><table width="100%" border="0">
483
<col width="150px" class="parameters_name">
484
<col class="parameters_description">
485
<col width="200px" class="parameters_annotations">
489
<td class="parameter_name"><p>buffer</p></td>
490
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a></p></td>
491
<td class="parameter_annotations"> </td>
494
<td class="parameter_name"><p>payload_len</p></td>
495
<td class="parameter_description"><p>the length of the payload</p></td>
496
<td class="parameter_annotations"> </td>
499
<td class="parameter_name"><p>pad_len</p></td>
500
<td class="parameter_description"><p>the amount of padding</p></td>
501
<td class="parameter_annotations"> </td>
504
<td class="parameter_name"><p>csrc_count</p></td>
505
<td class="parameter_description"><p>the number of CSRC entries</p></td>
506
<td class="parameter_annotations"> </td>
513
<div class="refsect2">
514
<a name="gst-rtp-buffer-new-take-data"></a><h3>gst_rtp_buffer_new_take_data ()</h3>
515
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
516
gst_rtp_buffer_new_take_data (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
517
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);</pre>
518
<p>Create a new buffer and set the data and size of the buffer to <em class="parameter"><code>data</code></em>
519
and <em class="parameter"><code>len</code></em>
521
respectively. <em class="parameter"><code>data</code></em>
522
will be freed when the buffer is unreffed, so this
523
function transfers ownership of <em class="parameter"><code>data</code></em>
524
to the new buffer.</p>
525
<div class="refsect3">
526
<a name="id-1.2.9.6.8.3.5"></a><h4>Parameters</h4>
527
<div class="informaltable"><table width="100%" border="0">
529
<col width="150px" class="parameters_name">
530
<col class="parameters_description">
531
<col width="200px" class="parameters_annotations">
535
<td class="parameter_name"><p>data</p></td>
536
<td class="parameter_description"><p> data for the new buffer. </p></td>
537
<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>
540
<td class="parameter_name"><p>len</p></td>
541
<td class="parameter_description"><p>the length of data</p></td>
542
<td class="parameter_annotations"> </td>
547
<div class="refsect3">
548
<a name="id-1.2.9.6.8.3.6"></a><h4>Returns</h4>
549
<p> A newly allocated buffer with <em class="parameter"><code>data</code></em>
550
and of size <em class="parameter"><code>len</code></em>
556
<div class="refsect2">
557
<a name="gst-rtp-buffer-new-copy-data"></a><h3>gst_rtp_buffer_new_copy_data ()</h3>
558
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
559
gst_rtp_buffer_new_copy_data (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
560
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);</pre>
561
<p>Create a new buffer and set the data to a copy of <em class="parameter"><code>len</code></em>
563
bytes of <em class="parameter"><code>data</code></em>
564
and the size to <em class="parameter"><code>len</code></em>
565
. The data will be freed when the buffer
567
<div class="refsect3">
568
<a name="id-1.2.9.6.8.4.5"></a><h4>Parameters</h4>
569
<div class="informaltable"><table width="100%" border="0">
571
<col width="150px" class="parameters_name">
572
<col class="parameters_description">
573
<col width="200px" class="parameters_annotations">
577
<td class="parameter_name"><p>data</p></td>
578
<td class="parameter_description"><p> data for the new
580
<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>
583
<td class="parameter_name"><p>len</p></td>
584
<td class="parameter_description"><p>the length of data</p></td>
585
<td class="parameter_annotations"> </td>
590
<div class="refsect3">
591
<a name="id-1.2.9.6.8.4.6"></a><h4>Returns</h4>
592
<p> A newly allocated buffer with a copy of <em class="parameter"><code>data</code></em>
593
and of size <em class="parameter"><code>len</code></em>
599
<div class="refsect2">
600
<a name="gst-rtp-buffer-new-allocate"></a><h3>gst_rtp_buffer_new_allocate ()</h3>
601
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
602
gst_rtp_buffer_new_allocate (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
603
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
604
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
605
<p>Allocate a new <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> with enough data to hold an RTP packet with
606
<em class="parameter"><code>csrc_count</code></em>
607
CSRCs, a payload length of <em class="parameter"><code>payload_len</code></em>
608
and padding of <em class="parameter"><code>pad_len</code></em>
610
All other RTP header fields will be set to 0/FALSE.</p>
611
<div class="refsect3">
612
<a name="id-1.2.9.6.8.5.5"></a><h4>Parameters</h4>
613
<div class="informaltable"><table width="100%" border="0">
615
<col width="150px" class="parameters_name">
616
<col class="parameters_description">
617
<col width="200px" class="parameters_annotations">
621
<td class="parameter_name"><p>payload_len</p></td>
622
<td class="parameter_description"><p>the length of the payload</p></td>
623
<td class="parameter_annotations"> </td>
626
<td class="parameter_name"><p>pad_len</p></td>
627
<td class="parameter_description"><p>the amount of padding</p></td>
628
<td class="parameter_annotations"> </td>
631
<td class="parameter_name"><p>csrc_count</p></td>
632
<td class="parameter_description"><p>the number of CSRC entries</p></td>
633
<td class="parameter_annotations"> </td>
638
<div class="refsect3">
639
<a name="id-1.2.9.6.8.5.6"></a><h4>Returns</h4>
640
<p> A newly allocated buffer that can hold an RTP packet with given
646
<div class="refsect2">
647
<a name="gst-rtp-buffer-new-allocate-len"></a><h3>gst_rtp_buffer_new_allocate_len ()</h3>
648
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
649
gst_rtp_buffer_new_allocate_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
650
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
651
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
652
<p>Create a new <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> that can hold an RTP packet that is exactly
653
<em class="parameter"><code>packet_len</code></em>
654
long. The length of the payload depends on <em class="parameter"><code>pad_len</code></em>
656
<em class="parameter"><code>csrc_count</code></em>
657
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>.
658
All RTP header fields will be set to 0/FALSE.</p>
659
<div class="refsect3">
660
<a name="id-1.2.9.6.8.6.5"></a><h4>Parameters</h4>
661
<div class="informaltable"><table width="100%" border="0">
663
<col width="150px" class="parameters_name">
664
<col class="parameters_description">
665
<col width="200px" class="parameters_annotations">
669
<td class="parameter_name"><p>packet_len</p></td>
670
<td class="parameter_description"><p>the total length of the packet</p></td>
671
<td class="parameter_annotations"> </td>
674
<td class="parameter_name"><p>pad_len</p></td>
675
<td class="parameter_description"><p>the amount of padding</p></td>
676
<td class="parameter_annotations"> </td>
679
<td class="parameter_name"><p>csrc_count</p></td>
680
<td class="parameter_description"><p>the number of CSRC entries</p></td>
681
<td class="parameter_annotations"> </td>
686
<div class="refsect3">
687
<a name="id-1.2.9.6.8.6.6"></a><h4>Returns</h4>
688
<p> A newly allocated buffer that can hold an RTP packet of <em class="parameter"><code>packet_len</code></em>
694
<div class="refsect2">
695
<a name="gst-rtp-buffer-map"></a><h3>gst_rtp_buffer_map ()</h3>
696
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
697
gst_rtp_buffer_map (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
698
<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a> flags</code></em>,
699
<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>
700
<p>Map the contents of <em class="parameter"><code>buffer</code></em>
701
into <em class="parameter"><code>rtp</code></em>
703
<div class="refsect3">
704
<a name="id-1.2.9.6.8.7.5"></a><h4>Parameters</h4>
705
<div class="informaltable"><table width="100%" border="0">
707
<col width="150px" class="parameters_name">
708
<col class="parameters_description">
709
<col width="200px" class="parameters_annotations">
713
<td class="parameter_name"><p>buffer</p></td>
714
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a></p></td>
715
<td class="parameter_annotations"> </td>
718
<td class="parameter_name"><p>flags</p></td>
719
<td class="parameter_description"><p><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a></p></td>
720
<td class="parameter_annotations"> </td>
723
<td class="parameter_name"><p>rtp</p></td>
724
<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>
725
<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>
730
<div class="refsect3">
731
<a name="id-1.2.9.6.8.7.6"></a><h4>Returns</h4>
732
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>buffer</code></em>
738
<div class="refsect2">
739
<a name="gst-rtp-buffer-unmap"></a><h3>gst_rtp_buffer_unmap ()</h3>
740
<pre class="programlisting"><span class="returnvalue">void</span>
741
gst_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>
742
<p>Unmap <em class="parameter"><code>rtp</code></em>
743
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>
744
<div class="refsect3">
745
<a name="id-1.2.9.6.8.8.5"></a><h4>Parameters</h4>
746
<div class="informaltable"><table width="100%" border="0">
748
<col width="150px" class="parameters_name">
749
<col class="parameters_description">
750
<col width="200px" class="parameters_annotations">
753
<td class="parameter_name"><p>rtp</p></td>
754
<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>
755
<td class="parameter_annotations"> </td>
761
<div class="refsect2">
762
<a name="gst-rtp-buffer-calc-header-len"></a><h3>gst_rtp_buffer_calc_header_len ()</h3>
763
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
764
gst_rtp_buffer_calc_header_len (<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
765
<p>Calculate the header length of an RTP packet with <em class="parameter"><code>csrc_count</code></em>
767
An RTP packet can have at most 15 CSRC entries.</p>
768
<div class="refsect3">
769
<a name="id-1.2.9.6.8.9.5"></a><h4>Parameters</h4>
770
<div class="informaltable"><table width="100%" border="0">
772
<col width="150px" class="parameters_name">
773
<col class="parameters_description">
774
<col width="200px" class="parameters_annotations">
777
<td class="parameter_name"><p>csrc_count</p></td>
778
<td class="parameter_description"><p>the number of CSRC entries</p></td>
779
<td class="parameter_annotations"> </td>
783
<div class="refsect3">
784
<a name="id-1.2.9.6.8.9.6"></a><h4>Returns</h4>
785
<p> The length of an RTP header with <em class="parameter"><code>csrc_count</code></em>
791
<div class="refsect2">
792
<a name="gst-rtp-buffer-calc-packet-len"></a><h3>gst_rtp_buffer_calc_packet_len ()</h3>
793
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
794
gst_rtp_buffer_calc_packet_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
795
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
796
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
797
<p>Calculate the total length of an RTP packet with a payload size of <em class="parameter"><code>payload_len</code></em>
799
a padding of <em class="parameter"><code>pad_len</code></em>
800
and a <em class="parameter"><code>csrc_count</code></em>
802
<div class="refsect3">
803
<a name="id-1.2.9.6.8.10.5"></a><h4>Parameters</h4>
804
<div class="informaltable"><table width="100%" border="0">
806
<col width="150px" class="parameters_name">
807
<col class="parameters_description">
808
<col width="200px" class="parameters_annotations">
812
<td class="parameter_name"><p>payload_len</p></td>
813
<td class="parameter_description"><p>the length of the payload</p></td>
814
<td class="parameter_annotations"> </td>
817
<td class="parameter_name"><p>pad_len</p></td>
818
<td class="parameter_description"><p>the amount of padding</p></td>
819
<td class="parameter_annotations"> </td>
822
<td class="parameter_name"><p>csrc_count</p></td>
823
<td class="parameter_description"><p>the number of CSRC entries</p></td>
824
<td class="parameter_annotations"> </td>
829
<div class="refsect3">
830
<a name="id-1.2.9.6.8.10.6"></a><h4>Returns</h4>
831
<p> The total length of an RTP header with given parameters.</p>
836
<div class="refsect2">
837
<a name="gst-rtp-buffer-calc-payload-len"></a><h3>gst_rtp_buffer_calc_payload_len ()</h3>
838
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
839
gst_rtp_buffer_calc_payload_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
840
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
841
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
842
<p>Calculate the length of the payload of an RTP packet with size <em class="parameter"><code>packet_len</code></em>
844
a padding of <em class="parameter"><code>pad_len</code></em>
845
and a <em class="parameter"><code>csrc_count</code></em>
847
<div class="refsect3">
848
<a name="id-1.2.9.6.8.11.5"></a><h4>Parameters</h4>
849
<div class="informaltable"><table width="100%" border="0">
851
<col width="150px" class="parameters_name">
852
<col class="parameters_description">
853
<col width="200px" class="parameters_annotations">
857
<td class="parameter_name"><p>packet_len</p></td>
858
<td class="parameter_description"><p>the length of the total RTP packet</p></td>
859
<td class="parameter_annotations"> </td>
862
<td class="parameter_name"><p>pad_len</p></td>
863
<td class="parameter_description"><p>the amount of padding</p></td>
864
<td class="parameter_annotations"> </td>
867
<td class="parameter_name"><p>csrc_count</p></td>
868
<td class="parameter_description"><p>the number of CSRC entries</p></td>
869
<td class="parameter_annotations"> </td>
874
<div class="refsect3">
875
<a name="id-1.2.9.6.8.11.6"></a><h4>Returns</h4>
876
<p> The length of the payload of an RTP packet with given parameters.</p>
881
<div class="refsect2">
882
<a name="gst-rtp-buffer-set-packet-len"></a><h3>gst_rtp_buffer_set_packet_len ()</h3>
883
<pre class="programlisting"><span class="returnvalue">void</span>
884
gst_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>,
885
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
886
<p>Set the total <em class="parameter"><code>rtp</code></em>
887
size to <em class="parameter"><code>len</code></em>
888
. The data in the buffer will be made
889
larger if needed. Any padding will be removed from the packet.</p>
890
<div class="refsect3">
891
<a name="id-1.2.9.6.8.12.5"></a><h4>Parameters</h4>
892
<div class="informaltable"><table width="100%" border="0">
894
<col width="150px" class="parameters_name">
895
<col class="parameters_description">
896
<col width="200px" class="parameters_annotations">
900
<td class="parameter_name"><p>rtp</p></td>
901
<td class="parameter_description"><p>the RTP packet</p></td>
902
<td class="parameter_annotations"> </td>
905
<td class="parameter_name"><p>len</p></td>
906
<td class="parameter_description"><p>the new packet length</p></td>
907
<td class="parameter_annotations"> </td>
914
<div class="refsect2">
915
<a name="gst-rtp-buffer-get-packet-len"></a><h3>gst_rtp_buffer_get_packet_len ()</h3>
916
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
917
gst_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>
918
<p>Return the total length of the packet in <em class="parameter"><code>buffer</code></em>
920
<div class="refsect3">
921
<a name="id-1.2.9.6.8.13.5"></a><h4>Parameters</h4>
922
<div class="informaltable"><table width="100%" border="0">
924
<col width="150px" class="parameters_name">
925
<col class="parameters_description">
926
<col width="200px" class="parameters_annotations">
929
<td class="parameter_name"><p>rtp</p></td>
930
<td class="parameter_description"><p>the RTP packet</p></td>
931
<td class="parameter_annotations"> </td>
935
<div class="refsect3">
936
<a name="id-1.2.9.6.8.13.6"></a><h4>Returns</h4>
937
<p> The total length of the packet in <em class="parameter"><code>buffer</code></em>
943
<div class="refsect2">
944
<a name="gst-rtp-buffer-get-header-len"></a><h3>gst_rtp_buffer_get_header_len ()</h3>
945
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
946
gst_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>
947
<p>Return the total length of the header in <em class="parameter"><code>buffer</code></em>
948
. This include the length of
949
the fixed header, the CSRC list and the extension header.</p>
950
<div class="refsect3">
951
<a name="id-1.2.9.6.8.14.5"></a><h4>Parameters</h4>
952
<div class="informaltable"><table width="100%" border="0">
954
<col width="150px" class="parameters_name">
955
<col class="parameters_description">
956
<col width="200px" class="parameters_annotations">
959
<td class="parameter_name"><p>rtp</p></td>
960
<td class="parameter_description"><p>the RTP packet</p></td>
961
<td class="parameter_annotations"> </td>
965
<div class="refsect3">
966
<a name="id-1.2.9.6.8.14.6"></a><h4>Returns</h4>
967
<p> The total length of the header in <em class="parameter"><code>buffer</code></em>
973
<div class="refsect2">
974
<a name="gst-rtp-buffer-get-version"></a><h3>gst_rtp_buffer_get_version ()</h3>
975
<pre class="programlisting"><span class="returnvalue">guint8</span>
976
gst_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>
977
<p>Get the version number of the RTP packet in <em class="parameter"><code>buffer</code></em>
979
<div class="refsect3">
980
<a name="id-1.2.9.6.8.15.5"></a><h4>Parameters</h4>
981
<div class="informaltable"><table width="100%" border="0">
983
<col width="150px" class="parameters_name">
984
<col class="parameters_description">
985
<col width="200px" class="parameters_annotations">
988
<td class="parameter_name"><p>rtp</p></td>
989
<td class="parameter_description"><p>the RTP packet</p></td>
990
<td class="parameter_annotations"> </td>
994
<div class="refsect3">
995
<a name="id-1.2.9.6.8.15.6"></a><h4>Returns</h4>
996
<p> The version of <em class="parameter"><code>buffer</code></em>
1002
<div class="refsect2">
1003
<a name="gst-rtp-buffer-set-version"></a><h3>gst_rtp_buffer_set_version ()</h3>
1004
<pre class="programlisting"><span class="returnvalue">void</span>
1005
gst_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>,
1006
<em class="parameter"><code><span class="type">guint8</span> version</code></em>);</pre>
1007
<p>Set the version of the RTP packet in <em class="parameter"><code>buffer</code></em>
1008
to <em class="parameter"><code>version</code></em>
1010
<div class="refsect3">
1011
<a name="id-1.2.9.6.8.16.5"></a><h4>Parameters</h4>
1012
<div class="informaltable"><table width="100%" border="0">
1014
<col width="150px" class="parameters_name">
1015
<col class="parameters_description">
1016
<col width="200px" class="parameters_annotations">
1020
<td class="parameter_name"><p>rtp</p></td>
1021
<td class="parameter_description"><p>the RTP packet</p></td>
1022
<td class="parameter_annotations"> </td>
1025
<td class="parameter_name"><p>version</p></td>
1026
<td class="parameter_description"><p>the new version</p></td>
1027
<td class="parameter_annotations"> </td>
1034
<div class="refsect2">
1035
<a name="gst-rtp-buffer-get-padding"></a><h3>gst_rtp_buffer_get_padding ()</h3>
1036
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1037
gst_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>
1038
<p>Check if the padding bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>
1040
<div class="refsect3">
1041
<a name="id-1.2.9.6.8.17.5"></a><h4>Parameters</h4>
1042
<div class="informaltable"><table width="100%" border="0">
1044
<col width="150px" class="parameters_name">
1045
<col class="parameters_description">
1046
<col width="200px" class="parameters_annotations">
1049
<td class="parameter_name"><p>rtp</p></td>
1050
<td class="parameter_description"><p>the RTP packet</p></td>
1051
<td class="parameter_annotations"> </td>
1055
<div class="refsect3">
1056
<a name="id-1.2.9.6.8.17.6"></a><h4>Returns</h4>
1057
<p> TRUE if <em class="parameter"><code>buffer</code></em>
1058
has the padding bit set.</p>
1063
<div class="refsect2">
1064
<a name="gst-rtp-buffer-set-padding"></a><h3>gst_rtp_buffer_set_padding ()</h3>
1065
<pre class="programlisting"><span class="returnvalue">void</span>
1066
gst_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>,
1067
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> padding</code></em>);</pre>
1068
<p>Set the padding bit on the RTP packet in <em class="parameter"><code>buffer</code></em>
1069
to <em class="parameter"><code>padding</code></em>
1071
<div class="refsect3">
1072
<a name="id-1.2.9.6.8.18.5"></a><h4>Parameters</h4>
1073
<div class="informaltable"><table width="100%" border="0">
1075
<col width="150px" class="parameters_name">
1076
<col class="parameters_description">
1077
<col width="200px" class="parameters_annotations">
1081
<td class="parameter_name"><p>rtp</p></td>
1082
<td class="parameter_description"><p>the buffer</p></td>
1083
<td class="parameter_annotations"> </td>
1086
<td class="parameter_name"><p>padding</p></td>
1087
<td class="parameter_description"><p>the new padding</p></td>
1088
<td class="parameter_annotations"> </td>
1095
<div class="refsect2">
1096
<a name="gst-rtp-buffer-pad-to"></a><h3>gst_rtp_buffer_pad_to ()</h3>
1097
<pre class="programlisting"><span class="returnvalue">void</span>
1098
gst_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>,
1099
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
1100
<p>Set the amount of padding in the RTP packet in <em class="parameter"><code>buffer</code></em>
1102
<em class="parameter"><code>len</code></em>
1103
. If <em class="parameter"><code>len</code></em>
1104
is 0, the padding is removed.</p>
1105
<p>NOTE: This function does not work correctly.</p>
1106
<div class="refsect3">
1107
<a name="id-1.2.9.6.8.19.6"></a><h4>Parameters</h4>
1108
<div class="informaltable"><table width="100%" border="0">
1110
<col width="150px" class="parameters_name">
1111
<col class="parameters_description">
1112
<col width="200px" class="parameters_annotations">
1116
<td class="parameter_name"><p>rtp</p></td>
1117
<td class="parameter_description"><p>the RTP packet</p></td>
1118
<td class="parameter_annotations"> </td>
1121
<td class="parameter_name"><p>len</p></td>
1122
<td class="parameter_description"><p>the new amount of padding</p></td>
1123
<td class="parameter_annotations"> </td>
1130
<div class="refsect2">
1131
<a name="gst-rtp-buffer-get-extension"></a><h3>gst_rtp_buffer_get_extension ()</h3>
1132
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1133
gst_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>
1134
<p>Check if the extension bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>
1136
<div class="refsect3">
1137
<a name="id-1.2.9.6.8.20.5"></a><h4>Parameters</h4>
1138
<div class="informaltable"><table width="100%" border="0">
1140
<col width="150px" class="parameters_name">
1141
<col class="parameters_description">
1142
<col width="200px" class="parameters_annotations">
1145
<td class="parameter_name"><p>rtp</p></td>
1146
<td class="parameter_description"><p>the RTP packet</p></td>
1147
<td class="parameter_annotations"> </td>
1151
<div class="refsect3">
1152
<a name="id-1.2.9.6.8.20.6"></a><h4>Returns</h4>
1153
<p> TRUE if <em class="parameter"><code>buffer</code></em>
1154
has the extension bit set.</p>
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>
1162
gst_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="http://library.gnome.org/devel/glib/unstable/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>
1167
<div class="refsect3">
1168
<a name="id-1.2.9.6.8.21.5"></a><h4>Parameters</h4>
1169
<div class="informaltable"><table width="100%" border="0">
1171
<col width="150px" class="parameters_name">
1172
<col class="parameters_description">
1173
<col width="200px" class="parameters_annotations">
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>
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>
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="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1194
gst_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><span class="type">guint16</span> *bits</code></em>,
1196
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
1197
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/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
1200
data. <em class="parameter"><code>data</code></em>
1201
will point to the data in the extension and <em class="parameter"><code>wordlen</code></em>
1203
the 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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
1207
with <em class="parameter"><code>bits</code></em>
1208
, <em class="parameter"><code>data</code></em>
1209
and <em class="parameter"><code>wordlen</code></em>
1211
<div class="refsect3">
1212
<a name="id-1.2.9.6.8.22.6"></a><h4>Parameters</h4>
1213
<div class="informaltable"><table width="100%" border="0">
1215
<col width="150px" class="parameters_name">
1216
<col class="parameters_description">
1217
<col width="200px" class="parameters_annotations">
1221
<td class="parameter_name"><p>rtp</p></td>
1222
<td class="parameter_description"><p>the RTP packet</p></td>
1223
<td class="parameter_annotations"> </td>
1226
<td class="parameter_name"><p>bits</p></td>
1227
<td class="parameter_description"><p> location for result bits. </p></td>
1228
<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>
1231
<td class="parameter_name"><p>data</p></td>
1232
<td class="parameter_description"><p> location for data. </p></td>
1233
<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>
1236
<td class="parameter_name"><p>wordlen</p></td>
1237
<td class="parameter_description"><p> location for length of <em class="parameter"><code>data</code></em>
1238
in 32 bits words. </p></td>
1239
<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>
1244
<div class="refsect3">
1245
<a name="id-1.2.9.6.8.22.7"></a><h4>Returns</h4>
1246
<p> TRUE if <em class="parameter"><code>buffer</code></em>
1247
had the extension bit set.</p>
1252
<div class="refsect2">
1253
<a name="gst-rtp-buffer-get-ssrc"></a><h3>gst_rtp_buffer_get_ssrc ()</h3>
1254
<pre class="programlisting"><span class="returnvalue">guint32</span>
1255
gst_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>
1256
<p>Get the SSRC of the RTP packet in <em class="parameter"><code>buffer</code></em>
1258
<div class="refsect3">
1259
<a name="id-1.2.9.6.8.23.5"></a><h4>Parameters</h4>
1260
<div class="informaltable"><table width="100%" border="0">
1262
<col width="150px" class="parameters_name">
1263
<col class="parameters_description">
1264
<col width="200px" class="parameters_annotations">
1267
<td class="parameter_name"><p>rtp</p></td>
1268
<td class="parameter_description"><p>the RTP packet</p></td>
1269
<td class="parameter_annotations"> </td>
1273
<div class="refsect3">
1274
<a name="id-1.2.9.6.8.23.6"></a><h4>Returns</h4>
1275
<p> the SSRC of <em class="parameter"><code>buffer</code></em>
1281
<div class="refsect2">
1282
<a name="gst-rtp-buffer-set-ssrc"></a><h3>gst_rtp_buffer_set_ssrc ()</h3>
1283
<pre class="programlisting"><span class="returnvalue">void</span>
1284
gst_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>,
1285
<em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1286
<p>Set the SSRC on the RTP packet in <em class="parameter"><code>buffer</code></em>
1287
to <em class="parameter"><code>ssrc</code></em>
1289
<div class="refsect3">
1290
<a name="id-1.2.9.6.8.24.5"></a><h4>Parameters</h4>
1291
<div class="informaltable"><table width="100%" border="0">
1293
<col width="150px" class="parameters_name">
1294
<col class="parameters_description">
1295
<col width="200px" class="parameters_annotations">
1299
<td class="parameter_name"><p>rtp</p></td>
1300
<td class="parameter_description"><p>the RTP packet</p></td>
1301
<td class="parameter_annotations"> </td>
1304
<td class="parameter_name"><p>ssrc</p></td>
1305
<td class="parameter_description"><p>the new SSRC</p></td>
1306
<td class="parameter_annotations"> </td>
1313
<div class="refsect2">
1314
<a name="gst-rtp-buffer-get-csrc-count"></a><h3>gst_rtp_buffer_get_csrc_count ()</h3>
1315
<pre class="programlisting"><span class="returnvalue">guint8</span>
1316
gst_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>
1317
<p>Get the CSRC count of the RTP packet in <em class="parameter"><code>buffer</code></em>
1319
<div class="refsect3">
1320
<a name="id-1.2.9.6.8.25.5"></a><h4>Parameters</h4>
1321
<div class="informaltable"><table width="100%" border="0">
1323
<col width="150px" class="parameters_name">
1324
<col class="parameters_description">
1325
<col width="200px" class="parameters_annotations">
1328
<td class="parameter_name"><p>rtp</p></td>
1329
<td class="parameter_description"><p>the RTP packet</p></td>
1330
<td class="parameter_annotations"> </td>
1334
<div class="refsect3">
1335
<a name="id-1.2.9.6.8.25.6"></a><h4>Returns</h4>
1336
<p> the CSRC count of <em class="parameter"><code>buffer</code></em>
1342
<div class="refsect2">
1343
<a name="gst-rtp-buffer-get-csrc"></a><h3>gst_rtp_buffer_get_csrc ()</h3>
1344
<pre class="programlisting"><span class="returnvalue">guint32</span>
1345
gst_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>,
1346
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>);</pre>
1347
<p>Get the CSRC at index <em class="parameter"><code>idx</code></em>
1348
in <em class="parameter"><code>buffer</code></em>
1350
<div class="refsect3">
1351
<a name="id-1.2.9.6.8.26.5"></a><h4>Parameters</h4>
1352
<div class="informaltable"><table width="100%" border="0">
1354
<col width="150px" class="parameters_name">
1355
<col class="parameters_description">
1356
<col width="200px" class="parameters_annotations">
1360
<td class="parameter_name"><p>rtp</p></td>
1361
<td class="parameter_description"><p>the RTP packet</p></td>
1362
<td class="parameter_annotations"> </td>
1365
<td class="parameter_name"><p>idx</p></td>
1366
<td class="parameter_description"><p>the index of the CSRC to get</p></td>
1367
<td class="parameter_annotations"> </td>
1372
<div class="refsect3">
1373
<a name="id-1.2.9.6.8.26.6"></a><h4>Returns</h4>
1374
<p> the CSRC at index <em class="parameter"><code>idx</code></em>
1380
<div class="refsect2">
1381
<a name="gst-rtp-buffer-set-csrc"></a><h3>gst_rtp_buffer_set_csrc ()</h3>
1382
<pre class="programlisting"><span class="returnvalue">void</span>
1383
gst_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>,
1384
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>,
1385
<em class="parameter"><code><span class="type">guint32</span> csrc</code></em>);</pre>
1386
<p>Modify the CSRC at index <em class="parameter"><code>idx</code></em>
1387
in <em class="parameter"><code>buffer</code></em>
1388
to <em class="parameter"><code>csrc</code></em>
1390
<div class="refsect3">
1391
<a name="id-1.2.9.6.8.27.5"></a><h4>Parameters</h4>
1392
<div class="informaltable"><table width="100%" border="0">
1394
<col width="150px" class="parameters_name">
1395
<col class="parameters_description">
1396
<col width="200px" class="parameters_annotations">
1400
<td class="parameter_name"><p>rtp</p></td>
1401
<td class="parameter_description"><p>the RTP packet</p></td>
1402
<td class="parameter_annotations"> </td>
1405
<td class="parameter_name"><p>idx</p></td>
1406
<td class="parameter_description"><p>the CSRC index to set</p></td>
1407
<td class="parameter_annotations"> </td>
1410
<td class="parameter_name"><p>csrc</p></td>
1411
<td class="parameter_description"><p>the CSRC in host order to set at <em class="parameter"><code>idx</code></em>
1413
<td class="parameter_annotations"> </td>
1420
<div class="refsect2">
1421
<a name="gst-rtp-buffer-get-marker"></a><h3>gst_rtp_buffer_get_marker ()</h3>
1422
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1423
gst_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>
1424
<p>Check if the marker bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>
1426
<div class="refsect3">
1427
<a name="id-1.2.9.6.8.28.5"></a><h4>Parameters</h4>
1428
<div class="informaltable"><table width="100%" border="0">
1430
<col width="150px" class="parameters_name">
1431
<col class="parameters_description">
1432
<col width="200px" class="parameters_annotations">
1435
<td class="parameter_name"><p>rtp</p></td>
1436
<td class="parameter_description"><p>the RTP packet</p></td>
1437
<td class="parameter_annotations"> </td>
1441
<div class="refsect3">
1442
<a name="id-1.2.9.6.8.28.6"></a><h4>Returns</h4>
1443
<p> TRUE if <em class="parameter"><code>buffer</code></em>
1444
has the marker bit set.</p>
1449
<div class="refsect2">
1450
<a name="gst-rtp-buffer-set-marker"></a><h3>gst_rtp_buffer_set_marker ()</h3>
1451
<pre class="programlisting"><span class="returnvalue">void</span>
1452
gst_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>,
1453
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> marker</code></em>);</pre>
1454
<p>Set the marker bit on the RTP packet in <em class="parameter"><code>buffer</code></em>
1455
to <em class="parameter"><code>marker</code></em>
1457
<div class="refsect3">
1458
<a name="id-1.2.9.6.8.29.5"></a><h4>Parameters</h4>
1459
<div class="informaltable"><table width="100%" border="0">
1461
<col width="150px" class="parameters_name">
1462
<col class="parameters_description">
1463
<col width="200px" class="parameters_annotations">
1467
<td class="parameter_name"><p>rtp</p></td>
1468
<td class="parameter_description"><p>the RTP packet</p></td>
1469
<td class="parameter_annotations"> </td>
1472
<td class="parameter_name"><p>marker</p></td>
1473
<td class="parameter_description"><p>the new marker</p></td>
1474
<td class="parameter_annotations"> </td>
1481
<div class="refsect2">
1482
<a name="gst-rtp-buffer-get-payload-type"></a><h3>gst_rtp_buffer_get_payload_type ()</h3>
1483
<pre class="programlisting"><span class="returnvalue">guint8</span>
1484
gst_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>
1485
<p>Get the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em>
1487
<div class="refsect3">
1488
<a name="id-1.2.9.6.8.30.5"></a><h4>Parameters</h4>
1489
<div class="informaltable"><table width="100%" border="0">
1491
<col width="150px" class="parameters_name">
1492
<col class="parameters_description">
1493
<col width="200px" class="parameters_annotations">
1496
<td class="parameter_name"><p>rtp</p></td>
1497
<td class="parameter_description"><p>the RTP packet</p></td>
1498
<td class="parameter_annotations"> </td>
1502
<div class="refsect3">
1503
<a name="id-1.2.9.6.8.30.6"></a><h4>Returns</h4>
1504
<p> The payload type.</p>
1509
<div class="refsect2">
1510
<a name="gst-rtp-buffer-set-payload-type"></a><h3>gst_rtp_buffer_set_payload_type ()</h3>
1511
<pre class="programlisting"><span class="returnvalue">void</span>
1512
gst_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>,
1513
<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);</pre>
1514
<p>Set the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em>
1515
to <em class="parameter"><code>payload_type</code></em>
1517
<div class="refsect3">
1518
<a name="id-1.2.9.6.8.31.5"></a><h4>Parameters</h4>
1519
<div class="informaltable"><table width="100%" border="0">
1521
<col width="150px" class="parameters_name">
1522
<col class="parameters_description">
1523
<col width="200px" class="parameters_annotations">
1527
<td class="parameter_name"><p>rtp</p></td>
1528
<td class="parameter_description"><p>the RTP packet</p></td>
1529
<td class="parameter_annotations"> </td>
1532
<td class="parameter_name"><p>payload_type</p></td>
1533
<td class="parameter_description"><p>the new type</p></td>
1534
<td class="parameter_annotations"> </td>
1541
<div class="refsect2">
1542
<a name="gst-rtp-buffer-get-seq"></a><h3>gst_rtp_buffer_get_seq ()</h3>
1543
<pre class="programlisting"><span class="returnvalue">guint16</span>
1544
gst_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>
1545
<p>Get the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em>
1547
<div class="refsect3">
1548
<a name="id-1.2.9.6.8.32.5"></a><h4>Parameters</h4>
1549
<div class="informaltable"><table width="100%" border="0">
1551
<col width="150px" class="parameters_name">
1552
<col class="parameters_description">
1553
<col width="200px" class="parameters_annotations">
1556
<td class="parameter_name"><p>rtp</p></td>
1557
<td class="parameter_description"><p>the RTP packet</p></td>
1558
<td class="parameter_annotations"> </td>
1562
<div class="refsect3">
1563
<a name="id-1.2.9.6.8.32.6"></a><h4>Returns</h4>
1564
<p> The sequence number in host order.</p>
1569
<div class="refsect2">
1570
<a name="gst-rtp-buffer-set-seq"></a><h3>gst_rtp_buffer_set_seq ()</h3>
1571
<pre class="programlisting"><span class="returnvalue">void</span>
1572
gst_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>,
1573
<em class="parameter"><code><span class="type">guint16</span> seq</code></em>);</pre>
1574
<p>Set the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em>
1575
to <em class="parameter"><code>seq</code></em>
1577
<div class="refsect3">
1578
<a name="id-1.2.9.6.8.33.5"></a><h4>Parameters</h4>
1579
<div class="informaltable"><table width="100%" border="0">
1581
<col width="150px" class="parameters_name">
1582
<col class="parameters_description">
1583
<col width="200px" class="parameters_annotations">
1587
<td class="parameter_name"><p>rtp</p></td>
1588
<td class="parameter_description"><p>the RTP packet</p></td>
1589
<td class="parameter_annotations"> </td>
1592
<td class="parameter_name"><p>seq</p></td>
1593
<td class="parameter_description"><p>the new sequence number</p></td>
1594
<td class="parameter_annotations"> </td>
1601
<div class="refsect2">
1602
<a name="gst-rtp-buffer-get-timestamp"></a><h3>gst_rtp_buffer_get_timestamp ()</h3>
1603
<pre class="programlisting"><span class="returnvalue">guint32</span>
1604
gst_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>
1605
<p>Get the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em>
1607
<div class="refsect3">
1608
<a name="id-1.2.9.6.8.34.5"></a><h4>Parameters</h4>
1609
<div class="informaltable"><table width="100%" border="0">
1611
<col width="150px" class="parameters_name">
1612
<col class="parameters_description">
1613
<col width="200px" class="parameters_annotations">
1616
<td class="parameter_name"><p>rtp</p></td>
1617
<td class="parameter_description"><p>the RTP packet</p></td>
1618
<td class="parameter_annotations"> </td>
1622
<div class="refsect3">
1623
<a name="id-1.2.9.6.8.34.6"></a><h4>Returns</h4>
1624
<p> The timestamp in host order.</p>
1629
<div class="refsect2">
1630
<a name="gst-rtp-buffer-set-timestamp"></a><h3>gst_rtp_buffer_set_timestamp ()</h3>
1631
<pre class="programlisting"><span class="returnvalue">void</span>
1632
gst_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>,
1633
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
1634
<p>Set the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em>
1635
to <em class="parameter"><code>timestamp</code></em>
1637
<div class="refsect3">
1638
<a name="id-1.2.9.6.8.35.5"></a><h4>Parameters</h4>
1639
<div class="informaltable"><table width="100%" border="0">
1641
<col width="150px" class="parameters_name">
1642
<col class="parameters_description">
1643
<col width="200px" class="parameters_annotations">
1647
<td class="parameter_name"><p>rtp</p></td>
1648
<td class="parameter_description"><p>the RTP packet</p></td>
1649
<td class="parameter_annotations"> </td>
1652
<td class="parameter_name"><p>timestamp</p></td>
1653
<td class="parameter_description"><p>the new timestamp</p></td>
1654
<td class="parameter_annotations"> </td>
1661
<div class="refsect2">
1662
<a name="gst-rtp-buffer-get-payload-buffer"></a><h3>gst_rtp_buffer_get_payload_buffer ()</h3>
1663
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
1664
gst_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>
1665
<p>Create a buffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>
1667
will internally create a subbuffer of <em class="parameter"><code>buffer</code></em>
1668
so that a memcpy can be
1670
<div class="refsect3">
1671
<a name="id-1.2.9.6.8.36.5"></a><h4>Parameters</h4>
1672
<div class="informaltable"><table width="100%" border="0">
1674
<col width="150px" class="parameters_name">
1675
<col class="parameters_description">
1676
<col width="200px" class="parameters_annotations">
1679
<td class="parameter_name"><p>rtp</p></td>
1680
<td class="parameter_description"><p>the RTP packet</p></td>
1681
<td class="parameter_annotations"> </td>
1685
<div class="refsect3">
1686
<a name="id-1.2.9.6.8.36.6"></a><h4>Returns</h4>
1687
<p> A new buffer with the data of the payload.</p>
1692
<div class="refsect2">
1693
<a name="gst-rtp-buffer-get-payload-subbuffer"></a><h3>gst_rtp_buffer_get_payload_subbuffer ()</h3>
1694
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
1695
gst_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>,
1696
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>,
1697
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
1698
<p>Create a subbuffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>
1699
. <em class="parameter"><code>offset</code></em>
1701
are skipped in the payload and the subbuffer will be of size <em class="parameter"><code>len</code></em>
1703
If <em class="parameter"><code>len</code></em>
1704
is -1 the total payload starting from <em class="parameter"><code>offset</code></em>
1706
<div class="refsect3">
1707
<a name="id-1.2.9.6.8.37.5"></a><h4>Parameters</h4>
1708
<div class="informaltable"><table width="100%" border="0">
1710
<col width="150px" class="parameters_name">
1711
<col class="parameters_description">
1712
<col width="200px" class="parameters_annotations">
1716
<td class="parameter_name"><p>rtp</p></td>
1717
<td class="parameter_description"><p>the RTP packet</p></td>
1718
<td class="parameter_annotations"> </td>
1721
<td class="parameter_name"><p>offset</p></td>
1722
<td class="parameter_description"><p>the offset in the payload</p></td>
1723
<td class="parameter_annotations"> </td>
1726
<td class="parameter_name"><p>len</p></td>
1727
<td class="parameter_description"><p>the length in the payload</p></td>
1728
<td class="parameter_annotations"> </td>
1733
<div class="refsect3">
1734
<a name="id-1.2.9.6.8.37.6"></a><h4>Returns</h4>
1735
<p> A new buffer with the specified data of the payload.</p>
1740
<div class="refsect2">
1741
<a name="gst-rtp-buffer-get-payload-len"></a><h3>gst_rtp_buffer_get_payload_len ()</h3>
1742
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
1743
gst_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>
1744
<p>Get the length of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>
1746
<div class="refsect3">
1747
<a name="id-1.2.9.6.8.38.5"></a><h4>Parameters</h4>
1748
<div class="informaltable"><table width="100%" border="0">
1750
<col width="150px" class="parameters_name">
1751
<col class="parameters_description">
1752
<col width="200px" class="parameters_annotations">
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>
1761
<div class="refsect3">
1762
<a name="id-1.2.9.6.8.38.6"></a><h4>Returns</h4>
1763
<p> The length of the payload in <em class="parameter"><code>buffer</code></em>
1769
<div class="refsect2">
1770
<a name="gst-rtp-buffer-get-payload"></a><h3>gst_rtp_buffer_get_payload ()</h3>
1771
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
1772
gst_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>
1773
<p>Get a pointer to the payload data in <em class="parameter"><code>buffer</code></em>
1774
. This pointer is valid as long
1775
as a reference to <em class="parameter"><code>buffer</code></em>
1777
<div class="refsect3">
1778
<a name="id-1.2.9.6.8.39.5"></a><h4>Parameters</h4>
1779
<div class="informaltable"><table width="100%" border="0">
1781
<col width="150px" class="parameters_name">
1782
<col class="parameters_description">
1783
<col width="200px" class="parameters_annotations">
1786
<td class="parameter_name"><p>rtp</p></td>
1787
<td class="parameter_description"><p>the RTP packet</p></td>
1788
<td class="parameter_annotations"> </td>
1792
<div class="refsect3">
1793
<a name="id-1.2.9.6.8.39.6"></a><h4>Returns</h4>
1795
to the payload data in <em class="parameter"><code>buffer</code></em>
1797
<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>
1801
<div class="refsect2">
1802
<a name="gst-rtp-buffer-default-clock-rate"></a><h3>gst_rtp_buffer_default_clock_rate ()</h3>
1803
<pre class="programlisting"><span class="returnvalue">guint32</span>
1804
gst_rtp_buffer_default_clock_rate (<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);</pre>
1805
<p>Get the default clock-rate for the static payload type <em class="parameter"><code>payload_type</code></em>
1807
<div class="refsect3">
1808
<a name="id-1.2.9.6.8.40.5"></a><h4>Parameters</h4>
1809
<div class="informaltable"><table width="100%" border="0">
1811
<col width="150px" class="parameters_name">
1812
<col class="parameters_description">
1813
<col width="200px" class="parameters_annotations">
1816
<td class="parameter_name"><p>payload_type</p></td>
1817
<td class="parameter_description"><p>the static payload type</p></td>
1818
<td class="parameter_annotations"> </td>
1822
<div class="refsect3">
1823
<a name="id-1.2.9.6.8.40.6"></a><h4>Returns</h4>
1824
<p> the default clock rate or -1 if the payload type is not static or
1825
the clock-rate is undefined.</p>
1830
<div class="refsect2">
1831
<a name="gst-rtp-buffer-compare-seqnum"></a><h3>gst_rtp_buffer_compare_seqnum ()</h3>
1832
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
1833
gst_rtp_buffer_compare_seqnum (<em class="parameter"><code><span class="type">guint16</span> seqnum1</code></em>,
1834
<em class="parameter"><code><span class="type">guint16</span> seqnum2</code></em>);</pre>
1835
<p>Compare two sequence numbers, taking care of wraparounds. This function
1836
returns the difference between <em class="parameter"><code>seqnum1</code></em>
1837
and <em class="parameter"><code>seqnum2</code></em>
1839
<div class="refsect3">
1840
<a name="id-1.2.9.6.8.41.5"></a><h4>Parameters</h4>
1841
<div class="informaltable"><table width="100%" border="0">
1843
<col width="150px" class="parameters_name">
1844
<col class="parameters_description">
1845
<col width="200px" class="parameters_annotations">
1849
<td class="parameter_name"><p>seqnum1</p></td>
1850
<td class="parameter_description"><p>a sequence number</p></td>
1851
<td class="parameter_annotations"> </td>
1854
<td class="parameter_name"><p>seqnum2</p></td>
1855
<td class="parameter_description"><p>a sequence number</p></td>
1856
<td class="parameter_annotations"> </td>
1861
<div class="refsect3">
1862
<a name="id-1.2.9.6.8.41.6"></a><h4>Returns</h4>
1863
<p> a negative value if <em class="parameter"><code>seqnum1</code></em>
1864
is bigger than <em class="parameter"><code>seqnum2</code></em>
1866
are equal or a positive value if <em class="parameter"><code>seqnum1</code></em>
1867
is smaller than <em class="parameter"><code>segnum2</code></em>
1873
<div class="refsect2">
1874
<a name="gst-rtp-buffer-ext-timestamp"></a><h3>gst_rtp_buffer_ext_timestamp ()</h3>
1875
<pre class="programlisting"><span class="returnvalue">guint64</span>
1876
gst_rtp_buffer_ext_timestamp (<em class="parameter"><code><span class="type">guint64</span> *exttimestamp</code></em>,
1877
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
1878
<p>Update the <em class="parameter"><code>exttimestamp</code></em>
1879
field with <em class="parameter"><code>timestamp</code></em>
1880
. For the first call of the
1881
method, <em class="parameter"><code>exttimestamp</code></em>
1882
should point to a location with a value of -1.</p>
1883
<p>This function makes sure that the returned value is a constantly increasing
1884
value even in the case where there is a timestamp wraparound.</p>
1885
<div class="refsect3">
1886
<a name="id-1.2.9.6.8.42.6"></a><h4>Parameters</h4>
1887
<div class="informaltable"><table width="100%" border="0">
1889
<col width="150px" class="parameters_name">
1890
<col class="parameters_description">
1891
<col width="200px" class="parameters_annotations">
1895
<td class="parameter_name"><p>exttimestamp</p></td>
1896
<td class="parameter_description"><p>a previous extended timestamp</p></td>
1897
<td class="parameter_annotations"> </td>
1900
<td class="parameter_name"><p>timestamp</p></td>
1901
<td class="parameter_description"><p>a new timestamp</p></td>
1902
<td class="parameter_annotations"> </td>
1907
<div class="refsect3">
1908
<a name="id-1.2.9.6.8.42.7"></a><h4>Returns</h4>
1909
<p> The extended timestamp of <em class="parameter"><code>timestamp</code></em>
1915
<div class="refsect2">
1916
<a name="gst-rtp-buffer-set-extension-data"></a><h3>gst_rtp_buffer_set_extension_data ()</h3>
1917
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1918
gst_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>,
1919
<em class="parameter"><code><span class="type">guint16</span> bits</code></em>,
1920
<em class="parameter"><code><span class="type">guint16</span> length</code></em>);</pre>
1921
<p>Set the extension bit of the rtp buffer and fill in the <em class="parameter"><code>bits</code></em>
1922
and <em class="parameter"><code>length</code></em>
1924
extension header. If the existing extension data is not large enough, it will
1926
<div class="refsect3">
1927
<a name="id-1.2.9.6.8.43.5"></a><h4>Parameters</h4>
1928
<div class="informaltable"><table width="100%" border="0">
1930
<col width="150px" class="parameters_name">
1931
<col class="parameters_description">
1932
<col width="200px" class="parameters_annotations">
1936
<td class="parameter_name"><p>rtp</p></td>
1937
<td class="parameter_description"><p>the RTP packet</p></td>
1938
<td class="parameter_annotations"> </td>
1941
<td class="parameter_name"><p>bits</p></td>
1942
<td class="parameter_description"><p>the bits specific for the extension</p></td>
1943
<td class="parameter_annotations"> </td>
1946
<td class="parameter_name"><p>length</p></td>
1947
<td class="parameter_description"><p>the length that counts the number of 32-bit words in
1948
the extension, excluding the extension header ( therefore zero is a valid length)</p></td>
1949
<td class="parameter_annotations"> </td>
1954
<div class="refsect3">
1955
<a name="id-1.2.9.6.8.43.6"></a><h4>Returns</h4>
1956
<p> True if done.</p>
1961
<div class="refsect2">
1962
<a name="gst-rtp-buffer-get-extension-onebyte-header"></a><h3>gst_rtp_buffer_get_extension_onebyte_header ()</h3>
1963
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1964
gst_rtp_buffer_get_extension_onebyte_header
1965
(<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>,
1966
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
1967
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
1968
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
1969
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre>
1970
<p>Parses RFC 5285 style header extensions with a one byte header. It will
1971
return the nth extension with the requested id.</p>
1972
<div class="refsect3">
1973
<a name="id-1.2.9.6.8.44.5"></a><h4>Parameters</h4>
1974
<div class="informaltable"><table width="100%" border="0">
1976
<col width="150px" class="parameters_name">
1977
<col class="parameters_description">
1978
<col width="200px" class="parameters_annotations">
1982
<td class="parameter_name"><p>rtp</p></td>
1983
<td class="parameter_description"><p>the RTP packet</p></td>
1984
<td class="parameter_annotations"> </td>
1987
<td class="parameter_name"><p>id</p></td>
1988
<td class="parameter_description"><p>The ID of the header extension to be read (between 1 and 14).</p></td>
1989
<td class="parameter_annotations"> </td>
1992
<td class="parameter_name"><p>nth</p></td>
1993
<td class="parameter_description"><p>Read the nth extension packet with the requested ID</p></td>
1994
<td class="parameter_annotations"> </td>
1997
<td class="parameter_name"><p>data</p></td>
1998
<td class="parameter_description"><p> location for data. </p></td>
1999
<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>
2002
<td class="parameter_name"><p>size</p></td>
2003
<td class="parameter_description"><p> the size of the data in bytes. </p></td>
2004
<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>
2009
<div class="refsect3">
2010
<a name="id-1.2.9.6.8.44.6"></a><h4>Returns</h4>
2011
<p> TRUE if <em class="parameter"><code>buffer</code></em>
2012
had the requested header extension</p>
2017
<div class="refsect2">
2018
<a name="gst-rtp-buffer-get-extension-twobytes-header"></a><h3>gst_rtp_buffer_get_extension_twobytes_header ()</h3>
2019
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
2020
gst_rtp_buffer_get_extension_twobytes_header
2021
(<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>,
2022
<em class="parameter"><code><span class="type">guint8</span> *appbits</code></em>,
2023
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
2024
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
2025
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
2026
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre>
2027
<p>Parses RFC 5285 style header extensions with a two bytes header. It will
2028
return the nth extension with the requested id.</p>
2029
<div class="refsect3">
2030
<a name="id-1.2.9.6.8.45.5"></a><h4>Parameters</h4>
2031
<div class="informaltable"><table width="100%" border="0">
2033
<col width="150px" class="parameters_name">
2034
<col class="parameters_description">
2035
<col width="200px" class="parameters_annotations">
2039
<td class="parameter_name"><p>rtp</p></td>
2040
<td class="parameter_description"><p>the RTP packet</p></td>
2041
<td class="parameter_annotations"> </td>
2044
<td class="parameter_name"><p>appbits</p></td>
2045
<td class="parameter_description"><p> Application specific bits. </p></td>
2046
<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>
2049
<td class="parameter_name"><p>id</p></td>
2050
<td class="parameter_description"><p>The ID of the header extension to be read (between 1 and 14).</p></td>
2051
<td class="parameter_annotations"> </td>
2054
<td class="parameter_name"><p>nth</p></td>
2055
<td class="parameter_description"><p>Read the nth extension packet with the requested ID</p></td>
2056
<td class="parameter_annotations"> </td>
2059
<td class="parameter_name"><p>data</p></td>
2060
<td class="parameter_description"><p> location for data. </p></td>
2061
<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>
2064
<td class="parameter_name"><p>size</p></td>
2065
<td class="parameter_description"><p> the size of the data in bytes. </p></td>
2066
<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>
2071
<div class="refsect3">
2072
<a name="id-1.2.9.6.8.45.6"></a><h4>Returns</h4>
2073
<p> TRUE if <em class="parameter"><code>buffer</code></em>
2074
had the requested header extension</p>
2079
<div class="refsect2">
2080
<a name="gst-rtp-buffer-add-extension-onebyte-header"></a><h3>gst_rtp_buffer_add_extension_onebyte_header ()</h3>
2081
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
2082
gst_rtp_buffer_add_extension_onebyte_header
2083
(<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>,
2084
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
2085
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
2086
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre>
2087
<p>Adds a RFC 5285 header extension with a one byte header to the end of the
2088
RTP header. If there is already a RFC 5285 header extension with a one byte
2089
header, the new extension will be appended.
2090
It will not work if there is already a header extension that does not follow
2091
the mecanism described in RFC 5285 or if there is a header extension with
2092
a two bytes header as described in RFC 5285. In that case, use
2093
<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>
2094
<div class="refsect3">
2095
<a name="id-1.2.9.6.8.46.5"></a><h4>Parameters</h4>
2096
<div class="informaltable"><table width="100%" border="0">
2098
<col width="150px" class="parameters_name">
2099
<col class="parameters_description">
2100
<col width="200px" class="parameters_annotations">
2104
<td class="parameter_name"><p>rtp</p></td>
2105
<td class="parameter_description"><p>the RTP packet</p></td>
2106
<td class="parameter_annotations"> </td>
2109
<td class="parameter_name"><p>id</p></td>
2110
<td class="parameter_description"><p>The ID of the header extension (between 1 and 14).</p></td>
2111
<td class="parameter_annotations"> </td>
2114
<td class="parameter_name"><p>data</p></td>
2115
<td class="parameter_description"><p> location for data. </p></td>
2116
<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>
2119
<td class="parameter_name"><p>size</p></td>
2120
<td class="parameter_description"><p>the size of the data in bytes</p></td>
2121
<td class="parameter_annotations"> </td>
2126
<div class="refsect3">
2127
<a name="id-1.2.9.6.8.46.6"></a><h4>Returns</h4>
2128
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</p>
2133
<div class="refsect2">
2134
<a name="gst-rtp-buffer-add-extension-twobytes-header"></a><h3>gst_rtp_buffer_add_extension_twobytes_header ()</h3>
2135
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
2136
gst_rtp_buffer_add_extension_twobytes_header
2137
(<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>,
2138
<em class="parameter"><code><span class="type">guint8</span> appbits</code></em>,
2139
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
2140
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
2141
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre>
2142
<p>Adds a RFC 5285 header extension with a two bytes header to the end of the
2143
RTP header. If there is already a RFC 5285 header extension with a two bytes
2144
header, the new extension will be appended.
2145
It will not work if there is already a header extension that does not follow
2146
the mecanism described in RFC 5285 or if there is a header extension with
2147
a one byte header as described in RFC 5285. In that case, use
2148
<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>
2149
<div class="refsect3">
2150
<a name="id-1.2.9.6.8.47.5"></a><h4>Parameters</h4>
2151
<div class="informaltable"><table width="100%" border="0">
2153
<col width="150px" class="parameters_name">
2154
<col class="parameters_description">
2155
<col width="200px" class="parameters_annotations">
2159
<td class="parameter_name"><p>rtp</p></td>
2160
<td class="parameter_description"><p>the RTP packet</p></td>
2161
<td class="parameter_annotations"> </td>
2164
<td class="parameter_name"><p>appbits</p></td>
2165
<td class="parameter_description"><p>Application specific bits</p></td>
2166
<td class="parameter_annotations"> </td>
2169
<td class="parameter_name"><p>id</p></td>
2170
<td class="parameter_description"><p>The ID of the header extension</p></td>
2171
<td class="parameter_annotations"> </td>
2174
<td class="parameter_name"><p>data</p></td>
2175
<td class="parameter_description"><p> location for data. </p></td>
2176
<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>
2179
<td class="parameter_name"><p>size</p></td>
2180
<td class="parameter_description"><p>the size of the data in bytes</p></td>
2181
<td class="parameter_annotations"> </td>
2186
<div class="refsect3">
2187
<a name="id-1.2.9.6.8.47.6"></a><h4>Returns</h4>
2188
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</p>
2193
<div class="refsect1">
2194
<a name="gst-plugins-base-libs-gstrtpbuffer.other_details"></a><h2>Types and Values</h2>
171
2195
<div class="refsect2">
172
2196
<a name="GST-RTP-VERSION:CAPS"></a><h3>GST_RTP_VERSION</h3>
173
2197
<pre class="programlisting">#define GST_RTP_VERSION 2
176
The supported RTP version 2.
180
<div class="refsect2">
181
<a name="gst-rtp-buffer-allocate-data"></a><h3>gst_rtp_buffer_allocate_data ()</h3>
182
<pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_allocate_data (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
183
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
184
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
185
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
187
Allocate enough data in <em class="parameter"><code>buffer</code></em> to hold an RTP packet with <em class="parameter"><code>csrc_count</code></em> CSRCs,
188
a payload length of <em class="parameter"><code>payload_len</code></em> and padding of <em class="parameter"><code>pad_len</code></em>.
189
<em class="parameter"><code>buffer</code></em> must be writable and all previous memory in <em class="parameter"><code>buffer</code></em> will be freed.
190
If <em class="parameter"><code>pad_len</code></em> is >0, the padding bit will be set. All other RTP header fields
191
will be set to 0/FALSE.
193
<div class="variablelist"><table border="0" class="variablelist">
195
<col align="left" valign="top">
200
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
201
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a>
205
<td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
206
<td>the length of the payload</td>
209
<td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
210
<td>the amount of padding</td>
213
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
214
<td>the number of CSRC entries</td>
220
<div class="refsect2">
221
<a name="gst-rtp-buffer-new-take-data"></a><h3>gst_rtp_buffer_new_take_data ()</h3>
222
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_rtp_buffer_new_take_data (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
223
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);</pre>
225
Create a new buffer and set the data and size of the buffer to <em class="parameter"><code>data</code></em> and <em class="parameter"><code>len</code></em>
226
respectively. <em class="parameter"><code>data</code></em> will be freed when the buffer is unreffed, so this
227
function transfers ownership of <em class="parameter"><code>data</code></em> to the new buffer.
229
<div class="variablelist"><table border="0" class="variablelist">
231
<col align="left" valign="top">
236
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
237
<td>data for the new buffer. <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>
241
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
242
<td>the length of data</td>
245
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
246
<td>A newly allocated buffer with <em class="parameter"><code>data</code></em> and of size <em class="parameter"><code>len</code></em>.</td>
252
<div class="refsect2">
253
<a name="gst-rtp-buffer-new-copy-data"></a><h3>gst_rtp_buffer_new_copy_data ()</h3>
254
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_rtp_buffer_new_copy_data (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
255
<em class="parameter"><code><span class="type">gsize</span> len</code></em>);</pre>
257
Create a new buffer and set the data to a copy of <em class="parameter"><code>len</code></em>
258
bytes of <em class="parameter"><code>data</code></em> and the size to <em class="parameter"><code>len</code></em>. The data will be freed when the buffer
261
<div class="variablelist"><table border="0" class="variablelist">
263
<col align="left" valign="top">
268
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
270
buffer. <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>
274
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
275
<td>the length of data</td>
278
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
<td>A newly allocated buffer with a copy of <em class="parameter"><code>data</code></em> and of size <em class="parameter"><code>len</code></em>.</td>
285
<div class="refsect2">
286
<a name="gst-rtp-buffer-new-allocate"></a><h3>gst_rtp_buffer_new_allocate ()</h3>
287
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_rtp_buffer_new_allocate (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
288
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
289
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
291
Allocate a new <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> with enough data to hold an RTP packet with
292
<em class="parameter"><code>csrc_count</code></em> CSRCs, a payload length of <em class="parameter"><code>payload_len</code></em> and padding of <em class="parameter"><code>pad_len</code></em>.
293
All other RTP header fields will be set to 0/FALSE.
295
<div class="variablelist"><table border="0" class="variablelist">
297
<col align="left" valign="top">
302
<td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
303
<td>the length of the payload</td>
306
<td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
307
<td>the amount of padding</td>
310
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
311
<td>the number of CSRC entries</td>
314
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
315
<td>A newly allocated buffer that can hold an RTP packet with given
322
<div class="refsect2">
323
<a name="gst-rtp-buffer-new-allocate-len"></a><h3>gst_rtp_buffer_new_allocate_len ()</h3>
324
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_rtp_buffer_new_allocate_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
325
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
326
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
328
Create a new <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> that can hold an RTP packet that is exactly
329
<em class="parameter"><code>packet_len</code></em> long. The length of the payload depends on <em class="parameter"><code>pad_len</code></em> and
330
<em class="parameter"><code>csrc_count</code></em> 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>.
331
All RTP header fields will be set to 0/FALSE.
333
<div class="variablelist"><table border="0" class="variablelist">
335
<col align="left" valign="top">
340
<td><p><span class="term"><em class="parameter"><code>packet_len</code></em> :</span></p></td>
341
<td>the total length of the packet</td>
344
<td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
345
<td>the amount of padding</td>
348
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
349
<td>the number of CSRC entries</td>
352
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
353
<td>A newly allocated buffer that can hold an RTP packet of <em class="parameter"><code>packet_len</code></em>.</td>
2199
<p>The supported RTP version 2.</p>
359
2202
<div class="refsect2">
366
2209
GstMapInfo map[4];
370
Data structure that points to an RTP packet.
371
The size of the structure is made public to allow stack allocations.
373
<div class="variablelist"><table border="0" class="variablelist">
2212
<p>Data structure that points to an RTP packet.
2213
The size of the structure is made public to allow stack allocations.</p>
2214
<div class="refsect3">
2215
<a name="id-1.2.9.6.9.3.5"></a><h4>Members</h4>
2216
<div class="informaltable"><table width="100%" border="0">
375
<col align="left" valign="top">
2218
<col width="300px" class="struct_members_name">
2219
<col class="struct_members_description">
2220
<col width="200px" class="struct_members_annotations">
380
<td><p><span class="term"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *<em class="structfield"><code><a name="GstRTPBuffer.buffer"></a>buffer</code></em>;</span></p></td>
381
<td>pointer to RTP buffer</td>
384
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstRTPBuffer.state"></a>state</code></em>;</span></p></td>
385
<td>internal state</td>
388
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="GstRTPBuffer.data"></a>data</code></em>[4];</span></p></td>
389
<td>array of data</td>
392
<td><p><span class="term"><span class="type">gsize</span> <em class="structfield"><code><a name="GstRTPBuffer.size"></a>size</code></em>[4];</span></p></td>
393
<td>array of size</td>
396
<td><p><span class="term"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a> <em class="structfield"><code><a name="GstRTPBuffer.map"></a>map</code></em>[4];</span></p></td>
397
<td>array of <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a>
2224
<td class="struct_member_name"><p><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *<em class="structfield"><code><a name="GstRTPBuffer.buffer"></a>buffer</code></em>;</p></td>
2225
<td class="struct_member_description"><p>pointer to RTP buffer</p></td>
2226
<td class="struct_member_annotations"> </td>
2229
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/glib/unstable/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>
2230
<td class="struct_member_description"><p>internal state</p></td>
2231
<td class="struct_member_annotations"> </td>
2234
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/glib/unstable/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>
2235
<td class="struct_member_description"><p>array of data</p></td>
2236
<td class="struct_member_annotations"> </td>
2239
<td class="struct_member_name"><p><span class="type">gsize</span> <em class="structfield"><code><a name="GstRTPBuffer.size"></a>size</code></em>[4];</p></td>
2240
<td class="struct_member_description"><p>array of size</p></td>
2241
<td class="struct_member_annotations"> </td>
2244
<td class="struct_member_name"><p><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a> <em class="structfield"><code><a name="GstRTPBuffer.map"></a>map</code></em>[4];</p></td>
2245
<td class="struct_member_description"><p>array of <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapInfo"><span class="type">GstMapInfo</span></a></p></td>
2246
<td class="struct_member_annotations"> </td>
404
2253
<div class="refsect2">
405
2254
<a name="GST-RTP-BUFFER-INIT:CAPS"></a><h3>GST_RTP_BUFFER_INIT</h3>
406
2255
<pre class="programlisting">#define GST_RTP_BUFFER_INIT</pre>
409
<div class="refsect2">
410
<a name="gst-rtp-buffer-map"></a><h3>gst_rtp_buffer_map ()</h3>
411
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtp_buffer_map (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
412
<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a> flags</code></em>,
413
<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>
415
Map the contents of <em class="parameter"><code>buffer</code></em> into <em class="parameter"><code>rtp</code></em>.
417
<div class="variablelist"><table border="0" class="variablelist">
419
<col align="left" valign="top">
424
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
425
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a>
429
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
430
<td><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMemory.html#GstMapFlags"><span class="type">GstMapFlags</span></a></td>
433
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
434
<td>a <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
438
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
440
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>buffer</code></em> could be mapped.</td>
446
<div class="refsect2">
447
<a name="gst-rtp-buffer-unmap"></a><h3>gst_rtp_buffer_unmap ()</h3>
448
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>
450
Unmap <em class="parameter"><code>rtp</code></em> 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>.
452
<div class="variablelist"><table border="0" class="variablelist">
454
<col align="left" valign="top">
458
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
459
<td>a <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#GstRTPBuffer" title="struct GstRTPBuffer"><span class="type">GstRTPBuffer</span></a>
465
<div class="refsect2">
466
<a name="gst-rtp-buffer-calc-header-len"></a><h3>gst_rtp_buffer_calc_header_len ()</h3>
467
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtp_buffer_calc_header_len (<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
469
Calculate the header length of an RTP packet with <em class="parameter"><code>csrc_count</code></em> CSRC entries.
470
An RTP packet can have at most 15 CSRC entries.
472
<div class="variablelist"><table border="0" class="variablelist">
474
<col align="left" valign="top">
479
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
480
<td>the number of CSRC entries</td>
483
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
484
<td>The length of an RTP header with <em class="parameter"><code>csrc_count</code></em> CSRC entries.</td>
490
<div class="refsect2">
491
<a name="gst-rtp-buffer-calc-packet-len"></a><h3>gst_rtp_buffer_calc_packet_len ()</h3>
492
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtp_buffer_calc_packet_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
493
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
494
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
496
Calculate the total length of an RTP packet with a payload size of <em class="parameter"><code>payload_len</code></em>,
497
a padding of <em class="parameter"><code>pad_len</code></em> and a <em class="parameter"><code>csrc_count</code></em> CSRC entries.
499
<div class="variablelist"><table border="0" class="variablelist">
501
<col align="left" valign="top">
506
<td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
507
<td>the length of the payload</td>
510
<td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
511
<td>the amount of padding</td>
514
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
515
<td>the number of CSRC entries</td>
518
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
519
<td>The total length of an RTP header with given parameters.</td>
525
<div class="refsect2">
526
<a name="gst-rtp-buffer-calc-payload-len"></a><h3>gst_rtp_buffer_calc_payload_len ()</h3>
527
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtp_buffer_calc_payload_len (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> packet_len</code></em>,
528
<em class="parameter"><code><span class="type">guint8</span> pad_len</code></em>,
529
<em class="parameter"><code><span class="type">guint8</span> csrc_count</code></em>);</pre>
531
Calculate the length of the payload of an RTP packet with size <em class="parameter"><code>packet_len</code></em>,
532
a padding of <em class="parameter"><code>pad_len</code></em> and a <em class="parameter"><code>csrc_count</code></em> CSRC entries.
534
<div class="variablelist"><table border="0" class="variablelist">
536
<col align="left" valign="top">
541
<td><p><span class="term"><em class="parameter"><code>packet_len</code></em> :</span></p></td>
542
<td>the length of the total RTP packet</td>
545
<td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
546
<td>the amount of padding</td>
549
<td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
550
<td>the number of CSRC entries</td>
553
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
554
<td>The length of the payload of an RTP packet with given parameters.</td>
560
<div class="refsect2">
561
<a name="gst-rtp-buffer-set-packet-len"></a><h3>gst_rtp_buffer_set_packet_len ()</h3>
562
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
563
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
565
Set the total <em class="parameter"><code>rtp</code></em> size to <em class="parameter"><code>len</code></em>. The data in the buffer will be made
566
larger if needed. Any padding will be removed from the packet.
568
<div class="variablelist"><table border="0" class="variablelist">
570
<col align="left" valign="top">
575
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
576
<td>the RTP packet</td>
579
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
580
<td>the new packet length</td>
586
<div class="refsect2">
587
<a name="gst-rtp-buffer-get-packet-len"></a><h3>gst_rtp_buffer_get_packet_len ()</h3>
588
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_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>
590
Return the total length of the packet in <em class="parameter"><code>buffer</code></em>.
592
<div class="variablelist"><table border="0" class="variablelist">
594
<col align="left" valign="top">
599
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
600
<td>the RTP packet</td>
603
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
604
<td>The total length of the packet in <em class="parameter"><code>buffer</code></em>.</td>
610
<div class="refsect2">
611
<a name="gst-rtp-buffer-get-header-len"></a><h3>gst_rtp_buffer_get_header_len ()</h3>
612
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_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>
614
Return the total length of the header in <em class="parameter"><code>buffer</code></em>. This include the length of
615
the fixed header, the CSRC list and the extension header.
617
<div class="variablelist"><table border="0" class="variablelist">
619
<col align="left" valign="top">
624
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
625
<td>the RTP packet</td>
628
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
629
<td>The total length of the header in <em class="parameter"><code>buffer</code></em>.</td>
635
<div class="refsect2">
636
<a name="gst-rtp-buffer-get-version"></a><h3>gst_rtp_buffer_get_version ()</h3>
637
<pre class="programlisting"><span class="returnvalue">guint8</span> gst_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>
639
Get the version number of the RTP packet in <em class="parameter"><code>buffer</code></em>.
641
<div class="variablelist"><table border="0" class="variablelist">
643
<col align="left" valign="top">
648
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
649
<td>the RTP packet</td>
652
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
653
<td>The version of <em class="parameter"><code>buffer</code></em>.</td>
659
<div class="refsect2">
660
<a name="gst-rtp-buffer-set-version"></a><h3>gst_rtp_buffer_set_version ()</h3>
661
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
662
<em class="parameter"><code><span class="type">guint8</span> version</code></em>);</pre>
664
Set the version of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>version</code></em>.
666
<div class="variablelist"><table border="0" class="variablelist">
668
<col align="left" valign="top">
673
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
674
<td>the RTP packet</td>
677
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
678
<td>the new version</td>
684
<div class="refsect2">
685
<a name="gst-rtp-buffer-get-padding"></a><h3>gst_rtp_buffer_get_padding ()</h3>
686
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_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>
688
Check if the padding bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
690
<div class="variablelist"><table border="0" class="variablelist">
692
<col align="left" valign="top">
697
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
698
<td>the RTP packet</td>
701
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
702
<td>TRUE if <em class="parameter"><code>buffer</code></em> has the padding bit set.</td>
708
<div class="refsect2">
709
<a name="gst-rtp-buffer-set-padding"></a><h3>gst_rtp_buffer_set_padding ()</h3>
710
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
711
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> padding</code></em>);</pre>
713
Set the padding bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>padding</code></em>.
715
<div class="variablelist"><table border="0" class="variablelist">
717
<col align="left" valign="top">
722
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
726
<td><p><span class="term"><em class="parameter"><code>padding</code></em> :</span></p></td>
727
<td>the new padding</td>
733
<div class="refsect2">
734
<a name="gst-rtp-buffer-pad-to"></a><h3>gst_rtp_buffer_pad_to ()</h3>
735
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
736
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
738
Set the amount of padding in the RTP packet in <em class="parameter"><code>buffer</code></em> to
739
<em class="parameter"><code>len</code></em>. If <em class="parameter"><code>len</code></em> is 0, the padding is removed.
742
NOTE: This function does not work correctly.
744
<div class="variablelist"><table border="0" class="variablelist">
746
<col align="left" valign="top">
751
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
752
<td>the RTP packet</td>
755
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
756
<td>the new amount of padding</td>
762
<div class="refsect2">
763
<a name="gst-rtp-buffer-get-extension"></a><h3>gst_rtp_buffer_get_extension ()</h3>
764
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_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>
766
Check if the extension bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
768
<div class="variablelist"><table border="0" class="variablelist">
770
<col align="left" valign="top">
775
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
776
<td>the RTP packet</td>
779
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
780
<td>TRUE if <em class="parameter"><code>buffer</code></em> has the extension bit set.</td>
786
<div class="refsect2">
787
<a name="gst-rtp-buffer-set-extension"></a><h3>gst_rtp_buffer_set_extension ()</h3>
788
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
789
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extension</code></em>);</pre>
791
Set the extension bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>extension</code></em>.
793
<div class="variablelist"><table border="0" class="variablelist">
795
<col align="left" valign="top">
800
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
801
<td>the RTP packet</td>
804
<td><p><span class="term"><em class="parameter"><code>extension</code></em> :</span></p></td>
805
<td>the new extension</td>
811
<div class="refsect2">
812
<a name="gst-rtp-buffer-get-extension-data"></a><h3>gst_rtp_buffer_get_extension_data ()</h3>
813
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_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>,
814
<em class="parameter"><code><span class="type">guint16</span> *bits</code></em>,
815
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
816
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *wordlen</code></em>);</pre>
818
Get the extension data. <em class="parameter"><code>bits</code></em> will contain the extension 16 bits of custom
819
data. <em class="parameter"><code>data</code></em> will point to the data in the extension and <em class="parameter"><code>wordlen</code></em> will contain
820
the length of <em class="parameter"><code>data</code></em> in 32 bits words.
823
If <em class="parameter"><code>buffer</code></em> did not contain an extension, this function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
824
with <em class="parameter"><code>bits</code></em>, <em class="parameter"><code>data</code></em> and <em class="parameter"><code>wordlen</code></em> unchanged.
826
<div class="variablelist"><table border="0" class="variablelist">
828
<col align="left" valign="top">
833
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
834
<td>the RTP packet</td>
837
<td><p><span class="term"><em class="parameter"><code>bits</code></em> :</span></p></td>
838
<td>location for result bits. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
842
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
843
<td>location for data. <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>
847
<td><p><span class="term"><em class="parameter"><code>wordlen</code></em> :</span></p></td>
848
<td>location for length of <em class="parameter"><code>data</code></em> in 32 bits words. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
852
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
853
<td>TRUE if <em class="parameter"><code>buffer</code></em> had the extension bit set.</td>
859
<div class="refsect2">
860
<a name="gst-rtp-buffer-get-ssrc"></a><h3>gst_rtp_buffer_get_ssrc ()</h3>
861
<pre class="programlisting"><span class="returnvalue">guint32</span> gst_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>
863
Get the SSRC of the RTP packet in <em class="parameter"><code>buffer</code></em>.
865
<div class="variablelist"><table border="0" class="variablelist">
867
<col align="left" valign="top">
872
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
873
<td>the RTP packet</td>
876
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
877
<td>the SSRC of <em class="parameter"><code>buffer</code></em> in host order.</td>
883
<div class="refsect2">
884
<a name="gst-rtp-buffer-set-ssrc"></a><h3>gst_rtp_buffer_set_ssrc ()</h3>
885
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
886
<em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
888
Set the SSRC on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>ssrc</code></em>.
890
<div class="variablelist"><table border="0" class="variablelist">
892
<col align="left" valign="top">
897
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
898
<td>the RTP packet</td>
901
<td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
902
<td>the new SSRC</td>
908
<div class="refsect2">
909
<a name="gst-rtp-buffer-get-csrc-count"></a><h3>gst_rtp_buffer_get_csrc_count ()</h3>
910
<pre class="programlisting"><span class="returnvalue">guint8</span> gst_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>
912
Get the CSRC count of the RTP packet in <em class="parameter"><code>buffer</code></em>.
914
<div class="variablelist"><table border="0" class="variablelist">
916
<col align="left" valign="top">
921
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
922
<td>the RTP packet</td>
925
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
926
<td>the CSRC count of <em class="parameter"><code>buffer</code></em>.</td>
932
<div class="refsect2">
933
<a name="gst-rtp-buffer-get-csrc"></a><h3>gst_rtp_buffer_get_csrc ()</h3>
934
<pre class="programlisting"><span class="returnvalue">guint32</span> gst_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>,
935
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>);</pre>
937
Get the CSRC at index <em class="parameter"><code>idx</code></em> in <em class="parameter"><code>buffer</code></em>.
939
<div class="variablelist"><table border="0" class="variablelist">
941
<col align="left" valign="top">
946
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
947
<td>the RTP packet</td>
950
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
951
<td>the index of the CSRC to get</td>
954
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
955
<td>the CSRC at index <em class="parameter"><code>idx</code></em> in host order.</td>
961
<div class="refsect2">
962
<a name="gst-rtp-buffer-set-csrc"></a><h3>gst_rtp_buffer_set_csrc ()</h3>
963
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
964
<em class="parameter"><code><span class="type">guint8</span> idx</code></em>,
965
<em class="parameter"><code><span class="type">guint32</span> csrc</code></em>);</pre>
967
Modify the CSRC at index <em class="parameter"><code>idx</code></em> in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>csrc</code></em>.
969
<div class="variablelist"><table border="0" class="variablelist">
971
<col align="left" valign="top">
976
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
977
<td>the RTP packet</td>
980
<td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
981
<td>the CSRC index to set</td>
984
<td><p><span class="term"><em class="parameter"><code>csrc</code></em> :</span></p></td>
985
<td>the CSRC in host order to set at <em class="parameter"><code>idx</code></em>
992
<div class="refsect2">
993
<a name="gst-rtp-buffer-get-marker"></a><h3>gst_rtp_buffer_get_marker ()</h3>
994
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_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>
996
Check if the marker bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
998
<div class="variablelist"><table border="0" class="variablelist">
1000
<col align="left" valign="top">
1005
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1006
<td>the RTP packet</td>
1009
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1010
<td>TRUE if <em class="parameter"><code>buffer</code></em> has the marker bit set.</td>
1016
<div class="refsect2">
1017
<a name="gst-rtp-buffer-set-marker"></a><h3>gst_rtp_buffer_set_marker ()</h3>
1018
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
1019
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> marker</code></em>);</pre>
1021
Set the marker bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>marker</code></em>.
1023
<div class="variablelist"><table border="0" class="variablelist">
1025
<col align="left" valign="top">
1030
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1031
<td>the RTP packet</td>
1034
<td><p><span class="term"><em class="parameter"><code>marker</code></em> :</span></p></td>
1035
<td>the new marker</td>
1041
<div class="refsect2">
1042
<a name="gst-rtp-buffer-get-payload-type"></a><h3>gst_rtp_buffer_get_payload_type ()</h3>
1043
<pre class="programlisting"><span class="returnvalue">guint8</span> gst_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>
1045
Get the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1047
<div class="variablelist"><table border="0" class="variablelist">
1049
<col align="left" valign="top">
1054
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1055
<td>the RTP packet</td>
1058
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1059
<td>The payload type.</td>
1065
<div class="refsect2">
1066
<a name="gst-rtp-buffer-set-payload-type"></a><h3>gst_rtp_buffer_set_payload_type ()</h3>
1067
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
1068
<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);</pre>
1070
Set the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>payload_type</code></em>.
1072
<div class="variablelist"><table border="0" class="variablelist">
1074
<col align="left" valign="top">
1079
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1080
<td>the RTP packet</td>
1083
<td><p><span class="term"><em class="parameter"><code>payload_type</code></em> :</span></p></td>
1084
<td>the new type</td>
1090
<div class="refsect2">
1091
<a name="gst-rtp-buffer-get-seq"></a><h3>gst_rtp_buffer_get_seq ()</h3>
1092
<pre class="programlisting"><span class="returnvalue">guint16</span> gst_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>
1094
Get the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1096
<div class="variablelist"><table border="0" class="variablelist">
1098
<col align="left" valign="top">
1103
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1104
<td>the RTP packet</td>
1107
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1108
<td>The sequence number in host order.</td>
1114
<div class="refsect2">
1115
<a name="gst-rtp-buffer-set-seq"></a><h3>gst_rtp_buffer_set_seq ()</h3>
1116
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
1117
<em class="parameter"><code><span class="type">guint16</span> seq</code></em>);</pre>
1119
Set the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>seq</code></em>.
1121
<div class="variablelist"><table border="0" class="variablelist">
1123
<col align="left" valign="top">
1128
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1129
<td>the RTP packet</td>
1132
<td><p><span class="term"><em class="parameter"><code>seq</code></em> :</span></p></td>
1133
<td>the new sequence number</td>
1139
<div class="refsect2">
1140
<a name="gst-rtp-buffer-get-timestamp"></a><h3>gst_rtp_buffer_get_timestamp ()</h3>
1141
<pre class="programlisting"><span class="returnvalue">guint32</span> gst_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>
1143
Get the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1145
<div class="variablelist"><table border="0" class="variablelist">
1147
<col align="left" valign="top">
1152
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1153
<td>the RTP packet</td>
1156
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1157
<td>The timestamp in host order.</td>
1163
<div class="refsect2">
1164
<a name="gst-rtp-buffer-set-timestamp"></a><h3>gst_rtp_buffer_set_timestamp ()</h3>
1165
<pre class="programlisting"><span class="returnvalue">void</span> gst_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>,
1166
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
1168
Set the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>timestamp</code></em>.
1170
<div class="variablelist"><table border="0" class="variablelist">
1172
<col align="left" valign="top">
1177
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1178
<td>the RTP packet</td>
1181
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
1182
<td>the new timestamp</td>
1188
<div class="refsect2">
1189
<a name="gst-rtp-buffer-get-payload-buffer"></a><h3>gst_rtp_buffer_get_payload_buffer ()</h3>
1190
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_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>
1192
Create a buffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>. This function
1193
will internally create a subbuffer of <em class="parameter"><code>buffer</code></em> so that a memcpy can be
1196
<div class="variablelist"><table border="0" class="variablelist">
1198
<col align="left" valign="top">
1203
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1204
<td>the RTP packet</td>
1207
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1208
<td>A new buffer with the data of the payload.</td>
1214
<div class="refsect2">
1215
<a name="gst-rtp-buffer-get-payload-subbuffer"></a><h3>gst_rtp_buffer_get_payload_subbuffer ()</h3>
1216
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> * gst_rtp_buffer_get_payload_subbuffer
1217
(<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>,
1218
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>,
1219
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> len</code></em>);</pre>
1221
Create a subbuffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>. <em class="parameter"><code>offset</code></em> bytes
1222
are skipped in the payload and the subbuffer will be of size <em class="parameter"><code>len</code></em>.
1223
If <em class="parameter"><code>len</code></em> is -1 the total payload starting from <em class="parameter"><code>offset</code></em> if subbuffered.
1225
<div class="variablelist"><table border="0" class="variablelist">
1227
<col align="left" valign="top">
1232
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1233
<td>the RTP packet</td>
1236
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
1237
<td>the offset in the payload</td>
1240
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1241
<td>the length in the payload</td>
1244
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1245
<td>A new buffer with the specified data of the payload.</td>
1251
<div class="refsect2">
1252
<a name="gst-rtp-buffer-get-payload-len"></a><h3>gst_rtp_buffer_get_payload_len ()</h3>
1253
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_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>
1255
Get the length of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1257
<div class="variablelist"><table border="0" class="variablelist">
1259
<col align="left" valign="top">
1264
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1265
<td>the RTP packet</td>
1268
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1269
<td>The length of the payload in <em class="parameter"><code>buffer</code></em>.</td>
1275
<div class="refsect2">
1276
<a name="gst-rtp-buffer-get-payload"></a><h3>gst_rtp_buffer_get_payload ()</h3>
1277
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> gst_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>
1279
Get a pointer to the payload data in <em class="parameter"><code>buffer</code></em>. This pointer is valid as long
1280
as a reference to <em class="parameter"><code>buffer</code></em> is held.
1282
<div class="variablelist"><table border="0" class="variablelist">
1284
<col align="left" valign="top">
1289
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1290
<td>the RTP packet</td>
1293
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1295
to the payload data in <em class="parameter"><code>buffer</code></em>. <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>
1302
<div class="refsect2">
1303
<a name="gst-rtp-buffer-default-clock-rate"></a><h3>gst_rtp_buffer_default_clock_rate ()</h3>
1304
<pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtp_buffer_default_clock_rate (<em class="parameter"><code><span class="type">guint8</span> payload_type</code></em>);</pre>
1306
Get the default clock-rate for the static payload type <em class="parameter"><code>payload_type</code></em>.
1308
<div class="variablelist"><table border="0" class="variablelist">
1310
<col align="left" valign="top">
1315
<td><p><span class="term"><em class="parameter"><code>payload_type</code></em> :</span></p></td>
1316
<td>the static payload type</td>
1319
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1320
<td>the default clock rate or -1 if the payload type is not static or
1321
the clock-rate is undefined.</td>
1327
<div class="refsect2">
1328
<a name="gst-rtp-buffer-compare-seqnum"></a><h3>gst_rtp_buffer_compare_seqnum ()</h3>
1329
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gst_rtp_buffer_compare_seqnum (<em class="parameter"><code><span class="type">guint16</span> seqnum1</code></em>,
1330
<em class="parameter"><code><span class="type">guint16</span> seqnum2</code></em>);</pre>
1332
Compare two sequence numbers, taking care of wraparounds. This function
1333
returns the difference between <em class="parameter"><code>seqnum1</code></em> and <em class="parameter"><code>seqnum2</code></em>.
1335
<div class="variablelist"><table border="0" class="variablelist">
1337
<col align="left" valign="top">
1342
<td><p><span class="term"><em class="parameter"><code>seqnum1</code></em> :</span></p></td>
1343
<td>a sequence number</td>
1346
<td><p><span class="term"><em class="parameter"><code>seqnum2</code></em> :</span></p></td>
1347
<td>a sequence number</td>
1350
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1351
<td>a negative value if <em class="parameter"><code>seqnum1</code></em> is bigger than <em class="parameter"><code>seqnum2</code></em>, 0 if they
1352
are equal or a positive value if <em class="parameter"><code>seqnum1</code></em> is smaller than <em class="parameter"><code>segnum2</code></em>.</td>
1358
<div class="refsect2">
1359
<a name="gst-rtp-buffer-ext-timestamp"></a><h3>gst_rtp_buffer_ext_timestamp ()</h3>
1360
<pre class="programlisting"><span class="returnvalue">guint64</span> gst_rtp_buffer_ext_timestamp (<em class="parameter"><code><span class="type">guint64</span> *exttimestamp</code></em>,
1361
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
1363
Update the <em class="parameter"><code>exttimestamp</code></em> field with <em class="parameter"><code>timestamp</code></em>. For the first call of the
1364
method, <em class="parameter"><code>exttimestamp</code></em> should point to a location with a value of -1.
1367
This function makes sure that the returned value is a constantly increasing
1368
value even in the case where there is a timestamp wraparound.
1370
<div class="variablelist"><table border="0" class="variablelist">
1372
<col align="left" valign="top">
1377
<td><p><span class="term"><em class="parameter"><code>exttimestamp</code></em> :</span></p></td>
1378
<td>a previous extended timestamp</td>
1381
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
1382
<td>a new timestamp</td>
1385
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1386
<td>The extended timestamp of <em class="parameter"><code>timestamp</code></em>.</td>
1392
<div class="refsect2">
1393
<a name="gst-rtp-buffer-set-extension-data"></a><h3>gst_rtp_buffer_set_extension_data ()</h3>
1394
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_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>,
1395
<em class="parameter"><code><span class="type">guint16</span> bits</code></em>,
1396
<em class="parameter"><code><span class="type">guint16</span> length</code></em>);</pre>
1398
Set the extension bit of the rtp buffer and fill in the <em class="parameter"><code>bits</code></em> and <em class="parameter"><code>length</code></em> of the
1399
extension header. If the existing extension data is not large enough, it will
1402
<div class="variablelist"><table border="0" class="variablelist">
1404
<col align="left" valign="top">
1409
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1410
<td>the RTP packet</td>
1413
<td><p><span class="term"><em class="parameter"><code>bits</code></em> :</span></p></td>
1414
<td>the bits specific for the extension</td>
1417
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1418
<td>the length that counts the number of 32-bit words in
1419
the extension, excluding the extension header ( therefore zero is a valid length)</td>
1422
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1423
<td>True if done.</td>
1429
<div class="refsect2">
1430
<a name="gst-rtp-buffer-get-extension-onebyte-header"></a><h3>gst_rtp_buffer_get_extension_onebyte_header ()</h3>
1431
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtp_buffer_get_extension_onebyte_header
1432
(<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>,
1433
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
1434
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
1435
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
1436
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre>
1438
Parses RFC 5285 style header extensions with a one byte header. It will
1439
return the nth extension with the requested id.
1441
<div class="variablelist"><table border="0" class="variablelist">
1443
<col align="left" valign="top">
1448
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1449
<td>the RTP packet</td>
1452
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1453
<td>The ID of the header extension to be read (between 1 and 14).</td>
1456
<td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1457
<td>Read the nth extension packet with the requested ID</td>
1460
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1461
<td>location for data. <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>
1465
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1466
<td>the size of the data in bytes. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1470
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1471
<td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1477
<div class="refsect2">
1478
<a name="gst-rtp-buffer-get-extension-twobytes-header"></a><h3>gst_rtp_buffer_get_extension_twobytes_header ()</h3>
1479
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtp_buffer_get_extension_twobytes_header
1480
(<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>,
1481
<em class="parameter"><code><span class="type">guint8</span> *appbits</code></em>,
1482
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
1483
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> nth</code></em>,
1484
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> *data</code></em>,
1485
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *size</code></em>);</pre>
1487
Parses RFC 5285 style header extensions with a two bytes header. It will
1488
return the nth extension with the requested id.
1490
<div class="variablelist"><table border="0" class="variablelist">
1492
<col align="left" valign="top">
1497
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1498
<td>the RTP packet</td>
1501
<td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1502
<td>Application specific bits. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1506
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1507
<td>The ID of the header extension to be read (between 1 and 14).</td>
1510
<td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1511
<td>Read the nth extension packet with the requested ID</td>
1514
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1515
<td>location for data. <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>
1519
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1520
<td>the size of the data in bytes. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
1524
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1525
<td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1531
<div class="refsect2">
1532
<a name="gst-rtp-buffer-add-extension-onebyte-header"></a><h3>gst_rtp_buffer_add_extension_onebyte_header ()</h3>
1533
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtp_buffer_add_extension_onebyte_header
1534
(<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>,
1535
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
1536
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
1537
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre>
1539
Adds a RFC 5285 header extension with a one byte header to the end of the
1540
RTP header. If there is already a RFC 5285 header extension with a one byte
1541
header, the new extension will be appended.
1542
It will not work if there is already a header extension that does not follow
1543
the mecanism described in RFC 5285 or if there is a header extension with
1544
a two bytes header as described in RFC 5285. In that case, use
1545
<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>
1547
<div class="variablelist"><table border="0" class="variablelist">
1549
<col align="left" valign="top">
1554
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1555
<td>the RTP packet</td>
1558
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1559
<td>The ID of the header extension (between 1 and 14).</td>
1562
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1563
<td>location for data. <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>
1567
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1568
<td>the size of the data in bytes</td>
1571
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1573
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</td>
1579
<div class="refsect2">
1580
<a name="gst-rtp-buffer-add-extension-twobytes-header"></a><h3>gst_rtp_buffer_add_extension_twobytes_header ()</h3>
1581
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtp_buffer_add_extension_twobytes_header
1582
(<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>,
1583
<em class="parameter"><code><span class="type">guint8</span> appbits</code></em>,
1584
<em class="parameter"><code><span class="type">guint8</span> id</code></em>,
1585
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
1586
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>);</pre>
1588
Adds a RFC 5285 header extension with a two bytes header to the end of the
1589
RTP header. If there is already a RFC 5285 header extension with a two bytes
1590
header, the new extension will be appended.
1591
It will not work if there is already a header extension that does not follow
1592
the mecanism described in RFC 5285 or if there is a header extension with
1593
a one byte header as described in RFC 5285. In that case, use
1594
<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>
1596
<div class="variablelist"><table border="0" class="variablelist">
1598
<col align="left" valign="top">
1603
<td><p><span class="term"><em class="parameter"><code>rtp</code></em> :</span></p></td>
1604
<td>the RTP packet</td>
1607
<td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1608
<td>Application specific bits</td>
1611
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1612
<td>The ID of the header extension</td>
1615
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1616
<td>location for data. <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>
1620
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1621
<td>the size of the data in bytes</td>
1624
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1626
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if header extension could be added</td>
1632
2258
<div class="refsect1">
1633
2259
<a name="gst-plugins-base-libs-gstrtpbuffer.see-also"></a><h2>See Also</h2>
1634
<a class="link" href="gst-plugins-base-libs-gstrtpbasepayload.html#GstRTPBasePayload"><span class="type">GstRTPBasePayload</span></a>, <a class="link" href="gst-plugins-base-libs-gstrtpbasedepayload.html#GstRTPBaseDepayload"><span class="type">GstRTPBaseDepayload</span></a>, gstrtcpbuffer
2260
<p><a class="link" href="gst-plugins-base-libs-gstrtpbasepayload.html#GstRTPBasePayload"><span class="type">GstRTPBasePayload</span></a>, <a class="link" href="gst-plugins-base-libs-gstrtpbasedepayload.html#GstRTPBaseDepayload"><span class="type">GstRTPBaseDepayload</span></a>, gstrtcpbuffer</p>
1637
2263
<div class="footer">
1639
Generated by GTK-Doc V1.19</div>
2265
Generated by GTK-Doc V1.20</div>
b'\\ No newline at end of file'