summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-03-09 20:38:47 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-03-11 15:31:06 -0300
commitf563ac57f8155cea2449297647e31244540fdd29 (patch)
tree2b847cb9c5c2299fe57aae27c1c8772957223d08
parent8fa19a360c6f980e7f6e152ffdcfdbc01063a9d8 (diff)
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
-rw-r--r--docs/gst/gstreamer-sections.txt3
-rw-r--r--gst/gsttaglist.c12
-rw-r--r--gst/gsttaglist.h28
3 files changed, 43 insertions, 0 deletions
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
@@ -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)