1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>gstrtcpbuffer</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Library Reference Manual">
8 <link rel="up" href="gstreamer-rtp.html" title="RTP Library">
9 <link rel="prev" href="gst-plugins-base-libs-gstrtpbuffer.html" title="gstrtpbuffer">
10 <link rel="next" href="gst-plugins-base-libs-gstrtppayloads.html" title="gstrtppayloads">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gst-plugins-base-libs-gstrtpbuffer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="gstreamer-rtp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Base Plugins 0.10 Library Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-base-libs-gstrtppayloads.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-base-libs-gstrtcpbuffer.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-base-libs-gstrtcpbuffer.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="gst-plugins-base-libs-gstrtcpbuffer"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
33 <h2><span class="refentrytitle"><a name="gst-plugins-base-libs-gstrtcpbuffer.top_of_page"></a>gstrtcpbuffer</span></h2>
34 <p>gstrtcpbuffer — Helper methods for dealing with RTCP buffers</p>
36 <td valign="top" align="right"></td>
38 <div class="refsynopsisdiv">
39 <a name="gst-plugins-base-libs-gstrtcpbuffer.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">
41 #include <gst/rtp/gstrtcpbuffer.h>
43 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-VERSION:CAPS" title="GST_RTCP_VERSION">GST_RTCP_VERSION</a>
44 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-SDES:CAPS" title="GST_RTCP_MAX_SDES">GST_RTCP_MAX_SDES</a>
45 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-BYE-SSRC-COUNT:CAPS" title="GST_RTCP_MAX_BYE_SSRC_COUNT">GST_RTCP_MAX_BYE_SSRC_COUNT</a>
46 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-RB-COUNT:CAPS" title="GST_RTCP_MAX_RB_COUNT">GST_RTCP_MAX_RB_COUNT</a>
47 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-SDES-ITEM-COUNT:CAPS" title="GST_RTCP_MAX_SDES_ITEM_COUNT">GST_RTCP_MAX_SDES_ITEM_COUNT</a>
48 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-VALID-MASK:CAPS" title="GST_RTCP_VALID_MASK">GST_RTCP_VALID_MASK</a>
49 #define <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-VALID-VALUE:CAPS" title="GST_RTCP_VALID_VALUE">GST_RTCP_VALID_VALUE</a>
50 enum <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType">GstRTCPType</a>;
51 struct <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket">GstRTCPPacket</a>;
52 enum <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType">GstRTCPSDESType</a>;
53 enum <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType">GstRTCPFBType</a>;
54 <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-gstrtcpbuffer.html#gst-rtcp-buffer-new-take-data" title="gst_rtcp_buffer_new_take_data ()">gst_rtcp_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>,
55 <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>);
56 <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-gstrtcpbuffer.html#gst-rtcp-buffer-new-copy-data" title="gst_rtcp_buffer_new_copy_data ()">gst_rtcp_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>,
57 <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>);
58 <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-gstrtcpbuffer.html#gst-rtcp-buffer-validate-data" title="gst_rtcp_buffer_validate_data ()">gst_rtcp_buffer_validate_data</a> (<em class="parameter"><code><span class="type">guint8</span> *data</code></em>,
59 <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>);
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-gstrtcpbuffer.html#gst-rtcp-buffer-validate" title="gst_rtcp_buffer_validate ()">gst_rtcp_buffer_validate</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
61 <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-gstrtcpbuffer.html#gst-rtcp-buffer-new" title="gst_rtcp_buffer_new ()">gst_rtcp_buffer_new</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> mtu</code></em>);
62 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-end" title="gst_rtcp_buffer_end ()">gst_rtcp_buffer_end</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>);
63 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-get-packet-count" title="gst_rtcp_buffer_get_packet_count ()">gst_rtcp_buffer_get_packet_count</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
64 <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-gstrtcpbuffer.html#gst-rtcp-buffer-get-first-packet" title="gst_rtcp_buffer_get_first_packet ()">gst_rtcp_buffer_get_first_packet</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>,
65 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
66 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-move-to-next" title="gst_rtcp_packet_move_to_next ()">gst_rtcp_packet_move_to_next</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
67 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-add-packet" title="gst_rtcp_buffer_add_packet ()">gst_rtcp_buffer_add_packet</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>,
68 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType"><span class="type">GstRTCPType</span></a> type</code></em>,
69 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
70 <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-gstrtcpbuffer.html#gst-rtcp-packet-remove" title="gst_rtcp_packet_remove ()">gst_rtcp_packet_remove</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
71 <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-gstrtcpbuffer.html#gst-rtcp-packet-get-padding" title="gst_rtcp_packet_get_padding ()">gst_rtcp_packet_get_padding</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
72 <span class="returnvalue">guint8</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-get-count" title="gst_rtcp_packet_get_count ()">gst_rtcp_packet_get_count</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
73 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType"><span class="returnvalue">GstRTCPType</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-get-type" title="gst_rtcp_packet_get_type ()">gst_rtcp_packet_get_type</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
74 <span class="returnvalue">guint16</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-get-length" title="gst_rtcp_packet_get_length ()">gst_rtcp_packet_get_length</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
75 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sr-get-sender-info" title="gst_rtcp_packet_sr_get_sender_info ()">gst_rtcp_packet_sr_get_sender_info</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
76 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
77 <em class="parameter"><code><span class="type">guint64</span> *ntptime</code></em>,
78 <em class="parameter"><code><span class="type">guint32</span> *rtptime</code></em>,
79 <em class="parameter"><code><span class="type">guint32</span> *packet_count</code></em>,
80 <em class="parameter"><code><span class="type">guint32</span> *octet_count</code></em>);
81 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sr-set-sender-info" title="gst_rtcp_packet_sr_set_sender_info ()">gst_rtcp_packet_sr_set_sender_info</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
82 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
83 <em class="parameter"><code><span class="type">guint64</span> ntptime</code></em>,
84 <em class="parameter"><code><span class="type">guint32</span> rtptime</code></em>,
85 <em class="parameter"><code><span class="type">guint32</span> packet_count</code></em>,
86 <em class="parameter"><code><span class="type">guint32</span> octet_count</code></em>);
87 <span class="returnvalue">guint32</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-rr-get-ssrc" title="gst_rtcp_packet_rr_get_ssrc ()">gst_rtcp_packet_rr_get_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
88 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-rr-set-ssrc" title="gst_rtcp_packet_rr_set_ssrc ()">gst_rtcp_packet_rr_set_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
89 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
90 <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-gstrtcpbuffer.html#gst-rtcp-packet-get-rb-count" title="gst_rtcp_packet_get_rb_count ()">gst_rtcp_packet_get_rb_count</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
91 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-get-rb" title="gst_rtcp_packet_get_rb ()">gst_rtcp_packet_get_rb</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
92 <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>,
93 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
94 <em class="parameter"><code><span class="type">guint8</span> *fractionlost</code></em>,
95 <em class="parameter"><code><span class="type">gint32</span> *packetslost</code></em>,
96 <em class="parameter"><code><span class="type">guint32</span> *exthighestseq</code></em>,
97 <em class="parameter"><code><span class="type">guint32</span> *jitter</code></em>,
98 <em class="parameter"><code><span class="type">guint32</span> *lsr</code></em>,
99 <em class="parameter"><code><span class="type">guint32</span> *dlsr</code></em>);
100 <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-gstrtcpbuffer.html#gst-rtcp-packet-add-rb" title="gst_rtcp_packet_add_rb ()">gst_rtcp_packet_add_rb</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
101 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
102 <em class="parameter"><code><span class="type">guint8</span> fractionlost</code></em>,
103 <em class="parameter"><code><span class="type">gint32</span> packetslost</code></em>,
104 <em class="parameter"><code><span class="type">guint32</span> exthighestseq</code></em>,
105 <em class="parameter"><code><span class="type">guint32</span> jitter</code></em>,
106 <em class="parameter"><code><span class="type">guint32</span> lsr</code></em>,
107 <em class="parameter"><code><span class="type">guint32</span> dlsr</code></em>);
108 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-set-rb" title="gst_rtcp_packet_set_rb ()">gst_rtcp_packet_set_rb</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
109 <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>,
110 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
111 <em class="parameter"><code><span class="type">guint8</span> fractionlost</code></em>,
112 <em class="parameter"><code><span class="type">gint32</span> packetslost</code></em>,
113 <em class="parameter"><code><span class="type">guint32</span> exthighestseq</code></em>,
114 <em class="parameter"><code><span class="type">guint32</span> jitter</code></em>,
115 <em class="parameter"><code><span class="type">guint32</span> lsr</code></em>,
116 <em class="parameter"><code><span class="type">guint32</span> dlsr</code></em>);
117 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-get-item-count" title="gst_rtcp_packet_sdes_get_item_count ()">gst_rtcp_packet_sdes_get_item_count</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
118 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-first-item" title="gst_rtcp_packet_sdes_first_item ()">gst_rtcp_packet_sdes_first_item</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
119 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-next-item" title="gst_rtcp_packet_sdes_next_item ()">gst_rtcp_packet_sdes_next_item</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
120 <span class="returnvalue">guint32</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sdes-get-ssrc" title="gst_rtcp_packet_sdes_get_ssrc ()">gst_rtcp_packet_sdes_get_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
121 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sdes-first-entry" title="gst_rtcp_packet_sdes_first_entry ()">gst_rtcp_packet_sdes_first_entry</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
122 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-next-entry" title="gst_rtcp_packet_sdes_next_entry ()">gst_rtcp_packet_sdes_next_entry</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-get-entry" title="gst_rtcp_packet_sdes_get_entry ()">gst_rtcp_packet_sdes_get_entry</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
124 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> *type</code></em>,
125 <em class="parameter"><code><span class="type">guint8</span> *len</code></em>,
126 <em class="parameter"><code><span class="type">guint8</span> **data</code></em>);
127 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-copy-entry" title="gst_rtcp_packet_sdes_copy_entry ()">gst_rtcp_packet_sdes_copy_entry</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
128 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> *type</code></em>,
129 <em class="parameter"><code><span class="type">guint8</span> *len</code></em>,
130 <em class="parameter"><code><span class="type">guint8</span> **data</code></em>);
131 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-add-item" title="gst_rtcp_packet_sdes_add_item ()">gst_rtcp_packet_sdes_add_item</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
132 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
133 <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-gstrtcpbuffer.html#gst-rtcp-packet-sdes-add-entry" title="gst_rtcp_packet_sdes_add_entry ()">gst_rtcp_packet_sdes_add_entry</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
134 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> type</code></em>,
135 <em class="parameter"><code><span class="type">guint8</span> len</code></em>,
136 <em class="parameter"><code>const <span class="type">guint8</span> *data</code></em>);
137 <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-gstrtcpbuffer.html#gst-rtcp-packet-bye-get-ssrc-count" title="gst_rtcp_packet_bye_get_ssrc_count ()">gst_rtcp_packet_bye_get_ssrc_count</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
138 <span class="returnvalue">guint32</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-bye-get-nth-ssrc" title="gst_rtcp_packet_bye_get_nth_ssrc ()">gst_rtcp_packet_bye_get_nth_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
139 <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>);
140 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-bye-add-ssrc" title="gst_rtcp_packet_bye_add_ssrc ()">gst_rtcp_packet_bye_add_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
141 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
142 <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-gstrtcpbuffer.html#gst-rtcp-packet-bye-add-ssrcs" title="gst_rtcp_packet_bye_add_ssrcs ()">gst_rtcp_packet_bye_add_ssrcs</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
143 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
144 <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>);
145 <span class="returnvalue">guint8</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-bye-get-reason-len" title="gst_rtcp_packet_bye_get_reason_len ()">gst_rtcp_packet_bye_get_reason_len</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
146 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-bye-get-reason" title="gst_rtcp_packet_bye_get_reason ()">gst_rtcp_packet_bye_get_reason</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
147 <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-gstrtcpbuffer.html#gst-rtcp-packet-bye-set-reason" title="gst_rtcp_packet_bye_set_reason ()">gst_rtcp_packet_bye_set_reason</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
148 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *reason</code></em>);
149 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType"><span class="returnvalue">GstRTCPFBType</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-get-type" title="gst_rtcp_packet_fb_get_type ()">gst_rtcp_packet_fb_get_type</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
150 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-set-type" title="gst_rtcp_packet_fb_set_type ()">gst_rtcp_packet_fb_set_type</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
151 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType"><span class="type">GstRTCPFBType</span></a> type</code></em>);
152 <span class="returnvalue">guint32</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-get-sender-ssrc" title="gst_rtcp_packet_fb_get_sender_ssrc ()">gst_rtcp_packet_fb_get_sender_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
153 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-set-sender-ssrc" title="gst_rtcp_packet_fb_set_sender_ssrc ()">gst_rtcp_packet_fb_set_sender_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
154 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
155 <span class="returnvalue">guint32</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-get-media-ssrc" title="gst_rtcp_packet_fb_get_media_ssrc ()">gst_rtcp_packet_fb_get_media_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
156 <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-set-media-ssrc" title="gst_rtcp_packet_fb_set_media_ssrc ()">gst_rtcp_packet_fb_set_media_ssrc</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
157 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);
158 <span class="returnvalue">guint16</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-get-fci-length" title="gst_rtcp_packet_fb_get_fci_length ()">gst_rtcp_packet_fb_get_fci_length</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
159 <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-gstrtcpbuffer.html#gst-rtcp-packet-fb-set-fci-length" title="gst_rtcp_packet_fb_set_fci_length ()">gst_rtcp_packet_fb_set_fci_length</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
160 <em class="parameter"><code><span class="type">guint16</span> wordlen</code></em>);
161 <span class="returnvalue">guint8</span> * <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-fb-get-fci" title="gst_rtcp_packet_fb_get_fci ()">gst_rtcp_packet_fb_get_fci</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);
162 <span class="returnvalue">guint64</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-ntp-to-unix" title="gst_rtcp_ntp_to_unix ()">gst_rtcp_ntp_to_unix</a> (<em class="parameter"><code><span class="type">guint64</span> ntptime</code></em>);
163 <span class="returnvalue">guint64</span> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-unix-to-ntp" title="gst_rtcp_unix_to_ntp ()">gst_rtcp_unix_to_ntp</a> (<em class="parameter"><code><span class="type">guint64</span> unixtime</code></em>);
164 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="returnvalue">GstRTCPSDESType</span></a> <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-sdes-name-to-type" title="gst_rtcp_sdes_name_to_type ()">gst_rtcp_sdes_name_to_type</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
165 const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-sdes-type-to-name" title="gst_rtcp_sdes_type_to_name ()">gst_rtcp_sdes_type_to_name</a> (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> type</code></em>);
168 <div class="refsect1">
169 <a name="gst-plugins-base-libs-gstrtcpbuffer.description"></a><h2>Description</h2>
171 Note: The API in this module is not yet declared stable.
175 <div class="refsect2">
176 <a name="idp19709744"></a><p>
177 The GstRTPCBuffer helper functions makes it easy to parse and create regular
178 <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 compound RTCP packets. These buffers are typically
179 of 'application/x-rtcp' <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a>.
182 An RTCP buffer consists of 1 or more <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> structures that you can
183 retrieve with <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-get-first-packet" title="gst_rtcp_buffer_get_first_packet ()"><code class="function">gst_rtcp_buffer_get_first_packet()</code></a>. <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> acts as a pointer
184 into the RTCP buffer; you can move to the next packet with
185 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-move-to-next" title="gst_rtcp_packet_move_to_next ()"><code class="function">gst_rtcp_packet_move_to_next()</code></a>.
191 Last reviewed on 2007-03-26 (0.10.13)
194 <div class="refsect1">
195 <a name="gst-plugins-base-libs-gstrtcpbuffer.details"></a><h2>Details</h2>
196 <div class="refsect2">
197 <a name="GST-RTCP-VERSION:CAPS"></a><h3>GST_RTCP_VERSION</h3>
198 <pre class="programlisting">#define GST_RTCP_VERSION 2
201 The supported RTCP version 2.
205 <div class="refsect2">
206 <a name="GST-RTCP-MAX-SDES:CAPS"></a><h3>GST_RTCP_MAX_SDES</h3>
207 <pre class="programlisting">#define GST_RTCP_MAX_SDES 255
210 The maximum text length for an SDES item.
214 <div class="refsect2">
215 <a name="GST-RTCP-MAX-BYE-SSRC-COUNT:CAPS"></a><h3>GST_RTCP_MAX_BYE_SSRC_COUNT</h3>
216 <pre class="programlisting">#define GST_RTCP_MAX_BYE_SSRC_COUNT 31
219 The maximum amount of SSRCs in a BYE packet.
223 <div class="refsect2">
224 <a name="GST-RTCP-MAX-RB-COUNT:CAPS"></a><h3>GST_RTCP_MAX_RB_COUNT</h3>
225 <pre class="programlisting">#define GST_RTCP_MAX_RB_COUNT 31
228 The maximum amount of Receiver report blocks in RR and SR messages.
232 <div class="refsect2">
233 <a name="GST-RTCP-MAX-SDES-ITEM-COUNT:CAPS"></a><h3>GST_RTCP_MAX_SDES_ITEM_COUNT</h3>
234 <pre class="programlisting">#define GST_RTCP_MAX_SDES_ITEM_COUNT 31
237 The maximum amount of SDES items.
241 <div class="refsect2">
242 <a name="GST-RTCP-VALID-MASK:CAPS"></a><h3>GST_RTCP_VALID_MASK</h3>
243 <pre class="programlisting">#define GST_RTCP_VALID_MASK (0xc000 | 0x2000 | 0xfe)
246 Mask for version, padding bit and packet type pair
250 <div class="refsect2">
251 <a name="GST-RTCP-VALID-VALUE:CAPS"></a><h3>GST_RTCP_VALID_VALUE</h3>
252 <pre class="programlisting">#define GST_RTCP_VALID_VALUE ((GST_RTCP_VERSION << 14) | GST_RTCP_TYPE_SR)
255 Valid value for the first two bytes of an RTCP packet after applying
256 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-VALID-MASK:CAPS" title="GST_RTCP_VALID_MASK"><span class="type">GST_RTCP_VALID_MASK</span></a> to them.
260 <div class="refsect2">
261 <a name="GstRTCPType"></a><h3>enum GstRTCPType</h3>
262 <pre class="programlisting">typedef enum {
263 GST_RTCP_TYPE_INVALID = 0,
264 GST_RTCP_TYPE_SR = 200,
265 GST_RTCP_TYPE_RR = 201,
266 GST_RTCP_TYPE_SDES = 202,
267 GST_RTCP_TYPE_BYE = 203,
268 GST_RTCP_TYPE_APP = 204,
269 GST_RTCP_TYPE_RTPFB = 205,
270 GST_RTCP_TYPE_PSFB = 206
274 Different RTCP packet types.
276 <div class="variablelist"><table border="0">
277 <col align="left" valign="top">
280 <td><p><a name="GST-RTCP-TYPE-INVALID:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_INVALID</code></span></p></td>
285 <td><p><a name="GST-RTCP-TYPE-SR:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_SR</code></span></p></td>
290 <td><p><a name="GST-RTCP-TYPE-RR:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_RR</code></span></p></td>
295 <td><p><a name="GST-RTCP-TYPE-SDES:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_SDES</code></span></p></td>
296 <td>Source description
300 <td><p><a name="GST-RTCP-TYPE-BYE:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_BYE</code></span></p></td>
305 <td><p><a name="GST-RTCP-TYPE-APP:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_APP</code></span></p></td>
306 <td>Application defined
310 <td><p><a name="GST-RTCP-TYPE-RTPFB:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_RTPFB</code></span></p></td>
311 <td>Transport layer feedback. Since: 0.10.23
315 <td><p><a name="GST-RTCP-TYPE-PSFB:CAPS"></a><span class="term"><code class="literal">GST_RTCP_TYPE_PSFB</code></span></p></td>
316 <td>Payload-specific feedback. Since: 0.10.23
323 <div class="refsect2">
324 <a name="GstRTCPPacket"></a><h3>struct GstRTCPPacket</h3>
325 <pre class="programlisting">struct GstRTCPPacket {
331 Data structure that points to a packet at <em class="parameter"><code>offset</code></em> in <em class="parameter"><code>buffer</code></em>.
332 The size of the structure is made public to allow stack allocations.
334 <div class="variablelist"><table border="0">
335 <col align="left" valign="top">
338 <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="GstRTCPPacket.buffer"></a>buffer</code></em>;</span></p></td>
339 <td>pointer to RTCP buffer</td>
342 <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="GstRTCPPacket.offset"></a>offset</code></em>;</span></p></td>
343 <td>offset of packet in buffer data</td>
349 <div class="refsect2">
350 <a name="GstRTCPSDESType"></a><h3>enum GstRTCPSDESType</h3>
351 <pre class="programlisting">typedef enum {
352 GST_RTCP_SDES_INVALID = -1,
353 GST_RTCP_SDES_END = 0,
354 GST_RTCP_SDES_CNAME = 1,
355 GST_RTCP_SDES_NAME = 2,
356 GST_RTCP_SDES_EMAIL = 3,
357 GST_RTCP_SDES_PHONE = 4,
358 GST_RTCP_SDES_LOC = 5,
359 GST_RTCP_SDES_TOOL = 6,
360 GST_RTCP_SDES_NOTE = 7,
361 GST_RTCP_SDES_PRIV = 8
365 Different types of SDES content.
367 <div class="variablelist"><table border="0">
368 <col align="left" valign="top">
371 <td><p><a name="GST-RTCP-SDES-INVALID:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_INVALID</code></span></p></td>
372 <td>Invalid SDES entry
376 <td><p><a name="GST-RTCP-SDES-END:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_END</code></span></p></td>
381 <td><p><a name="GST-RTCP-SDES-CNAME:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_CNAME</code></span></p></td>
386 <td><p><a name="GST-RTCP-SDES-NAME:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_NAME</code></span></p></td>
391 <td><p><a name="GST-RTCP-SDES-EMAIL:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_EMAIL</code></span></p></td>
392 <td>User's electronic mail address
396 <td><p><a name="GST-RTCP-SDES-PHONE:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_PHONE</code></span></p></td>
397 <td>User's phone number
401 <td><p><a name="GST-RTCP-SDES-LOC:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_LOC</code></span></p></td>
402 <td>Geographic user location
406 <td><p><a name="GST-RTCP-SDES-TOOL:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_TOOL</code></span></p></td>
407 <td>Name of application or tool
411 <td><p><a name="GST-RTCP-SDES-NOTE:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_NOTE</code></span></p></td>
412 <td>Notice about the source
416 <td><p><a name="GST-RTCP-SDES-PRIV:CAPS"></a><span class="term"><code class="literal">GST_RTCP_SDES_PRIV</code></span></p></td>
417 <td>Private extensions
424 <div class="refsect2">
425 <a name="GstRTCPFBType"></a><h3>enum GstRTCPFBType</h3>
426 <pre class="programlisting">typedef enum {
428 GST_RTCP_FB_TYPE_INVALID = 0,
430 GST_RTCP_RTPFB_TYPE_NACK = 1,
431 /* RTPFB types assigned in RFC 5104 */
432 GST_RTCP_RTPFB_TYPE_TMMBR = 3,
433 GST_RTCP_RTPFB_TYPE_TMMBN = 4,
435 GST_RTCP_PSFB_TYPE_PLI = 1,
436 GST_RTCP_PSFB_TYPE_SLI = 2,
437 GST_RTCP_PSFB_TYPE_RPSI = 3,
438 GST_RTCP_PSFB_TYPE_AFB = 15,
439 /* PSFB types assigned in RFC 5104 */
440 GST_RTCP_PSFB_TYPE_FIR = 4,
441 GST_RTCP_PSFB_TYPE_TSTR = 5,
442 GST_RTCP_PSFB_TYPE_TSTN = 6,
443 GST_RTCP_PSFB_TYPE_VBCN = 7,
447 Different types of feedback messages.
449 <div class="variablelist"><table border="0">
450 <col align="left" valign="top">
453 <td><p><a name="GST-RTCP-FB-TYPE-INVALID:CAPS"></a><span class="term"><code class="literal">GST_RTCP_FB_TYPE_INVALID</code></span></p></td>
458 <td><p><a name="GST-RTCP-RTPFB-TYPE-NACK:CAPS"></a><span class="term"><code class="literal">GST_RTCP_RTPFB_TYPE_NACK</code></span></p></td>
463 <td><p><a name="GST-RTCP-RTPFB-TYPE-TMMBR:CAPS"></a><span class="term"><code class="literal">GST_RTCP_RTPFB_TYPE_TMMBR</code></span></p></td>
464 <td>Temporary Maximum Media Stream Bit Rate Request
468 <td><p><a name="GST-RTCP-RTPFB-TYPE-TMMBN:CAPS"></a><span class="term"><code class="literal">GST_RTCP_RTPFB_TYPE_TMMBN</code></span></p></td>
469 <td>Temporary Maximum Media Stream Bit Rate
474 <td><p><a name="GST-RTCP-PSFB-TYPE-PLI:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_PLI</code></span></p></td>
475 <td>Picture Loss Indication
479 <td><p><a name="GST-RTCP-PSFB-TYPE-SLI:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_SLI</code></span></p></td>
480 <td>Slice Loss Indication
484 <td><p><a name="GST-RTCP-PSFB-TYPE-RPSI:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_RPSI</code></span></p></td>
485 <td>Reference Picture Selection Indication
489 <td><p><a name="GST-RTCP-PSFB-TYPE-AFB:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_AFB</code></span></p></td>
490 <td>Application layer Feedback
494 <td><p><a name="GST-RTCP-PSFB-TYPE-FIR:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_FIR</code></span></p></td>
495 <td>Full Intra Request Command
499 <td><p><a name="GST-RTCP-PSFB-TYPE-TSTR:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_TSTR</code></span></p></td>
500 <td>Temporal-Spatial Trade-off Request
504 <td><p><a name="GST-RTCP-PSFB-TYPE-TSTN:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_TSTN</code></span></p></td>
505 <td>Temporal-Spatial Trade-off Notification
509 <td><p><a name="GST-RTCP-PSFB-TYPE-VBCN:CAPS"></a><span class="term"><code class="literal">GST_RTCP_PSFB_TYPE_VBCN</code></span></p></td>
510 <td>Video Back Channel Message
515 <p class="since">Since 0.10.23</p>
518 <div class="refsect2">
519 <a name="gst-rtcp-buffer-new-take-data"></a><h3>gst_rtcp_buffer_new_take_data ()</h3>
520 <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_rtcp_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>,
521 <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>
523 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>
524 respectively. <em class="parameter"><code>data</code></em> will be freed when the buffer is unreffed, so this
525 function transfers ownership of <em class="parameter"><code>data</code></em> to the new buffer.
527 <div class="variablelist"><table border="0">
528 <col align="left" valign="top">
531 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
532 <td>data for the new buffer</td>
535 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
536 <td>the length of data</td>
539 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
540 <td>A newly allocated buffer with <em class="parameter"><code>data</code></em> and of size <em class="parameter"><code>len</code></em>.</td>
546 <div class="refsect2">
547 <a name="gst-rtcp-buffer-new-copy-data"></a><h3>gst_rtcp_buffer_new_copy_data ()</h3>
548 <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_rtcp_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>,
549 <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>
551 Create a new buffer and set the data to a copy of <em class="parameter"><code>len</code></em>
552 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
555 <div class="variablelist"><table border="0">
556 <col align="left" valign="top">
559 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
560 <td>data for the new buffer</td>
563 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
564 <td>the length of data</td>
567 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
568 <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>
574 <div class="refsect2">
575 <a name="gst-rtcp-buffer-validate-data"></a><h3>gst_rtcp_buffer_validate_data ()</h3>
576 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_buffer_validate_data (<em class="parameter"><code><span class="type">guint8</span> *data</code></em>,
577 <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>
579 Check if the <em class="parameter"><code>data</code></em> and <em class="parameter"><code>size</code></em> point to the data of a valid RTCP (compound)
581 Use this function to validate a packet before using the other functions in
584 <div class="variablelist"><table border="0">
585 <col align="left" valign="top">
588 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
589 <td>the data to validate</td>
592 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
593 <td>the length of <em class="parameter"><code>data</code></em> to validate</td>
596 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
597 <td>TRUE if the data points to a valid RTCP packet.</td>
603 <div class="refsect2">
604 <a name="gst-rtcp-buffer-validate"></a><h3>gst_rtcp_buffer_validate ()</h3>
605 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_buffer_validate (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
607 Check if the data pointed to by <em class="parameter"><code>buffer</code></em> is a valid RTCP packet using
608 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-validate-data" title="gst_rtcp_buffer_validate_data ()"><code class="function">gst_rtcp_buffer_validate_data()</code></a>.
610 <div class="variablelist"><table border="0">
611 <col align="left" valign="top">
614 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
615 <td>the buffer to validate</td>
618 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
619 <td>TRUE if <em class="parameter"><code>buffer</code></em> is a valid RTCP packet.</td>
625 <div class="refsect2">
626 <a name="gst-rtcp-buffer-new"></a><h3>gst_rtcp_buffer_new ()</h3>
627 <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_rtcp_buffer_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> mtu</code></em>);</pre>
629 Create a new buffer for constructing RTCP packets. The packet will have a
630 maximum size of <em class="parameter"><code>mtu</code></em>.
632 <div class="variablelist"><table border="0">
633 <col align="left" valign="top">
636 <td><p><span class="term"><em class="parameter"><code>mtu</code></em> :</span></p></td>
637 <td>the maximum mtu size.</td>
640 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
641 <td>A newly allocated buffer.</td>
647 <div class="refsect2">
648 <a name="gst-rtcp-buffer-end"></a><h3>gst_rtcp_buffer_end ()</h3>
649 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_buffer_end (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
651 Finish <em class="parameter"><code>buffer</code></em> after being constructured. This function is usually called
652 after <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-new" title="gst_rtcp_buffer_new ()"><code class="function">gst_rtcp_buffer_new()</code></a> and after adding the RTCP items to the new buffer.
655 The function adjusts the size of <em class="parameter"><code>buffer</code></em> with the total length of all the
658 <div class="variablelist"><table border="0">
659 <col align="left" valign="top">
661 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
662 <td>a buffer with an RTCP packet</td>
667 <div class="refsect2">
668 <a name="gst-rtcp-buffer-get-packet-count"></a><h3>gst_rtcp_buffer_get_packet_count ()</h3>
669 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtcp_buffer_get_packet_count (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
671 Get the number of RTCP packets in <em class="parameter"><code>buffer</code></em>.
673 <div class="variablelist"><table border="0">
674 <col align="left" valign="top">
677 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
678 <td>a valid RTCP buffer</td>
681 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
682 <td>the number of RTCP packets in <em class="parameter"><code>buffer</code></em>.</td>
688 <div class="refsect2">
689 <a name="gst-rtcp-buffer-get-first-packet"></a><h3>gst_rtcp_buffer_get_first_packet ()</h3>
690 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_buffer_get_first_packet (<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>,
691 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
693 Initialize a new <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> pointer that points to the first packet in
694 <em class="parameter"><code>buffer</code></em>.
696 <div class="variablelist"><table border="0">
697 <col align="left" valign="top">
700 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
701 <td>a valid RTCP buffer</td>
704 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
705 <td>a <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
709 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
710 <td>TRUE if the packet existed in <em class="parameter"><code>buffer</code></em>.</td>
716 <div class="refsect2">
717 <a name="gst-rtcp-packet-move-to-next"></a><h3>gst_rtcp_packet_move_to_next ()</h3>
718 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_move_to_next (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
720 Move the packet pointer <em class="parameter"><code>packet</code></em> to the next packet in the payload.
721 Use <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-buffer-get-first-packet" title="gst_rtcp_buffer_get_first_packet ()"><code class="function">gst_rtcp_buffer_get_first_packet()</code></a> to initialize <em class="parameter"><code>packet</code></em>.
723 <div class="variablelist"><table border="0">
724 <col align="left" valign="top">
727 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
728 <td>a <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
732 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
733 <td>TRUE if <em class="parameter"><code>packet</code></em> is pointing to a valid packet after calling this
740 <div class="refsect2">
741 <a name="gst-rtcp-buffer-add-packet"></a><h3>gst_rtcp_buffer_add_packet ()</h3>
742 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_buffer_add_packet (<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>,
743 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType"><span class="type">GstRTCPType</span></a> type</code></em>,
744 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
746 Add a new packet of <em class="parameter"><code>type</code></em> to <em class="parameter"><code>buffer</code></em>. <em class="parameter"><code>packet</code></em> will point to the newly created
749 <div class="variablelist"><table border="0">
750 <col align="left" valign="top">
753 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
754 <td>a valid RTCP buffer</td>
757 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
758 <td>the <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType"><span class="type">GstRTCPType</span></a> of the new packet</td>
761 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
762 <td>pointer to new packet</td>
765 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
767 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the packet could be created. This function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
768 if the max mtu is exceeded for the buffer.</td>
774 <div class="refsect2">
775 <a name="gst-rtcp-packet-remove"></a><h3>gst_rtcp_packet_remove ()</h3>
776 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_remove (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
778 Removes the packet pointed to by <em class="parameter"><code>packet</code></em> and moves pointer to the next one
780 <div class="variablelist"><table border="0">
781 <col align="left" valign="top">
784 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
785 <td>a <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
789 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
790 <td>TRUE if <em class="parameter"><code>packet</code></em> is pointing to a valid packet after calling this
797 <div class="refsect2">
798 <a name="gst-rtcp-packet-get-padding"></a><h3>gst_rtcp_packet_get_padding ()</h3>
799 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_get_padding (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
801 Get the packet padding of the packet pointed to by <em class="parameter"><code>packet</code></em>.
803 <div class="variablelist"><table border="0">
804 <col align="left" valign="top">
807 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
808 <td>a valid <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
812 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
813 <td>If the packet has the padding bit set.</td>
819 <div class="refsect2">
820 <a name="gst-rtcp-packet-get-count"></a><h3>gst_rtcp_packet_get_count ()</h3>
821 <pre class="programlisting"><span class="returnvalue">guint8</span> gst_rtcp_packet_get_count (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
823 Get the count field in <em class="parameter"><code>packet</code></em>.
825 <div class="variablelist"><table border="0">
826 <col align="left" valign="top">
829 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
830 <td>a valid <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
834 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
835 <td>The count field in <em class="parameter"><code>packet</code></em> or -1 if <em class="parameter"><code>packet</code></em> does not point to a
842 <div class="refsect2">
843 <a name="gst-rtcp-packet-get-type"></a><h3>gst_rtcp_packet_get_type ()</h3>
844 <pre class="programlisting"><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPType" title="enum GstRTCPType"><span class="returnvalue">GstRTCPType</span></a> gst_rtcp_packet_get_type (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
846 Get the packet type of the packet pointed to by <em class="parameter"><code>packet</code></em>.
848 <div class="variablelist"><table border="0">
849 <col align="left" valign="top">
852 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
853 <td>a valid <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
857 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
858 <td>The packet type or GST_RTCP_TYPE_INVALID when <em class="parameter"><code>packet</code></em> is not
859 pointing to a valid packet.</td>
865 <div class="refsect2">
866 <a name="gst-rtcp-packet-get-length"></a><h3>gst_rtcp_packet_get_length ()</h3>
867 <pre class="programlisting"><span class="returnvalue">guint16</span> gst_rtcp_packet_get_length (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
869 Get the length field of <em class="parameter"><code>packet</code></em>. This is the length of the packet in
870 32-bit words minus one.
872 <div class="variablelist"><table border="0">
873 <col align="left" valign="top">
876 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
877 <td>a valid <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
881 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
882 <td>The length field of <em class="parameter"><code>packet</code></em>.</td>
888 <div class="refsect2">
889 <a name="gst-rtcp-packet-sr-get-sender-info"></a><h3>gst_rtcp_packet_sr_get_sender_info ()</h3>
890 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_sr_get_sender_info (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
891 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
892 <em class="parameter"><code><span class="type">guint64</span> *ntptime</code></em>,
893 <em class="parameter"><code><span class="type">guint32</span> *rtptime</code></em>,
894 <em class="parameter"><code><span class="type">guint32</span> *packet_count</code></em>,
895 <em class="parameter"><code><span class="type">guint32</span> *octet_count</code></em>);</pre>
897 Parse the SR sender info and store the values.
899 <div class="variablelist"><table border="0">
900 <col align="left" valign="top">
903 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
904 <td>a valid SR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
908 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
912 <td><p><span class="term"><em class="parameter"><code>ntptime</code></em> :</span></p></td>
913 <td>result NTP time</td>
916 <td><p><span class="term"><em class="parameter"><code>rtptime</code></em> :</span></p></td>
917 <td>result RTP time</td>
920 <td><p><span class="term"><em class="parameter"><code>packet_count</code></em> :</span></p></td>
921 <td>result packet count</td>
924 <td><p><span class="term"><em class="parameter"><code>octet_count</code></em> :</span></p></td>
925 <td>result octet count</td>
931 <div class="refsect2">
932 <a name="gst-rtcp-packet-sr-set-sender-info"></a><h3>gst_rtcp_packet_sr_set_sender_info ()</h3>
933 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_sr_set_sender_info (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
934 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
935 <em class="parameter"><code><span class="type">guint64</span> ntptime</code></em>,
936 <em class="parameter"><code><span class="type">guint32</span> rtptime</code></em>,
937 <em class="parameter"><code><span class="type">guint32</span> packet_count</code></em>,
938 <em class="parameter"><code><span class="type">guint32</span> octet_count</code></em>);</pre>
940 Set the given values in the SR packet <em class="parameter"><code>packet</code></em>.
942 <div class="variablelist"><table border="0">
943 <col align="left" valign="top">
946 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
947 <td>a valid SR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
951 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
955 <td><p><span class="term"><em class="parameter"><code>ntptime</code></em> :</span></p></td>
956 <td>the NTP time</td>
959 <td><p><span class="term"><em class="parameter"><code>rtptime</code></em> :</span></p></td>
960 <td>the RTP time</td>
963 <td><p><span class="term"><em class="parameter"><code>packet_count</code></em> :</span></p></td>
964 <td>the packet count</td>
967 <td><p><span class="term"><em class="parameter"><code>octet_count</code></em> :</span></p></td>
968 <td>the octet count</td>
974 <div class="refsect2">
975 <a name="gst-rtcp-packet-rr-get-ssrc"></a><h3>gst_rtcp_packet_rr_get_ssrc ()</h3>
976 <pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtcp_packet_rr_get_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
978 Get the ssrc field of the RR <em class="parameter"><code>packet</code></em>.
980 <div class="variablelist"><table border="0">
981 <col align="left" valign="top">
984 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
985 <td>a valid RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
989 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
996 <div class="refsect2">
997 <a name="gst-rtcp-packet-rr-set-ssrc"></a><h3>gst_rtcp_packet_rr_set_ssrc ()</h3>
998 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_rr_set_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
999 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1001 Set the ssrc field of the RR <em class="parameter"><code>packet</code></em>.
1003 <div class="variablelist"><table border="0">
1004 <col align="left" valign="top">
1007 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1008 <td>a valid RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1012 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1013 <td>the SSRC to set</td>
1019 <div class="refsect2">
1020 <a name="gst-rtcp-packet-get-rb-count"></a><h3>gst_rtcp_packet_get_rb_count ()</h3>
1021 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtcp_packet_get_rb_count (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1023 Get the number of report blocks in <em class="parameter"><code>packet</code></em>.
1025 <div class="variablelist"><table border="0">
1026 <col align="left" valign="top">
1029 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1030 <td>a valid SR or RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1034 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1035 <td>The number of report blocks in <em class="parameter"><code>packet</code></em>.</td>
1041 <div class="refsect2">
1042 <a name="gst-rtcp-packet-get-rb"></a><h3>gst_rtcp_packet_get_rb ()</h3>
1043 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_get_rb (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1044 <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>,
1045 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
1046 <em class="parameter"><code><span class="type">guint8</span> *fractionlost</code></em>,
1047 <em class="parameter"><code><span class="type">gint32</span> *packetslost</code></em>,
1048 <em class="parameter"><code><span class="type">guint32</span> *exthighestseq</code></em>,
1049 <em class="parameter"><code><span class="type">guint32</span> *jitter</code></em>,
1050 <em class="parameter"><code><span class="type">guint32</span> *lsr</code></em>,
1051 <em class="parameter"><code><span class="type">guint32</span> *dlsr</code></em>);</pre>
1053 Parse the values of the <em class="parameter"><code>nth</code></em> report block in <em class="parameter"><code>packet</code></em> and store the result in
1056 <div class="variablelist"><table border="0">
1057 <col align="left" valign="top">
1060 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1061 <td>a valid SR or RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1065 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1066 <td>the nth report block in <em class="parameter"><code>packet</code></em>
1070 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1071 <td>result for data source being reported</td>
1074 <td><p><span class="term"><em class="parameter"><code>fractionlost</code></em> :</span></p></td>
1075 <td>result for fraction lost since last SR/RR</td>
1078 <td><p><span class="term"><em class="parameter"><code>packetslost</code></em> :</span></p></td>
1079 <td>result for the cumululative number of packets lost</td>
1082 <td><p><span class="term"><em class="parameter"><code>exthighestseq</code></em> :</span></p></td>
1083 <td>result for the extended last sequence number received</td>
1086 <td><p><span class="term"><em class="parameter"><code>jitter</code></em> :</span></p></td>
1087 <td>result for the interarrival jitter</td>
1090 <td><p><span class="term"><em class="parameter"><code>lsr</code></em> :</span></p></td>
1091 <td>result for the last SR packet from this source</td>
1094 <td><p><span class="term"><em class="parameter"><code>dlsr</code></em> :</span></p></td>
1095 <td>result for the delay since last SR packet</td>
1101 <div class="refsect2">
1102 <a name="gst-rtcp-packet-add-rb"></a><h3>gst_rtcp_packet_add_rb ()</h3>
1103 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_add_rb (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1104 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
1105 <em class="parameter"><code><span class="type">guint8</span> fractionlost</code></em>,
1106 <em class="parameter"><code><span class="type">gint32</span> packetslost</code></em>,
1107 <em class="parameter"><code><span class="type">guint32</span> exthighestseq</code></em>,
1108 <em class="parameter"><code><span class="type">guint32</span> jitter</code></em>,
1109 <em class="parameter"><code><span class="type">guint32</span> lsr</code></em>,
1110 <em class="parameter"><code><span class="type">guint32</span> dlsr</code></em>);</pre>
1112 Add a new report block to <em class="parameter"><code>packet</code></em> with the given values.
1114 <div class="variablelist"><table border="0">
1115 <col align="left" valign="top">
1118 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1119 <td>a valid SR or RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1123 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1124 <td>data source being reported</td>
1127 <td><p><span class="term"><em class="parameter"><code>fractionlost</code></em> :</span></p></td>
1128 <td>fraction lost since last SR/RR</td>
1131 <td><p><span class="term"><em class="parameter"><code>packetslost</code></em> :</span></p></td>
1132 <td>the cumululative number of packets lost</td>
1135 <td><p><span class="term"><em class="parameter"><code>exthighestseq</code></em> :</span></p></td>
1136 <td>the extended last sequence number received</td>
1139 <td><p><span class="term"><em class="parameter"><code>jitter</code></em> :</span></p></td>
1140 <td>the interarrival jitter</td>
1143 <td><p><span class="term"><em class="parameter"><code>lsr</code></em> :</span></p></td>
1144 <td>the last SR packet from this source</td>
1147 <td><p><span class="term"><em class="parameter"><code>dlsr</code></em> :</span></p></td>
1148 <td>the delay since last SR packet</td>
1151 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1153 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the packet was created. This function can return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if
1154 the max MTU is exceeded or the number of report blocks is greater than
1155 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-RB-COUNT:CAPS" title="GST_RTCP_MAX_RB_COUNT"><span class="type">GST_RTCP_MAX_RB_COUNT</span></a>.</td>
1161 <div class="refsect2">
1162 <a name="gst-rtcp-packet-set-rb"></a><h3>gst_rtcp_packet_set_rb ()</h3>
1163 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_set_rb (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1164 <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>,
1165 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>,
1166 <em class="parameter"><code><span class="type">guint8</span> fractionlost</code></em>,
1167 <em class="parameter"><code><span class="type">gint32</span> packetslost</code></em>,
1168 <em class="parameter"><code><span class="type">guint32</span> exthighestseq</code></em>,
1169 <em class="parameter"><code><span class="type">guint32</span> jitter</code></em>,
1170 <em class="parameter"><code><span class="type">guint32</span> lsr</code></em>,
1171 <em class="parameter"><code><span class="type">guint32</span> dlsr</code></em>);</pre>
1173 Set the <em class="parameter"><code>nth</code></em> new report block in <em class="parameter"><code>packet</code></em> with the given values.
1176 Note: Not implemented.
1178 <div class="variablelist"><table border="0">
1179 <col align="left" valign="top">
1182 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1183 <td>a valid SR or RR <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1187 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1188 <td>the nth report block to set</td>
1191 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1192 <td>data source being reported</td>
1195 <td><p><span class="term"><em class="parameter"><code>fractionlost</code></em> :</span></p></td>
1196 <td>fraction lost since last SR/RR</td>
1199 <td><p><span class="term"><em class="parameter"><code>packetslost</code></em> :</span></p></td>
1200 <td>the cumululative number of packets lost</td>
1203 <td><p><span class="term"><em class="parameter"><code>exthighestseq</code></em> :</span></p></td>
1204 <td>the extended last sequence number received</td>
1207 <td><p><span class="term"><em class="parameter"><code>jitter</code></em> :</span></p></td>
1208 <td>the interarrival jitter</td>
1211 <td><p><span class="term"><em class="parameter"><code>lsr</code></em> :</span></p></td>
1212 <td>the last SR packet from this source</td>
1215 <td><p><span class="term"><em class="parameter"><code>dlsr</code></em> :</span></p></td>
1216 <td>the delay since last SR packet</td>
1222 <div class="refsect2">
1223 <a name="gst-rtcp-packet-sdes-get-item-count"></a><h3>gst_rtcp_packet_sdes_get_item_count ()</h3>
1224 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtcp_packet_sdes_get_item_count (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1226 Get the number of items in the SDES packet <em class="parameter"><code>packet</code></em>.
1228 <div class="variablelist"><table border="0">
1229 <col align="left" valign="top">
1232 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1233 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1237 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1238 <td>The number of items in <em class="parameter"><code>packet</code></em>.</td>
1244 <div class="refsect2">
1245 <a name="gst-rtcp-packet-sdes-first-item"></a><h3>gst_rtcp_packet_sdes_first_item ()</h3>
1246 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_first_item (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1248 Move to the first SDES item in <em class="parameter"><code>packet</code></em>.
1250 <div class="variablelist"><table border="0">
1251 <col align="left" valign="top">
1254 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1255 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1259 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1260 <td>TRUE if there was a first item.</td>
1266 <div class="refsect2">
1267 <a name="gst-rtcp-packet-sdes-next-item"></a><h3>gst_rtcp_packet_sdes_next_item ()</h3>
1268 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_next_item (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1270 Move to the next SDES item in <em class="parameter"><code>packet</code></em>.
1272 <div class="variablelist"><table border="0">
1273 <col align="left" valign="top">
1276 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1277 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1281 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1282 <td>TRUE if there was a next item.</td>
1288 <div class="refsect2">
1289 <a name="gst-rtcp-packet-sdes-get-ssrc"></a><h3>gst_rtcp_packet_sdes_get_ssrc ()</h3>
1290 <pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtcp_packet_sdes_get_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1292 Get the SSRC of the current SDES item.
1294 <div class="variablelist"><table border="0">
1295 <col align="left" valign="top">
1298 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1299 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1303 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1304 <td>the SSRC of the current item.</td>
1310 <div class="refsect2">
1311 <a name="gst-rtcp-packet-sdes-first-entry"></a><h3>gst_rtcp_packet_sdes_first_entry ()</h3>
1312 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_first_entry (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1314 Move to the first SDES entry in the current item.
1316 <div class="variablelist"><table border="0">
1317 <col align="left" valign="top">
1320 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1321 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1325 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1327 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was a first entry.</td>
1333 <div class="refsect2">
1334 <a name="gst-rtcp-packet-sdes-next-entry"></a><h3>gst_rtcp_packet_sdes_next_entry ()</h3>
1335 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_next_entry (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1337 Move to the next SDES entry in the current item.
1339 <div class="variablelist"><table border="0">
1340 <col align="left" valign="top">
1343 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1344 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1348 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1350 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was a next entry.</td>
1356 <div class="refsect2">
1357 <a name="gst-rtcp-packet-sdes-get-entry"></a><h3>gst_rtcp_packet_sdes_get_entry ()</h3>
1358 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_get_entry (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1359 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> *type</code></em>,
1360 <em class="parameter"><code><span class="type">guint8</span> *len</code></em>,
1361 <em class="parameter"><code><span class="type">guint8</span> **data</code></em>);</pre>
1363 Get the data of the current SDES item entry. <em class="parameter"><code>type</code></em> (when not NULL) will
1364 contain the type of the entry. <em class="parameter"><code>data</code></em> (when not NULL) will point to <em class="parameter"><code>len</code></em>
1368 When <em class="parameter"><code>type</code></em> refers to a text item, <em class="parameter"><code>data</code></em> will point to a UTF8 string. Note
1369 that this UTF8 string is NOT null-terminated. Use
1370 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sdes-copy-entry" title="gst_rtcp_packet_sdes_copy_entry ()"><code class="function">gst_rtcp_packet_sdes_copy_entry()</code></a> to get a null-terminated copy of the entry.
1372 <div class="variablelist"><table border="0">
1373 <col align="left" valign="top">
1376 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1377 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1381 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1382 <td>result of the entry type</td>
1385 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1386 <td>result length of the entry data</td>
1389 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1390 <td>result entry data</td>
1393 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1395 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was valid data.</td>
1401 <div class="refsect2">
1402 <a name="gst-rtcp-packet-sdes-copy-entry"></a><h3>gst_rtcp_packet_sdes_copy_entry ()</h3>
1403 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_copy_entry (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1404 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> *type</code></em>,
1405 <em class="parameter"><code><span class="type">guint8</span> *len</code></em>,
1406 <em class="parameter"><code><span class="type">guint8</span> **data</code></em>);</pre>
1408 This function is like <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#gst-rtcp-packet-sdes-get-entry" title="gst_rtcp_packet_sdes_get_entry ()"><code class="function">gst_rtcp_packet_sdes_get_entry()</code></a> but it returns a
1409 null-terminated copy of the data instead. use <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage.
1411 <div class="variablelist"><table border="0">
1412 <col align="left" valign="top">
1415 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1416 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1420 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1421 <td>result of the entry type</td>
1424 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1425 <td>result length of the entry data</td>
1428 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1429 <td>result entry data</td>
1432 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1434 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was valid data.</td>
1440 <div class="refsect2">
1441 <a name="gst-rtcp-packet-sdes-add-item"></a><h3>gst_rtcp_packet_sdes_add_item ()</h3>
1442 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_add_item (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1443 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1445 Add a new SDES item for <em class="parameter"><code>ssrc</code></em> to <em class="parameter"><code>packet</code></em>.
1447 <div class="variablelist"><table border="0">
1448 <col align="left" valign="top">
1451 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1452 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1456 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1457 <td>the SSRC of the new item to add</td>
1460 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1462 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the item could be added, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the maximum amount of
1463 items has been exceeded for the SDES packet or the MTU has been reached.</td>
1469 <div class="refsect2">
1470 <a name="gst-rtcp-packet-sdes-add-entry"></a><h3>gst_rtcp_packet_sdes_add_entry ()</h3>
1471 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_sdes_add_entry (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1472 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> type</code></em>,
1473 <em class="parameter"><code><span class="type">guint8</span> len</code></em>,
1474 <em class="parameter"><code>const <span class="type">guint8</span> *data</code></em>);</pre>
1476 Add a new SDES entry to the current item in <em class="parameter"><code>packet</code></em>.
1478 <div class="variablelist"><table border="0">
1479 <col align="left" valign="top">
1482 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1483 <td>a valid SDES <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1487 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1488 <td>the <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> of the SDES entry</td>
1491 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1492 <td>the data length</td>
1495 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1499 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1501 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the item could be added, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the MTU has been
1508 <div class="refsect2">
1509 <a name="gst-rtcp-packet-bye-get-ssrc-count"></a><h3>gst_rtcp_packet_bye_get_ssrc_count ()</h3>
1510 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_rtcp_packet_bye_get_ssrc_count (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1512 Get the number of SSRC fields in <em class="parameter"><code>packet</code></em>.
1514 <div class="variablelist"><table border="0">
1515 <col align="left" valign="top">
1518 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1519 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1523 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1524 <td>The number of SSRC fields in <em class="parameter"><code>packet</code></em>.</td>
1530 <div class="refsect2">
1531 <a name="gst-rtcp-packet-bye-get-nth-ssrc"></a><h3>gst_rtcp_packet_bye_get_nth_ssrc ()</h3>
1532 <pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtcp_packet_bye_get_nth_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1533 <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>);</pre>
1535 Get the <em class="parameter"><code>nth</code></em> SSRC of the BYE <em class="parameter"><code>packet</code></em>.
1537 <div class="variablelist"><table border="0">
1538 <col align="left" valign="top">
1541 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1542 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1546 <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
1547 <td>the nth SSRC to get</td>
1550 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1551 <td>The <em class="parameter"><code>nth</code></em> SSRC of <em class="parameter"><code>packet</code></em>.</td>
1557 <div class="refsect2">
1558 <a name="gst-rtcp-packet-bye-add-ssrc"></a><h3>gst_rtcp_packet_bye_add_ssrc ()</h3>
1559 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_bye_add_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1560 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1562 Add <em class="parameter"><code>ssrc</code></em> to the BYE <em class="parameter"><code>packet</code></em>.
1564 <div class="variablelist"><table border="0">
1565 <col align="left" valign="top">
1568 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1569 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1573 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1574 <td>an SSRC to add</td>
1577 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1579 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the ssrc was added. This function can return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if
1580 the max MTU is exceeded or the number of sources blocks is greater than
1581 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-BYE-SSRC-COUNT:CAPS" title="GST_RTCP_MAX_BYE_SSRC_COUNT"><span class="type">GST_RTCP_MAX_BYE_SSRC_COUNT</span></a>.</td>
1587 <div class="refsect2">
1588 <a name="gst-rtcp-packet-bye-add-ssrcs"></a><h3>gst_rtcp_packet_bye_add_ssrcs ()</h3>
1589 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_bye_add_ssrcs (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1590 <em class="parameter"><code><span class="type">guint32</span> *ssrc</code></em>,
1591 <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>
1593 Adds <em class="parameter"><code>len</code></em> SSRCs in <em class="parameter"><code>ssrc</code></em> to BYE <em class="parameter"><code>packet</code></em>.
1595 <div class="variablelist"><table border="0">
1596 <col align="left" valign="top">
1599 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1600 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1604 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1605 <td>an array of SSRCs to add</td>
1608 <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1609 <td>number of elements in <em class="parameter"><code>ssrc</code></em>
1613 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1615 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the all the SSRCs were added. This function can return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if
1616 the max MTU is exceeded or the number of sources blocks is greater than
1617 <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-MAX-BYE-SSRC-COUNT:CAPS" title="GST_RTCP_MAX_BYE_SSRC_COUNT"><span class="type">GST_RTCP_MAX_BYE_SSRC_COUNT</span></a>.</td>
1623 <div class="refsect2">
1624 <a name="gst-rtcp-packet-bye-get-reason-len"></a><h3>gst_rtcp_packet_bye_get_reason_len ()</h3>
1625 <pre class="programlisting"><span class="returnvalue">guint8</span> gst_rtcp_packet_bye_get_reason_len (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1627 Get the length of the reason string.
1629 <div class="variablelist"><table border="0">
1630 <col align="left" valign="top">
1633 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1634 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1638 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1639 <td>The length of the reason string or 0 when there is no reason string
1646 <div class="refsect2">
1647 <a name="gst-rtcp-packet-bye-get-reason"></a><h3>gst_rtcp_packet_bye_get_reason ()</h3>
1648 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gst_rtcp_packet_bye_get_reason (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1650 Get the reason in <em class="parameter"><code>packet</code></em>.
1652 <div class="variablelist"><table border="0">
1653 <col align="left" valign="top">
1656 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1657 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1661 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1662 <td>The reason for the BYE <em class="parameter"><code>packet</code></em> or NULL if the packet did not contain
1663 a reason string. The string must be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage.</td>
1669 <div class="refsect2">
1670 <a name="gst-rtcp-packet-bye-set-reason"></a><h3>gst_rtcp_packet_bye_set_reason ()</h3>
1671 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_bye_set_reason (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1672 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *reason</code></em>);</pre>
1674 Set the reason string to <em class="parameter"><code>reason</code></em> in <em class="parameter"><code>packet</code></em>.
1676 <div class="variablelist"><table border="0">
1677 <col align="left" valign="top">
1680 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1681 <td>a valid BYE <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1685 <td><p><span class="term"><em class="parameter"><code>reason</code></em> :</span></p></td>
1686 <td>a reason string</td>
1689 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1690 <td>TRUE if the string could be set.</td>
1696 <div class="refsect2">
1697 <a name="gst-rtcp-packet-fb-get-type"></a><h3>gst_rtcp_packet_fb_get_type ()</h3>
1698 <pre class="programlisting"><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType"><span class="returnvalue">GstRTCPFBType</span></a> gst_rtcp_packet_fb_get_type (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1700 Get the feedback message type of the FB <em class="parameter"><code>packet</code></em>.
1702 <div class="variablelist"><table border="0">
1703 <col align="left" valign="top">
1706 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1707 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1711 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1712 <td>The feedback message type.</td>
1716 <p class="since">Since 0.10.23</p>
1719 <div class="refsect2">
1720 <a name="gst-rtcp-packet-fb-set-type"></a><h3>gst_rtcp_packet_fb_set_type ()</h3>
1721 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_fb_set_type (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1722 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType"><span class="type">GstRTCPFBType</span></a> type</code></em>);</pre>
1724 Set the feedback message type of the FB <em class="parameter"><code>packet</code></em>.
1726 <div class="variablelist"><table border="0">
1727 <col align="left" valign="top">
1730 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1731 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1735 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1736 <td>the <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPFBType" title="enum GstRTCPFBType"><span class="type">GstRTCPFBType</span></a> to set</td>
1740 <p class="since">Since 0.10.23</p>
1743 <div class="refsect2">
1744 <a name="gst-rtcp-packet-fb-get-sender-ssrc"></a><h3>gst_rtcp_packet_fb_get_sender_ssrc ()</h3>
1745 <pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtcp_packet_fb_get_sender_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1747 Get the sender SSRC field of the RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1749 <div class="variablelist"><table border="0">
1750 <col align="left" valign="top">
1753 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1754 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1758 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1759 <td>the sender SSRC.</td>
1763 <p class="since">Since 0.10.23</p>
1766 <div class="refsect2">
1767 <a name="gst-rtcp-packet-fb-set-sender-ssrc"></a><h3>gst_rtcp_packet_fb_set_sender_ssrc ()</h3>
1768 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_fb_set_sender_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1769 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1771 Set the sender SSRC field of the RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1773 <div class="variablelist"><table border="0">
1774 <col align="left" valign="top">
1777 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1778 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1782 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1783 <td>a sender SSRC</td>
1787 <p class="since">Since 0.10.23</p>
1790 <div class="refsect2">
1791 <a name="gst-rtcp-packet-fb-get-media-ssrc"></a><h3>gst_rtcp_packet_fb_get_media_ssrc ()</h3>
1792 <pre class="programlisting"><span class="returnvalue">guint32</span> gst_rtcp_packet_fb_get_media_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1794 Get the media SSRC field of the RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1796 <div class="variablelist"><table border="0">
1797 <col align="left" valign="top">
1800 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1801 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1805 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1806 <td>the media SSRC.</td>
1810 <p class="since">Since 0.10.23</p>
1813 <div class="refsect2">
1814 <a name="gst-rtcp-packet-fb-set-media-ssrc"></a><h3>gst_rtcp_packet_fb_set_media_ssrc ()</h3>
1815 <pre class="programlisting"><span class="returnvalue">void</span> gst_rtcp_packet_fb_set_media_ssrc (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1816 <em class="parameter"><code><span class="type">guint32</span> ssrc</code></em>);</pre>
1818 Set the media SSRC field of the RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1820 <div class="variablelist"><table border="0">
1821 <col align="left" valign="top">
1824 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1825 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1829 <td><p><span class="term"><em class="parameter"><code>ssrc</code></em> :</span></p></td>
1830 <td>a media SSRC</td>
1834 <p class="since">Since 0.10.23</p>
1837 <div class="refsect2">
1838 <a name="gst-rtcp-packet-fb-get-fci-length"></a><h3>gst_rtcp_packet_fb_get_fci_length ()</h3>
1839 <pre class="programlisting"><span class="returnvalue">guint16</span> gst_rtcp_packet_fb_get_fci_length (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1841 Get the length of the Feedback Control Information attached to a
1842 RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1844 <div class="variablelist"><table border="0">
1845 <col align="left" valign="top">
1848 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1849 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1853 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1854 <td>The length of the FCI in 32-bit words.</td>
1858 <p class="since">Since 0.10.31</p>
1861 <div class="refsect2">
1862 <a name="gst-rtcp-packet-fb-set-fci-length"></a><h3>gst_rtcp_packet_fb_set_fci_length ()</h3>
1863 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_rtcp_packet_fb_set_fci_length (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>,
1864 <em class="parameter"><code><span class="type">guint16</span> wordlen</code></em>);</pre>
1866 Set the length of the Feedback Control Information attached to a
1867 RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1869 <div class="variablelist"><table border="0">
1870 <col align="left" valign="top">
1873 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1874 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1878 <td><p><span class="term"><em class="parameter"><code>wordlen</code></em> :</span></p></td>
1879 <td>Length of the FCI in 32-bit words</td>
1882 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1884 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was enough space in the packet to add this much FCI</td>
1888 <p class="since">Since 0.10.31</p>
1891 <div class="refsect2">
1892 <a name="gst-rtcp-packet-fb-get-fci"></a><h3>gst_rtcp_packet_fb_get_fci ()</h3>
1893 <pre class="programlisting"><span class="returnvalue">guint8</span> * gst_rtcp_packet_fb_get_fci (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a> *packet</code></em>);</pre>
1895 Get the Feedback Control Information attached to a RTPFB or PSFB <em class="parameter"><code>packet</code></em>.
1897 <div class="variablelist"><table border="0">
1898 <col align="left" valign="top">
1901 <td><p><span class="term"><em class="parameter"><code>packet</code></em> :</span></p></td>
1902 <td>a valid RTPFB or PSFB <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPPacket" title="struct GstRTCPPacket"><span class="type">GstRTCPPacket</span></a>
1906 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1907 <td>a pointer to the FCI</td>
1911 <p class="since">Since 0.10.31</p>
1914 <div class="refsect2">
1915 <a name="gst-rtcp-ntp-to-unix"></a><h3>gst_rtcp_ntp_to_unix ()</h3>
1916 <pre class="programlisting"><span class="returnvalue">guint64</span> gst_rtcp_ntp_to_unix (<em class="parameter"><code><span class="type">guint64</span> ntptime</code></em>);</pre>
1918 Converts an NTP time to UNIX nanoseconds. <em class="parameter"><code>ntptime</code></em> can typically be
1919 the NTP time of an SR RTCP message and contains, in the upper 32 bits, the
1920 number of seconds since 1900 and, in the lower 32 bits, the fractional
1921 seconds. The resulting value will be the number of nanoseconds since 1970.
1923 <div class="variablelist"><table border="0">
1924 <col align="left" valign="top">
1927 <td><p><span class="term"><em class="parameter"><code>ntptime</code></em> :</span></p></td>
1928 <td>an NTP timestamp</td>
1931 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1932 <td>the UNIX time for <em class="parameter"><code>ntptime</code></em> in nanoseconds.</td>
1938 <div class="refsect2">
1939 <a name="gst-rtcp-unix-to-ntp"></a><h3>gst_rtcp_unix_to_ntp ()</h3>
1940 <pre class="programlisting"><span class="returnvalue">guint64</span> gst_rtcp_unix_to_ntp (<em class="parameter"><code><span class="type">guint64</span> unixtime</code></em>);</pre>
1942 Converts a UNIX timestamp in nanoseconds to an NTP time. The caller should
1943 pass a value with nanoseconds since 1970. The NTP time will, in the upper
1944 32 bits, contain the number of seconds since 1900 and, in the lower 32
1945 bits, the fractional seconds. The resulting value can be used as an ntptime
1946 for constructing SR RTCP packets.
1948 <div class="variablelist"><table border="0">
1949 <col align="left" valign="top">
1952 <td><p><span class="term"><em class="parameter"><code>unixtime</code></em> :</span></p></td>
1953 <td>an UNIX timestamp in nanoseconds</td>
1956 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1957 <td>the NTP time for <em class="parameter"><code>unixtime</code></em>.</td>
1963 <div class="refsect2">
1964 <a name="gst-rtcp-sdes-name-to-type"></a><h3>gst_rtcp_sdes_name_to_type ()</h3>
1965 <pre class="programlisting"><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="returnvalue">GstRTCPSDESType</span></a> gst_rtcp_sdes_name_to_type (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1967 Convert <em class="parameter"><code>name</code></em> into a <em class="parameter"><code>GstRTCPSDESType</code></em>. <em class="parameter"><code>name</code></em> is typically a key in a
1968 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstStructure.html#GstStructure"><span class="type">GstStructure</span></a> containing SDES items.
1970 <div class="variablelist"><table border="0">
1971 <col align="left" valign="top">
1974 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1975 <td>a SDES name</td>
1978 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1979 <td>the <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> for <em class="parameter"><code>name</code></em> or <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GST-RTCP-SDES-PRIV:CAPS"><span class="type">GST_RTCP_SDES_PRIV</span></a> when <em class="parameter"><code>name</code></em>
1980 is a private sdes item.</td>
1984 <p class="since">Since 0.10.26</p>
1987 <div class="refsect2">
1988 <a name="gst-rtcp-sdes-type-to-name"></a><h3>gst_rtcp_sdes_type_to_name ()</h3>
1989 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gst_rtcp_sdes_type_to_name (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a> type</code></em>);</pre>
1991 Converts <em class="parameter"><code>type</code></em> to the string equivalent. The string is typically used as a
1992 key in a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstStructure.html#GstStructure"><span class="type">GstStructure</span></a> containing SDES items.
1994 <div class="variablelist"><table border="0">
1995 <col align="left" valign="top">
1998 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1999 <td>a <a class="link" href="gst-plugins-base-libs-gstrtcpbuffer.html#GstRTCPSDESType" title="enum GstRTCPSDESType"><span class="type">GstRTCPSDESType</span></a>
2003 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2004 <td>the string equivalent of <em class="parameter"><code>type</code></em>
2009 <p class="since">Since 0.10.26</p>
2012 <div class="refsect1">
2013 <a name="gst-plugins-base-libs-gstrtcpbuffer.see-also"></a><h2>See Also</h2>
2014 <a class="link" href="gst-plugins-base-libs-gstbasertppayload.html#GstBaseRTPPayload"><span class="type">GstBaseRTPPayload</span></a>, <a class="link" href="gst-plugins-base-libs-gstbasertpdepayload.html#GstBaseRTPDepayload"><span class="type">GstBaseRTPDepayload</span></a>, <span class="type">gstrtpbuffer</span>
2017 <div class="footer">
2019 Generated by GTK-Doc V1.18</div>