/*********************************************
* file d:\cips\cips.h
*
* Functions: This file contains no functions.
* It contains declarations of the data structures
* used by the C Image Processing Systems CIPS.
*
* Purpose: To declare data structures.
*
* Modifications: created June 1990
**********************************************/
#include "d:\c600\include\stdio.h"
#include "d:\c600\include\graph.h"
#include "d:\c600\include\io.h"
#include "d:\c600\include\fcntl.h"
#include "d:\c600\include\dos.h"
#include "d:\c600\include\math.h"
#include "d:\c600\include\sys\types.h"
#include "d:\c600\include\sys\stat.h"
#define MAX_NAME_LENGTH 80
#define ROWS 100
#define COLS 100
#define GRAY_LEVELS 255
/**********************************************
* The following struct defines the information
* you need to read from the tiff file
* header.
**********************************************/
struct tiff_header_struct{
short lsb;
long bits_per_pixel;
long image_length;
long image_width;
long strip_offset;
};
/****************************************
* The following four unions are used
* to put the bytes from the header
* into either an integer or a floating
* point number.
****************************************/
union short_char_union{
short s_num;
char s_alpha[2];
};
union int_char_union{
int i_num;
char i_alpha[2];
};
union long_char_union{
long l_num;
char l_alpha[4];
};
union float_char_union{
float f_num;
char f_alpha[4];
};