• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Descriptions: GStreamer Base Plugins 1.0 Library Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
8<link rel="up" href="gstreamer-base-utils.html" title="Base Utils Library">
9<link rel="prev" href="gst-plugins-base-libs-Codec-utilities.html" title="Codec utilities">
10<link rel="next" href="gst-plugins-base-libs-Missing-plugins.html" title="Missing plugins">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
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="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#gst-plugins-base-libs-Descriptions.description" class="shortcut">Description</a></span>
19</td>
20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21<td><a accesskey="u" href="gstreamer-base-utils.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22<td><a accesskey="p" href="gst-plugins-base-libs-Codec-utilities.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23<td><a accesskey="n" href="gst-plugins-base-libs-Missing-plugins.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24</tr></table>
25<div class="refentry">
26<a name="gst-plugins-base-libs-Descriptions"></a><div class="titlepage"></div>
27<div class="refnamediv"><table width="100%"><tr>
28<td valign="top">
29<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-Descriptions.top_of_page"></a>Descriptions</span></h2>
30<p>Descriptions — Provides human-readable descriptions for caps/codecs
31and encoder, decoder, URI source and URI sink elements</p>
32</td>
33<td class="gallery_image" valign="top" align="right"></td>
34</tr></table></div>
35<div class="refsect1">
36<a name="gst-plugins-base-libs-Descriptions.functions"></a><h2>Functions</h2>
37<div class="informaltable"><table class="informaltable" width="100%" border="0">
38<colgroup>
39<col width="150px" class="functions_return">
40<col class="functions_name">
41</colgroup>
42<tbody>
43<tr>
44<td class="function_type">
45<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
46</td>
47<td class="function_name">
48<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-source-description" title="gst_pb_utils_get_source_description ()">gst_pb_utils_get_source_description</a> <span class="c_punctuation">()</span>
49</td>
50</tr>
51<tr>
52<td class="function_type">
53<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
54</td>
55<td class="function_name">
56<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-sink-description" title="gst_pb_utils_get_sink_description ()">gst_pb_utils_get_sink_description</a> <span class="c_punctuation">()</span>
57</td>
58</tr>
59<tr>
60<td class="function_type">
61<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
62</td>
63<td class="function_name">
64<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-decoder-description" title="gst_pb_utils_get_decoder_description ()">gst_pb_utils_get_decoder_description</a> <span class="c_punctuation">()</span>
65</td>
66</tr>
67<tr>
68<td class="function_type">
69<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
70</td>
71<td class="function_name">
72<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-encoder-description" title="gst_pb_utils_get_encoder_description ()">gst_pb_utils_get_encoder_description</a> <span class="c_punctuation">()</span>
73</td>
74</tr>
75<tr>
76<td class="function_type">
77<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
78</td>
79<td class="function_name">
80<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-element-description" title="gst_pb_utils_get_element_description ()">gst_pb_utils_get_element_description</a> <span class="c_punctuation">()</span>
81</td>
82</tr>
83<tr>
84<td class="function_type">
85<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
86</td>
87<td class="function_name">
88<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-add-codec-description-to-tag-list" title="gst_pb_utils_add_codec_description_to_tag_list ()">gst_pb_utils_add_codec_description_to_tag_list</a> <span class="c_punctuation">()</span>
89</td>
90</tr>
91<tr>
92<td class="function_type">
93<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
94</td>
95<td class="function_name">
96<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-get-codec-description" title="gst_pb_utils_get_codec_description ()">gst_pb_utils_get_codec_description</a> <span class="c_punctuation">()</span>
97</td>
98</tr>
99</tbody>
100</table></div>
101</div>
102<div class="refsect1">
103<a name="gst-plugins-base-libs-Descriptions.includes"></a><h2>Includes</h2>
104<pre class="synopsis">#include &lt;gst/pbutils/pbutils.h&gt;
105</pre>
106</div>
107<div class="refsect1">
108<a name="gst-plugins-base-libs-Descriptions.description"></a><h2>Description</h2>
109<p>The above functions provide human-readable strings for media formats
110and decoder/demuxer/depayloader/encoder/muxer/payloader elements for use
111in error dialogs or other messages shown to users.</p>
112<p>gst_pb_utils_add_codec_description_to_tag_list() is a utility function
113for demuxer and decoder elements to add audio/video codec tags from a
114given (fixed) <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a>.</p>
115</div>
116<div class="refsect1">
117<a name="gst-plugins-base-libs-Descriptions.functions_details"></a><h2>Functions</h2>
118<div class="refsect2">
119<a name="gst-pb-utils-get-source-description"></a><h3>gst_pb_utils_get_source_description ()</h3>
120<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
121gst_pb_utils_get_source_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *protocol</code></em>);</pre>
122<p>Returns a localised string describing a source element handling the protocol
123specified in <em class="parameter"><code>protocol</code></em>
124, for use in error dialogs or other messages to be
125seen by the user. Should never return NULL unless <em class="parameter"><code>protocol</code></em>
126 is invalid.</p>
127<p>This function is mainly for internal use, applications would typically
128use <a class="link" href="gst-plugins-base-libs-Missing-plugins.html#gst-missing-plugin-message-get-description" title="gst_missing_plugin_message_get_description ()"><code class="function">gst_missing_plugin_message_get_description()</code></a> to get a description of
129a missing feature from a missing-plugin message.</p>
130<div class="refsect3">
131<a name="gst-pb-utils-get-source-description.parameters"></a><h4>Parameters</h4>
132<div class="informaltable"><table class="informaltable" width="100%" border="0">
133<colgroup>
134<col width="150px" class="parameters_name">
135<col class="parameters_description">
136<col width="200px" class="parameters_annotations">
137</colgroup>
138<tbody><tr>
139<td class="parameter_name"><p>protocol</p></td>
140<td class="parameter_description"><p>the protocol the source element needs to handle, e.g. "http"</p></td>
141<td class="parameter_annotations"> </td>
142</tr></tbody>
143</table></div>
144</div>
145<div class="refsect3">
146<a name="gst-pb-utils-get-source-description.returns"></a><h4>Returns</h4>
147<p> a newly-allocated description string, or NULL on error. Free
148string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
149</div>
150</div>
151<hr>
152<div class="refsect2">
153<a name="gst-pb-utils-get-sink-description"></a><h3>gst_pb_utils_get_sink_description ()</h3>
154<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
155gst_pb_utils_get_sink_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *protocol</code></em>);</pre>
156<p>Returns a localised string describing a sink element handling the protocol
157specified in <em class="parameter"><code>protocol</code></em>
158, for use in error dialogs or other messages to be
159seen by the user. Should never return NULL unless <em class="parameter"><code>protocol</code></em>
160 is invalid.</p>
161<p>This function is mainly for internal use, applications would typically
162use <a class="link" href="gst-plugins-base-libs-Missing-plugins.html#gst-missing-plugin-message-get-description" title="gst_missing_plugin_message_get_description ()"><code class="function">gst_missing_plugin_message_get_description()</code></a> to get a description of
163a missing feature from a missing-plugin message.</p>
164<div class="refsect3">
165<a name="gst-pb-utils-get-sink-description.parameters"></a><h4>Parameters</h4>
166<div class="informaltable"><table class="informaltable" width="100%" border="0">
167<colgroup>
168<col width="150px" class="parameters_name">
169<col class="parameters_description">
170<col width="200px" class="parameters_annotations">
171</colgroup>
172<tbody><tr>
173<td class="parameter_name"><p>protocol</p></td>
174<td class="parameter_description"><p>the protocol the sink element needs to handle, e.g. "http"</p></td>
175<td class="parameter_annotations"> </td>
176</tr></tbody>
177</table></div>
178</div>
179<div class="refsect3">
180<a name="gst-pb-utils-get-sink-description.returns"></a><h4>Returns</h4>
181<p> a newly-allocated description string, or NULL on error. Free
182string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
183</div>
184</div>
185<hr>
186<div class="refsect2">
187<a name="gst-pb-utils-get-decoder-description"></a><h3>gst_pb_utils_get_decoder_description ()</h3>
188<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
189gst_pb_utils_get_decoder_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
190<p>Returns a localised string describing an decoder for the format specified
191in <em class="parameter"><code>caps</code></em>
192, for use in error dialogs or other messages to be seen by the user.
193Should never return NULL unless <em class="parameter"><code>factory_name</code></em>
194 or <em class="parameter"><code>caps</code></em>
195 are invalid.</p>
196<p>This function is mainly for internal use, applications would typically
197use <a class="link" href="gst-plugins-base-libs-Missing-plugins.html#gst-missing-plugin-message-get-description" title="gst_missing_plugin_message_get_description ()"><code class="function">gst_missing_plugin_message_get_description()</code></a> to get a description of
198a missing feature from a missing-plugin message.</p>
199<div class="refsect3">
200<a name="gst-pb-utils-get-decoder-description.parameters"></a><h4>Parameters</h4>
201<div class="informaltable"><table class="informaltable" width="100%" border="0">
202<colgroup>
203<col width="150px" class="parameters_name">
204<col class="parameters_description">
205<col width="200px" class="parameters_annotations">
206</colgroup>
207<tbody><tr>
208<td class="parameter_name"><p>caps</p></td>
209<td class="parameter_description"><p>the (fixed) <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> for which an decoder description is needed</p></td>
210<td class="parameter_annotations"> </td>
211</tr></tbody>
212</table></div>
213</div>
214<div class="refsect3">
215<a name="gst-pb-utils-get-decoder-description.returns"></a><h4>Returns</h4>
216<p> a newly-allocated description string, or NULL on error. Free
217string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
218</div>
219</div>
220<hr>
221<div class="refsect2">
222<a name="gst-pb-utils-get-encoder-description"></a><h3>gst_pb_utils_get_encoder_description ()</h3>
223<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
224gst_pb_utils_get_encoder_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
225<p>Returns a localised string describing an encoder for the format specified
226in <em class="parameter"><code>caps</code></em>
227, for use in error dialogs or other messages to be seen by the user.
228Should never return NULL unless <em class="parameter"><code>factory_name</code></em>
229 or <em class="parameter"><code>caps</code></em>
230 are invalid.</p>
231<p>This function is mainly for internal use, applications would typically
232use <a class="link" href="gst-plugins-base-libs-Missing-plugins.html#gst-missing-plugin-message-get-description" title="gst_missing_plugin_message_get_description ()"><code class="function">gst_missing_plugin_message_get_description()</code></a> to get a description of
233a missing feature from a missing-plugin message.</p>
234<div class="refsect3">
235<a name="gst-pb-utils-get-encoder-description.parameters"></a><h4>Parameters</h4>
236<div class="informaltable"><table class="informaltable" width="100%" border="0">
237<colgroup>
238<col width="150px" class="parameters_name">
239<col class="parameters_description">
240<col width="200px" class="parameters_annotations">
241</colgroup>
242<tbody><tr>
243<td class="parameter_name"><p>caps</p></td>
244<td class="parameter_description"><p>the (fixed) <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> for which an encoder description is needed</p></td>
245<td class="parameter_annotations"> </td>
246</tr></tbody>
247</table></div>
248</div>
249<div class="refsect3">
250<a name="gst-pb-utils-get-encoder-description.returns"></a><h4>Returns</h4>
251<p> a newly-allocated description string, or NULL on error. Free
252string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
253</div>
254</div>
255<hr>
256<div class="refsect2">
257<a name="gst-pb-utils-get-element-description"></a><h3>gst_pb_utils_get_element_description ()</h3>
258<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
259gst_pb_utils_get_element_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *factory_name</code></em>);</pre>
260<p>Returns a localised string describing the given element, for use in
261error dialogs or other messages to be seen by the user. Should never
262return NULL unless <em class="parameter"><code>factory_name</code></em>
263 is invalid.</p>
264<p>This function is mainly for internal use, applications would typically
265use <a class="link" href="gst-plugins-base-libs-Missing-plugins.html#gst-missing-plugin-message-get-description" title="gst_missing_plugin_message_get_description ()"><code class="function">gst_missing_plugin_message_get_description()</code></a> to get a description of
266a missing feature from a missing-plugin message.</p>
267<div class="refsect3">
268<a name="gst-pb-utils-get-element-description.parameters"></a><h4>Parameters</h4>
269<div class="informaltable"><table class="informaltable" width="100%" border="0">
270<colgroup>
271<col width="150px" class="parameters_name">
272<col class="parameters_description">
273<col width="200px" class="parameters_annotations">
274</colgroup>
275<tbody><tr>
276<td class="parameter_name"><p>factory_name</p></td>
277<td class="parameter_description"><p>the name of the element, e.g. "giosrc"</p></td>
278<td class="parameter_annotations"> </td>
279</tr></tbody>
280</table></div>
281</div>
282<div class="refsect3">
283<a name="gst-pb-utils-get-element-description.returns"></a><h4>Returns</h4>
284<p> a newly-allocated description string, or NULL on error. Free
285string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
286</div>
287</div>
288<hr>
289<div class="refsect2">
290<a name="gst-pb-utils-add-codec-description-to-tag-list"></a><h3>gst_pb_utils_add_codec_description_to_tag_list ()</h3>
291<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
292gst_pb_utils_add_codec_description_to_tag_list
293                               (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GstTagList-struct"><span class="type">GstTagList</span></a> *taglist</code></em>,
294                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *codec_tag</code></em>,
295                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
296<p>Adds a codec tag describing the format specified by <em class="parameter"><code>caps</code></em>
297 to <em class="parameter"><code>taglist</code></em>
298.</p>
299<div class="refsect3">
300<a name="gst-pb-utils-add-codec-description-to-tag-list.parameters"></a><h4>Parameters</h4>
301<div class="informaltable"><table class="informaltable" width="100%" border="0">
302<colgroup>
303<col width="150px" class="parameters_name">
304<col class="parameters_description">
305<col width="200px" class="parameters_annotations">
306</colgroup>
307<tbody>
308<tr>
309<td class="parameter_name"><p>taglist</p></td>
310<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GstTagList-struct"><span class="type">GstTagList</span></a></p></td>
311<td class="parameter_annotations"> </td>
312</tr>
313<tr>
314<td class="parameter_name"><p>codec_tag</p></td>
315<td class="parameter_description"><p>a GStreamer codec tag such as <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GST-TAG-AUDIO-CODEC:CAPS"><span class="type">GST_TAG_AUDIO_CODEC</span></a>,
316<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GST-TAG-VIDEO-CODEC:CAPS"><span class="type">GST_TAG_VIDEO_CODEC</span></a> or <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GST-TAG-CODEC:CAPS"><span class="type">GST_TAG_CODEC</span></a>. If none is specified,
317the function will attempt to detect the appropriate category. </p></td>
318<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
319</tr>
320<tr>
321<td class="parameter_name"><p>caps</p></td>
322<td class="parameter_description"><p>the (fixed) <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> for which a codec tag should be added.</p></td>
323<td class="parameter_annotations"> </td>
324</tr>
325</tbody>
326</table></div>
327</div>
328<div class="refsect3">
329<a name="gst-pb-utils-add-codec-description-to-tag-list.returns"></a><h4>Returns</h4>
330<p> TRUE if a codec tag was added, FALSE otherwise.</p>
331</div>
332</div>
333<hr>
334<div class="refsect2">
335<a name="gst-pb-utils-get-codec-description"></a><h3>gst_pb_utils_get_codec_description ()</h3>
336<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
337gst_pb_utils_get_codec_description (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
338<p>Returns a localised (as far as this is possible) string describing the
339media format specified in <em class="parameter"><code>caps</code></em>
340, for use in error dialogs or other messages
341to be seen by the user. Should never return NULL unless <em class="parameter"><code>caps</code></em>
342 is invalid.</p>
343<p>Also see the convenience function
344<a class="link" href="gst-plugins-base-libs-Descriptions.html#gst-pb-utils-add-codec-description-to-tag-list" title="gst_pb_utils_add_codec_description_to_tag_list ()"><code class="function">gst_pb_utils_add_codec_description_to_tag_list()</code></a>.</p>
345<div class="refsect3">
346<a name="gst-pb-utils-get-codec-description.parameters"></a><h4>Parameters</h4>
347<div class="informaltable"><table class="informaltable" width="100%" border="0">
348<colgroup>
349<col width="150px" class="parameters_name">
350<col class="parameters_description">
351<col width="200px" class="parameters_annotations">
352</colgroup>
353<tbody><tr>
354<td class="parameter_name"><p>caps</p></td>
355<td class="parameter_description"><p>the (fixed) <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="type">GstCaps</span></a> for which an format description is needed</p></td>
356<td class="parameter_annotations"> </td>
357</tr></tbody>
358</table></div>
359</div>
360<div class="refsect3">
361<a name="gst-pb-utils-get-codec-description.returns"></a><h4>Returns</h4>
362<p> a newly-allocated description string, or NULL on error. Free
363string with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when not needed any longer.</p>
364</div>
365</div>
366</div>
367<div class="refsect1">
368<a name="gst-plugins-base-libs-Descriptions.other_details"></a><h2>Types and Values</h2>
369</div>
370</div>
371<div class="footer">
372<hr>Generated by GTK-Doc V1.28</div>
373</body>
374</html>