taglist: add functions to create a new taglist with tags in one go
[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_COMPOSER:
417  *
418  * person(s) who composed the recording (string)
419  *
420  * Since: 0.10.15
421  */
422 #define GST_TAG_COMPOSER               "composer"
423 /**
424  * GST_TAG_DATE:
425  *
426  * date the data was created (#GDate structure)
427  */
428 #define GST_TAG_DATE                   "date"
429 /**
430  * GST_TAG_GENRE:
431  *
432  * genre this data belongs to (string)
433  */
434 #define GST_TAG_GENRE                  "genre"
435 /**
436  * GST_TAG_COMMENT:
437  *
438  * free text commenting the data (string)
439  */
440 #define GST_TAG_COMMENT                "comment"
441 /**
442  * GST_TAG_EXTENDED_COMMENT:
443  *
444  * key/value text commenting the data (string)
445  *
446  * Must be in the form of 'key=comment' or
447  * 'key[lc]=comment' where 'lc' is an ISO-639
448  * language code.
449  *
450  * This tag is used for unknown Vorbis comment tags,
451  * unknown APE tags and certain ID3v2 comment fields.
452  *
453  * Since: 0.10.10
454  */
455 #define GST_TAG_EXTENDED_COMMENT       "extended-comment"
456 /**
457  * GST_TAG_TRACK_NUMBER:
458  *
459  * track number inside a collection (unsigned integer)
460  */
461 #define GST_TAG_TRACK_NUMBER           "track-number"
462 /**
463  * GST_TAG_TRACK_COUNT:
464  *
465  * count of tracks inside collection this track belongs to (unsigned integer)
466  */
467 #define GST_TAG_TRACK_COUNT            "track-count"
468 /**
469  * GST_TAG_ALBUM_VOLUME_NUMBER:
470  *
471  * disc number inside a collection (unsigned integer)
472  */
473 #define GST_TAG_ALBUM_VOLUME_NUMBER    "album-disc-number"
474 /**
475  * GST_TAG_ALBUM_VOLUME_COUNT:
476  *
477  * count of discs inside collection this disc belongs to (unsigned integer)
478  */
479 #define GST_TAG_ALBUM_VOLUME_COUNT    "album-disc-count"
480 /**
481  * GST_TAG_LOCATION:
482  *
483  * Origin of media as a URI (location, where the original of the file or stream
484  * is hosted) (string)
485  */
486 #define GST_TAG_LOCATION               "location"
487 /**
488  * GST_TAG_HOMEPAGE:
489  *
490  * Homepage for this media (i.e. artist or movie homepage) (string)
491  *
492  * Since: 0.10.23
493  */
494 #define GST_TAG_HOMEPAGE               "homepage"
495 /**
496  * GST_TAG_DESCRIPTION:
497  *
498  * short text describing the content of the data (string)
499  */
500 #define GST_TAG_DESCRIPTION            "description"
501 /**
502  * GST_TAG_VERSION:
503  *
504  * version of this data (string)
505  */
506 #define GST_TAG_VERSION                "version"
507 /**
508  * GST_TAG_ISRC:
509  *
510  * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
511  */
512 #define GST_TAG_ISRC                   "isrc"
513 /**
514  * GST_TAG_ORGANIZATION:
515  *
516  * organization (string)
517  */
518 #define GST_TAG_ORGANIZATION           "organization"
519 /**
520  * GST_TAG_COPYRIGHT:
521  *
522  * copyright notice of the data (string)
523  */
524 #define GST_TAG_COPYRIGHT              "copyright"
525 /**
526  * GST_TAG_COPYRIGHT_URI:
527  *
528  * URI to location where copyright details can be found (string)
529  *
530  * Since: 0.10.14
531  */
532 #define GST_TAG_COPYRIGHT_URI          "copyright-uri"
533 /**
534  * GST_TAG_CONTACT:
535  *
536  * contact information (string)
537  */
538 #define GST_TAG_CONTACT                "contact"
539 /**
540  * GST_TAG_LICENSE:
541  *
542  * license of data (string)
543  */
544 #define GST_TAG_LICENSE                "license"
545 /**
546  * GST_TAG_LICENSE_URI:
547  *
548  * URI to location where license details can be found (string)
549  *
550  * Since: 0.10.14
551  */
552 #define GST_TAG_LICENSE_URI            "license-uri"
553 /**
554  * GST_TAG_PERFORMER:
555  *
556  * person(s) performing (string)
557  */
558 #define GST_TAG_PERFORMER              "performer"
559 /**
560  * GST_TAG_DURATION:
561  *
562  * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
563  */
564 #define GST_TAG_DURATION               "duration"
565 /**
566  * GST_TAG_CODEC:
567  *
568  * codec the data is stored in (string)
569  */
570 #define GST_TAG_CODEC                  "codec"
571 /**
572  * GST_TAG_VIDEO_CODEC:
573  *
574  * codec the video data is stored in (string)
575  */
576 #define GST_TAG_VIDEO_CODEC            "video-codec"
577 /**
578  * GST_TAG_AUDIO_CODEC:
579  *
580  * codec the audio data is stored in (string)
581  */
582 #define GST_TAG_AUDIO_CODEC            "audio-codec"
583 /**
584  * GST_TAG_SUBTITLE_CODEC:
585  *
586  * codec/format the subtitle data is stored in (string)
587  *
588  * Since: 0.10.23
589  */
590 #define GST_TAG_SUBTITLE_CODEC         "subtitle-codec"
591 /**
592  * GST_TAG_CONTAINER_FORMAT:
593  *
594  * container format the data is stored in (string)
595  *
596  * Since: 0.10.24
597  */
598 #define GST_TAG_CONTAINER_FORMAT       "container-format"
599 /**
600  * GST_TAG_BITRATE:
601  *
602  * exact or average bitrate in bits/s (unsigned integer)
603  */
604 #define GST_TAG_BITRATE                "bitrate"
605 /**
606  * GST_TAG_NOMINAL_BITRATE:
607  *
608  * nominal bitrate in bits/s (unsigned integer)
609  */
610 #define GST_TAG_NOMINAL_BITRATE        "nominal-bitrate"
611 /**
612  * GST_TAG_MINIMUM_BITRATE:
613  *
614  * minimum bitrate in bits/s (unsigned integer)
615  */
616 #define GST_TAG_MINIMUM_BITRATE        "minimum-bitrate"
617 /**
618  * GST_TAG_MAXIMUM_BITRATE:
619  *
620  * maximum bitrate in bits/s (unsigned integer)
621  */
622 #define GST_TAG_MAXIMUM_BITRATE        "maximum-bitrate"
623 /**
624  * GST_TAG_SERIAL:
625  *
626  * serial number of track (unsigned integer)
627  */
628 #define GST_TAG_SERIAL                 "serial"
629 /**
630  * GST_TAG_ENCODER:
631  *
632  * encoder used to encode this stream (string)
633  */
634 #define GST_TAG_ENCODER                "encoder"
635 /**
636  * GST_TAG_ENCODER_VERSION:
637  *
638  * version of the encoder used to encode this stream (unsigned integer)
639  */
640 #define GST_TAG_ENCODER_VERSION        "encoder-version"
641 /**
642  * GST_TAG_TRACK_GAIN:
643  *
644  * track gain in db (double)
645  */
646 #define GST_TAG_TRACK_GAIN             "replaygain-track-gain"
647 /**
648  * GST_TAG_TRACK_PEAK:
649  *
650  * peak of the track (double)
651  */
652 #define GST_TAG_TRACK_PEAK             "replaygain-track-peak"
653 /**
654  * GST_TAG_ALBUM_GAIN:
655  *
656  * album gain in db (double)
657  */
658 #define GST_TAG_ALBUM_GAIN             "replaygain-album-gain"
659 /**
660  * GST_TAG_ALBUM_PEAK:
661  *
662  * peak of the album (double)
663  */
664 #define GST_TAG_ALBUM_PEAK             "replaygain-album-peak"
665 /**
666  * GST_TAG_REFERENCE_LEVEL:
667  *
668  * reference level of track and album gain values (double)
669  *
670  * Since: 0.10.12
671  */
672 #define GST_TAG_REFERENCE_LEVEL        "replaygain-reference-level"
673 /**
674  * GST_TAG_LANGUAGE_CODE:
675  *
676  * Language code (ISO-639-1) (string) of the content
677  */
678 #define GST_TAG_LANGUAGE_CODE          "language-code"
679 /**
680  * GST_TAG_IMAGE:
681  *
682  * image (buffer) (buffer caps should specify the content type and preferably
683  * also set "image-type" field as #GstTagImageType)
684  *
685  * Since: 0.10.6
686  */
687 #define GST_TAG_IMAGE                  "image"
688 /**
689  * GST_TAG_PREVIEW_IMAGE:
690  *
691  * image that is meant for preview purposes, e.g. small icon-sized version
692  * (buffer) (buffer caps should specify the content type)
693  *
694  * Since: 0.10.7
695  */
696 #define GST_TAG_PREVIEW_IMAGE          "preview-image"
697
698 /**
699  * GST_TAG_ATTACHMENT:
700  *
701  * generic file attachment (buffer) (buffer caps should specify the content
702  * type and if possible set "filename" to the file name of the
703  * attachment)
704  *
705  * Since: 0.10.21
706  */
707 #define GST_TAG_ATTACHMENT             "attachment"
708
709 /**
710  * GST_TAG_BEATS_PER_MINUTE:
711  *
712  * number of beats per minute in audio (double)
713  *
714  * Since: 0.10.12
715  */
716 #define GST_TAG_BEATS_PER_MINUTE       "beats-per-minute"
717
718 /**
719  * GST_TAG_KEYWORDS:
720  *
721  * comma separated keywords describing the content (string).
722  *
723  * Since: 0.10.21
724  */
725 #define GST_TAG_KEYWORDS               "keywords"
726
727 /**
728  * GST_TAG_GEO_LOCATION_NAME:
729  *
730  * human readable descriptive location of where the media has been recorded or
731  * produced. (string).
732  *
733  * Since: 0.10.21
734  */
735 #define GST_TAG_GEO_LOCATION_NAME               "geo-location-name"
736
737 /**
738  * GST_TAG_GEO_LOCATION_LATITUDE:
739  *
740  * geo latitude location of where the media has been recorded or produced in
741  * degrees according to WGS84 (zero at the equator, negative values for southern
742  * latitudes) (double).
743  *
744  * Since: 0.10.21
745  */
746 #define GST_TAG_GEO_LOCATION_LATITUDE               "geo-location-latitude"
747
748 /**
749  * GST_TAG_GEO_LOCATION_LONGITUDE:
750  *
751  * geo longitude location of where the media has been recorded or produced in
752  * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
753  * negative values for western longitudes). (double).
754  *
755  * Since: 0.10.21
756  */
757 #define GST_TAG_GEO_LOCATION_LONGITUDE               "geo-location-longitude"
758
759 /**
760  * GST_TAG_GEO_LOCATION_ELEVATION:
761  *
762  * geo elevation of where the media has been recorded or produced in meters
763  * according to WGS84 (zero is average sea level) (double).
764  *
765  * Since: 0.10.21
766  */
767 #define GST_TAG_GEO_LOCATION_ELEVATION               "geo-location-elevation"
768
769 G_END_DECLS
770
771 #endif /* __GST_TAGLIST_H__ */