Blame thirdparty/LibTIFF/tiff-4.0.3/html/man/TIFFSetDirectory.3tiff.html

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a
<meta content="groff -Thtml, see www.gnu.org" name="generator">
kusano 7d535a
<meta content="text/css" name="Content-Style">
kusano 7d535a
<title>TIFFSetDirectory</title>
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFSetDirectory

kusano 7d535a
NAME
kusano 7d535a
SYNOPSIS
kusano 7d535a
DESCRIPTION
kusano 7d535a
RETURN VALUES
kusano 7d535a
DIAGNOSTICS
kusano 7d535a
SEE ALSO
kusano 7d535a
kusano 7d535a

kusano 7d535a
kusano 7d535a

NAME

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFSetDirectory, TIFFSetSubDirectory − set the

kusano 7d535a
current directory for an open <small>TIFF</small> file

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

SYNOPSIS

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

#include <tiffio.h>

kusano 7d535a
kusano 7d535a

int TIFFSetDirectory(TIFF *tif,

kusano 7d535a
tdir_t dirnum)
kusano 7d535a
int TIFFSetSubDirectory(TIFF *tif, uint32
kusano 7d535a
diroff)

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

DESCRIPTION

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFSetDirectory changes the current directory and

kusano 7d535a
reads its contents with TIFFReadDirectory. The
kusano 7d535a
parameter dirnum specifies the subfile/directory as
kusano 7d535a
an integer number, with the first directory numbered
kusano 7d535a
zero.

kusano 7d535a
kusano 7d535a

TIFFSetSubDirectory acts like

kusano 7d535a
TIFFSetDirectory, except the directory is specified
kusano 7d535a
as a file offset instead of an index; this is required for
kusano 7d535a
accessing subdirectories linked through a SubIFD
kusano 7d535a
tag.

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

RETURN VALUES

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

On successful return 1 is returned. Otherwise, 0 is

kusano 7d535a
returned if dirnum or diroff specifies a
kusano 7d535a
non-existent directory, or if an error was encountered while
kusano 7d535a
reading the directory’s contents.

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

DIAGNOSTICS

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

All error messages are directed to the

kusano 7d535a
TIFFError(3TIFF) routine.

kusano 7d535a
kusano 7d535a

%s: Error fetching directory count. An error was

kusano 7d535a
encountered while reading the ‘‘directory
kusano 7d535a
count’’ field.

kusano 7d535a
kusano 7d535a

%s: Error fetching directory link. An error was

kusano 7d535a
encountered while reading the ‘‘link
kusano 7d535a
value’’ that points to the next directory in a
kusano 7d535a
file.

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

SEE ALSO

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFCurrentDirectory(3TIFF),

kusano 7d535a
TIFFOpen(3TIFF), TIFFReadDirectory(3TIFF),
kusano 7d535a
TIFFWriteDirectory(3TIFF), libtiff(3TIFF)

kusano 7d535a
kusano 7d535a

Libtiff library home page:

kusano 7d535a
http://www.remotesensing.org/libtiff/

kusano 7d535a
kusano 7d535a
kusano 7d535a

kusano 7d535a
kusano 7d535a