Main Page   Data Structures   File List   Data Fields   Globals  

tiff2img.c File Reference

#include "sadie.h"
#include <setjmp.h>

Go to the source code of this file.

Defines

#define BLEN   ((unsigned long)8)
#define DLEN   ((unsigned long)8192)
#define NM   40
#define NT   64

Functions

unsigned short sswap (register unsigned char *cptr)
unsigned long lswap (register unsigned char *cptr)
unsigned long GetIValue (unsigned long type, register unsigned char *data)
double GetRValue (unsigned long type, register unsigned char *data)
unsigned long GetPValue (register unsigned char *data, unsigned long nbit)
void UnpackBits (unsigned char *data, unsigned char *datb, short dstBytes)
void TIFF2IMG (char *name, IMAGE **out)

Variables

unsigned long Swap
unsigned long Comp
unsigned long Flip
unsigned long Bits
jmp_buf Env


Define Documentation

#define BLEN   ((unsigned long)8)
 

Definition at line 5 of file tiff2img.c.

Referenced by GetPValue(), and TIFF2IMG().

#define DLEN   ((unsigned long)8192)
 

Definition at line 6 of file tiff2img.c.

Referenced by GetPValue(), and TIFF2IMG().

#define NM   40
 

Definition at line 104 of file tiff2img.c.

Referenced by GetPValue().

#define NT   64
 

Definition at line 105 of file tiff2img.c.

Referenced by GetPValue().


Function Documentation

unsigned long GetIValue unsigned long  type,
register unsigned char *  data
[static]
 

Definition at line 38 of file tiff2img.c.

References Env, lswap(), MESSAGE(), SLEN, sswap(), Swap, TBYTE, TLONG, TSHORT, type, and value.

Referenced by TIFF2IMG().

unsigned long GetPValue register unsigned char *  data,
unsigned long  nbit
[static]
 

Definition at line 108 of file tiff2img.c.

References Bits, BLEN, Comp, DLEN, Env, MESSAGE(), NM, NT, RLEComp, SLEN, and type.

Referenced by TIFF2IMG().

double GetRValue unsigned long  type,
register unsigned char *  data
[static]
 

Definition at line 77 of file tiff2img.c.

References Env, lswap(), MESSAGE(), SLEN, Swap, TRATIONAL, type, and value.

Referenced by TIFF2IMG().

unsigned long lswap register unsigned char *  cptr  )  [static]
 

Definition at line 26 of file tiff2img.c.

Referenced by GetIValue(), GetRValue(), and TIFF2IMG().

unsigned short sswap register unsigned char *  cptr  )  [static]
 

Definition at line 16 of file tiff2img.c.

Referenced by GetIValue(), and TIFF2IMG().

void TIFF2IMG char *  name,
IMAGE **  out
 

Definition at line 342 of file tiff2img.c.

References BigEndian, Bits, BitsPerSample, BLEN, BTIFF, CHECKIMG(), ColorMap, Comp, Compression, DLEN, Env, FillOrder, Flip, GetIValue(), GETMEM(), GetPValue(), GetRValue(), GTIFF, ImageLength, ImageWidth, LilEndian, lswap(), MagicNumber, malloc, MESSAGE(), name, NewSubfileType, NoComp, Orientation, out, PackBitsComp, PhotometricInterpretation, PlanarConfiguration, PTIFF, RANGE(), ResolutionUnit, RLEComp, RowsPerStrip, RTIFF, SamplesPerPixel, SLEN, sswap(), StripByteCounts, StripOffsets, SubfileType, Swap, T_EXIT, T_TIFF2IMG, tag, TBYTE, Thresholding, TIMING(), TLONG, TSHORT, type, UnpackBits(), value, XResolution, and YResolution.

Referenced by Sadie_FileIO_OpenTIFFCmd().

void UnpackBits unsigned char *  data,
unsigned char *  datb,
short  dstBytes
 

Definition at line 296 of file tiff2img.c.

Referenced by TIFF2IMG().


Variable Documentation

unsigned long Bits [static]
 

Definition at line 11 of file tiff2img.c.

Referenced by GetPValue(), and TIFF2IMG().

unsigned long Comp [static]
 

Definition at line 9 of file tiff2img.c.

Referenced by GetPValue(), and TIFF2IMG().

jmp_buf Env [static]
 

Definition at line 13 of file tiff2img.c.

Referenced by GetIValue(), GetPValue(), GetRValue(), and TIFF2IMG().

unsigned long Flip [static]
 

Definition at line 10 of file tiff2img.c.

Referenced by TIFF2IMG().

unsigned long Swap [static]
 

Definition at line 8 of file tiff2img.c.

Referenced by GetIValue(), GetRValue(), and TIFF2IMG().


Generated on Sun May 18 15:36:26 2003 for tclSadie by doxygen1.3