| CPC H04N 19/117 (2014.11) [H04N 19/14 (2014.11); H04N 19/159 (2014.11); H04N 19/174 (2014.11)] | 3 Claims |

|
1. An encoding method comprising:
selecting a filter based at least on a prediction mode used for a first block, the filter including first filter coefficients for the first block and second filter coefficients for a second block;
multiplying values of first pixels among the first block and second pixels among the second block by the first filter coefficients to change a value of a first pixel in the first pixels; and
multiplying the values of the first pixels among the first block and the second pixels among the second block by the second filter coefficients to change a value of a second pixel in the second pixels,
the first pixels among the first block and the second pixels among the second block being arranged on a straight line perpendicular to a boundary between the first block and the second block, a distance on the straight line between the boundary and the first pixel being the same as a distance on the straight line between the boundary and the second pixel,
a first filter coefficient of the first filter coefficients being different from a second filter coefficient of the second filter coefficients, the first filter coefficient being multiplied by the value of the first pixel, the second filter coefficient being multiplied by the value of the second pixel.
|