CPC H04N 19/52 (2014.11) [H04N 19/117 (2014.11); H04N 19/119 (2014.11); H04N 19/139 (2014.11); H04N 19/176 (2014.11); H04N 19/43 (2014.11); H04N 19/583 (2014.11); H04N 19/61 (2014.11); H04N 19/86 (2014.11)] | 15 Claims |
1. A method for performing filtering processing on an affine image block that is one of a plurality of coding blocks of an image, wherein the affine image block is divided into two or more affine motion subunits, the method comprising:
obtaining pixel values of a first affine motion subunit and pixel values of a second affine motion subunit, wherein the first affine motion subunit and the second affine motion subunit are adjacent to a filtering boundary and in the two or more affine motion subunits; and
performing filtering processing on pixels adjacent to the filtering boundary based on a boundary strength value of the filtering boundary, the pixel values of the first affine motion subunit, and the pixel values of the second affine motion subunit;
wherein the boundary strength value of the filtering boundary is set to 1 when:
the first affine motion subunit has two motion vectors that correspond to a same reference image;
the second affine motion subunit has two motion vectors that correspond to the same reference image;
(a) a difference between horizontal components or vertical components of two motion vectors that corresponds to a forward reference candidate list (list0) is greater than or equal to a motion vector difference threshold T, or a difference between horizontal components or vertical components of two motion vectors that corresponds to a backward reference candidate list (list1) is greater than or equal to the motion vector difference threshold T; and
(b) a difference between horizontal components or vertical components of a motion vector that corresponds to a forward reference candidate list (list0) and that is of the first affine motion subunit and a motion vector that corresponds to a backward reference candidate list (list1) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T, or a difference between horizontal components or vertical components of a motion vector that corresponds to a backward reference candidate list (list1) and that is of the first affine motion subunit and a motion vector that corresponds to a forward reference candidate list (list0) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T.
|