gsttaglist: Adds new tags
[platform/upstream/gstreamer.git] / gst / gsttaglist.h
1 /* GStreamer
2  * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
3  *
4  * gsttaglist.h: Header for tag support
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22
23 #ifndef __GST_TAGLIST_H__
24 #define __GST_TAGLIST_H__
25
26 #include <gst/gstbuffer.h>
27 #include <gst/gststructure.h>
28 #include <gst/glib-compat.h>
29
30 G_BEGIN_DECLS
31
32 /**
33  * GstTagMergeMode:
34  * @GST_TAG_MERGE_UNDEFINED: undefined merge mode
35  * @GST_TAG_MERGE_REPLACE_ALL: replace all tags (clear list and append)
36  * @GST_TAG_MERGE_REPLACE: replace tags
37  * @GST_TAG_MERGE_APPEND: append tags
38  * @GST_TAG_MERGE_PREPEND: prepend tags
39  * @GST_TAG_MERGE_KEEP: keep existing tags
40  * @GST_TAG_MERGE_KEEP_ALL: keep all existing tags
41  * @GST_TAG_MERGE_COUNT: the number of merge modes
42  *
43  * The different tag merging modes are basically replace, overwrite and append,
44  * but they can be seen from two directions. Given two taglists: (A) the tags
45  * already in the element and (B) the ones that are supplied to the element (
46  * e.g. via gst_tag_setter_merge_tags() / gst_tag_setter_add_tags() or a
47  * %GST_EVENT_TAG), how are these tags merged?
48  * In the table below this is shown for the cases that a tag exists in the list
49  * (A) or does not exists (!A) and combinations thereof.
50  *
51  * <table frame="all" colsep="1" rowsep="1">
52  *   <title>merge mode</title>
53  *   <tgroup cols='5' align='left'>
54  *     <thead>
55  *       <row>
56  *         <entry>merge mode</entry>
57  *         <entry>A + B</entry>
58  *         <entry>A + !B</entry>
59  *         <entry>!A + B</entry>
60  *         <entry>!A + !B</entry>
61  *       </row>
62  *     </thead>
63  *     <tbody>
64  *       <row>
65  *         <entry>REPLACE_ALL</entry>
66  *         <entry>B</entry>
67  *         <entry>-</entry>
68  *         <entry>B</entry>
69  *         <entry>-</entry>
70  *       </row>
71  *       <row>
72  *         <entry>REPLACE</entry>
73  *         <entry>B</entry>
74  *         <entry>A</entry>
75  *         <entry>B</entry>
76  *         <entry>-</entry>
77  *       </row>
78  *       <row>
79  *         <entry>APPEND</entry>
80  *         <entry>A, B</entry>
81  *         <entry>A</entry>
82  *         <entry>B</entry>
83  *         <entry>-</entry>
84  *       </row>
85  *       <row>
86  *         <entry>PREPEND</entry>
87  *         <entry>B, A</entry>
88  *         <entry>A</entry>
89  *         <entry>B</entry>
90  *         <entry>-</entry>
91  *       </row>
92  *       <row>
93  *         <entry>KEEP</entry>
94  *         <entry>A</entry>
95  *         <entry>A</entry>
96  *         <entry>B</entry>
97  *         <entry>-</entry>
98  *       </row>
99  *       <row>
100  *         <entry>KEEP_ALL</entry>
101  *         <entry>A</entry>
102  *         <entry>A</entry>
103  *         <entry>-</entry>
104  *         <entry>-</entry>
105  *       </row>
106  *     </tbody>
107  *   </tgroup>
108  * </table>
109  */
110 typedef enum {
111   GST_TAG_MERGE_UNDEFINED,
112   GST_TAG_MERGE_REPLACE_ALL,
113   GST_TAG_MERGE_REPLACE,
114   GST_TAG_MERGE_APPEND,
115   GST_TAG_MERGE_PREPEND,
116   GST_TAG_MERGE_KEEP,
117   GST_TAG_MERGE_KEEP_ALL,
118   /* add more */
119   GST_TAG_MERGE_COUNT
120 } GstTagMergeMode;
121
122 #define GST_TAG_MODE_IS_VALID(mode)     (((mode) > GST_TAG_MERGE_UNDEFINED) && ((mode) < GST_TAG_MERGE_COUNT))
123
124 /**
125  * GstTagFlag:
126  * @GST_TAG_FLAG_UNDEFINED: undefined flag
127  * @GST_TAG_FLAG_META: tag is meta data
128  * @GST_TAG_FLAG_ENCODED: tag is encoded
129  * @GST_TAG_FLAG_DECODED: tag is decoded
130  * @GST_TAG_FLAG_COUNT: number of tag flags
131  *
132  * Extra tag flags used when registering tags.
133  */
134 typedef enum {
135   GST_TAG_FLAG_UNDEFINED,
136   GST_TAG_FLAG_META,
137   GST_TAG_FLAG_ENCODED,
138   GST_TAG_FLAG_DECODED,
139   GST_TAG_FLAG_COUNT
140 } GstTagFlag;
141
142 #define GST_TAG_FLAG_IS_VALID(flag)     (((flag) > GST_TAG_FLAG_UNDEFINED) && ((flag) < GST_TAG_FLAG_COUNT))
143
144 /* FIXME 0.11: Don't typedef GstTagList to be a GstStructure, they're
145  *             internally the same but not from an API point of view.
146  *             See bug #518934.
147  */
148 /**
149  * GstTagList:
150  *
151  * Opaque #GstTagList data structure.
152  */
153 #ifdef IN_GOBJECT_INTROSPECTION
154 typedef struct _GstTagList GstTagList;
155 #else
156 typedef GstStructure GstTagList;
157 #endif
158
159 #define GST_TAG_LIST(x)       ((GstTagList *) (x))
160 #define GST_IS_TAG_LIST(x)    ((x) != NULL && gst_is_tag_list (GST_TAG_LIST (x)))
161 #define GST_TYPE_TAG_LIST     (gst_tag_list_get_type ())
162
163 /**
164  * GstTagForeachFunc:
165  * @list: the #GstTagList
166  * @tag: a name of a tag in @list
167  * @user_data: user data
168  *
169  * A function that will be called in gst_tag_list_foreach(). The function may
170  * not modify the tag list.
171  */
172 typedef void (*GstTagForeachFunc) (const GstTagList * list,
173                                    const gchar      * tag,
174                                    gpointer           user_data);
175
176 /**
177  * GstTagMergeFunc:
178  * @dest: the destination #GValue
179  * @src: the source #GValue
180  *
181  * A function for merging multiple values of a tag used when registering
182  * tags.
183  */
184 typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
185
186 GType        gst_tag_list_get_type (void);
187
188 /* tag registration */
189 void         gst_tag_register      (const gchar     * name,
190                                     GstTagFlag        flag,
191                                     GType             type,
192                                     const gchar     * nick,
193                                     const gchar     * blurb,
194                                     GstTagMergeFunc   func);
195
196 /* some default merging functions */
197 void      gst_tag_merge_use_first          (GValue * dest, const GValue * src);
198 void      gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
199
200 /* basic tag support */
201 gboolean               gst_tag_exists          (const gchar * tag);
202 GType                  gst_tag_get_type        (const gchar * tag);
203 G_CONST_RETURN gchar * gst_tag_get_nick        (const gchar * tag);
204 G_CONST_RETURN gchar * gst_tag_get_description (const gchar * tag);
205 GstTagFlag             gst_tag_get_flag        (const gchar * tag);
206 gboolean               gst_tag_is_fixed        (const gchar * tag);
207
208 /* tag lists */
209 GstTagList * gst_tag_list_new               (void);
210 GstTagList * gst_tag_list_new_full          (const gchar * tag, ...);
211 GstTagList * gst_tag_list_new_full_valist   (va_list var_args);
212
213 gboolean     gst_is_tag_list                (gconstpointer p);
214 GstTagList * gst_tag_list_copy              (const GstTagList * list);
215 gboolean     gst_tag_list_is_empty          (const GstTagList * list);
216 void         gst_tag_list_insert            (GstTagList       * into,
217                                              const GstTagList * from,
218                                              GstTagMergeMode    mode);
219 GstTagList * gst_tag_list_merge             (const GstTagList * list1,
220                                              const GstTagList * list2,
221                                              GstTagMergeMode    mode);
222 void         gst_tag_list_free              (GstTagList       * list);
223 guint        gst_tag_list_get_tag_size      (const GstTagList * list,
224                                              const gchar      * tag);
225 void         gst_tag_list_add               (GstTagList       * list,
226                                              GstTagMergeMode    mode,
227                                              const gchar      * tag,
228                                              ...) G_GNUC_NULL_TERMINATED;
229 void         gst_tag_list_add_values        (GstTagList       * list,
230                                              GstTagMergeMode    mode,
231                                              const gchar      * tag,
232                                              ...) G_GNUC_NULL_TERMINATED;
233 void         gst_tag_list_add_valist        (GstTagList       * list,
234                                              GstTagMergeMode    mode,
235                                              const gchar      * tag,
236                                              va_list        var_args);
237 void         gst_tag_list_add_valist_values (GstTagList       * list,
238                                              GstTagMergeMode    mode,
239                                              const gchar      * tag,
240                                              va_list            var_args);
241 void         gst_tag_list_add_value         (GstTagList       * list,
242                                              GstTagMergeMode    mode,
243                                              const gchar      * tag,
244                                              const GValue     * value);
245 void         gst_tag_list_remove_tag        (GstTagList       * list,
246                                              const gchar      * tag);
247 void         gst_tag_list_foreach           (const GstTagList * list,
248                                              GstTagForeachFunc  func,
249                                              gpointer           user_data);
250
251 G_CONST_RETURN GValue *
252              gst_tag_list_get_value_index   (const GstTagList * list,
253                                              const gchar      * tag,
254                                              guint              index);
255 gboolean     gst_tag_list_copy_value        (GValue           * dest,
256                                              const GstTagList * list,
257                                              const gchar      * tag);
258
259 /* simplifications (FIXME: do we want them?) */
260 gboolean     gst_tag_list_get_char          (const GstTagList * list,
261                                              const gchar      * tag,
262                                              gchar            * value);
263 gboolean     gst_tag_list_get_char_index    (const GstTagList * list,
264                                              const gchar      * tag,
265                                              guint              index,
266                                              gchar            * value);
267 gboolean     gst_tag_list_get_uchar         (const GstTagList * list,
268                                              const gchar      * tag,
269                                              guchar           * value);
270 gboolean     gst_tag_list_get_uchar_index   (const GstTagList * list,
271                                              const gchar      * tag,
272                                              guint              index,
273                                              guchar           * value);
274 gboolean     gst_tag_list_get_boolean       (const GstTagList * list,
275                                              const gchar      * tag,
276                                              gboolean         * value);
277 gboolean     gst_tag_list_get_boolean_index (const GstTagList * list,
278                                              const gchar      * tag,
279                                              guint              index,
280                                              gboolean         * value);
281 gboolean     gst_tag_list_get_int           (const GstTagList * list,
282                                              const gchar      * tag,
283                                              gint             * value);
284 gboolean     gst_tag_list_get_int_index     (const GstTagList * list,
285                                              const gchar      * tag,
286                                              guint              index,
287                                              gint             * value);
288 gboolean     gst_tag_list_get_uint          (const GstTagList * list,
289                                              const gchar      * tag,
290                                              guint            * value);
291 gboolean     gst_tag_list_get_uint_index    (const GstTagList * list,
292                                              const gchar      * tag,
293                                              guint              index,
294                                              guint            * value);
295 gboolean     gst_tag_list_get_long          (const GstTagList * list,
296                                              const gchar      * tag,
297                                              glong            * value);
298 gboolean     gst_tag_list_get_long_index    (const GstTagList * list,
299                                              const gchar      * tag,
300                                              guint              index,
301                                              glong            * value);
302 gboolean     gst_tag_list_get_ulong         (const GstTagList * list,
303                                              const gchar      * tag,
304                                              gulong           * value);
305 gboolean     gst_tag_list_get_ulong_index   (const GstTagList * list,
306                                              const gchar      * tag,
307                                              guint              index,
308                                              gulong           * value);
309 gboolean     gst_tag_list_get_int64         (const GstTagList * list,
310                                              const gchar      * tag,
311                                              gint64           * value);
312 gboolean     gst_tag_list_get_int64_index   (const GstTagList * list,
313                                              const gchar      * tag,
314                                              guint              index,
315                                              gint64           * value);
316 gboolean     gst_tag_list_get_uint64        (const GstTagList * list,
317                                              const gchar      * tag,
318                                              guint64          * value);
319 gboolean     gst_tag_list_get_uint64_index  (const GstTagList * list,
320                                              const gchar      * tag,
321                                              guint              index,
322                                              guint64          * value);
323 gboolean     gst_tag_list_get_float         (const GstTagList * list,
324                                              const gchar      * tag,
325                                              gfloat           * value);
326 gboolean     gst_tag_list_get_float_index   (const GstTagList * list,
327                                              const gchar      * tag,
328                                              guint              index,
329                                              gfloat           * value);
330 gboolean     gst_tag_list_get_double        (const GstTagList * list,
331                                              const gchar      * tag,
332                                              gdouble          * value);
333 gboolean     gst_tag_list_get_double_index  (const GstTagList * list,
334                                              const gchar      * tag,
335                                              guint              index,
336                                              gdouble          * value);
337 gboolean     gst_tag_list_get_string        (const GstTagList * list,
338                                              const gchar      * tag,
339                                              gchar           ** value);
340 gboolean     gst_tag_list_get_string_index  (const GstTagList * list,
341                                              const gchar      * tag,
342                                              guint              index,
343                                              gchar           ** value);
344 gboolean     gst_tag_list_get_pointer       (const GstTagList * list,
345                                              const gchar      * tag,
346                                              gpointer         * value);
347 gboolean     gst_tag_list_get_pointer_index (const GstTagList * list,
348                                              const gchar      * tag,
349                                              guint              index,
350                                              gpointer         * value);
351 gboolean     gst_tag_list_get_date          (const GstTagList * list,
352                                              const gchar      * tag,
353                                              GDate           ** value);
354 gboolean     gst_tag_list_get_date_index    (const GstTagList * list,
355                                              const gchar      * tag,
356                                              guint              index,
357                                              GDate           ** value);
358 gboolean     gst_tag_list_get_buffer        (const GstTagList * list,
359                                              const gchar      * tag,
360                                              GstBuffer       ** value);
361 gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
362                                              const gchar      * tag,
363                                              guint              index,
364                                              GstBuffer       ** value);
365
366 /* GStreamer core tags */
367 /**
368  * GST_TAG_TITLE:
369  *
370  * commonly used title (string)
371  *
372  * The title as it should be displayed, e.g. 'The Doll House'
373  */
374 #define GST_TAG_TITLE                  "title"
375 /**
376  * GST_TAG_TITLE_SORTNAME:
377  *
378  * commonly used title, as used for sorting (string)
379  *
380  * The title as it should be sorted, e.g. 'Doll House, The'
381  *
382  * Since: 0.10.15
383  */
384 #define GST_TAG_TITLE_SORTNAME         "title-sortname"
385 /**
386  * GST_TAG_ARTIST:
387  *
388  * person(s) responsible for the recording (string)
389  *
390  * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
391  * 'The Guitar Heroes'
392  */
393 #define GST_TAG_ARTIST                 "artist"
394 /**
395  * GST_TAG_ARTIST_SORTNAME:
396  *
397  * person(s) responsible for the recording, as used for sorting (string)
398  *
399  * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
400  * 'Guitar Heroes, The'
401  *
402  * Since: 0.10.15
403  */
404 /* FIXME 0.11: change to "artist-sortname" */
405 #define GST_TAG_ARTIST_SORTNAME        "musicbrainz-sortname"
406 /**
407  * GST_TAG_ALBUM:
408  *
409  * album containing this data (string)
410  *
411  * The album name as it should be displayed, e.g. 'The Jazz Guitar'
412  */
413 #define GST_TAG_ALBUM                  "album"
414 /**
415  * GST_TAG_ALBUM_SORTNAME:
416  *
417  * album containing this data, as used for sorting (string)
418  *
419  * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
420  *
421  * Since: 0.10.15
422  */
423 #define GST_TAG_ALBUM_SORTNAME         "album-sortname"
424 /**
425  * GST_TAG_ALBUM_ARTIST
426  *
427  * The artist of the entire album, as it should be displayed.
428  *
429  * Since: 0.10.25
430  */
431 #define GST_TAG_ALBUM_ARTIST           "album-artist"
432 /**
433  * GST_TAG_ALBUM_ARTIST_SORTNAME
434  *
435  * The artist of the entire album, as it should be sorted.
436  *
437  * Since: 0.10.25
438  */
439 #define GST_TAG_ALBUM_ARTIST_SORTNAME  "album-artist-sortname"
440 /**
441  * GST_TAG_COMPOSER:
442  *
443  * person(s) who composed the recording (string)
444  *
445  * Since: 0.10.15
446  */
447 #define GST_TAG_COMPOSER               "composer"
448 /**
449  * GST_TAG_DATE:
450  *
451  * date the data was created (#GDate structure)
452  */
453 #define GST_TAG_DATE                   "date"
454 /**
455  * GST_TAG_GENRE:
456  *
457  * genre this data belongs to (string)
458  */
459 #define GST_TAG_GENRE                  "genre"
460 /**
461  * GST_TAG_COMMENT:
462  *
463  * free text commenting the data (string)
464  */
465 #define GST_TAG_COMMENT                "comment"
466 /**
467  * GST_TAG_EXTENDED_COMMENT:
468  *
469  * key/value text commenting the data (string)
470  *
471  * Must be in the form of 'key=comment' or
472  * 'key[lc]=comment' where 'lc' is an ISO-639
473  * language code.
474  *
475  * This tag is used for unknown Vorbis comment tags,
476  * unknown APE tags and certain ID3v2 comment fields.
477  *
478  * Since: 0.10.10
479  */
480 #define GST_TAG_EXTENDED_COMMENT       "extended-comment"
481 /**
482  * GST_TAG_TRACK_NUMBER:
483  *
484  * track number inside a collection (unsigned integer)
485  */
486 #define GST_TAG_TRACK_NUMBER           "track-number"
487 /**
488  * GST_TAG_TRACK_COUNT:
489  *
490  * count of tracks inside collection this track belongs to (unsigned integer)
491  */
492 #define GST_TAG_TRACK_COUNT            "track-count"
493 /**
494  * GST_TAG_ALBUM_VOLUME_NUMBER:
495  *
496  * disc number inside a collection (unsigned integer)
497  */
498 #define GST_TAG_ALBUM_VOLUME_NUMBER    "album-disc-number"
499 /**
500  * GST_TAG_ALBUM_VOLUME_COUNT:
501  *
502  * count of discs inside collection this disc belongs to (unsigned integer)
503  */
504 #define GST_TAG_ALBUM_VOLUME_COUNT    "album-disc-count"
505 /**
506  * GST_TAG_LOCATION:
507  *
508  * Origin of media as a URI (location, where the original of the file or stream
509  * is hosted) (string)
510  */
511 #define GST_TAG_LOCATION               "location"
512 /**
513  * GST_TAG_HOMEPAGE:
514  *
515  * Homepage for this media (i.e. artist or movie homepage) (string)
516  *
517  * Since: 0.10.23
518  */
519 #define GST_TAG_HOMEPAGE               "homepage"
520 /**
521  * GST_TAG_DESCRIPTION:
522  *
523  * short text describing the content of the data (string)
524  */
525 #define GST_TAG_DESCRIPTION            "description"
526 /**
527  * GST_TAG_VERSION:
528  *
529  * version of this data (string)
530  */
531 #define GST_TAG_VERSION                "version"
532 /**
533  * GST_TAG_ISRC:
534  *
535  * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
536  */
537 #define GST_TAG_ISRC                   "isrc"
538 /**
539  * GST_TAG_ORGANIZATION:
540  *
541  * organization (string)
542  */
543 #define GST_TAG_ORGANIZATION           "organization"
544 /**
545  * GST_TAG_COPYRIGHT:
546  *
547  * copyright notice of the data (string)
548  */
549 #define GST_TAG_COPYRIGHT              "copyright"
550 /**
551  * GST_TAG_COPYRIGHT_URI:
552  *
553  * URI to location where copyright details can be found (string)
554  *
555  * Since: 0.10.14
556  */
557 #define GST_TAG_COPYRIGHT_URI          "copyright-uri"
558 /**
559  * GST_TAG_CONTACT:
560  *
561  * contact information (string)
562  */
563 #define GST_TAG_CONTACT                "contact"
564 /**
565  * GST_TAG_LICENSE:
566  *
567  * license of data (string)
568  */
569 #define GST_TAG_LICENSE                "license"
570 /**
571  * GST_TAG_LICENSE_URI:
572  *
573  * URI to location where license details can be found (string)
574  *
575  * Since: 0.10.14
576  */
577 #define GST_TAG_LICENSE_URI            "license-uri"
578 /**
579  * GST_TAG_PERFORMER:
580  *
581  * person(s) performing (string)
582  */
583 #define GST_TAG_PERFORMER              "performer"
584 /**
585  * GST_TAG_DURATION:
586  *
587  * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
588  */
589 #define GST_TAG_DURATION               "duration"
590 /**
591  * GST_TAG_CODEC:
592  *
593  * codec the data is stored in (string)
594  */
595 #define GST_TAG_CODEC                  "codec"
596 /**
597  * GST_TAG_VIDEO_CODEC:
598  *
599  * codec the video data is stored in (string)
600  */
601 #define GST_TAG_VIDEO_CODEC            "video-codec"
602 /**
603  * GST_TAG_AUDIO_CODEC:
604  *
605  * codec the audio data is stored in (string)
606  */
607 #define GST_TAG_AUDIO_CODEC            "audio-codec"
608 /**
609  * GST_TAG_SUBTITLE_CODEC:
610  *
611  * codec/format the subtitle data is stored in (string)
612  *
613  * Since: 0.10.23
614  */
615 #define GST_TAG_SUBTITLE_CODEC         "subtitle-codec"
616 /**
617  * GST_TAG_CONTAINER_FORMAT:
618  *
619  * container format the data is stored in (string)
620  *
621  * Since: 0.10.24
622  */
623 #define GST_TAG_CONTAINER_FORMAT       "container-format"
624 /**
625  * GST_TAG_BITRATE:
626  *
627  * exact or average bitrate in bits/s (unsigned integer)
628  */
629 #define GST_TAG_BITRATE                "bitrate"
630 /**
631  * GST_TAG_NOMINAL_BITRATE:
632  *
633  * nominal bitrate in bits/s (unsigned integer)
634  */
635 #define GST_TAG_NOMINAL_BITRATE        "nominal-bitrate"
636 /**
637  * GST_TAG_MINIMUM_BITRATE:
638  *
639  * minimum bitrate in bits/s (unsigned integer)
640  */
641 #define GST_TAG_MINIMUM_BITRATE        "minimum-bitrate"
642 /**
643  * GST_TAG_MAXIMUM_BITRATE:
644  *
645  * maximum bitrate in bits/s (unsigned integer)
646  */
647 #define GST_TAG_MAXIMUM_BITRATE        "maximum-bitrate"
648 /**
649  * GST_TAG_SERIAL:
650  *
651  * serial number of track (unsigned integer)
652  */
653 #define GST_TAG_SERIAL                 "serial"
654 /**
655  * GST_TAG_ENCODER:
656  *
657  * encoder used to encode this stream (string)
658  */
659 #define GST_TAG_ENCODER                "encoder"
660 /**
661  * GST_TAG_ENCODER_VERSION:
662  *
663  * version of the encoder used to encode this stream (unsigned integer)
664  */
665 #define GST_TAG_ENCODER_VERSION        "encoder-version"
666 /**
667  * GST_TAG_TRACK_GAIN:
668  *
669  * track gain in db (double)
670  */
671 #define GST_TAG_TRACK_GAIN             "replaygain-track-gain"
672 /**
673  * GST_TAG_TRACK_PEAK:
674  *
675  * peak of the track (double)
676  */
677 #define GST_TAG_TRACK_PEAK             "replaygain-track-peak"
678 /**
679  * GST_TAG_ALBUM_GAIN:
680  *
681  * album gain in db (double)
682  */
683 #define GST_TAG_ALBUM_GAIN             "replaygain-album-gain"
684 /**
685  * GST_TAG_ALBUM_PEAK:
686  *
687  * peak of the album (double)
688  */
689 #define GST_TAG_ALBUM_PEAK             "replaygain-album-peak"
690 /**
691  * GST_TAG_REFERENCE_LEVEL:
692  *
693  * reference level of track and album gain values (double)
694  *
695  * Since: 0.10.12
696  */
697 #define GST_TAG_REFERENCE_LEVEL        "replaygain-reference-level"
698 /**
699  * GST_TAG_LANGUAGE_CODE:
700  *
701  * Language code (ISO-639-1) (string) of the content
702  */
703 #define GST_TAG_LANGUAGE_CODE          "language-code"
704 /**
705  * GST_TAG_IMAGE:
706  *
707  * image (buffer) (buffer caps should specify the content type and preferably
708  * also set "image-type" field as #GstTagImageType)
709  *
710  * Since: 0.10.6
711  */
712 #define GST_TAG_IMAGE                  "image"
713 /**
714  * GST_TAG_PREVIEW_IMAGE:
715  *
716  * image that is meant for preview purposes, e.g. small icon-sized version
717  * (buffer) (buffer caps should specify the content type)
718  *
719  * Since: 0.10.7
720  */
721 #define GST_TAG_PREVIEW_IMAGE          "preview-image"
722
723 /**
724  * GST_TAG_ATTACHMENT:
725  *
726  * generic file attachment (buffer) (buffer caps should specify the content
727  * type and if possible set "filename" to the file name of the
728  * attachment)
729  *
730  * Since: 0.10.21
731  */
732 #define GST_TAG_ATTACHMENT             "attachment"
733
734 /**
735  * GST_TAG_BEATS_PER_MINUTE:
736  *
737  * number of beats per minute in audio (double)
738  *
739  * Since: 0.10.12
740  */
741 #define GST_TAG_BEATS_PER_MINUTE       "beats-per-minute"
742
743 /**
744  * GST_TAG_KEYWORDS:
745  *
746  * comma separated keywords describing the content (string).
747  *
748  * Since: 0.10.21
749  */
750 #define GST_TAG_KEYWORDS               "keywords"
751
752 /**
753  * GST_TAG_GEO_LOCATION_NAME:
754  *
755  * human readable descriptive location of where the media has been recorded or
756  * produced. (string).
757  *
758  * Since: 0.10.21
759  */
760 #define GST_TAG_GEO_LOCATION_NAME               "geo-location-name"
761
762 /**
763  * GST_TAG_GEO_LOCATION_LATITUDE:
764  *
765  * geo latitude location of where the media has been recorded or produced in
766  * degrees according to WGS84 (zero at the equator, negative values for southern
767  * latitudes) (double).
768  *
769  * Since: 0.10.21
770  */
771 #define GST_TAG_GEO_LOCATION_LATITUDE               "geo-location-latitude"
772
773 /**
774  * GST_TAG_GEO_LOCATION_LONGITUDE:
775  *
776  * geo longitude location of where the media has been recorded or produced in
777  * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
778  * negative values for western longitudes). (double).
779  *
780  * Since: 0.10.21
781  */
782 #define GST_TAG_GEO_LOCATION_LONGITUDE               "geo-location-longitude"
783
784 /**
785  * GST_TAG_GEO_LOCATION_ELEVATION:
786  *
787  * geo elevation of where the media has been recorded or produced in meters
788  * according to WGS84 (zero is average sea level) (double).
789  *
790  * Since: 0.10.21
791  */
792 #define GST_TAG_GEO_LOCATION_ELEVATION               "geo-location-elevation"
793 /**
794  * GST_TAG_TV_SHOW
795  *
796  * Name of the show of the media, used for displaying
797  *
798  * Since: 0.10.26
799  */
800 #define GST_TAG_SHOW_NAME                         "show-name"
801 /**
802  * GST_TAG_TV_SHOW_SORTNAME
803  *
804  * Name of the show of the media, used for sorting
805  *
806  * Since: 0.10.26
807  */
808 #define GST_TAG_SHOW_SORTNAME                     "show-sortname"
809 /**
810  * GST_TAG_EPISODE_NUMBER
811  *
812  * Number of the episode within a season/show
813  *
814  * Since: 0.10.26
815  */
816 #define GST_TAG_SHOW_EPISODE_NUMBER               "show-episode-number"
817 /**
818  * GST_TAG_SEASON_NUMBER
819  *
820  * Number of the season of a show/series
821  *
822  * Since: 0.10.26
823  */
824 #define GST_TAG_SHOW_SEASON_NUMBER                "show-season-number"
825 /**
826  * GST_TAG_LYRICS
827  *
828  * The lyrics of the media
829  *
830  * Since: 0.10.26
831  */
832 #define GST_TAG_LYRICS                            "lyrics"
833 /**
834  * GST_TAG_COMPOSER_SORTNAME
835  *
836  * The composer's name, used for sorting
837  *
838  * Since: 0.10.26
839  */
840 #define GST_TAG_COMPOSER_SORTNAME                 "composer-sortname"
841 /**
842  * GST_TAG_GROUPING
843  *
844  * Groups together media that are related and spans multiple tracks. An
845  * example are multiple pieces of a concerto.
846  *
847  * Since: 0.10.26
848  */
849 #define GST_TAG_GROUPING                          "grouping"
850 G_END_DECLS
851
852 #endif /* __GST_TAGLIST_H__ */