| CPC H04N 19/587 (2014.11) [H04N 19/11 (2014.11); H04N 19/14 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/70 (2014.11); H04N 19/117 (2014.11); H04N 19/82 (2014.11)] | 3 Claims |

|
3. An image decoding method for decoding an encoded image, wherein the image decoding method including:
setting a value of a filter application flag by using a prediction mode and a size of a target unit; and
deriving an absolute value of a displacement by using (i) the prediction mode and (ii) a prediction mode number representing a vertical direction or a prediction mode number representing a horizontal direction, and determining the value of the filter application flag according to whether the absolute value of the displacement is less than or equal to a threshold,
wherein the threshold is configured with a smaller value for a larger size of the target unit,
wherein a specific prediction mode number is assigned in advance for each direction of prediction, and
wherein the displacement indicates (i) a difference between (a) a prediction mode number representing a direction of prediction and (b) the prediction mode number representing the vertical direction, or (ii) a difference between (a) the prediction mode number representing the direction of prediction and (b) the prediction mode number representing the horizontal direction.
|