An image decoding apparatus for receiving and decoding an encoded signal, comprising:
- first decoding means for decoding an encoded signal to obtain a difference value of a pixel value signal, and for outputting the obtained difference value as a decoded pixel value difference value;
- calculation means for adding the decoded pixel value difference value and a compensated pixel value signal, and for outputting the result of the addition as a decoded pixel value signal;
- second decoding means for decoding the encoded signal to obtain a motion vector of the pixel value signal and a motion vector of a shape signal, and for outputting these motion vectors as a decoded pixel value motion vector and a decoded shape motion vector, respectively;
- first motion compensation means for compensating a pixel value signal of a reference image using the decoded pixel value motion vector, and for outputting the result of the motion compensation as the compensated pixel value signal;
- second motion compensation means for compensating a shape signal of the reference image using the decoded shape motion vector, and for outputting the result of the motion compensation as a compensated shape signal;
- and
- third decoding means for decoding the input encoded signal with reference to the compensated shape signal, and for outputting the decoded signal as a shape signal.