4. Coding scheme
The one-dimensional run length encoding scheme recommended for Group 3 apparatus is as follows:
a. DATA
A line of data is composed of a series of variable length code words. Each code word represents a run length of either all white or all black. White runs and black runs alternate. A total of 1728 picture elements represent one horizontal scanning line of the document of standard A4 size. In order to insure that the receiver maintains color synchronization, all DATA lines will begin with a white run length code word. If the actual scanning line begins with a black run, a white run length of zero will be sent. Black or white run lengths, up to a maximum length of one scanning line (1728 picture elements or pels) are defined by the code words in Tables 1 and 2. The code words are of two types: Terminating Code words and Make Up Code words. Each run length is represented by either one Terminating Code word or one Make Up Code word followed by a Terminating Code word.
Run lengths in the range of 0 to 63 pels are encoded with their appropriate Terminating Code word. Note that there is a different list of code words for black and white run lengths.
Run lengths in the range of 64 to 1728 pels are encoded first by the Make Up Code word representing the run length which is equal to or shorter than that required. This is then followed by the Terminating Code word representing the difference between the required run length and the run length represented by the Make Up Code.
b. END OF LINE (EOL)
This code word follows each line of DATA. It is a unique code word that can never be found within a valid line of DATA; therefore, resynchronization after an error burst is possible.
In addition, this signal will occur prior to the first DATA line of a page.
Format: 000000000001
c. FILL
A pause may be placed in the message flow by transmitting FILL. FILL may be inserted between a line of DATA and an EOL, but never within a line of DATA. Fill must be added to insure that each line of DATA, FILL, and EOL exceeds the minimum transmission time of a total scanning line established in the premessage control procedure. The maximum length for a single line of FILL is 5 seconds, after which the receiver may disconnect.
Format: variable length string of 0's.
d. RETURN TO CONTROL (RTC)
The end of a document transmission is indicated by sending six consecutive EOL's. Following the RTC signal, the transmitter will send the post message commands in the standard T.30 blocked format at the data rate.
Format: 000000000001 ... ... ... ... 000000000001
(total of 6 times)