1 /* libtiff bindings for vala
3 * Copyright (C) 2008 Christian Meyer
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * Christian Meyer <chrisime@gnome.org>
23 [CCode (cname = "", lower_case_cprefix = "", cheader_filename = "tiffio.h")]
26 [CCode (cname = "TIFFDataType", cprefix = "TIFF_")]
27 public enum DataType {
28 NOTYPE, BYTE, ASCII, SHORT, LONG, RATIONAL, SBYTE, UNDEFINED, SSHORT,
29 SLONG, SRATIONAL, FLOAT, DOUBLE, IFD
32 [CCode (cname = "TIFFIgnoreSense", cprefix = "TIS_")]
33 public enum IgnoreSense {
37 [CCode (cname = "TIFFHeader")]
38 public struct Header {
39 public uint16 tiff_magic;
40 public uint16 tiff_version;
41 public uint32 tiff_diroff;
44 [CCode (cname = "TIFFDirEntry")]
45 public struct DirEntry {
46 public uint16 tdir_tag;
47 public uint16 tdir_type;
48 public uint32 tdir_count;
49 public uint32 tdir_offset;
52 [CCode (cname = "TIFFCIELabToRGB")]
53 public struct CIELabToRGB {
61 public Display display;
62 [CCode (array_length = false)]
64 [CCode (array_length = false)]
66 [CCode (array_length = false)]
70 [CCode (cname = "TIFFCodec")]
74 public InitMethod init;
77 [CCode (cname = "TIFFDisplay")]
78 public struct Display {
79 public float[][] d_mat;
89 public float d_gammaR;
90 public float d_gammaG;
91 public float d_gammaB;
94 [CCode (cname = "TIFFFieldInfo")]
95 public struct FieldInfo {
96 public ttag_t field_tag;
97 public short field_readcount;
98 public short field_writecount;
99 public DataType field_type;
100 public ushort field_bit;
101 public uchar field_oktochange;
102 public uchar field_passcount;
103 public string field_name;
107 public class PutUnion {
108 public delegate void any (RGBAImage p1);
109 TileContigRoutine contig;
110 TileSeparateRoutine separate;
113 [CCode (cname = "TIFFRGBAImage")]
114 public struct RGBAImage {
117 public int stoponerr;
121 public uint32 height;
122 public uint16 bitspersample;
123 public uint16 samplesperpixel;
124 public uint16 orientation;
125 public uint16 req_orientation;
126 public uint16 photometric;
127 public uint16[] redcmap;
128 public uint16[] greencmap;
129 public uint16[] bluecmap;
132 public uint32[,] BWmap;
133 public uint32[,] PALmap;
134 public YCbCrToRGB ycbcr;
135 public CIELabToRGB cielab;
136 public int row_offset;
137 public int col_offset;
140 [CCode (cname = "TIFFTagMethods")]
141 public struct TagMethods {
142 /* *****************************
143 public TIFFVSetMethod vsetfield;
144 public TIFFVGetMethod vgetfield;
145 ***************************** */
146 public PrintMethod printdir;
149 [CCode (cname = "TIFFTagValue")]
150 public struct TagValue {
151 public const FieldInfo info;
156 [CCode (cname = "TIFFYCbCrToRGB")]
157 public struct YCbCrToRGB {
158 public RGBValue clamptab;
161 public int32[] Cr_g_tab;
162 public int32[] Cb_g_tab;
163 public int32[] Y_tab;
166 [CCode (cname = "TIFFRGBValue")]
167 public struct RGBValue : uchar { }
169 [CCode (cname = "void")]
171 public class tdata_t { }
172 [CCode (cname = "uint16")]
173 public struct tdir_t : uint16 { }
174 [CCode (cname = "void")]
176 public class thandle_t { }
177 [CCode (cname = "uint32")]
178 public struct toff_t : uint32 { }
179 [CCode (cname = "uint16")]
180 public struct tsample_t : uint16 { }
181 [CCode (cname = "int32")]
182 public struct tsize_t : int32 { }
183 [CCode (cname = "uint32")]
184 public struct tstrip_t : uint32 { }
185 [CCode (cname = "uint32")]
186 public struct ttag_t : uint32 { }
187 [CCode (cname = "uint32")]
188 public struct ttile_t : uint32 { }
190 [CCode (has_target = false)]
191 public delegate int get (RGBAImage p1, uint32[] p2, uint32 p3, uint32 p4);
192 [CCode (cname = "TIFFCloseProc", has_target = false)]
193 public delegate int CloseProc (thandle_t p1);
194 /* ***********************************************************************************
195 [CCode (cname = "TIFFErrorHandler", has_target = false)]
196 public delegate void ErrorHandler (string p1, string p2, void* p3);
197 [CCode (cname = "TIFFErrorHandlerExt", has_target = false)]
198 public delegate void ErrorHandlerExt (thandle_t p1, string p2, string p3, ...);
199 *********************************************************************************** */
200 [CCode (cname = "TIFFExtendProc", has_target = false)]
201 public delegate void ExtendProc (TIFF p1);
202 [CCode (cname = "TIFFInitMethod", has_target = false)]
203 public delegate int InitMethod (TIFF p1, int p2);
204 [CCode (cname = "TIFFMapFileProc", has_target = false)]
205 public delegate int MapFileProc (thandle_t p1, ref tdata_t p2, ref toff_t p3);
206 [CCode (cname = "TIFFPrintMethod", has_target = false)]
207 public delegate void PrintMethod (TIFF p1, GLib.FileStream p2, long p3);
208 [CCode (cname = "TIFFReadWriteProc", has_target = false)]
209 public delegate tsize_t ReadWriteProc (thandle_t p1, tdata_t p2, tsize_t p3);
210 [CCode (cname = "TIFFSeekProc", has_target = false)]
211 public delegate toff_t SeekProc (thandle_t p1, toff_t p2, int p3);
212 [CCode (cname = "TIFFSizeProc", has_target = false)]
213 public delegate toff_t SizeProc (thandle_t p1);
214 [CCode (cname = "TIFFUnmapFileProc", has_target = false)]
215 public delegate void UnmapFileProc (thandle_t p1, tdata_t p2, toff_t p3);
216 /* *************************************************************
217 [CCode (cname = "TIFFVGetMethod", has_target = false)]
218 public delegate int VGetMethod (TIFF p1, ttag_t p2, ...);
219 [CCode (cname = "TIFFVSetMethod", has_target = false)]
220 public delegate int VSetMethod (TIFF p1, ttag_t p2, ...);
221 ************************************************************* */
222 [CCode (cname = "tileContigRoutine", has_target = false)]
223 public delegate void TileContigRoutine (RGBAImage p1, uint32[] p2, uint32 p3, uint32 p4, uint32 p5, uint32 p6, int32 p7, int32 p8, uchar *p9);
224 [CCode (cname = "tileSeparateRoutine", has_target = false)]
225 public delegate void TileSeparateRoutine (RGBAImage p1, uint32[] p2, uint32 p3, uint32 p4, uint32 p5, uint32 p6, int32 p7, int32 p8, uchar p9, uchar p10, uchar* p11, uchar* p12);
227 public const ttag_t CIELABTORGB_TABLE_RANGE;
228 public const ttag_t CLEANFAXDATA_CLEAN;
229 public const ttag_t CLEANFAXDATA_REGENERATED;
230 public const ttag_t CLEANFAXDATA_UNCLEAN;
231 public const ttag_t COLORRESPONSEUNIT_100000S;
232 public const ttag_t COLORRESPONSEUNIT_10000S;
233 public const ttag_t COLORRESPONSEUNIT_1000S;
234 public const ttag_t COLORRESPONSEUNIT_100S;
235 public const ttag_t COLORRESPONSEUNIT_10S;
236 public const ttag_t COMPRESSION_ADOBE_DEFLATE;
237 public const ttag_t COMPRESSION_CCITTFAX3;
238 public const ttag_t COMPRESSION_CCITTFAX4;
239 public const ttag_t COMPRESSION_CCITTRLE;
240 public const ttag_t COMPRESSION_CCITTRLEW;
241 public const ttag_t COMPRESSION_CCITT_T4;
242 public const ttag_t COMPRESSION_CCITT_T6;
243 public const ttag_t COMPRESSION_DEFLATE;
244 public const ttag_t COMPRESSION_IT8BL;
245 public const ttag_t COMPRESSION_IT8CTPAD;
246 public const ttag_t COMPRESSION_IT8LW;
247 public const ttag_t COMPRESSION_IT8MP;
248 public const ttag_t COMPRESSION_JBIG;
249 public const ttag_t COMPRESSION_JP2000;
250 public const ttag_t COMPRESSION_JPEG;
251 public const ttag_t COMPRESSION_LZW;
252 public const ttag_t COMPRESSION_NEXT;
253 public const ttag_t COMPRESSION_NONE;
254 public const ttag_t COMPRESSION_OJPEG;
255 public const ttag_t COMPRESSION_PACKBITS;
256 public const ttag_t COMPRESSION_PIXARFILM;
257 public const ttag_t COMPRESSION_PIXARLOG;
258 public const ttag_t COMPRESSION_SGILOG;
259 public const ttag_t COMPRESSION_SGILOG24;
260 public const ttag_t COMPRESSION_THUNDERSCAN;
261 public const ttag_t DCSIMAGERFILTER_CFA;
262 public const ttag_t DCSIMAGERFILTER_IR;
263 public const ttag_t DCSIMAGERFILTER_MONO;
264 public const ttag_t DCSIMAGERFILTER_OTHER;
265 public const ttag_t DCSIMAGERMODEL_M3;
266 public const ttag_t DCSIMAGERMODEL_M5;
267 public const ttag_t DCSIMAGERMODEL_M6;
268 public const ttag_t DCSINTERPMODE_NORMAL;
269 public const ttag_t DCSINTERPMODE_PREVIEW;
270 public const ttag_t EXIFTAG_APERTUREVALUE;
271 public const ttag_t EXIFTAG_BRIGHTNESSVALUE;
272 public const ttag_t EXIFTAG_CFAPATTERN;
273 public const ttag_t EXIFTAG_COLORSPACE;
274 public const ttag_t EXIFTAG_COMPRESSEDBITSPERPIXEL;
275 public const ttag_t EXIFTAG_CONTRAST;
276 public const ttag_t EXIFTAG_CUSTOMRENDERED;
277 public const ttag_t EXIFTAG_DATETIMEORIGINAL;
278 public const ttag_t EXIFTAG_DEVICESETTINGDESCRIPTION;
279 public const ttag_t EXIFTAG_DIGITALZOOMRATIO;
280 public const ttag_t EXIFTAG_EXPOSUREBIASVALUE;
281 public const ttag_t EXIFTAG_EXPOSUREINDEX;
282 public const ttag_t EXIFTAG_EXPOSUREMODE;
283 public const ttag_t EXIFTAG_EXPOSUREPROGRAM;
284 public const ttag_t EXIFTAG_EXPOSURETIME;
285 public const ttag_t EXIFTAG_FILESOURCE;
286 public const ttag_t EXIFTAG_FLASH;
287 public const ttag_t EXIFTAG_FLASHENERGY;
288 public const ttag_t EXIFTAG_FLASHPIXVERSION;
289 public const ttag_t EXIFTAG_FNUMBER;
290 public const ttag_t EXIFTAG_FOCALLENGTH;
291 public const ttag_t EXIFTAG_FOCALLENGTHIN35MMFILM;
292 public const ttag_t EXIFTAG_FOCALPLANERESOLUTIONUNIT;
293 public const ttag_t EXIFTAG_FOCALPLANEXRESOLUTION;
294 public const ttag_t EXIFTAG_FOCALPLANEYRESOLUTION;
295 public const ttag_t EXIFTAG_GAINCONTROL;
296 public const ttag_t EXIFTAG_IMAGEUNIQUEID;
297 public const ttag_t EXIFTAG_ISOSPEEDRATINGS;
298 public const ttag_t EXIFTAG_LIGHTSOURCE;
299 public const ttag_t EXIFTAG_MAKERNOTE;
300 public const ttag_t EXIFTAG_MAXAPERTUREVALUE;
301 public const ttag_t EXIFTAG_METERINGMODE;
302 public const ttag_t EXIFTAG_OECF;
303 public const ttag_t EXIFTAG_PIXELXDIMENSION;
304 public const ttag_t EXIFTAG_PIXELYDIMENSION;
305 public const ttag_t EXIFTAG_RELATEDSOUNDFILE;
306 public const ttag_t EXIFTAG_SATURATION;
307 public const ttag_t EXIFTAG_SCENECAPTURETYPE;
308 public const ttag_t EXIFTAG_SCENETYPE;
309 public const ttag_t EXIFTAG_SENSINGMETHOD;
310 public const ttag_t EXIFTAG_SHARPNESS;
311 public const ttag_t EXIFTAG_SHUTTERSPEEDVALUE;
312 public const ttag_t EXIFTAG_SPATIALFREQUENCYRESPONSE;
313 public const ttag_t EXIFTAG_SPECTRALSENSITIVITY;
314 public const ttag_t EXIFTAG_SUBJECTAREA;
315 public const ttag_t EXIFTAG_SUBJECTDISTANCE;
316 public const ttag_t EXIFTAG_SUBJECTDISTANCERANGE;
317 public const ttag_t EXIFTAG_SUBJECTLOCATION;
318 public const ttag_t EXIFTAG_SUBSECTIME;
319 public const ttag_t EXIFTAG_SUBSECTIMEDIGITIZED;
320 public const ttag_t EXIFTAG_SUBSECTIMEORIGINAL;
321 public const ttag_t EXIFTAG_USERCOMMENT;
322 public const ttag_t EXIFTAG_WHITEBALANCE;
323 public const ttag_t EXTRASAMPLE_ASSOCALPHA;
324 public const ttag_t EXTRASAMPLE_UNASSALPHA;
325 public const ttag_t EXTRASAMPLE_UNSPECIFIED;
326 public const ttag_t FAXMODE_BYTEALIGN;
327 public const ttag_t FAXMODE_CLASSIC;
328 public const ttag_t FAXMODE_NOEOL;
329 public const ttag_t FAXMODE_NORTC;
330 public const ttag_t FAXMODE_WORDALIGN;
331 public const ttag_t FIELD_CUSTOM;
332 public const ttag_t FILETYPE_MASK;
333 public const ttag_t FILETYPE_PAGE;
334 public const ttag_t FILETYPE_REDUCEDIMAGE;
335 public const ttag_t FILLORDER_LSB2MSB;
336 public const ttag_t FILLORDER_MSB2LSB;
337 public const ttag_t GRAYRESPONSEUNIT_100000S;
338 public const ttag_t GRAYRESPONSEUNIT_10000S;
339 public const ttag_t GRAYRESPONSEUNIT_1000S;
340 public const ttag_t GRAYRESPONSEUNIT_100S;
341 public const ttag_t GRAYRESPONSEUNIT_10S;
342 public const ttag_t GROUP3OPT_2DENCODING;
343 public const ttag_t GROUP3OPT_FILLBITS;
344 public const ttag_t GROUP3OPT_UNCOMPRESSED;
345 public const ttag_t GROUP4OPT_UNCOMPRESSED;
346 public const ttag_t INKSET_CMYK;
347 public const ttag_t INKSET_MULTIINK;
348 public const ttag_t JPEGCOLORMODE_RAW;
349 public const ttag_t JPEGCOLORMODE_RGB;
350 public const ttag_t JPEGPROC_BASELINE;
351 public const ttag_t JPEGPROC_LOSSLESS;
352 public const ttag_t JPEGTABLESMODE_HUFF;
353 public const ttag_t JPEGTABLESMODE_QUANT;
354 public const ttag_t LOGLUV_PUBLIC;
355 public const ttag_t MDI_BIGENDIAN;
356 public const ttag_t MDI_LITTLEENDIAN;
357 public const ttag_t OFILETYPE_IMAGE;
358 public const ttag_t OFILETYPE_PAGE;
359 public const ttag_t OFILETYPE_REDUCEDIMAGE;
360 public const ttag_t ORIENTATION_BOTLEFT;
361 public const ttag_t ORIENTATION_BOTRIGHT;
362 public const ttag_t ORIENTATION_LEFTBOT;
363 public const ttag_t ORIENTATION_LEFTTOP;
364 public const ttag_t ORIENTATION_RIGHTBOT;
365 public const ttag_t ORIENTATION_RIGHTTOP;
366 public const ttag_t ORIENTATION_TOPLEFT;
367 public const ttag_t ORIENTATION_TOPRIGHT;
368 public const ttag_t PHOTOMETRIC_CIELAB;
369 public const ttag_t PHOTOMETRIC_ICCLAB;
370 public const ttag_t PHOTOMETRIC_ITULAB;
371 public const ttag_t PHOTOMETRIC_LOGL;
372 public const ttag_t PHOTOMETRIC_LOGLUV;
373 public const ttag_t PHOTOMETRIC_MASK;
374 public const ttag_t PHOTOMETRIC_MINISBLACK;
375 public const ttag_t PHOTOMETRIC_MINISWHITE;
376 public const ttag_t PHOTOMETRIC_PALETTE;
377 public const ttag_t PHOTOMETRIC_RGB;
378 public const ttag_t PHOTOMETRIC_SEPARATED;
379 public const ttag_t PHOTOMETRIC_YCBCR;
380 public const ttag_t PIXARLOGDATAFMT_11BITLOG;
381 public const ttag_t PIXARLOGDATAFMT_12BITPICIO;
382 public const ttag_t PIXARLOGDATAFMT_16BIT;
383 public const ttag_t PIXARLOGDATAFMT_8BIT;
384 public const ttag_t PIXARLOGDATAFMT_8BITABGR;
385 public const ttag_t PIXARLOGDATAFMT_FLOAT;
386 public const ttag_t PLANARCONFIG_CONTIG;
387 public const ttag_t PLANARCONFIG_SEPARATE;
388 public const ttag_t PREDICTOR_FLOATINGPOINT;
389 public const ttag_t PREDICTOR_HORIZONTAL;
390 public const ttag_t PREDICTOR_NONE;
391 public const ttag_t RESUNIT_CENTIMETER;
392 public const ttag_t RESUNIT_INCH;
393 public const ttag_t RESUNIT_NONE;
394 public const ttag_t SAMPLEFORMAT_COMPLEXIEEEFP;
395 public const ttag_t SAMPLEFORMAT_COMPLEXINT;
396 public const ttag_t SAMPLEFORMAT_IEEEFP;
397 public const ttag_t SAMPLEFORMAT_INT;
398 public const ttag_t SAMPLEFORMAT_UINT;
399 public const ttag_t SAMPLEFORMAT_VOID;
400 public const ttag_t SGILOGDATAFMT_16BIT;
401 public const ttag_t SGILOGDATAFMT_8BIT;
402 public const ttag_t SGILOGDATAFMT_FLOAT;
403 public const ttag_t SGILOGDATAFMT_RAW;
404 public const ttag_t SGILOGENCODE_NODITHER;
405 public const ttag_t SGILOGENCODE_RANDITHER;
406 public const ttag_t THRESHHOLD_BILEVEL;
407 public const ttag_t THRESHHOLD_ERRORDIFFUSE;
408 public const ttag_t THRESHHOLD_HALFTONE;
409 public const ttag_t TIFFPRINT_COLORMAP;
410 public const ttag_t TIFFPRINT_CURVES;
411 public const ttag_t TIFFPRINT_JPEGACTABLES;
412 public const ttag_t TIFFPRINT_JPEGDCTABLES;
413 public const ttag_t TIFFPRINT_JPEGQTABLES;
414 public const ttag_t TIFFPRINT_NONE;
415 public const ttag_t TIFFPRINT_STRIPS;
416 public const ttag_t TIFFTAG_ANTIALIASSTRENGTH;
417 public const ttag_t TIFFTAG_ARTIST;
418 public const ttag_t TIFFTAG_ASSHOTPREPROFILEMATRIX;
419 public const ttag_t TIFFTAG_BADFAXLINES;
420 public const ttag_t TIFFTAG_BASELINESHARPNESS;
421 public const ttag_t TIFFTAG_BESTQUALITYSCALE;
422 public const ttag_t TIFFTAG_BITSPERSAMPLE;
423 public const ttag_t TIFFTAG_BLACKLEVELDELTAH;
424 public const ttag_t TIFFTAG_BLACKLEVELREPEATDIM;
425 public const ttag_t TIFFTAG_CALIBRATIONILLUMINANT2;
426 public const ttag_t TIFFTAG_CAMERACALIBRATION2;
427 public const ttag_t TIFFTAG_CAMERASERIALNUMBER;
428 public const ttag_t TIFFTAG_CELLLENGTH;
429 public const ttag_t TIFFTAG_CELLWIDTH;
430 public const ttag_t TIFFTAG_CHROMABLURRADIUS;
431 public const ttag_t TIFFTAG_CLEANFAXDATA;
432 public const ttag_t TIFFTAG_CLIPPATH;
433 public const ttag_t TIFFTAG_COLORMAP;
434 public const ttag_t TIFFTAG_COLORRESPONSEUNIT;
435 public const ttag_t TIFFTAG_COMPRESSION;
436 public const ttag_t TIFFTAG_CONSECUTIVEBADFAXLINES;
437 public const ttag_t TIFFTAG_COPYRIGHT;
438 public const ttag_t TIFFTAG_CURRENTPREPROFILEMATRIX;
439 public const ttag_t TIFFTAG_DATATYPE;
440 public const ttag_t TIFFTAG_DATETIME;
441 public const ttag_t TIFFTAG_DCSBALANCEARRAY;
442 public const ttag_t TIFFTAG_DCSCALIBRATIONFD;
443 public const ttag_t TIFFTAG_DCSCLIPRECTANGLE;
444 public const ttag_t TIFFTAG_DCSCORRECTMATRIX;
445 public const ttag_t TIFFTAG_DCSGAMMA;
446 public const ttag_t TIFFTAG_DCSHUESHIFTVALUES;
447 public const ttag_t TIFFTAG_DCSIMAGERTYPE;
448 public const ttag_t TIFFTAG_DCSINTERPMODE;
449 public const ttag_t TIFFTAG_DCSTOESHOULDERPTS;
450 public const ttag_t TIFFTAG_DEFAULTCROPORIGIN;
451 public const ttag_t TIFFTAG_DNGBACKWARDVERSION;
452 public const ttag_t TIFFTAG_DNGPRIVATEDATA;
453 public const ttag_t TIFFTAG_DNGVERSION;
454 public const ttag_t TIFFTAG_DOCUMENTNAME;
455 public const ttag_t TIFFTAG_DOTRANGE;
456 public const ttag_t TIFFTAG_EXIFIFD;
457 public const ttag_t TIFFTAG_EXTRASAMPLES;
458 public const ttag_t TIFFTAG_FAXDCS;
459 public const ttag_t TIFFTAG_FAXFILLFUNC;
460 public const ttag_t TIFFTAG_FAXMODE;
461 public const ttag_t TIFFTAG_FAXRECVPARAMS;
462 public const ttag_t TIFFTAG_FAXRECVTIME;
463 public const ttag_t TIFFTAG_FAXSUBADDRESS;
464 public const ttag_t TIFFTAG_FEDEX_EDR;
465 public const ttag_t TIFFTAG_FILLORDER;
466 public const ttag_t TIFFTAG_FRAMECOUNT;
467 public const ttag_t TIFFTAG_FREEBYTECOUNTS;
468 public const ttag_t TIFFTAG_FREEOFFSETS;
469 public const ttag_t TIFFTAG_GPSIFD;
470 public const ttag_t TIFFTAG_GRAYRESPONSECURVE;
471 public const ttag_t TIFFTAG_GRAYRESPONSEUNIT;
472 public const ttag_t TIFFTAG_GROUP3OPTIONS;
473 public const ttag_t TIFFTAG_GROUP4OPTIONS;
474 public const ttag_t TIFFTAG_HALFTONEHINTS;
475 public const ttag_t TIFFTAG_HOSTCOMPUTER;
476 public const ttag_t TIFFTAG_ICCPROFILE;
477 public const ttag_t TIFFTAG_IMAGEDEPTH;
478 public const ttag_t TIFFTAG_IMAGEDESCRIPTION;
479 public const ttag_t TIFFTAG_IMAGELENGTH;
480 public const ttag_t TIFFTAG_IMAGEWIDTH;
481 public const ttag_t TIFFTAG_INKNAMES;
482 public const ttag_t TIFFTAG_INKSET;
483 public const ttag_t TIFFTAG_INTEROPERABILITYIFD;
484 public const ttag_t TIFFTAG_IT8BITSPEREXTENDEDRUNLENGTH;
485 public const ttag_t TIFFTAG_IT8BITSPERRUNLENGTH;
486 public const ttag_t TIFFTAG_IT8BKGCOLORINDICATOR;
487 public const ttag_t TIFFTAG_IT8BKGCOLORVALUE;
488 public const ttag_t TIFFTAG_IT8COLORCHARACTERIZATION;
489 public const ttag_t TIFFTAG_IT8COLORSEQUENCE;
490 public const ttag_t TIFFTAG_IT8COLORTABLE;
491 public const ttag_t TIFFTAG_IT8HCUSAGE;
492 public const ttag_t TIFFTAG_IT8HEADER;
493 public const ttag_t TIFFTAG_IT8IMAGECOLORINDICATOR;
494 public const ttag_t TIFFTAG_IT8IMAGECOLORVALUE;
495 public const ttag_t TIFFTAG_IT8PIXELINTENSITYRANGE;
496 public const ttag_t TIFFTAG_IT8RASTERPADDING;
497 public const ttag_t TIFFTAG_IT8SITE;
498 public const ttag_t TIFFTAG_IT8TRANSPARENCYINDICATOR;
499 public const ttag_t TIFFTAG_IT8TRAPINDICATOR;
500 public const ttag_t TIFFTAG_JBIGOPTIONS;
501 public const ttag_t TIFFTAG_JPEGACTABLES;
502 public const ttag_t TIFFTAG_JPEGCOLORMODE;
503 public const ttag_t TIFFTAG_JPEGDCTABLES;
504 public const ttag_t TIFFTAG_JPEGIFBYTECOUNT;
505 public const ttag_t TIFFTAG_JPEGIFOFFSET;
506 public const ttag_t TIFFTAG_JPEGLOSSLESSPREDICTORS;
507 public const ttag_t TIFFTAG_JPEGPOINTTRANSFORM;
508 public const ttag_t TIFFTAG_JPEGPROC;
509 public const ttag_t TIFFTAG_JPEGQTABLES;
510 public const ttag_t TIFFTAG_JPEGQUALITY;
511 public const ttag_t TIFFTAG_JPEGRESTARTINTERVAL;
512 public const ttag_t TIFFTAG_JPEGTABLESMODE;
513 public const ttag_t TIFFTAG_LENSINFO;
514 public const ttag_t TIFFTAG_LINEARIZATIONTABLE;
515 public const ttag_t TIFFTAG_LOCALIZEDCAMERAMODEL;
516 public const ttag_t TIFFTAG_MAKE;
517 public const ttag_t TIFFTAG_MAKERNOTESAFETY;
518 public const ttag_t TIFFTAG_MATTEING;
519 public const ttag_t TIFFTAG_MAXSAMPLEVALUE;
520 public const ttag_t TIFFTAG_MINSAMPLEVALUE;
521 public const ttag_t TIFFTAG_MODEL;
522 public const ttag_t TIFFTAG_NUMBEROFINKS;
523 public const ttag_t TIFFTAG_OPIPROXY;
524 public const ttag_t TIFFTAG_ORIENTATION;
525 public const ttag_t TIFFTAG_OSUBFILETYPE;
526 public const ttag_t TIFFTAG_PAGENAME;
527 public const ttag_t TIFFTAG_PAGENUMBER;
528 public const ttag_t TIFFTAG_PHOTOMETRIC;
529 public const ttag_t TIFFTAG_PHOTOSHOP;
530 public const ttag_t TIFFTAG_PIXARLOGDATAFMT;
531 public const ttag_t TIFFTAG_PIXARLOGQUALITY;
532 public const ttag_t TIFFTAG_PIXAR_FOVCOT;
533 public const ttag_t TIFFTAG_PIXAR_IMAGEFULLLENGTH;
534 public const ttag_t TIFFTAG_PIXAR_IMAGEFULLWIDTH;
535 public const ttag_t TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA;
536 public const ttag_t TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN;
537 public const ttag_t TIFFTAG_PIXAR_TEXTUREFORMAT;
538 public const ttag_t TIFFTAG_PIXAR_WRAPMODES;
539 public const ttag_t TIFFTAG_PLANARCONFIG;
540 public const ttag_t TIFFTAG_PREDICTOR;
541 public const ttag_t TIFFTAG_PRIMARYCHROMATICITIES;
542 public const ttag_t TIFFTAG_RAWDATAUNIQUEID;
543 public const ttag_t TIFFTAG_REDUCTIONMATRIX1;
544 public const ttag_t TIFFTAG_REFERENCEBLACKWHITE;
545 public const ttag_t TIFFTAG_REGIONAFFINE;
546 public const ttag_t TIFFTAG_REGIONTACKPOINT;
547 public const ttag_t TIFFTAG_REGIONWARPCORNERS;
548 public const ttag_t TIFFTAG_RESOLUTIONUNIT;
549 public const ttag_t TIFFTAG_RICHTIFFIPTC;
550 public const ttag_t TIFFTAG_ROWSPERSTRIP;
551 public const ttag_t TIFFTAG_SAMPLEFORMAT;
552 public const ttag_t TIFFTAG_SAMPLESPERPIXEL;
553 public const ttag_t TIFFTAG_SGILOGDATAFMT;
554 public const ttag_t TIFFTAG_SGILOGENCODE;
555 public const ttag_t TIFFTAG_SMAXSAMPLEVALUE;
556 public const ttag_t TIFFTAG_SMINSAMPLEVALUE;
557 public const ttag_t TIFFTAG_SOFTWARE;
558 public const ttag_t TIFFTAG_STONITS;
559 public const ttag_t TIFFTAG_STRIPBYTECOUNTS;
560 public const ttag_t TIFFTAG_STRIPOFFSETS;
561 public const ttag_t TIFFTAG_SUBFILETYPE;
562 public const ttag_t TIFFTAG_SUBIFD;
563 public const ttag_t TIFFTAG_T4OPTIONS;
564 public const ttag_t TIFFTAG_T6OPTIONS;
565 public const ttag_t TIFFTAG_TARGETPRINTER;
566 public const ttag_t TIFFTAG_THRESHHOLDING;
567 public const ttag_t TIFFTAG_TILEBYTECOUNTS;
568 public const ttag_t TIFFTAG_TILEDEPTH;
569 public const ttag_t TIFFTAG_TILELENGTH;
570 public const ttag_t TIFFTAG_TILEOFFSETS;
571 public const ttag_t TIFFTAG_TILEWIDTH;
572 public const ttag_t TIFFTAG_TRANSFERFUNCTION;
573 public const ttag_t TIFFTAG_UNIQUECAMERAMODEL;
574 public const ttag_t TIFFTAG_WHITEPOINT;
575 public const ttag_t TIFFTAG_WRITERSERIALNUMBER;
576 public const ttag_t TIFFTAG_XMLPACKET;
577 public const ttag_t TIFFTAG_XPOSITION;
578 public const ttag_t TIFFTAG_XRESOLUTION;
579 public const ttag_t TIFFTAG_YCBCRCOEFFICIENTS;
580 public const ttag_t TIFFTAG_YCBCRPOSITIONING;
581 public const ttag_t TIFFTAG_YCBCRSUBSAMPLING;
582 public const ttag_t TIFFTAG_YPOSITION;
583 public const ttag_t TIFFTAG_YRESOLUTION;
584 public const ttag_t TIFFTAG_ZIPQUALITY;
585 public const ttag_t BIGENDIAN;
586 public const ttag_t BIGTIFF_VERSION;
587 public const ttag_t DIROFFSET_SIZE;
588 public const ttag_t LITTLEENDIAN;
589 public const ttag_t MAGIC_SIZE;
590 public const ttag_t SPP;
591 public const ttag_t VARIABLE;
592 public const ttag_t VARIABLE2;
593 public const ttag_t VERSION;
594 public const ttag_t VERSION_SIZE;
595 public const ttag_t YCBCRPOSITION_CENTERED;
596 public const ttag_t YCBCRPOSITION_COSITED;
598 [CCode (cname = "TIFF", free_function = "TIFFClose")]
601 [CCode (cname = "TIFFOpen")]
602 public TIFF (string path, string mode);
603 [CCode (cname = "TIFFAccessTagMethods")]
604 public TagMethods AccessTagMethods ();
605 [CCode (cname = "TIFFCheckTile")]
606 public bool CheckTile (uint32 p1, uint32 p2, uint32 p3, tsample_t p4);
607 [CCode (cname = "TIFFCheckpointDirectory")]
608 public bool CheckpointDirectory ();
609 [CCode (cname = "TIFFCleanup")]
610 public void Cleanup ();
611 [CCode (cname = "TIFFClientdata")]
612 public thandle_t Clientdata ();
613 [CCode (cname = "TIFFComputeStrip")]
614 public tstrip_t ComputeStrip (uint p1, tsample_t p2);
615 [CCode (cname = "TIFFComputeTile")]
616 public ttile_t ComputeTile (uint32 p1, uint32 p2, uint32 p3, tsample_t p4);
617 [CCode (cname = "TIFFCreateDirectory")]
618 public int CreateDirectory ();
619 [CCode (cname = "TIFFCurrentDirOffset")]
620 public uint32 CurrentDirOffset ();
621 [CCode (cname = "TIFFCurrentDirectory")]
622 public tdir_t CurrentDirectory ();
623 [CCode (cname = "TIFFCurrentRow")]
624 public uint32 CurrentRow ();
625 [CCode (cname = "TIFFCurrentStrip")]
626 public tstrip_t CurrentStrip ();
627 [CCode (cname = "TIFFCurrentTile")]
628 public ttile_t CurrentTile ();
629 [CCode (cname = "TIFFDefaultStripSize")]
630 public uint32 DefaultStripSize (uint32 p1);
631 [CCode (cname = "TIFFDefaultTileSize")]
632 public void DefaultTileSize (out uint32 p1, out uint32 p2);
633 [CCode (cname = "TIFFFieldWithName")]
634 public unowned FieldInfo FieldWithName (string p1);
635 [CCode (cname = "TIFFFieldWithTag")]
636 public unowned FieldInfo FieldWithTag (ttag_t p1);
637 [CCode (cname = "TIFFFileName")]
638 public unowned string FileName ();
639 [CCode (cname = "TIFFFileno")]
640 public int Fileno ();
641 [CCode (cname = "TIFFFindFieldInfo")]
642 public unowned FieldInfo FindFieldInfo (ttag_t p1, DataType p2);
643 [CCode (cname = "TIFFFindFieldInfoByName")]
644 public unowned FieldInfo FindFieldInfoByName (string p1, DataType p2);
645 [CCode (cname = "TIFFFlush")]
646 public bool Flush ();
647 [CCode (cname = "TIFFFlushData")]
648 public bool FlushData ();
649 [CCode (cname = "TIFFFreeDirectory")]
650 public void FreeDirectory ();
651 [CCode (cname = "TIFFGetClientInfo")]
652 public void* GetClientInfo (string p1);
653 [CCode (cname = "TIFFGetCloseProc")]
654 public CloseProc GetCloseProc ();
655 [CCode (cname = "TIFFGetField")]
656 public int GetField (ttag_t p1, ...);
657 [CCode (cname = "TIFFGetFieldDefaulted")]
658 public int GetFieldDefaulted (ttag_t p1, ...);
659 [CCode (cname = "TIFFGetMapFileProc")]
660 public MapFileProc GetMapFileProc ();
661 [CCode (cname = "TIFFGetMode")]
662 public int GetMode ();
663 [CCode (cname = "TIFFGetReadProc")]
664 public ReadWriteProc GetReadProc ();
665 [CCode (cname = "TIFFGetSeekProc")]
666 public SeekProc GetSeekProc ();
667 [CCode (cname = "TIFFGetSizeProc")]
668 public SizeProc GetSizeProc ();
669 [CCode (cname = "TIFFGetTagListCount")]
670 public int GetTagListCount ();
671 [CCode (cname = "TIFFGetTagListEntry")]
672 public ttag_t GetTagListEntry (int tag_index);
673 [CCode (cname = "TIFFGetUnmapFileProc")]
674 public UnmapFileProc GetUnmapFileProc ();
675 [CCode (cname = "TIFFGetWriteProc")]
676 public ReadWriteProc GetWriteProc ();
677 [CCode (cname = "TIFFIsBigEndian")]
678 public bool IsBigEndian ();
679 [CCode (cname = "TIFFIsByteSwapped")]
680 public bool IsByteSwapped ();
681 [CCode (cname = "TIFFIsMSB2LSB")]
682 public bool IsMSB2LSB ();
683 [CCode (cname = "TIFFIsTiled")]
684 public bool IsTiled ();
685 [CCode (cname = "TIFFIsUpSampled")]
686 public bool IsUpSampled ();
687 [CCode (cname = "TIFFLastDirectory")]
688 public bool LastDirectory ();
689 [CCode (cname = "TIFFMergeFieldInfo")]
690 public void MergeFieldInfo (FieldInfo[] p1, int p2);
691 [CCode (cname = "TIFFNumberOfDirectories")]
692 public tdir_t NumberOfDirectories ();
693 [CCode (cname = "TIFFNumberOfStrips")]
694 public tstrip_t NumberOfStrips ();
695 [CCode (cname = "TIFFNumberOfTiles")]
696 public ttile_t NumberOfTiles ();
697 [CCode (cname = "TIFFPrintDirectory")]
698 public void PrintDirectory (GLib.FileStream p1, long p2);
699 [CCode (cname = "TIFFRGBAImageOK")]
700 public bool RGBAImageOK (string p1);
701 [CCode (cname = "TIFFRasterScanlineSize")]
702 public tsize_t RasterScanlineSize ();
703 [CCode (cname = "TIFFRawStripSize")]
704 public tsize_t RawStripSize (tstrip_t p1);
705 [CCode (cname = "TIFFReadBufferSetup")]
706 public bool ReadBufferSetup (tdata_t p1, tsize_t p2);
707 [CCode (cname = "TIFFReadCustomDirectory")]
708 public bool ReadCustomDirectory (toff_t p1, FieldInfo[] p2, size_t p3);
709 [CCode (cname = "TIFFReadDirectory")]
710 public bool ReadDirectory ();
711 [CCode (cname = "TIFFReadEXIFDirectory")]
712 public bool ReadEXIFDirectory (toff_t p1);
713 [CCode (cname = "TIFFReadEncodedStrip")]
714 public tsize_t ReadEncodedStrip (tstrip_t p1, tdata_t p2, tsize_t p3);
715 [CCode (cname = "TIFFReadEncodedTile")]
716 public tsize_t ReadEncodedTile (ttile_t p1, tdata_t p2, tsize_t p3);
717 [CCode (cname = "TIFFReadRGBAImage")]
718 public bool ReadRGBAImage (uint32 p1, uint32 p2, [CCode (array_length = false)] uint32[] p3, int p4);
719 [CCode (cname = "TIFFReadRGBAImageOriented")]
720 public bool ReadRGBAImageOriented (uint32 p1, uint32 p2, [CCode (array_length = false)] uint32[] p3, int p4, int p5);
721 [CCode (cname = "TIFFReadRGBAStrip")]
722 public bool ReadRGBAStrip (tstrip_t p1, [CCode (array_length = false)] uint32[] p2);
723 [CCode (cname = "TIFFReadRGBATile")]
724 public bool ReadRGBATile (uint32 p1, uint32 p2, [CCode (array_length = false)] uint32[] p3);
725 [CCode (cname = "TIFFReadRawStrip")]
726 public tsize_t ReadRawStrip (tstrip_t p1, tdata_t p2, tsize_t p3);
727 [CCode (cname = "TIFFReadRawTile")]
728 public tsize_t ReadRawTile (ttile_t p1, tdata_t p2, tsize_t p3);
729 [CCode (cname = "TIFFReadScanline")]
730 public int ReadScanline (tdata_t p1, uint32 p2, tsample_t p3);
731 [CCode (cname = "TIFFReadTile")]
732 public tsize_t ReadTile (tdata_t p1, uint32 p2, uint32 p3, uint32 p4, tsample_t p5);
733 [CCode (cname = "TIFFRewriteDirectory")]
734 public int RewriteDirectory ();
735 [CCode (cname = "TIFFScanlineSize")]
736 public tsize_t ScanlineSize ();
737 [CCode (cname = "TIFFSetClientInfo")]
738 public void SetClientInfo (void* p1, string p2);
739 [CCode (cname = "TIFFSetClientdata")]
740 public thandle_t SetClientdata (thandle_t p1);
741 [CCode (cname = "TIFFSetDirectory")]
742 public int SetDirectory (tdir_t p1);
743 [CCode (cname = "TIFFSetField")]
744 public bool SetField (ttag_t p1, ...);
745 [CCode (cname = "TIFFSetFileName")]
746 public unowned string SetFileName (string p1);
747 [CCode (cname = "TIFFSetFileno")]
748 public int SetFileno (int p1);
749 [CCode (cname = "TIFFSetMode")]
750 public int SetMode (int p1);
751 [CCode (cname = "TIFFSetSubDirectory")]
752 public int SetSubDirectory (uint32 p1);
753 [CCode (cname = "TIFFSetWriteOffset")]
754 public void SetWriteOffset (toff_t p1);
755 [CCode (cname = "TIFFSetupStrips")]
756 public bool SetupStrips ();
757 [CCode (cname = "TIFFStripSize")]
758 public tsize_t StripSize ();
759 [CCode (cname = "TIFFTileRowSize")]
760 public tsize_t TileRowSize ();
761 [CCode (cname = "TIFFTileSize")]
762 public tsize_t TileSize ();
763 [CCode (cname = "TIFFUnlinkDirectory")]
764 public bool UnlinkDirectory (tdir_t p1);
765 /* *************************************************
766 [CCode (cname = "TIFFVGetField")]
767 public int VGetField (ttag_t p1, void* p2);
768 [CCode (cname = "TIFFVGetFieldDefaulted")]
769 public int VGetFieldDefaulted (ttag_t p1, void* p2);
770 [CCode (cname = "TIFFVSetField")]
771 public int VSetField (ttag_t p1, void* p2);
772 ************************************************* */
773 [CCode (cname = "TIFFVStripSize")]
774 public tsize_t VStripSize (uint32 p1);
775 [CCode (cname = "TIFFVTileSize")]
776 public tsize_t VTileSize (uint32 p1);
777 [CCode (cname = "TIFFWriteBufferSetup")]
778 public bool WriteBufferSetup (tdata_t p1, tsize_t p2);
779 [CCode (cname = "TIFFWriteCheck")]
780 public bool WriteCheck (int p1, string p2);
781 [CCode (cname = "TIFFWriteDirectory")]
782 public bool WriteDirectory ();
783 [CCode (cname = "TIFFWriteEncodedStrip")]
784 public tsize_t WriteEncodedStrip (tstrip_t p1, tdata_t p2, tsize_t p3);
785 [CCode (cname = "TIFFWriteEncodedTile")]
786 public tsize_t WriteEncodedTile (ttile_t p1, tdata_t p2, tsize_t p3);
787 [CCode (cname = "TIFFWriteRawStrip")]
788 public tsize_t WriteRawStrip (tstrip_t p1, tdata_t p2, tsize_t p3);
789 [CCode (cname = "TIFFWriteRawTile")]
790 public tsize_t WriteRawTile (ttile_t p1, tdata_t p2, tsize_t p3);
791 [CCode (cname = "TIFFWriteScanline")]
792 public int WriteScanline (tdata_t p1, uint32 p2, tsample_t p3);
793 [CCode (cname = "TIFFWriteTile")]
794 public tsize_t WriteTile (tdata_t p1, uint32 p2, uint32 p3, uint32 p4, tsample_t p5);
797 namespace TIFFUtils {
798 [CCode (cname = "TIFFGetR")]
799 public static uint8 GetRed (uint32 abgr);
800 [CCode (cname = "TIFFGetG")]
801 public static int8 GetGreen (uint32 abgr);
802 [CCode (cname = "TIFFGetB")]
803 public static uint8 GetBlue (uint32 abgr);
804 [CCode (cname = "TIFFGetA")]
805 public static uint8 GetAlpha (int32 abgr);
806 [CCode (cname = "TIFFClientOpen")]
807 public static TIFF ClientOpen (string p1, string p2, thandle_t p3, ReadWriteProc p4, ReadWriteProc p5, SeekProc p6, CloseProc p7, SizeProc p8, MapFileProc p9, UnmapFileProc p10);
808 [CCode (cname = "TIFFCIELabToRGBInit")]
809 public static int CIELabToRGBInit (CIELabToRGB p1, Display p2, float[] p3);
810 [CCode (cname = "TIFFCIELabToXYZ")]
811 public static void CIELabToXYZ (CIELabToRGB p1, uint p2, int p3, int p4, out float p5, out float p6, out float p7);
812 [CCode (cname = "TIFFDataWidth")]
813 public static int DataWidth (DataType p1);
814 [CCode (cname = "TIFFError")]
815 public static void Error (string p1, string p2, ...);
816 [CCode (cname = "TIFFErrorExt")]
817 public static void ErrorExt (thandle_t p1, string p2, string p3, ...);
818 [CCode (cname = "TIFFFdOpen")]
819 public static TIFF FdOpen (int p1, string p2, string p3);
820 [CCode (cname = "TIFFGetVersion")]
821 public static unowned string GetVersion ();
822 [CCode (cname = "TIFFFindCODEC")]
823 public static unowned Codec FindCODEC (ushort p1);
824 [CCode (cname = "TIFFGetBitRevTable")]
825 public static unowned string GetBitRevTable (int p1);
826 [CCode (cname = "TIFFGetConfiguredCODECs")]
827 public static Codec GetConfiguredCODECs ();
828 [CCode (cname = "TIFFRGBAImageBegin")]
829 public static int RGBAImageBegin (RGBAImage p1, TIFF p2, int p3, string[] p4);
830 [CCode (cname = "TIFFIsCODECConfigured")]
831 public static int IsCODECConfigured (ushort p1);
832 [CCode (cname = "TIFFRGBAImageEnd")]
833 public static void RGBAImageEnd (RGBAImage p1);
834 [CCode (cname = "TIFFRGBAImageGet")]
835 public static int RGBAImageGet (RGBAImage p1, [CCode (array_length = false)] uint32[] p2, uint32 p3, uint32 p4);
836 [CCode (cname = "TIFFReassignTagToIgnore")]
837 public static int ReassignTagToIgnore (IgnoreSense p1, int p2);
838 [CCode (cname = "TIFFRegisterCODEC")]
839 public static Codec RegisterCODEC (uint16 p1, string p2, InitMethod p3);
840 [CCode (cname = "TIFFReverseBits")]
841 public static void ReverseBits (uchar[] p1, ulong p2);
842 /* *******************************************************************************
843 [CCode (cname = "TIFFSetErrorHandler")]
844 public static ErrorHandler SetErrorHandler (ErrorHandler p1);
845 [CCode (cname = "TIFFErrorHandlerExt")]
846 public static ErrorHandlerExt SetErrorHandlerExt (ErrorHandlerExt p1);
847 [CCode (cname = "TIFFSetWarningHandler")]
848 public static ErrorHandler SetWarningHandler (ErrorHandler p1);
849 [CCode (cname = "TIFFSetWarningHandlerExt")]
850 public static ErrorHandlerExt SetWarningHandlerExt (ErrorHandlerExt p1);
851 ******************************************************************************* */
852 [CCode (cname = "TIFFSetTagExtender")]
853 public static ExtendProc SetTagExtender (ExtendProc p1);
854 [CCode (cname = "TIFFSwabArrayOfDouble")]
855 public static void SwabArrayOfDouble (double[] p1, ulong p2);
856 [CCode (cname = "TIFFSwabArrayOfLong")]
857 public static void SwabArrayOfLong (uint32[] p1, ulong p2);
858 [CCode (cname = "TIFFSwabArrayOfShort")]
859 public static void SwabArrayOfShort (uint16[] p1, ulong p2);
860 [CCode (cname = "TIFFSwabArrayOfTriples")]
861 public static void SwabArrayOfTriples (uint8[] p1, ulong p2);
862 [CCode (cname = "TIFFSwabDouble")]
863 public static void SwabDouble (double[] p1);
864 [CCode (cname = "TIFFSwabLong")]
865 public static void SwabLong (uint32[] p1);
866 [CCode (cname = "TIFFSwabShort")]
867 public static void SwabShort (uint16[] p1);
868 [CCode (cname = "TIFFUnRegisterCODEC")]
869 public static void UnRegisterCODEC (Codec p1);
870 [CCode (cname = "TIFFWarning")]
871 public static void Warning (string p1, string p2);
872 [CCode (cname = "TIFFWarningExt")]
873 public static void WarningExt (thandle_t p1, string p2, string p3);
874 [CCode (cname = "TIFFXYZToRGB")]
875 public static void XYZToRGB (CIELabToRGB p1, float p2, float p3, float p4, out uint32 p5, out uint32 p6, out uint32 p7);
876 [CCode (cname = "TIFFYCbCrToRGBInit")]
877 public static int YCbCrToRGBInit (YCbCrToRGB p1, float[] p2, float[] p3);
878 [CCode (cname = "TIFFYCbCrtoRGB")]
879 public static void YCbCrtoRGB (YCbCrToRGB p1, uint32 p2, int32 p3, int32 p4, out uint32 p5, out uint32 p6, out uint32 p7);
880 [CCode (cname = "LogL10fromY")]
881 public static int LogL10fromY (double p1, int p2);
882 [CCode (cname = "LogL10toY")]
883 public static double LogL10toY (int p1);
884 [CCode (cname = "LogL16fromY")]
885 public static int LogL16fromY (double p1, int p2);
886 [CCode (cname = "LogL16toY")]
887 public static double LogL16toY (int p1);
888 [CCode (cname = "LogLuv24fromXYZ")]
889 public static uint LogLuv24fromXYZ (float p1, int p2);
890 [CCode (cname = "LogLuv24toXYZ")]
891 public static void LogLuv24toXYZ (uint32 p1, float p2);
892 [CCode (cname = "LogLuv32fromXYZ")]
893 public static uint LogLuv32fromXYZ (float p1, int p2);
894 [CCode (cname = "LogLuv32toXYZ")]
895 public static void LogLuv32toXYZ (uint32 p1, float p2);
896 [CCode (cname = "XYZtoRGB24")]
897 public static void XYZtoRGB24 (float p1, uint8 p2);
898 [CCode (cname = "uv_decode")]
899 public static int uv_decode (double p1, double p2, int p3);
900 [CCode (cname = "uv_encode")]
901 public static int uv_encode (double p1, double p2, int p3);