summaryrefslogtreecommitdiffstats
path: root/tkimg/libtiff/tifftcl.decls
blob: 668fc03b9c4079b8b280149e2a6355c17714b493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
# tifftcl.decls -- -*- tcl -*-
#
# This file contains the declarations for all supported public functions
# that are exported by the TIFFTCL library via the stubs table. This file
# is used to generate the tifftclDecls.h/tifftclStubsLib.c/tifftclStubsInit.c
# files.
#

# Declare each of the functions in the public BLT interface.  Note that
# the an index should never be reused for a different function in order
# to preserve backwards compatibility.

library tifftcl

# Define the TIFFTCL interface:

interface tifftcl
scspec TIFFTCLAPI

#########################################################################
###  TIFF interface

# Source: tiffio.h ...

declare 0 {
    const char *TIFFGetVersion(void)
}
declare 1 {
    const TIFFCodec *TIFFFindCODEC(uint16 a)
}
declare 2 {
    TIFFCodec *TIFFRegisterCODEC(uint16 a, const char *b, TIFFInitMethod c)
}
declare 3 {
    void TIFFUnRegisterCODEC(TIFFCodec *a)
}
declare 4 {
    tdata_t _TIFFmalloc(tsize_t a)
}
declare 5 {
    tdata_t _TIFFrealloc(tdata_t a, tsize_t b)
}
declare 6 {
    void _TIFFmemset(tdata_t a, int b, tsize_t c)
}
declare 7 {
    void _TIFFmemcpy(tdata_t a, const tdata_t b, tsize_t c)
}
declare 8 {
    int _TIFFmemcmp(const tdata_t a, const tdata_t b, tsize_t c)
}
declare 9 {
    void _TIFFfree(tdata_t a)
}
declare 10 {
    void TIFFClose(TIFF *tiffptr)
}
declare 11 {
    int TIFFFlush(TIFF *tiffptr)
}
declare 12 {
    int TIFFFlushData(TIFF *tiffptr)
}
declare 13 {
    int TIFFGetField(TIFF *tiffptr, ttag_t a, ...)
}
declare 14 {
    int TIFFVGetField(TIFF *tiffptr, ttag_t a, va_list b)
}
declare 15 {
    int TIFFGetFieldDefaulted(TIFF *tiffptr, ttag_t a, ...)
}
declare 16 {
    int TIFFVGetFieldDefaulted(TIFF *tiffptr, ttag_t a, va_list b)
}
declare 17 {
    int TIFFReadDirectory(TIFF *tiffptr)
}
declare 18 {
    tsize_t TIFFScanlineSize(TIFF *tiffptr)
}
declare 19 {
    tsize_t TIFFRasterScanlineSize(TIFF *tiffptr)
}
declare 20 {
    tsize_t TIFFStripSize(TIFF *tiffptr)
}
declare 21 {
    tsize_t TIFFVStripSize(TIFF *tiffptr, uint32 a)
}
declare 22 {
    tsize_t TIFFTileRowSize(TIFF *tiffptr)
}
declare 23 {
    tsize_t TIFFTileSize(TIFF *tiffptr)
}
declare 24 {
    tsize_t TIFFVTileSize(TIFF *tiffptr, uint32 a)
}
declare 25 {
    uint32 TIFFDefaultStripSize(TIFF *tiffptr, uint32 a)
}
declare 26 {
    void TIFFDefaultTileSize(TIFF *tiffptr, uint32 *a, uint32 *b)
}
declare 27 {
    int TIFFFileno(TIFF *tiffptr)
}
declare 28 {
    int TIFFGetMode(TIFF *tiffptr)
}
declare 29 {
    int TIFFIsTiled(TIFF *tiffptr)
}
declare 30 {
    int TIFFIsByteSwapped(TIFF *tiffptr)
}
declare 31 {
    int TIFFIsUpSampled(TIFF *tiffptr)
}
declare 32 {
    int TIFFIsMSB2LSB(TIFF *tiffptr)
}
declare 33 {
    uint32 TIFFCurrentRow(TIFF *tiffptr)
}
declare 34 {
    tdir_t TIFFCurrentDirectory(TIFF *tiffptr)
}
declare 35 {
    tdir_t TIFFNumberOfDirectories(TIFF *tiffptr)
}
declare 36 {
    uint32 TIFFCurrentDirOffset(TIFF *tiffptr)
}
declare 37 {
    tstrip_t TIFFCurrentStrip(TIFF *tiffptr)
}
declare 38 {
    ttile_t TIFFCurrentTile(TIFF *tiffptr)
}
declare 39 {
    int TIFFReadBufferSetup(TIFF *tiffptr, tdata_t a, tsize_t b)
}
declare 40 {
    int TIFFWriteBufferSetup(TIFF *tiffptr, tdata_t a, tsize_t b)
}
declare 41 {
    int TIFFWriteCheck(TIFF *tiffptr, int a, const char *b)
}
declare 42 {
    int TIFFCreateDirectory(TIFF *tiffptr)
}
declare 43 {
    int TIFFLastDirectory(TIFF *tiffptr)
}
declare 44 {
    int TIFFSetDirectory(TIFF *tiffptr, tdir_t a)
}
declare 45 {
    int TIFFSetSubDirectory(TIFF *tiffptr, uint32 a)
}
declare 46 {
    int TIFFUnlinkDirectory(TIFF *tiffptr, tdir_t a)
}
declare 47 {
    int TIFFSetField(TIFF *tiffptr, ttag_t a, ...)
}
declare 48 {
    int TIFFVSetField(TIFF *tiffptr, ttag_t a, va_list b)
}
declare 49 {
    int TIFFWriteDirectory(TIFF *tiffptr)
}
declare 50 {
    int TIFFReassignTagToIgnore(enum TIFFIgnoreSense a, int b)
}
declare 51 {
    void TIFFPrintDirectory(TIFF *tiffptr, FILE *a, long b)
}
declare 52 {
    int TIFFReadScanline(TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c)
}
declare 53 {
    int TIFFWriteScanline(TIFF *tiffptr, tdata_t a, uint32 b, tsample_t c)
}
declare 54 {
    int TIFFReadRGBAImage(TIFF *tiffptr, uint32 a, uint32 b, uint32 *c, int d)
}
declare 55 {
    int TIFFReadRGBAStrip(TIFF *tiffptr, tstrip_t a, uint32 *b)
}
declare 56 {
    int TIFFReadRGBATile(TIFF *tiffptr, uint32 a, uint32 b, uint32 *c)
}
declare 57 {
    int TIFFRGBAImageOK(TIFF *tiffptr, char *a)
}
declare 58 {
    int TIFFRGBAImageBegin(TIFFRGBAImage *a, TIFF *tiffptr, int b, char *c)
}
declare 59 {
    int TIFFRGBAImageGet(TIFFRGBAImage *d, uint32 *c, uint32 b, uint32 a)
}
declare 60 {
    void TIFFRGBAImageEnd(TIFFRGBAImage *a)
}
declare 61 {
    TIFF *TIFFOpen(const char *b, const char *a)
}
declare 62 {
    TIFF *TIFFFdOpen(int a, const char *b, const char *c)
}
declare 63 {
    TIFF *TIFFClientOpen(const char *a, const char *b,
	    thandle_t c,
	    TIFFReadWriteProc d, TIFFReadWriteProc e,
	    TIFFSeekProc f, TIFFCloseProc g,
	    TIFFSizeProc h,
	    TIFFMapFileProc i, TIFFUnmapFileProc j)
}
declare 64 {
    const char *TIFFFileName(TIFF *tiffptr)
}
declare 65 {
    void TIFFError(const char *a, const char *b, ...)
}
declare 66 {
    void TIFFWarning(const char *a, const char *b, ...)
}
declare 67 {
    TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler a)
}
declare 68 {
    TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler a)
}
declare 69 {
    TIFFExtendProc TIFFSetTagExtender(TIFFExtendProc a)
}
declare 70 {
    ttile_t TIFFComputeTile(TIFF *tiffptr, uint32 a, uint32 b, uint32 c, tsample_t d)
}
declare 71 {
    int TIFFCheckTile(TIFF *tiffptr, uint32 d, uint32 c, uint32 b, tsample_t a)
}
declare 72 {
    ttile_t TIFFNumberOfTiles(TIFF *tiffptr)
}
declare 73 {
    tsize_t TIFFReadTile(TIFF *tiffptr,
	    tdata_t a, uint32 b, uint32 c, uint32 d, tsample_t e)
}
declare 74 {
    tsize_t TIFFWriteTile(TIFF *tiffptr,
	    tdata_t e, uint32 d, uint32 c, uint32 b, tsample_t a)
}
declare 75 {
    tstrip_t TIFFComputeStrip(TIFF *tiffptr, uint32 a, tsample_t b)
}
declare 76 {
    tstrip_t TIFFNumberOfStrips(TIFF *tiffptr)
}
declare 77 {
    tsize_t TIFFReadEncodedStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
}
declare 78 {
    tsize_t TIFFReadRawStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
}
declare 79 {
    tsize_t TIFFReadEncodedTile(TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c)
}
declare 80 {
    tsize_t TIFFReadRawTile(TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a)
}
declare 81 {
    tsize_t TIFFWriteEncodedStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
}
declare 82 {
    tsize_t TIFFWriteRawStrip(TIFF *tiffptr, tstrip_t a, tdata_t b, tsize_t c)
}
declare 83 {
    tsize_t TIFFWriteEncodedTile(TIFF *tiffptr, ttile_t a, tdata_t b, tsize_t c)
}
declare 84 {
    tsize_t TIFFWriteRawTile(TIFF *tiffptr, ttile_t c, tdata_t b, tsize_t a)
}
declare 85 {
    void TIFFSetWriteOffset(TIFF *tiffptr, toff_t a)
}
declare 86 {
    void TIFFSwabShort(uint16 *a)
}
declare 87 {
    void TIFFSwabLong(uint32 *a)
}
declare 88 {
    void TIFFSwabDouble(double *a)
}
declare 89 {
    void TIFFSwabArrayOfShort(uint16 *a, unsigned long b)
}
declare 90 {
    void TIFFSwabArrayOfLong(uint32 *b, unsigned long a)
}
declare 91 {
    void TIFFSwabArrayOfDouble(double *a, unsigned long b)
}
declare 92 {
    void TIFFReverseBits(unsigned char *a, unsigned long b)
}
declare 93 {
    const unsigned char *TIFFGetBitRevTable(int a)
}

