mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Implement eXIf chunk support
This commit is contained in:
16
pngtest.c
16
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;
|
||||
|
||||
Reference in New Issue
Block a user