tests: jifmux: Adds tests for new ppi tags
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 7 Sep 2010 13:26:29 +0000 (10:26 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 7 Sep 2010 13:26:29 +0000 (10:26 -0300)
Adds tests to check if libexif can read our
EXIF_TAG_X/Y_RESOLUTION tags.

tests/check/elements/jifmux.c

index d772c9a..9987825 100644 (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);