/
usr
/
share
/
doc
/
libtiff-devel
/
html
/
man
/
/usr/share/doc/libtiff-devel/html/man
mkdir
upload
Name
Size
Mode
Actions
CMakeLists.txt
3435
0644
edit
dl
rm
fax2ps.1.html
6463
0644
edit
dl
rm
fax2tiff.1.html
15703
0644
edit
dl
rm
HtmlDoc.cmake
2147
0644
edit
dl
rm
index.html
3826
0644
edit
dl
rm
libtiff.3tiff.html
55646
0644
edit
dl
rm
pal2rgb.1.html
4522
0644
edit
dl
rm
ppm2tiff.1.html
3836
0644
edit
dl
rm
raw2tiff.1.html
11353
0644
edit
dl
rm
tiff2bw.1.html
3835
0644
edit
dl
rm
tiff2pdf.1.html
11566
0644
edit
dl
rm
tiff2ps.1.html
13490
0644
edit
dl
rm
tiff2rgba.1.html
4620
0644
edit
dl
rm
TIFFbuffer.3tiff.html
3668
0644
edit
dl
rm
TIFFClose.3tiff.html
2200
0644
edit
dl
rm
tiffcmp.1.html
3763
0644
edit
dl
rm
TIFFcodec.3tiff.html
3470
0644
edit
dl
rm
TIFFcolor.3tiff.html
18970
0644
edit
dl
rm
tiffcp.1.html
14246
0644
edit
dl
rm
tiffcrop.1.html
30269
0644
edit
dl
rm
TIFFDataWidth.3tiff.html
2268
0644
edit
dl
rm
TIFFDeferStrileArrayWriting.3tiff.html
4022
0644
edit
dl
rm
tiffdither.1.html
5324
0644
edit
dl
rm
tiffdump.1.html
3554
0644
edit
dl
rm
TIFFError.3tiff.html
3176
0644
edit
dl
rm
TIFFFieldDataType.3tiff.html
2184
0644
edit
dl
rm
TIFFFieldName.3tiff.html
2129
0644
edit
dl
rm
TIFFFieldPassCount.3tiff.html
2618
0644
edit
dl
rm
TIFFFieldReadCount.3tiff.html
2826
0644
edit
dl
rm
TIFFFieldTag.3tiff.html
2253
0644
edit
dl
rm
TIFFFieldWriteCount.3tiff.html
3150
0644
edit
dl
rm
TIFFFlush.3tiff.html
2901
0644
edit
dl
rm
TIFFGetField.3tiff.html
33650
0644
edit
dl
rm
tiffinfo.1.html
4186
0644
edit
dl
rm
tiffmedian.1.html
4669
0644
edit
dl
rm
TIFFmemory.3tiff.html
3306
0644
edit
dl
rm
TIFFOpen.3tiff.html
14772
0644
edit
dl
rm
TIFFOpenOptions.3tiff.html
7052
0644
edit
dl
rm
TIFFPrintDirectory.3tiff.html
4258
0644
edit
dl
rm
TIFFquery.3tiff.html
5098
0644
edit
dl
rm
TIFFReadDirectory.3tiff.html
7557
0644
edit
dl
rm
TIFFReadEncodedStrip.3tiff.html
3576
0644
edit
dl
rm
TIFFReadEncodedTile.3tiff.html
3516
0644
edit
dl
rm
TIFFReadRawStrip.3tiff.html
2862
0644
edit
dl
rm
TIFFReadRawTile.3tiff.html
2951
0644
edit
dl
rm
TIFFReadRGBAImage.3tiff.html
8618
0644
edit
dl
rm
TIFFReadRGBAStrip.3tiff.html
7258
0644
edit
dl
rm
TIFFReadRGBATile.3tiff.html
8048
0644
edit
dl
rm
TIFFReadScanline.3tiff.html
4500
0644
edit
dl
rm
TIFFReadTile.3tiff.html
3646
0644
edit
dl
rm
TIFFRGBAImage.3tiff.html
11629
0644
edit
dl
rm
tiffset.1.html
3630
0644
edit
dl
rm
TIFFSetDirectory.3tiff.html
3429
0644
edit
dl
rm
TIFFSetField.3tiff.html
31189
0644
edit
dl
rm
TIFFsize.3tiff.html
2469
0644
edit
dl
rm
tiffsplit.1.html
3125
0644
edit
dl
rm
TIFFStrileQuery.3tiff.html
4958
0644
edit
dl
rm
TIFFstrip.3tiff.html
4180
0644
edit
dl
rm
TIFFswab.3tiff.html
3239
0644
edit
dl
rm
TIFFtile.3tiff.html
4867
0644
edit
dl
rm
TIFFWarning.3tiff.html
3136
0644
edit
dl
rm
TIFFWriteDirectory.3tiff.html
6273
0644
edit
dl
rm
TIFFWriteEncodedStrip.3tiff.html
4424
0644
edit
dl
rm
TIFFWriteEncodedTile.3tiff.html
4215
0644
edit
dl
rm
TIFFWriteRawStrip.3tiff.html
3999
0644
edit
dl
rm
TIFFWriteRawTile.3tiff.html
3630
0644
edit
dl
rm
TIFFWriteScanline.3tiff.html
6819
0644
edit
dl
rm
TIFFWriteTile.3tiff.html
3170
0644
edit
dl
rm
Edit:
/usr/share/doc/libtiff-devel/html/man/TIFFReadRGBATile.3tiff.html
(8048B)
<!-- Creator : groff version 1.22.4 --> <!-- CreationDate: Mon Jul 13 20:00:00 2026 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="generator" content="groff -Thtml, see www.gnu.org"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="Content-Style" content="text/css"> <style type="text/css"> p { margin-top: 0; margin-bottom: 0; vertical-align: top } pre { margin-top: 0; margin-bottom: 0; vertical-align: top } table { margin-top: 0; margin-bottom: 0; vertical-align: top } h1 { text-align: center } </style> <title>TIFFReadRGBATile</title> </head> <body> <h1 align="center">TIFFReadRGBATile</h1> <a href="#NAME">NAME</a><br> <a href="#SYNOPSIS">SYNOPSIS</a><br> <a href="#DESCRIPTION">DESCRIPTION</a><br> <a href="#NOTES">NOTES</a><br> <a href="#RETURN VALUES">RETURN VALUES</a><br> <a href="#DIAGNOSTICS">DIAGNOSTICS</a><br> <a href="#SEE ALSO">SEE ALSO</a><br> <hr> <h2>NAME <a name="NAME"></a> </h2> <p style="margin-left:11%; margin-top: 1em">TIFFReadRGBATile − read and decode an image tile into a fixed-format raster</p> <h2>SYNOPSIS <a name="SYNOPSIS"></a> </h2> <p style="margin-left:11%; margin-top: 1em"><b>#include <tiffio.h></b></p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"> <tr valign="top" align="left"> <td width="11%"></td> <td width="-3%"> <p><b>#define TIFFGetR(abgr)</b></p></td> <td width="30%"></td> <td width="8%"></td> <td width="54%"> <p><b>((abgr) & 0xff)</b></p></td></tr> <tr valign="top" align="left"> <td width="11%"></td> <td width="-3%"> <p><b>#define TIFFGetG(abgr)</b></p></td> <td width="30%"></td> <td width="8%"></td> <td width="54%"> <p><b>(((abgr) >> 8) & 0xff)</b></p></td></tr> <tr valign="top" align="left"> <td width="11%"></td> <td width="-3%"> <p><b>#define TIFFGetB(abgr)</b></p></td> <td width="30%"></td> <td width="8%"></td> <td width="54%"> <p><b>(((abgr) >> 16) & 0xff)</b></p></td></tr> <tr valign="top" align="left"> <td width="11%"></td> <td width="-3%"> <p><b>#define TIFFGetA(abgr)</b></p></td> <td width="30%"></td> <td width="8%"></td> <td width="54%"> <p><b>(((abgr) >> 24) & 0xff)</b></p></td></tr> </table> <p style="margin-left:11%; margin-top: 1em"><b>int TIFFReadRGBATile(TIFF *</b><i>tif</i><b>, uint32_t</b> <i>x</i><b>, uint32_t</b> <i>y</i><b>, uint32_t *</b><i>raster</i><b>)</b></p> <h2>DESCRIPTION <a name="DESCRIPTION"></a> </h2> <p style="margin-left:11%; margin-top: 1em"><b><i>TIFFReadRGBATile</i></b> reads a single tile of a tile-based image into memory, storing the result in the user supplied RGBA <i>raster</i>. The raster is assumed to be an array of width times length 32-bit entries, where width is the width of a tile (TIFFTAG_TILEWIDTH) and length is the height of a tile (TIFFTAG_TILELENGTH).</p> <p style="margin-left:11%; margin-top: 1em">The <i>x</i> and <i>y</i> values are the offsets from the top left corner to the top left corner of the tile to be read. They must be an exact multiple of the tile width and length.</p> <p style="margin-left:11%; margin-top: 1em">Note that the raster is assume to be organized such that the pixel at location (<i>x</i>,<i>y</i>) is <i>raster</i>[<i>y</i>*<i>width</i>+<i>x</i>]; with the raster origin in the <i>lower-left hand corner</i> of the tile. That is bottom to top organization. Edge tiles which partly fall off the image will be filled out with appropriate zeroed areas.</p> <p style="margin-left:11%; margin-top: 1em">Raster pixels are 8-bit packed red, green, blue, alpha samples. The macros <i>TIFFGetR</i>, <i>TIFFGetG</i>, <i>TIFFGetB</i>, and <i>TIFFGetA</i> should be used to access individual samples. Images without Associated Alpha matting information have a constant Alpha of 1.0 (255).</p> <p style="margin-left:11%; margin-top: 1em">See the <i>TIFFRGBAImage</i>(3TIFF) page for more details on how various image types are converted to RGBA values.</p> <h2>NOTES <a name="NOTES"></a> </h2> <p style="margin-left:11%; margin-top: 1em">Samples must be either 1, 2, 4, 8, or 16 bits. Colorimetric samples/pixel must be either 1, 3, or 4 (i.e. <i>SamplesPerPixel</i> minus <i>ExtraSamples</i>).</p> <p style="margin-left:11%; margin-top: 1em">Palette image colormaps that appear to be incorrectly written as 8-bit values are automatically scaled to 16-bits.</p> <p style="margin-left:11%; margin-top: 1em"><i>TIFFReadRGBATile</i> is just a wrapper around the more general <i>TIFFRGBAImage</i>(3TIFF) facilities. It’s main advantage over the similar <i>TIFFReadRGBAImage()</i> function is that for large images a single buffer capable of holding the whole image doesn’t need to be allocated, only enough for one tile. The <i>TIFFReadRGBAStrip()</i> function does a similar operation for stripped images.</p> <h2>RETURN VALUES <a name="RETURN VALUES"></a> </h2> <p style="margin-left:11%; margin-top: 1em">1 is returned if the image was successfully read and converted. Otherwise, 0 is returned if an error was encountered.</p> <h2>DIAGNOSTICS <a name="DIAGNOSTICS"></a> </h2> <p style="margin-left:11%; margin-top: 1em">All error messages are directed to the <i>TIFFError</i>(3TIFF) routine.</p> <p style="margin-left:11%; margin-top: 1em"><b>Sorry, can not handle %d-bit pictures</b>. The image had <i>BitsPerSample</i> other than 1, 2, 4, 8, or 16.</p> <p style="margin-left:11%; margin-top: 1em"><b>Sorry, can not handle %d-channel images</b>. The image had <i>SamplesPerPixel</i> other than 1, 3, or 4.</p> <p style="margin-left:11%; margin-top: 1em"><b>Missing needed "PhotometricInterpretation" tag</b>. The image did not have a tag that describes how to display the data.</p> <p style="margin-left:11%; margin-top: 1em"><b>No "PhotometricInterpretation" tag, assuming RGB</b>. The image was missing a tag that describes how to display it, but because it has 3 or 4 samples/pixel, it is assumed to be <small>RGB.</small></p> <p style="margin-left:11%; margin-top: 1em"><b>No "PhotometricInterpretation" tag, assuming min-is-black</b>. The image was missing a tag that describes how to display it, but because it has 1 sample/pixel, it is assumed to be a grayscale or bilevel image.</p> <p style="margin-left:11%; margin-top: 1em"><b>No space for photometric conversion table</b>. There was insufficient memory for a table used to convert image samples to 8-bit <small>RGB.</small></p> <p style="margin-left:11%; margin-top: 1em"><b>Missing required "Colormap" tag</b>. A Palette image did not have a required <i>Colormap</i> tag.</p> <p style="margin-left:11%; margin-top: 1em"><b>No space for tile buffer</b>. There was insufficient memory to allocate an i/o buffer.</p> <p style="margin-left:11%; margin-top: 1em"><b>No space for strip buffer</b>. There was insufficient memory to allocate an i/o buffer.</p> <p style="margin-left:11%; margin-top: 1em"><b>Can not handle format</b>. The image has a format (combination of <i>BitsPerSample</i>, <i>SamplesPerPixel</i>, and <i>PhotometricInterpretation</i>) that <i>TIFFReadRGBAImage</i> can not handle.</p> <p style="margin-left:11%; margin-top: 1em"><b>No space for B&W mapping table</b>. There was insufficient memory to allocate a table used to map grayscale data to <small>RGB.</small></p> <p style="margin-left:11%; margin-top: 1em"><b>No space for Palette mapping table</b>. There was insufficient memory to allocate a table used to map data to 8-bit <small>RGB.</small></p> <h2>SEE ALSO <a name="SEE ALSO"></a> </h2> <p style="margin-left:11%; margin-top: 1em"><b>TIFFOpen</b>(3TIFF), <b>TIFFRGBAImage</b>(3TIFF), <b>TIFFReadRGBAImage</b>(3TIFF), <b>TIFFReadRGBAStrip</b>(3TIFF), <b>libtiff</b>(3TIFF)</p> <p style="margin-left:11%; margin-top: 1em">Libtiff library home page: <b>http://www.simplesystems.org/libtiff/</b></p> <hr> </body> </html>
Save
cmd:
run