]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blob - gst/gsttaglist.h
gststructure: early out when we know a value cannot be a subset
[glsdk/gstreamer0-10.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  */
23 #ifndef __GST_TAGLIST_H__
24 #define __GST_TAGLIST_H__
26 #include <gst/gstdatetime.h>
27 #include <gst/gstbuffer.h>
28 #include <gst/gststructure.h>
29 #include <gst/glib-compat.h>
31 G_BEGIN_DECLS
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;
123 #define GST_TAG_MODE_IS_VALID(mode)     (((mode) > GST_TAG_MERGE_UNDEFINED) && ((mode) < GST_TAG_MERGE_COUNT))
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;
143 #define GST_TAG_FLAG_IS_VALID(flag)     (((flag) > GST_TAG_FLAG_UNDEFINED) && ((flag) < GST_TAG_FLAG_COUNT))
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
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 ())
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);
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);
191 GType        gst_tag_list_get_type (void);
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);
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);
205 /* basic tag support */
206 gboolean               gst_tag_exists          (const gchar * tag);
207 GType                  gst_tag_get_type        (const gchar * tag);
208 const gchar *          gst_tag_get_nick        (const gchar * tag);
209 const 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);
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);
218 gchar      * gst_tag_list_to_string         (const GstTagList * list);
219 GstTagList * gst_tag_list_new_from_string   (const gchar      * str);
221 gboolean     gst_is_tag_list                (gconstpointer p);
222 GstTagList * gst_tag_list_copy              (const GstTagList * list);
223 gboolean     gst_tag_list_is_empty          (const GstTagList * list);
224 gboolean     gst_tag_list_is_equal          (const GstTagList * list1,
225                                              const GstTagList * list2);
226 void         gst_tag_list_insert            (GstTagList       * into,
227                                              const GstTagList * from,
228                                              GstTagMergeMode    mode);
229 GstTagList * gst_tag_list_merge             (const GstTagList * list1,
230                                              const GstTagList * list2,
231                                              GstTagMergeMode    mode);
232 void         gst_tag_list_free              (GstTagList       * list);
233 guint        gst_tag_list_get_tag_size      (const GstTagList * list,
234                                              const gchar      * tag);
235 void         gst_tag_list_add               (GstTagList       * list,
236                                              GstTagMergeMode    mode,
237                                              const gchar      * tag,
238                                              ...) G_GNUC_NULL_TERMINATED;
239 void         gst_tag_list_add_values        (GstTagList       * list,
240                                              GstTagMergeMode    mode,
241                                              const gchar      * tag,
242                                              ...) G_GNUC_NULL_TERMINATED;
243 void         gst_tag_list_add_valist        (GstTagList       * list,
244                                              GstTagMergeMode    mode,
245                                              const gchar      * tag,
246                                              va_list        var_args);
247 void         gst_tag_list_add_valist_values (GstTagList       * list,
248                                              GstTagMergeMode    mode,
249                                              const gchar      * tag,
250                                              va_list            var_args);
251 void         gst_tag_list_add_value         (GstTagList       * list,
252                                              GstTagMergeMode    mode,
253                                              const gchar      * tag,
254                                              const GValue     * value);
255 void         gst_tag_list_remove_tag        (GstTagList       * list,
256                                              const gchar      * tag);
257 void         gst_tag_list_foreach           (const GstTagList * list,
258                                              GstTagForeachFunc  func,
259                                              gpointer           user_data);
261 const GValue *
262              gst_tag_list_get_value_index   (const GstTagList * list,
263                                              const gchar      * tag,
264                                              guint              index);
265 gboolean     gst_tag_list_copy_value        (GValue           * dest,
266                                              const GstTagList * list,
267                                              const gchar      * tag);
269 /* simplifications (FIXME: do we want them?) */
270 gboolean     gst_tag_list_get_char          (const GstTagList * list,
271                                              const gchar      * tag,
272                                              gchar            * value);
273 gboolean     gst_tag_list_get_char_index    (const GstTagList * list,
274                                              const gchar      * tag,
275                                              guint              index,
276                                              gchar            * value);
277 gboolean     gst_tag_list_get_uchar         (const GstTagList * list,
278                                              const gchar      * tag,
279                                              guchar           * value);
280 gboolean     gst_tag_list_get_uchar_index   (const GstTagList * list,
281                                              const gchar      * tag,
282                                              guint              index,
283                                              guchar           * value);
284 gboolean     gst_tag_list_get_boolean       (const GstTagList * list,
285                                              const gchar      * tag,
286                                              gboolean         * value);
287 gboolean     gst_tag_list_get_boolean_index (const GstTagList * list,
288                                              const gchar      * tag,
289                                              guint              index,
290                                              gboolean         * value);
291 gboolean     gst_tag_list_get_int           (const GstTagList * list,
292                                              const gchar      * tag,
293                                              gint             * value);
294 gboolean     gst_tag_list_get_int_index     (const GstTagList * list,
295                                              const gchar      * tag,
296                                              guint              index,
297                                              gint             * value);
298 gboolean     gst_tag_list_get_uint          (const GstTagList * list,
299                                              const gchar      * tag,
300                                              guint            * value);
301 gboolean     gst_tag_list_get_uint_index    (const GstTagList * list,
302                                              const gchar      * tag,
303                                              guint              index,
304                                              guint            * value);
305 gboolean     gst_tag_list_get_long          (const GstTagList * list,
306                                              const gchar      * tag,
307                                              glong            * value);
308 gboolean     gst_tag_list_get_long_index    (const GstTagList * list,
309                                              const gchar      * tag,
310                                              guint              index,
311                                              glong            * value);
312 gboolean     gst_tag_list_get_ulong         (const GstTagList * list,
313                                              const gchar      * tag,
314                                              gulong           * value);
315 gboolean     gst_tag_list_get_ulong_index   (const GstTagList * list,
316                                              const gchar      * tag,
317                                              guint              index,
318                                              gulong           * value);
319 gboolean     gst_tag_list_get_int64         (const GstTagList * list,
320                                              const gchar      * tag,
321                                              gint64           * value);
322 gboolean     gst_tag_list_get_int64_index   (const GstTagList * list,
323                                              const gchar      * tag,
324                                              guint              index,
325                                              gint64           * value);
326 gboolean     gst_tag_list_get_uint64        (const GstTagList * list,
327                                              const gchar      * tag,
328                                              guint64          * value);
329 gboolean     gst_tag_list_get_uint64_index  (const GstTagList * list,
330                                              const gchar      * tag,
331                                              guint              index,
332                                              guint64          * value);
333 gboolean     gst_tag_list_get_float         (const GstTagList * list,
334                                              const gchar      * tag,
335                                              gfloat           * value);
336 gboolean     gst_tag_list_get_float_index   (const GstTagList * list,
337                                              const gchar      * tag,
338                                              guint              index,
339                                              gfloat           * value);
340 gboolean     gst_tag_list_get_double        (const GstTagList * list,
341                                              const gchar      * tag,
342                                              gdouble          * value);
343 gboolean     gst_tag_list_get_double_index  (const GstTagList * list,
344                                              const gchar      * tag,
345                                              guint              index,
346                                              gdouble          * value);
347 gboolean     gst_tag_list_get_string        (const GstTagList * list,
348                                              const gchar      * tag,
349                                              gchar           ** value);
350 gboolean     gst_tag_list_get_string_index  (const GstTagList * list,
351                                              const gchar      * tag,
352                                              guint              index,
353                                              gchar           ** value);
354 gboolean     gst_tag_list_peek_string_index (const GstTagList * list,
355                                              const gchar      * tag,
356                                              guint              index,
357                                              const gchar     ** value);
358 gboolean     gst_tag_list_get_pointer       (const GstTagList * list,
359                                              const gchar      * tag,
360                                              gpointer         * value);
361 gboolean     gst_tag_list_get_pointer_index (const GstTagList * list,
362                                              const gchar      * tag,
363                                              guint              index,
364                                              gpointer         * value);
365 gboolean     gst_tag_list_get_date          (const GstTagList * list,
366                                              const gchar      * tag,
367                                              GDate           ** value);
368 gboolean     gst_tag_list_get_date_index    (const GstTagList * list,
369                                              const gchar      * tag,
370                                              guint              index,
371                                              GDate           ** value);
372 gboolean     gst_tag_list_get_date_time     (const GstTagList * list,
373                                              const gchar      * tag,
374                                              GstDateTime     ** value);
375 gboolean     gst_tag_list_get_date_time_index (const GstTagList * list,
376                                              const gchar      * tag,
377                                              guint              index,
378                                              GstDateTime     ** value);
379 gboolean     gst_tag_list_get_buffer        (const GstTagList * list,
380                                              const gchar      * tag,
381                                              GstBuffer       ** value);
382 gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
383                                              const gchar      * tag,
384                                              guint              index,
385                                              GstBuffer       ** value);
387 /* GStreamer core tags */
388 /**
389  * GST_TAG_TITLE:
390  *
391  * commonly used title (string)
392  *
393  * The title as it should be displayed, e.g. 'The Doll House'
394  */
395 #define GST_TAG_TITLE                  "title"
396 /**
397  * GST_TAG_TITLE_SORTNAME:
398  *
399  * commonly used title, as used for sorting (string)
400  *
401  * The title as it should be sorted, e.g. 'Doll House, The'
402  *
403  * Since: 0.10.15
404  */
405 #define GST_TAG_TITLE_SORTNAME         "title-sortname"
406 /**
407  * GST_TAG_ARTIST:
408  *
409  * person(s) responsible for the recording (string)
410  *
411  * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
412  * 'The Guitar Heroes'
413  */
414 #define GST_TAG_ARTIST                 "artist"
415 /**
416  * GST_TAG_ARTIST_SORTNAME:
417  *
418  * person(s) responsible for the recording, as used for sorting (string)
419  *
420  * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
421  * 'Guitar Heroes, The'
422  *
423  * Since: 0.10.15
424  */
425 /* FIXME 0.11: change to "artist-sortname" */
426 #define GST_TAG_ARTIST_SORTNAME        "musicbrainz-sortname"
427 /**
428  * GST_TAG_ALBUM:
429  *
430  * album containing this data (string)
431  *
432  * The album name as it should be displayed, e.g. 'The Jazz Guitar'
433  */
434 #define GST_TAG_ALBUM                  "album"
435 /**
436  * GST_TAG_ALBUM_SORTNAME:
437  *
438  * album containing this data, as used for sorting (string)
439  *
440  * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
441  *
442  * Since: 0.10.15
443  */
444 #define GST_TAG_ALBUM_SORTNAME         "album-sortname"
445 /**
446  * GST_TAG_ALBUM_ARTIST:
447  *
448  * The artist of the entire album, as it should be displayed.
449  *
450  * Since: 0.10.25
451  */
452 #define GST_TAG_ALBUM_ARTIST           "album-artist"
453 /**
454  * GST_TAG_ALBUM_ARTIST_SORTNAME:
455  *
456  * The artist of the entire album, as it should be sorted.
457  *
458  * Since: 0.10.25
459  */
460 #define GST_TAG_ALBUM_ARTIST_SORTNAME  "album-artist-sortname"
461 /**
462  * GST_TAG_COMPOSER:
463  *
464  * person(s) who composed the recording (string)
465  *
466  * Since: 0.10.15
467  */
468 #define GST_TAG_COMPOSER               "composer"
469 /**
470  * GST_TAG_DATE:
471  *
472  * date the data was created (#GDate structure)
473  */
474 #define GST_TAG_DATE                   "date"
475 /**
476  * GST_TAG_DATE_TIME:
477  *
478  * date and time the data was created (#GstDateTime structure)
479  *
480  * Since: 0.10.31
481  */
482 #define GST_TAG_DATE_TIME              "datetime"
483 /**
484  * GST_TAG_GENRE:
485  *
486  * genre this data belongs to (string)
487  */
488 #define GST_TAG_GENRE                  "genre"
489 /**
490  * GST_TAG_COMMENT:
491  *
492  * free text commenting the data (string)
493  */
494 #define GST_TAG_COMMENT                "comment"
495 /**
496  * GST_TAG_EXTENDED_COMMENT:
497  *
498  * key/value text commenting the data (string)
499  *
500  * Must be in the form of 'key=comment' or
501  * 'key[lc]=comment' where 'lc' is an ISO-639
502  * language code.
503  *
504  * This tag is used for unknown Vorbis comment tags,
505  * unknown APE tags and certain ID3v2 comment fields.
506  *
507  * Since: 0.10.10
508  */
509 #define GST_TAG_EXTENDED_COMMENT       "extended-comment"
510 /**
511  * GST_TAG_TRACK_NUMBER:
512  *
513  * track number inside a collection (unsigned integer)
514  */
515 #define GST_TAG_TRACK_NUMBER           "track-number"
516 /**
517  * GST_TAG_TRACK_COUNT:
518  *
519  * count of tracks inside collection this track belongs to (unsigned integer)
520  */
521 #define GST_TAG_TRACK_COUNT            "track-count"
522 /**
523  * GST_TAG_ALBUM_VOLUME_NUMBER:
524  *
525  * disc number inside a collection (unsigned integer)
526  */
527 #define GST_TAG_ALBUM_VOLUME_NUMBER    "album-disc-number"
528 /**
529  * GST_TAG_ALBUM_VOLUME_COUNT:
530  *
531  * count of discs inside collection this disc belongs to (unsigned integer)
532  */
533 #define GST_TAG_ALBUM_VOLUME_COUNT    "album-disc-count"
534 /**
535  * GST_TAG_LOCATION:
536  *
537  * Origin of media as a URI (location, where the original of the file or stream
538  * is hosted) (string)
539  */
540 #define GST_TAG_LOCATION               "location"
541 /**
542  * GST_TAG_HOMEPAGE:
543  *
544  * Homepage for this media (i.e. artist or movie homepage) (string)
545  *
546  * Since: 0.10.23
547  */
548 #define GST_TAG_HOMEPAGE               "homepage"
549 /**
550  * GST_TAG_DESCRIPTION:
551  *
552  * short text describing the content of the data (string)
553  */
554 #define GST_TAG_DESCRIPTION            "description"
555 /**
556  * GST_TAG_VERSION:
557  *
558  * version of this data (string)
559  */
560 #define GST_TAG_VERSION                "version"
561 /**
562  * GST_TAG_ISRC:
563  *
564  * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
565  */
566 #define GST_TAG_ISRC                   "isrc"
567 /**
568  * GST_TAG_ORGANIZATION:
569  *
570  * organization (string)
571  */
572 #define GST_TAG_ORGANIZATION           "organization"
573 /**
574  * GST_TAG_COPYRIGHT:
575  *
576  * copyright notice of the data (string)
577  */
578 #define GST_TAG_COPYRIGHT              "copyright"
579 /**
580  * GST_TAG_COPYRIGHT_URI:
581  *
582  * URI to location where copyright details can be found (string)
583  *
584  * Since: 0.10.14
585  */
586 #define GST_TAG_COPYRIGHT_URI          "copyright-uri"
587 /**
588  * GST_TAG_ENCODED_BY:
589  *
590  * name of the person or organisation that encoded the file. May contain a
591  * copyright message if the person or organisation also holds the copyright
592  * (string)
593  *
594  * Note: do not use this field to describe the encoding application. Use
595  * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
596  *
597  * Since: 0.10.33
598  */
599 #define GST_TAG_ENCODED_BY             "encoded-by"
600 /**
601  * GST_TAG_CONTACT:
602  *
603  * contact information (string)
604  */
605 #define GST_TAG_CONTACT                "contact"
606 /**
607  * GST_TAG_LICENSE:
608  *
609  * license of data (string)
610  */
611 #define GST_TAG_LICENSE                "license"
612 /**
613  * GST_TAG_LICENSE_URI:
614  *
615  * URI to location where license details can be found (string)
616  *
617  * Since: 0.10.14
618  */
619 #define GST_TAG_LICENSE_URI            "license-uri"
620 /**
621  * GST_TAG_PERFORMER:
622  *
623  * person(s) performing (string)
624  */
625 #define GST_TAG_PERFORMER              "performer"
626 /**
627  * GST_TAG_DURATION:
628  *
629  * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
630  */
631 #define GST_TAG_DURATION               "duration"
632 /**
633  * GST_TAG_CODEC:
634  *
635  * codec the data is stored in (string)
636  */
637 #define GST_TAG_CODEC                  "codec"
638 /**
639  * GST_TAG_VIDEO_CODEC:
640  *
641  * codec the video data is stored in (string)
642  */
643 #define GST_TAG_VIDEO_CODEC            "video-codec"
644 /**
645  * GST_TAG_AUDIO_CODEC:
646  *
647  * codec the audio data is stored in (string)
648  */
649 #define GST_TAG_AUDIO_CODEC            "audio-codec"
650 /**
651  * GST_TAG_SUBTITLE_CODEC:
652  *
653  * codec/format the subtitle data is stored in (string)
654  *
655  * Since: 0.10.23
656  */
657 #define GST_TAG_SUBTITLE_CODEC         "subtitle-codec"
658 /**
659  * GST_TAG_CONTAINER_FORMAT:
660  *
661  * container format the data is stored in (string)
662  *
663  * Since: 0.10.24
664  */
665 #define GST_TAG_CONTAINER_FORMAT       "container-format"
666 /**
667  * GST_TAG_BITRATE:
668  *
669  * exact or average bitrate in bits/s (unsigned integer)
670  */
671 #define GST_TAG_BITRATE                "bitrate"
672 /**
673  * GST_TAG_NOMINAL_BITRATE:
674  *
675  * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
676  * different from this target bitrate.
677  */
678 #define GST_TAG_NOMINAL_BITRATE        "nominal-bitrate"
679 /**
680  * GST_TAG_MINIMUM_BITRATE:
681  *
682  * minimum bitrate in bits/s (unsigned integer)
683  */
684 #define GST_TAG_MINIMUM_BITRATE        "minimum-bitrate"
685 /**
686  * GST_TAG_MAXIMUM_BITRATE:
687  *
688  * maximum bitrate in bits/s (unsigned integer)
689  */
690 #define GST_TAG_MAXIMUM_BITRATE        "maximum-bitrate"
691 /**
692  * GST_TAG_SERIAL:
693  *
694  * serial number of track (unsigned integer)
695  */
696 #define GST_TAG_SERIAL                 "serial"
697 /**
698  * GST_TAG_ENCODER:
699  *
700  * encoder used to encode this stream (string)
701  */
702 #define GST_TAG_ENCODER                "encoder"
703 /**
704  * GST_TAG_ENCODER_VERSION:
705  *
706  * version of the encoder used to encode this stream (unsigned integer)
707  */
708 #define GST_TAG_ENCODER_VERSION        "encoder-version"
709 /**
710  * GST_TAG_TRACK_GAIN:
711  *
712  * track gain in db (double)
713  */
714 #define GST_TAG_TRACK_GAIN             "replaygain-track-gain"
715 /**
716  * GST_TAG_TRACK_PEAK:
717  *
718  * peak of the track (double)
719  */
720 #define GST_TAG_TRACK_PEAK             "replaygain-track-peak"
721 /**
722  * GST_TAG_ALBUM_GAIN:
723  *
724  * album gain in db (double)
725  */
726 #define GST_TAG_ALBUM_GAIN             "replaygain-album-gain"
727 /**
728  * GST_TAG_ALBUM_PEAK:
729  *
730  * peak of the album (double)
731  */
732 #define GST_TAG_ALBUM_PEAK             "replaygain-album-peak"
733 /**
734  * GST_TAG_REFERENCE_LEVEL:
735  *
736  * reference level of track and album gain values (double)
737  *
738  * Since: 0.10.12
739  */
740 #define GST_TAG_REFERENCE_LEVEL        "replaygain-reference-level"
741 /**
742  * GST_TAG_LANGUAGE_CODE:
743  *
744  * Language code (ISO-639-1) (string) of the content
745  */
746 #define GST_TAG_LANGUAGE_CODE          "language-code"
747 /**
748  * GST_TAG_IMAGE:
749  *
750  * image (buffer) (buffer caps should specify the content type and preferably
751  * also set "image-type" field as #GstTagImageType)
752  *
753  * Since: 0.10.6
754  */
755 #define GST_TAG_IMAGE                  "image"
756 /**
757  * GST_TAG_PREVIEW_IMAGE:
758  *
759  * image that is meant for preview purposes, e.g. small icon-sized version
760  * (buffer) (buffer caps should specify the content type)
761  *
762  * Since: 0.10.7
763  */
764 #define GST_TAG_PREVIEW_IMAGE          "preview-image"
766 /**
767  * GST_TAG_ATTACHMENT:
768  *
769  * generic file attachment (buffer) (buffer caps should specify the content
770  * type and if possible set "filename" to the file name of the
771  * attachment)
772  *
773  * Since: 0.10.21
774  */
775 #define GST_TAG_ATTACHMENT             "attachment"
777 /**
778  * GST_TAG_BEATS_PER_MINUTE:
779  *
780  * number of beats per minute in audio (double)
781  *
782  * Since: 0.10.12
783  */
784 #define GST_TAG_BEATS_PER_MINUTE       "beats-per-minute"
786 /**
787  * GST_TAG_KEYWORDS:
788  *
789  * comma separated keywords describing the content (string).
790  *
791  * Since: 0.10.21
792  */
793 #define GST_TAG_KEYWORDS               "keywords"
795 /**
796  * GST_TAG_GEO_LOCATION_NAME:
797  *
798  * human readable descriptive location of where the media has been recorded or
799  * produced. (string).
800  *
801  * Since: 0.10.21
802  */
803 #define GST_TAG_GEO_LOCATION_NAME               "geo-location-name"
805 /**
806  * GST_TAG_GEO_LOCATION_LATITUDE:
807  *
808  * geo latitude location of where the media has been recorded or produced in
809  * degrees according to WGS84 (zero at the equator, negative values for southern
810  * latitudes) (double).
811  *
812  * Since: 0.10.21
813  */
814 #define GST_TAG_GEO_LOCATION_LATITUDE               "geo-location-latitude"
816 /**
817  * GST_TAG_GEO_LOCATION_LONGITUDE:
818  *
819  * geo longitude location of where the media has been recorded or produced in
820  * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
821  * negative values for western longitudes). (double).
822  *
823  * Since: 0.10.21
824  */
825 #define GST_TAG_GEO_LOCATION_LONGITUDE               "geo-location-longitude"
827 /**
828  * GST_TAG_GEO_LOCATION_ELEVATION:
829  *
830  * geo elevation of where the media has been recorded or produced in meters
831  * according to WGS84 (zero is average sea level) (double).
832  *
833  * Since: 0.10.21
834  */
835 #define GST_TAG_GEO_LOCATION_ELEVATION               "geo-location-elevation"
836 /**
837  * GST_TAG_GEO_LOCATION_COUNTRY:
838  *
839  * The country (english name) where the media has been produced (string).
840  *
841  * Since: 0.10.29
842  */
843 #define GST_TAG_GEO_LOCATION_COUNTRY                 "geo-location-country"
844 /**
845  * GST_TAG_GEO_LOCATION_CITY:
846  *
847  * The city (english name) where the media has been produced (string).
848  *
849  * Since: 0.10.29
850  */
851 #define GST_TAG_GEO_LOCATION_CITY                    "geo-location-city"
852 /**
853  * GST_TAG_GEO_LOCATION_SUBLOCATION:
854  *
855  * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
856  * where the media has been produced. (e.g. the neighborhood) (string).
857  *
858  * This tag has been added as this is how it is handled/named in XMP's
859  * Iptc4xmpcore schema.
860  *
861  * Since: 0.10.29
862  */
863 #define GST_TAG_GEO_LOCATION_SUBLOCATION             "geo-location-sublocation"
864 /**
865  * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
866  *
867  * Represents the expected error on the horizontal positioning in
868  * meters (double).
869  *
870  * Since: 0.10.31
871  */
872 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR   "geo-location-horizontal-error"
873 /**
874  * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
875  *
876  * Speed of the capturing device when performing the capture.
877  * Represented in m/s. (double)
878  *
879  * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
880  *
881  * Since 0.10.30
882  */
883 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED       "geo-location-movement-speed"
884 /**
885  * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
886  *
887  * Indicates the movement direction of the device performing the capture
888  * of a media. It is represented as degrees in floating point representation,
889  * 0 means the geographic north, and increases clockwise (double from 0 to 360)
890  *
891  * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
892  *
893  * Since: 0.10.30
894  */
895 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
896 /**
897  * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
898  *
899  * Indicates the direction the device is pointing to when capturing
900  * a media. It is represented as degrees in floating point representation,
901  * 0 means the geographic north, and increases clockwise (double from 0 to 360)
902  *
903  * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
904  *
905  * Since: 0.10.30
906  */
907 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION  "geo-location-capture-direction"
908 /**
909  * GST_TAG_SHOW_NAME:
910  *
911  * Name of the show, used for displaying (string)
912  *
913  * Since: 0.10.26
914  */
915 #define GST_TAG_SHOW_NAME                         "show-name"
916 /**
917  * GST_TAG_SHOW_SORTNAME:
918  *
919  * Name of the show, used for sorting (string)
920  *
921  * Since: 0.10.26
922  */
923 #define GST_TAG_SHOW_SORTNAME                     "show-sortname"
924 /**
925  * GST_TAG_SHOW_EPISODE_NUMBER:
926  *
927  * Number of the episode within a season/show (unsigned integer)
928  *
929  * Since: 0.10.26
930  */
931 #define GST_TAG_SHOW_EPISODE_NUMBER               "show-episode-number"
932 /**
933  * GST_TAG_SHOW_SEASON_NUMBER:
934  *
935  * Number of the season of a show/series (unsigned integer)
936  *
937  * Since: 0.10.26
938  */
939 #define GST_TAG_SHOW_SEASON_NUMBER                "show-season-number"
940 /**
941  * GST_TAG_LYRICS:
942  *
943  * The lyrics of the media (string)
944  *
945  * Since: 0.10.26
946  */
947 #define GST_TAG_LYRICS                            "lyrics"
948 /**
949  * GST_TAG_COMPOSER_SORTNAME:
950  *
951  * The composer's name, used for sorting (string)
952  *
953  * Since: 0.10.26
954  */
955 #define GST_TAG_COMPOSER_SORTNAME                 "composer-sortname"
956 /**
957  * GST_TAG_GROUPING:
958  *
959  * Groups together media that are related and spans multiple tracks. An
960  * example are multiple pieces of a concerto. (string)
961  *
962  * Since: 0.10.26
963  */
964 #define GST_TAG_GROUPING                          "grouping"
965 /**
966  * GST_TAG_USER_RATING:
967  *
968  * Rating attributed by a person (likely the application user).
969  * The higher the value, the more the user likes this media
970  * (unsigned int from 0 to 100)
971  *
972  * Since: 0.10.29
973  */
974 #define GST_TAG_USER_RATING                       "user-rating"
975 /**
976  * GST_TAG_DEVICE_MANUFACTURER:
977  *
978  * Manufacturer of the device used to create the media (string)
979  *
980  * Since: 0.10.30
981  */
982 #define GST_TAG_DEVICE_MANUFACTURER               "device-manufacturer"
983 /**
984  * GST_TAG_DEVICE_MODEL:
985  *
986  * Model of the device used to create the media (string)
987  *
988  * Since: 0.10.30
989  */
990 #define GST_TAG_DEVICE_MODEL                      "device-model"
991 /**
992  * GST_TAG_APPLICATION_NAME:
993  *
994  * Name of the application used to create the media (string)
995  *
996  * Since: 0.10.31
997  */
998 #define GST_TAG_APPLICATION_NAME                  "application-name"
999 /**
1000  * GST_TAG_APPLICATION_DATA:
1001  *
1002  * Arbitrary application data (buffer)
1003  *
1004  * Some formats allow application's to add their own arbitrary data
1005  * into files. This data is application's dependent.
1006  *
1007  * Since: 0.10.31
1008  */
1009 #define GST_TAG_APPLICATION_DATA          "application-data"
1010 /**
1011  * GST_TAG_IMAGE_ORIENTATION:
1012  *
1013  * Represents the 'Orientation' tag from EXIF. Defines how the image
1014  * should be rotated and mirrored for display. (string)
1015  *
1016  * This tag has a predefined set of allowed values:
1017  *   "rotate-0"
1018  *   "rotate-90"
1019  *   "rotate-180"
1020  *   "rotate-270"
1021  *   "flip-rotate-0"
1022  *   "flip-rotate-90"
1023  *   "flip-rotate-180"
1024  *   "flip-rotate-270"
1025  *
1026  * The naming is adopted according to a possible transformation to perform
1027  * on the image to fix its orientation, obviously equivalent operations will
1028  * yield the same result.
1029  *
1030  * Rotations indicated by the values are in clockwise direction and
1031  * 'flip' means an horizontal mirroring.
1032  *
1033  * Since: 0.10.30
1034  */
1035 #define GST_TAG_IMAGE_ORIENTATION            "image-orientation"
1037 G_END_DECLS
1039 #endif /* __GST_TAGLIST_H__ */