From f563ac57f8155cea2449297647e31244540fdd29 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 9 Mar 2010 20:38:47 -0300 Subject: 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 --- docs/gst/gstreamer-sections.txt | 3 +++ gst/gsttaglist.c | 12 ++++++++++++ gst/gsttaglist.h | 28 ++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 9c53f5e567..b846173b7e 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2174,6 +2174,9 @@ GST_TAG_GEO_LOCATION_NAME GST_TAG_GEO_LOCATION_LATITUDE GST_TAG_GEO_LOCATION_LONGITUDE GST_TAG_GEO_LOCATION_ELEVATION +GST_TAG_GEO_LOCATION_CITY +GST_TAG_GEO_LOCATION_COUNTRY +GST_TAG_GEO_LOCATION_SUBLOCATION GST_TAG_SHOW_NAME GST_TAG_SHOW_SORTNAME GST_TAG_SHOW_EPISODE_NUMBER 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 @@ -790,6 +790,34 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, * Since: 0.10.21 */ #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 * -- cgit v1.2.3