tags: Adds geo location direction tags
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 30 Apr 2010 00:57:15 +0000 (21:57 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 3 May 2010 12:50:09 +0000 (09:50 -0300)
Adds 3 new geo location tags involving direction and
movement of capture. Those are:

API: GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
API: GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
API: GST_TAG_GEO_LOCATION_MOVEMENT_SPEED

Fixes #617223

docs/gst/gstreamer-sections.txt
gst/gsttaglist.c
gst/gsttaglist.h

index 5ea48c4..e4dac41 100644 (file)
@@ -2183,6 +2183,9 @@ GST_TAG_GEO_LOCATION_ELEVATION
 GST_TAG_GEO_LOCATION_CITY
 GST_TAG_GEO_LOCATION_COUNTRY
 GST_TAG_GEO_LOCATION_SUBLOCATION
+GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
+GST_TAG_GEO_LOCATION_MOVEMENT_SPEED
+GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
 GST_TAG_SHOW_NAME
 GST_TAG_SHOW_SORTNAME
 GST_TAG_SHOW_EPISODE_NUMBER
index 8571267..644b387 100644 (file)
@@ -294,6 +294,22 @@ _gst_tag_initialize (void)
       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_GEO_LOCATION_MOVEMENT_SPEED, GST_TAG_FLAG_META,
+      G_TYPE_DOUBLE, _("geo location movement speed"),
+      _("movement speed of the capturing device while performing the capture "
+          "in m/s"), NULL);
+  gst_tag_register (GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, GST_TAG_FLAG_META,
+      G_TYPE_DOUBLE, _("geo location movement direction"),
+      _("indicates the movement direction of the device performing the capture"
+          " of a media. It is represented as degrees in floating point "
+          "representation, 0 means the geographic north, and increases "
+          "clockwise"), NULL);
+  gst_tag_register (GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, GST_TAG_FLAG_META,
+      G_TYPE_DOUBLE, _("geo location capture direction"),
+      _("indicates the direction the device is pointing to when capturing "
+          " a media. It is represented as degrees in floating point "
+          " representation, 0 means the geographic north, and increases "
+          "clockwise"), 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 75aa6f7..1d0971c 100644 (file)
@@ -823,6 +823,41 @@ gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
  */
 #define GST_TAG_GEO_LOCATION_SUBLOCATION             "geo-location-sublocation"
 /**
+ * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
+ *
+ * Speed of the capturing device when performing the capture.
+ * Represented in m/s. (double)
+ *
+ * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
+ *
+ * Since 0.10.30
+ */
+#define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED       "geo-location-movement-speed"
+/**
+ * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
+ *
+ * Indicates the movement direction of the device performing the capture
+ * of a media. It is represented as degrees in floating point representation,
+ * 0 means the geographic north, and increases clockwise (double from 0 to 360)
+ *
+ * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
+ *
+ * Since: 0.10.30
+ */
+#define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
+/**
+ * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
+ *
+ * Indicates the direction the device is pointing to when capturing
+ * a media. It is represented as degrees in floating point representation,
+ * 0 means the geographic north, and increases clockwise (double from 0 to 360)
+ *
+ * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
+ *
+ * Since: 0.10.30
+ */
+#define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION  "geo-location-capture-direction"
+/**
  * GST_TAG_SHOW_NAME:
  *
  * Name of the show, used for displaying (string)