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

|
1. A method of filtering reconstructed video data, the method comprising:
deriving a sub width chroma variable based on a chroma format, wherein the sub width chroma variable is set to 2 for a 4:2:0 chroma format and is set to 1 for a 4:4:4 chroma format;
for a chroma component of the reconstructed video data with an edge type being a horizontal edge, computing a gradient value as follows, computing a first value using samples included in a first line perpendicular to the horizontal edge, determining whether the sub width chroma variable is equal to 2, computing a second value by using one of: samples included in a fourth line perpendicular to the horizontal edge based on the sub height chroma variable not being equal to 2 or samples included in a second line perpendicular to the horizontal edge based on the sub width chroma variable being equal to 2, and computing the gradient value using the first value and the second value;
determining, based on whether or not the gradient value is less than a threshold variable, whether or not to modify a maximum filter length variable from 3 to 1; and
filtering the chroma component of the reconstructed video data with the edge type being the horizontal edge based on the maximum filter length variable.
|