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]
Functions
tif_close.c File Reference
#include "tiffiop.h"

Go to the source code of this file.

Functions

void TIFFCleanup (TIFF *tif)
 Auxiliary function to free the TIFF structure. More...
 
void TIFFClose (TIFF *tif)
 Close a previously opened TIFF file. More...
 

Function Documentation

◆ TIFFCleanup()

void TIFFCleanup ( TIFF tif)

Auxiliary function to free the TIFF structure.

Given structure will be completetly freed, so you should save opened file handle and pointer to the close procedure in external variables before calling _TIFFCleanup(), if you will need these ones to close the file.

Parameters
tifA TIFF pointer.

Definition at line 46 of file tif_close.c.

References _TIFFfree(), TIFFFieldInfo::field_bit, FIELD_CUSTOM, TIFFFieldInfo::field_name, i, isMapped, client_info::name, client_info::next, tiff::tif_base, tiff::tif_cleanup, tiff::tif_clientinfo, tiff::tif_dirlist, tiff::tif_fieldinfo, tiff::tif_flags, tiff::tif_mode, tiff::tif_nfields, tiff::tif_rawdata, tiff::tif_size, TIFF_MYBUFFER, TIFFFlush(), TIFFFreeDirectory(), and TIFFUnmapFileContents.

Referenced by TIFFClose().

◆ TIFFClose()

void TIFFClose ( TIFF tif)

Close a previously opened TIFF file.

TIFFClose closes a file that was previously opened with TIFFOpen(). Any buffered data are flushed to the file, including the contents of the current directory (if modified); and all resources are reclaimed.

Parameters
tifA TIFF pointer.

Definition at line 111 of file tif_close.c.

References tiff::tif_clientdata, tiff::tif_closeproc, TIFFCleanup(), and void().

Referenced by vl::loadTIFF().