Blame html/man/TIFFWriteDirectory.3tiff.html

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
<html>
Packit Service 2594b8
<head>
Packit Service 2594b8
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit Service 2594b8
<meta name="Content-Style" content="text/css">
Packit Service 2594b8
<title>TIFFWriteDirectory</title>
Packit Service 2594b8
</head>
Packit Service 2594b8
<body>
Packit Service 2594b8
Packit Service 2594b8

TIFFWriteDirectory

Packit Service 2594b8
NAME
Packit Service 2594b8
SYNOPSIS
Packit Service 2594b8
DESCRIPTION
Packit Service 2594b8
RETURN VALUES
Packit Service 2594b8
DIAGNOSTICS
Packit Service 2594b8
SEE ALSO
Packit Service 2594b8
Packit Service 2594b8

Packit Service 2594b8
Packit Service 2594b8

NAME

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

TIFFWriteDirectory, TIFFRewriteDirectory,

Packit Service 2594b8
TIFFCheckpointDirectory − write the current directory
Packit Service 2594b8
in an open <small>TIFF</small> file

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

SYNOPSIS

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

#include <tiffio.h>

Packit Service 2594b8
Packit Service 2594b8

int TIFFWriteDirectory(TIFF *tif)

Packit Service 2594b8
int TIFFRewriteDirectory(TIFF *tif)
Packit Service 2594b8
int TIFFCheckpointDirectory(TIFF *tif)

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

DESCRIPTION

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

TIFFWriteDirectory will write the contents of the

Packit Service 2594b8
current directory to the file and setup to create a new
Packit Service 2594b8
subfile in the same file. Applications only need to call
Packit Service 2594b8
TIFFWriteDirectory when writing multiple subfiles to
Packit Service 2594b8
a single <small>TIFF</small> file. TIFFWriteDirectory
Packit Service 2594b8
is automatically called by TIFFClose and
Packit Service 2594b8
TIFFFlush to write a modified directory if the file
Packit Service 2594b8
is open for writing.

Packit Service 2594b8
Packit Service 2594b8

The TIFFRewriteDirectory function operates

Packit Service 2594b8
similarly to TIFFWriteDirectory, but can be called
Packit Service 2594b8
with directories previously read or written that already
Packit Service 2594b8
have an established location in the file. It will rewrite
Packit Service 2594b8
the directory, but instead of place it at it’s old
Packit Service 2594b8
location (as TIFFWriteDirectory would) it will place
Packit Service 2594b8
them at the end of the file, correcting the pointer from the
Packit Service 2594b8
preceeding directory or file header to point to it’s
Packit Service 2594b8
new location. This is particularly important in cases where
Packit Service 2594b8
the size of the directory and pointed to data has grown, so
Packit Service 2594b8
it won’t fit in the space available at the old
Packit Service 2594b8
location.

Packit Service 2594b8
Packit Service 2594b8

The TIFFCheckpointDirectory writes the current

Packit Service 2594b8
state of the tiff directory into the file to make what is
Packit Service 2594b8
currently in the file readable. Unlike
Packit Service 2594b8
TIFFWriteDirectory, TIFFCheckpointDirectory does not
Packit Service 2594b8
free up the directory data structures in memory, so they can
Packit Service 2594b8
be updated (as strips/tiles are written) and written again.
Packit Service 2594b8
Reading such a partial file you will at worst get a tiff
Packit Service 2594b8
read error for the first strip/tile encountered that is
Packit Service 2594b8
incomplete, but you will at least get all the valid data in
Packit Service 2594b8
the file before that. When the file is complete, just use
Packit Service 2594b8
TIFFWriteDirectory as usual to finish it off
Packit Service 2594b8
cleanly.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

RETURN VALUES

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

1 is returned when the contents are successfully written

Packit Service 2594b8
to the file. Otherwise, 0 is returned if an error was
Packit Service 2594b8
encountered when writing the directory contents.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

DIAGNOSTICS

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

All error messages are directed to the

Packit Service 2594b8
TIFFError(3TIFF) routine.

Packit Service 2594b8
Packit Service 2594b8

Error post-encoding before directory write. Before

Packit Service 2594b8
writing the contents of the current directory, any pending
Packit Service 2594b8
data are flushed. This message indicates that an error
Packit Service 2594b8
occurred while doing this.

Packit Service 2594b8
Packit Service 2594b8

Error flushing data before directory write. Before

Packit Service 2594b8
writing the contents of the current directory, any pending
Packit Service 2594b8
data are flushed. This message indicates that an error
Packit Service 2594b8
occurred while doing this.

Packit Service 2594b8
Packit Service 2594b8

Cannot write directory, out of space. There was

Packit Service 2594b8
not enough space to allocate a temporary area for the
Packit Service 2594b8
directory that was to be written.

Packit Service 2594b8
Packit Service 2594b8

Error writing directory count. A write error

Packit Service 2594b8
occurred when writing the count of fields in the
Packit Service 2594b8
directory.

Packit Service 2594b8
Packit Service 2594b8

Error writing directory contents. A write error

Packit Service 2594b8
occurred when writing the directory fields.

Packit Service 2594b8
Packit Service 2594b8

Error writing directory link. A write error

Packit Service 2594b8
occurred when writing the link to the next directory.

Packit Service 2594b8
Packit Service 2594b8

Error writing data for field "%s". A

Packit Service 2594b8
write error occurred when writing indirect data for the
Packit Service 2594b8
specified field.

Packit Service 2594b8
Packit Service 2594b8

Error writing TIFF header. A write error occurred

Packit Service 2594b8
when re-writing header at the front of the file.

Packit Service 2594b8
Packit Service 2594b8

Error fetching directory count. A read error

Packit Service 2594b8
occurred when fetching the directory count field for a
Packit Service 2594b8
previous directory. This can occur when setting up a link to
Packit Service 2594b8
the directory that is being written.

Packit Service 2594b8
Packit Service 2594b8

Error fetching directory link. A read error

Packit Service 2594b8
occurred when fetching the directory link field for a
Packit Service 2594b8
previous directory. This can occur when setting up a link to
Packit Service 2594b8
the directory that is being written.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

SEE ALSO

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

TIFFOpen(3TIFF), TIFFError(3TIFF),

Packit Service 2594b8
TIFFReadDirectory(3TIFF),
Packit Service 2594b8
TIFFSetDirectory(3TIFF), libtiff(3TIFF)

Packit Service 2594b8
Packit Service 2594b8

Libtiff library home page:

Packit Service 2594b8
http://www.simplesystems.org/libtiff/

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Packit Service 2594b8
</body>
Packit Service 2594b8
</html>