summaryrefslogtreecommitdiff
path: root/pngtest.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-07-13 11:19:53 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-07-13 11:22:48 -0500
commit68cb0aaee3de6371b81a4613476d9b33e43e95b1 (patch)
tree86f4b7f941d11a18922dbc5321abd77ad14f4e98 /pngtest.c
parent40943eb67aaf423bfd76dc9ce1e6ad98ba00a72e (diff)
[libpng16] Implement eXIf chunk support
Diffstat (limited to 'pngtest.c')
-rw-r--r--pngtest.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/pngtest.c b/pngtest.c
index 01e4143ea..77e25e124 100644
--- a/pngtest.c
+++ b/pngtest.c
@@ -1192,6 +1192,14 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
}
}
#endif
+#ifdef PNG_eXIf_SUPPORTED
+ {
+ png_bytep exif;
+
+ if (png_get_eXIf(read_ptr, read_info_ptr, &exif) != 0)
+ png_set_eXIf(write_ptr, write_info_ptr, exif);
+ }
+#endif
#ifdef PNG_hIST_SUPPORTED
{
png_uint_16p hist;
@@ -1530,6 +1538,14 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
}
}
#endif
+#ifdef PNG_eXIf_SUPPORTED
+ {
+ png_bytep exif;
+
+ if (png_get_eXIf(read_ptr, end_info_ptr, &exif) != 0)
+ png_set_eXIf(write_ptr, write_end_info_ptr, exif);
+ }
+#endif
#ifdef PNG_tIME_SUPPORTED
{
png_timep mod_time;