83 static const char module[] = "TIFFForceStrileArrayWriting";
93 TIFFErrorExtR(tif, module,
"Directory has not yet been written");
99 "Directory has changes other than the strile arrays. "
100 "TIFFRewriteDirectory() should be called instead");
116 "Function not called together with "
117 "TIFFDeferStrileArrayWriting()");
int _TIFFRewriteField(TIFF *tif, uint16_t tag, TIFFDataType in_datatype, tmsize_t count, void *data)
Patch an existing field in the current on-file IFD.
int TIFFFlushData1(TIFF *tif)
Append buffered encoded bytes without invoking postencode recursively.
#define isTiled(tif)
Test whether a handle uses tiled storage.
#define TIFF_POSTENCODE
Request a pending codec postencode call.
#define TIFF_BEENWRITING
Record that scanline or image-data writing has begun.
#define TIFF_DIRTYSTRIP
Mark strip/tile offset or byte-count arrays that need writing.
#define TIFF_DIRTYDIRECT
Mark a current directory that needs writing.
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
Dispatch a error diagnostic to the configured handlers.
int TIFFForceStrileArrayWriting(TIFF *tif)
Patch on-file strile offset and byte-count payloads.
int TIFFRewriteDirectory(TIFF *tif)
Relocate the current image IFD and repair its main-chain link.
int TIFFSetupStrips(TIFF *tif)
Replace strile offset/count arrays from current geometry.
int TIFFFlushData(TIFF *tif)
Flush pending encoded image data without committing directory changes.
int TIFFFlush(TIFF *tif)
Flush pending image data and dirty directory information.
int TIFFIsTiled(TIFF *tif)
Test whether the current image uses tiles.
@ TIFF_LONG8
BigTIFF unsigned 64-bit integer.
uint64_t tdir_count
Number of file-type elements, normalised to host order.
uint16_t tdir_type
On-disk TIFFDataType code.
uint64_t toff_long8
Raw 64-bit view of inline bytes or offset storage.
uint16_t tdir_tag
Directory tag identifier.
union TIFFDirEntry::@0 tdir_offset
Overlay raw directory inline bytes and offset-width views.
TIFFDirEntry td_stripoffset_entry
Deferred offset entry; tag/type/count are swapped but offset storage is raw.
uint64_t * td_stripbytecount_p
Owned byte-count array/cache, possibly NULL or partial; use TIFFGetStrileByteCount().
uint64_t * td_stripoffset_p
Owned offset array/cache, possibly NULL or partial; use TIFFGetStrileOffset().
uint32_t td_nstrips
Total strile count across all planes; logical array length.
TIFFDirEntry td_stripbytecount_entry
Deferred byte-count entry; offset storage still requires swapping.
Hold private state for one open TIFF library instance.
uint64_t tif_diroff
Current directory byte offset, or zero for an unlinked in-memory IFD.
char * tif_name
Current filename pointer; may refer to inline or client-supplied storage.
TIFFDirectory tif_dir
Inline representation of the current image directory.
TIFFBoolMethod tif_postencode
Codec callback completing buffered encoding.
uint32_t tif_flags
Bitmask combining the TIFF_* handle-state flags declared below.
int tif_mode
Current access mode using the O_* constants.
Declare private library state, callbacks, and implementation helpers.