[gst-cvs] gstreamer: tag: Adds GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Thu Sep 23 06:39:51 PDT 2010


Module: gstreamer
Branch: master
Commit: 7e1d9c8c0ddaad063d2cb1868589e1472bc3d51f
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=7e1d9c8c0ddaad063d2cb1868589e1472bc3d51f

Author: Thiago Santos <thiago.sousa.santos at collabora.co.uk>
Date:   Thu Sep 23 10:08:05 2010 -0300

tag: Adds GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR

Adds a new tag to indicate the error in horizontal positioning
in meters. This is one of the available 'gps error' fields in
exif, for example.

API: GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR

---

 docs/gst/gstreamer-sections.txt |    1 +
 gst/gsttaglist.c                |    4 ++++
 gst/gsttaglist.h                |    9 +++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt
index 75acea5..9cadb0d 100644
--- a/docs/gst/gstreamer-sections.txt
+++ b/docs/gst/gstreamer-sections.txt
@@ -2238,6 +2238,7 @@ GST_TAG_GEO_LOCATION_ELEVATION
 GST_TAG_GEO_LOCATION_CITY
 GST_TAG_GEO_LOCATION_COUNTRY
 GST_TAG_GEO_LOCATION_SUBLOCATION
+GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR
 GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
 GST_TAG_GEO_LOCATION_MOVEMENT_SPEED
 GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index 8ec69e6..fa16480 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -298,6 +298,10 @@ _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_HORIZONTAL_ERROR, GST_TAG_FLAG_META,
+      G_TYPE_DOUBLE, _("geo location horizontal error"),
+      _("expected error of the horizontal positioning measures (in meters)"),
+      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 "
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index 19ea349..c05aeb1 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -843,6 +843,15 @@ gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
  */
 #define GST_TAG_GEO_LOCATION_SUBLOCATION             "geo-location-sublocation"
 /**
+ * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
+ *
+ * Represents the expected error on the horizontal positioning in
+ * meters (double).
+ *
+ * Since: 0.10.31
+ */
+#define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR   "geo-location-horizontal-error"
+/**
  * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
  *
  * Speed of the capturing device when performing the capture.





More information about the Gstreamer-commits mailing list