logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TIFFReadFromUserBuffer - decode data using an user defined buffer

Author

       LibTIFF contributors

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).

Diagnostics

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

Name

       TIFFReadFromUserBuffer - decode data using an user defined buffer

Return Values

       Returns 1 in case of success, 0 otherwise.

See Also

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

Synopsis

          #include <tiffio.h>

       intTIFFReadFromUserBuffer(TIFF*tif,uint32_tstrile,void*inbuf,tmsize_tinsize,void*outbuf,tmsize_toutsize)

See Also