126 static const char module[] = "DumpModeDecode";
131 memset(buf, 0, (
size_t)cc);
133 "Not enough data for scanline %" PRIu32
174 "Integer overflow computing seek size");
181 "Seek beyond end of raw data buffer");
int TIFFInitDumpMode(TIFF *tif, int scheme)
Install uncompressed transfer callbacks.
static int DumpModeSeek(TIFF *tif, uint32_t nrows)
Advance uncompressed raw input by complete scanlines.
static int DumpModeDecode(TIFF *tif, uint8_t *buf, tmsize_t cc, uint16_t s)
Copy uncompressed raw input into decoded output.
static int DumpFixupTags(TIFF *tif)
Accept uncompressed tag fixup without changes.
static int DumpModeEncode(TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
Copy uncompressed bytes into the raw output buffer.
#define TIFF_SSIZE_FORMAT
Provide the printf conversion fragment for tmsize_t, without a percent sign.
int TIFFFlushData1(TIFF *tif)
Append buffered encoded bytes without invoking postencode recursively.
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
Dispatch a error diagnostic to the configured handlers.
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
Copy a non-overlapping byte range.
TIFF_SSIZE_T tmsize_t
Represent a signed memory or I/O size in bytes.
#define TIFF_TMSIZE_T_MAX
Define the largest positive size representable by tmsize_t.
tmsize_t td_scanlinesize
Cached decoded scanline size in bytes; zero when not computed.
uint32_t td_row
Current scanline index; UINT32_MAX before traversal starts.
Hold private state for one open TIFF library instance.
TIFFCodeMethod tif_encodestrip
Codec callback encoding strip data.
TIFFSeekMethod tif_seek
Codec callback advancing within a strip.
TIFFCodeMethod tif_encodetile
Codec callback encoding tile data.
TIFFBoolMethod tif_fixuptags
Codec callback for directory-dependent tag corrections.
tmsize_t tif_rawcc
Raw-buffer byte count interpreted according to read/write state.
TIFFCodeMethod tif_decodestrip
Codec callback decoding strip data.
TIFFCodeMethod tif_decoderow
Codec callback decoding a scanline.
TIFFDirectory tif_dir
Inline representation of the current image directory.
TIFFCodeMethod tif_encoderow
Codec callback encoding a scanline.
uint8_t * tif_rawcp
Borrowed current-position pointer into the raw buffer.
tmsize_t tif_rawdatasize
Raw-buffer capacity in bytes; kept in step with tif_rawdata, including zero whenever tif_rawdata is N...
TIFFCodeMethod tif_decodetile
Codec callback decoding tile data.
Declare private library state, callbacks, and implementation helpers.