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);
186 GType gst_tag_list_get_type (void);
188 /* tag registration */
189 void gst_tag_register (const gchar * name,
194 GstTagMergeFunc func);
196 void gst_tag_register_static (const gchar * name,
201 GstTagMergeFunc func);
203 /* some default merging functions */
204 void gst_tag_merge_use_first (GValue * dest, const GValue * src);
205 void gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
207 /* basic tag support */
208 gboolean gst_tag_exists (const gchar * tag);
209 GType gst_tag_get_type (const gchar * tag);
210 const gchar * gst_tag_get_nick (const gchar * tag);
211 const gchar * gst_tag_get_description (const gchar * tag);
212 GstTagFlag gst_tag_get_flag (const gchar * tag);
213 gboolean gst_tag_is_fixed (const gchar * tag);
219 * @GST_TAG_SCOPE_STREAM: tags specific to this single stream
220 * @GST_TAG_SCOPE_GLOBAL: global tags for the complete medium
222 * GstTagScope specifies if a taglist applies to the complete
223 * medium or only to one single stream.
226 GST_TAG_SCOPE_STREAM,
230 GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
231 GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_MALLOC;
232 GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
234 void gst_tag_list_set_scope (GstTagList * list, GstTagScope scope);
235 GstTagScope gst_tag_list_get_scope (const GstTagList * list);
237 gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
238 GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
240 gint gst_tag_list_n_tags (const GstTagList * list);
241 const gchar* gst_tag_list_nth_tag_name (const GstTagList * list, guint index);
242 gboolean gst_tag_list_is_empty (const GstTagList * list);
243 gboolean gst_tag_list_is_equal (const GstTagList * list1,
244 const GstTagList * list2);
245 void gst_tag_list_insert (GstTagList * into,
246 const GstTagList * from,
247 GstTagMergeMode mode);
248 GstTagList * gst_tag_list_merge (const GstTagList * list1,
249 const GstTagList * list2,
250 GstTagMergeMode mode) G_GNUC_MALLOC;
251 guint gst_tag_list_get_tag_size (const GstTagList * list,
253 void gst_tag_list_add (GstTagList * list,
254 GstTagMergeMode mode,
256 ...) G_GNUC_NULL_TERMINATED;
257 void gst_tag_list_add_values (GstTagList * list,
258 GstTagMergeMode mode,
260 ...) G_GNUC_NULL_TERMINATED;
261 void gst_tag_list_add_valist (GstTagList * list,
262 GstTagMergeMode mode,
265 void gst_tag_list_add_valist_values (GstTagList * list,
266 GstTagMergeMode mode,
269 void gst_tag_list_add_value (GstTagList * list,
270 GstTagMergeMode mode,
272 const GValue * value);
273 void gst_tag_list_remove_tag (GstTagList * list,
275 void gst_tag_list_foreach (const GstTagList * list,
276 GstTagForeachFunc func,
280 gst_tag_list_get_value_index (const GstTagList * list,
283 gboolean gst_tag_list_copy_value (GValue * dest,
284 const GstTagList * list,
287 /* simplifications (FIXME: do we want them?) */
288 gboolean gst_tag_list_get_boolean (const GstTagList * list,
291 gboolean gst_tag_list_get_boolean_index (const GstTagList * list,
295 gboolean gst_tag_list_get_int (const GstTagList * list,
298 gboolean gst_tag_list_get_int_index (const GstTagList * list,
302 gboolean gst_tag_list_get_uint (const GstTagList * list,
305 gboolean gst_tag_list_get_uint_index (const GstTagList * list,
309 gboolean gst_tag_list_get_int64 (const GstTagList * list,
312 gboolean gst_tag_list_get_int64_index (const GstTagList * list,
316 gboolean gst_tag_list_get_uint64 (const GstTagList * list,
319 gboolean gst_tag_list_get_uint64_index (const GstTagList * list,
323 gboolean gst_tag_list_get_float (const GstTagList * list,
326 gboolean gst_tag_list_get_float_index (const GstTagList * list,
330 gboolean gst_tag_list_get_double (const GstTagList * list,
333 gboolean gst_tag_list_get_double_index (const GstTagList * list,
337 gboolean gst_tag_list_get_string (const GstTagList * list,
340 gboolean gst_tag_list_get_string_index (const GstTagList * list,
344 gboolean gst_tag_list_peek_string_index (const GstTagList * list,
347 const gchar ** value);
348 gboolean gst_tag_list_get_pointer (const GstTagList * list,
351 gboolean gst_tag_list_get_pointer_index (const GstTagList * list,
355 gboolean gst_tag_list_get_date (const GstTagList * list,
358 gboolean gst_tag_list_get_date_index (const GstTagList * list,
362 gboolean gst_tag_list_get_date_time (const GstTagList * list,
364 GstDateTime ** value);
365 gboolean gst_tag_list_get_date_time_index (const GstTagList * list,
368 GstDateTime ** value);
369 gboolean gst_tag_list_get_sample (const GstTagList * list,
371 GstSample ** sample);
372 gboolean gst_tag_list_get_sample_index (const GstTagList * list,
375 GstSample ** sample);
380 * @taglist: the #GstTagList to reference
382 * Add a reference to a #GstTagList mini object.
384 * From this point on, until the caller calls gst_tag_list_unref() or
385 * gst_tag_list_make_writable(), it is guaranteed that the taglist object will
386 * not change. To use a #GstTagList object, you must always have a refcount on
387 * it -- either the one made implicitly by e.g. gst_tag_list_new(), or via
388 * taking one explicitly with this function.
390 * Returns: the same #GstTagList mini object.
392 static inline GstTagList *
393 gst_tag_list_ref (GstTagList * taglist)
395 return (GstTagList *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (taglist));
399 * gst_tag_list_unref:
400 * @taglist: a #GstTagList.
402 * Unref a #GstTagList, and and free all its memory when the refcount reaches 0.
405 gst_tag_list_unref (GstTagList * taglist)
407 gst_mini_object_unref (GST_MINI_OBJECT_CAST (taglist));
412 * @taglist: a #GstTagList.
414 * Creates a new #GstTagList as a copy of the old @taglist. The new taglist
415 * will have a refcount of 1, owned by the caller, and will be writable as
418 * Note that this function is the semantic equivalent of a gst_tag_list_ref()
419 * followed by a gst_tag_list_make_writable(). If you only want to hold on to a
420 * reference to the data, you should use gst_tag_list_ref().
422 * When you are finished with the taglist, call gst_tag_list_unref() on it.
424 * Returns: the new #GstTagList
426 static inline GstTagList *
427 gst_tag_list_copy (const GstTagList * taglist)
429 return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)));
433 * gst_tag_list_is_writable:
434 * @taglist: a #GstTagList
436 * Tests if you can safely modify @taglist. It is only safe to modify taglist
437 * when there is only one owner of the taglist - ie, the refcount is 1.
439 #define gst_tag_list_is_writable(taglist) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))
442 * gst_tag_list_make_writable:
443 * @taglist: (transfer full): a #GstTagList
445 * Returns a writable copy of @taglist.
447 * If there is only one reference count on @taglist, the caller must be the
448 * owner, and so this function will return the taglist object unchanged. If on
449 * the other hand there is more than one reference on the object, a new taglist
450 * object will be returned (which will be a copy of @taglist). The caller's
451 * reference on @taglist will be removed, and instead the caller will own a
452 * reference to the returned object.
454 * In short, this function unrefs the taglist in the argument and refs the
455 * taglist that it returns. Don't access the argument after calling this
456 * function. See also: gst_tag_list_ref().
458 * Returns: (transfer full): a writable taglist which may or may not be the
461 #define gst_tag_list_make_writable(taglist) GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))
463 /* GStreamer core tags */
467 * commonly used title (string)
469 * The title as it should be displayed, e.g. 'The Doll House'
471 #define GST_TAG_TITLE "title"
473 * GST_TAG_TITLE_SORTNAME:
475 * commonly used title, as used for sorting (string)
477 * The title as it should be sorted, e.g. 'Doll House, The'
479 #define GST_TAG_TITLE_SORTNAME "title-sortname"
483 * person(s) responsible for the recording (string)
485 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
486 * 'The Guitar Heroes'
488 #define GST_TAG_ARTIST "artist"
490 * GST_TAG_ARTIST_SORTNAME:
492 * person(s) responsible for the recording, as used for sorting (string)
494 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
495 * 'Guitar Heroes, The'
497 #define GST_TAG_ARTIST_SORTNAME "artist-sortname"
501 * album containing this data (string)
503 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
505 #define GST_TAG_ALBUM "album"
507 * GST_TAG_ALBUM_SORTNAME:
509 * album containing this data, as used for sorting (string)
511 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
513 #define GST_TAG_ALBUM_SORTNAME "album-sortname"
515 * GST_TAG_ALBUM_ARTIST:
517 * The artist of the entire album, as it should be displayed.
519 #define GST_TAG_ALBUM_ARTIST "album-artist"
521 * GST_TAG_ALBUM_ARTIST_SORTNAME:
523 * The artist of the entire album, as it should be sorted.
525 #define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname"
529 * person(s) who composed the recording (string)
531 #define GST_TAG_COMPOSER "composer"
535 * conductor/performer refinement (string)
539 #define GST_TAG_CONDUCTOR "conductor"
543 * date the data was created (#GDate structure)
545 #define GST_TAG_DATE "date"
549 * date and time the data was created (#GstDateTime structure)
551 #define GST_TAG_DATE_TIME "datetime"
555 * genre this data belongs to (string)
557 #define GST_TAG_GENRE "genre"
561 * free text commenting the data (string)
563 #define GST_TAG_COMMENT "comment"
565 * GST_TAG_EXTENDED_COMMENT:
567 * key/value text commenting the data (string)
569 * Must be in the form of 'key=comment' or
570 * 'key[lc]=comment' where 'lc' is an ISO-639
573 * This tag is used for unknown Vorbis comment tags,
574 * unknown APE tags and certain ID3v2 comment fields.
576 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
578 * GST_TAG_TRACK_NUMBER:
580 * track number inside a collection (unsigned integer)
582 #define GST_TAG_TRACK_NUMBER "track-number"
584 * GST_TAG_TRACK_COUNT:
586 * count of tracks inside collection this track belongs to (unsigned integer)
588 #define GST_TAG_TRACK_COUNT "track-count"
590 * GST_TAG_ALBUM_VOLUME_NUMBER:
592 * disc number inside a collection (unsigned integer)
594 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
596 * GST_TAG_ALBUM_VOLUME_COUNT:
598 * count of discs inside collection this disc belongs to (unsigned integer)
600 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
604 * Origin of media as a URI (location, where the original of the file or stream
605 * is hosted) (string)
607 #define GST_TAG_LOCATION "location"
611 * Homepage for this media (i.e. artist or movie homepage) (string)
613 #define GST_TAG_HOMEPAGE "homepage"
615 * GST_TAG_DESCRIPTION:
617 * short text describing the content of the data (string)
619 #define GST_TAG_DESCRIPTION "description"
623 * version of this data (string)
625 #define GST_TAG_VERSION "version"
629 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
631 #define GST_TAG_ISRC "isrc"
633 * GST_TAG_ORGANIZATION:
635 * organization (string)
637 #define GST_TAG_ORGANIZATION "organization"
641 * copyright notice of the data (string)
643 #define GST_TAG_COPYRIGHT "copyright"
645 * GST_TAG_COPYRIGHT_URI:
647 * URI to location where copyright details can be found (string)
649 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
651 * GST_TAG_ENCODED_BY:
653 * name of the person or organisation that encoded the file. May contain a
654 * copyright message if the person or organisation also holds the copyright
657 * Note: do not use this field to describe the encoding application. Use
658 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
660 #define GST_TAG_ENCODED_BY "encoded-by"
664 * contact information (string)
666 #define GST_TAG_CONTACT "contact"
670 * license of data (string)
672 #define GST_TAG_LICENSE "license"
674 * GST_TAG_LICENSE_URI:
676 * URI to location where license details can be found (string)
678 #define GST_TAG_LICENSE_URI "license-uri"
682 * person(s) performing (string)
684 #define GST_TAG_PERFORMER "performer"
688 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
690 #define GST_TAG_DURATION "duration"
694 * codec the data is stored in (string)
696 #define GST_TAG_CODEC "codec"
698 * GST_TAG_VIDEO_CODEC:
700 * codec the video data is stored in (string)
702 #define GST_TAG_VIDEO_CODEC "video-codec"
704 * GST_TAG_AUDIO_CODEC:
706 * codec the audio data is stored in (string)
708 #define GST_TAG_AUDIO_CODEC "audio-codec"
710 * GST_TAG_SUBTITLE_CODEC:
712 * codec/format the subtitle data is stored in (string)
714 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
716 * GST_TAG_CONTAINER_FORMAT:
718 * container format the data is stored in (string)
720 #define GST_TAG_CONTAINER_FORMAT "container-format"
721 #ifdef TIZEN_PROFILE_TV
723 * GST_TAG_AUDIO_DUALMONO:
725 * dual/mono can available in audio stream (boolean)
727 #define GST_TAG_AUDIO_DUALMONO "audio-dualmono"
732 * exact or average bitrate in bits/s (unsigned integer)
734 #define GST_TAG_BITRATE "bitrate"
736 * GST_TAG_NOMINAL_BITRATE:
738 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
739 * different from this target bitrate.
741 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
743 * GST_TAG_MINIMUM_BITRATE:
745 * minimum bitrate in bits/s (unsigned integer)
747 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
749 * GST_TAG_MAXIMUM_BITRATE:
751 * maximum bitrate in bits/s (unsigned integer)
753 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
757 * serial number of track (unsigned integer)
759 #define GST_TAG_SERIAL "serial"
763 * encoder used to encode this stream (string)
765 #define GST_TAG_ENCODER "encoder"
767 * GST_TAG_ENCODER_VERSION:
769 * version of the encoder used to encode this stream (unsigned integer)
771 #define GST_TAG_ENCODER_VERSION "encoder-version"
773 * GST_TAG_TRACK_GAIN:
775 * track gain in db (double)
777 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
779 * GST_TAG_TRACK_PEAK:
781 * peak of the track (double)
783 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
785 * GST_TAG_ALBUM_GAIN:
787 * album gain in db (double)
789 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
791 * GST_TAG_ALBUM_PEAK:
793 * peak of the album (double)
795 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
797 * GST_TAG_REFERENCE_LEVEL:
799 * reference level of track and album gain values (double)
801 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
803 * GST_TAG_LANGUAGE_CODE:
805 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
807 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
808 * language name from the language code: gst_tag_get_language_name()
810 #define GST_TAG_LANGUAGE_CODE "language-code"
812 * GST_TAG_LANGUAGE_NAME:
814 * Name of the language the content is in (string)
816 * Free-form name of the language the content is in, if a language code
817 * is not available. This tag should not be set in addition to a language
818 * code. It is undefined what language or locale the language name is in.
820 #define GST_TAG_LANGUAGE_NAME "language-name"
824 * image (sample) (sample taglist should specify the content type and preferably
825 * also set "image-type" field as #GstTagImageType)
827 #define GST_TAG_IMAGE "image"
829 * GST_TAG_PREVIEW_IMAGE:
831 * image that is meant for preview purposes, e.g. small icon-sized version
832 * (sample) (sample taglist should specify the content type)
834 #define GST_TAG_PREVIEW_IMAGE "preview-image"
837 * GST_TAG_ATTACHMENT:
839 * generic file attachment (sample) (sample taglist should specify the content
840 * type and if possible set "filename" to the file name of the
843 #define GST_TAG_ATTACHMENT "attachment"
846 * GST_TAG_BEATS_PER_MINUTE:
848 * number of beats per minute in audio (double)
850 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
855 * comma separated keywords describing the content (string).
857 #define GST_TAG_KEYWORDS "keywords"
860 * GST_TAG_GEO_LOCATION_NAME:
862 * human readable descriptive location of where the media has been recorded or
863 * produced. (string).
865 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
868 * GST_TAG_GEO_LOCATION_LATITUDE:
870 * geo latitude location of where the media has been recorded or produced in
871 * degrees according to WGS84 (zero at the equator, negative values for southern
872 * latitudes) (double).
874 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
877 * GST_TAG_GEO_LOCATION_LONGITUDE:
879 * geo longitude location of where the media has been recorded or produced in
880 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
881 * negative values for western longitudes). (double).
883 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
886 * GST_TAG_GEO_LOCATION_ELEVATION:
888 * geo elevation of where the media has been recorded or produced in meters
889 * according to WGS84 (zero is average sea level) (double).
891 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
893 * GST_TAG_GEO_LOCATION_COUNTRY:
895 * The country (english name) where the media has been produced (string).
897 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
899 * GST_TAG_GEO_LOCATION_CITY:
901 * The city (english name) where the media has been produced (string).
903 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
905 * GST_TAG_GEO_LOCATION_SUBLOCATION:
907 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
908 * where the media has been produced. (e.g. the neighborhood) (string).
910 * This tag has been added as this is how it is handled/named in XMP's
911 * Iptc4xmpcore schema.
913 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
915 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
917 * Represents the expected error on the horizontal positioning in
920 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
922 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
924 * Speed of the capturing device when performing the capture.
925 * Represented in m/s. (double)
927 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
929 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
931 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
933 * Indicates the movement direction of the device performing the capture
934 * of a media. It is represented as degrees in floating point representation,
935 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
937 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
939 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
941 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
943 * Indicates the direction the device is pointing to when capturing
944 * a media. It is represented as degrees in floating point representation,
945 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
947 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
949 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
953 * Name of the show, used for displaying (string)
955 #define GST_TAG_SHOW_NAME "show-name"
957 * GST_TAG_SHOW_SORTNAME:
959 * Name of the show, used for sorting (string)
961 #define GST_TAG_SHOW_SORTNAME "show-sortname"
963 * GST_TAG_SHOW_EPISODE_NUMBER:
965 * Number of the episode within a season/show (unsigned integer)
967 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
969 * GST_TAG_SHOW_SEASON_NUMBER:
971 * Number of the season of a show/series (unsigned integer)
973 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
977 * The lyrics of the media (string)
979 #define GST_TAG_LYRICS "lyrics"
981 * GST_TAG_COMPOSER_SORTNAME:
983 * The composer's name, used for sorting (string)
985 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
989 * Groups together media that are related and spans multiple tracks. An
990 * example are multiple pieces of a concerto. (string)
992 #define GST_TAG_GROUPING "grouping"
994 * GST_TAG_USER_RATING:
996 * Rating attributed by a person (likely the application user).
997 * The higher the value, the more the user likes this media
998 * (unsigned int from 0 to 100)
1000 #define GST_TAG_USER_RATING "user-rating"
1002 * GST_TAG_DEVICE_MANUFACTURER:
1004 * Manufacturer of the device used to create the media (string)
1006 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
1008 * GST_TAG_DEVICE_MODEL:
1010 * Model of the device used to create the media (string)
1012 #define GST_TAG_DEVICE_MODEL "device-model"
1014 * GST_TAG_APPLICATION_NAME:
1016 * Name of the application used to create the media (string)
1018 #define GST_TAG_APPLICATION_NAME "application-name"
1020 * GST_TAG_APPLICATION_DATA:
1022 * Arbitrary application data (sample)
1024 * Some formats allow applications to add their own arbitrary data
1025 * into files. This data is application dependent.
1027 #define GST_TAG_APPLICATION_DATA "application-data"
1029 * GST_TAG_IMAGE_ORIENTATION:
1031 * Represents the 'Orientation' tag from EXIF. Defines how the image
1032 * should be rotated and mirrored for display. (string)
1034 * This tag has a predefined set of allowed values:
1044 * The naming is adopted according to a possible transformation to perform
1045 * on the image to fix its orientation, obviously equivalent operations will
1046 * yield the same result.
1048 * Rotations indicated by the values are in clockwise direction and
1049 * 'flip' means an horizontal mirroring.
1051 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1053 * GST_TAG_PUBLISHER:
1055 * Name of the label or publisher (string)
1059 #define GST_TAG_PUBLISHER "publisher"
1061 * GST_TAG_INTERPRETED_BY:
1063 * Information about the people behind a remix and similar
1064 * interpretations of another existing piece (string)
1068 #define GST_TAG_INTERPRETED_BY "interpreted-by"
1070 * GST_TAG_MIDI_BASE_NOTE:
1072 * <ulink url="http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name">Midi note number</ulink>
1073 * of the audio track. This is useful for sample instruments and in particular
1074 * for multi-samples.
1078 #define GST_TAG_MIDI_BASE_NOTE "midi-base-note"
1080 * GST_TAG_PRIVATE_DATA:
1082 * Any private data that may be contained in tags (sample).
1084 * It is represented by #GstSample in which #GstBuffer contains the
1085 * binary data and the sample's info #GstStructure may contain any
1086 * extra information that identifies the origin or meaning of the data.
1088 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
1089 * using this tag, in which case the GstStructure will be named
1090 * "ID3PrivateFrame" and contain a field named "owner" of type string
1091 * which contains the owner-identification string from the tag.
1095 #define GST_TAG_PRIVATE_DATA "private-data"
1097 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
1098 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
1103 #endif /* __GST_TAGLIST_H__ */