TIFFReadFromUserBuffer(3tiff)

TIFFReadFromUserBuffer3tiff

Decode data using an user defined buffer

Usage

#include <tiffio.h>
int TIFFReadFromUserBuffer(TIFF *tif, uint32_t strile, void *inbuf, tmsize_t insize, void *outbuf, tmsize_t outsize)

Overview

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.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

LibTIFF contributors

From libtiff-dev 4.7.0-3+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.