Commit 10f0319d authored by Thiago Santos's avatar Thiago Santos
Browse files

tags: exif: Add mapping for _HORIZONTAL_ERROR

Maps GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR to the
GPSHPositionError tag in exif.

Tests included.
parent 24b523e1
......@@ -261,6 +261,7 @@ EXIF_DESERIALIZATION_FUNC (add_to_pending_tags);
#define EXIF_TAG_GPS_TRACK 0xF
#define EXIF_TAG_GPS_IMAGE_DIRECTION_REF 0x10
#define EXIF_TAG_GPS_IMAGE_DIRECTION 0x11
#define EXIF_TAG_GPS_HORIZONTAL_POSITIONING_ERROR 0x1F
#define EXIF_TAG_IMAGE_DESCRIPTION 0x10E
#define EXIF_TAG_MAKE 0x10F
#define EXIF_TAG_MODEL 0x110
......@@ -411,6 +412,9 @@ static const GstExifTagMatch tag_map_gps[] = {
{GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, EXIF_TAG_GPS_IMAGE_DIRECTION,
EXIF_TYPE_RATIONAL, EXIF_TAG_GPS_IMAGE_DIRECTION_REF,
serialize_geo_direction, deserialize_geo_direction},
{GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR,
EXIF_TAG_GPS_HORIZONTAL_POSITIONING_ERROR,
EXIF_TYPE_RATIONAL, 0, NULL, NULL},
{NULL, 0, 0, 0, NULL, NULL}
};
......
......@@ -1433,6 +1433,13 @@ GST_START_TEST (test_exif_tags_serialization_deserialization)
do_simple_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, &value);
g_value_set_double (&value, 0);
do_simple_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR, &value);
g_value_set_double (&value, 50.25);
do_simple_exif_tag_serialization_deserialization
(GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR, &value);
g_value_set_double (&value, 0);
do_simple_exif_tag_serialization_deserialization
(GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO, &value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment