1 typedef struct _TIFFImageIter TIFFImageIter
;
3 /* The callback function is called for each "block" of image pixel data after
4 it has been read from the file and decoded. This image pixel data is in the
5 buffer pp, and this data represents the image pixels from (x,y) to
6 (x+w,y+h). It is stored in pixel format, so each pixel contains
7 img->samplesperpixel consecutive samples each containing img->bitspersample
8 bits of data. The array pp is ordered in h consecutive rows of w+fromskew
10 typedef void (*ImageIterTileContigRoutine
)
11 (TIFFImageIter
*, void *, uint32
, uint32
, uint32
, uint32
, int32
,
13 #define DECLAREContigCallbackFunc(name) \
23 typedef void (*ImageIterTileSeparateRoutine
)
24 (TIFFImageIter
*, void *, uint32
, uint32
, uint32
, uint32
, int32
,
25 unsigned char*, unsigned char*, unsigned char*, unsigned char*);
26 #define DECLARESepCallbackFunc(name) \
33 u_char* r, u_char* g, u_char* b, u_char* a\
36 struct _TIFFImageIter
{
37 TIFF
* tif
; /* image handle */
38 int stoponerr
; /* stop on read error */
39 int isContig
; /* data is packed/separate */
40 int alpha
; /* type of alpha data present */
41 uint32 width
; /* image width */
42 uint32 height
; /* image height */
43 uint16 bitspersample
; /* image bits/sample */
44 uint16 samplesperpixel
; /* image samples/pixel */
45 uint16 orientation
; /* image orientation */
46 uint16 photometric
; /* image photometric interp */
47 uint16
* redcmap
; /* colormap pallete */
50 /* get image data routine */
51 int (*get
)(TIFFImageIter
*, void *udata
, uint32
, uint32
);
53 void (*any
)(TIFFImageIter
*);
54 ImageIterTileContigRoutine contig
;
55 ImageIterTileSeparateRoutine separate
;
56 } callback
; /* fn to exec for each block */