OLD | NEW |
1 /* $Id: tiffio.h,v 1.91 2012-07-29 15:45:29 tgl Exp $ */ | 1 /* $Id: tiffio.h,v 1.91 2012-07-29 15:45:29 tgl Exp $ */ |
2 | 2 |
3 /* | 3 /* |
4 * Copyright (c) 1988-1997 Sam Leffler | 4 * Copyright (c) 1988-1997 Sam Leffler |
5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. | 5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. |
6 * | 6 * |
7 * Permission to use, copy, modify, distribute, and sell this software and | 7 * Permission to use, copy, modify, distribute, and sell this software and |
8 * its documentation for any purpose is hereby granted without fee, provided | 8 * its documentation for any purpose is hereby granted without fee, provided |
9 * that (i) the above copyright notices and this permission notice appear in | 9 * that (i) the above copyright notices and this permission notice appear in |
10 * all copies of the software and related documentation, and (ii) the names of | 10 * all copies of the software and related documentation, and (ii) the names of |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 /* | 291 /* |
292 * Auxiliary functions. | 292 * Auxiliary functions. |
293 */ | 293 */ |
294 | 294 |
295 extern void* _TIFFmalloc(tmsize_t s); | 295 extern void* _TIFFmalloc(tmsize_t s); |
296 extern void* _TIFFrealloc(void* p, tmsize_t s); | 296 extern void* _TIFFrealloc(void* p, tmsize_t s); |
297 extern void _TIFFmemset(void* p, int v, tmsize_t c); | 297 extern void _TIFFmemset(void* p, int v, tmsize_t c); |
298 extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c); | 298 extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c); |
299 extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c); | 299 extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c); |
300 extern void _TIFFfree(void* p); | 300 extern void _TIFFfree(void* p); |
301 /* Do cmyk to rgb convert, add by Sunliang.Liu 20090723. */ | |
302 extern int TIFFCmyk2Rgb(thandle_t context, uint8 c, uint8 m, uint8 y, uint8 k,
uint8* r, uint8* g, uint8* b); | |
303 | 301 |
304 /* | 302 /* |
305 ** Stuff, related to tag handling and creating custom tags. | 303 ** Stuff, related to tag handling and creating custom tags. |
306 */ | 304 */ |
307 extern int TIFFGetTagListCount( TIFF * ); | 305 extern int TIFFGetTagListCount( TIFF * ); |
308 extern uint32 TIFFGetTagListEntry( TIFF *, int tag_index ); | 306 extern uint32 TIFFGetTagListEntry( TIFF *, int tag_index ); |
309 | 307 |
310 #define TIFF_ANY TIFF_NOTYPE /* for field descriptor searching */ | 308 #define TIFF_ANY TIFF_NOTYPE /* for field descriptor searching */ |
311 #define TIFF_VARIABLE -1 /* marker for variable length tags */ | 309 #define TIFF_VARIABLE -1 /* marker for variable length tags */ |
312 #define TIFF_SPP -2 /* marker for SamplesPerPixel tags */ | 310 #define TIFF_SPP -2 /* marker for SamplesPerPixel tags */ |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 #endif /* _TIFFIO_ */ | 548 #endif /* _TIFFIO_ */ |
551 | 549 |
552 /* vim: set ts=8 sts=8 sw=8 noet: */ | 550 /* vim: set ts=8 sts=8 sw=8 noet: */ |
553 /* | 551 /* |
554 * Local Variables: | 552 * Local Variables: |
555 * mode: c | 553 * mode: c |
556 * c-basic-offset: 8 | 554 * c-basic-offset: 8 |
557 * fill-column: 78 | 555 * fill-column: 78 |
558 * End: | 556 * End: |
559 */ | 557 */ |
OLD | NEW |