tag: exif: Adds new geo-location tag mappings

Adds mappings for:
GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
GST_TAG_GEO_LOCATION_MOVEMENT_SPEED
GST_TAG_GEO_LOCATION_ELEVATION

Does some refactoring in the code to reduce number of parameters
passed to functions

Tests included.
This commit is contained in:
Thiago Santos 2010-05-10 14:01:46 -03:00
parent 4418dc9cdf
commit 491d025530
2 changed files with 619 additions and 161 deletions

File diff suppressed because it is too large Load diff

View file

@ -1144,6 +1144,36 @@ GST_START_TEST (test_exif_tags_serialization_deserialization)
g_value_set_double (&value, -0.75);
do_exif_tag_serialization_deserialization (GST_TAG_GEO_LOCATION_LONGITUDE,
&value);
g_value_set_double (&value, 0.0);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, &value);
g_value_set_double (&value, 180.5);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, &value);
g_value_set_double (&value, 0.12345);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, &value);
g_value_set_double (&value, 359.9);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, &value);
g_value_set_double (&value, 0.0);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_ELEVATION, &value);
g_value_set_double (&value, 321.456);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_ELEVATION, &value);
g_value_set_double (&value, -12.56);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_ELEVATION, &value);
g_value_set_double (&value, 0);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, &value);
g_value_set_double (&value, 100 / 3.6);
do_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, &value);
g_value_unset (&value);
}