diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-03-09 20:38:47 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-03-11 15:31:06 -0300 |
commit | f563ac57f8155cea2449297647e31244540fdd29 (patch) | |
tree | 2b847cb9c5c2299fe57aae27c1c8772957223d08 /gst | |
parent | 8fa19a360c6f980e7f6e152ffdcfdbc01063a9d8 (diff) | |
download | gstreamer-f563ac57f8155cea2449297647e31244540fdd29.tar.gz |
tags: Adds new geo location tags
Adds new tags GST_TAG_GEO_LOCATION_COUNTRY,
GST_TAG_GEO_LOCATION_CITY and GST_TAG_GEO_LOCATION_SUBLOCATION.
API: GST_TAG_GEO_LOCATION_COUNTRY
API: GST_TAG_GEO_LOCATION_CITY
API: GST_TAG_GEO_LOCATION_SUBLOCATION
Fixes #612410
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gsttaglist.c | 12 | ||||
-rw-r--r-- | gst/gsttaglist.h | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index c8bebd8943..9cc0abf628 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -282,6 +282,18 @@ _gst_tag_initialize (void) G_TYPE_DOUBLE, _("geo location elevation"), _("geo elevation of where the media has been recorded or produced in " "meters according to WGS84 (zero is average sea level)"), NULL); + gst_tag_register (GST_TAG_GEO_LOCATION_COUNTRY, GST_TAG_FLAG_META, + G_TYPE_STRING, _("geo location country"), + _("country (english name) where the media has been recorded " + "or produced"), NULL); + gst_tag_register (GST_TAG_GEO_LOCATION_CITY, GST_TAG_FLAG_META, + G_TYPE_STRING, _("geo location city"), + _("city (english name) where the media has been recorded " + "or produced"), NULL); + gst_tag_register (GST_TAG_GEO_LOCATION_SUBLOCATION, GST_TAG_FLAG_META, + G_TYPE_STRING, _("geo location sublocation"), + _("a location whithin a city where the media has been produced " + "or created (e.g. the neighborhood)"), NULL); gst_tag_register (GST_TAG_SHOW_NAME, GST_TAG_FLAG_META, G_TYPE_STRING, /* TRANSLATORS: 'show name' = 'TV/radio/podcast show name' here */ _("show name"), diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 285aadd1be..8341cedf23 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -791,6 +791,34 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, */ #define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation" /** + * GST_TAG_GEO_LOCATION_COUNTRY: + * + * The country (english name) where the media has been produced (string). + * + * Since: 0.10.29 + */ +#define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country" +/** + * GST_TAG_GEO_LOCATION_CITY: + * + * The city (english name) where the media has been produced (string). + * + * Since: 0.10.29 + */ +#define GST_TAG_GEO_LOCATION_CITY "geo-location-city" +/** + * GST_TAG_GEO_LOCATION_SUBLOCATION: + * + * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better + * where the media has been produced. (e.g. the neighborhood) (string). + * + * This tag has been added as this is how it is handled/named in XMP's + * Iptc4xmpcore schema. + * + * Since: 0.10.29 + */ +#define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation" +/** * GST_TAG_SHOW_NAME * * Name of the show, used for displaying (string) |