CPC H04N 19/117 (2014.11) [H04N 19/105 (2014.11); H04N 19/119 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11); H04N 19/86 (2014.11)] | 17 Claims |
1. A filtering method, performed by a video encoding apparatus of encoding a sequence of pictures, for filtering block boundaries between reconstructed luma blocks, the method comprising:
determining at least one block boundary to which filtering is to be applied in a reconstructed image;
setting a boundary strength of the block boundary based on prediction modes of two target luma blocks forming the block boundary among a plurality of prediction modes, wherein the plurality of prediction modes include an intra prediction mode, an intra block copy mode, and an inter prediction mode;
calculating an average value of quantization parameters which are respectively applied to the target luma blocks, and deriving a variable by adding the average value to an offset value derived based on offset information to be encoded at a picture-level header or a sequence-level header that is a header which is referenced in common by the pictures belonging to the sequence; and
determining whether to perform the filtering on the block boundary and performing the filtering, based on the set boundary strength and the variable,
wherein the setting of the boundary strength comprises:
if at least one of the two target luma blocks are predicted by the intra prediction mode, setting the boundary strength as a second value; and
otherwise, if one of the two target luma blocks is predicted by the intra block copy mode and the other of the two target luma blocks is predicted by the inter prediction mode, setting the boundary strength as a first value different from the second value.
|