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., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, 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 * | merge mode | A + B | A + !B | !A + B | !A + !B |
53 * | ----------- | ----- | ------ | ------ | ------- |
54 * | REPLACE_ALL | B | ø | B | ø |
55 * | REPLACE | B | A | B | ø |
56 * | APPEND | A, B | A | B | ø |
57 * | PREPEND | B, A | A | B | ø |
58 * | KEEP | A | A | B | ø |
59 * | KEEP_ALL | A | A | ø | ø |
63 GST_TAG_MERGE_UNDEFINED,
64 GST_TAG_MERGE_REPLACE_ALL,
65 GST_TAG_MERGE_REPLACE,
67 GST_TAG_MERGE_PREPEND,
69 GST_TAG_MERGE_KEEP_ALL,
74 #define GST_TAG_MODE_IS_VALID(mode) (((mode) > GST_TAG_MERGE_UNDEFINED) && ((mode) < GST_TAG_MERGE_COUNT))
78 * @GST_TAG_FLAG_UNDEFINED: undefined flag
79 * @GST_TAG_FLAG_META: tag is meta data
80 * @GST_TAG_FLAG_ENCODED: tag is encoded
81 * @GST_TAG_FLAG_DECODED: tag is decoded
82 * @GST_TAG_FLAG_COUNT: number of tag flags
84 * Extra tag flags used when registering tags.
86 /* FIXME: these are not really flags .. */
88 GST_TAG_FLAG_UNDEFINED,
95 #define GST_TAG_FLAG_IS_VALID(flag) (((flag) > GST_TAG_FLAG_UNDEFINED) && ((flag) < GST_TAG_FLAG_COUNT))
99 * @mini_object: the parent type
101 * Object describing tags / metadata.
103 typedef struct _GstTagList GstTagList;
105 GstMiniObject mini_object;
108 GST_API GType _gst_tag_list_type;
110 #define GST_TAG_LIST(x) ((GstTagList *) (x))
111 #define GST_TYPE_TAG_LIST (_gst_tag_list_type)
112 #define GST_IS_TAG_LIST(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_TAG_LIST))
116 * @list: the #GstTagList
117 * @tag: a name of a tag in @list
118 * @user_data: user data
120 * A function that will be called in gst_tag_list_foreach(). The function may
121 * not modify the tag list.
123 typedef void (*GstTagForeachFunc) (const GstTagList * list,
129 * @dest: the destination #GValue
130 * @src: the source #GValue
132 * A function for merging multiple values of a tag used when registering
135 typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
138 GType gst_tag_list_get_type (void);
140 /* tag registration */
143 void gst_tag_register (const gchar * name,
148 GstTagMergeFunc func);
150 void gst_tag_register_static (const gchar * name,
155 GstTagMergeFunc func);
157 /* some default merging functions */
160 void gst_tag_merge_use_first (GValue * dest, const GValue * src);
163 void gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
165 /* basic tag support */
168 gboolean gst_tag_exists (const gchar * tag);
171 GType gst_tag_get_type (const gchar * tag);
174 const gchar * gst_tag_get_nick (const gchar * tag);
177 const gchar * gst_tag_get_description (const gchar * tag);
180 GstTagFlag gst_tag_get_flag (const gchar * tag);
183 gboolean gst_tag_is_fixed (const gchar * tag);
189 * @GST_TAG_SCOPE_STREAM: tags specific to this single stream
190 * @GST_TAG_SCOPE_GLOBAL: global tags for the complete medium
192 * GstTagScope specifies if a taglist applies to the complete
193 * medium or only to one single stream.
196 GST_TAG_SCOPE_STREAM,
201 GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
204 GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_NULL_TERMINATED G_GNUC_MALLOC;
207 GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
210 void gst_tag_list_set_scope (GstTagList * list, GstTagScope scope);
213 GstTagScope gst_tag_list_get_scope (const GstTagList * list);
216 gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
219 GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
222 gint gst_tag_list_n_tags (const GstTagList * list);
225 const gchar* gst_tag_list_nth_tag_name (const GstTagList * list, guint index);
228 gboolean gst_tag_list_is_empty (const GstTagList * list);
231 gboolean gst_tag_list_is_equal (const GstTagList * list1,
232 const GstTagList * list2);
234 void gst_tag_list_insert (GstTagList * into,
235 const GstTagList * from,
236 GstTagMergeMode mode);
238 GstTagList * gst_tag_list_merge (const GstTagList * list1,
239 const GstTagList * list2,
240 GstTagMergeMode mode) G_GNUC_MALLOC;
242 guint gst_tag_list_get_tag_size (const GstTagList * list,
245 void gst_tag_list_add (GstTagList * list,
246 GstTagMergeMode mode,
248 ...) G_GNUC_NULL_TERMINATED;
250 void gst_tag_list_add_values (GstTagList * list,
251 GstTagMergeMode mode,
253 ...) G_GNUC_NULL_TERMINATED;
255 void gst_tag_list_add_valist (GstTagList * list,
256 GstTagMergeMode mode,
260 void gst_tag_list_add_valist_values (GstTagList * list,
261 GstTagMergeMode mode,
265 void gst_tag_list_add_value (GstTagList * list,
266 GstTagMergeMode mode,
268 const GValue * value);
270 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,
282 gboolean gst_tag_list_copy_value (GValue * dest,
283 const GstTagList * list,
286 /* simplifications (FIXME: do we want them?) */
289 gboolean gst_tag_list_get_boolean (const GstTagList * list,
293 gboolean gst_tag_list_get_boolean_index (const GstTagList * list,
298 gboolean gst_tag_list_get_int (const GstTagList * list,
302 gboolean gst_tag_list_get_int_index (const GstTagList * list,
307 gboolean gst_tag_list_get_uint (const GstTagList * list,
311 gboolean gst_tag_list_get_uint_index (const GstTagList * list,
316 gboolean gst_tag_list_get_int64 (const GstTagList * list,
320 gboolean gst_tag_list_get_int64_index (const GstTagList * list,
325 gboolean gst_tag_list_get_uint64 (const GstTagList * list,
329 gboolean gst_tag_list_get_uint64_index (const GstTagList * list,
334 gboolean gst_tag_list_get_float (const GstTagList * list,
338 gboolean gst_tag_list_get_float_index (const GstTagList * list,
343 gboolean gst_tag_list_get_double (const GstTagList * list,
347 gboolean gst_tag_list_get_double_index (const GstTagList * list,
352 gboolean gst_tag_list_get_string (const GstTagList * list,
356 gboolean gst_tag_list_get_string_index (const GstTagList * list,
361 gboolean gst_tag_list_peek_string_index (const GstTagList * list,
364 const gchar ** value);
366 gboolean gst_tag_list_get_pointer (const GstTagList * list,
370 gboolean gst_tag_list_get_pointer_index (const GstTagList * list,
375 gboolean gst_tag_list_get_date (const GstTagList * list,
379 gboolean gst_tag_list_get_date_index (const GstTagList * list,
384 gboolean gst_tag_list_get_date_time (const GstTagList * list,
386 GstDateTime ** value);
388 gboolean gst_tag_list_get_date_time_index (const GstTagList * list,
391 GstDateTime ** value);
393 gboolean gst_tag_list_get_sample (const GstTagList * list,
395 GstSample ** sample);
397 gboolean gst_tag_list_get_sample_index (const GstTagList * list,
400 GstSample ** sample);
402 #ifndef GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS
404 static inline GstTagList *
405 gst_tag_list_ref (GstTagList * taglist)
407 return (GstTagList *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (taglist));
411 gst_tag_list_unref (GstTagList * taglist)
413 gst_mini_object_unref (GST_MINI_OBJECT_CAST (taglist));
417 gst_clear_tag_list (GstTagList ** taglist_ptr)
419 gst_clear_mini_object ((GstMiniObject **) taglist_ptr);
421 #else /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
423 GstTagList * gst_tag_list_ref (GstTagList * taglist);
426 void gst_tag_list_unref (GstTagList * taglist);
429 void gst_clear_tag_list (GstTagList ** taglist_ptr);
430 #endif /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
433 GstTagList* gst_tag_list_copy(const GstTagList* taglist);
435 #define gst_tag_list_copy(taglist) GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)))
437 #ifndef GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS
438 static inline gboolean
439 gst_tag_list_replace (GstTagList **old_taglist, GstTagList *new_taglist)
441 return gst_mini_object_replace ((GstMiniObject **) old_taglist,
442 (GstMiniObject *) new_taglist);
445 static inline gboolean
446 gst_tag_list_take (GstTagList **old_taglist, GstTagList *new_taglist)
448 return gst_mini_object_take ((GstMiniObject **) old_taglist,
449 (GstMiniObject *) new_taglist);
451 #else /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
453 gboolean gst_tag_list_replace (GstTagList ** old_taglist,
454 GstTagList * new_taglist);
457 gboolean gst_tag_list_take (GstTagList ** old_taglist,
458 GstTagList * new_taglist);
462 * gst_tag_list_is_writable:
463 * @taglist: a #GstTagList
465 * Tests if you can safely modify @taglist. It is only safe to modify taglist
466 * when there is only one owner of the taglist - ie, the refcount is 1.
468 #define gst_tag_list_is_writable(taglist) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))
471 * gst_tag_list_make_writable:
472 * @taglist: (transfer full): a #GstTagList
474 * Returns a writable copy of @taglist.
476 * If there is only one reference count on @taglist, the caller must be the
477 * owner, and so this function will return the taglist object unchanged. If on
478 * the other hand there is more than one reference on the object, a new taglist
479 * object will be returned (which will be a copy of @taglist). The caller's
480 * reference on @taglist will be removed, and instead the caller will own a
481 * reference to the returned object.
483 * In short, this function unrefs the taglist in the argument and refs the
484 * taglist that it returns. Don't access the argument after calling this
485 * function. See also: gst_tag_list_ref().
487 * Returns: (transfer full): a writable taglist which may or may not be the
490 #define gst_tag_list_make_writable(taglist) GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))
492 /* GStreamer core tags */
496 * commonly used title (string)
498 * The title as it should be displayed, e.g. 'The Doll House'
500 #define GST_TAG_TITLE "title"
502 * GST_TAG_TITLE_SORTNAME:
504 * commonly used title, as used for sorting (string)
506 * The title as it should be sorted, e.g. 'Doll House, The'
508 #define GST_TAG_TITLE_SORTNAME "title-sortname"
512 * person(s) responsible for the recording (string)
514 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
515 * 'The Guitar Heroes'
517 #define GST_TAG_ARTIST "artist"
519 * GST_TAG_ARTIST_SORTNAME:
521 * person(s) responsible for the recording, as used for sorting (string)
523 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
524 * 'Guitar Heroes, The'
526 #define GST_TAG_ARTIST_SORTNAME "artist-sortname"
530 * album containing this data (string)
532 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
534 #define GST_TAG_ALBUM "album"
536 * GST_TAG_ALBUM_SORTNAME:
538 * album containing this data, as used for sorting (string)
540 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
542 #define GST_TAG_ALBUM_SORTNAME "album-sortname"
544 * GST_TAG_ALBUM_ARTIST:
546 * The artist of the entire album, as it should be displayed.
548 #define GST_TAG_ALBUM_ARTIST "album-artist"
550 * GST_TAG_ALBUM_ARTIST_SORTNAME:
552 * The artist of the entire album, as it should be sorted.
554 #define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname"
558 * person(s) who composed the recording (string)
560 #define GST_TAG_COMPOSER "composer"
564 * conductor/performer refinement (string)
568 #define GST_TAG_CONDUCTOR "conductor"
572 * date the data was created (#GDate structure)
574 #define GST_TAG_DATE "date"
578 * date and time the data was created (#GstDateTime structure)
580 #define GST_TAG_DATE_TIME "datetime"
584 * genre this data belongs to (string)
586 #define GST_TAG_GENRE "genre"
590 * free text commenting the data (string)
592 #define GST_TAG_COMMENT "comment"
594 * GST_TAG_EXTENDED_COMMENT:
596 * key/value text commenting the data (string)
598 * Must be in the form of 'key=comment' or
599 * 'key[lc]=comment' where 'lc' is an ISO-639
602 * This tag is used for unknown Vorbis comment tags,
603 * unknown APE tags and certain ID3v2 comment fields.
605 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
607 * GST_TAG_TRACK_NUMBER:
609 * track number inside a collection (unsigned integer)
611 #define GST_TAG_TRACK_NUMBER "track-number"
613 * GST_TAG_TRACK_COUNT:
615 * count of tracks inside collection this track belongs to (unsigned integer)
617 #define GST_TAG_TRACK_COUNT "track-count"
619 * GST_TAG_ALBUM_VOLUME_NUMBER:
621 * disc number inside a collection (unsigned integer)
623 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
625 * GST_TAG_ALBUM_VOLUME_COUNT:
627 * count of discs inside collection this disc belongs to (unsigned integer)
629 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
633 * Origin of media as a URI (location, where the original of the file or stream
634 * is hosted) (string)
636 #define GST_TAG_LOCATION "location"
640 * Homepage for this media (i.e. artist or movie homepage) (string)
642 #define GST_TAG_HOMEPAGE "homepage"
644 * GST_TAG_DESCRIPTION:
646 * short text describing the content of the data (string)
648 #define GST_TAG_DESCRIPTION "description"
652 * version of this data (string)
654 #define GST_TAG_VERSION "version"
658 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
660 #define GST_TAG_ISRC "isrc"
662 * GST_TAG_ORGANIZATION:
664 * organization (string)
666 #define GST_TAG_ORGANIZATION "organization"
670 * copyright notice of the data (string)
672 #define GST_TAG_COPYRIGHT "copyright"
674 * GST_TAG_COPYRIGHT_URI:
676 * URI to location where copyright details can be found (string)
678 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
680 * GST_TAG_ENCODED_BY:
682 * name of the person or organisation that encoded the file. May contain a
683 * copyright message if the person or organisation also holds the copyright
686 * Note: do not use this field to describe the encoding application. Use
687 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
689 #define GST_TAG_ENCODED_BY "encoded-by"
693 * contact information (string)
695 #define GST_TAG_CONTACT "contact"
699 * license of data (string)
701 #define GST_TAG_LICENSE "license"
703 * GST_TAG_LICENSE_URI:
705 * URI to location where license details can be found (string)
707 #define GST_TAG_LICENSE_URI "license-uri"
711 * person(s) performing (string)
713 #define GST_TAG_PERFORMER "performer"
717 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
719 #define GST_TAG_DURATION "duration"
723 * codec the data is stored in (string)
725 #define GST_TAG_CODEC "codec"
727 * GST_TAG_VIDEO_CODEC:
729 * codec the video data is stored in (string)
731 #define GST_TAG_VIDEO_CODEC "video-codec"
733 * GST_TAG_AUDIO_CODEC:
735 * codec the audio data is stored in (string)
737 #define GST_TAG_AUDIO_CODEC "audio-codec"
739 * GST_TAG_SUBTITLE_CODEC:
741 * codec/format the subtitle data is stored in (string)
743 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
745 * GST_TAG_CONTAINER_FORMAT:
747 * container format the data is stored in (string)
749 #define GST_TAG_CONTAINER_FORMAT "container-format"
750 #ifdef TIZEN_PROFILE_TV
752 * GST_TAG_AUDIO_DUALMONO:
754 * dual/mono can available in audio stream (boolean)
756 #define GST_TAG_AUDIO_DUALMONO "audio-dualmono"
761 * exact or average bitrate in bits/s (unsigned integer)
763 #define GST_TAG_BITRATE "bitrate"
765 * GST_TAG_NOMINAL_BITRATE:
767 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
768 * different from this target bitrate.
770 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
772 * GST_TAG_MINIMUM_BITRATE:
774 * minimum bitrate in bits/s (unsigned integer)
776 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
778 * GST_TAG_MAXIMUM_BITRATE:
780 * maximum bitrate in bits/s (unsigned integer)
782 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
786 * serial number of track (unsigned integer)
788 #define GST_TAG_SERIAL "serial"
792 * encoder used to encode this stream (string)
794 #define GST_TAG_ENCODER "encoder"
796 * GST_TAG_ENCODER_VERSION:
798 * version of the encoder used to encode this stream (unsigned integer)
800 #define GST_TAG_ENCODER_VERSION "encoder-version"
802 * GST_TAG_TRACK_GAIN:
804 * track gain in db (double)
806 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
808 * GST_TAG_TRACK_PEAK:
810 * peak of the track (double)
812 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
814 * GST_TAG_ALBUM_GAIN:
816 * album gain in db (double)
818 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
820 * GST_TAG_ALBUM_PEAK:
822 * peak of the album (double)
824 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
826 * GST_TAG_REFERENCE_LEVEL:
828 * reference level of track and album gain values (double)
830 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
832 * GST_TAG_LANGUAGE_CODE:
834 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
836 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
837 * language name from the language code: `gst_tag_get_language_name()`
839 #define GST_TAG_LANGUAGE_CODE "language-code"
841 * GST_TAG_LANGUAGE_NAME:
843 * Name of the language the content is in (string)
845 * Free-form name of the language the content is in, if a language code
846 * is not available. This tag should not be set in addition to a language
847 * code. It is undefined what language or locale the language name is in.
849 #define GST_TAG_LANGUAGE_NAME "language-name"
853 * image (sample) (sample taglist should specify the content type and preferably
854 * also set "image-type" field as `GstTagImageType`)
856 #define GST_TAG_IMAGE "image"
858 * GST_TAG_PREVIEW_IMAGE:
860 * image that is meant for preview purposes, e.g. small icon-sized version
861 * (sample) (sample taglist should specify the content type)
863 #define GST_TAG_PREVIEW_IMAGE "preview-image"
866 * GST_TAG_ATTACHMENT:
868 * generic file attachment (sample) (sample taglist should specify the content
869 * type and if possible set "filename" to the file name of the
872 #define GST_TAG_ATTACHMENT "attachment"
875 * GST_TAG_BEATS_PER_MINUTE:
877 * number of beats per minute in audio (double)
879 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
884 * comma separated keywords describing the content (string).
886 #define GST_TAG_KEYWORDS "keywords"
889 * GST_TAG_GEO_LOCATION_NAME:
891 * human readable descriptive location of where the media has been recorded or
892 * produced. (string).
894 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
897 * GST_TAG_GEO_LOCATION_LATITUDE:
899 * geo latitude location of where the media has been recorded or produced in
900 * degrees according to WGS84 (zero at the equator, negative values for southern
901 * latitudes) (double).
903 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
906 * GST_TAG_GEO_LOCATION_LONGITUDE:
908 * geo longitude location of where the media has been recorded or produced in
909 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
910 * negative values for western longitudes). (double).
912 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
915 * GST_TAG_GEO_LOCATION_ELEVATION:
917 * geo elevation of where the media has been recorded or produced in meters
918 * according to WGS84 (zero is average sea level) (double).
920 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
922 * GST_TAG_GEO_LOCATION_COUNTRY:
924 * The country (english name) where the media has been produced (string).
926 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
928 * GST_TAG_GEO_LOCATION_CITY:
930 * The city (english name) where the media has been produced (string).
932 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
934 * GST_TAG_GEO_LOCATION_SUBLOCATION:
936 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
937 * where the media has been produced. (e.g. the neighborhood) (string).
939 * This tag has been added as this is how it is handled/named in XMP's
940 * Iptc4xmpcore schema.
942 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
944 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
946 * Represents the expected error on the horizontal positioning in
949 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
951 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
953 * Speed of the capturing device when performing the capture.
954 * Represented in m/s. (double)
956 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
958 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
960 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
962 * Indicates the movement direction of the device performing the capture
963 * of a media. It is represented as degrees in floating point representation,
964 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
966 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
968 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
970 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
972 * Indicates the direction the device is pointing to when capturing
973 * a media. It is represented as degrees in floating point representation,
974 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
976 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
978 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
982 * Name of the show, used for displaying (string)
984 #define GST_TAG_SHOW_NAME "show-name"
986 * GST_TAG_SHOW_SORTNAME:
988 * Name of the show, used for sorting (string)
990 #define GST_TAG_SHOW_SORTNAME "show-sortname"
992 * GST_TAG_SHOW_EPISODE_NUMBER:
994 * Number of the episode within a season/show (unsigned integer)
996 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
998 * GST_TAG_SHOW_SEASON_NUMBER:
1000 * Number of the season of a show/series (unsigned integer)
1002 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
1006 * The lyrics of the media (string)
1008 #define GST_TAG_LYRICS "lyrics"
1010 * GST_TAG_COMPOSER_SORTNAME:
1012 * The composer's name, used for sorting (string)
1014 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
1018 * Groups together media that are related and spans multiple tracks. An
1019 * example are multiple pieces of a concerto. (string)
1021 #define GST_TAG_GROUPING "grouping"
1023 * GST_TAG_USER_RATING:
1025 * Rating attributed by a person (likely the application user).
1026 * The higher the value, the more the user likes this media
1027 * (unsigned int from 0 to 100)
1029 #define GST_TAG_USER_RATING "user-rating"
1031 * GST_TAG_DEVICE_MANUFACTURER:
1033 * Manufacturer of the device used to create the media (string)
1035 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
1037 * GST_TAG_DEVICE_MODEL:
1039 * Model of the device used to create the media (string)
1041 #define GST_TAG_DEVICE_MODEL "device-model"
1043 * GST_TAG_APPLICATION_NAME:
1045 * Name of the application used to create the media (string)
1047 #define GST_TAG_APPLICATION_NAME "application-name"
1049 * GST_TAG_APPLICATION_DATA:
1051 * Arbitrary application data (sample)
1053 * Some formats allow applications to add their own arbitrary data
1054 * into files. This data is application dependent.
1056 #define GST_TAG_APPLICATION_DATA "application-data"
1058 * GST_TAG_IMAGE_ORIENTATION:
1060 * Represents the 'Orientation' tag from EXIF. Defines how the image
1061 * should be rotated and mirrored for display. (string)
1063 * This tag has a predefined set of allowed values:
1073 * The naming is adopted according to a possible transformation to perform
1074 * on the image to fix its orientation, obviously equivalent operations will
1075 * yield the same result.
1077 * Rotations indicated by the values are in clockwise direction and
1078 * 'flip' means an horizontal mirroring.
1080 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1082 * GST_TAG_PUBLISHER:
1084 * Name of the label or publisher (string)
1088 #define GST_TAG_PUBLISHER "publisher"
1090 * GST_TAG_INTERPRETED_BY:
1092 * Information about the people behind a remix and similar
1093 * interpretations of another existing piece (string)
1097 #define GST_TAG_INTERPRETED_BY "interpreted-by"
1099 * GST_TAG_MIDI_BASE_NOTE:
1101 * [Midi note number](http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name)
1102 * of the audio track. This is useful for sample instruments and in particular
1103 * for multi-samples.
1107 #define GST_TAG_MIDI_BASE_NOTE "midi-base-note"
1109 * GST_TAG_PRIVATE_DATA:
1111 * Any private data that may be contained in tags (sample).
1113 * It is represented by #GstSample in which #GstBuffer contains the
1114 * binary data and the sample's info #GstStructure may contain any
1115 * extra information that identifies the origin or meaning of the data.
1117 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
1118 * using this tag, in which case the GstStructure will be named
1119 * "ID3PrivateFrame" and contain a field named "owner" of type string
1120 * which contains the owner-identification string from the tag.
1124 #define GST_TAG_PRIVATE_DATA "private-data"
1126 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
1130 #endif /* __GST_TAGLIST_H__ */