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 * date the data was created (#GDate structure)
537 #define GST_TAG_DATE "date"
541 * date and time the data was created (#GstDateTime structure)
543 #define GST_TAG_DATE_TIME "datetime"
547 * genre this data belongs to (string)
549 #define GST_TAG_GENRE "genre"
553 * free text commenting the data (string)
555 #define GST_TAG_COMMENT "comment"
557 * GST_TAG_EXTENDED_COMMENT:
559 * key/value text commenting the data (string)
561 * Must be in the form of 'key=comment' or
562 * 'key[lc]=comment' where 'lc' is an ISO-639
565 * This tag is used for unknown Vorbis comment tags,
566 * unknown APE tags and certain ID3v2 comment fields.
568 #define GST_TAG_EXTENDED_COMMENT "extended-comment"
570 * GST_TAG_TRACK_NUMBER:
572 * track number inside a collection (unsigned integer)
574 #define GST_TAG_TRACK_NUMBER "track-number"
576 * GST_TAG_TRACK_COUNT:
578 * count of tracks inside collection this track belongs to (unsigned integer)
580 #define GST_TAG_TRACK_COUNT "track-count"
582 * GST_TAG_ALBUM_VOLUME_NUMBER:
584 * disc number inside a collection (unsigned integer)
586 #define GST_TAG_ALBUM_VOLUME_NUMBER "album-disc-number"
588 * GST_TAG_ALBUM_VOLUME_COUNT:
590 * count of discs inside collection this disc belongs to (unsigned integer)
592 #define GST_TAG_ALBUM_VOLUME_COUNT "album-disc-count"
596 * Origin of media as a URI (location, where the original of the file or stream
597 * is hosted) (string)
599 #define GST_TAG_LOCATION "location"
603 * Homepage for this media (i.e. artist or movie homepage) (string)
605 #define GST_TAG_HOMEPAGE "homepage"
607 * GST_TAG_DESCRIPTION:
609 * short text describing the content of the data (string)
611 #define GST_TAG_DESCRIPTION "description"
615 * version of this data (string)
617 #define GST_TAG_VERSION "version"
621 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
623 #define GST_TAG_ISRC "isrc"
625 * GST_TAG_ORGANIZATION:
627 * organization (string)
629 #define GST_TAG_ORGANIZATION "organization"
633 * copyright notice of the data (string)
635 #define GST_TAG_COPYRIGHT "copyright"
637 * GST_TAG_COPYRIGHT_URI:
639 * URI to location where copyright details can be found (string)
641 #define GST_TAG_COPYRIGHT_URI "copyright-uri"
643 * GST_TAG_ENCODED_BY:
645 * name of the person or organisation that encoded the file. May contain a
646 * copyright message if the person or organisation also holds the copyright
649 * Note: do not use this field to describe the encoding application. Use
650 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
652 #define GST_TAG_ENCODED_BY "encoded-by"
656 * contact information (string)
658 #define GST_TAG_CONTACT "contact"
662 * license of data (string)
664 #define GST_TAG_LICENSE "license"
666 * GST_TAG_LICENSE_URI:
668 * URI to location where license details can be found (string)
670 #define GST_TAG_LICENSE_URI "license-uri"
674 * person(s) performing (string)
676 #define GST_TAG_PERFORMER "performer"
680 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
682 #define GST_TAG_DURATION "duration"
686 * codec the data is stored in (string)
688 #define GST_TAG_CODEC "codec"
690 * GST_TAG_VIDEO_CODEC:
692 * codec the video data is stored in (string)
694 #define GST_TAG_VIDEO_CODEC "video-codec"
696 * GST_TAG_AUDIO_CODEC:
698 * codec the audio data is stored in (string)
700 #define GST_TAG_AUDIO_CODEC "audio-codec"
702 * GST_TAG_SUBTITLE_CODEC:
704 * codec/format the subtitle data is stored in (string)
706 #define GST_TAG_SUBTITLE_CODEC "subtitle-codec"
708 * GST_TAG_CONTAINER_FORMAT:
710 * container format the data is stored in (string)
712 #define GST_TAG_CONTAINER_FORMAT "container-format"
716 * exact or average bitrate in bits/s (unsigned integer)
718 #define GST_TAG_BITRATE "bitrate"
720 * GST_TAG_NOMINAL_BITRATE:
722 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
723 * different from this target bitrate.
725 #define GST_TAG_NOMINAL_BITRATE "nominal-bitrate"
727 * GST_TAG_MINIMUM_BITRATE:
729 * minimum bitrate in bits/s (unsigned integer)
731 #define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
733 * GST_TAG_MAXIMUM_BITRATE:
735 * maximum bitrate in bits/s (unsigned integer)
737 #define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
741 * serial number of track (unsigned integer)
743 #define GST_TAG_SERIAL "serial"
747 * encoder used to encode this stream (string)
749 #define GST_TAG_ENCODER "encoder"
751 * GST_TAG_ENCODER_VERSION:
753 * version of the encoder used to encode this stream (unsigned integer)
755 #define GST_TAG_ENCODER_VERSION "encoder-version"
757 * GST_TAG_TRACK_GAIN:
759 * track gain in db (double)
761 #define GST_TAG_TRACK_GAIN "replaygain-track-gain"
763 * GST_TAG_TRACK_PEAK:
765 * peak of the track (double)
767 #define GST_TAG_TRACK_PEAK "replaygain-track-peak"
769 * GST_TAG_ALBUM_GAIN:
771 * album gain in db (double)
773 #define GST_TAG_ALBUM_GAIN "replaygain-album-gain"
775 * GST_TAG_ALBUM_PEAK:
777 * peak of the album (double)
779 #define GST_TAG_ALBUM_PEAK "replaygain-album-peak"
781 * GST_TAG_REFERENCE_LEVEL:
783 * reference level of track and album gain values (double)
785 #define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level"
787 * GST_TAG_LANGUAGE_CODE:
789 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
791 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
792 * language name from the language code: gst_tag_get_language_name()
794 #define GST_TAG_LANGUAGE_CODE "language-code"
796 * GST_TAG_LANGUAGE_NAME:
798 * Name of the language the content is in (string)
800 * Free-form name of the language the content is in, if a language code
801 * is not available. This tag should not be set in addition to a language
802 * code. It is undefined what language or locale the language name is in.
804 #define GST_TAG_LANGUAGE_NAME "language-name"
808 * image (sample) (sample taglist should specify the content type and preferably
809 * also set "image-type" field as #GstTagImageType)
811 #define GST_TAG_IMAGE "image"
813 * GST_TAG_PREVIEW_IMAGE:
815 * image that is meant for preview purposes, e.g. small icon-sized version
816 * (sample) (sample taglist should specify the content type)
818 #define GST_TAG_PREVIEW_IMAGE "preview-image"
821 * GST_TAG_ATTACHMENT:
823 * generic file attachment (sample) (sample taglist should specify the content
824 * type and if possible set "filename" to the file name of the
827 #define GST_TAG_ATTACHMENT "attachment"
830 * GST_TAG_BEATS_PER_MINUTE:
832 * number of beats per minute in audio (double)
834 #define GST_TAG_BEATS_PER_MINUTE "beats-per-minute"
839 * comma separated keywords describing the content (string).
841 #define GST_TAG_KEYWORDS "keywords"
844 * GST_TAG_GEO_LOCATION_NAME:
846 * human readable descriptive location of where the media has been recorded or
847 * produced. (string).
849 #define GST_TAG_GEO_LOCATION_NAME "geo-location-name"
852 * GST_TAG_GEO_LOCATION_LATITUDE:
854 * geo latitude location of where the media has been recorded or produced in
855 * degrees according to WGS84 (zero at the equator, negative values for southern
856 * latitudes) (double).
858 #define GST_TAG_GEO_LOCATION_LATITUDE "geo-location-latitude"
861 * GST_TAG_GEO_LOCATION_LONGITUDE:
863 * geo longitude location of where the media has been recorded or produced in
864 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
865 * negative values for western longitudes). (double).
867 #define GST_TAG_GEO_LOCATION_LONGITUDE "geo-location-longitude"
870 * GST_TAG_GEO_LOCATION_ELEVATION:
872 * geo elevation of where the media has been recorded or produced in meters
873 * according to WGS84 (zero is average sea level) (double).
875 #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
877 * GST_TAG_GEO_LOCATION_COUNTRY:
879 * The country (english name) where the media has been produced (string).
881 #define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
883 * GST_TAG_GEO_LOCATION_CITY:
885 * The city (english name) where the media has been produced (string).
887 #define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
889 * GST_TAG_GEO_LOCATION_SUBLOCATION:
891 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
892 * where the media has been produced. (e.g. the neighborhood) (string).
894 * This tag has been added as this is how it is handled/named in XMP's
895 * Iptc4xmpcore schema.
897 #define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
899 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
901 * Represents the expected error on the horizontal positioning in
904 #define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR "geo-location-horizontal-error"
906 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
908 * Speed of the capturing device when performing the capture.
909 * Represented in m/s. (double)
911 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
913 #define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED "geo-location-movement-speed"
915 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
917 * Indicates the movement direction of the device performing the capture
918 * of a media. It is represented as degrees in floating point representation,
919 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
921 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
923 #define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
925 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
927 * Indicates the direction the device is pointing to when capturing
928 * a media. It is represented as degrees in floating point representation,
929 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
931 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
933 #define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION "geo-location-capture-direction"
937 * Name of the show, used for displaying (string)
939 #define GST_TAG_SHOW_NAME "show-name"
941 * GST_TAG_SHOW_SORTNAME:
943 * Name of the show, used for sorting (string)
945 #define GST_TAG_SHOW_SORTNAME "show-sortname"
947 * GST_TAG_SHOW_EPISODE_NUMBER:
949 * Number of the episode within a season/show (unsigned integer)
951 #define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
953 * GST_TAG_SHOW_SEASON_NUMBER:
955 * Number of the season of a show/series (unsigned integer)
957 #define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
961 * The lyrics of the media (string)
963 #define GST_TAG_LYRICS "lyrics"
965 * GST_TAG_COMPOSER_SORTNAME:
967 * The composer's name, used for sorting (string)
969 #define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
973 * Groups together media that are related and spans multiple tracks. An
974 * example are multiple pieces of a concerto. (string)
976 #define GST_TAG_GROUPING "grouping"
978 * GST_TAG_USER_RATING:
980 * Rating attributed by a person (likely the application user).
981 * The higher the value, the more the user likes this media
982 * (unsigned int from 0 to 100)
984 #define GST_TAG_USER_RATING "user-rating"
986 * GST_TAG_DEVICE_MANUFACTURER:
988 * Manufacturer of the device used to create the media (string)
990 #define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer"
992 * GST_TAG_DEVICE_MODEL:
994 * Model of the device used to create the media (string)
996 #define GST_TAG_DEVICE_MODEL "device-model"
998 * GST_TAG_APPLICATION_NAME:
1000 * Name of the application used to create the media (string)
1002 #define GST_TAG_APPLICATION_NAME "application-name"
1004 * GST_TAG_APPLICATION_DATA:
1006 * Arbitrary application data (sample)
1008 * Some formats allow applications to add their own arbitrary data
1009 * into files. This data is application dependent.
1011 #define GST_TAG_APPLICATION_DATA "application-data"
1013 * GST_TAG_IMAGE_ORIENTATION:
1015 * Represents the 'Orientation' tag from EXIF. Defines how the image
1016 * should be rotated and mirrored for display. (string)
1018 * This tag has a predefined set of allowed values:
1028 * The naming is adopted according to a possible transformation to perform
1029 * on the image to fix its orientation, obviously equivalent operations will
1030 * yield the same result.
1032 * Rotations indicated by the values are in clockwise direction and
1033 * 'flip' means an horizontal mirroring.
1035 #define GST_TAG_IMAGE_ORIENTATION "image-orientation"
1037 * GST_TAG_PUBLISHER:
1039 * Name of the label or publisher (string)
1043 #define GST_TAG_PUBLISHER "publisher"
1045 * GST_TAG_INTERPRETED_BY:
1047 * Information about the people behind a remix and similar
1048 * interpretations of another existing piece (string)
1052 #define GST_TAG_INTERPRETED_BY "interpreted-by"
1054 * GST_TAG_MIDI_BASE_NOTE:
1056 * <ulink url="http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name">Midi note number</ulink>
1057 * of the audio track. This is useful for sample instruments and in particular
1058 * for multi-samples.
1062 #define GST_TAG_MIDI_BASE_NOTE "midi-base-note"
1064 * GST_TAG_PRIVATE_DATA:
1066 * Any private data that may be contained in tags (sample).
1068 * It is represented by #GstSample in which #GstBuffer contains the
1069 * binary data and the sample's info #GstStructure may contain any
1070 * extra information that identifies the origin or meaning of the data.
1072 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
1073 * using this tag, in which case the GstStructure will be named
1074 * "ID3PrivateFrame" and contain a field named "owner" of type string
1075 * which contains the owner-identification string from the tag.
1079 #define GST_TAG_PRIVATE_DATA "private-data"
1081 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
1082 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
1087 #endif /* __GST_TAGLIST_H__ */