taglist: Add support for ALBUM_ARTIST tag
[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 /**
145  * GstTagList:
146  *
147  * Opaque #GstTagList data structure.
148  */
149 typedef GstStructure GstTagList;
150 #define GST_TAG_LIST(x)       ((GstTagList *) (x))
151 #define GST_IS_TAG_LIST(x)    ((x) != NULL && gst_is_tag_list (GST_TAG_LIST (x)))
152 #define GST_TYPE_TAG_LIST     (gst_tag_list_get_type ())
153
154 /**
155  * GstTagForeachFunc:
156  * @list: the #GstTagList
157  * @tag: a name of a tag in @list
158  * @user_data: user data
159  *
160  * A function that will be called in gst_tag_list_foreach(). The function may
161  * not modify the tag list.
162  */
163 typedef void (*GstTagForeachFunc) (const GstTagList * list,
164                                    const gchar      * tag,
165                                    gpointer           user_data);
166
167 /**
168  * GstTagMergeFunc:
169  * @dest: the destination #GValue
170  * @src: the source #GValue
171  *
172  * A function for merging multiple values of a tag used when registering
173  * tags.
174  */
175 typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
176
177 GType        gst_tag_list_get_type (void);
178
179 /* tag registration */
180 void         gst_tag_register      (const gchar     * name,
181                                     GstTagFlag        flag,
182                                     GType             type,
183                                     const gchar     * nick,
184                                     const gchar     * blurb,
185                                     GstTagMergeFunc   func);
186
187 /* some default merging functions */
188 void      gst_tag_merge_use_first          (GValue * dest, const GValue * src);
189 void      gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
190
191 /* basic tag support */
192 gboolean               gst_tag_exists          (const gchar * tag);
193 GType                  gst_tag_get_type        (const gchar * tag);
194 G_CONST_RETURN gchar * gst_tag_get_nick        (const gchar * tag);
195 G_CONST_RETURN gchar * gst_tag_get_description (const gchar * tag);
196 GstTagFlag             gst_tag_get_flag        (const gchar * tag);
197 gboolean               gst_tag_is_fixed        (const gchar * tag);
198
199 /* tag lists */
200 GstTagList * gst_tag_list_new               (void);
201 GstTagList * gst_tag_list_new_full          (const gchar * tag, ...);
202 GstTagList * gst_tag_list_new_full_valist   (va_list var_args);
203
204 gboolean     gst_is_tag_list                (gconstpointer p);
205 GstTagList * gst_tag_list_copy              (const GstTagList * list);
206 gboolean     gst_tag_list_is_empty          (const GstTagList * list);
207 void         gst_tag_list_insert            (GstTagList       * into,
208                                              const GstTagList * from,
209                                              GstTagMergeMode    mode);
210 GstTagList * gst_tag_list_merge             (const GstTagList * list1,
211                                              const GstTagList * list2,
212                                              GstTagMergeMode    mode);
213 void         gst_tag_list_free              (GstTagList       * list);
214 guint        gst_tag_list_get_tag_size      (const GstTagList * list,
215                                              const gchar      * tag);
216 void         gst_tag_list_add               (GstTagList       * list,
217                                              GstTagMergeMode    mode,
218                                              const gchar      * tag,
219                                              ...) G_GNUC_NULL_TERMINATED;
220 void         gst_tag_list_add_values        (GstTagList       * list,
221                                              GstTagMergeMode    mode,
222                                              const gchar      * tag,
223                                              ...) G_GNUC_NULL_TERMINATED;
224 void         gst_tag_list_add_valist        (GstTagList       * list,
225                                              GstTagMergeMode    mode,
226                                              const gchar      * tag,
227                                              va_list        var_args);
228 void         gst_tag_list_add_valist_values (GstTagList       * list,
229                                              GstTagMergeMode    mode,
230                                              const gchar      * tag,
231                                              va_list            var_args);
232 void         gst_tag_list_add_value         (GstTagList       * list,
233                                              GstTagMergeMode    mode,
234                                              const gchar      * tag,
235                                              const GValue     * value);
236 void         gst_tag_list_remove_tag        (GstTagList       * list,
237                                              const gchar      * tag);
238 void         gst_tag_list_foreach           (const GstTagList * list,
239                                              GstTagForeachFunc  func,
240                                              gpointer           user_data);
241
242 G_CONST_RETURN GValue *
243              gst_tag_list_get_value_index   (const GstTagList * list,
244                                              const gchar      * tag,
245                                              guint              index);
246 gboolean     gst_tag_list_copy_value        (GValue           * dest,
247                                              const GstTagList * list,
248                                              const gchar      * tag);
249
250 /* simplifications (FIXME: do we want them?) */
251 gboolean     gst_tag_list_get_char          (const GstTagList * list,
252                                              const gchar      * tag,
253                                              gchar            * value);
254 gboolean     gst_tag_list_get_char_index    (const GstTagList * list,
255                                              const gchar      * tag,
256                                              guint              index,
257                                              gchar            * value);
258 gboolean     gst_tag_list_get_uchar         (const GstTagList * list,
259                                              const gchar      * tag,
260                                              guchar           * value);
261 gboolean     gst_tag_list_get_uchar_index   (const GstTagList * list,
262                                              const gchar      * tag,
263                                              guint              index,
264                                              guchar           * value);
265 gboolean     gst_tag_list_get_boolean       (const GstTagList * list,
266                                              const gchar      * tag,
267                                              gboolean         * value);
268 gboolean     gst_tag_list_get_boolean_index (const GstTagList * list,
269                                              const gchar      * tag,
270                                              guint              index,
271                                              gboolean         * value);
272 gboolean     gst_tag_list_get_int           (const GstTagList * list,
273                                              const gchar      * tag,
274                                              gint             * value);
275 gboolean     gst_tag_list_get_int_index     (const GstTagList * list,
276                                              const gchar      * tag,
277                                              guint              index,
278                                              gint             * value);
279 gboolean     gst_tag_list_get_uint          (const GstTagList * list,
280                                              const gchar      * tag,
281                                              guint            * value);
282 gboolean     gst_tag_list_get_uint_index    (const GstTagList * list,
283                                              const gchar      * tag,
284                                              guint              index,
285                                              guint            * value);
286 gboolean     gst_tag_list_get_long          (const GstTagList * list,
287                                              const gchar      * tag,
288                                              glong            * value);
289 gboolean     gst_tag_list_get_long_index    (const GstTagList * list,
290                                              const gchar      * tag,
291                                              guint              index,
292                                              glong            * value);
293 gboolean     gst_tag_list_get_ulong         (const GstTagList * list,
294                                              const gchar      * tag,
295                                              gulong           * value);
296 gboolean     gst_tag_list_get_ulong_index   (const GstTagList * list,
297                                              const gchar      * tag,
298                                              guint              index,
299                                              gulong           * value);
300 gboolean     gst_tag_list_get_int64         (const GstTagList * list,
301                                              const gchar      * tag,
302                                              gint64           * value);
303 gboolean     gst_tag_list_get_int64_index   (const GstTagList * list,
304                                              const gchar      * tag,
305                                              guint              index,
306                                              gint64           * value);
307 gboolean     gst_tag_list_get_uint64        (const GstTagList * list,
308                                              const gchar      * tag,
309                                              guint64          * value);
310 gboolean     gst_tag_list_get_uint64_index  (const GstTagList * list,
311                                              const gchar      * tag,
312                                              guint              index,
313                                              guint64          * value);
314 gboolean     gst_tag_list_get_float         (const GstTagList * list,
315                                              const gchar      * tag,
316                                              gfloat           * value);
317 gboolean     gst_tag_list_get_float_index   (const GstTagList * list,
318                                              const gchar      * tag,
319                                              guint              index,
320                                              gfloat           * value);
321 gboolean     gst_tag_list_get_double        (const GstTagList * list,
322                                              const gchar      * tag,
323                                              gdouble          * value);
324 gboolean     gst_tag_list_get_double_index  (const GstTagList * list,
325                                              const gchar      * tag,
326                                              guint              index,
327                                              gdouble          * value);
328 gboolean     gst_tag_list_get_string        (const GstTagList * list,
329                                              const gchar      * tag,
330                                              gchar           ** value);
331 gboolean     gst_tag_list_get_string_index  (const GstTagList * list,
332                                              const gchar      * tag,
333                                              guint              index,
334                                              gchar           ** value);
335 gboolean     gst_tag_list_get_pointer       (const GstTagList * list,
336                                              const gchar      * tag,
337                                              gpointer         * value);
338 gboolean     gst_tag_list_get_pointer_index (const GstTagList * list,
339                                              const gchar      * tag,
340                                              guint              index,
341                                              gpointer         * value);
342 gboolean     gst_tag_list_get_date          (const GstTagList * list,
343                                              const gchar      * tag,
344                                              GDate           ** value);
345 gboolean     gst_tag_list_get_date_index    (const GstTagList * list,
346                                              const gchar      * tag,
347                                              guint              index,
348                                              GDate           ** value);
349 gboolean     gst_tag_list_get_buffer        (const GstTagList * list,
350                                              const gchar      * tag,
351                                              GstBuffer       ** value);
352 gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
353                                              const gchar      * tag,
354                                              guint              index,
355                                              GstBuffer       ** value);
356
357 /* GStreamer core tags */
358 /**
359  * GST_TAG_TITLE:
360  *
361  * commonly used title (string)
362  *
363  * The title as it should be displayed, e.g. 'The Doll House'
364  */
365 #define GST_TAG_TITLE                  "title"
366 /**
367  * GST_TAG_TITLE_SORTNAME:
368  *
369  * commonly used title, as used for sorting (string)
370  *
371  * The title as it should be sorted, e.g. 'Doll House, The'
372  *
373  * Since: 0.10.15
374  */
375 #define GST_TAG_TITLE_SORTNAME         "title-sortname"
376 /**
377  * GST_TAG_ARTIST:
378  *
379  * person(s) responsible for the recording (string)
380  *
381  * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
382  * 'The Guitar Heroes'
383  */
384 #define GST_TAG_ARTIST                 "artist"
385 /**
386  * GST_TAG_ARTIST_SORTNAME:
387  *
388  * person(s) responsible for the recording, as used for sorting (string)
389  *
390  * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
391  * 'Guitar Heroes, The'
392  *
393  * Since: 0.10.15
394  */
395 /* FIXME 0.11: change to "artist-sortname" */
396 #define GST_TAG_ARTIST_SORTNAME        "musicbrainz-sortname"
397 /**
398  * GST_TAG_ALBUM:
399  *
400  * album containing this data (string)
401  *
402  * The album name as it should be displayed, e.g. 'The Jazz Guitar'
403  */
404 #define GST_TAG_ALBUM                  "album"
405 /**
406  * GST_TAG_ALBUM_SORTNAME:
407  *
408  * album containing this data, as used for sorting (string)
409  *
410  * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
411  *
412  * Since: 0.10.15
413  */
414 #define GST_TAG_ALBUM_SORTNAME         "album-sortname"
415 /**
416  * GST_TAG_ALBUM_ARTIST
417  *
418  * The artist of the entire album, as it should be displayed.
419  *
420  * Since: 0.10.25
421  */
422 #define GST_TAG_ALBUM_ARTIST           "album-artist"
423 /**
424  * GST_TAG_ALBUM_ARTIST_SORTNAME
425  *
426  * The artist of the entire album, as it should be sorted.
427  *
428  * Since: 0.10.25
429  */
430 #define GST_TAG_ALBUM_ARTIST_SORTNAME  "album-artist-sortname"
431 /**
432  * GST_TAG_COMPOSER:
433  *
434  * person(s) who composed the recording (string)
435  *
436  * Since: 0.10.15
437  */
438 #define GST_TAG_COMPOSER               "composer"
439 /**
440  * GST_TAG_DATE:
441  *
442  * date the data was created (#GDate structure)
443  */
444 #define GST_TAG_DATE                   "date"
445 /**
446  * GST_TAG_GENRE:
447  *
448  * genre this data belongs to (string)
449  */
450 #define GST_TAG_GENRE                  "genre"
451 /**
452  * GST_TAG_COMMENT:
453  *
454  * free text commenting the data (string)
455  */
456 #define GST_TAG_COMMENT                "comment"
457 /**
458  * GST_TAG_EXTENDED_COMMENT:
459  *
460  * key/value text commenting the data (string)
461  *
462  * Must be in the form of 'key=comment' or
463  * 'key[lc]=comment' where 'lc' is an ISO-639
464  * language code.
465  *
466  * This tag is used for unknown Vorbis comment tags,
467  * unknown APE tags and certain ID3v2 comment fields.
468  *
469  * Since: 0.10.10
470  */
471 #define GST_TAG_EXTENDED_COMMENT       "extended-comment"
472 /**
473  * GST_TAG_TRACK_NUMBER:
474  *
475  * track number inside a collection (unsigned integer)
476  */
477 #define GST_TAG_TRACK_NUMBER           "track-number"
478 /**
479  * GST_TAG_TRACK_COUNT:
480  *
481  * count of tracks inside collection this track belongs to (unsigned integer)
482  */
483 #define GST_TAG_TRACK_COUNT            "track-count"
484 /**
485  * GST_TAG_ALBUM_VOLUME_NUMBER:
486  *
487  * disc number inside a collection (unsigned integer)
488  */
489 #define GST_TAG_ALBUM_VOLUME_NUMBER    "album-disc-number"
490 /**
491  * GST_TAG_ALBUM_VOLUME_COUNT:
492  *
493  * count of discs inside collection this disc belongs to (unsigned integer)
494  */
495 #define GST_TAG_ALBUM_VOLUME_COUNT    "album-disc-count"
496 /**
497  * GST_TAG_LOCATION:
498  *
499  * Origin of media as a URI (location, where the original of the file or stream
500  * is hosted) (string)
501  */
502 #define GST_TAG_LOCATION               "location"
503 /**
504  * GST_TAG_HOMEPAGE:
505  *
506  * Homepage for this media (i.e. artist or movie homepage) (string)
507  *
508  * Since: 0.10.23
509  */
510 #define GST_TAG_HOMEPAGE               "homepage"
511 /**
512  * GST_TAG_DESCRIPTION:
513  *
514  * short text describing the content of the data (string)
515  */
516 #define GST_TAG_DESCRIPTION            "description"
517 /**
518  * GST_TAG_VERSION:
519  *
520  * version of this data (string)
521  */
522 #define GST_TAG_VERSION                "version"
523 /**
524  * GST_TAG_ISRC:
525  *
526  * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
527  */
528 #define GST_TAG_ISRC                   "isrc"
529 /**
530  * GST_TAG_ORGANIZATION:
531  *
532  * organization (string)
533  */
534 #define GST_TAG_ORGANIZATION           "organization"
535 /**
536  * GST_TAG_COPYRIGHT:
537  *
538  * copyright notice of the data (string)
539  */
540 #define GST_TAG_COPYRIGHT              "copyright"
541 /**
542  * GST_TAG_COPYRIGHT_URI:
543  *
544  * URI to location where copyright details can be found (string)
545  *
546  * Since: 0.10.14
547  */
548 #define GST_TAG_COPYRIGHT_URI          "copyright-uri"
549 /**
550  * GST_TAG_CONTACT:
551  *
552  * contact information (string)
553  */
554 #define GST_TAG_CONTACT                "contact"
555 /**
556  * GST_TAG_LICENSE:
557  *
558  * license of data (string)
559  */
560 #define GST_TAG_LICENSE                "license"
561 /**
562  * GST_TAG_LICENSE_URI:
563  *
564  * URI to location where license details can be found (string)
565  *
566  * Since: 0.10.14
567  */
568 #define GST_TAG_LICENSE_URI            "license-uri"
569 /**
570  * GST_TAG_PERFORMER:
571  *
572  * person(s) performing (string)
573  */
574 #define GST_TAG_PERFORMER              "performer"
575 /**
576  * GST_TAG_DURATION:
577  *
578  * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
579  */
580 #define GST_TAG_DURATION               "duration"
581 /**
582  * GST_TAG_CODEC:
583  *
584  * codec the data is stored in (string)
585  */
586 #define GST_TAG_CODEC                  "codec"
587 /**
588  * GST_TAG_VIDEO_CODEC:
589  *
590  * codec the video data is stored in (string)
591  */
592 #define GST_TAG_VIDEO_CODEC            "video-codec"
593 /**
594  * GST_TAG_AUDIO_CODEC:
595  *
596  * codec the audio data is stored in (string)
597  */
598 #define GST_TAG_AUDIO_CODEC            "audio-codec"
599 /**
600  * GST_TAG_SUBTITLE_CODEC:
601  *
602  * codec/format the subtitle data is stored in (string)
603  *
604  * Since: 0.10.23
605  */
606 #define GST_TAG_SUBTITLE_CODEC         "subtitle-codec"
607 /**
608  * GST_TAG_CONTAINER_FORMAT:
609  *
610  * container format the data is stored in (string)
611  *
612  * Since: 0.10.24
613  */
614 #define GST_TAG_CONTAINER_FORMAT       "container-format"
615 /**
616  * GST_TAG_BITRATE:
617  *
618  * exact or average bitrate in bits/s (unsigned integer)
619  */
620 #define GST_TAG_BITRATE                "bitrate"
621 /**
622  * GST_TAG_NOMINAL_BITRATE:
623  *
624  * nominal bitrate in bits/s (unsigned integer)
625  */
626 #define GST_TAG_NOMINAL_BITRATE        "nominal-bitrate"
627 /**
628  * GST_TAG_MINIMUM_BITRATE:
629  *
630  * minimum bitrate in bits/s (unsigned integer)
631  */
632 #define GST_TAG_MINIMUM_BITRATE        "minimum-bitrate"
633 /**
634  * GST_TAG_MAXIMUM_BITRATE:
635  *
636  * maximum bitrate in bits/s (unsigned integer)
637  */
638 #define GST_TAG_MAXIMUM_BITRATE        "maximum-bitrate"
639 /**
640  * GST_TAG_SERIAL:
641  *
642  * serial number of track (unsigned integer)
643  */
644 #define GST_TAG_SERIAL                 "serial"
645 /**
646  * GST_TAG_ENCODER:
647  *
648  * encoder used to encode this stream (string)
649  */
650 #define GST_TAG_ENCODER                "encoder"
651 /**
652  * GST_TAG_ENCODER_VERSION:
653  *
654  * version of the encoder used to encode this stream (unsigned integer)
655  */
656 #define GST_TAG_ENCODER_VERSION        "encoder-version"
657 /**
658  * GST_TAG_TRACK_GAIN:
659  *
660  * track gain in db (double)
661  */
662 #define GST_TAG_TRACK_GAIN             "replaygain-track-gain"
663 /**
664  * GST_TAG_TRACK_PEAK:
665  *
666  * peak of the track (double)
667  */
668 #define GST_TAG_TRACK_PEAK             "replaygain-track-peak"
669 /**
670  * GST_TAG_ALBUM_GAIN:
671  *
672  * album gain in db (double)
673  */
674 #define GST_TAG_ALBUM_GAIN             "replaygain-album-gain"
675 /**
676  * GST_TAG_ALBUM_PEAK:
677  *
678  * peak of the album (double)
679  */
680 #define GST_TAG_ALBUM_PEAK             "replaygain-album-peak"
681 /**
682  * GST_TAG_REFERENCE_LEVEL:
683  *
684  * reference level of track and album gain values (double)
685  *
686  * Since: 0.10.12
687  */
688 #define GST_TAG_REFERENCE_LEVEL        "replaygain-reference-level"
689 /**
690  * GST_TAG_LANGUAGE_CODE:
691  *
692  * Language code (ISO-639-1) (string) of the content
693  */
694 #define GST_TAG_LANGUAGE_CODE          "language-code"
695 /**
696  * GST_TAG_IMAGE:
697  *
698  * image (buffer) (buffer caps should specify the content type and preferably
699  * also set "image-type" field as #GstTagImageType)
700  *
701  * Since: 0.10.6
702  */
703 #define GST_TAG_IMAGE                  "image"
704 /**
705  * GST_TAG_PREVIEW_IMAGE:
706  *
707  * image that is meant for preview purposes, e.g. small icon-sized version
708  * (buffer) (buffer caps should specify the content type)
709  *
710  * Since: 0.10.7
711  */
712 #define GST_TAG_PREVIEW_IMAGE          "preview-image"
713
714 /**
715  * GST_TAG_ATTACHMENT:
716  *
717  * generic file attachment (buffer) (buffer caps should specify the content
718  * type and if possible set "filename" to the file name of the
719  * attachment)
720  *
721  * Since: 0.10.21
722  */
723 #define GST_TAG_ATTACHMENT             "attachment"
724
725 /**
726  * GST_TAG_BEATS_PER_MINUTE:
727  *
728  * number of beats per minute in audio (double)
729  *
730  * Since: 0.10.12
731  */
732 #define GST_TAG_BEATS_PER_MINUTE       "beats-per-minute"
733
734 /**
735  * GST_TAG_KEYWORDS:
736  *
737  * comma separated keywords describing the content (string).
738  *
739  * Since: 0.10.21
740  */
741 #define GST_TAG_KEYWORDS               "keywords"
742
743 /**
744  * GST_TAG_GEO_LOCATION_NAME:
745  *
746  * human readable descriptive location of where the media has been recorded or
747  * produced. (string).
748  *
749  * Since: 0.10.21
750  */
751 #define GST_TAG_GEO_LOCATION_NAME               "geo-location-name"
752
753 /**
754  * GST_TAG_GEO_LOCATION_LATITUDE:
755  *
756  * geo latitude location of where the media has been recorded or produced in
757  * degrees according to WGS84 (zero at the equator, negative values for southern
758  * latitudes) (double).
759  *
760  * Since: 0.10.21
761  */
762 #define GST_TAG_GEO_LOCATION_LATITUDE               "geo-location-latitude"
763
764 /**
765  * GST_TAG_GEO_LOCATION_LONGITUDE:
766  *
767  * geo longitude location of where the media has been recorded or produced in
768  * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
769  * negative values for western longitudes). (double).
770  *
771  * Since: 0.10.21
772  */
773 #define GST_TAG_GEO_LOCATION_LONGITUDE               "geo-location-longitude"
774
775 /**
776  * GST_TAG_GEO_LOCATION_ELEVATION:
777  *
778  * geo elevation of where the media has been recorded or produced in meters
779  * according to WGS84 (zero is average sea level) (double).
780  *
781  * Since: 0.10.21
782  */
783 #define GST_TAG_GEO_LOCATION_ELEVATION               "geo-location-elevation"
784
785 G_END_DECLS
786
787 #endif /* __GST_TAGLIST_H__ */