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 * <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 GST_API GType _gst_tag_list_type;
159 #define GST_TAG_LIST(x) ((GstTagList *) (x))
160 #define GST_TYPE_TAG_LIST (_gst_tag_list_type)
161 #define GST_IS_TAG_LIST(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_TAG_LIST))
165 * @list: the #GstTagList
166 * @tag: a name of a tag in @list
167 * @user_data: user data
169 * A function that will be called in gst_tag_list_foreach(). The function may
170 * not modify the tag list.
172 typedef void (*GstTagForeachFunc) (const GstTagList * list,
178 * @dest: the destination #GValue
179 * @src: the source #GValue
181 * A function for merging multiple values of a tag used when registering
184 typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
187 GType gst_tag_list_get_type (void);
189 /* tag registration */
192 void gst_tag_register (const gchar * name,
197 GstTagMergeFunc func);
199 void gst_tag_register_static (const gchar * name,
204 GstTagMergeFunc func);
206 /* some default merging functions */
209 void gst_tag_merge_use_first (GValue * dest, const GValue * src);
212 void gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
214 /* basic tag support */
217 gboolean gst_tag_exists (const gchar * tag);
220 GType gst_tag_get_type (const gchar * tag);
223 const gchar * gst_tag_get_nick (const gchar * tag);
226 const gchar * gst_tag_get_description (const gchar * tag);
229 GstTagFlag gst_tag_get_flag (const gchar * tag);
232 gboolean gst_tag_is_fixed (const gchar * tag);
238 * @GST_TAG_SCOPE_STREAM: tags specific to this single stream
239 * @GST_TAG_SCOPE_GLOBAL: global tags for the complete medium
241 * GstTagScope specifies if a taglist applies to the complete
242 * medium or only to one single stream.
245 GST_TAG_SCOPE_STREAM,
250 GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
253 GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_MALLOC;
256 GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
259 void gst_tag_list_set_scope (GstTagList * list, GstTagScope scope);
262 GstTagScope gst_tag_list_get_scope (const GstTagList * list);
265 gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
268 GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
271 gint gst_tag_list_n_tags (const GstTagList * list);
274 const gchar* gst_tag_list_nth_tag_name (const GstTagList * list, guint index);
277 gboolean gst_tag_list_is_empty (const GstTagList * list);
280 gboolean gst_tag_list_is_equal (const GstTagList * list1,
281 const GstTagList * list2);
283 void gst_tag_list_insert (GstTagList * into,
284 const GstTagList * from,
285 GstTagMergeMode mode);
287 GstTagList * gst_tag_list_merge (const GstTagList * list1,
288 const GstTagList * list2,
289 GstTagMergeMode mode) G_GNUC_MALLOC;
291 guint gst_tag_list_get_tag_size (const GstTagList * list,
294 void gst_tag_list_add (GstTagList * list,
295 GstTagMergeMode mode,
297 ...) G_GNUC_NULL_TERMINATED;
299 void gst_tag_list_add_values (GstTagList * list,
300 GstTagMergeMode mode,
302 ...) G_GNUC_NULL_TERMINATED;
304 void gst_tag_list_add_valist (GstTagList * list,
305 GstTagMergeMode mode,
309 void gst_tag_list_add_valist_values (GstTagList * list,
310 GstTagMergeMode mode,
314 void gst_tag_list_add_value (GstTagList * list,
315 GstTagMergeMode mode,
317 const GValue * value);
319 void gst_tag_list_remove_tag (GstTagList * list,
322 void gst_tag_list_foreach (const GstTagList * list,
323 GstTagForeachFunc func,
327 gst_tag_list_get_value_index (const GstTagList * list,
331 gboolean gst_tag_list_copy_value (GValue * dest,
332 const GstTagList * list,
335 /* simplifications (FIXME: do we want them?) */
338 gboolean gst_tag_list_get_boolean (const GstTagList * list,
342 gboolean gst_tag_list_get_boolean_index (const GstTagList * list,
347 gboolean gst_tag_list_get_int (const GstTagList * list,
351 gboolean gst_tag_list_get_int_index (const GstTagList * list,
356 gboolean gst_tag_list_get_uint (const GstTagList * list,
360 gboolean gst_tag_list_get_uint_index (const GstTagList * list,
365 gboolean gst_tag_list_get_int64 (const GstTagList * list,
369 gboolean gst_tag_list_get_int64_index (const GstTagList * list,
374 gboolean gst_tag_list_get_uint64 (const GstTagList * list,
378 gboolean gst_tag_list_get_uint64_index (const GstTagList * list,
383 gboolean gst_tag_list_get_float (const GstTagList * list,
387 gboolean gst_tag_list_get_float_index (const GstTagList * list,
392 gboolean gst_tag_list_get_double (const GstTagList * list,
396 gboolean gst_tag_list_get_double_index (const GstTagList * list,
401 gboolean gst_tag_list_get_string (const GstTagList * list,
405 gboolean gst_tag_list_get_string_index (const GstTagList * list,
410 gboolean gst_tag_list_peek_string_index (const GstTagList * list,
413 const gchar ** value);
415 gboolean gst_tag_list_get_pointer (const GstTagList * list,
419 gboolean gst_tag_list_get_pointer_index (const GstTagList * list,
424 gboolean gst_tag_list_get_date (const GstTagList * list,
428 gboolean gst_tag_list_get_date_index (const GstTagList * list,
433 gboolean gst_tag_list_get_date_time (const GstTagList * list,
435 GstDateTime ** value);
437 gboolean gst_tag_list_get_date_time_index (const GstTagList * list,
440 GstDateTime ** value);
442 gboolean gst_tag_list_get_sample (const GstTagList * list,
444 GstSample ** sample);
446 gboolean gst_tag_list_get_sample_index (const GstTagList * list,
449 GstSample ** sample);
454 * @taglist: the #GstTagList to reference
456 * Add a reference to a #GstTagList mini object.
458 * From this point on, until the caller calls gst_tag_list_unref() or
459 * gst_tag_list_make_writable(), it is guaranteed that the taglist object will
460 * not change. To use a #GstTagList object, you must always have a refcount on
461 * it -- either the one made implicitly by e.g. gst_tag_list_new(), or via
462 * taking one explicitly with this function.
464 * Returns: the same #GstTagList mini object.
466 static inline GstTagList *
467 gst_tag_list_ref (GstTagList * taglist)
469 return (GstTagList *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (taglist));
473 * gst_tag_list_unref:
474 * @taglist: a #GstTagList.
476 * Unref a #GstTagList, and and free all its memory when the refcount reaches 0.
479 gst_tag_list_unref (GstTagList * taglist)
481 gst_mini_object_unref (GST_MINI_OBJECT_CAST (taglist));
485 * gst_clear_tag_list: (skip)
486 * @taglist_ptr: a pointer to a #GstTagList reference
488 * Clears a reference to a #GstTagList.
490 * @taglist_ptr must not be %NULL.
492 * If the reference is %NULL then this function does nothing. Otherwise, the
493 * reference count of the taglist is decreased and the pointer is set to %NULL.
498 gst_clear_tag_list (GstTagList ** taglist_ptr)
500 gst_clear_mini_object (taglist_ptr);
505 * @taglist: a #GstTagList.
507 * Creates a new #GstTagList as a copy of the old @taglist. The new taglist
508 * will have a refcount of 1, owned by the caller, and will be writable as
511 * Note that this function is the semantic equivalent of a gst_tag_list_ref()
512 * followed by a gst_tag_list_make_writable(). If you only want to hold on to a
513 * reference to the data, you should use gst_tag_list_ref().
515 * When you are finished with the taglist, call gst_tag_list_unref() on it.
517 * Returns: the new #GstTagList
519 static inline GstTagList *
520 gst_tag_list_copy (const GstTagList * taglist)
522 return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)));
526 * gst_tag_list_is_writable:
527 * @taglist: a #GstTagList
529 * Tests if you can safely modify @taglist. It is only safe to modify taglist
530 * when there is only one owner of the taglist - ie, the refcount is 1.
532 #define gst_tag_list_is_writable(taglist) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))
535 * gst_tag_list_make_writable:
536 * @taglist: (transfer full): a #GstTagList
538 * Returns a writable copy of @taglist.
540 * If there is only one reference count on @taglist, the caller must be the
541 * owner, and so this function will return the taglist object unchanged. If on
542 * the other hand there is more than one reference on the object, a new taglist
543 * object will be returned (which will be a copy of @taglist). The caller's
544 * reference on @taglist will be removed, and instead the caller will own a
545 * reference to the returned object.
547 * In short, this function unrefs the taglist in the argument and refs the
548 * taglist that it returns. Don't access the argument after calling this
549 * function. See also: gst_tag_list_ref().
551 * Returns: (transfer full): a writable taglist which may or may not be the
554 #define gst_tag_list_make_writable(taglist) GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))
556 /* GStreamer core tags */
560 * commonly used title (string)
562 * The title as it should be displayed, e.g. 'The Doll House'
564 #define GST_TAG_TITLE "title"
566 * GST_TAG_TITLE_SORTNAME:
568 * commonly used title, as used for sorting (string)
570 * The title as it should be sorted, e.g. 'Doll House, The'
572 #define GST_TAG_TITLE_SORTNAME "title-sortname"
576 * person(s) responsible for the recording (string)
578 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
579 * 'The Guitar Heroes'
581 #define GST_TAG_ARTIST "artist"
583 * GST_TAG_ARTIST_SORTNAME:
585 * person(s) responsible for the recording, as used for sorting (string)
587 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
588 * 'Guitar Heroes, The'
590 #define GST_TAG_ARTIST_SORTNAME "artist-sortname"
594 * album containing this data (string)
596 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
598 #define GST_TAG_ALBUM "album"
600 * GST_TAG_ALBUM_SORTNAME:
602 * album containing this data, as used for sorting (string)
604 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
606 #define GST_TAG_ALBUM_SORTNAME "album-sortname"
608 * GST_TAG_ALBUM_ARTIST:
610 * The artist of the entire album, as it should be displayed.
612 #define GST_TAG_ALBUM_ARTIST "album-artist"
614 * GST_TAG_ALBUM_ARTIST_SORTNAME:
616 * The artist of the entire album, as it should be sorted.
618 #define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname"
622 * person(s) who composed the recording (string)
624 #define GST_TAG_COMPOSER "composer"
628 * conductor/performer refinement (string)
632 #define GST_TAG_CONDUCTOR "conductor"
636 * date the data was created (#GDate structure)
638 #define GST_TAG_DATE "date"
642 * date and time the data was created (#GstDateTime structure)
644 #define GST_TAG_DATE_TIME "datetime"
648 * genre this data belongs to (string)
650 #define GST_TAG_GENRE "genre"
654 * free text commenting the data (string)
656 #define GST_TAG_COMMENT "comment"
658 * GST_TAG_EXTENDED_COMMENT:
660 * key/value text commenting the data (string)
662 * Must be in the form of 'key=comment' or
663 * 'key[lc]=comment' where 'lc' is an ISO-639
666 * This tag is used for unknown Vorbis comment tags,
667 * unknown APE tags and certain ID3v2 comment fields.
669 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
671 * GST_TAG_TRACK_NUMBER:
673 * track number inside a collection (unsigned integer)
675 #define GST_TAG_TRACK_NUMBER "track-number"
677 * GST_TAG_TRACK_COUNT:
679 * count of tracks inside collection this track belongs to (unsigned integer)
681 #define GST_TAG_TRACK_COUNT "track-count"
683 * GST_TAG_ALBUM_VOLUME_NUMBER:
685 * disc number inside a collection (unsigned integer)
687 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
689 * GST_TAG_ALBUM_VOLUME_COUNT:
691 * count of discs inside collection this disc belongs to (unsigned integer)
693 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
697 * Origin of media as a URI (location, where the original of the file or stream
698 * is hosted) (string)
700 #define GST_TAG_LOCATION "location"
704 * Homepage for this media (i.e. artist or movie homepage) (string)
706 #define GST_TAG_HOMEPAGE "homepage"
708 * GST_TAG_DESCRIPTION:
710 * short text describing the content of the data (string)
712 #define GST_TAG_DESCRIPTION "description"
716 * version of this data (string)
718 #define GST_TAG_VERSION "version"
722 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
724 #define GST_TAG_ISRC "isrc"
726 * GST_TAG_ORGANIZATION:
728 * organization (string)
730 #define GST_TAG_ORGANIZATION "organization"
734 * copyright notice of the data (string)
736 #define GST_TAG_COPYRIGHT "copyright"
738 * GST_TAG_COPYRIGHT_URI:
740 * URI to location where copyright details can be found (string)
742 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
744 * GST_TAG_ENCODED_BY:
746 * name of the person or organisation that encoded the file. May contain a
747 * copyright message if the person or organisation also holds the copyright
750 * Note: do not use this field to describe the encoding application. Use
751 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
753 #define GST_TAG_ENCODED_BY "encoded-by"
757 * contact information (string)
759 #define GST_TAG_CONTACT "contact"
763 * license of data (string)
765 #define GST_TAG_LICENSE "license"
767 * GST_TAG_LICENSE_URI:
769 * URI to location where license details can be found (string)
771 #define GST_TAG_LICENSE_URI "license-uri"
775 * person(s) performing (string)
777 #define GST_TAG_PERFORMER "performer"
781 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
783 #define GST_TAG_DURATION "duration"
787 * codec the data is stored in (string)
789 #define GST_TAG_CODEC "codec"
791 * GST_TAG_VIDEO_CODEC:
793 * codec the video data is stored in (string)
795 #define GST_TAG_VIDEO_CODEC "video-codec"
797 * GST_TAG_AUDIO_CODEC:
799 * codec the audio data is stored in (string)
801 #define GST_TAG_AUDIO_CODEC "audio-codec"
803 * GST_TAG_SUBTITLE_CODEC:
805 * codec/format the subtitle data is stored in (string)
807 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
809 * GST_TAG_CONTAINER_FORMAT:
811 * container format the data is stored in (string)
813 #define GST_TAG_CONTAINER_FORMAT "container-format"
817 * exact or average bitrate in bits/s (unsigned integer)
819 #define GST_TAG_BITRATE "bitrate"
821 * GST_TAG_NOMINAL_BITRATE:
823 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
824 * different from this target bitrate.
826 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
828 * GST_TAG_MINIMUM_BITRATE:
830 * minimum bitrate in bits/s (unsigned integer)
832 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
834 * GST_TAG_MAXIMUM_BITRATE:
836 * maximum bitrate in bits/s (unsigned integer)
838 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
842 * serial number of track (unsigned integer)
844 #define GST_TAG_SERIAL "serial"
848 * encoder used to encode this stream (string)
850 #define GST_TAG_ENCODER "encoder"
852 * GST_TAG_ENCODER_VERSION:
854 * version of the encoder used to encode this stream (unsigned integer)
856 #define GST_TAG_ENCODER_VERSION "encoder-version"
858 * GST_TAG_TRACK_GAIN:
860 * track gain in db (double)
862 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
864 * GST_TAG_TRACK_PEAK:
866 * peak of the track (double)
868 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
870 * GST_TAG_ALBUM_GAIN:
872 * album gain in db (double)
874 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
876 * GST_TAG_ALBUM_PEAK:
878 * peak of the album (double)
880 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
882 * GST_TAG_REFERENCE_LEVEL:
884 * reference level of track and album gain values (double)
886 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
888 * GST_TAG_LANGUAGE_CODE:
890 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
892 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
893 * language name from the language code: gst_tag_get_language_name()
895 #define GST_TAG_LANGUAGE_CODE "language-code"
897 * GST_TAG_LANGUAGE_NAME:
899 * Name of the language the content is in (string)
901 * Free-form name of the language the content is in, if a language code
902 * is not available. This tag should not be set in addition to a language
903 * code. It is undefined what language or locale the language name is in.
905 #define GST_TAG_LANGUAGE_NAME "language-name"
909 * image (sample) (sample taglist should specify the content type and preferably
910 * also set "image-type" field as #GstTagImageType)
912 #define GST_TAG_IMAGE "image"
914 * GST_TAG_PREVIEW_IMAGE:
916 * image that is meant for preview purposes, e.g. small icon-sized version
917 * (sample) (sample taglist should specify the content type)
919 #define GST_TAG_PREVIEW_IMAGE "preview-image"
922 * GST_TAG_ATTACHMENT:
924 * generic file attachment (sample) (sample taglist should specify the content
925 * type and if possible set "filename" to the file name of the
928 #define GST_TAG_ATTACHMENT "attachment"
931 * GST_TAG_BEATS_PER_MINUTE:
933 * number of beats per minute in audio (double)
935 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
940 * comma separated keywords describing the content (string).
942 #define GST_TAG_KEYWORDS "keywords"
945 * GST_TAG_GEO_LOCATION_NAME:
947 * human readable descriptive location of where the media has been recorded or
948 * produced. (string).
950 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
953 * GST_TAG_GEO_LOCATION_LATITUDE:
955 * geo latitude location of where the media has been recorded or produced in
956 * degrees according to WGS84 (zero at the equator, negative values for southern
957 * latitudes) (double).
959 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
962 * GST_TAG_GEO_LOCATION_LONGITUDE:
964 * geo longitude location of where the media has been recorded or produced in
965 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
966 * negative values for western longitudes). (double).
968 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
971 * GST_TAG_GEO_LOCATION_ELEVATION:
973 * geo elevation of where the media has been recorded or produced in meters
974 * according to WGS84 (zero is average sea level) (double).
976 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
978 * GST_TAG_GEO_LOCATION_COUNTRY:
980 * The country (english name) where the media has been produced (string).
982 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
984 * GST_TAG_GEO_LOCATION_CITY:
986 * The city (english name) where the media has been produced (string).
988 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
990 * GST_TAG_GEO_LOCATION_SUBLOCATION:
992 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
993 * where the media has been produced. (e.g. the neighborhood) (string).
995 * This tag has been added as this is how it is handled/named in XMP's
996 * Iptc4xmpcore schema.
998 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
1000 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
1002 * Represents the expected error on the horizontal positioning in
1005 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
1007 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
1009 * Speed of the capturing device when performing the capture.
1010 * Represented in m/s. (double)
1012 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
1014 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
1016 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
1018 * Indicates the movement direction of the device performing the capture
1019 * of a media. It is represented as degrees in floating point representation,
1020 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
1022 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
1024 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
1026 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
1028 * Indicates the direction the device is pointing to when capturing
1029 * a media. It is represented as degrees in floating point representation,
1030 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
1032 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
1034 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
1036 * GST_TAG_SHOW_NAME:
1038 * Name of the show, used for displaying (string)
1040 #define GST_TAG_SHOW_NAME "show-name"
1042 * GST_TAG_SHOW_SORTNAME:
1044 * Name of the show, used for sorting (string)
1046 #define GST_TAG_SHOW_SORTNAME "show-sortname"
1048 * GST_TAG_SHOW_EPISODE_NUMBER:
1050 * Number of the episode within a season/show (unsigned integer)
1052 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
1054 * GST_TAG_SHOW_SEASON_NUMBER:
1056 * Number of the season of a show/series (unsigned integer)
1058 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
1062 * The lyrics of the media (string)
1064 #define GST_TAG_LYRICS "lyrics"
1066 * GST_TAG_COMPOSER_SORTNAME:
1068 * The composer's name, used for sorting (string)
1070 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
1074 * Groups together media that are related and spans multiple tracks. An
1075 * example are multiple pieces of a concerto. (string)
1077 #define GST_TAG_GROUPING "grouping"
1079 * GST_TAG_USER_RATING:
1081 * Rating attributed by a person (likely the application user).
1082 * The higher the value, the more the user likes this media
1083 * (unsigned int from 0 to 100)
1085 #define GST_TAG_USER_RATING "user-rating"
1087 * GST_TAG_DEVICE_MANUFACTURER:
1089 * Manufacturer of the device used to create the media (string)
1091 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
1093 * GST_TAG_DEVICE_MODEL:
1095 * Model of the device used to create the media (string)
1097 #define GST_TAG_DEVICE_MODEL "device-model"
1099 * GST_TAG_APPLICATION_NAME:
1101 * Name of the application used to create the media (string)
1103 #define GST_TAG_APPLICATION_NAME "application-name"
1105 * GST_TAG_APPLICATION_DATA:
1107 * Arbitrary application data (sample)
1109 * Some formats allow applications to add their own arbitrary data
1110 * into files. This data is application dependent.
1112 #define GST_TAG_APPLICATION_DATA "application-data"
1114 * GST_TAG_IMAGE_ORIENTATION:
1116 * Represents the 'Orientation' tag from EXIF. Defines how the image
1117 * should be rotated and mirrored for display. (string)
1119 * This tag has a predefined set of allowed values:
1129 * The naming is adopted according to a possible transformation to perform
1130 * on the image to fix its orientation, obviously equivalent operations will
1131 * yield the same result.
1133 * Rotations indicated by the values are in clockwise direction and
1134 * 'flip' means an horizontal mirroring.
1136 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1138 * GST_TAG_PUBLISHER:
1140 * Name of the label or publisher (string)
1144 #define GST_TAG_PUBLISHER "publisher"
1146 * GST_TAG_INTERPRETED_BY:
1148 * Information about the people behind a remix and similar
1149 * interpretations of another existing piece (string)
1153 #define GST_TAG_INTERPRETED_BY "interpreted-by"
1155 * GST_TAG_MIDI_BASE_NOTE:
1157 * <ulink url="http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name">Midi note number</ulink>
1158 * of the audio track. This is useful for sample instruments and in particular
1159 * for multi-samples.
1163 #define GST_TAG_MIDI_BASE_NOTE "midi-base-note"
1165 * GST_TAG_PRIVATE_DATA:
1167 * Any private data that may be contained in tags (sample).
1169 * It is represented by #GstSample in which #GstBuffer contains the
1170 * binary data and the sample's info #GstStructure may contain any
1171 * extra information that identifies the origin or meaning of the data.
1173 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
1174 * using this tag, in which case the GstStructure will be named
1175 * "ID3PrivateFrame" and contain a field named "owner" of type string
1176 * which contains the owner-identification string from the tag.
1180 #define GST_TAG_PRIVATE_DATA "private-data"
1182 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
1183 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
1188 #endif /* __GST_TAGLIST_H__ */