Patent ID: 6970603

Claim:
A data encoding apparatus for encoding data for every data block of a predetermined number of pixels of data, said data encoding apparatus comprising: a data string rearranging means for outputting data of sequentially input data blocks in a predetermined output sequence corresponding to an input sequence; a block end data detecting means for detecting input data not coinciding with reference data and latest in said output sequence from among the input data of said data string rearranging means as block end data; a block end judging means for judging whether or not the output data of said data string rearranging means is said block end data; and an encoding means for sequentially generating codes in accordance with the output data of said data string rearranging means, generating a first code in accordance with the output data when said block end judging means judge that the output data is said block end data, and terminating the encoding of the data block containing the output data.