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