File: loadtiff.h

package info (click to toggle)
imview 1.1.9h-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,528 kB
  • sloc: cpp: 32,590; sh: 2,664; ansic: 1,900; makefile: 811; exp: 112; python: 88
file content (27 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*------------------------------------------------------------------------
 *
 *
 * Decodes the TIFF format
 *
 *      
 *-----------------------------------------------------------------------*/

#ifndef LOADTIFF_H
#define LOADTIFF_H

#include <tiffio.h>

int  getTiffType(int pi, int sf, int spp, int bps, pixtype *pixeltype, imgtype *imagetype);
int  load_tiff(const char *fname,	 /* file name  */
	       int        imageindex,     /* image index in the file to load */
	       int        start[3],	 /* dimensions start */
	       int        end[3],         /* dimensions end */
	       int        *pi,            /* photometric interpretation */
	       int        *sf,            /* storage format */
	       int        *spp,	         /* samples per pixel */
	       int        *bps,           /* bits per pixel */
	       unsigned short      *colourmap[3],  /* RGB lut */
	       long       *ncolours,      /* nb of colours in the lut */      
	       void       **inbuffp);	 /* data buffer for this image */

#endif /* defined(LOADTIFF_H) */