tags: Adds new geo location tags

Adds new tags GST_TAG_GEO_LOCATION_COUNTRY,
GST_TAG_GEO_LOCATION_CITY and GST_TAG_GEO_LOCATION_SUBLOCATION.

API: GST_TAG_GEO_LOCATION_COUNTRY
API: GST_TAG_GEO_LOCATION_CITY
API: GST_TAG_GEO_LOCATION_SUBLOCATION

Fixes 
This commit is contained in:
Thiago Santos 2010-03-09 20:38:47 -03:00
parent 8fa19a360c
commit f563ac57f8
3 changed files with 43 additions and 0 deletions

View file

@ -2174,6 +2174,9 @@ GST_TAG_GEO_LOCATION_NAME
GST_TAG_GEO_LOCATION_LATITUDE
GST_TAG_GEO_LOCATION_LONGITUDE
GST_TAG_GEO_LOCATION_ELEVATION
GST_TAG_GEO_LOCATION_CITY
GST_TAG_GEO_LOCATION_COUNTRY
GST_TAG_GEO_LOCATION_SUBLOCATION
GST_TAG_SHOW_NAME
GST_TAG_SHOW_SORTNAME
GST_TAG_SHOW_EPISODE_NUMBER

View file

@ -282,6 +282,18 @@ _gst_tag_initialize (void)
G_TYPE_DOUBLE, _("geo location elevation"),
_("geo elevation of where the media has been recorded or produced in "
"meters according to WGS84 (zero is average sea level)"), NULL);
gst_tag_register (GST_TAG_GEO_LOCATION_COUNTRY, GST_TAG_FLAG_META,
G_TYPE_STRING, _("geo location country"),
_("country (english name) where the media has been recorded "
"or produced"), NULL);
gst_tag_register (GST_TAG_GEO_LOCATION_CITY, GST_TAG_FLAG_META,
G_TYPE_STRING, _("geo location city"),
_("city (english name) where the media has been recorded "
"or produced"), NULL);
gst_tag_register (GST_TAG_GEO_LOCATION_SUBLOCATION, GST_TAG_FLAG_META,
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_SHOW_NAME, GST_TAG_FLAG_META, G_TYPE_STRING,
/* TRANSLATORS: 'show name' = 'TV/radio/podcast show name' here */
_("show name"),

View file

@ -790,6 +790,34 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
* Since: 0.10.21
*/
#define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
/**
* GST_TAG_GEO_LOCATION_COUNTRY:
*
* The country (english name) where the media has been produced (string).
*
* Since: 0.10.29
*/
#define GST_TAG_GEO_LOCATION_COUNTRY "geo-location-country"
/**
* GST_TAG_GEO_LOCATION_CITY:
*
* The city (english name) where the media has been produced (string).
*
* Since: 0.10.29
*/
#define GST_TAG_GEO_LOCATION_CITY "geo-location-city"
/**
* GST_TAG_GEO_LOCATION_SUBLOCATION:
*
* A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
* where the media has been produced. (e.g. the neighborhood) (string).
*
* This tag has been added as this is how it is handled/named in XMP's
* Iptc4xmpcore schema.
*
* Since: 0.10.29
*/
#define GST_TAG_GEO_LOCATION_SUBLOCATION "geo-location-sublocation"
/**
* GST_TAG_SHOW_NAME
*