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