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