Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
tif_write.c File Reference
#include "tiffiop.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define STRIPINCR   20 /* expansion factor on strip array */
 
#define WRITECHECKSTRIPS(tif, module)   (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module))
 
#define WRITECHECKTILES(tif, module)   (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module))
 
#define BUFFERCHECK(tif)
 
#define isUnspecified(tif, f)   (TIFFFieldSet(tif,f) && (tif)->tif_dir.td_imagelength == 0)
 

Functions

int TIFFWriteScanline (TIFF *tif, tdata_t buf, uint32 row, tsample_t sample)
 
tsize_t TIFFWriteEncodedStrip (TIFF *tif, tstrip_t strip, tdata_t data, tsize_t cc)
 
tsize_t TIFFWriteRawStrip (TIFF *tif, tstrip_t strip, tdata_t data, tsize_t cc)
 
tsize_t TIFFWriteTile (TIFF *tif, tdata_t buf, uint32 x, uint32 y, uint32 z, tsample_t s)
 
tsize_t TIFFWriteEncodedTile (TIFF *tif, ttile_t tile, tdata_t data, tsize_t cc)
 
tsize_t TIFFWriteRawTile (TIFF *tif, ttile_t tile, tdata_t data, tsize_t cc)
 
int TIFFSetupStrips (TIFF *tif)
 
int TIFFWriteCheck (TIFF *tif, int tiles, const char *module)
 
int TIFFWriteBufferSetup (TIFF *tif, tdata_t bp, tsize_t size)
 
int TIFFFlushData1 (TIFF *tif)
 
void TIFFSetWriteOffset (TIFF *tif, toff_t off)
 

Macro Definition Documentation

◆ BUFFERCHECK

#define BUFFERCHECK (   tif)
Value:
((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \
int32 tsize_t
Definition: tiffio.h:66
#define NULL
Definition: ftobjs.h:61
int TIFFWriteBufferSetup(TIFF *tif, tdata_t bp, tsize_t size)
Definition: tif_write.c:549
#define TIFF_BUFFERSETUP
Definition: tiffiop.h:103

Definition at line 41 of file tif_write.c.

Referenced by TIFFWriteEncodedTile(), and TIFFWriteScanline().

◆ isUnspecified

#define isUnspecified (   tif,
  f 
)    (TIFFFieldSet(tif,f) && (tif)->tif_dir.td_imagelength == 0)

Definition at line 443 of file tif_write.c.

Referenced by TIFFSetupStrips().

◆ STRIPINCR

#define STRIPINCR   20 /* expansion factor on strip array */

Definition at line 35 of file tif_write.c.

◆ WRITECHECKSTRIPS

#define WRITECHECKSTRIPS (   tif,
  module 
)    (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module))

Definition at line 37 of file tif_write.c.

Referenced by TIFFWriteEncodedStrip(), TIFFWriteRawStrip(), and TIFFWriteScanline().

◆ WRITECHECKTILES

#define WRITECHECKTILES (   tif,
  module 
)    (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module))

Definition at line 39 of file tif_write.c.

Referenced by TIFFWriteEncodedTile(), and TIFFWriteRawTile().

Function Documentation

◆ TIFFFlushData1()

int TIFFFlushData1 ( TIFF tif)

◆ TIFFSetupStrips()

int TIFFSetupStrips ( TIFF tif)

◆ TIFFSetWriteOffset()

void TIFFSetWriteOffset ( TIFF tif,
toff_t  off 
)

Definition at line 720 of file tif_write.c.

References tiff::tif_curoff.

◆ TIFFWriteBufferSetup()

int TIFFWriteBufferSetup ( TIFF tif,
tdata_t  bp,
tsize_t  size 
)

◆ TIFFWriteCheck()

int TIFFWriteCheck ( TIFF tif,
int  tiles,
const char *  module 
)

◆ TIFFWriteEncodedStrip()

tsize_t TIFFWriteEncodedStrip ( TIFF tif,
tstrip_t  strip,
tdata_t  data,
tsize_t  cc 
)

◆ TIFFWriteEncodedTile()

tsize_t TIFFWriteEncodedTile ( TIFF tif,
ttile_t  tile,
tdata_t  data,
tsize_t  cc 
)

◆ TIFFWriteRawStrip()

tsize_t TIFFWriteRawStrip ( TIFF tif,
tstrip_t  strip,
tdata_t  data,
tsize_t  cc 
)

◆ TIFFWriteRawTile()

tsize_t TIFFWriteRawTile ( TIFF tif,
ttile_t  tile,
tdata_t  data,
tsize_t  cc 
)

◆ TIFFWriteScanline()

int TIFFWriteScanline ( TIFF tif,
tdata_t  buf,
uint32  row,
tsample_t  sample 
)

◆ TIFFWriteTile()

tsize_t TIFFWriteTile ( TIFF tif,
tdata_t  buf,
uint32  x,
uint32  y,
uint32  z,
tsample_t  s 
)

Definition at line 310 of file tif_write.c.

References TIFFCheckTile(), TIFFComputeTile(), and TIFFWriteEncodedTile().