~ubuntu-branches/ubuntu/karmic/tiff/karmic-security

« back to all changes in this revision

Viewing changes to man/TIFFReadTile.3t

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2004-10-14 07:57:59 UTC
  • Revision ID: james.westby@ubuntu.com-20041014075759-a77e7zuaetya8cp0
Tags: upstream-3.6.1
ImportĀ upstreamĀ versionĀ 3.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" $Header: /cvsroot/osrs/libtiff/man/TIFFReadTile.3t,v 1.1.1.1 1999/07/27 21:50:27 mike Exp $
 
2
.\"
 
3
.\" Copyright (c) 1988-1997 Sam Leffler
 
4
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
 
5
.\"
 
6
.\" Permission to use, copy, modify, distribute, and sell this software and 
 
7
.\" its documentation for any purpose is hereby granted without fee, provided
 
8
.\" that (i) the above copyright notices and this permission notice appear in
 
9
.\" all copies of the software and related documentation, and (ii) the names of
 
10
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
 
11
.\" publicity relating to the software without the specific, prior written
 
12
.\" permission of Sam Leffler and Silicon Graphics.
 
13
.\" 
 
14
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
 
15
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
 
16
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
 
17
.\" 
 
18
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 
19
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 
20
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
21
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
 
22
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
 
23
.\" OF THIS SOFTWARE.
 
24
.\"
 
25
.if n .po 0
 
26
.TH TIFFReadTile 3T "December 16, 1991"
 
27
.SH NAME
 
28
TIFFReadTile \- read and decode a tile of data from an open
 
29
.SM TIFF
 
30
file
 
31
.SH SYNOPSIS
 
32
.B "#include <tiffio.h>"
 
33
.br
 
34
.B "tsize_t TIFFReadTile(TIFF* tif, tdata_t buf, uint32 x, uint32 y, uint32 z, tsample_t sample)"
 
35
.SH DESCRIPTION
 
36
Return the data for the tile
 
37
.I containing
 
38
the specified coordinates.
 
39
The data placed in
 
40
.I buf
 
41
are returned decompressed and, typically, in the native byte-
 
42
and bit-ordering, but are otherwise packed (see further below).
 
43
The buffer must be large enough to hold an entire tile of data.
 
44
Applications should call the routine
 
45
.IR TIFFTileSize
 
46
to find out the size (in bytes) of a tile buffer.
 
47
The
 
48
.I x
 
49
and
 
50
.I y
 
51
parameters are always used by
 
52
.IR TIFFReadTile .
 
53
The
 
54
.I z
 
55
parameter is used if the image is deeper than 1 slice (\c
 
56
.IR ImageDepth >1).
 
57
The
 
58
.I sample
 
59
parameter is used only if data are organized in separate planes (\c
 
60
.IR PlanarConfiguration =2).
 
61
.SH NOTES
 
62
The library attempts to hide bit- and byte-ordering differences
 
63
between the image and the native machine by converting data
 
64
to the native machine order.
 
65
Bit reversal is done if the
 
66
.I FillOrder
 
67
tag is opposite to the native machine bit order.
 
68
16- and 32-bit samples are automatically byte-swapped if the
 
69
file was written with a byte order opposite to the native
 
70
machine byte order,
 
71
.SH "RETURN VALUES"
 
72
.IR TIFFReadTile
 
73
returns \-1 if it detects an error; otherwise the number of
 
74
bytes in the decoded tile is returned.
 
75
.SH DIAGNOSTICS
 
76
All error messages are directed to the
 
77
.IR TIFFError (3T)
 
78
routine.
 
79
.SH "SEE ALSO"
 
80
.IR libtiff (3T),
 
81
.IR TIFFCheckTile (3T),
 
82
.IR TIFFComputeTile (3T),
 
83
.IR TIFFOpen (3T),
 
84
.IR TIFFReadEncodedTile (3T),
 
85
.IR TIFFReadRawTile (3T)