| CPC H04N 19/82 (2014.11) [G06F 18/211 (2023.01); G06F 18/241 (2023.01); G06F 18/2431 (2023.01); H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/176 (2014.11)] | 16 Claims |

|
1. A video decoding device, comprising:
a processor configured to:
select, from a plurality of pixels, a subset of pixels of a video block;
determine a first diagonal variation using a first pixel of the subset of pixels and a second pixel of the subset of pixels, wherein the second pixel is positioned in a first diagonal direction from the first pixel;
obtain a sum of diagonal variations, wherein the sum of diagonal variations is a first sum of diagonal variations and is obtained based on the first diagonal variation;
determine a diagonal gradient based on the sum of diagonal variations;
determine a second diagonal variation using a third pixel of the subset of pixels and a fourth pixel of the subset of pixels, wherein the fourth pixel is positioned in a second diagonal direction from the third pixel;
obtain a second sum of diagonal variations using the second diagonal variation;
perform adaptive loop filtering (ALF) on the video block based on the diagonal gradient and the second sum of diagonal variations; and
decode a picture comprising the video block.
|