mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
4418dc9cdf
commit
491d025530
2 changed files with 619 additions and 161 deletions
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue