Sponsor:

Your company here, and a link to your site. Click to find out more.

TIFFReadFromUserBuffer.3tiff - Man Page

decode data using an user defined buffer

Synopsis

#include <tiffio.h>

int TIFFReadFromUserBuffer(TIFF *tif, uint32_t strile, void *inbuf, tmsize_t insize, void *outbuf, tmsize_t outsize)

Description

Use the provided input buffer (inbuf, insize) and decompress it into (outbuf, outsize). This function replaces the use of TIFFReadEncodedStrip() / TIFFReadEncodedTile() when the user can provide the buffer for the input data, for example when he wants to avoid libtiff to read the strile offset/count values from the StripOffsets / StripByteCounts or TileOffsets / TileByteCounts arrays. inbuf content must be writable (if bit reversal is needed).

Return Values

Returns 1 in case of success, 0 otherwise.

Diagnostics

All error messages are directed to the TIFFErrorExtR() routine.

See Also

TIFFOpen (3tiff), TIFFReadRawStrip (3tiff), TIFFReadScanline (3tiff), TIFFReadEncodedStrip (3tiff), TIFFReadEncodedTile (3tiff), libtiff (3tiff),

Author

LibTIFF contributors

Info

Sep 08, 2023 4.6 LibTIFF