tags: Adds new geo location tags
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 9 Mar 2010 23:38:47 +0000 (20:38 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 11 Mar 2010 18:31:06 +0000 (15:31 -0300)
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
gst/gsttaglist.c
gst/gsttaglist.h

index 9c53f5e..b846173 100644 (file)
@@ -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
index c8bebd8..9cc0abf 100644 (file)
@@ -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"),
index 285aadd..8341ced 100644 (file)
@@ -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)