Lines Matching refs:tiff
31 * TIFF I/O Library Definitions.
33 #include "tiff.h"
37 * TIFF is defined as an incomplete type to hide the
40 typedef struct tiff TIFF;
46 * in tiff.h. Note also that the varargs interface used
48 * tiff.h directly.
200 TIFF* tif; /* image handle */
251 typedef int (*TIFFInitMethod)(TIFF*, int);
281 typedef void (*TIFFExtendProc)(TIFF*);
306 extern int TIFFGetTagListCount( TIFF * );
307 extern uint32 TIFFGetTagListEntry( TIFF *, int tag_index );
319 extern const TIFFField* TIFFFindField(TIFF *, uint32, TIFFDataType);
320 extern const TIFFField* TIFFFieldWithTag(TIFF*, uint32);
321 extern const TIFFField* TIFFFieldWithName(TIFF*, const char *);
330 typedef int (*TIFFVSetMethod)(TIFF*, uint32, va_list);
331 typedef int (*TIFFVGetMethod)(TIFF*, uint32, va_list);
332 typedef void (*TIFFPrintMethod)(TIFF*, FILE*, long);
340 extern TIFFTagMethods *TIFFAccessTagMethods(TIFF *);
341 extern void *TIFFGetClientInfo(TIFF *, const char *);
342 extern void TIFFSetClientInfo(TIFF *, void *, const char *);
344 extern void TIFFCleanup(TIFF* tif);
345 extern void TIFFClose(TIFF* tif);
346 extern int TIFFFlush(TIFF* tif);
347 extern int TIFFFlushData(TIFF* tif);
348 extern int TIFFGetField(TIFF* tif, uint32 tag, ...);
349 extern int TIFFVGetField(TIFF* tif, uint32 tag, va_list ap);
350 extern int TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...);
351 extern int TIFFVGetFieldDefaulted(TIFF* tif, uint32 tag, va_list ap);
352 extern int TIFFReadDirectory(TIFF* tif);
353 extern int TIFFReadCustomDirectory(TIFF* tif, toff_t diroff, const TIFFFieldArray* infoarray);
354 extern int TIFFReadEXIFDirectory(TIFF* tif, toff_t diroff);
355 extern uint64 TIFFScanlineSize64(TIFF* tif);
356 extern tmsize_t TIFFScanlineSize(TIFF* tif);
357 extern uint64 TIFFRasterScanlineSize64(TIFF* tif);
358 extern tmsize_t TIFFRasterScanlineSize(TIFF* tif);
359 extern uint64 TIFFStripSize64(TIFF* tif);
360 extern tmsize_t TIFFStripSize(TIFF* tif);
361 extern uint64 TIFFRawStripSize64(TIFF* tif, uint32 strip);
362 extern tmsize_t TIFFRawStripSize(TIFF* tif, uint32 strip);
363 extern uint64 TIFFVStripSize64(TIFF* tif, uint32 nrows);
364 extern tmsize_t TIFFVStripSize(TIFF* tif, uint32 nrows);
365 extern uint64 TIFFTileRowSize64(TIFF* tif);
366 extern tmsize_t TIFFTileRowSize(TIFF* tif);
367 extern uint64 TIFFTileSize64(TIFF* tif);
368 extern tmsize_t TIFFTileSize(TIFF* tif);
369 extern uint64 TIFFVTileSize64(TIFF* tif, uint32 nrows);
370 extern tmsize_t TIFFVTileSize(TIFF* tif, uint32 nrows);
371 extern uint32 TIFFDefaultStripSize(TIFF* tif, uint32 request);
372 extern void TIFFDefaultTileSize(TIFF*, uint32*, uint32*);
373 extern int TIFFFileno(TIFF*);
374 extern int TIFFSetFileno(TIFF*, int);
375 extern thandle_t TIFFClientdata(TIFF*);
376 extern thandle_t TIFFSetClientdata(TIFF*, thandle_t);
377 extern int TIFFGetMode(TIFF*);
378 extern int TIFFSetMode(TIFF*, int);
379 extern int TIFFIsTiled(TIFF*);
380 extern int TIFFIsByteSwapped(TIFF*);
381 extern int TIFFIsUpSampled(TIFF*);
382 extern int TIFFIsMSB2LSB(TIFF*);
383 extern int TIFFIsBigEndian(TIFF*);
384 extern TIFFReadWriteProc TIFFGetReadProc(TIFF*);
385 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF*);
386 extern TIFFSeekProc TIFFGetSeekProc(TIFF*);
387 extern TIFFCloseProc TIFFGetCloseProc(TIFF*);
388 extern TIFFSizeProc TIFFGetSizeProc(TIFF*);
389 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF*);
390 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF*);
391 extern uint32 TIFFCurrentRow(TIFF*);
392 extern uint16 TIFFCurrentDirectory(TIFF*);
393 extern uint16 TIFFNumberOfDirectories(TIFF*);
394 extern uint64 TIFFCurrentDirOffset(TIFF*);
395 extern uint32 TIFFCurrentStrip(TIFF*);
396 extern uint32 TIFFCurrentTile(TIFF* tif);
397 extern int TIFFReadBufferSetup(TIFF* tif, void* bp, tmsize_t size);
398 extern int TIFFWriteBufferSetup(TIFF* tif, void* bp, tmsize_t size);
399 extern int TIFFSetupStrips(TIFF *);
400 extern int TIFFWriteCheck(TIFF*, int, const char *);
401 extern void TIFFFreeDirectory(TIFF*);
402 extern int TIFFCreateDirectory(TIFF*);
403 extern int TIFFCreateCustomDirectory(TIFF*,const TIFFFieldArray*);
404 extern int TIFFCreateEXIFDirectory(TIFF*);
405 extern int TIFFLastDirectory(TIFF*);
406 extern int TIFFSetDirectory(TIFF*, uint16);
407 extern int TIFFSetSubDirectory(TIFF*, uint64);
408 extern int TIFFUnlinkDirectory(TIFF*, uint16);
409 extern int TIFFSetField(TIFF*, uint32, ...);
410 extern int TIFFVSetField(TIFF*, uint32, va_list);
411 extern int TIFFUnsetField(TIFF*, uint32);
412 extern int TIFFWriteDirectory(TIFF *);
413 extern int TIFFWriteCustomDirectory(TIFF *, uint64 *);
414 extern int TIFFCheckpointDirectory(TIFF *);
415 extern int TIFFRewriteDirectory(TIFF *);
418 extern void TIFFPrintDirectory(TIFF*, FILE*, long = 0);
419 extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
420 TIFF* tif, void* buf, uint32 row, uint16 sample = 0);
421 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int = 0);
422 extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*,
425 extern void TIFFPrintDirectory(TIFF*, FILE*, long);
426 extern int TIFFReadScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
427 extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample);
428 extern int TIFFReadRGBAImage(TIFF*, uint32, uint32, uint32*, int);
429 extern int TIFFReadRGBAImageOriented(TIFF*, uint32, uint32, uint32*, int, int);
432 extern int TIFFReadRGBAStrip(TIFF*, uint32, uint32 * );
433 extern int TIFFReadRGBATile(TIFF*, uint32, uint32, uint32 * );
434 extern int TIFFRGBAImageOK(TIFF*, char [1024]);
435 extern int TIFFRGBAImageBegin(TIFFRGBAImage*, TIFF*, int, char [1024]);
438 extern TIFF* TIFFOpen(const char*, const char*);
440 extern TIFF* TIFFOpenW(const wchar_t*, const char*);
442 extern TIFF* TIFFFdOpen(int, const char*, const char*);
443 extern TIFF* TIFFClientOpen(const char*, const char*,
449 extern const char* TIFFFileName(TIFF*);
450 extern const char* TIFFSetFileName(TIFF*, const char *);
460 extern uint32 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s);
461 extern int TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s);
462 extern uint32 TIFFNumberOfTiles(TIFF*);
463 extern tmsize_t TIFFReadTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
464 extern tmsize_t TIFFWriteTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s);
465 extern uint32 TIFFComputeStrip(TIFF*, uint32, uint16);
466 extern uint32 TIFFNumberOfStrips(TIFF*);
467 extern tmsize_t TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
468 extern tmsize_t TIFFReadRawStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size);
469 extern tmsize_t TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
470 extern tmsize_t TIFFReadRawTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
471 extern tmsize_t TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
472 extern tmsize_t TIFFWriteRawStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc);
473 extern tmsize_t TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
474 extern tmsize_t TIFFWriteRawTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc);
476 extern void TIFFSetWriteOffset(TIFF* tif, toff_t off);
543 extern int TIFFMergeFieldInfo(TIFF*, const TIFFFieldInfo[], uint32);