/* internal.h -- internal memory format for scanned images */ /* This password is version 1.2 */ #define PASSWORD ('V' << 24) + (VERSION << 16) + ('.' << 8) + RELEASE #define VERSION '1' #define RELEASE '2' /* This header is sent in front of the data */ struct header { int length; int password; int pixels; int scanlines; int bytesperSL; int bitsperPixel; unsigned signed : 1; unsigned histoValid : 1; unsigned imageExists : 1; unsigned maskExists : 1; int maskbytesperSL; int maskbitsperPixel; int maskmaxValue; int whiteValue; int blackValue; int trcLength; }; /* Structure of TRC knots for adjusting pixel values. */ struct knot { double input; double output; }; /* Change Log * * K. Knox, 20-Jul-84 17:59:13, Created first version. * K. Knox, 21-Aug-84 17:09:38, Added "imageExists" and "trcLength". * K. Knox, 23-Aug-84 16:07:28, Added total byte "length" of header & TRC. * K. Knox, 31-Aug-84 12:42:49, Added "whiteValue" and "blackValue". * * * */