summaryrefslogtreecommitdiff
path: root/libtiff/tif_print.c
diff options
context:
space:
mode:
authorfwarmerdam <fwarmerdam>2004-10-01 02:30:29 +0000
committerfwarmerdam <fwarmerdam>2004-10-01 02:30:29 +0000
commit76f6d157da70a21b6817bac45d4a14d6080c9050 (patch)
tree46be39d40c73fdd071d19fd28b909ffe9ad49ce7 /libtiff/tif_print.c
parentd278c7134e49956f2b42967e8d37a7c064166e96 (diff)
downloadlibtiff-76f6d157da70a21b6817bac45d4a14d6080c9050.tar.gz
Changed type of XMLPacket to BYTE instead of UNDEFINED to match Adobe XMP
specification. Added custom printer for XMLPacket data to tif_print.c.
Diffstat (limited to 'libtiff/tif_print.c')
-rw-r--r--libtiff/tif_print.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c
index 904f94e5..d86dee3c 100644
--- a/libtiff/tif_print.c
+++ b/libtiff/tif_print.c
@@ -1,4 +1,4 @@
-/* $Id: tif_print.c,v 1.17 2004-09-21 10:18:22 dron Exp $ */
+/* $Id: tif_print.c,v 1.18 2004-10-01 02:30:29 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -478,6 +478,13 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags)
fprintf(fd, " %5lu", (long) td->td_subifd[i]);
fputc('\n', fd);
}
+ if (TIFFFieldSet(tif,FIELD_XMLPACKET)) {
+ fprintf(fd, " XMLPacket (XMP Metadata):\n" );
+ for( i=0; i < td->td_xmlpacketLength; i++ )
+ fputc( ((char *)td->td_xmlpacketData)[i], fd );
+ fprintf( fd, "\n" );
+ }
+
/*
** Custom tag support.
*/