~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/dynlibtiff.h

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Dynamically loaded libtiff support.
 
3
 *
 
4
 * This file is automatically generated by the gen_dynlibtiff.py script.
 
5
 * 
 
6
 * ***** BEGIN GPL LICENSE BLOCK *****
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
21
 *
 
22
 * Contributor(s): Jonathan Merritt.
 
23
 *
 
24
 * ***** END GPL LICENSE BLOCK *****
 
25
 */
 
26
 
 
27
/**
 
28
 * To use the dynamic libtiff support, you must initialize the library using:
 
29
 *      libtiff_init()
 
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:
 
35
 *      libtiff_exit()
 
36
 * These functions are both declared in IMB_imbuf.h
 
37
 *
 
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 
 
41
 * version.
 
42
 */
 
43
#ifndef DYN_LIBTIFF_H
 
44
#include "tiffio.h"
 
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 */
 
55