From 7e1d9c8c0ddaad063d2cb1868589e1472bc3d51f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 23 Sep 2010 10:08:05 -0300 Subject: [PATCH] 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(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 75acea5037..9cadb0d520 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 8ec69e6f85..fa1648024f 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 19ea3498ac..c05aeb1681 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -842,6 +842,15 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, * Since: 0.10.29 */ #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: *