2
* Dynamically loaded libtiff support.
4
* This file is automatically generated by the gen_dynlibtiff.py script.
6
* ***** BEGIN GPL LICENSE BLOCK *****
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version 2
11
* of the License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software Foundation,
20
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
* Contributor(s): Jonathan Merritt.
24
* ***** END GPL LICENSE BLOCK *****
28
* To use the dynamic libtiff support, you must initialize the library using:
30
* This attempts to load libtiff dynamically at runtime. G.have_libtiff will
31
* be set to indicate whether or not libtiff is available. If libtiff is
32
* not available, Blender can proceed with no ill effects, provided that
33
* it does not attempt to use any of the libtiff_ functions. When you're
34
* finished, close the library with:
36
* These functions are both declared in IMB_imbuf.h
38
* The functions provided by dyn_libtiff.h are the same as those in the
39
* normal static / shared libtiff, except that they are prefixed by the
40
* string "libtiff_" to indicate that they belong to a dynamically-loaded
45
extern TIFF* (*libtiff_TIFFClientOpen)(const char*, const char*, thandle_t, TIFFReadWriteProc, TIFFReadWriteProc, TIFFSeekProc, TIFFCloseProc, TIFFSizeProc, TIFFMapFileProc, TIFFUnmapFileProc);
46
extern void (*libtiff_TIFFClose)(TIFF*);
47
extern int (*libtiff_TIFFGetField)(TIFF*, ttag_t, ...);
48
extern TIFF* (*libtiff_TIFFOpen)(const char*, const char*);
49
extern int (*libtiff_TIFFReadRGBAImage)(TIFF*, uint32, uint32, uint32*, int);
50
extern int (*libtiff_TIFFSetField)(TIFF*, ttag_t, ...);
51
extern tsize_t (*libtiff_TIFFWriteEncodedStrip)(TIFF*, tstrip_t, tdata_t, tsize_t);
52
extern void (*libtiff__TIFFfree)(tdata_t);
53
extern tdata_t (*libtiff__TIFFmalloc)(tsize_t);
54
#endif /* DYN_LIBTIFF_H */