-- CGAIS.mesa
-- Last changed by Doug Wyatt, August 23, 1982 3:38 pm

-- Definition of AIS file format

CGAIS: DEFINITIONS = {

password: CARDINAL = 102252B;

Header: TYPE = MACHINE DEPENDENT RECORD [
password(0): CARDINAL,
attributeLength(1): CARDINAL
];

PartType: TYPE = MACHINE DEPENDENT {nil(0),
raster(1), placement(2), photometry(3), comment(4), (77B)};

APH: TYPE = MACHINE DEPENDENT RECORD[ -- Attribute Part Header
type(0:0..5): PartType,
length(0:6..15): [0..1777B]
];

RasterPart: TYPE = MACHINE DEPENDENT RECORD [
aph(0): APH,
scanCount(1): CARDINAL,
scanLength(2): CARDINAL,
scanDirection(3): CARDINAL,
samplesPerPixel(4): CARDINAL,
codingType(5): CARDINAL
];

UCACodingType: CARDINAL = 1;

UCA: TYPE = MACHINE DEPENDENT RECORD [
bitsPerSample(0): CARDINAL,
wordsPerScanLine(1): CARDINAL,
scanLinesPerBlock(2): CARDINAL
];

}.