1# tifftcl.decls -- -*- tcl -*-
2#
3# This file contains the declarations for all supported public functions
4# that are exported by the TIFFTCL library via the stubs table. This file
5# is used to generate the tifftclDecls.h/tifftclStubsLib.c/tifftclStubsInit.c
6# files.
7#
8
9# Declare each of the functions in the public BLT interface.  Note that
10# the an index should never be reused for a different function in order
11# to preserve backwards compatibility.
12
13library tifftcl
14
15# Define the TIFFTCL interface:
16
17interface tifftcl
18scspec TIFFTCLAPI
19
20#########################################################################
21###  TIFF interface
22
23# Source: tiffio.h ...
24
25declare 0 {
26    const char *TIFFGetVersion(void)
27}
28declare 1 {
29    const TIFFCodec *TIFFFindCODEC(uint16 a)
30}
31declare 2 {
32    TIFFCodec *TIFFRegisterCODEC(uint16 a, const char *b, TIFFInitMethod c)
33}
34declare 3 {
35    void TIFFUnRegisterCODEC(TIFFCodec *a)
36}
37declare 4 {
38    tdata_t _TIFFmalloc(tsize_t a)
39}
40declare 5 {
41    tdata_t _TIFFrealloc(tdata_t a, tsize_t b)
42}
43declare 6 {
44    void _TIFFmemset(tdata_t a, int b, tsize_t c)
45}
46declare 7 {
47    void _TIFFmemcpy(tdata_t a, const tdata_t b, tsize_t c)
48}
49declare 8 {
50    int _TIFFmemcmp(const tdata_t a, const tdata_t b, tsize_t c)
51}
52declare 9 {
53    void _TIFFfree(tdata_t a)
54}
55declare 10 {
56    void TIFFClose(TIFF *tiffptr)
57}
58declare 11 {
59    int TIFFFlush(TIFF *tiffptr)
60}
61declare 12 {
62    int TIFFFlushData(TIFF *tiffptr)
63}
64declare 13 {
65    int TIFFGetField(TIFF *tiffptr, ttag_t a, ...)
66}
67declare 14 {
68    int TIFFVGetField(TIFF *tiffptr, ttag_t a, va_list b)
69}
70declare 15 {
71    int TIFFGetFieldDefaulted(TIFF *tiffptr, ttag_t a, ...)
72}
73declare 16 {
74    int TIFFVGetFieldDefaulted(TIFF *tiffptr, ttag_t a, va_list b)
75}
76declare 17 {
77    int TIFFReadDirectory(TIFF *tiffptr)
78}
79declare 18 {
80    tsize_t TIFFScanlineSize(TIFF *tiffptr)
81}
82declare 19 {
83    tsize_t TIFFRasterScanlineSize(TIFF *tiffptr)
84}
85declare 20 {
86    tsize_t TIFFStripSize(TIFF *tiffptr)
87}
88declare 21 {
89    tsize_t TIFFVStripSize(TIFF *tiffptr, uint32 a)
90}
91declare 22 {
92    tsize_t TIFFTileRowSize(TIFF *tiffptr)
93}
94declare 23 {
95    tsize_t TIFFTileSize(TIFF *tiffptr)
96}
97declare 24 {
98    tsize_t TIFFVTileSize(TIFF *tiffptr, uint32 a)
99}
100declare 25 {
101    uint32 TIFFDefaultStripSize(TIFF *tiffptr, uint32 a)
102}
103declare 26 {
104    void TIFFDefaultTileSize(TIFF *tiffptr, uint32 *a, uint32 *b)
105}
106declare 27 {
107    int TIFFFileno(TIFF *tiffptr)
108}
109declare 28 {
110    int TIFFGetMode(TIFF *tiffptr)
111}
112declare 29 {
113    int TIFFIsTiled(TIFF *tiffptr)
114}
115declare 30 {
116    int TIFFIsByteSwapped(TIFF *tiffptr)
117}
118declare 31 {
119    int TIFFIsUpSampled(TIFF *tiffptr)
120}
121declare 32 {
122    int TIFFIsMSB2LSB(TIFF *tiffptr)
123}
124declare 33 {
125    uint32 TIFFCurrentRow(TIFF *tiffptr)
126}
127declare 34 {
128    tdir_t TIFFCurrentDirectory(TIFF *tiffptr)
129}
130declare 35 {
131    tdir_t TIFFNumberOfDirectories(TIFF *tiffptr)
132}
133declare 36 {
134    uint32 TIFFCurrentDirOffset(TIFF *tiffptr)
135}
136declare 37 {
137    tstrip_t TIFFCurrentStrip(TIFF *tiffptr)
138}
139declare 38 {
140    ttile_t TIFFCurrentTile(TIFF *tiffptr)
141}
142declare 39 {
143    int TIFFReadBufferSetup(TIFF *tiffptr, tdata_t a, tsize_t b)
144}
145declare 40 {
146    int TIFFWriteBufferSetup(TIFF *tiffptr, tdata_t a, tsize_t b)
147}
148declare 41 {
149    int TIFFWriteCheck(TIFF *tiffptr, int a, const char *b)
150}
151declare 42 {
152    int TIFFCreateDirectory(TIFF *tiffptr)
153}
154declare 43 {
155    int TIFFLastDirectory(TIFF *tiffptr)
156}
157declare 44 {
158    int TIFFSetDirectory(TIFF *tiffptr, tdir_t a)
159}
160declare 45 {
161    int TIFFSetSubDirectory(TIFF *tiffptr, uint32 a)
162}
163declare 46 {
164    int TIFFUnlinkDirectory(TIFF *tiffptr, tdir_t a)
165}
166declare 47 {
167    int TIFFSetField(TIFF *tiffptr, ttag_t a, ...)
168}
169declare 48 {
170    int TIFFVSetField(TIFF *tiffptr, ttag_t a, va_list b)
171}
172declare 49 {
173    int TIFFWriteDirectory(TIFF *tiffptr)
174}
175declare 50 {
176    int TIFFReassignTagToIgnore(enum TIFFIgnoreSense a, int b)
177}
178declare 51 {
179    void TIFFPrintDirectory(TIFF *tiffptr, FILE *a, long b)
180}
181declare 52 {
182    int TIFFReadScanline(TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c)
183}
184declare 53 {
185    int TIFFWriteScanline(TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c)
186}
187declare 54 {
188    int TIFFReadRGBAImage(TIFF *tiffptr, uint32 a, uint32 b, uint32 *c, int d)
189}
190declare 55 {
191    int TIFFReadRGBAStrip(TIFF *tiffptr, tstrip_t a, uint32 *b)
192}
193declare 56 {
194    int TIFFReadRGBATile(TIFF *tiffptr, uint32 a, uint32 b, uint32 *c)
195}
196declare 57 {
197    int TIFFRGBAImageOK(TIFF *tiffptr, char *a)
198}
199declare 58 {
200    int TIFFRGBAImageBegin(TIFFRGBAImage *a, TIFF *tiffptr, int b, char *c)
201}
202declare 59 {
203    int TIFFRGBAImageGet(TIFFRGBAImage *d, uint32 *c, uint32 b, uint32 a)
204}
205declare 60 {
206    void TIFFRGBAImageEnd(TIFFRGBAImage *a)
207}
208declare 61 {
209    TIFF *TIFFOpen(const char *b, const char *a)
210}
211declare 62 {
212    TIFF *TIFFFdOpen(int a, const char *b, const char *c)
213}
214declare 63 {
215    TIFF *TIFFClientOpen(const char *a, const char *b,
216	    thandle_t c,
217	    TIFFReadWriteProc d, TIFFReadWriteProc e,
218	    TIFFSeekProc f, TIFFCloseProc g,
219	    TIFFSizeProc h,
220	    TIFFMapFileProc i, TIFFUnmapFileProc j)
221}
222declare 64 {
223    const char *TIFFFileName(TIFF *tiffptr)
224}
225declare 65 {
226    void TIFFError(const char *a, const char *b, ...)
227}
228declare 66 {
229    void TIFFWarning(const char *a, const char *b, ...)
230}
231declare 67 {
232    TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler a)
233}
234declare 68 {
235    TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler a)
236}
237declare 69 {
238    TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc a)
239}
240declare 70 {
241    ttile_t TIFFComputeTile(TIFF *tiffptr, uint32 a, uint32 b, uint32 c, tsample_t d)
242}
243declare 71 {
244    int TIFFCheckTile(TIFF *tiffptr, uint32 d, uint32 c, uint32 b, tsample_t a)
245}
246declare 72 {
247    ttile_t TIFFNumberOfTiles(TIFF *tiffptr)
248}
249declare 73 {
250    tsize_t TIFFReadTile(TIFF *tiffptr,
251	    tdata_t a, uint32 b, uint32 c, uint32 d, tsample_t e)
252}
253declare 74 {
254    tsize_t TIFFWriteTile(TIFF *tiffptr,
255	    tdata_t e, uint32 d, uint32 c, uint32 b, tsample_t a)
256}
257declare 75 {
258    tstrip_t TIFFComputeStrip(TIFF *tiffptr, uint32 a, tsample_t b)
259}
260declare 76 {
261    tstrip_t TIFFNumberOfStrips(TIFF *tiffptr)
262}
263declare 77 {
264    tsize_t TIFFReadEncodedStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
265}
266declare 78 {
267    tsize_t TIFFReadRawStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
268}
269declare 79 {
270    tsize_t TIFFReadEncodedTile(TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c)
271}
272declare 80 {
273    tsize_t TIFFReadRawTile(TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a)
274}
275declare 81 {
276    tsize_t TIFFWriteEncodedStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
277}
278declare 82 {
279    tsize_t TIFFWriteRawStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
280}
281declare 83 {
282    tsize_t TIFFWriteEncodedTile(TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c)
283}
284declare 84 {
285    tsize_t TIFFWriteRawTile(TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a)
286}
287declare 85 {
288    void TIFFSetWriteOffset(TIFF *tiffptr, toff_t a)
289}
290declare 86 {
291    void TIFFSwabShort(uint16 *a)
292}
293declare 87 {
294    void TIFFSwabLong(uint32 *a)
295}
296declare 88 {
297    void TIFFSwabDouble(double *a)
298}
299declare 89 {
300    void TIFFSwabArrayOfShort(uint16 *a, unsigned long b)
301}
302declare 90 {
303    void TIFFSwabArrayOfLong(uint32 *b, unsigned long a)
304}
305declare 91 {
306    void TIFFSwabArrayOfDouble(double *a, unsigned long b)
307}
308declare 92 {
309    void TIFFReverseBits(unsigned char *a, unsigned long b)
310}
311declare 93 {
312    const unsigned char *TIFFGetBitRevTable(int a)
313}
314
315# Source: tif_predict.h ...
316declare 100 {
317    int TIFFPredictorInit(TIFF *tiffptr)
318}
319
320# Source: tif_dir.h ...
321declare 110 {
322    void _TIFFSetupFieldInfo(TIFF *tiffptr, const TIFFFieldInfo a[], size_t b)
323}
324declare 111 {
325    int _TIFFMergeFieldInfo(TIFF *tiffptr, const TIFFFieldInfo *a, int b)
326}
327declare 112 {
328    void _TIFFPrintFieldInfo(TIFF *tiffptr, FILE *a)
329}
330declare 113 {
331    const TIFFFieldInfo *TIFFFindFieldInfo(TIFF *tiffptr, ttag_t a, TIFFDataType b)
332}
333declare 114 {
334    const TIFFFieldInfo *TIFFFieldWithTag(TIFF *tiffptr, ttag_t a)
335}
336declare 115 {
337    TIFFDataType _TIFFSampleToTagType(TIFF *tiffptr)
338}
339
340
341# Source: tiffiop.h ...
342
343declare 120 {
344    int _TIFFgetMode(const char *a, const char *b)
345}
346declare 121 {
347    int _TIFFNoRowEncode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
348}
349declare 122 {
350    int _TIFFNoStripEncode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
351}
352declare 123 {
353    int _TIFFNoTileEncode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
354}
355declare 124 {
356    int _TIFFNoRowDecode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
357}
358declare 125 {
359    int _TIFFNoStripDecode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
360}
361declare 126 {
362    int _TIFFNoTileDecode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
363}
364declare 127 {
365    void _TIFFNoPostDecode(TIFF *tiffptr, tidata_t a, tsize_t b)
366}
367declare 128 {
368    int _TIFFNoPreCode(TIFF *tiffptr, tsample_t a)
369}
370declare 129 {
371    int _TIFFNoSeek(TIFF *tiffptr, uint32 a)
372}
373declare 130 {
374    void _TIFFSwab16BitData(TIFF *tiffptr, tidata_t a, tsize_t b)
375}
376declare 131 {
377    void _TIFFSwab32BitData(TIFF *tiffptr, tidata_t b, tsize_t a)
378}
379declare 132 {
380    void _TIFFSwab64BitData(TIFF *tiffptr, tidata_t a, tsize_t b)
381}
382declare 133 {
383    int TIFFFlushData1(TIFF *tiffptr)
384}
385declare 134 {
386    void TIFFFreeDirectory(TIFF *tiffptr)
387}
388declare 135 {
389    int TIFFDefaultDirectory(TIFF *tiffptr)
390}
391declare 136 {
392    int TIFFSetCompressionScheme(TIFF *tiffptr, int a)
393}
394declare 137 {
395    void _TIFFSetDefaultCompressionState(TIFF *tiffptr)
396}
397declare 138 {
398    uint32 _TIFFDefaultStripSize(TIFF *tiffptr, uint32 a)
399}
400declare 139 {
401    void _TIFFDefaultTileSize(TIFF *tiffptr, uint32 *a, uint32 *b)
402}
403declare 140 {
404    void _TIFFsetByteArray(void **a, void *b, uint32 c)
405}
406declare 141 {
407    void _TIFFsetString(char **a, char *b)
408}
409declare 142 {
410    void _TIFFsetShortArray(uint16 **a, uint16 *b, uint32 c)
411}
412declare 143 {
413    void _TIFFsetLongArray(uint32 **a, uint32 *b, uint32 c)
414}
415declare 144 {
416    void _TIFFsetFloatArray(float **a, float *b, uint32 c)
417}
418declare 145 {
419    void _TIFFsetDoubleArray(double **a, double *b, uint32 c)
420}
421declare 146 {
422    void _TIFFprintAscii(FILE *a, const char *b)
423}
424declare 147 {
425    void _TIFFprintAsciiTag(FILE *a, const char *b, const char *c)
426}
427declare 148 {
428    int TIFFInitDumpMode(TIFF *tiffptr, int a)
429}
430declare 149 generic {!PACKBITS_SUPPORT} {
431    int TIFFInitPackBits(TIFF *tiffptr, int a)
432}
433declare 150 generic {!CCITT_SUPPORT} {
434    int TIFFInitCCITTRLE(TIFF *tiffptr, int a)
435}
436declare 151 generic {!CCITT_SUPPORT} {
437    int TIFFInitCCITTRLEW(TIFF *tiffptr, int a)
438}
439declare 152 generic {!CCITT_SUPPORT} {
440    int TIFFInitCCITTFax3(TIFF *tiffptr, int a)
441}
442declare 153 generic {!CCITT_SUPPORT} {
443    int TIFFInitCCITTFax4(TIFF *tiffptr, int a)
444}
445declare 154 generic {!THUNDER_SUPPORT} {
446    int TIFFInitThunderScan(TIFF *tiffptr, int a)
447}
448declare 155 generic {!NEXT_SUPPORT} {
449    int TIFFInitNeXT(TIFF *tiffptr, int a)
450}
451declare 156 generic {!LZW_SUPPORT} {
452    int TIFFInitLZW(TIFF *tiffptr, int a)
453}
454declare 157 generic {!OJPEG_SUPPORT} {
455    int TIFFInitOJPEG(TIFF *tiffptr, int a)
456}
457declare 158 generic {!JPEG_SUPPORT} {
458    int TIFFInitJPEG(TIFF *tiffptr, int a)
459}
460declare 159 generic {!JBIG_SUPPORT} {
461    int TIFFInitJBIG(TIFF *tiffptr, int a)
462}
463declare 160 generic {!ZIP_SUPPORT} {
464    int TIFFInitZIP(TIFF *tiffptr, int a)
465}
466declare 161 generic {!PIXARLOG_SUPPORT} {
467    int TIFFInitPixarLog(TIFF *tiffptr, int a)
468}
469declare 162 generic {!LOGLUV_SUPPORT} {
470    int TIFFInitSGILog(TIFF *tiffptr, int a)
471}
472
473#########################################################################
474