1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>gstrtpbuffer</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Library Reference Manual">
8 <link rel="up" href="gstreamer-rtp.html" title="RTP Library">
9 <link rel="prev" href="gst-plugins-base-libs-gstbasertppayload.html" title="gstbasertppayload">
10 <link rel="next" href="gst-plugins-base-libs-gstrtcpbuffer.html" title="gstrtcpbuffer">
11 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gst-plugins-base-libs-gstbasertppayload.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="gstreamer-rtp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Base Plugins 0.10 Library Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-base-libs-gstrtcpbuffer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-base-libs-gstrtpbuffer.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-base-libs-gstrtpbuffer.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="gst-plugins-base-libs-gstrtpbuffer"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
33 <h2><span class="refentrytitle"><a name="gst-plugins-base-libs-gstrtpbuffer.top_of_page"></a>gstrtpbuffer</span></h2>
34 <p>gstrtpbuffer — Helper methods for dealing with RTP buffers</p>
36 <td valign="top" align="right"></td>
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
47 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> 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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> 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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> 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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
54 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> 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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
57 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);
58 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="returnvalue">GstBufferList</span></a> * <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-from-buffer" title="gst_rtp_buffer_list_from_buffer ()">gst_rtp_buffer_list_from_buffer</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>);
59 <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);
60 <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>,
61 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
62 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);
63 <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>,
64 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
65 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);
66 <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-validate" title="gst_rtp_buffer_validate ()">gst_rtp_buffer_validate</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>);
67 <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-validate-data" title="gst_rtp_buffer_validate_data ()">gst_rtp_buffer_validate_data</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
68 <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>);
69 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
70 <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>);
71 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
72 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
73 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
74 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
75 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> version</code></em>);
76 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
77 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
78 <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>);
79 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
80 <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>);
81 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
82 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
83 <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>);
84 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
85 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *bits</code></em>,
86 <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>,
87 <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>);
88 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
89 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
90 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ssrc</code></em>);
91 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
92 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
93 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>);
94 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
95 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>,
96 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> csrc</code></em>);
97 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
98 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
99 <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>);
100 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
101 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
102 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);
103 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
104 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
105 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seq</code></em>);
106 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
107 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
108 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);
109 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
110 <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>
111 (<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>,
112 <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>,
113 <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>);
114 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
115 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
116 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);
117 <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum1</code></em>,
118 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum2</code></em>);
119 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> *exttimestamp</code></em>,
120 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);
121 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
122 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> bits</code></em>,
123 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> length</code></em>);
124 <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-list-validate" title="gst_rtp_buffer_list_validate ()">gst_rtp_buffer_list_validate</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
125 <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-list-get-payload-len" title="gst_rtp_buffer_list_get_payload_len ()">gst_rtp_buffer_list_get_payload_len</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
126 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-get-payload-type" title="gst_rtp_buffer_list_get_payload_type ()">gst_rtp_buffer_list_get_payload_type</a>
127 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
128 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-set-payload-type" title="gst_rtp_buffer_list_set_payload_type ()">gst_rtp_buffer_list_set_payload_type</a>
129 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
130 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);
131 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-get-seq" title="gst_rtp_buffer_list_get_seq ()">gst_rtp_buffer_list_get_seq</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
132 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-set-seq" title="gst_rtp_buffer_list_set_seq ()">gst_rtp_buffer_list_set_seq</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
133 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seq</code></em>);
134 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-get-ssrc" title="gst_rtp_buffer_list_get_ssrc ()">gst_rtp_buffer_list_get_ssrc</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
135 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-set-ssrc" title="gst_rtp_buffer_list_set_ssrc ()">gst_rtp_buffer_list_set_ssrc</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
136 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ssrc</code></em>);
137 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-get-timestamp" title="gst_rtp_buffer_list_get_timestamp ()">gst_rtp_buffer_list_get_timestamp</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);
138 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-set-timestamp" title="gst_rtp_buffer_list_set_timestamp ()">gst_rtp_buffer_list_set_timestamp</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
139 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);
140 <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>
141 (<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>,
142 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</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> nth</code></em>,
144 <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>,
145 <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>);
146 <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>
147 (<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>,
148 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *appbits</code></em>,
149 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
150 <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>,
151 <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>,
152 <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>);
153 <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>
154 (<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>,
155 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
156 <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>,
157 <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>);
158 <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>
159 (<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>,
160 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> appbits</code></em>,
161 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
162 <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>,
163 <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>);
164 <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-list-get-extension-onebyte-header" title="gst_rtp_buffer_list_get_extension_onebyte_header ()">gst_rtp_buffer_list_get_extension_onebyte_header</a>
165 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *bufferlist</code></em>,
166 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> group_idx</code></em>,
167 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
168 <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>,
169 <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>,
170 <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>);
171 <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-list-get-extension-twobytes-header" title="gst_rtp_buffer_list_get_extension_twobytes_header ()">gst_rtp_buffer_list_get_extension_twobytes_header</a>
172 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *bufferlist</code></em>,
173 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> group_idx</code></em>,
174 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *appbits</code></em>,
175 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
176 <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>,
177 <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>,
178 <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>);
179 <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-list-add-extension-onebyte-header" title="gst_rtp_buffer_list_add_extension_onebyte_header ()">gst_rtp_buffer_list_add_extension_onebyte_header</a>
180 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> *it</code></em>,
181 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
182 <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>,
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> size</code></em>);
184 <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-list-add-extension-twobytes-header" title="gst_rtp_buffer_list_add_extension_twobytes_header ()">gst_rtp_buffer_list_add_extension_twobytes_header</a>
185 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> *it</code></em>,
186 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> appbits</code></em>,
187 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
188 <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>,
189 <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>);
192 <div class="refsect1">
193 <a name="gst-plugins-base-libs-gstrtpbuffer.description"></a><h2>Description</h2>
196 <div class="refsect2">
197 <a name="idp19435168"></a><p>
198 The GstRTPBuffer helper functions makes it easy to parse and create regular
199 <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
200 '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>.
206 Last reviewed on 2006-07-17 (0.10.10)
209 <div class="refsect1">
210 <a name="gst-plugins-base-libs-gstrtpbuffer.details"></a><h2>Details</h2>
211 <div class="refsect2">
212 <a name="GST-RTP-VERSION:CAPS"></a><h3>GST_RTP_VERSION</h3>
213 <pre class="programlisting">#define GST_RTP_VERSION 2
216 The supported RTP version 2.
220 <div class="refsect2">
221 <a name="gst-rtp-buffer-allocate-data"></a><h3>gst_rtp_buffer_allocate_data ()</h3>
222 <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>,
223 <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>,
224 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
225 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
227 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,
228 a payload length of <em class="parameter"><code>payload_len</code></em> and padding of <em class="parameter"><code>pad_len</code></em>.
229 MALLOCDATA of <em class="parameter"><code>buffer</code></em> will be overwritten and will not be freed.
230 All other RTP header fields will be set to 0/FALSE.
232 <div class="variablelist"><table border="0">
233 <col align="left" valign="top">
236 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
237 <td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a>
241 <td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
242 <td>the length of the payload</td>
245 <td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
246 <td>the amount of padding</td>
249 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
250 <td>the number of CSRC entries</td>
256 <div class="refsect2">
257 <a name="gst-rtp-buffer-new-take-data"></a><h3>gst_rtp_buffer_new_take_data ()</h3>
258 <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>,
259 <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>
261 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>
262 respectively. <em class="parameter"><code>data</code></em> will be freed when the buffer is unreffed, so this
263 function transfers ownership of <em class="parameter"><code>data</code></em> to the new buffer.
265 <div class="variablelist"><table border="0">
266 <col align="left" valign="top">
269 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
270 <td>data for the new buffer</td>
273 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
274 <td>the length of data</td>
277 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
278 <td>A newly allocated buffer with <em class="parameter"><code>data</code></em> and of size <em class="parameter"><code>len</code></em>.</td>
284 <div class="refsect2">
285 <a name="gst-rtp-buffer-new-copy-data"></a><h3>gst_rtp_buffer_new_copy_data ()</h3>
286 <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>,
287 <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>
289 Create a new buffer and set the data to a copy of <em class="parameter"><code>len</code></em>
290 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
293 <div class="variablelist"><table border="0">
294 <col align="left" valign="top">
297 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
298 <td>data for the new buffer</td>
301 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
302 <td>the length of data</td>
305 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
306 <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>
312 <div class="refsect2">
313 <a name="gst-rtp-buffer-new-allocate"></a><h3>gst_rtp_buffer_new_allocate ()</h3>
314 <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>,
315 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
316 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
318 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
319 <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>.
320 All other RTP header fields will be set to 0/FALSE.
322 <div class="variablelist"><table border="0">
323 <col align="left" valign="top">
326 <td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
327 <td>the length of the payload</td>
330 <td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
331 <td>the amount of padding</td>
334 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
335 <td>the number of CSRC entries</td>
338 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
339 <td>A newly allocated buffer that can hold an RTP packet with given
346 <div class="refsect2">
347 <a name="gst-rtp-buffer-new-allocate-len"></a><h3>gst_rtp_buffer_new_allocate_len ()</h3>
348 <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>,
349 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
350 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
352 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
353 <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
354 <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>.
355 All RTP header fields will be set to 0/FALSE.
357 <div class="variablelist"><table border="0">
358 <col align="left" valign="top">
361 <td><p><span class="term"><em class="parameter"><code>packet_len</code></em> :</span></p></td>
362 <td>the total length of the packet</td>
365 <td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
366 <td>the amount of padding</td>
369 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
370 <td>the number of CSRC entries</td>
373 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
374 <td>A newly allocated buffer that can hold an RTP packet of <em class="parameter"><code>packet_len</code></em>.</td>
380 <div class="refsect2">
381 <a name="gst-rtp-buffer-list-from-buffer"></a><h3>gst_rtp_buffer_list_from_buffer ()</h3>
382 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="returnvalue">GstBufferList</span></a> * gst_rtp_buffer_list_from_buffer (<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>);</pre>
384 Splits a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> into a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> containing separate
385 buffers for the header and data sections.
387 <div class="variablelist"><table border="0">
388 <col align="left" valign="top">
391 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
392 <td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> containing a RTP packet</td>
395 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
396 <td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a>
403 <div class="refsect2">
404 <a name="gst-rtp-buffer-calc-header-len"></a><h3>gst_rtp_buffer_calc_header_len ()</h3>
405 <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
407 Calculate the header length of an RTP packet with <em class="parameter"><code>csrc_count</code></em> CSRC entries.
408 An RTP packet can have at most 15 CSRC entries.
410 <div class="variablelist"><table border="0">
411 <col align="left" valign="top">
414 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
415 <td>the number of CSRC entries</td>
418 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
419 <td>The length of an RTP header with <em class="parameter"><code>csrc_count</code></em> CSRC entries.</td>
425 <div class="refsect2">
426 <a name="gst-rtp-buffer-calc-packet-len"></a><h3>gst_rtp_buffer_calc_packet_len ()</h3>
427 <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>,
428 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
429 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
431 Calculate the total length of an RTP packet with a payload size of <em class="parameter"><code>payload_len</code></em>,
432 a padding of <em class="parameter"><code>pad_len</code></em> and a <em class="parameter"><code>csrc_count</code></em> CSRC entries.
434 <div class="variablelist"><table border="0">
435 <col align="left" valign="top">
438 <td><p><span class="term"><em class="parameter"><code>payload_len</code></em> :</span></p></td>
439 <td>the length of the payload</td>
442 <td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
443 <td>the amount of padding</td>
446 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
447 <td>the number of CSRC entries</td>
450 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
451 <td>The total length of an RTP header with given parameters.</td>
457 <div class="refsect2">
458 <a name="gst-rtp-buffer-calc-payload-len"></a><h3>gst_rtp_buffer_calc_payload_len ()</h3>
459 <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>,
460 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> pad_len</code></em>,
461 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> csrc_count</code></em>);</pre>
463 Calculate the length of the payload of an RTP packet with size <em class="parameter"><code>packet_len</code></em>,
464 a padding of <em class="parameter"><code>pad_len</code></em> and a <em class="parameter"><code>csrc_count</code></em> CSRC entries.
466 <div class="variablelist"><table border="0">
467 <col align="left" valign="top">
470 <td><p><span class="term"><em class="parameter"><code>packet_len</code></em> :</span></p></td>
471 <td>the length of the total RTP packet</td>
474 <td><p><span class="term"><em class="parameter"><code>pad_len</code></em> :</span></p></td>
475 <td>the amount of padding</td>
478 <td><p><span class="term"><em class="parameter"><code>csrc_count</code></em> :</span></p></td>
479 <td>the number of CSRC entries</td>
482 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
483 <td>The length of the payload of an RTP packet with given parameters.</td>
489 <div class="refsect2">
490 <a name="gst-rtp-buffer-validate"></a><h3>gst_rtp_buffer_validate ()</h3>
491 <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_validate (<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>);</pre>
493 Check if the data pointed to by <em class="parameter"><code>buffer</code></em> is a valid RTP packet using
494 <code class="function">validate_data()</code>.
495 Use this function to validate a packet before using the other functions in
498 <div class="variablelist"><table border="0">
499 <col align="left" valign="top">
502 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
503 <td>the buffer to validate</td>
506 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
507 <td>TRUE if <em class="parameter"><code>buffer</code></em> is a valid RTP packet.</td>
513 <div class="refsect2">
514 <a name="gst-rtp-buffer-validate-data"></a><h3>gst_rtp_buffer_validate_data ()</h3>
515 <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_validate_data (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
516 <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>
518 Check if the <em class="parameter"><code>data</code></em> and <em class="parameter"><code>size</code></em> point to the data of a valid RTP packet.
519 This function checks the length, version and padding of the packet data.
520 Use this function to validate a packet before using the other functions in
523 <div class="variablelist"><table border="0">
524 <col align="left" valign="top">
527 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
528 <td>the data to validate</td>
531 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
532 <td>the length of <em class="parameter"><code>data</code></em> to validate</td>
535 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
536 <td>TRUE if the data points to a valid RTP packet.</td>
542 <div class="refsect2">
543 <a name="gst-rtp-buffer-set-packet-len"></a><h3>gst_rtp_buffer_set_packet_len ()</h3>
544 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_packet_len (<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>,
545 <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>
547 Set the total <em class="parameter"><code>buffer</code></em> size to <em class="parameter"><code>len</code></em>. The data in the buffer will be made
548 larger if needed. Any padding will be removed from the packet.
550 <div class="variablelist"><table border="0">
551 <col align="left" valign="top">
554 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
558 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
559 <td>the new packet length</td>
565 <div class="refsect2">
566 <a name="gst-rtp-buffer-get-packet-len"></a><h3>gst_rtp_buffer_get_packet_len ()</h3>
567 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
569 Return the total length of the packet in <em class="parameter"><code>buffer</code></em>.
571 <div class="variablelist"><table border="0">
572 <col align="left" valign="top">
575 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
579 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
580 <td>The total length of the packet in <em class="parameter"><code>buffer</code></em>.</td>
586 <div class="refsect2">
587 <a name="gst-rtp-buffer-get-header-len"></a><h3>gst_rtp_buffer_get_header_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_header_len (<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>);</pre>
590 Return the total length of the header in <em class="parameter"><code>buffer</code></em>. This include the length of
591 the fixed header, the CSRC list and the extension header.
593 <div class="variablelist"><table border="0">
594 <col align="left" valign="top">
597 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
601 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
602 <td>The total length of the header in <em class="parameter"><code>buffer</code></em>.</td>
608 <div class="refsect2">
609 <a name="gst-rtp-buffer-get-version"></a><h3>gst_rtp_buffer_get_version ()</h3>
610 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> gst_rtp_buffer_get_version (<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>);</pre>
612 Get the version number of the RTP packet in <em class="parameter"><code>buffer</code></em>.
614 <div class="variablelist"><table border="0">
615 <col align="left" valign="top">
618 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
622 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
623 <td>The version of <em class="parameter"><code>buffer</code></em>.</td>
629 <div class="refsect2">
630 <a name="gst-rtp-buffer-set-version"></a><h3>gst_rtp_buffer_set_version ()</h3>
631 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_version (<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>,
632 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> version</code></em>);</pre>
634 Set the version of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>version</code></em>.
636 <div class="variablelist"><table border="0">
637 <col align="left" valign="top">
640 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
644 <td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
645 <td>the new version</td>
651 <div class="refsect2">
652 <a name="gst-rtp-buffer-get-padding"></a><h3>gst_rtp_buffer_get_padding ()</h3>
653 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
655 Check if the padding bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
657 <div class="variablelist"><table border="0">
658 <col align="left" valign="top">
661 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
665 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
666 <td>TRUE if <em class="parameter"><code>buffer</code></em> has the padding bit set.</td>
672 <div class="refsect2">
673 <a name="gst-rtp-buffer-set-padding"></a><h3>gst_rtp_buffer_set_padding ()</h3>
674 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_padding (<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>,
675 <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>
677 Set the padding bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>padding</code></em>.
679 <div class="variablelist"><table border="0">
680 <col align="left" valign="top">
683 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
687 <td><p><span class="term"><em class="parameter"><code>padding</code></em> :</span></p></td>
688 <td>the new padding</td>
694 <div class="refsect2">
695 <a name="gst-rtp-buffer-pad-to"></a><h3>gst_rtp_buffer_pad_to ()</h3>
696 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_pad_to (<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>,
697 <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>
699 Set the amount of padding in the RTP packet in <em class="parameter"><code>buffer</code></em> to
700 <em class="parameter"><code>len</code></em>. If <em class="parameter"><code>len</code></em> is 0, the padding is removed.
703 NOTE: This function does not work correctly.
705 <div class="variablelist"><table border="0">
706 <col align="left" valign="top">
709 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
713 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
714 <td>the new amount of padding</td>
720 <div class="refsect2">
721 <a name="gst-rtp-buffer-get-extension"></a><h3>gst_rtp_buffer_get_extension ()</h3>
722 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
724 Check if the extension bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
726 <div class="variablelist"><table border="0">
727 <col align="left" valign="top">
730 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
734 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
735 <td>TRUE if <em class="parameter"><code>buffer</code></em> has the extension bit set.</td>
741 <div class="refsect2">
742 <a name="gst-rtp-buffer-set-extension"></a><h3>gst_rtp_buffer_set_extension ()</h3>
743 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_extension (<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>,
744 <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>
746 Set the extension bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>extension</code></em>.
748 <div class="variablelist"><table border="0">
749 <col align="left" valign="top">
752 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
756 <td><p><span class="term"><em class="parameter"><code>extension</code></em> :</span></p></td>
757 <td>the new extension</td>
763 <div class="refsect2">
764 <a name="gst-rtp-buffer-get-extension-data"></a><h3>gst_rtp_buffer_get_extension_data ()</h3>
765 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
766 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *bits</code></em>,
767 <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>,
768 <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>
770 Get the extension data. <em class="parameter"><code>bits</code></em> will contain the extension 16 bits of custom
771 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
772 the length of <em class="parameter"><code>data</code></em> in 32 bits words.
775 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>
776 with <em class="parameter"><code>bits</code></em>, <em class="parameter"><code>data</code></em> and <em class="parameter"><code>wordlen</code></em> unchanged.
778 <div class="variablelist"><table border="0">
779 <col align="left" valign="top">
782 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
786 <td><p><span class="term"><em class="parameter"><code>bits</code></em> :</span></p></td>
787 <td>location for result bits</td>
790 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
791 <td>location for data</td>
794 <td><p><span class="term"><em class="parameter"><code>wordlen</code></em> :</span></p></td>
795 <td>location for length of <em class="parameter"><code>data</code></em> in 32 bits words</td>
798 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
799 <td>TRUE if <em class="parameter"><code>buffer</code></em> had the extension bit set.</td>
803 <p class="since">Since 0.10.15</p>
806 <div class="refsect2">
807 <a name="gst-rtp-buffer-get-ssrc"></a><h3>gst_rtp_buffer_get_ssrc ()</h3>
808 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_get_ssrc (<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>);</pre>
810 Get the SSRC of the RTP packet in <em class="parameter"><code>buffer</code></em>.
812 <div class="variablelist"><table border="0">
813 <col align="left" valign="top">
816 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
820 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
821 <td>the SSRC of <em class="parameter"><code>buffer</code></em> in host order.</td>
827 <div class="refsect2">
828 <a name="gst-rtp-buffer-set-ssrc"></a><h3>gst_rtp_buffer_set_ssrc ()</h3>
829 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_ssrc (<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>,
830 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ssrc</code></em>);</pre>
832 Set the SSRC on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>ssrc</code></em>.
834 <div class="variablelist"><table border="0">
835 <col align="left" valign="top">
838 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
842 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
843 <td>the new SSRC</td>
849 <div class="refsect2">
850 <a name="gst-rtp-buffer-get-csrc-count"></a><h3>gst_rtp_buffer_get_csrc_count ()</h3>
851 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> gst_rtp_buffer_get_csrc_count (<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>);</pre>
853 Get the CSRC count of the RTP packet in <em class="parameter"><code>buffer</code></em>.
855 <div class="variablelist"><table border="0">
856 <col align="left" valign="top">
859 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
863 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
864 <td>the CSRC count of <em class="parameter"><code>buffer</code></em>.</td>
870 <div class="refsect2">
871 <a name="gst-rtp-buffer-get-csrc"></a><h3>gst_rtp_buffer_get_csrc ()</h3>
872 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_get_csrc (<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>,
873 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>);</pre>
875 Get the CSRC at index <em class="parameter"><code>idx</code></em> in <em class="parameter"><code>buffer</code></em>.
877 <div class="variablelist"><table border="0">
878 <col align="left" valign="top">
881 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
885 <td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
886 <td>the index of the CSRC to get</td>
889 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
890 <td>the CSRC at index <em class="parameter"><code>idx</code></em> in host order.</td>
896 <div class="refsect2">
897 <a name="gst-rtp-buffer-set-csrc"></a><h3>gst_rtp_buffer_set_csrc ()</h3>
898 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_csrc (<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>,
899 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> idx</code></em>,
900 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> csrc</code></em>);</pre>
902 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>.
904 <div class="variablelist"><table border="0">
905 <col align="left" valign="top">
908 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
912 <td><p><span class="term"><em class="parameter"><code>idx</code></em> :</span></p></td>
913 <td>the CSRC index to set</td>
916 <td><p><span class="term"><em class="parameter"><code>csrc</code></em> :</span></p></td>
917 <td>the CSRC in host order to set at <em class="parameter"><code>idx</code></em>
924 <div class="refsect2">
925 <a name="gst-rtp-buffer-get-marker"></a><h3>gst_rtp_buffer_get_marker ()</h3>
926 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
928 Check if the marker bit is set on the RTP packet in <em class="parameter"><code>buffer</code></em>.
930 <div class="variablelist"><table border="0">
931 <col align="left" valign="top">
934 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
938 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
939 <td>TRUE if <em class="parameter"><code>buffer</code></em> has the marker bit set.</td>
945 <div class="refsect2">
946 <a name="gst-rtp-buffer-set-marker"></a><h3>gst_rtp_buffer_set_marker ()</h3>
947 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_marker (<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>,
948 <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>
950 Set the marker bit on the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>marker</code></em>.
952 <div class="variablelist"><table border="0">
953 <col align="left" valign="top">
956 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
960 <td><p><span class="term"><em class="parameter"><code>marker</code></em> :</span></p></td>
961 <td>the new marker</td>
967 <div class="refsect2">
968 <a name="gst-rtp-buffer-get-payload-type"></a><h3>gst_rtp_buffer_get_payload_type ()</h3>
969 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> gst_rtp_buffer_get_payload_type (<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>);</pre>
971 Get the payload type of the RTP packet in <em class="parameter"><code>buffer</code></em>.
973 <div class="variablelist"><table border="0">
974 <col align="left" valign="top">
977 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
981 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
982 <td>The payload type.</td>
988 <div class="refsect2">
989 <a name="gst-rtp-buffer-set-payload-type"></a><h3>gst_rtp_buffer_set_payload_type ()</h3>
990 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_payload_type (<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>,
991 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);</pre>
993 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>.
995 <div class="variablelist"><table border="0">
996 <col align="left" valign="top">
999 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1003 <td><p><span class="term"><em class="parameter"><code>payload_type</code></em> :</span></p></td>
1004 <td>the new type</td>
1010 <div class="refsect2">
1011 <a name="gst-rtp-buffer-get-seq"></a><h3>gst_rtp_buffer_get_seq ()</h3>
1012 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> gst_rtp_buffer_get_seq (<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>);</pre>
1014 Get the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1016 <div class="variablelist"><table border="0">
1017 <col align="left" valign="top">
1020 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1024 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1025 <td>The sequence number in host order.</td>
1031 <div class="refsect2">
1032 <a name="gst-rtp-buffer-set-seq"></a><h3>gst_rtp_buffer_set_seq ()</h3>
1033 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_seq (<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>,
1034 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seq</code></em>);</pre>
1036 Set the sequence number of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>seq</code></em>.
1038 <div class="variablelist"><table border="0">
1039 <col align="left" valign="top">
1042 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1046 <td><p><span class="term"><em class="parameter"><code>seq</code></em> :</span></p></td>
1047 <td>the new sequence number</td>
1053 <div class="refsect2">
1054 <a name="gst-rtp-buffer-get-timestamp"></a><h3>gst_rtp_buffer_get_timestamp ()</h3>
1055 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_get_timestamp (<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>);</pre>
1057 Get the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1059 <div class="variablelist"><table border="0">
1060 <col align="left" valign="top">
1063 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1067 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1068 <td>The timestamp in host order.</td>
1074 <div class="refsect2">
1075 <a name="gst-rtp-buffer-set-timestamp"></a><h3>gst_rtp_buffer_set_timestamp ()</h3>
1076 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_set_timestamp (<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>,
1077 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre>
1079 Set the timestamp of the RTP packet in <em class="parameter"><code>buffer</code></em> to <em class="parameter"><code>timestamp</code></em>.
1081 <div class="variablelist"><table border="0">
1082 <col align="left" valign="top">
1085 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1089 <td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
1090 <td>the new timestamp</td>
1096 <div class="refsect2">
1097 <a name="gst-rtp-buffer-get-payload-buffer"></a><h3>gst_rtp_buffer_get_payload_buffer ()</h3>
1098 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1100 Create a buffer of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>. This function
1101 will internally create a subbuffer of <em class="parameter"><code>buffer</code></em> so that a memcpy can be
1104 <div class="variablelist"><table border="0">
1105 <col align="left" valign="top">
1108 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1112 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1113 <td>A new buffer with the data of the payload.</td>
1119 <div class="refsect2">
1120 <a name="gst-rtp-buffer-get-payload-subbuffer"></a><h3>gst_rtp_buffer_get_payload_subbuffer ()</h3>
1121 <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
1122 (<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>,
1123 <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>,
1124 <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>
1126 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
1127 are skipped in the payload and the subbuffer will be of size <em class="parameter"><code>len</code></em>.
1128 If <em class="parameter"><code>len</code></em> is -1 the total payload starting from <em class="parameter"><code>offset</code></em> if subbuffered.
1130 <div class="variablelist"><table border="0">
1131 <col align="left" valign="top">
1134 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1138 <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
1139 <td>the offset in the payload</td>
1142 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1143 <td>the length in the payload</td>
1146 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1147 <td>A new buffer with the specified data of the payload.</td>
1151 <p class="since">Since 0.10.10</p>
1154 <div class="refsect2">
1155 <a name="gst-rtp-buffer-get-payload-len"></a><h3>gst_rtp_buffer_get_payload_len ()</h3>
1156 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1158 Get the length of the payload of the RTP packet in <em class="parameter"><code>buffer</code></em>.
1160 <div class="variablelist"><table border="0">
1161 <col align="left" valign="top">
1164 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1168 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1169 <td>The length of the payload in <em class="parameter"><code>buffer</code></em>.</td>
1175 <div class="refsect2">
1176 <a name="gst-rtp-buffer-get-payload"></a><h3>gst_rtp_buffer_get_payload ()</h3>
1177 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1179 Get a pointer to the payload data in <em class="parameter"><code>buffer</code></em>. This pointer is valid as long
1180 as a reference to <em class="parameter"><code>buffer</code></em> is held.
1182 <div class="variablelist"><table border="0">
1183 <col align="left" valign="top">
1186 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1190 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1191 <td>A pointer to the payload data in <em class="parameter"><code>buffer</code></em>.</td>
1197 <div class="refsect2">
1198 <a name="gst-rtp-buffer-default-clock-rate"></a><h3>gst_rtp_buffer_default_clock_rate ()</h3>
1199 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_default_clock_rate (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);</pre>
1201 Get the default clock-rate for the static payload type <em class="parameter"><code>payload_type</code></em>.
1203 <div class="variablelist"><table border="0">
1204 <col align="left" valign="top">
1207 <td><p><span class="term"><em class="parameter"><code>payload_type</code></em> :</span></p></td>
1208 <td>the static payload type</td>
1211 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1212 <td>the default clock rate or -1 if the payload type is not static or
1213 the clock-rate is undefined.</td>
1217 <p class="since">Since 0.10.13</p>
1220 <div class="refsect2">
1221 <a name="gst-rtp-buffer-compare-seqnum"></a><h3>gst_rtp_buffer_compare_seqnum ()</h3>
1222 <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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum1</code></em>,
1223 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seqnum2</code></em>);</pre>
1225 Compare two sequence numbers, taking care of wraparounds. This function
1226 returns the difference between <em class="parameter"><code>seqnum1</code></em> and <em class="parameter"><code>seqnum2</code></em>.
1228 <div class="variablelist"><table border="0">
1229 <col align="left" valign="top">
1232 <td><p><span class="term"><em class="parameter"><code>seqnum1</code></em> :</span></p></td>
1233 <td>a sequence number</td>
1236 <td><p><span class="term"><em class="parameter"><code>seqnum2</code></em> :</span></p></td>
1237 <td>a sequence number</td>
1240 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1241 <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
1242 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>
1246 <p class="since">Since 0.10.15</p>
1249 <div class="refsect2">
1250 <a name="gst-rtp-buffer-ext-timestamp"></a><h3>gst_rtp_buffer_ext_timestamp ()</h3>
1251 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> gst_rtp_buffer_ext_timestamp (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> *exttimestamp</code></em>,
1252 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre>
1254 Update the <em class="parameter"><code>exttimestamp</code></em> field with <em class="parameter"><code>timestamp</code></em>. For the first call of the
1255 method, <em class="parameter"><code>exttimestamp</code></em> should point to a location with a value of -1.
1258 This function makes sure that the returned value is a constantly increasing
1259 value even in the case where there is a timestamp wraparound.
1261 <div class="variablelist"><table border="0">
1262 <col align="left" valign="top">
1265 <td><p><span class="term"><em class="parameter"><code>exttimestamp</code></em> :</span></p></td>
1266 <td>a previous extended timestamp</td>
1269 <td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
1270 <td>a new timestamp</td>
1273 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1274 <td>The extended timestamp of <em class="parameter"><code>timestamp</code></em>.</td>
1278 <p class="since">Since 0.10.15</p>
1281 <div class="refsect2">
1282 <a name="gst-rtp-buffer-set-extension-data"></a><h3>gst_rtp_buffer_set_extension_data ()</h3>
1283 <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 href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>,
1284 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> bits</code></em>,
1285 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> length</code></em>);</pre>
1287 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
1288 extension header. It will refuse to set the extension data if the buffer is not
1291 <div class="variablelist"><table border="0">
1292 <col align="left" valign="top">
1295 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1299 <td><p><span class="term"><em class="parameter"><code>bits</code></em> :</span></p></td>
1300 <td>the bits specific for the extension</td>
1303 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1304 <td>the length that counts the number of 32-bit words in
1305 the extension, excluding the extension header ( therefore zero is a valid length)</td>
1308 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1309 <td>True if done.</td>
1313 <p class="since">Since 0.10.18</p>
1316 <div class="refsect2">
1317 <a name="gst-rtp-buffer-list-validate"></a><h3>gst_rtp_buffer_list_validate ()</h3>
1318 <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_list_validate (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1320 Check if all RTP packets in the <em class="parameter"><code>list</code></em> are valid using <code class="function">validate_data()</code>.
1321 Use this function to validate an list before using the other functions in
1324 <div class="variablelist"><table border="0">
1325 <col align="left" valign="top">
1328 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1329 <td>the buffer list to validate</td>
1332 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1333 <td>TRUE if <em class="parameter"><code>list</code></em> consists only of valid RTP packets.</td>
1337 <p class="since">Since 0.10.24</p>
1340 <div class="refsect2">
1341 <a name="gst-rtp-buffer-list-get-payload-len"></a><h3>gst_rtp_buffer_list_get_payload_len ()</h3>
1342 <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_list_get_payload_len (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1344 Get the length of the payload of the RTP packet in <em class="parameter"><code>list</code></em>.
1346 <div class="variablelist"><table border="0">
1347 <col align="left" valign="top">
1350 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1351 <td>the buffer list</td>
1354 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1355 <td>The length of the payload in <em class="parameter"><code>list</code></em>.</td>
1359 <p class="since">Since 0.10.24</p>
1362 <div class="refsect2">
1363 <a name="gst-rtp-buffer-list-get-payload-type"></a><h3>gst_rtp_buffer_list_get_payload_type ()</h3>
1364 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> gst_rtp_buffer_list_get_payload_type
1365 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1367 Get the payload type of the first RTP packet in <em class="parameter"><code>list</code></em>.
1368 All packets in <em class="parameter"><code>list</code></em> should have the same payload type.
1370 <div class="variablelist"><table border="0">
1371 <col align="left" valign="top">
1374 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1375 <td>the buffer list</td>
1378 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1379 <td>The payload type.</td>
1383 <p class="since">Since 0.10.24</p>
1386 <div class="refsect2">
1387 <a name="gst-rtp-buffer-list-set-payload-type"></a><h3>gst_rtp_buffer_list_set_payload_type ()</h3>
1388 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_list_set_payload_type
1389 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
1390 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> payload_type</code></em>);</pre>
1392 Set the payload type of each RTP packet in <em class="parameter"><code>list</code></em> to <em class="parameter"><code>payload_type</code></em>.
1394 <div class="variablelist"><table border="0">
1395 <col align="left" valign="top">
1398 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1399 <td>the buffer list</td>
1402 <td><p><span class="term"><em class="parameter"><code>payload_type</code></em> :</span></p></td>
1403 <td>the new type</td>
1407 <p class="since">Since 0.10.24</p>
1410 <div class="refsect2">
1411 <a name="gst-rtp-buffer-list-get-seq"></a><h3>gst_rtp_buffer_list_get_seq ()</h3>
1412 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> gst_rtp_buffer_list_get_seq (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1414 Get the sequence number of the first RTP packet in <em class="parameter"><code>list</code></em>.
1415 All packets within <em class="parameter"><code>list</code></em> have the same sequence number.
1417 <div class="variablelist"><table border="0">
1418 <col align="left" valign="top">
1421 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1422 <td>the buffer list</td>
1425 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1426 <td>The seq number</td>
1430 <p class="since">Since 0.10.24</p>
1433 <div class="refsect2">
1434 <a name="gst-rtp-buffer-list-set-seq"></a><h3>gst_rtp_buffer_list_set_seq ()</h3>
1435 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> gst_rtp_buffer_list_set_seq (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
1436 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> seq</code></em>);</pre>
1438 Set the sequence number of each RTP packet in <em class="parameter"><code>list</code></em> to <em class="parameter"><code>seq</code></em>.
1440 <div class="variablelist"><table border="0">
1441 <col align="left" valign="top">
1444 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1445 <td>the buffer list</td>
1448 <td><p><span class="term"><em class="parameter"><code>seq</code></em> :</span></p></td>
1449 <td>the new sequence number</td>
1452 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1453 <td>The seq number of the last packet in the list + 1.</td>
1457 <p class="since">Since 0.10.24</p>
1460 <div class="refsect2">
1461 <a name="gst-rtp-buffer-list-get-ssrc"></a><h3>gst_rtp_buffer_list_get_ssrc ()</h3>
1462 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_list_get_ssrc (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1464 Get the SSRC of the first RTP packet in <em class="parameter"><code>list</code></em>.
1465 All RTP packets within <em class="parameter"><code>list</code></em> have the same SSRC.
1467 <div class="variablelist"><table border="0">
1468 <col align="left" valign="top">
1471 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1472 <td>the buffer list</td>
1475 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1476 <td>the SSRC of <em class="parameter"><code>list</code></em> in host order.</td>
1480 <p class="since">Since 0.10.24</p>
1483 <div class="refsect2">
1484 <a name="gst-rtp-buffer-list-set-ssrc"></a><h3>gst_rtp_buffer_list_set_ssrc ()</h3>
1485 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_list_set_ssrc (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
1486 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ssrc</code></em>);</pre>
1488 Set the SSRC on each RTP packet in <em class="parameter"><code>list</code></em> to <em class="parameter"><code>ssrc</code></em>.
1490 <div class="variablelist"><table border="0">
1491 <col align="left" valign="top">
1494 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1495 <td>the buffer list</td>
1498 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1499 <td>the new SSRC</td>
1503 <p class="since">Since 0.10.24</p>
1506 <div class="refsect2">
1507 <a name="gst-rtp-buffer-list-get-timestamp"></a><h3>gst_rtp_buffer_list_get_timestamp ()</h3>
1508 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gst_rtp_buffer_list_get_timestamp (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>);</pre>
1510 Get the timestamp of the first RTP packet in <em class="parameter"><code>list</code></em>.
1511 All packets within <em class="parameter"><code>list</code></em> have the same timestamp.
1513 <div class="variablelist"><table border="0">
1514 <col align="left" valign="top">
1517 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1518 <td>the buffer list</td>
1521 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1522 <td>The timestamp in host order.</td>
1526 <p class="since">Since 0.10.24</p>
1529 <div class="refsect2">
1530 <a name="gst-rtp-buffer-list-set-timestamp"></a><h3>gst_rtp_buffer_list_set_timestamp ()</h3>
1531 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtp_buffer_list_set_timestamp (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *list</code></em>,
1532 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre>
1534 Set the timestamp of each RTP packet in <em class="parameter"><code>list</code></em> to <em class="parameter"><code>timestamp</code></em>.
1536 <div class="variablelist"><table border="0">
1537 <col align="left" valign="top">
1540 <td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1541 <td>the buffer list</td>
1544 <td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
1545 <td>the new timestamp</td>
1549 <p class="since">Since 0.10.24</p>
1552 <div class="refsect2">
1553 <a name="gst-rtp-buffer-get-extension-onebyte-header"></a><h3>gst_rtp_buffer_get_extension_onebyte_header ()</h3>
1554 <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
1555 (<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>,
1556 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1557 <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>,
1558 <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>,
1559 <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>
1561 Parses RFC 5285 style header extensions with a one byte header. It will
1562 return the nth extension with the requested id.
1564 <div class="variablelist"><table border="0">
1565 <col align="left" valign="top">
1568 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1572 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1573 <td>The ID of the header extension to be read (between 1 and 14).</td>
1576 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1577 <td>Read the nth extension packet with the requested ID</td>
1580 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1581 <td>location for data</td>
1584 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1585 <td>the size of the data in bytes</td>
1588 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1589 <td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1593 <p class="since">Since 0.10.31</p>
1596 <div class="refsect2">
1597 <a name="gst-rtp-buffer-get-extension-twobytes-header"></a><h3>gst_rtp_buffer_get_extension_twobytes_header ()</h3>
1598 <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
1599 (<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>,
1600 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *appbits</code></em>,
1601 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1602 <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>,
1603 <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>,
1604 <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>
1606 Parses RFC 5285 style header extensions with a two bytes header. It will
1607 return the nth extension with the requested id.
1609 <div class="variablelist"><table border="0">
1610 <col align="left" valign="top">
1613 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1617 <td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1618 <td>Application specific bits</td>
1621 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1622 <td>The ID of the header extension to be read (between 1 and 14).</td>
1625 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1626 <td>Read the nth extension packet with the requested ID</td>
1629 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1630 <td>location for data</td>
1633 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1634 <td>the size of the data in bytes</td>
1637 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1638 <td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1642 <p class="since">Since 0.10.31</p>
1645 <div class="refsect2">
1646 <a name="gst-rtp-buffer-add-extension-onebyte-header"></a><h3>gst_rtp_buffer_add_extension_onebyte_header ()</h3>
1647 <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
1648 (<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>,
1649 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1650 <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>,
1651 <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>
1653 Adds a RFC 5285 header extension with a one byte header to the end of the
1654 RTP header. If there is already a RFC 5285 header extension with a one byte
1655 header, the new extension will be appended.
1656 It will not work if there is already a header extension that does not follow
1657 the mecanism described in RFC 5285 or if there is a header extension with
1658 a two bytes header as described in RFC 5285. In that case, use
1659 <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>
1661 <div class="variablelist"><table border="0">
1662 <col align="left" valign="top">
1665 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1669 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1670 <td>The ID of the header extension (between 1 and 14).</td>
1673 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1674 <td>location for data</td>
1677 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1678 <td>the size of the data in bytes</td>
1681 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1683 <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>
1687 <p class="since">Since 0.10.31</p>
1690 <div class="refsect2">
1691 <a name="gst-rtp-buffer-add-extension-twobytes-header"></a><h3>gst_rtp_buffer_add_extension_twobytes_header ()</h3>
1692 <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
1693 (<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>,
1694 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> appbits</code></em>,
1695 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1696 <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>,
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> size</code></em>);</pre>
1699 Adds a RFC 5285 header extension with a two bytes header to the end of the
1700 RTP header. If there is already a RFC 5285 header extension with a two bytes
1701 header, the new extension will be appended.
1702 It will not work if there is already a header extension that does not follow
1703 the mecanism described in RFC 5285 or if there is a header extension with
1704 a one byte header as described in RFC 5285. In that case, use
1705 <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>
1707 <div class="variablelist"><table border="0">
1708 <col align="left" valign="top">
1711 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1715 <td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1716 <td>Application specific bits</td>
1719 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1720 <td>The ID of the header extension</td>
1723 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1724 <td>location for data</td>
1727 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1728 <td>the size of the data in bytes</td>
1731 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1733 <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>
1737 <p class="since">Since 0.10.31</p>
1740 <div class="refsect2">
1741 <a name="gst-rtp-buffer-list-get-extension-onebyte-header"></a><h3>gst_rtp_buffer_list_get_extension_onebyte_header ()</h3>
1742 <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_list_get_extension_onebyte_header
1743 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *bufferlist</code></em>,
1744 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> group_idx</code></em>,
1745 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1746 <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>,
1747 <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>,
1748 <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>
1750 Parses RFC 5285 style header extensions with a one byte header. It will
1751 return the nth extension with the requested id.
1753 <div class="variablelist"><table border="0">
1754 <col align="left" valign="top">
1757 <td><p><span class="term"><em class="parameter"><code>bufferlist</code></em> :</span></p></td>
1758 <td>the bufferlist</td>
1761 <td><p><span class="term"><em class="parameter"><code>group_idx</code></em> :</span></p></td>
1762 <td>The index of the group in the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a>
1766 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1767 <td>The ID of the header extension to be read (between 1 and 14).</td>
1770 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1771 <td>Read the nth extension packet with the requested ID</td>
1774 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1775 <td>location for data</td>
1778 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1779 <td>the size of the data in bytes</td>
1782 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1783 <td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1787 <p class="since">Since 0.10.31</p>
1790 <div class="refsect2">
1791 <a name="gst-rtp-buffer-list-get-extension-twobytes-header"></a><h3>gst_rtp_buffer_list_get_extension_twobytes_header ()</h3>
1792 <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_list_get_extension_twobytes_header
1793 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a> *bufferlist</code></em>,
1794 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> group_idx</code></em>,
1795 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *appbits</code></em>,
1796 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1797 <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>,
1798 <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>,
1799 <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>
1801 Parses RFC 5285 style header extensions with a two bytes header. It will
1802 return the nth extension with the requested id.
1804 <div class="variablelist"><table border="0">
1805 <col align="left" valign="top">
1808 <td><p><span class="term"><em class="parameter"><code>bufferlist</code></em> :</span></p></td>
1809 <td>the bufferlist</td>
1812 <td><p><span class="term"><em class="parameter"><code>group_idx</code></em> :</span></p></td>
1813 <td>The index of the group in the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferList"><span class="type">GstBufferList</span></a>
1817 <td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1818 <td>Application specific bits</td>
1821 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1822 <td>The ID of the header extension to be read (between 1 and 14).</td>
1825 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1826 <td>Read the nth extension packet with the requested ID</td>
1829 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1830 <td>location for data</td>
1833 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1834 <td>the size of the data in bytes</td>
1837 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1838 <td>TRUE if <em class="parameter"><code>buffer</code></em> had the requested header extension</td>
1842 <p class="since">Since 0.10.31</p>
1845 <div class="refsect2">
1846 <a name="gst-rtp-buffer-list-add-extension-onebyte-header"></a><h3>gst_rtp_buffer_list_add_extension_onebyte_header ()</h3>
1847 <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_list_add_extension_onebyte_header
1848 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> *it</code></em>,
1849 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1850 <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>,
1851 <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>
1853 Adds a RFC 5285 header extension with a one byte header to the end of the
1854 RTP header. If there is already a RFC 5285 header extension with a one byte
1855 header, the new extension will be appended.
1856 It will not work if there is already a header extension that does not follow
1857 the mecanism described in RFC 5285 or if there is a header extension with
1858 a two bytes header as described in RFC 5285. In that case, use
1859 <a class="link" href="gst-plugins-base-libs-gstrtpbuffer.html#gst-rtp-buffer-list-add-extension-twobytes-header" title="gst_rtp_buffer_list_add_extension_twobytes_header ()"><code class="function">gst_rtp_buffer_list_add_extension_twobytes_header()</code></a>
1862 This function will not modify the data section of the RTP buffer, only
1865 <div class="variablelist"><table border="0">
1866 <col align="left" valign="top">
1869 <td><p><span class="term"><em class="parameter"><code>it</code></em> :</span></p></td>
1870 <td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> pointing right after the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> where
1871 the header extension should be added</td>
1874 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1875 <td>The ID of the header extension (between 1 and 14).</td>
1878 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1879 <td>location for data</td>
1882 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1883 <td>the size of the data in bytes</td>
1886 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1888 <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>
1892 <p class="since">Since 0.10.31</p>
1895 <div class="refsect2">
1896 <a name="gst-rtp-buffer-list-add-extension-twobytes-header"></a><h3>gst_rtp_buffer_list_add_extension_twobytes_header ()</h3>
1897 <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_list_add_extension_twobytes_header
1898 (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> *it</code></em>,
1899 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> appbits</code></em>,
1900 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> id</code></em>,
1901 <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>,
1902 <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>
1904 Adds a RFC 5285 header extension with a two bytes header to the end of the
1905 RTP header. If there is already a RFC 5285 header extension with a two bytes
1906 header, the new extension will be appended.
1907 It will not work if there is already a header extension that does not follow
1908 the mecanism described in RFC 5285 or if there is a header extension with
1909 a one byte header as described in RFC 5285. In that case, use
1910 <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>
1913 This function will not modify the data section of the RTP buffer, only
1916 <div class="variablelist"><table border="0">
1917 <col align="left" valign="top">
1920 <td><p><span class="term"><em class="parameter"><code>it</code></em> :</span></p></td>
1921 <td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBufferList.html#GstBufferListIterator"><span class="type">GstBufferListIterator</span></a> pointing right after the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> where
1922 the header extension should be added</td>
1925 <td><p><span class="term"><em class="parameter"><code>appbits</code></em> :</span></p></td>
1926 <td>Application specific bits</td>
1929 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
1930 <td>The ID of the header extension</td>
1933 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1934 <td>location for data</td>
1937 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1938 <td>the size of the data in bytes</td>
1941 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1943 <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>
1947 <p class="since">Since 0.10.31</p>
1950 <div class="refsect1">
1951 <a name="gst-plugins-base-libs-gstrtpbuffer.see-also"></a><h2>See Also</h2>
1952 <a class="link" href="gst-plugins-base-libs-gstbasertppayload.html#GstBaseRTPPayload"><span class="type">GstBaseRTPPayload</span></a>, <a class="link" href="gst-plugins-base-libs-gstbasertpdepayload.html#GstBaseRTPDepayload"><span class="type">GstBaseRTPDepayload</span></a>, gstrtcpbuffer
1955 <div class="footer">
1957 Generated by GTK-Doc V1.17</div>