# Source: tif_predict.h ...
declare 100 {
    int TIFFPredictorInit(TIFF *tiffptr)
}

# Source: tif_dir.h ...
declare 110 {
    void _TIFFSetupFieldInfo(TIFF *tiffptr, const TIFFFieldInfo a[], size_t b)
}
declare 111 {
    int _TIFFMergeFieldInfo(TIFF *tiffptr, const TIFFFieldInfo *a, int b)
}
declare 112 {
    void _TIFFPrintFieldInfo(TIFF *tiffptr, FILE *a)
}
declare 113 {
    const TIFFFieldInfo *TIFFFindFieldInfo(TIFF *tiffptr, ttag_t a, TIFFDataType b)
}
declare 114 {
    const TIFFFieldInfo *TIFFFieldWithTag(TIFF *tiffptr, ttag_t a)
}
declare 115 {
    TIFFDataType _TIFFSampleToTagType(TIFF *tiffptr)
}


# Source: tiffiop.h ...

declare 120 {
    int _TIFFgetMode(const char *a, const char *b)
}
declare 121 {
    int _TIFFNoRowEncode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
}
declare 122 {
    int _TIFFNoStripEncode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
}
declare 123 {
    int _TIFFNoTileEncode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
}
declare 124 {
    int _TIFFNoRowDecode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
}
declare 125 {
    int _TIFFNoStripDecode(TIFF *tiffptr, tidata_t a, tsize_t b, tsample_t c)
}
declare 126 {
    int _TIFFNoTileDecode(TIFF *tiffptr, tidata_t c, tsize_t b, tsample_t a)
}
declare 127 {
    void _TIFFNoPostDecode(TIFF *tiffptr, tidata_t a, tsize_t b)
}
declare 128 {
    int _TIFFNoPreCode(TIFF *tiffptr, tsample_t a)
}
declare 129 {
    int _TIFFNoSeek(TIFF *tiffptr, uint32 a)
}
declare 130 {
    void _TIFFSwab16BitData(TIFF *tiffptr, tidata_t a, tsize_t b)
}
declare 131 {
    void _TIFFSwab32BitData(TIFF *tiffptr, tidata_t b, tsize_t a)
}
declare 132 {
    void _TIFFSwab64BitData(TIFF *tiffptr, tidata_t a, tsize_t b)
}
declare 133 {
    int TIFFFlushData1(TIFF *tiffptr)
}
declare 134 {
    void TIFFFreeDirectory(TIFF *tiffptr)
}
declare 135 {
    int TIFFDefaultDirectory(TIFF *tiffptr)
}
declare 136 {
    int TIFFSetCompressionScheme(TIFF *tiffptr, int a)
}
declare 137 {
    void _TIFFSetDefaultCompressionState(TIFF *tiffptr)
}
declare 138 {
    uint32 _TIFFDefaultStripSize(TIFF *tiffptr, uint32 a)
}
declare 139 {
    void _TIFFDefaultTileSize(TIFF *tiffptr, uint32 *a, uint32 *b)
}
declare 140 {
    void _TIFFsetByteArray(void **a, void *b, uint32 c)
}
declare 141 {
    void _TIFFsetString(char **a, char *b)
}
declare 142 {
    void _TIFFsetShortArray(uint16 **a, uint16 *b, uint32 c)
}
declare 143 {
    void _TIFFsetLongArray(uint32 **a, uint32 *b, uint32 c)
}
declare 144 {
    void _TIFFsetFloatArray(float **a, float *b, uint32 c)
}
declare 145 {
    void _TIFFsetDoubleArray(double **a, double *b, uint32 c)
}
declare 146 {
    void _TIFFprintAscii(FILE *a, const char *b)
}
declare 147 {
    void _TIFFprintAsciiTag(FILE *a, const char *b, const char *c)
}
declare 148 {
    int TIFFInitDumpMode(TIFF *tiffptr, int a)
}
declare 149 generic {!PACKBITS_SUPPORT} {
    int TIFFInitPackBits(TIFF *tiffptr, int a)
}
declare 150 generic {!CCITT_SUPPORT} {
    int TIFFInitCCITTRLE(TIFF *tiffptr, int a)
}
declare 151 generic {!CCITT_SUPPORT} {
    int TIFFInitCCITTRLEW(TIFF *tiffptr, int a)
}
declare 152 generic {!CCITT_SUPPORT} {
    int TIFFInitCCITTFax3(TIFF *tiffptr, int a)
}
declare 153 generic {!CCITT_SUPPORT} {
    int TIFFInitCCITTFax4(TIFF *tiffptr, int a)
}
declare 154 generic {!THUNDER_SUPPORT} {
    int TIFFInitThunderScan(TIFF *tiffptr, int a)
}
declare 155 generic {!NEXT_SUPPORT} {
    int TIFFInitNeXT(TIFF *tiffptr, int a)
}
declare 156 generic {!LZW_SUPPORT} {
    int TIFFInitLZW(TIFF *tiffptr, int a)
}
declare 157 generic {!OJPEG_SUPPORT} {
    int TIFFInitOJPEG(TIFF *tiffptr, int a)
}
declare 158 generic {!JPEG_SUPPORT} {
    int TIFFInitJPEG(TIFF *tiffptr, int a)
}
declare 159 generic {!JBIG_SUPPORT} {
    int TIFFInitJBIG(TIFF *tiffptr, int a)
}
declare 160 generic {!ZIP_SUPPORT} {
    int TIFFInitZIP(TIFF *tiffptr, int a)
}
declare 161 generic {!PIXARLOG_SUPPORT} {
    int TIFFInitPixarLog(TIFF *tiffptr, int a)
}
declare 162 generic {!LOGLUV_SUPPORT} {
    int TIFFInitSGILog(TIFF *tiffptr, int a)
}

#########################################################################