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_EXPORT 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));
486 * @taglist: a #GstTagList.
488 * Creates a new #GstTagList as a copy of the old @taglist. The new taglist
489 * will have a refcount of 1, owned by the caller, and will be writable as
492 * Note that this function is the semantic equivalent of a gst_tag_list_ref()
493 * followed by a gst_tag_list_make_writable(). If you only want to hold on to a
494 * reference to the data, you should use gst_tag_list_ref().
496 * When you are finished with the taglist, call gst_tag_list_unref() on it.
498 * Returns: the new #GstTagList
500 static inline GstTagList *
501 gst_tag_list_copy (const GstTagList * taglist)
503 return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)));
507 * gst_tag_list_is_writable:
508 * @taglist: a #GstTagList
510 * Tests if you can safely modify @taglist. It is only safe to modify taglist
511 * when there is only one owner of the taglist - ie, the refcount is 1.
513 #define gst_tag_list_is_writable(taglist) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))
516 * gst_tag_list_make_writable:
517 * @taglist: (transfer full): a #GstTagList
519 * Returns a writable copy of @taglist.
521 * If there is only one reference count on @taglist, the caller must be the
522 * owner, and so this function will return the taglist object unchanged. If on
523 * the other hand there is more than one reference on the object, a new taglist
524 * object will be returned (which will be a copy of @taglist). The caller's
525 * reference on @taglist will be removed, and instead the caller will own a
526 * reference to the returned object.
528 * In short, this function unrefs the taglist in the argument and refs the
529 * taglist that it returns. Don't access the argument after calling this
530 * function. See also: gst_tag_list_ref().
532 * Returns: (transfer full): a writable taglist which may or may not be the
535 #define gst_tag_list_make_writable(taglist) GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))
537 /* GStreamer core tags */
541 * commonly used title (string)
543 * The title as it should be displayed, e.g. 'The Doll House'
545 #define GST_TAG_TITLE "title"
547 * GST_TAG_TITLE_SORTNAME:
549 * commonly used title, as used for sorting (string)
551 * The title as it should be sorted, e.g. 'Doll House, The'
553 #define GST_TAG_TITLE_SORTNAME "title-sortname"
557 * person(s) responsible for the recording (string)
559 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
560 * 'The Guitar Heroes'
562 #define GST_TAG_ARTIST "artist"
564 * GST_TAG_ARTIST_SORTNAME:
566 * person(s) responsible for the recording, as used for sorting (string)
568 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
569 * 'Guitar Heroes, The'
571 #define GST_TAG_ARTIST_SORTNAME "artist-sortname"
575 * album containing this data (string)
577 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
579 #define GST_TAG_ALBUM "album"
581 * GST_TAG_ALBUM_SORTNAME:
583 * album containing this data, as used for sorting (string)
585 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
587 #define GST_TAG_ALBUM_SORTNAME "album-sortname"
589 * GST_TAG_ALBUM_ARTIST:
591 * The artist of the entire album, as it should be displayed.
593 #define GST_TAG_ALBUM_ARTIST "album-artist"
595 * GST_TAG_ALBUM_ARTIST_SORTNAME:
597 * The artist of the entire album, as it should be sorted.
599 #define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname"
603 * person(s) who composed the recording (string)
605 #define GST_TAG_COMPOSER "composer"
609 * conductor/performer refinement (string)
613 #define GST_TAG_CONDUCTOR "conductor"
617 * date the data was created (#GDate structure)
619 #define GST_TAG_DATE "date"
623 * date and time the data was created (#GstDateTime structure)
625 #define GST_TAG_DATE_TIME "datetime"
629 * genre this data belongs to (string)
631 #define GST_TAG_GENRE "genre"
635 * free text commenting the data (string)
637 #define GST_TAG_COMMENT "comment"
639 * GST_TAG_EXTENDED_COMMENT:
641 * key/value text commenting the data (string)
643 * Must be in the form of 'key=comment' or
644 * 'key[lc]=comment' where 'lc' is an ISO-639
647 * This tag is used for unknown Vorbis comment tags,
648 * unknown APE tags and certain ID3v2 comment fields.
650 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
652 * GST_TAG_TRACK_NUMBER:
654 * track number inside a collection (unsigned integer)
656 #define GST_TAG_TRACK_NUMBER "track-number"
658 * GST_TAG_TRACK_COUNT:
660 * count of tracks inside collection this track belongs to (unsigned integer)
662 #define GST_TAG_TRACK_COUNT "track-count"
664 * GST_TAG_ALBUM_VOLUME_NUMBER:
666 * disc number inside a collection (unsigned integer)
668 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
670 * GST_TAG_ALBUM_VOLUME_COUNT:
672 * count of discs inside collection this disc belongs to (unsigned integer)
674 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
678 * Origin of media as a URI (location, where the original of the file or stream
679 * is hosted) (string)
681 #define GST_TAG_LOCATION "location"
685 * Homepage for this media (i.e. artist or movie homepage) (string)
687 #define GST_TAG_HOMEPAGE "homepage"
689 * GST_TAG_DESCRIPTION:
691 * short text describing the content of the data (string)
693 #define GST_TAG_DESCRIPTION "description"
697 * version of this data (string)
699 #define GST_TAG_VERSION "version"
703 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
705 #define GST_TAG_ISRC "isrc"
707 * GST_TAG_ORGANIZATION:
709 * organization (string)
711 #define GST_TAG_ORGANIZATION "organization"
715 * copyright notice of the data (string)
717 #define GST_TAG_COPYRIGHT "copyright"
719 * GST_TAG_COPYRIGHT_URI:
721 * URI to location where copyright details can be found (string)
723 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
725 * GST_TAG_ENCODED_BY:
727 * name of the person or organisation that encoded the file. May contain a
728 * copyright message if the person or organisation also holds the copyright
731 * Note: do not use this field to describe the encoding application. Use
732 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
734 #define GST_TAG_ENCODED_BY "encoded-by"
738 * contact information (string)
740 #define GST_TAG_CONTACT "contact"
744 * license of data (string)
746 #define GST_TAG_LICENSE "license"
748 * GST_TAG_LICENSE_URI:
750 * URI to location where license details can be found (string)
752 #define GST_TAG_LICENSE_URI "license-uri"
756 * person(s) performing (string)
758 #define GST_TAG_PERFORMER "performer"
762 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
764 #define GST_TAG_DURATION "duration"
768 * codec the data is stored in (string)
770 #define GST_TAG_CODEC "codec"
772 * GST_TAG_VIDEO_CODEC:
774 * codec the video data is stored in (string)
776 #define GST_TAG_VIDEO_CODEC "video-codec"
778 * GST_TAG_AUDIO_CODEC:
780 * codec the audio data is stored in (string)
782 #define GST_TAG_AUDIO_CODEC "audio-codec"
784 * GST_TAG_SUBTITLE_CODEC:
786 * codec/format the subtitle data is stored in (string)
788 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
790 * GST_TAG_CONTAINER_FORMAT:
792 * container format the data is stored in (string)
794 #define GST_TAG_CONTAINER_FORMAT "container-format"
798 * exact or average bitrate in bits/s (unsigned integer)
800 #define GST_TAG_BITRATE "bitrate"
802 * GST_TAG_NOMINAL_BITRATE:
804 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
805 * different from this target bitrate.
807 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
809 * GST_TAG_MINIMUM_BITRATE:
811 * minimum bitrate in bits/s (unsigned integer)
813 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
815 * GST_TAG_MAXIMUM_BITRATE:
817 * maximum bitrate in bits/s (unsigned integer)
819 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
823 * serial number of track (unsigned integer)
825 #define GST_TAG_SERIAL "serial"
829 * encoder used to encode this stream (string)
831 #define GST_TAG_ENCODER "encoder"
833 * GST_TAG_ENCODER_VERSION:
835 * version of the encoder used to encode this stream (unsigned integer)
837 #define GST_TAG_ENCODER_VERSION "encoder-version"
839 * GST_TAG_TRACK_GAIN:
841 * track gain in db (double)
843 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
845 * GST_TAG_TRACK_PEAK:
847 * peak of the track (double)
849 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
851 * GST_TAG_ALBUM_GAIN:
853 * album gain in db (double)
855 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
857 * GST_TAG_ALBUM_PEAK:
859 * peak of the album (double)
861 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
863 * GST_TAG_REFERENCE_LEVEL:
865 * reference level of track and album gain values (double)
867 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
869 * GST_TAG_LANGUAGE_CODE:
871 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
873 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
874 * language name from the language code: gst_tag_get_language_name()
876 #define GST_TAG_LANGUAGE_CODE "language-code"
878 * GST_TAG_LANGUAGE_NAME:
880 * Name of the language the content is in (string)
882 * Free-form name of the language the content is in, if a language code
883 * is not available. This tag should not be set in addition to a language
884 * code. It is undefined what language or locale the language name is in.
886 #define GST_TAG_LANGUAGE_NAME "language-name"
890 * image (sample) (sample taglist should specify the content type and preferably
891 * also set "image-type" field as #GstTagImageType)
893 #define GST_TAG_IMAGE "image"
895 * GST_TAG_PREVIEW_IMAGE:
897 * image that is meant for preview purposes, e.g. small icon-sized version
898 * (sample) (sample taglist should specify the content type)
900 #define GST_TAG_PREVIEW_IMAGE "preview-image"
903 * GST_TAG_ATTACHMENT:
905 * generic file attachment (sample) (sample taglist should specify the content
906 * type and if possible set "filename" to the file name of the
909 #define GST_TAG_ATTACHMENT "attachment"
912 * GST_TAG_BEATS_PER_MINUTE:
914 * number of beats per minute in audio (double)
916 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
921 * comma separated keywords describing the content (string).
923 #define GST_TAG_KEYWORDS "keywords"
926 * GST_TAG_GEO_LOCATION_NAME:
928 * human readable descriptive location of where the media has been recorded or
929 * produced. (string).
931 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
934 * GST_TAG_GEO_LOCATION_LATITUDE:
936 * geo latitude location of where the media has been recorded or produced in
937 * degrees according to WGS84 (zero at the equator, negative values for southern
938 * latitudes) (double).
940 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
943 * GST_TAG_GEO_LOCATION_LONGITUDE:
945 * geo longitude location of where the media has been recorded or produced in
946 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
947 * negative values for western longitudes). (double).
949 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
952 * GST_TAG_GEO_LOCATION_ELEVATION:
954 * geo elevation of where the media has been recorded or produced in meters
955 * according to WGS84 (zero is average sea level) (double).
957 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
959 * GST_TAG_GEO_LOCATION_COUNTRY:
961 * The country (english name) where the media has been produced (string).
963 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
965 * GST_TAG_GEO_LOCATION_CITY:
967 * The city (english name) where the media has been produced (string).
969 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
971 * GST_TAG_GEO_LOCATION_SUBLOCATION:
973 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
974 * where the media has been produced. (e.g. the neighborhood) (string).
976 * This tag has been added as this is how it is handled/named in XMP's
977 * Iptc4xmpcore schema.
979 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
981 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
983 * Represents the expected error on the horizontal positioning in
986 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
988 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
990 * Speed of the capturing device when performing the capture.
991 * Represented in m/s. (double)
993 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
995 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
997 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
999 * Indicates the movement direction of the device performing the capture
1000 * of a media. It is represented as degrees in floating point representation,
1001 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
1003 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
1005 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
1007 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
1009 * Indicates the direction the device is pointing to when capturing
1010 * a media. It is represented as degrees in floating point representation,
1011 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
1013 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
1015 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
1017 * GST_TAG_SHOW_NAME:
1019 * Name of the show, used for displaying (string)
1021 #define GST_TAG_SHOW_NAME "show-name"
1023 * GST_TAG_SHOW_SORTNAME:
1025 * Name of the show, used for sorting (string)
1027 #define GST_TAG_SHOW_SORTNAME "show-sortname"
1029 * GST_TAG_SHOW_EPISODE_NUMBER:
1031 * Number of the episode within a season/show (unsigned integer)
1033 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
1035 * GST_TAG_SHOW_SEASON_NUMBER:
1037 * Number of the season of a show/series (unsigned integer)
1039 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
1043 * The lyrics of the media (string)
1045 #define GST_TAG_LYRICS "lyrics"
1047 * GST_TAG_COMPOSER_SORTNAME:
1049 * The composer's name, used for sorting (string)
1051 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
1055 * Groups together media that are related and spans multiple tracks. An
1056 * example are multiple pieces of a concerto. (string)
1058 #define GST_TAG_GROUPING "grouping"
1060 * GST_TAG_USER_RATING:
1062 * Rating attributed by a person (likely the application user).
1063 * The higher the value, the more the user likes this media
1064 * (unsigned int from 0 to 100)
1066 #define GST_TAG_USER_RATING "user-rating"
1068 * GST_TAG_DEVICE_MANUFACTURER:
1070 * Manufacturer of the device used to create the media (string)
1072 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
1074 * GST_TAG_DEVICE_MODEL:
1076 * Model of the device used to create the media (string)
1078 #define GST_TAG_DEVICE_MODEL "device-model"
1080 * GST_TAG_APPLICATION_NAME:
1082 * Name of the application used to create the media (string)
1084 #define GST_TAG_APPLICATION_NAME "application-name"
1086 * GST_TAG_APPLICATION_DATA:
1088 * Arbitrary application data (sample)
1090 * Some formats allow applications to add their own arbitrary data
1091 * into files. This data is application dependent.
1093 #define GST_TAG_APPLICATION_DATA "application-data"
1095 * GST_TAG_IMAGE_ORIENTATION:
1097 * Represents the 'Orientation' tag from EXIF. Defines how the image
1098 * should be rotated and mirrored for display. (string)
1100 * This tag has a predefined set of allowed values:
1110 * The naming is adopted according to a possible transformation to perform
1111 * on the image to fix its orientation, obviously equivalent operations will
1112 * yield the same result.
1114 * Rotations indicated by the values are in clockwise direction and
1115 * 'flip' means an horizontal mirroring.
1117 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1119 * GST_TAG_PUBLISHER:
1121 * Name of the label or publisher (string)
1125 #define GST_TAG_PUBLISHER "publisher"
1127 * GST_TAG_INTERPRETED_BY:
1129 * Information about the people behind a remix and similar
1130 * interpretations of another existing piece (string)
1134 #define GST_TAG_INTERPRETED_BY "interpreted-by"
1136 * GST_TAG_MIDI_BASE_NOTE:
1138 * <ulink url="http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name">Midi note number</ulink>
1139 * of the audio track. This is useful for sample instruments and in particular
1140 * for multi-samples.
1144 #define GST_TAG_MIDI_BASE_NOTE "midi-base-note"
1146 * GST_TAG_PRIVATE_DATA:
1148 * Any private data that may be contained in tags (sample).
1150 * It is represented by #GstSample in which #GstBuffer contains the
1151 * binary data and the sample's info #GstStructure may contain any
1152 * extra information that identifies the origin or meaning of the data.
1154 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
1155 * using this tag, in which case the GstStructure will be named
1156 * "ID3PrivateFrame" and contain a field named "owner" of type string
1157 * which contains the owner-identification string from the tag.
1161 #define GST_TAG_PRIVATE_DATA "private-data"
1163 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
1164 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
1169 #endif /* __GST_TAGLIST_H__ */