| CPC H04N 19/615 (2014.11) [H04N 19/105 (2014.11); H04N 19/109 (2014.11); H04N 19/117 (2014.11); H04N 19/176 (2014.11); H04N 19/423 (2014.11)] | 4 Claims |

|
1. A video decoding method comprising:
when an inter prediction mode of a current block is an affine mode:
determining a reference sample location to be referred to for decoding the current block using a motion vector of the current block determined using two or three motion vector predictors for two or three vertices among a plurality of vertices of the current block;
when it is identified that an inter prediction mode of a sub block included in the current block is the affine mode based on the inter prediction mode of the current block, determining a first interpolation filter among a plurality of interpolation filters corresponding to a size of the sub block, wherein a number of filter coefficients of the first interpolation filter is eight;
applying the first interpolation filter to a reconstructed reference samples corresponding to the reference sample location to generate a prediction sample of the sub block; and
decoding the current block using the prediction sample of the sub block, and
when the inter prediction mode of the current block is a decoder side motion vector refinement (DMVR) mode:
determining a second interpolation filter among a plurality of interpolation filters corresponding to the DMVR mode, wherein a number of filter coefficients of the second interpolation filter is two;
applying the second interpolation filter to reconstructed reference samples to generate a prediction sample of the current block; and
decoding the current block using the prediction sample of the current block.
|