35#define WRITECHECKSTRIPS(tif, module) \
36 (((tif)->tif_flags & TIFF_BEENWRITING) || TIFFWriteCheck((tif), 0, module))
37#define WRITECHECKTILES(tif, module) \
38 (((tif)->tif_flags & TIFF_BEENWRITING) || TIFFWriteCheck((tif), 1, module))
39#define BUFFERCHECK(tif) \
40 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \
41 TIFFWriteBufferSetup((tif), NULL, (tmsize_t)-1))
49 static const char module[] =
"TIFFWriteScanline";
76 "Can not change \"ImageLength\" when using separate planes");
90 (
unsigned long)sample,
153 if (row < tif->tif_row)
218 static const char module[] =
"TIFFWriteEncodedStrip";
239 "Can not grow image by strips when using separate planes");
330 static const char module[] =
"TIFFWriteRawStrip";
350 "Can not grow image by strips when using separate planes");
416 static const char module[] =
"TIFFWriteEncodedTile";
427 (
unsigned long)tile, (
unsigned long)td->
td_nstrips);
535 static const char module[] =
"TIFFWriteRawTile";
550#define isUnspecified(tif, f) \
551 (TIFFFieldSet(tif, f) && (tif)->tif_dir.td_imagelength == 0)
571 "Too large Strip/Tile Offsets/ByteCounts arrays");
615 tiles ?
"Can not write tiles to a striped image"
616 :
"Can not write scanlines to a tiled image");
635 "Must set \"ImageWidth\" before writing data");
642 isTiled(tif) ?
"tile" :
"strip");
679 static const char module[] =
"TIFFWriteBufferSetup";
739 if (new_stripoffset ==
NULL || new_stripbytecount ==
NULL)
743 if (new_stripbytecount)
767 static const char module[] =
"TIFFAppendToStrip";
845 if (toCopy < 1024 * 1024)
848 tempSize = 1024 * 1024;
853 m = offsetWrite + toCopy +
cc;
875 if (!
SeekOK(tif, offsetRead))
887 if (!
SeekOK(tif, offsetWrite))
899 offsetRead += tempSize;
900 offsetWrite += tempSize;
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
union TIFFDirEntry::@3701 tdir_offset
TIFFDirEntry td_stripoffset_entry
uint32_t td_stripsperimage
uint64_t * td_stripbytecount_p
uint64_t * td_stripoffset_p
uint16_t td_samplesperpixel
TIFFDirEntry td_stripbytecount_entry
TIFFCodeMethod tif_encodestrip
uint64_t tif_lastvalidoff
TIFFCodeMethod tif_encodetile
tmsize_t tif_scanlinesize
TIFFPreMethod tif_preencode
TIFFPostMethod tif_postdecode
TIFFBoolMethod tif_setupencode
TIFFBoolMethod tif_postencode
TIFFCodeMethod tif_encoderow
void * _TIFFCheckMalloc(TIFF *tif, tmsize_t nmemb, tmsize_t elem_size, const char *what)
#define FIELD_STRIPOFFSETS
#define FIELD_IMAGEDIMENSIONS
#define TIFFFieldSet(tif, field)
#define FIELD_TILEDIMENSIONS
#define FIELD_ROWSPERSTRIP
#define FIELD_STRIPBYTECOUNTS
#define TIFFSetFieldBit(tif, field)
int _TIFFFillStriles(TIFF *tif)
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
int TIFFForceStrileArrayWriting(TIFF *tif)
int TIFFFlushData(TIFF *tif)
void _TIFFfreeExt(TIFF *tif, void *p)
void * _TIFFreallocExt(TIFF *tif, void *p, tmsize_t s)
void * _TIFFmallocExt(TIFF *tif, tmsize_t s)
tmsize_t TIFFStripSize(TIFF *tif)
tmsize_t TIFFScanlineSize(TIFF *tif)
uint32_t TIFFNumberOfStrips(TIFF *tif)
void TIFFReverseBits(uint8_t *cp, tmsize_t n)
tmsize_t TIFFTileSize(TIFF *tif)
uint32_t TIFFComputeTile(TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
int TIFFCheckTile(TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
uint32_t TIFFNumberOfTiles(TIFF *tif)
void _TIFFmemset(void *p, int v, tmsize_t c)
#define isUnspecified(tif, f)
tmsize_t TIFFWriteRawTile(TIFF *tif, uint32_t tile, void *data, tmsize_t cc)
tmsize_t TIFFWriteRawStrip(TIFF *tif, uint32_t strip, void *data, tmsize_t cc)
void TIFFSetWriteOffset(TIFF *tif, toff_t off)
int TIFFWriteScanline(TIFF *tif, void *buf, uint32_t row, uint16_t sample)
#define WRITECHECKTILES(tif, module)
int TIFFFlushData1(TIFF *tif)
int TIFFWriteBufferSetup(TIFF *tif, void *bp, tmsize_t size)
static int _TIFFReserveLargeEnoughWriteBuffer(TIFF *tif, uint32_t strip_or_tile)
static int TIFFAppendToStrip(TIFF *tif, uint32_t strip, uint8_t *data, tmsize_t cc)
tmsize_t TIFFWriteEncodedTile(TIFF *tif, uint32_t tile, void *data, tmsize_t cc)
int TIFFWriteCheck(TIFF *tif, int tiles, const char *module)
tmsize_t TIFFWriteTile(TIFF *tif, void *buf, uint32_t x, uint32_t y, uint32_t z, uint16_t s)
static int TIFFGrowStrips(TIFF *tif, uint32_t delta, const char *module)
tmsize_t TIFFWriteEncodedStrip(TIFF *tif, uint32_t strip, void *data, tmsize_t cc)
int TIFFSetupStrips(TIFF *tif)
#define WRITECHECKSTRIPS(tif, module)
#define PLANARCONFIG_SEPARATE
#define PLANARCONFIG_CONTIG
#define TIFF_TMSIZE_T_MAX
#define TIFFroundup_64(x, y)
#define WriteOK(tif, buf, size)
#define ReadOK(tif, buf, size)
#define isFillOrder(tif, o)
#define TIFFSeekFile(tif, off, whence)
#define TIFFhowmany_32(x, y)