tests: jifmux: Adds tests for new ppi tags

Adds tests to check if libexif can read our
EXIF_TAG_X/Y_RESOLUTION tags.
This commit is contained in:
Thiago Santos 2010-09-07 10:26:29 -03:00
parent 141f728169
commit 4cdcba665c

View file

@ -519,6 +519,9 @@ static const GstExifTagMatch tag_map[] = {
{GST_TAG_DEVICE_MODEL, EXIF_TAG_MODEL, EXIF_TYPE_ASCII, NULL},
{GST_TAG_IMAGE_ORIENTATION, EXIF_TAG_ORIENTATION, EXIF_TYPE_SHORT,
compare_image_orientation},
{GST_TAG_IMAGE_HORIZONTAL_PPI, EXIF_TAG_X_RESOLUTION, EXIF_TYPE_RATIONAL,
NULL},
{GST_TAG_IMAGE_VERTICAL_PPI, EXIF_TAG_Y_RESOLUTION, EXIF_TYPE_RATIONAL, NULL},
{GST_TAG_APPLICATION_NAME, EXIF_TAG_SOFTWARE, EXIF_TYPE_ASCII,
NULL},
{GST_TAG_DATE_TIME, EXIF_TAG_DATE_TIME, EXIF_TYPE_ASCII,
@ -948,7 +951,9 @@ GST_START_TEST (test_jifmux_tags)
GST_TAG_GEO_LOCATION_ELEVATION, 300.85,
GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, 3.6,
GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, 35.4,
GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, 12.345, NULL);
GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, 12.345,
GST_TAG_IMAGE_HORIZONTAL_PPI, 300.0,
GST_TAG_IMAGE_VERTICAL_PPI, 96.0, NULL);
gst_date_time_unref (datetime);
gst_buffer_unref (buffer);
generate_jif_file_with_tags_from_taglist (taglist, tmpfile);