manpagez: man pages & more
man TIFFReadFromUserBuffer(3)
Home | html | info | man
TIFFREADFROMUSERBUFFER(3tiff)       LibTIFF      TIFFREADFROMUSERBUFFER(3tiff)


NAME

       TIFFReadFromUserBuffer - decode data using an user defined buffer


SYNOPSIS


          #include <tiffio.h>

       TIFFReadFromUserBuffer(3) *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(3), TIFFReadRawStrip(3), TIFFReadScanline(3),
       TIFFReadEncodedStrip(3), TIFFReadEncodedTile(3), libtiff(3)


AUTHOR

       LibTIFF contributors


COPYRIGHT

       1988-2022, LibTIFF contributors

4.6                             October 9, 2023  TIFFREADFROMUSERBUFFER(3tiff)

tiff 4.6.0 - Generated Sun Oct 15 05:49:20 CDT 2023
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.