From d020295ae0ed79fe7db3628a5e0ee2158274cfa5 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 29 Apr 2010 21:57:15 -0300 Subject: [PATCH] tags: Adds geo location direction tags 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 | 3 +++ gst/gsttaglist.c | 16 ++++++++++++++++ gst/gsttaglist.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 5ea48c4..e4dac41 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -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 diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 8571267..644b387 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -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"), diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 75aa6f7..1d0971c 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -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) -- 2.7.4