summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfriesen <bfriesen>2012-05-19 23:15:07 +0000
committerbfriesen <bfriesen>2012-05-19 23:15:07 +0000
commitb3edee3ed49a246659b944b34257e9769f2ddf1e (patch)
treed5eaa0b8528e8cef9e1a02e56dc5c0da50d07e17
parentc8271d7ae4160fceb54e62a018e2d8d0f7503cd4 (diff)
downloadlibtiff-b3edee3ed49a246659b944b34257e9769f2ddf1e.tar.gz
* man/TIFFGetField.3tiff: Correct the 'count' field type in the
example for how to retreive the value of unsupported tags.
-rw-r--r--ChangeLog5
-rw-r--r--man/TIFFGetField.3tiff15
2 files changed, 11 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 22f6aea0..0059f127 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+
+ * man/TIFFGetField.3tiff: Correct the 'count' field type in the
+ example for how to retreive the value of unsupported tags.
+
2012-03-30 Frank Warmerdam <warmerdam@google.com>
* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
diff --git a/man/TIFFGetField.3tiff b/man/TIFFGetField.3tiff
index 42c5165f..99f4a51f 100644
--- a/man/TIFFGetField.3tiff
+++ b/man/TIFFGetField.3tiff
@@ -1,4 +1,4 @@
-.\" $Id: TIFFGetField.3tiff,v 1.4.2.1 2010-05-06 02:54:43 olivier Exp $
+.\" $Id: TIFFGetField.3tiff,v 1.4.2.2 2012-05-19 23:15:07 bfriesen Exp $
.\"
.\" Copyright (c) 1988-1997 Sam Leffler
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
@@ -188,14 +188,16 @@ is one, then a single array is returned; otherwise three arrays are returned.
Annex B.3 "Embedding ICC Profiles in TIFF Files" (available at
http://www.color.org) for an explanation.
.SH AUTOREGISTERED TAGS
-If you can't find the tag in the table above that means this is unsupported
-tag. But you still be able to read it's value if you know the data type of
+If you can't find the tag in the table above that means this is an unsupported
+tag and is not directly supported by
+.BR libtiff(3TIFF)
+library. You will still be able to read it's value if you know the data type of
that tag. For example, if you want to read the LONG value from the tag 33424
and ASCII string from the tag 36867 you can use the following code:
.PP
.RS
.nf
-uint16 count;
+uint32 count;
void *data;
TIFFGetField(tiff, 33424, &count, &data);
@@ -205,11 +207,6 @@ printf("Tag %d: %s, count %d\n", 36867, (char *)data, count);
.fi
.RE
.PP
-
-
-is not supported by
-.BR libtiff(3TIFF),
-library
.SH RETURN VALUES
1 is returned if the tag is defined in the current directory; otherwise a 0 is
returned.