摘要 |
PROBLEM TO BE SOLVED: To provide a coding device and a decoding device that conduct coding/ decoding by using repetition of data with at least two different sizes so as to enhance the compression rate when utilizing the detected repetition of data in coding/decoding. SOLUTION: When a replaceable part of data through copy of processed data is detected and a data length of the part is acquired and then a replaceable part through repetition of data of any size among a plurality of kinds of sizes is acquired, any of commands Copy the Repeat Byte, Copy then Repeat Word, and Copy then Repeat Double Word is generated depending on the size of the data. Furthermore, in the case that a part to which repetition of data is not applicable in succession to the part replaceable through copy of the processed data is detected, a command Copy then Raw is generated.
|