<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>gstrtspbase64</title> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Library Reference Manual"> <link rel="up" href="gstreamer-rtsp.html" title="RTSP Library"> <link rel="prev" href="gstreamer-rtsp.html" title="RTSP Library"> <link rel="next" href="gst-plugins-base-libs-gstrtspconnection.html" title="gstrtspconnection"> <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> <tr valign="middle"> <td><a accesskey="p" href="gstreamer-rtsp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="gstreamer-rtsp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">GStreamer Base Plugins 0.10 Library Reference Manual</th> <td><a accesskey="n" href="gst-plugins-base-libs-gstrtspconnection.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr> <tr><td colspan="5" class="shortcuts"> <a href="#gst-plugins-base-libs-gstrtspbase64.synopsis" class="shortcut">Top</a> | <a href="#gst-plugins-base-libs-gstrtspbase64.description" class="shortcut">Description</a> </td></tr> </table> <div class="refentry"> <a name="gst-plugins-base-libs-gstrtspbase64"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="gst-plugins-base-libs-gstrtspbase64.top_of_page"></a>gstrtspbase64</span></h2> <p>gstrtspbase64 — Helper functions to handle Base64</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv"> <a name="gst-plugins-base-libs-gstrtspbase64.synopsis"></a><h2>Synopsis</h2> <pre class="synopsis"> #include <gst/rtsp/gstrtspbase64.h> <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-gstrtspbase64.html#gst-rtsp-base64-encode" title="gst_rtsp_base64_encode ()">gst_rtsp_base64_encode</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> *data</code></em>, <em class="parameter"><code><span class="type">gsize</span> len</code></em>); <span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-gstrtspbase64.html#gst-rtsp-base64-decode-ip" title="gst_rtsp_base64_decode_ip ()">gst_rtsp_base64_decode_ip</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *data</code></em>, <em class="parameter"><code><span class="type">gsize</span> *len</code></em>); </pre> </div> <div class="refsect1"> <a name="gst-plugins-base-libs-gstrtspbase64.description"></a><h2>Description</h2> <p> Last reviewed on 2007-07-24 (0.10.14) </p> </div> <div class="refsect1"> <a name="gst-plugins-base-libs-gstrtspbase64.details"></a><h2>Details</h2> <div class="refsect2"> <a name="gst-rtsp-base64-encode"></a><h3>gst_rtsp_base64_encode ()</h3> <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gst_rtsp_base64_encode (<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> *data</code></em>, <em class="parameter"><code><span class="type">gsize</span> len</code></em>);</pre> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Warning</h3> <p><code class="literal">gst_rtsp_base64_encode</code> is deprecated and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/glib/unstable/glib-Base64-Encoding.html#g-base64-encode"><code class="function">g_base64_encode()</code></a></p> </div> <p> Encode a sequence of binary data into its Base-64 stringified representation. </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> <td>the binary data to encode</td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> <td>the length of <em class="parameter"><code>data</code></em> </td> </tr> <tr> <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> <td>a newly allocated, zero-terminated Base-64 encoded string representing <em class="parameter"><code>data</code></em>.</td> </tr> </tbody> </table></div> </div> <hr> <div class="refsect2"> <a name="gst-rtsp-base64-decode-ip"></a><h3>gst_rtsp_base64_decode_ip ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> gst_rtsp_base64_decode_ip (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *data</code></em>, <em class="parameter"><code><span class="type">gsize</span> *len</code></em>);</pre> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Warning</h3> <p><code class="literal">gst_rtsp_base64_decode_ip</code> is deprecated and should not be used in newly-written code. use <a href="http://library.gnome.org/devel/glib/unstable/glib-Base64-Encoding.html#g-base64-decode-inplace"><code class="function">g_base64_decode_inplace()</code></a> instead.</p> </div> <p> Decode the base64 string pointed to by <em class="parameter"><code>data</code></em> in-place. When <em class="parameter"><code>len</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> it will contain the length of the decoded data. </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> <td>the base64 encoded data</td> </tr> <tr> <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> <td>location for output length or NULL</td> </tr> </tbody> </table></div> </div> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.18</div> </body> </html>