33
30
<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-gsttaglicenses.top_of_page"></a>gsttaglicenses</span></h2>
34
31
<p>gsttaglicenses — utility functions for Creative Commons licenses</p>
36
<td valign="top" align="right"></td>
33
<td class="gallery_image" valign="top" align="right"></td>
37
34
</tr></table></div>
38
<div class="refsynopsisdiv">
39
<a name="gst-plugins-base-libs-gsttaglicenses.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">
41
#include <gst/tag/tag.h>
43
enum <a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags">GstTagLicenseFlags</a>;
44
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags"><span class="returnvalue">GstTagLicenseFlags</span></a> <a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-flags" title="gst_tag_get_license_flags ()">gst_tag_get_license_flags</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> *license_ref</code></em>);
45
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-gsttaglicenses.html#gst-tag-get-license-nick" title="gst_tag_get_license_nick ()">gst_tag_get_license_nick</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> *license_ref</code></em>);
46
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-gsttaglicenses.html#gst-tag-get-license-title" title="gst_tag_get_license_title ()">gst_tag_get_license_title</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> *license_ref</code></em>);
47
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-gsttaglicenses.html#gst-tag-get-license-description" title="gst_tag_get_license_description ()">gst_tag_get_license_description</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> *license_ref</code></em>);
48
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-gsttaglicenses.html#gst-tag-get-license-jurisdiction" title="gst_tag_get_license_jurisdiction ()">gst_tag_get_license_jurisdiction</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> *license_ref</code></em>);
49
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-gsttaglicenses.html#gst-tag-get-license-version" title="gst_tag_get_license_version ()">gst_tag_get_license_version</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> *license_ref</code></em>);
50
<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-gsttaglicenses.html#gst-tag-get-licenses" title="gst_tag_get_licenses ()">gst_tag_get_licenses</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
35
<div class="refsect1">
36
<a name="gst-plugins-base-libs-gsttaglicenses.functions"></a><h2>Functions</h2>
37
<div class="informaltable"><table width="100%" border="0">
39
<col width="150px" class="functions_return">
40
<col class="functions_name">
44
<td class="function_type">
45
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags"><span class="returnvalue">GstTagLicenseFlags</span></a>
47
<td class="function_name">
48
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-flags" title="gst_tag_get_license_flags ()">gst_tag_get_license_flags</a> <span class="c_punctuation">()</span>
52
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
54
<td class="function_name">
55
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-nick" title="gst_tag_get_license_nick ()">gst_tag_get_license_nick</a> <span class="c_punctuation">()</span>
59
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
61
<td class="function_name">
62
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-title" title="gst_tag_get_license_title ()">gst_tag_get_license_title</a> <span class="c_punctuation">()</span>
66
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
68
<td class="function_name">
69
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-description" title="gst_tag_get_license_description ()">gst_tag_get_license_description</a> <span class="c_punctuation">()</span>
73
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
75
<td class="function_name">
76
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-jurisdiction" title="gst_tag_get_license_jurisdiction ()">gst_tag_get_license_jurisdiction</a> <span class="c_punctuation">()</span>
80
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
82
<td class="function_name">
83
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-license-version" title="gst_tag_get_license_version ()">gst_tag_get_license_version</a> <span class="c_punctuation">()</span>
87
<td class="function_type">
88
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
90
<td class="function_name">
91
<a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#gst-tag-get-licenses" title="gst_tag_get_licenses ()">gst_tag_get_licenses</a> <span class="c_punctuation">()</span>
97
<div class="refsect1">
98
<a name="gst-plugins-base-libs-gsttaglicenses.other"></a><h2>Types and Values</h2>
99
<div class="informaltable"><table width="100%" border="0">
101
<col width="150px" class="name">
102
<col class="description">
105
<td class="datatype_keyword">enum</td>
106
<td class="function_name"><a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags">GstTagLicenseFlags</a></td>
110
<div class="refsect1">
111
<a name="gst-plugins-base-libs-gsttaglicenses.object-hierarchy"></a><h2>Object Hierarchy</h2>
115
<div class="refsect1">
116
<a name="gst-plugins-base-libs-gsttaglicenses.includes"></a><h2>Includes</h2>
117
<pre class="synopsis">#include <gst/tag/tag.h>
53
120
<div class="refsect1">
54
121
<a name="gst-plugins-base-libs-gsttaglicenses.description"></a><h2>Description</h2>
56
Provides information about Creative Commons media licenses, which are
122
<p>Provides information about Creative Commons media licenses, which are
57
123
often expressed in media files as a license URI in tags. Also useful
58
124
for applications creating media files, in case the user wants to license
59
the content under a Creative Commons license.
62
<div class="refsect1">
63
<a name="gst-plugins-base-libs-gsttaglicenses.details"></a><h2>Details</h2>
125
the content under a Creative Commons license.</p>
127
<div class="refsect1">
128
<a name="gst-plugins-base-libs-gsttaglicenses.functions_details"></a><h2>Functions</h2>
129
<div class="refsect2">
130
<a name="gst-tag-get-license-flags"></a><h3>gst_tag_get_license_flags ()</h3>
131
<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags"><span class="returnvalue">GstTagLicenseFlags</span></a>
132
gst_tag_get_license_flags (<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> *license_ref</code></em>);</pre>
133
<p>Get the flags of a license, which describe most of the features of
134
a license in their most general form.</p>
135
<div class="refsect3">
136
<a name="id-1.2.12.12.8.2.5"></a><h4>Parameters</h4>
137
<div class="informaltable"><table width="100%" border="0">
139
<col width="150px" class="parameters_name">
140
<col class="parameters_description">
141
<col width="200px" class="parameters_annotations">
144
<td class="parameter_name"><p>license_ref</p></td>
145
<td class="parameter_description"><p>a license reference string in form of a URI,
146
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
147
<td class="parameter_annotations"> </td>
151
<div class="refsect3">
152
<a name="id-1.2.12.12.8.2.6"></a><h4>Returns</h4>
153
<p> the flags of the license, or 0 if the license is unknown</p>
158
<div class="refsect2">
159
<a name="gst-tag-get-license-nick"></a><h3>gst_tag_get_license_nick ()</h3>
160
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
161
gst_tag_get_license_nick (<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> *license_ref</code></em>);</pre>
162
<p>Get the nick name of a license, which is a short (untranslated) string
163
such as e.g. "CC BY-NC-ND 2.0 UK".</p>
164
<div class="refsect3">
165
<a name="id-1.2.12.12.8.3.5"></a><h4>Parameters</h4>
166
<div class="informaltable"><table width="100%" border="0">
168
<col width="150px" class="parameters_name">
169
<col class="parameters_description">
170
<col width="200px" class="parameters_annotations">
173
<td class="parameter_name"><p>license_ref</p></td>
174
<td class="parameter_description"><p>a license reference string in form of a URI,
175
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
176
<td class="parameter_annotations"> </td>
180
<div class="refsect3">
181
<a name="id-1.2.12.12.8.3.6"></a><h4>Returns</h4>
182
<p> the nick name of the license, or NULL if the license is unknown</p>
187
<div class="refsect2">
188
<a name="gst-tag-get-license-title"></a><h3>gst_tag_get_license_title ()</h3>
189
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
190
gst_tag_get_license_title (<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> *license_ref</code></em>);</pre>
191
<p>Get the title of a license, which is a short translated description
192
of the license's features (generally not very pretty though).</p>
193
<div class="refsect3">
194
<a name="id-1.2.12.12.8.4.5"></a><h4>Parameters</h4>
195
<div class="informaltable"><table width="100%" border="0">
197
<col width="150px" class="parameters_name">
198
<col class="parameters_description">
199
<col width="200px" class="parameters_annotations">
202
<td class="parameter_name"><p>license_ref</p></td>
203
<td class="parameter_description"><p>a license reference string in form of a URI,
204
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
205
<td class="parameter_annotations"> </td>
209
<div class="refsect3">
210
<a name="id-1.2.12.12.8.4.6"></a><h4>Returns</h4>
211
<p> the title of the license, or NULL if the license is unknown or
212
no title is available.</p>
217
<div class="refsect2">
218
<a name="gst-tag-get-license-description"></a><h3>gst_tag_get_license_description ()</h3>
219
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
220
gst_tag_get_license_description (<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> *license_ref</code></em>);</pre>
221
<p>Get the description of a license, which is a translated description
222
of the license's main features.</p>
223
<div class="refsect3">
224
<a name="id-1.2.12.12.8.5.5"></a><h4>Parameters</h4>
225
<div class="informaltable"><table width="100%" border="0">
227
<col width="150px" class="parameters_name">
228
<col class="parameters_description">
229
<col width="200px" class="parameters_annotations">
232
<td class="parameter_name"><p>license_ref</p></td>
233
<td class="parameter_description"><p>a license reference string in form of a URI,
234
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
235
<td class="parameter_annotations"> </td>
239
<div class="refsect3">
240
<a name="id-1.2.12.12.8.5.6"></a><h4>Returns</h4>
241
<p> the description of the license, or NULL if the license is unknown
242
or a description is not available.</p>
247
<div class="refsect2">
248
<a name="gst-tag-get-license-jurisdiction"></a><h3>gst_tag_get_license_jurisdiction ()</h3>
249
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
250
gst_tag_get_license_jurisdiction (<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> *license_ref</code></em>);</pre>
251
<p>Get the jurisdiction code of a license. This is usually a two-letter
252
ISO 3166-1 alpha-2 code, but there is also the special case of Scotland,
253
for which no code exists and which is thus represented as "scotland".</p>
254
<p>Known jurisdictions: ar, at, au, be, bg, br, ca, ch, cl, cn, co, de,
255
dk, es, fi, fr, hr, hu, il, in, it, jp, kr, mk, mt, mx, my, nl, pe, pl,
256
pt, scotland, se, si, tw, uk, us, za.</p>
257
<div class="refsect3">
258
<a name="id-1.2.12.12.8.6.6"></a><h4>Parameters</h4>
259
<div class="informaltable"><table width="100%" border="0">
261
<col width="150px" class="parameters_name">
262
<col class="parameters_description">
263
<col width="200px" class="parameters_annotations">
266
<td class="parameter_name"><p>license_ref</p></td>
267
<td class="parameter_description"><p>a license reference string in form of a URI,
268
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
269
<td class="parameter_annotations"> </td>
273
<div class="refsect3">
274
<a name="id-1.2.12.12.8.6.7"></a><h4>Returns</h4>
275
<p> the jurisdiction code of the license, or NULL if the license is
276
unknown or is not specific to a particular jurisdiction.</p>
281
<div class="refsect2">
282
<a name="gst-tag-get-license-version"></a><h3>gst_tag_get_license_version ()</h3>
283
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
284
gst_tag_get_license_version (<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> *license_ref</code></em>);</pre>
285
<p>Get the version of a license.</p>
286
<div class="refsect3">
287
<a name="id-1.2.12.12.8.7.5"></a><h4>Parameters</h4>
288
<div class="informaltable"><table width="100%" border="0">
290
<col width="150px" class="parameters_name">
291
<col class="parameters_description">
292
<col width="200px" class="parameters_annotations">
295
<td class="parameter_name"><p>license_ref</p></td>
296
<td class="parameter_description"><p>a license reference string in form of a URI,
297
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</p></td>
298
<td class="parameter_annotations"> </td>
302
<div class="refsect3">
303
<a name="id-1.2.12.12.8.7.6"></a><h4>Returns</h4>
304
<p> the version of the license, or NULL if the license is not known or
310
<div class="refsect2">
311
<a name="gst-tag-get-licenses"></a><h3>gst_tag_get_licenses ()</h3>
312
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
313
gst_tag_get_licenses (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
314
<p>Returns a list of known license references (in form of URIs). This is
315
useful for UIs to build a list of available licenses for tagging purposes
316
(e.g. to tag an audio track appropriately in a video or audio editor, or
317
an image in a camera application).</p>
318
<div class="refsect3">
319
<a name="id-1.2.12.12.8.8.5"></a><h4>Returns</h4>
320
<p> NULL-terminated array of license strings. Free
321
with <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when no longer needed. </p>
322
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
326
<div class="refsect1">
327
<a name="gst-plugins-base-libs-gsttaglicenses.other_details"></a><h2>Types and Values</h2>
64
328
<div class="refsect2">
65
329
<a name="GstTagLicenseFlags"></a><h3>enum GstTagLicenseFlags</h3>
66
<pre class="programlisting">typedef enum {
67
GST_TAG_LICENSE_PERMITS_REPRODUCTION = (1 << 0),
68
GST_TAG_LICENSE_PERMITS_DISTRIBUTION = (1 << 1),
69
GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS = (1 << 2),
70
GST_TAG_LICENSE_PERMITS_SHARING = (1 << 3),
72
GST_TAG_LICENSE_REQUIRES_NOTICE = (1 << 8),
73
GST_TAG_LICENSE_REQUIRES_ATTRIBUTION = (1 << 9),
74
GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE = (1 << 10),
75
GST_TAG_LICENSE_REQUIRES_SOURCE_CODE = (1 << 11),
76
GST_TAG_LICENSE_REQUIRES_COPYLEFT = (1 << 12),
77
GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT = (1 << 13),
79
GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE = (1 << 16),
80
GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE = (1 << 17),
82
GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE = (1 << 24),
83
GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE = (1 << 25)
87
See http://creativecommons.org/ns for more information.
89
<div class="variablelist"><table border="0" class="variablelist">
330
<p>See http://creativecommons.org/ns for more information.</p>
331
<div class="refsect3">
332
<a name="id-1.2.12.12.9.2.4"></a><h4>Members</h4>
333
<div class="informaltable"><table width="100%" border="0">
91
<col align="left" valign="top">
335
<col width="300px" class="enum_members_name">
336
<col class="enum_members_description">
337
<col width="200px" class="enum_members_annotations">
96
<td><p><a name="GST-TAG-LICENSE-PERMITS-REPRODUCTION:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PERMITS_REPRODUCTION</code></span></p></td>
97
<td>making multiple copies
102
<td><p><a name="GST-TAG-LICENSE-PERMITS-DISTRIBUTION:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PERMITS_DISTRIBUTION</code></span></p></td>
103
<td>distribution, public display
104
and public performance are allowed
108
<td><p><a name="GST-TAG-LICENSE-PERMITS-DERIVATIVE-WORKS:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS</code></span></p></td>
109
<td>distribution of derivative
114
<td><p><a name="GST-TAG-LICENSE-PERMITS-SHARING:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PERMITS_SHARING</code></span></p></td>
115
<td>commercial derivatives are allowed,
116
but only non-commercial distribution is allowed
120
<td><p><a name="GST-TAG-LICENSE-REQUIRES-NOTICE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_NOTICE</code></span></p></td>
121
<td>copyright and license notices
126
<td><p><a name="GST-TAG-LICENSE-REQUIRES-ATTRIBUTION:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_ATTRIBUTION</code></span></p></td>
127
<td>credit must be given to
128
copyright holder and/or author
132
<td><p><a name="GST-TAG-LICENSE-REQUIRES-SHARE-ALIKE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE</code></span></p></td>
133
<td>derivative works must be
134
licensed under the same terms or compatible terms as the original work
138
<td><p><a name="GST-TAG-LICENSE-REQUIRES-SOURCE-CODE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_SOURCE_CODE</code></span></p></td>
139
<td>source code (the preferred
341
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PERMITS-REPRODUCTION:CAPS"></a>GST_TAG_LICENSE_PERMITS_REPRODUCTION</p></td>
342
<td class="enum_member_description">
343
<p>making multiple copies
346
<td class="enum_member_annotations"> </td>
349
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PERMITS-DISTRIBUTION:CAPS"></a>GST_TAG_LICENSE_PERMITS_DISTRIBUTION</p></td>
350
<td class="enum_member_description">
351
<p>distribution, public display
352
and public performance are allowed</p>
354
<td class="enum_member_annotations"> </td>
357
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PERMITS-DERIVATIVE-WORKS:CAPS"></a>GST_TAG_LICENSE_PERMITS_DERIVATIVE_WORKS</p></td>
358
<td class="enum_member_description">
359
<p>distribution of derivative
362
<td class="enum_member_annotations"> </td>
365
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PERMITS-SHARING:CAPS"></a>GST_TAG_LICENSE_PERMITS_SHARING</p></td>
366
<td class="enum_member_description">
367
<p>commercial derivatives are allowed,
368
but only non-commercial distribution is allowed</p>
370
<td class="enum_member_annotations"> </td>
373
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-NOTICE:CAPS"></a>GST_TAG_LICENSE_REQUIRES_NOTICE</p></td>
374
<td class="enum_member_description">
375
<p>copyright and license notices
376
must be kept intact</p>
378
<td class="enum_member_annotations"> </td>
381
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-ATTRIBUTION:CAPS"></a>GST_TAG_LICENSE_REQUIRES_ATTRIBUTION</p></td>
382
<td class="enum_member_description">
383
<p>credit must be given to
384
copyright holder and/or author</p>
386
<td class="enum_member_annotations"> </td>
389
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-SHARE-ALIKE:CAPS"></a>GST_TAG_LICENSE_REQUIRES_SHARE_ALIKE</p></td>
390
<td class="enum_member_description">
391
<p>derivative works must be
392
licensed under the same terms or compatible terms as the original work</p>
394
<td class="enum_member_annotations"> </td>
397
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-SOURCE-CODE:CAPS"></a>GST_TAG_LICENSE_REQUIRES_SOURCE_CODE</p></td>
398
<td class="enum_member_description">
399
<p>source code (the preferred
140
400
form for making modifications) must be provided when exercising some
141
rights granted by the license
401
rights granted by the license</p>
403
<td class="enum_member_annotations"> </td>
145
<td><p><a name="GST-TAG-LICENSE-REQUIRES-COPYLEFT:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_COPYLEFT</code></span></p></td>
146
<td>derivative and combined works
406
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-COPYLEFT:CAPS"></a>GST_TAG_LICENSE_REQUIRES_COPYLEFT</p></td>
407
<td class="enum_member_description">
408
<p>derivative and combined works
147
409
must be licensed under specified terms, similar to those of the original
412
<td class="enum_member_annotations"> </td>
152
<td><p><a name="GST-TAG-LICENSE-REQUIRES-LESSER-COPYLEFT:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT</code></span></p></td>
153
<td>derivative works must be
415
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-REQUIRES-LESSER-COPYLEFT:CAPS"></a>GST_TAG_LICENSE_REQUIRES_LESSER_COPYLEFT</p></td>
416
<td class="enum_member_description">
417
<p>derivative works must be
154
418
licensed under specified terms, with at least the same conditions as
155
419
the original work; combinations with the work may be licensed under
160
<td><p><a name="GST-TAG-LICENSE-PROHIBITS-COMMERCIAL-USE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE</code></span></p></td>
161
<td>exercising rights for
162
commercial purposes is prohibited
166
<td><p><a name="GST-TAG-LICENSE-PROHIBITS-HIGH-INCOME-NATION-USE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE</code></span></p></td>
168
non-developing country is prohibited
172
<td><p><a name="GST-TAG-LICENSE-CREATIVE-COMMONS-LICENSE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE</code></span></p></td>
173
<td>this license was created
174
by the Creative Commons project
178
<td><p><a name="GST-TAG-LICENSE-FREE-SOFTWARE-FOUNDATION-LICENSE:CAPS"></a><span class="term"><code class="literal">GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE</code></span></p></td>
180
created by the Free Software Foundation (FSF)
187
<div class="refsect2">
188
<a name="gst-tag-get-license-flags"></a><h3>gst_tag_get_license_flags ()</h3>
189
<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-gsttaglicenses.html#GstTagLicenseFlags" title="enum GstTagLicenseFlags"><span class="returnvalue">GstTagLicenseFlags</span></a> gst_tag_get_license_flags (<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> *license_ref</code></em>);</pre>
191
Get the flags of a license, which describe most of the features of
192
a license in their most general form.
194
<div class="variablelist"><table border="0" class="variablelist">
196
<col align="left" valign="top">
201
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
202
<td>a license reference string in form of a URI,
203
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
206
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
207
<td>the flags of the license, or 0 if the license is unknown</td>
213
<div class="refsect2">
214
<a name="gst-tag-get-license-nick"></a><h3>gst_tag_get_license_nick ()</h3>
215
<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_tag_get_license_nick (<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> *license_ref</code></em>);</pre>
217
Get the nick name of a license, which is a short (untranslated) string
218
such as e.g. "CC BY-NC-ND 2.0 UK".
220
<div class="variablelist"><table border="0" class="variablelist">
222
<col align="left" valign="top">
227
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
228
<td>a license reference string in form of a URI,
229
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
232
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
233
<td>the nick name of the license, or NULL if the license is unknown</td>
239
<div class="refsect2">
240
<a name="gst-tag-get-license-title"></a><h3>gst_tag_get_license_title ()</h3>
241
<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_tag_get_license_title (<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> *license_ref</code></em>);</pre>
243
Get the title of a license, which is a short translated description
244
of the license's features (generally not very pretty though).
246
<div class="variablelist"><table border="0" class="variablelist">
248
<col align="left" valign="top">
253
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
254
<td>a license reference string in form of a URI,
255
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
258
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
259
<td>the title of the license, or NULL if the license is unknown or
260
no title is available.</td>
266
<div class="refsect2">
267
<a name="gst-tag-get-license-description"></a><h3>gst_tag_get_license_description ()</h3>
268
<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_tag_get_license_description (<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> *license_ref</code></em>);</pre>
270
Get the description of a license, which is a translated description
271
of the license's main features.
273
<div class="variablelist"><table border="0" class="variablelist">
275
<col align="left" valign="top">
280
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
281
<td>a license reference string in form of a URI,
282
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
285
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
286
<td>the description of the license, or NULL if the license is unknown
287
or a description is not available.</td>
293
<div class="refsect2">
294
<a name="gst-tag-get-license-jurisdiction"></a><h3>gst_tag_get_license_jurisdiction ()</h3>
295
<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_tag_get_license_jurisdiction (<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> *license_ref</code></em>);</pre>
297
Get the jurisdiction code of a license. This is usually a two-letter
298
ISO 3166-1 alpha-2 code, but there is also the special case of Scotland,
299
for which no code exists and which is thus represented as "scotland".
302
Known jurisdictions: ar, at, au, be, bg, br, ca, ch, cl, cn, co, de,
303
dk, es, fi, fr, hr, hu, il, in, it, jp, kr, mk, mt, mx, my, nl, pe, pl,
304
pt, scotland, se, si, tw, uk, us, za.
306
<div class="variablelist"><table border="0" class="variablelist">
308
<col align="left" valign="top">
313
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
314
<td>a license reference string in form of a URI,
315
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
318
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
319
<td>the jurisdiction code of the license, or NULL if the license is
320
unknown or is not specific to a particular jurisdiction.</td>
326
<div class="refsect2">
327
<a name="gst-tag-get-license-version"></a><h3>gst_tag_get_license_version ()</h3>
328
<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_tag_get_license_version (<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> *license_ref</code></em>);</pre>
330
Get the version of a license.
332
<div class="variablelist"><table border="0" class="variablelist">
334
<col align="left" valign="top">
339
<td><p><span class="term"><em class="parameter"><code>license_ref</code></em> :</span></p></td>
340
<td>a license reference string in form of a URI,
341
e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/"</td>
344
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
345
<td>the version of the license, or NULL if the license is not known or
352
<div class="refsect2">
353
<a name="gst-tag-get-licenses"></a><h3>gst_tag_get_licenses ()</h3>
354
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> ** gst_tag_get_licenses (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
356
Returns a list of known license references (in form of URIs). This is
357
useful for UIs to build a list of available licenses for tagging purposes
358
(e.g. to tag an audio track appropriately in a video or audio editor, or
359
an image in a camera application).
361
<div class="variablelist"><table border="0" class="variablelist">
363
<col align="left" valign="top">
367
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
368
<td>NULL-terminated array of license strings. Free
369
with <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
422
<td class="enum_member_annotations"> </td>
425
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PROHIBITS-COMMERCIAL-USE:CAPS"></a>GST_TAG_LICENSE_PROHIBITS_COMMERCIAL_USE</p></td>
426
<td class="enum_member_description">
427
<p>exercising rights for
428
commercial purposes is prohibited</p>
430
<td class="enum_member_annotations"> </td>
433
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-PROHIBITS-HIGH-INCOME-NATION-USE:CAPS"></a>GST_TAG_LICENSE_PROHIBITS_HIGH_INCOME_NATION_USE</p></td>
434
<td class="enum_member_description">
436
non-developing country is prohibited</p>
438
<td class="enum_member_annotations"> </td>
441
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-CREATIVE-COMMONS-LICENSE:CAPS"></a>GST_TAG_LICENSE_CREATIVE_COMMONS_LICENSE</p></td>
442
<td class="enum_member_description">
443
<p>this license was created
444
by the Creative Commons project</p>
446
<td class="enum_member_annotations"> </td>
449
<td class="enum_member_name"><p><a name="GST-TAG-LICENSE-FREE-SOFTWARE-FOUNDATION-LICENSE:CAPS"></a>GST_TAG_LICENSE_FREE_SOFTWARE_FOUNDATION_LICENSE</p></td>
450
<td class="enum_member_description">
452
created by the Free Software Foundation (FSF)</p>
454
<td class="enum_member_annotations"> </td>
375
461
<div class="refsect1">
376
462
<a name="gst-plugins-base-libs-gsttaglicenses.see-also"></a><h2>See Also</h2>
377
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstTagList.html#GstTagList"><span class="type">GstTagList</span></a>
463
<p><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstTagList.html#GstTagList"><span class="type">GstTagList</span></a></p>
380
466
<div class="footer">
382
Generated by GTK-Doc V1.19</div>
468
Generated by GTK-Doc V1.20</div>
b'\\ No newline at end of file'