Blame html/man/TIFFSetDirectory.3tiff.html

Packit 85355f
Packit 85355f
Packit 85355f
<html>
Packit 85355f
<head>
Packit 85355f
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit 85355f
<meta name="Content-Style" content="text/css">
Packit 85355f
<title>TIFFSetDirectory</title>
Packit 85355f
</head>
Packit 85355f
<body>
Packit 85355f
Packit 85355f

TIFFSetDirectory

Packit 85355f
NAME
Packit 85355f
SYNOPSIS
Packit 85355f
DESCRIPTION
Packit 85355f
RETURN VALUES
Packit 85355f
DIAGNOSTICS
Packit 85355f
SEE ALSO
Packit 85355f
Packit 85355f

Packit 85355f
Packit 85355f

NAME

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

TIFFSetDirectory, TIFFSetSubDirectory − set the

Packit 85355f
current directory for an open <small>TIFF</small> file

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

SYNOPSIS

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

#include <tiffio.h>

Packit 85355f
Packit 85355f

int TIFFSetDirectory(TIFF *tif,

Packit 85355f
tdir_t dirnum)
Packit 85355f
int TIFFSetSubDirectory(TIFF *tif, uint32
Packit 85355f
diroff)

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

DESCRIPTION

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

TIFFSetDirectory changes the current directory and

Packit 85355f
reads its contents with TIFFReadDirectory. The
Packit 85355f
parameter dirnum specifies the subfile/directory as
Packit 85355f
an integer number, with the first directory numbered
Packit 85355f
zero.

Packit 85355f
Packit 85355f

TIFFSetSubDirectory acts like

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

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

RETURN VALUES

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

On successful return 1 is returned. Otherwise, 0 is

Packit 85355f
returned if dirnum or diroff specifies a
Packit 85355f
non-existent directory, or if an error was encountered while
Packit 85355f
reading the directory’s contents.

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

DIAGNOSTICS

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

All error messages are directed to the

Packit 85355f
TIFFError(3TIFF) routine.

Packit 85355f
Packit 85355f

%s: Error fetching directory count. An error was

Packit 85355f
encountered while reading the ‘‘directory
Packit 85355f
count’’ field.

Packit 85355f
Packit 85355f

%s: Error fetching directory link. An error was

Packit 85355f
encountered while reading the ‘‘link
Packit 85355f
value’’ that points to the next directory in a
Packit 85355f
file.

Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

SEE ALSO

Packit 85355f
Packit 85355f
Packit 85355f
       cols="2" cellspacing="0" cellpadding="0">
Packit 85355f
Packit 85355f
Packit 85355f
Packit 85355f

TIFFCurrentDirectory(3TIFF),

Packit 85355f
TIFFOpen(3TIFF), TIFFReadDirectory(3TIFF),
Packit 85355f
TIFFWriteDirectory(3TIFF), libtiff(3TIFF)

Packit 85355f
Packit 85355f

Libtiff library home page:

Packit 85355f
http://www.simplesystems.org/libtiff/

Packit 85355f
Packit 85355f
Packit 85355f

Packit 85355f
</body>
Packit 85355f
</html>