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
This commit is contained in:
Thiago Santos 2010-04-29 21:57:15 -03:00
parent 2cc0bcb798
commit d020295ae0
3 changed files with 54 additions and 0 deletions

View 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

View 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"),

View file

@ -822,6 +822,41 @@ 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_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:
*