摘要 |
PROBLEM TO BE SOLVED: To provide an encoding apparatus for generating a predictive image for an encoding target block obtained by dividing a frame image into small regions, and for encoding a differential signal between the encoding target block and the predictive image, and to provide a decoding apparatus and a program.SOLUTION: An encoding apparatus (10) includes a quadrature transforming unit (13) having a changeover switch and a cost calculating section. The changeover switch changes over whether to perform encoding by applying, to the differential signal, first quadrature transforming processing or by applying, to the differential signal, second quadrature transforming processing in which n-th order bases are in a quadrature relationship with respect to the first quadrature transforming processing. The cost calculating section performs cost calculation when encoding a frame image and controls switching of the changeover switch for each differential signal so as to provide a less code amount. |