CPC H04N 19/117 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/86 (2014.11); H04N 19/96 (2014.11)] | 14 Claims |
1. A method of filtering reconstructed video data, the method comprising:
receiving an edge type variable specifying whether a vertical edge or a horizontal edge is being filtered in a current block of the reconstructed video data;
deriving a maximum filter length of a deblocking filter based on the edge type variable and one or more conditions relating to at least one of a size of a transform block associated with the current block or a size of an adjacent transform block, wherein:
when the edge type variable specifies that the vertical edge is filtered, the size of the transform block associated with the current block is a horizontal width of the transform block associated with the current block and the size of the adjacent transform block is a horizontal width of the adjacent transform block, and
when (i) the edge type variable specifies that the horizontal edge is filtered and (ii) a remainder of a vertical location of the horizontal edge divided by a height of a coding tree block is equal to 0, the maximum filter length is set to 1; and
performing a deblocking filtering, by the deblocking filter, on the current block of the reconstructed video data based on the maximum filter length, wherein a value of a luma filtered sample in the current block is clipped based on a position of the luma filtered sample.
|