BackContact Image Sensor Roll Scanner File Formats

The format of the CIS file will be as follows :-

ByteFunction
0 - 3132 bytes reserved for any type of string, normally the title of the song or the name of the file originator
32Reserved
33Reserved
34,35 Integer b0 - b3 1=Free run scanner
2=Position encoder scanner
3=Shaft encoder scanner
4=Stepper scanner
5=Kevin Keymer's Delta Mode 4
6-15 Reserved
b4Speed doubling hardware
b5Twin array
b6Bi-Colour
b7Reserved
b8 - b11Encoder division expressed as 2^n
b12Mirror Image (scanned with treble and bass reversed)
b13Reverse Scan (scanned backwards)
b14 - b15Reserved
36,37IntegerVertical separation of twin arrays in 1/1000" (sep%)
38,39IntegerArray dots per inch (dpi%)
40,41IntegerNumber of pixels in array (w%)
42,43IntegerPixel number of changeover between twin arrays (co%)
44,45IntegerRoll Tempo (tempo%)
46,47IntegerStepper/Encoder steps/ticks per inch before division (lpi%)
48-51Long IntegerNumber of scan lines in file (lc&)
52-EOFRun length encoded data, each line followed by status word in which bit 5 represents the state of any hardware clock and bit 7 represents the state of any encoder. Bit 15 is a data overrun flag. Other bits are reserved. Run length encoded data is stored as a series of two byte integers, each of which represents the count of identical pixels occurring between changes of state.

R Stibbons
22 Feb 2003

Corrections shown in red, additions in green