~sipe-collab/sipe-collab/gstreamer-plugins-base

« back to all changes in this revision

Viewing changes to docs/libs/html/gst-plugins-base-libs-gstrtpbuffer.html

  • Committer: Sebastian Dröge
  • Date: 2014-04-19 13:47:47 UTC
  • mfrom: (1.1.23)
  • Revision ID: git-v1:d06393f82dba0d5f13ec2e66275d75cf8178fe5c
Merge tag 'upstream/1.2.4'

Upstream version 1.2.4

Show diffs side-by-side

added added

removed removed

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