摘要 |
A method for encoding a binary shape signal determines as a mode of a target block a first and a second modes, if errors of the target block with respect to a first and a second reference blocks are not greater than a predetermined threshold, respectively. If the mode is not determined, the target block is motion estimated and compensated, a motion compensation error(MCE) and a motion vector difference(MVD) are calculated and the MVD is encoded if the MVD is not zero. Then the mode of the target block is set to a third mode if the MVD is zero and the MCE is not greater than the threshold and a fourth mode if the MVD is not zero and the MCE is not greater than the threshold. If the mode is not determined, intra-coded data and inter-coded data are generated, and the number of bits of the intra-coded data is compared with the one of the inter-coded data. If the number of bits of the intra-coded data is not greater than the one of the inter-coded data, the mode of the target block is decided to a fifth mode. If the mode is not decided, the mode of the target block is decided to a fifth mode if the MVD is zero and a seventh mode if the MVD is not zero. Encoded data of the target block is generated based on the mode thereof. <IMAGE> |