summaryrefslogtreecommitdiff
path: root/tiff/contrib/pds/tif_imageiter.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-23 12:17:05 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-23 12:17:05 +0200
commitc0b89ac5bfb90835ef01573267020e42d4fe070c (patch)
tree733c16852d964d84b7565af4bdaff0bcca901b88 /tiff/contrib/pds/tif_imageiter.h
parent094535c010320967639e8e86f974d878e80baa72 (diff)
Imported Upstream version 1.8.0upstream/1.8.0
Diffstat (limited to 'tiff/contrib/pds/tif_imageiter.h')
-rw-r--r--tiff/contrib/pds/tif_imageiter.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/tiff/contrib/pds/tif_imageiter.h b/tiff/contrib/pds/tif_imageiter.h
deleted file mode 100644
index e7dbe46..0000000
--- a/tiff/contrib/pds/tif_imageiter.h
+++ /dev/null
@@ -1,64 +0,0 @@
-typedef struct _TIFFImageIter TIFFImageIter;
-
-/* The callback function is called for each "block" of image pixel data after
- it has been read from the file and decoded. This image pixel data is in the
- buffer pp, and this data represents the image pixels from (x,y) to
- (x+w,y+h). It is stored in pixel format, so each pixel contains
- img->samplesperpixel consecutive samples each containing img->bitspersample
- bits of data. The array pp is ordered in h consecutive rows of w+fromskew
- pixels each. */
-typedef void (*ImageIterTileContigRoutine)
- (TIFFImageIter*, void *, uint32, uint32, uint32, uint32, int32,
- unsigned char*);
-#define DECLAREContigCallbackFunc(name) \
-static void name(\
- TIFFImageIter* img, \
- void* user_data, \
- uint32 x, uint32 y, \
- uint32 w, uint32 h, \
- int32 fromskew, \
- u_char* pp \
-)
-
-typedef void (*ImageIterTileSeparateRoutine)
- (TIFFImageIter*, void *, uint32, uint32, uint32, uint32, int32,
- unsigned char*, unsigned char*, unsigned char*, unsigned char*);
-#define DECLARESepCallbackFunc(name) \
-static void name(\
- TIFFImageIter* img, \
- void* user_data, \
- uint32 x, uint32 y, \
- uint32 w, uint32 h,\
- int32 fromskew, \
- u_char* r, u_char* g, u_char* b, u_char* a\
-)
-
-struct _TIFFImageIter {
- TIFF* tif; /* image handle */
- int stoponerr; /* stop on read error */
- int isContig; /* data is packed/separate */
- int alpha; /* type of alpha data present */
- uint32 width; /* image width */
- uint32 height; /* image height */
- uint16 bitspersample; /* image bits/sample */
- uint16 samplesperpixel; /* image samples/pixel */
- uint16 orientation; /* image orientation */
- uint16 photometric; /* image photometric interp */
- uint16* redcmap; /* colormap pallete */
- uint16* greencmap;
- uint16* bluecmap;
- /* get image data routine */
- int (*get)(TIFFImageIter*, void *udata, uint32, uint32);
- union {
- void (*any)(TIFFImageIter*);
- ImageIterTileContigRoutine contig;
- ImageIterTileSeparateRoutine separate;
- } callback; /* fn to exec for each block */
-};
-/*
- * Local Variables:
- * mode: c
- * c-basic-offset: 8
- * fill-column: 78
- * End:
- */