A method for encoding pixel data for use in a facsimile apparatus, the method comprising the steps of:
- a) receiving binary pixel data sequences, each sequence being a string of one or more pixels of the same type;
- b) determining the number of pixels in each binary pixel data sequence and:
- i) generating a first type of code word when the number of pixels is less than or equal to N, N being an integer greater than 1;
- the first type of code word including both a one-bit address signal for indicating that raw data will be issued and N-bit raw unencoded data;
- ii) generating a second type of code word when the number of pixels is greater than N, the second type of code word having encoded data only.