Mir 1.0
Mir application programming interface
 
Loading...
Searching...
No Matches
Mir LibTIFF Wrapper

Macros

#define MIRLTW_BUILDING   0
 

Functions

int mirltw_initialize (void)
 Initialization of the MIRLTW library.
 
void mirltw_terminate (void)
 Termination of the MIRLTW library.
 
mirkl_error_tWTIFFOpen (const char *name, const char *mode, TIFF **tif)
 Open a TIFF file for read/writing.
 
mirkl_error_tWTIFFClose (TIFF *tif)
 Close TIFF file.
 
mirkl_error_tWTIFFScanlineSize (TIFF *tif, tmsize_t *ret)
 
mirkl_error_tWTIFFStripSize (TIFF *tif, tmsize_t *ret)
 
mirkl_error_tWTIFFComputeStrip (TIFF *tif, uint32_t row, uint16_t sample, uint32_t *ret)
 
mirkl_error_tWTIFFReadEncodedStrip (TIFF *tif, uint32_t strip, void *buf, tmsize_t size, tmsize_t *ret)
 
mirkl_error_tWTIFFDefaultStripSize (TIFF *tif, uint32_t request, uint32_t *ret)
 
mirkl_error_tWTIFFWriteScanline (TIFF *tif, void *buf, uint32_t row, uint16_t sample)
 
mirkl_error_tWTIFFGetField (TIFF *tif, uint32_t tag,...)
 
mirkl_error_tWTIFFGetFieldDefaulted (TIFF *tif, uint32_t tag,...)
 
mirkl_error_tWTIFFSetField (TIFF *tif, uint32_t tag,...)
 
int WTIFFIsTiled (TIFF *tif)
 
int WTIFFDataWidth (TIFFDataType dtype)
 
const char * WTIFFGetVersion (void)
 

Error codes

int MirltwLibTiffEC
 Error from LibTIFF.
 
int MirltwOpenEC
 TIFF opening error.
 
int MirltwFieldEC
 TIFF field error.
 
int MirltwReadEC
 TIFF reading error.
 
int MirltwWriteEC
 TIFF writing error.
 

Common return values (mainly from #mirltw_initialize).

#define MIRLTW_SUCCESS   0
 No errors.
 
#define MIRLTW_ERROR_MIRKLINIT   1
 MirKL initialization failed.
 
#define MIRLTW_ERROR_ERRREG   2
 Registration of errors failed.
 

Detailed Description

Function Documentation

◆ mirltw_initialize()

int mirltw_initialize ( void  )

Initialization of the MIRLTW library.

Note
This function should be called first before using other MIRLTW functions.

◆ mirltw_terminate()

void mirltw_terminate ( void  )

Termination of the MIRLTW library.

Note
No MIRLTW functions should be used after calling this function.