摘要 |
<P>PROBLEM TO BE SOLVED: To provide a method capable of increasing a compression factor with a memory by searching for a domain block while performing forward and backward coding on data in a macroblock. <P>SOLUTION: A data compressing-and-decompressing apparatus includes: a compressor including a searching unit that performs searching a search range for a domain block, generating a difference value by comparing data in the domain block and data in a range block, and generating a cost based on the difference value by using a cost table, and a coder that produces range block compressed data by coding information on a distance and difference to a domain block corresponding to a cost selected from the searching unit; and a decompressor including a flag detector that detect distance and difference flags on the basis of the compressed data, and a decoder that performs selecting a domain block by confirming a distance value corresponding to the detected distance flag, and calculating a difference value corresponding to the cost before performing calculation with data in a domain block having the selected difference value, thereby restoring the range block. <P>COPYRIGHT: (C)2012,JPO&INPIT |