2 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * gsttaglist.h: Header for tag support
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.
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.
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.
23 #ifndef __GST_TAGLIST_H__
24 #define __GST_TAGLIST_H__
26 #include <gst/gstdatetime.h>
27 #include <gst/gstsample.h>
28 #include <gst/gstbuffer.h>
29 #include <gst/glib-compat.h>
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
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.
52 * <table frame="all" colsep="1" rowsep="1">
53 * <title>merge mode</title>
54 * <tgroup cols='5' align='left'>
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>
66 * <entry>REPLACE_ALL</entry>
73 * <entry>REPLACE</entry>
80 * <entry>APPEND</entry>
87 * <entry>PREPEND</entry>
101 * <entry>KEEP_ALL</entry>
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,
118 GST_TAG_MERGE_KEEP_ALL,
123 #define GST_TAG_MODE_IS_VALID(mode) (((mode) > GST_TAG_MERGE_UNDEFINED) && ((mode) < GST_TAG_MERGE_COUNT))
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
133 * Extra tag flags used when registering tags.
135 /* FIXME: these are not really flags .. */
137 GST_TAG_FLAG_UNDEFINED,
139 GST_TAG_FLAG_ENCODED,
140 GST_TAG_FLAG_DECODED,
144 #define GST_TAG_FLAG_IS_VALID(flag) (((flag) > GST_TAG_FLAG_UNDEFINED) && ((flag) < GST_TAG_FLAG_COUNT))
148 * @mini_object: the parent type
150 * Object describing tags / metadata.
152 typedef struct _GstTagList GstTagList;
154 GstMiniObject mini_object;
157 #define GST_TAG_LIST(x) ((GstTagList *) (x))
158 #define GST_TYPE_TAG_LIST (gst_tag_list_get_type ())
159 #define GST_IS_TAG_LIST(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_TAG_LIST))
163 * @list: the #GstTagList
164 * @tag: a name of a tag in @list
165 * @user_data: user data
167 * A function that will be called in gst_tag_list_foreach(). The function may
168 * not modify the tag list.
170 typedef void (*GstTagForeachFunc) (const GstTagList * list,
176 * @dest: the destination #GValue
177 * @src: the source #GValue
179 * A function for merging multiple values of a tag used when registering
182 typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
184 GType gst_tag_list_get_type (void);
186 /* tag registration */
187 void gst_tag_register (const gchar * name,
192 GstTagMergeFunc func);
194 void gst_tag_register_static (const gchar * name,
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);
217 * @GST_TAG_SCOPE_STREAM: tags specific to this single stream
218 * @GST_TAG_SCOPE_GLOBAL: global tags for the complete medium
220 * GstTagScope specifies if a taglist applies to the complete
221 * medium or only to one single stream.
224 GST_TAG_SCOPE_STREAM,
228 GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
229 GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_MALLOC;
230 GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
232 void gst_tag_list_set_scope (GstTagList * list, GstTagScope scope);
233 GstTagScope gst_tag_list_get_scope (const GstTagList * list);
235 gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
236 GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
238 gint gst_tag_list_n_tags (const GstTagList * list);
239 const gchar* gst_tag_list_nth_tag_name (const GstTagList * list, guint index);
240 gboolean gst_tag_list_is_empty (const GstTagList * list);
241 gboolean gst_tag_list_is_equal (const GstTagList * list1,
242 const GstTagList * list2);
243 void gst_tag_list_insert (GstTagList * into,
244 const GstTagList * from,
245 GstTagMergeMode mode);
246 GstTagList * gst_tag_list_merge (const GstTagList * list1,
247 const GstTagList * list2,
248 GstTagMergeMode mode) G_GNUC_MALLOC;
249 guint gst_tag_list_get_tag_size (const GstTagList * list,
251 void gst_tag_list_add (GstTagList * list,
252 GstTagMergeMode mode,
254 ...) G_GNUC_NULL_TERMINATED;
255 void gst_tag_list_add_values (GstTagList * list,
256 GstTagMergeMode mode,
258 ...) G_GNUC_NULL_TERMINATED;
259 void gst_tag_list_add_valist (GstTagList * list,
260 GstTagMergeMode mode,
263 void gst_tag_list_add_valist_values (GstTagList * list,
264 GstTagMergeMode mode,
267 void gst_tag_list_add_value (GstTagList * list,
268 GstTagMergeMode mode,
270 const GValue * value);
271 void gst_tag_list_remove_tag (GstTagList * list,
273 void gst_tag_list_foreach (const GstTagList * list,
274 GstTagForeachFunc func,
278 gst_tag_list_get_value_index (const GstTagList * list,
281 gboolean gst_tag_list_copy_value (GValue * dest,
282 const GstTagList * list,
285 /* simplifications (FIXME: do we want them?) */
286 gboolean gst_tag_list_get_boolean (const GstTagList * list,
289 gboolean gst_tag_list_get_boolean_index (const GstTagList * list,
293 gboolean gst_tag_list_get_int (const GstTagList * list,
296 gboolean gst_tag_list_get_int_index (const GstTagList * list,
300 gboolean gst_tag_list_get_uint (const GstTagList * list,
303 gboolean gst_tag_list_get_uint_index (const GstTagList * list,
307 gboolean gst_tag_list_get_int64 (const GstTagList * list,
310 gboolean gst_tag_list_get_int64_index (const GstTagList * list,
314 gboolean gst_tag_list_get_uint64 (const GstTagList * list,
317 gboolean gst_tag_list_get_uint64_index (const GstTagList * list,
321 gboolean gst_tag_list_get_float (const GstTagList * list,
324 gboolean gst_tag_list_get_float_index (const GstTagList * list,
328 gboolean gst_tag_list_get_double (const GstTagList * list,
331 gboolean gst_tag_list_get_double_index (const GstTagList * list,
335 gboolean gst_tag_list_get_string (const GstTagList * list,
338 gboolean gst_tag_list_get_string_index (const GstTagList * list,
342 gboolean gst_tag_list_peek_string_index (const GstTagList * list,
345 const gchar ** value);
346 gboolean gst_tag_list_get_pointer (const GstTagList * list,
349 gboolean gst_tag_list_get_pointer_index (const GstTagList * list,
353 gboolean gst_tag_list_get_date (const GstTagList * list,
356 gboolean gst_tag_list_get_date_index (const GstTagList * list,
360 gboolean gst_tag_list_get_date_time (const GstTagList * list,
362 GstDateTime ** value);
363 gboolean gst_tag_list_get_date_time_index (const GstTagList * list,
366 GstDateTime ** value);
367 gboolean gst_tag_list_get_sample (const GstTagList * list,
369 GstSample ** sample);
370 gboolean gst_tag_list_get_sample_index (const GstTagList * list,
373 GstSample ** sample);
378 * @taglist: the #GstTagList to reference
380 * Add a reference to a #GstTagList mini object.
382 * From this point on, until the caller calls gst_tag_list_unref() or
383 * gst_tag_list_make_writable(), it is guaranteed that the taglist object will
384 * not change. To use a #GstTagList object, you must always have a refcount on
385 * it -- either the one made implicitly by e.g. gst_tag_list_new(), or via
386 * taking one explicitly with this function.
388 * Returns: the same #GstTagList mini object.
390 #ifdef _FOOL_GTK_DOC_
391 G_INLINE_FUNC GstTagList * gst_tag_list_ref (GstTagList * taglist);
394 static inline GstTagList *
395 gst_tag_list_ref (GstTagList * taglist)
397 return (GstTagList *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (taglist));
401 * gst_tag_list_unref:
402 * @taglist: a #GstTagList.
404 * Unref a #GstTagList, and and free all its memory when the refcount reaches 0.
406 #ifdef _FOOL_GTK_DOC_
407 G_INLINE_FUNC void gst_tag_list_unref (GstTagList * taglist);
411 gst_tag_list_unref (GstTagList * taglist)
413 gst_mini_object_unref (GST_MINI_OBJECT_CAST (taglist));
418 * @taglist: a #GstTagList.
420 * Creates a new #GstTagList as a copy of the old @taglist. The new taglist
421 * will have a refcount of 1, owned by the caller, and will be writable as
424 * Note that this function is the semantic equivalent of a gst_tag_list_ref()
425 * followed by a gst_tag_list_make_writable(). If you only want to hold on to a
426 * reference to the data, you should use gst_tag_list_ref().
428 * When you are finished with the taglist, call gst_tag_list_unref() on it.
430 * Returns: the new #GstTagList
432 #ifdef _FOOL_GTK_DOC_
433 G_INLINE_FUNC GstTagList * gst_tag_list_copy (const GstTagList * taglist);
436 static inline GstTagList *
437 gst_tag_list_copy (const GstTagList * taglist)
439 return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)));
443 * gst_tag_list_is_writable:
444 * @taglist: a #GstTagList
446 * Tests if you can safely modify @taglist. It is only safe to modify taglist
447 * when there is only one owner of the taglist - ie, the refcount is 1.
449 #define gst_tag_list_is_writable(taglist) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))
452 * gst_tag_list_make_writable:
453 * @taglist: (transfer full): a #GstTagList
455 * Returns a writable copy of @taglist.
457 * If there is only one reference count on @taglist, the caller must be the
458 * owner, and so this function will return the taglist object unchanged. If on
459 * the other hand there is more than one reference on the object, a new taglist
460 * object will be returned (which will be a copy of @taglist). The caller's
461 * reference on @taglist will be removed, and instead the caller will own a
462 * reference to the returned object.
464 * In short, this function unrefs the taglist in the argument and refs the
465 * taglist that it returns. Don't access the argument after calling this
466 * function. See also: gst_tag_list_ref().
468 * Returns: (transfer full): a writable taglist which may or may not be the
471 #define gst_tag_list_make_writable(taglist) GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))
473 /* GStreamer core tags */
477 * commonly used title (string)
479 * The title as it should be displayed, e.g. 'The Doll House'
481 #define GST_TAG_TITLE "title"
483 * GST_TAG_TITLE_SORTNAME:
485 * commonly used title, as used for sorting (string)
487 * The title as it should be sorted, e.g. 'Doll House, The'
489 #define GST_TAG_TITLE_SORTNAME "title-sortname"
493 * person(s) responsible for the recording (string)
495 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
496 * 'The Guitar Heroes'
498 #define GST_TAG_ARTIST "artist"
500 * GST_TAG_ARTIST_SORTNAME:
502 * person(s) responsible for the recording, as used for sorting (string)
504 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
505 * 'Guitar Heroes, The'
507 #define GST_TAG_ARTIST_SORTNAME "artist-sortname"
511 * album containing this data (string)
513 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
515 #define GST_TAG_ALBUM "album"
517 * GST_TAG_ALBUM_SORTNAME:
519 * album containing this data, as used for sorting (string)
521 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
523 #define GST_TAG_ALBUM_SORTNAME "album-sortname"
525 * GST_TAG_ALBUM_ARTIST:
527 * The artist of the entire album, as it should be displayed.
529 #define GST_TAG_ALBUM_ARTIST "album-artist"
531 * GST_TAG_ALBUM_ARTIST_SORTNAME:
533 * The artist of the entire album, as it should be sorted.
535 #define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname"
539 * person(s) who composed the recording (string)
541 #define GST_TAG_COMPOSER "composer"
545 * date the data was created (#GDate structure)
547 #define GST_TAG_DATE "date"
551 * date and time the data was created (#GstDateTime structure)
553 #define GST_TAG_DATE_TIME "datetime"
557 * genre this data belongs to (string)
559 #define GST_TAG_GENRE "genre"
563 * free text commenting the data (string)
565 #define GST_TAG_COMMENT "comment"
567 * GST_TAG_EXTENDED_COMMENT:
569 * key/value text commenting the data (string)
571 * Must be in the form of 'key=comment' or
572 * 'key[lc]=comment' where 'lc' is an ISO-639
575 * This tag is used for unknown Vorbis comment tags,
576 * unknown APE tags and certain ID3v2 comment fields.
578 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
580 * GST_TAG_TRACK_NUMBER:
582 * track number inside a collection (unsigned integer)
584 #define GST_TAG_TRACK_NUMBER "track-number"
586 * GST_TAG_TRACK_COUNT:
588 * count of tracks inside collection this track belongs to (unsigned integer)
590 #define GST_TAG_TRACK_COUNT "track-count"
592 * GST_TAG_ALBUM_VOLUME_NUMBER:
594 * disc number inside a collection (unsigned integer)
596 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
598 * GST_TAG_ALBUM_VOLUME_COUNT:
600 * count of discs inside collection this disc belongs to (unsigned integer)
602 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
606 * Origin of media as a URI (location, where the original of the file or stream
607 * is hosted) (string)
609 #define GST_TAG_LOCATION "location"
613 * Homepage for this media (i.e. artist or movie homepage) (string)
615 #define GST_TAG_HOMEPAGE "homepage"
617 * GST_TAG_DESCRIPTION:
619 * short text describing the content of the data (string)
621 #define GST_TAG_DESCRIPTION "description"
625 * version of this data (string)
627 #define GST_TAG_VERSION "version"
631 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
633 #define GST_TAG_ISRC "isrc"
635 * GST_TAG_ORGANIZATION:
637 * organization (string)
639 #define GST_TAG_ORGANIZATION "organization"
643 * copyright notice of the data (string)
645 #define GST_TAG_COPYRIGHT "copyright"
647 * GST_TAG_COPYRIGHT_URI:
649 * URI to location where copyright details can be found (string)
651 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
653 * GST_TAG_ENCODED_BY:
655 * name of the person or organisation that encoded the file. May contain a
656 * copyright message if the person or organisation also holds the copyright
659 * Note: do not use this field to describe the encoding application. Use
660 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
662 #define GST_TAG_ENCODED_BY "encoded-by"
666 * contact information (string)
668 #define GST_TAG_CONTACT "contact"
672 * license of data (string)
674 #define GST_TAG_LICENSE "license"
676 * GST_TAG_LICENSE_URI:
678 * URI to location where license details can be found (string)
680 #define GST_TAG_LICENSE_URI "license-uri"
684 * person(s) performing (string)
686 #define GST_TAG_PERFORMER "performer"
690 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
692 #define GST_TAG_DURATION "duration"
696 * codec the data is stored in (string)
698 #define GST_TAG_CODEC "codec"
700 * GST_TAG_VIDEO_CODEC:
702 * codec the video data is stored in (string)
704 #define GST_TAG_VIDEO_CODEC "video-codec"
706 * GST_TAG_AUDIO_CODEC:
708 * codec the audio data is stored in (string)
710 #define GST_TAG_AUDIO_CODEC "audio-codec"
712 * GST_TAG_SUBTITLE_CODEC:
714 * codec/format the subtitle data is stored in (string)
716 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
718 * GST_TAG_CONTAINER_FORMAT:
720 * container format the data is stored in (string)
722 #define GST_TAG_CONTAINER_FORMAT "container-format"
726 * exact or average bitrate in bits/s (unsigned integer)
728 #define GST_TAG_BITRATE "bitrate"
730 * GST_TAG_NOMINAL_BITRATE:
732 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
733 * different from this target bitrate.
735 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
737 * GST_TAG_MINIMUM_BITRATE:
739 * minimum bitrate in bits/s (unsigned integer)
741 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
743 * GST_TAG_MAXIMUM_BITRATE:
745 * maximum bitrate in bits/s (unsigned integer)
747 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
751 * serial number of track (unsigned integer)
753 #define GST_TAG_SERIAL "serial"
757 * encoder used to encode this stream (string)
759 #define GST_TAG_ENCODER "encoder"
761 * GST_TAG_ENCODER_VERSION:
763 * version of the encoder used to encode this stream (unsigned integer)
765 #define GST_TAG_ENCODER_VERSION "encoder-version"
767 * GST_TAG_TRACK_GAIN:
769 * track gain in db (double)
771 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
773 * GST_TAG_TRACK_PEAK:
775 * peak of the track (double)
777 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
779 * GST_TAG_ALBUM_GAIN:
781 * album gain in db (double)
783 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
785 * GST_TAG_ALBUM_PEAK:
787 * peak of the album (double)
789 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
791 * GST_TAG_REFERENCE_LEVEL:
793 * reference level of track and album gain values (double)
795 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
797 * GST_TAG_LANGUAGE_CODE:
799 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
801 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
802 * language name from the language code: gst_tag_get_language_name()
804 #define GST_TAG_LANGUAGE_CODE "language-code"
806 * GST_TAG_LANGUAGE_NAME:
808 * Name of the language the content is in (string)
810 * Free-form name of the language the content is in, if a language code
811 * is not available. This tag should not be set in addition to a language
812 * code. It is undefined what language or locale the language name is in.
814 #define GST_TAG_LANGUAGE_NAME "language-name"
818 * image (sample) (sample taglist should specify the content type and preferably
819 * also set "image-type" field as #GstTagImageType)
821 #define GST_TAG_IMAGE "image"
823 * GST_TAG_PREVIEW_IMAGE:
825 * image that is meant for preview purposes, e.g. small icon-sized version
826 * (sample) (sample taglist should specify the content type)
828 #define GST_TAG_PREVIEW_IMAGE "preview-image"
831 * GST_TAG_ATTACHMENT:
833 * generic file attachment (sample) (sample taglist should specify the content
834 * type and if possible set "filename" to the file name of the
837 #define GST_TAG_ATTACHMENT "attachment"
840 * GST_TAG_BEATS_PER_MINUTE:
842 * number of beats per minute in audio (double)
844 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
849 * comma separated keywords describing the content (string).
851 #define GST_TAG_KEYWORDS "keywords"
854 * GST_TAG_GEO_LOCATION_NAME:
856 * human readable descriptive location of where the media has been recorded or
857 * produced. (string).
859 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
862 * GST_TAG_GEO_LOCATION_LATITUDE:
864 * geo latitude location of where the media has been recorded or produced in
865 * degrees according to WGS84 (zero at the equator, negative values for southern
866 * latitudes) (double).
868 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
871 * GST_TAG_GEO_LOCATION_LONGITUDE:
873 * geo longitude location of where the media has been recorded or produced in
874 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
875 * negative values for western longitudes). (double).
877 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
880 * GST_TAG_GEO_LOCATION_ELEVATION:
882 * geo elevation of where the media has been recorded or produced in meters
883 * according to WGS84 (zero is average sea level) (double).
885 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
887 * GST_TAG_GEO_LOCATION_COUNTRY:
889 * The country (english name) where the media has been produced (string).
891 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
893 * GST_TAG_GEO_LOCATION_CITY:
895 * The city (english name) where the media has been produced (string).
897 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
899 * GST_TAG_GEO_LOCATION_SUBLOCATION:
901 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
902 * where the media has been produced. (e.g. the neighborhood) (string).
904 * This tag has been added as this is how it is handled/named in XMP's
905 * Iptc4xmpcore schema.
907 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
909 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
911 * Represents the expected error on the horizontal positioning in
914 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
916 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
918 * Speed of the capturing device when performing the capture.
919 * Represented in m/s. (double)
921 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
923 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
925 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
927 * Indicates the movement direction of the device performing the capture
928 * of a media. It is represented as degrees in floating point representation,
929 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
931 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
933 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
935 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
937 * Indicates the direction the device is pointing to when capturing
938 * a media. It is represented as degrees in floating point representation,
939 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
941 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
943 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
947 * Name of the show, used for displaying (string)
949 #define GST_TAG_SHOW_NAME "show-name"
951 * GST_TAG_SHOW_SORTNAME:
953 * Name of the show, used for sorting (string)
955 #define GST_TAG_SHOW_SORTNAME "show-sortname"
957 * GST_TAG_SHOW_EPISODE_NUMBER:
959 * Number of the episode within a season/show (unsigned integer)
961 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
963 * GST_TAG_SHOW_SEASON_NUMBER:
965 * Number of the season of a show/series (unsigned integer)
967 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
971 * The lyrics of the media (string)
973 #define GST_TAG_LYRICS "lyrics"
975 * GST_TAG_COMPOSER_SORTNAME:
977 * The composer's name, used for sorting (string)
979 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
983 * Groups together media that are related and spans multiple tracks. An
984 * example are multiple pieces of a concerto. (string)
986 #define GST_TAG_GROUPING "grouping"
988 * GST_TAG_USER_RATING:
990 * Rating attributed by a person (likely the application user).
991 * The higher the value, the more the user likes this media
992 * (unsigned int from 0 to 100)
994 #define GST_TAG_USER_RATING "user-rating"
996 * GST_TAG_DEVICE_MANUFACTURER:
998 * Manufacturer of the device used to create the media (string)
1000 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
1002 * GST_TAG_DEVICE_MODEL:
1004 * Model of the device used to create the media (string)
1006 #define GST_TAG_DEVICE_MODEL "device-model"
1008 * GST_TAG_APPLICATION_NAME:
1010 * Name of the application used to create the media (string)
1012 #define GST_TAG_APPLICATION_NAME "application-name"
1014 * GST_TAG_APPLICATION_DATA:
1016 * Arbitrary application data (sample)
1018 * Some formats allow applications to add their own arbitrary data
1019 * into files. This data is application dependent.
1021 #define GST_TAG_APPLICATION_DATA "application-data"
1023 * GST_TAG_IMAGE_ORIENTATION:
1025 * Represents the 'Orientation' tag from EXIF. Defines how the image
1026 * should be rotated and mirrored for display. (string)
1028 * This tag has a predefined set of allowed values:
1038 * The naming is adopted according to a possible transformation to perform
1039 * on the image to fix its orientation, obviously equivalent operations will
1040 * yield the same result.
1042 * Rotations indicated by the values are in clockwise direction and
1043 * 'flip' means an horizontal mirroring.
1045 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1049 #endif /* __GST_TAGLIST_H__ */