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 video encoding apparatus of encoding a sequence of pictures, the apparatus comprising:
a boundary determination unit configured to determine at least one block boundary to which filtering is to be applied in a reconstructed image;
a strength setting unit configured to set 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, a type of the block boundary, and preset conditions, wherein the plurality of prediction modes include an intra prediction mode, an intra block copy mode, and an inter prediction mode; and
a filtering execution unit configured to
calculate an average value of quantization parameters which are respectively applied to the target luma blocks, and derive 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
determine whether to perform the filtering on the block boundary and perform the filtering, based on the set boundary strength and the variable,
wherein the strength setting unit is configured to:
if at least one of the two target luma blocks are predicted by the intra prediction mode, set 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, set the boundary strength as a first value different from the second value.
|