8
8
<link rel="up" href="ch02.html" title="Farsight Core Library">
9
9
<link rel="prev" href="farsight2-libs-FsCandidate.html" title="FsCandidate">
10
10
<link rel="next" href="ch03.html" title="Farsight Utility Functions and Objects">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="pt01.html" title="Part I. User-oriented classes, interfaces and functions">
14
14
<link rel="chapter" href="ch01.html" title="Farsight GStreamer Interfaces">
28
28
<th width="100%" align="center">Farsight2 Reference Manual</th>
29
29
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#farsight2-libs-FsCodec.synopsis" class="shortcut">Top</a>
33
<a href="#farsight2-libs-FsCodec.description" class="shortcut">Description</a></nobr></td></tr>
31
<tr><td colspan="5" class="shortcuts">
32
<a href="#farsight2-libs-FsCodec.synopsis" class="shortcut">Top</a>
34
<a href="#farsight2-libs-FsCodec.description" class="shortcut">Description</a>
35
37
<div class="refentry" lang="en">
36
38
<a name="farsight2-libs-FsCodec"></a><div class="titlepage"></div>
50
52
<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a>;
51
53
enum <a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a>;
52
54
<a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a>;
53
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-ANY:CAPS" title="FS_CODEC_ID_ANY">FS_CODEC_ID_ANY</a>
54
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-DISABLE:CAPS" title="FS_CODEC_ID_DISABLE">FS_CODEC_ID_DISABLE</a>
55
<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-new" title="fs_codec_new ()">fs_codec_new</a> (int id,
55
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-ANY--CAPS" title="FS_CODEC_ID_ANY">FS_CODEC_ID_ANY</a>
56
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-DISABLE--CAPS" title="FS_CODEC_ID_DISABLE">FS_CODEC_ID_DISABLE</a>
57
<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-new" title="fs_codec_new ()">fs_codec_new</a> (int id,
56
58
const char *encoding_name,
57
59
<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type,
59
61
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
60
62
>guint</a> clock_rate);
61
void <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-destroy" title="fs_codec_destroy ()">fs_codec_destroy</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
62
<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-copy" title="fs_codec_copy ()">fs_codec_copy</a> (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
64
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
65
>void</a> <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-destroy" title="fs_codec_destroy ()">fs_codec_destroy</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
66
<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-copy" title="fs_codec_copy ()">fs_codec_copy</a> (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
64
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
65
69
>gboolean</a> <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-are-equal" title="fs_codec_are_equal ()">fs_codec_are_equal</a> (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec1,
66
70
const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec2);
68
72
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
69
>GList</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-from-keyfile" title="fs_codec_list_from_keyfile ()">fs_codec_list_from_keyfile</a> (const <a
73
>GList</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-from-keyfile" title="fs_codec_list_from_keyfile ()">fs_codec_list_from_keyfile</a> (const <a
70
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71
75
>gchar</a> *filename,
73
77
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
74
78
>GError</a> **error);
75
void <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-destroy" title="fs_codec_list_destroy ()">fs_codec_list_destroy</a> (<a
80
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
81
>void</a> <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-destroy" title="fs_codec_list_destroy ()">fs_codec_list_destroy</a> (<a
76
82
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
77
83
>GList</a> *codec_list);
79
85
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
80
>GList</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-copy" title="fs_codec_list_copy ()">fs_codec_list_copy</a> (const <a
86
>GList</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-list-copy" title="fs_codec_list_copy ()">fs_codec_list_copy</a> (const <a
81
87
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
82
88
>GList</a> *codec_list);
90
96
>GList</a> *list2);
92
98
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
93
>gchar</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-to-string" title="fs_codec_to_string ()">fs_codec_to_string</a> (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
94
void <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-add-optional-parameter" title="fs_codec_add_optional_parameter ()">fs_codec_add_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
99
>gchar</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-to-string" title="fs_codec_to_string ()">fs_codec_to_string</a> (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);
101
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
102
>void</a> <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-add-optional-parameter" title="fs_codec_add_optional_parameter ()">fs_codec_add_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
96
104
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
99
107
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
100
108
>gchar</a> *value);
101
void <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-remove-optional-parameter" title="fs_codec_remove_optional_parameter ()">fs_codec_remove_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
110
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
111
>void</a> <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-remove-optional-parameter" title="fs_codec_remove_optional_parameter ()">fs_codec_remove_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
102
112
<a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a> *param);
103
<a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-get-optional-parameter" title="fs_codec_get_optional_parameter ()">fs_codec_get_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
113
<a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-codec-get-optional-parameter" title="fs_codec_get_optional_parameter ()">fs_codec_get_optional_parameter</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
105
115
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
106
116
>gchar</a> *name,
108
118
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
109
119
>gchar</a> *value);
110
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-FORMAT:CAPS" title="FS_CODEC_FORMAT">FS_CODEC_FORMAT</a>
111
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ARGS:CAPS" title="FS_CODEC_ARGS()">FS_CODEC_ARGS</a> (codec)
120
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-FORMAT--CAPS" title="FS_CODEC_FORMAT">FS_CODEC_FORMAT</a>
121
#define <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ARGS--CAPS" title="FS_CODEC_ARGS()">FS_CODEC_ARGS</a> (codec)
113
123
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
114
>gchar</a>* <a class="link" href="farsight2-libs-FsCodec.html#fs-media-type-to-string" title="fs_media_type_to_string ()">fs_media_type_to_string</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type);
124
>gchar</a> * <a class="link" href="farsight2-libs-FsCodec.html#fs-media-type-to-string" title="fs_media_type_to_string ()">fs_media_type_to_string</a> (<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type);
117
127
<div class="refsect1" lang="en">
200
208
Enum used to signify the media type of a codec or stream.</p>
204
211
<div class="variablelist"><table border="0">
205
212
<col align="left" valign="top">
208
<td><p><a name="FS-MEDIA-TYPE-AUDIO:CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_AUDIO</code></span></p></td>
215
<td><p><a name="FS-MEDIA-TYPE-AUDIO--CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_AUDIO</code></span></p></td>
209
216
<td> A media type that encodes audio.
213
<td><p><a name="FS-MEDIA-TYPE-VIDEO:CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_VIDEO</code></span></p></td>
220
<td><p><a name="FS-MEDIA-TYPE-VIDEO--CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_VIDEO</code></span></p></td>
214
221
<td> A media type that encodes video.
218
<td><p><a name="FS-MEDIA-TYPE-LAST:CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_LAST</code></span></p></td>
225
<td><p><a name="FS-MEDIA-TYPE-LAST--CAPS"></a><span class="term"><code class="literal">FS_MEDIA_TYPE_LAST</code></span></p></td>
219
226
<td> Largest valid <a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType"><span class="type">FsMediaType</span></a>
259
265
<div class="refsect2" lang="en">
260
<a name="FS-CODEC-ID-ANY:CAPS"></a><h3>FS_CODEC_ID_ANY</h3>
266
<a name="FS-CODEC-ID-ANY--CAPS"></a><h3>FS_CODEC_ID_ANY</h3>
261
267
<pre class="programlisting">#define FS_CODEC_ID_ANY (-1)
264
If the id of a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> is <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-ANY:CAPS" title="FS_CODEC_ID_ANY"><span class="type">FS_CODEC_ID_ANY</span></a>, then it will be replaced
270
If the id of a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> is <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-ANY--CAPS" title="FS_CODEC_ID_ANY"><span class="type">FS_CODEC_ID_ANY</span></a>, then it will be replaced
265
271
with a dynamic payload type at runtime</p>
271
276
<div class="refsect2" lang="en">
272
<a name="FS-CODEC-ID-DISABLE:CAPS"></a><h3>FS_CODEC_ID_DISABLE</h3>
277
<a name="FS-CODEC-ID-DISABLE--CAPS"></a><h3>FS_CODEC_ID_DISABLE</h3>
273
278
<pre class="programlisting">#define FS_CODEC_ID_DISABLE (-2)
276
If the id of a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> is <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-DISABLE:CAPS" title="FS_CODEC_ID_DISABLE"><span class="type">FS_CODEC_ID_DISABLE</span></a>, then this codec will
281
If the id of a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> is <a class="link" href="farsight2-libs-FsCodec.html#FS-CODEC-ID-DISABLE--CAPS" title="FS_CODEC_ID_DISABLE"><span class="type">FS_CODEC_ID_DISABLE</span></a>, then this codec will
283
287
<div class="refsect2" lang="en">
284
288
<a name="fs-codec-new"></a><h3>fs_codec_new ()</h3>
285
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a>* fs_codec_new (int id,
289
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> * fs_codec_new (int id,
286
290
const char *encoding_name,
287
291
<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type,
328
331
<div class="refsect2" lang="en">
329
332
<a name="fs-codec-destroy"></a><h3>fs_codec_destroy ()</h3>
330
<pre class="programlisting">void fs_codec_destroy (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
333
<pre class="programlisting"><a
334
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
335
>void</a> fs_codec_destroy (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
332
337
Deletes a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> structure and all its data. Is a no-op on <a
333
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
338
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
334
339
><code class="literal">NULL</code></a> codec</p>
338
342
<div class="variablelist"><table border="0">
339
343
<col align="left" valign="top">
348
352
<div class="refsect2" lang="en">
349
353
<a name="fs-codec-copy"></a><h3>fs_codec_copy ()</h3>
350
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a>* fs_codec_copy (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
354
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> * fs_codec_copy (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
352
356
Copies a <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> structure.</p>
356
359
<div class="variablelist"><table border="0">
357
360
<col align="left" valign="top">
380
383
Compare two codecs, it will declare two codecs to be identical even
381
384
if their optional parameters are in a different order. <a
382
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
385
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
383
386
><code class="literal">NULL</code></a> encoding names
388
390
<div class="variablelist"><table border="0">
389
391
<col align="left" valign="top">
402
404
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
404
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
406
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
405
407
><code class="literal">TRUE</code></a> of the codecs are identical, <a
406
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
408
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
407
409
><code class="literal">FALSE</code></a> otherwise
415
417
<a name="fs-codec-list-from-keyfile"></a><h3>fs_codec_list_from_keyfile ()</h3>
416
418
<pre class="programlisting"><a
417
419
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
418
>GList</a>* fs_codec_list_from_keyfile (const <a
420
>GList</a> * fs_codec_list_from_keyfile (const <a
419
421
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
420
422
>gchar</a> *filename,
480
481
<div class="refsect2" lang="en">
481
482
<a name="fs-codec-list-destroy"></a><h3>fs_codec_list_destroy ()</h3>
482
<pre class="programlisting">void fs_codec_list_destroy (<a
483
<pre class="programlisting"><a
484
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
485
>void</a> fs_codec_list_destroy (<a
483
486
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
484
487
>GList</a> *codec_list);</pre>
486
489
Deletes a list of <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> structures and the list itself.
487
490
Does nothing on <a
488
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
491
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
489
492
><code class="literal">NULL</code></a> lists.</p>
493
495
<div class="variablelist"><table border="0">
494
496
<col align="left" valign="top">
504
506
<a name="fs-codec-list-copy"></a><h3>fs_codec_list_copy ()</h3>
505
507
<pre class="programlisting"><a
506
508
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
507
>GList</a>* fs_codec_list_copy (const <a
509
>GList</a> * fs_codec_list_copy (const <a
508
510
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
509
511
>GList</a> *codec_list);</pre>
511
513
Copies a list of <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> structures.</p>
515
516
<div class="variablelist"><table border="0">
516
517
<col align="left" valign="top">
565
565
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
567
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
567
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
568
568
><code class="literal">TRUE</code></a> if they are identical, <a
569
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
569
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
570
570
><code class="literal">FALSE</code></a> otherwise
578
578
<a name="fs-codec-to-string"></a><h3>fs_codec_to_string ()</h3>
579
579
<pre class="programlisting"><a
580
580
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
581
>gchar</a>* fs_codec_to_string (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
581
>gchar</a> * fs_codec_to_string (const <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec);</pre>
583
583
Returns a newly-allocated string representing the codec</p>
587
586
<div class="variablelist"><table border="0">
588
587
<col align="left" valign="top">
604
603
<div class="refsect2" lang="en">
605
604
<a name="fs-codec-add-optional-parameter"></a><h3>fs_codec_add_optional_parameter ()</h3>
606
<pre class="programlisting">void fs_codec_add_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
605
<pre class="programlisting"><a
606
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
607
>void</a> fs_codec_add_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
608
609
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
609
610
>gchar</a> *name,
640
640
<div class="refsect2" lang="en">
641
641
<a name="fs-codec-remove-optional-parameter"></a><h3>fs_codec_remove_optional_parameter ()</h3>
642
<pre class="programlisting">void fs_codec_remove_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
642
<pre class="programlisting"><a
643
href="/usr/share/gtk-doc/html/gnutls/gnutls-gnutls.html#void"
644
>void</a> fs_codec_remove_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
643
645
<a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a> *param);</pre>
645
647
Removes an optional parameter from a codec</p>
649
650
<div class="variablelist"><table border="0">
650
651
<col align="left" valign="top">
666
667
<div class="refsect2" lang="en">
667
668
<a name="fs-codec-get-optional-parameter"></a><h3>fs_codec_get_optional_parameter ()</h3>
668
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a>* fs_codec_get_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
669
<pre class="programlisting"><a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter">FsCodecParameter</a> * fs_codec_get_optional_parameter (<a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec">FsCodec</a> *codec,
670
671
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
671
672
>gchar</a> *name,
676
677
Finds the <a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter"><span class="type">FsCodecParameter</span></a> in the <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> that has the requested name
678
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
679
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
679
680
><code class="literal">NULL</code></a>, the requested value</p>
683
683
<div class="variablelist"><table border="0">
684
684
<col align="left" valign="top">
697
697
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
698
698
<td> The value of the parameter to search for or <a
699
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
699
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
700
700
><code class="literal">NULL</code></a> for any value
704
704
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
705
705
<td> the <a class="link" href="farsight2-libs-FsCodec.html#FsCodecParameter" title="FsCodecParameter"><span class="type">FsCodecParameter</span></a> from the <a class="link" href="farsight2-libs-FsCodec.html#FsCodec" title="FsCodec"><span class="type">FsCodec</span></a> or <a
706
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
706
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
707
707
><code class="literal">NULL</code></a>
714
714
<div class="refsect2" lang="en">
715
<a name="FS-CODEC-FORMAT:CAPS"></a><h3>FS_CODEC_FORMAT</h3>
715
<a name="FS-CODEC-FORMAT--CAPS"></a><h3>FS_CODEC_FORMAT</h3>
716
716
<pre class="programlisting">#define FS_CODEC_FORMAT "%d: %s %s clock:%d channels:%d params:%p"
719
719
A format that can be used in printf like format strings to format a FsCodec</p>
725
724
<div class="refsect2" lang="en">
726
<a name="FS-CODEC-ARGS:CAPS"></a><h3>FS_CODEC_ARGS()</h3>
725
<a name="FS-CODEC-ARGS--CAPS"></a><h3>FS_CODEC_ARGS()</h3>
727
726
<pre class="programlisting">#define FS_CODEC_ARGS(codec)</pre>
729
728
Formats the codec in args for FS_CODEC_FORMAT</p>
733
731
<div class="variablelist"><table border="0">
734
732
<col align="left" valign="top">
744
742
<a name="fs-media-type-to-string"></a><h3>fs_media_type_to_string ()</h3>
745
743
<pre class="programlisting">const <a
746
744
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
747
>gchar</a>* fs_media_type_to_string (<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type);</pre>
745
>gchar</a> * fs_media_type_to_string (<a class="link" href="farsight2-libs-FsCodec.html#FsMediaType" title="enum FsMediaType">FsMediaType</a> media_type);</pre>
749
747
Gives a user-printable string representing the media type</p>
753
750
<div class="variablelist"><table border="0">
754
751
<col align="left" valign="top">