CPC H04N 19/137 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11); H04N 19/88 (2014.11)] | 20 Claims |
1. A method for video decoding in a video decoder, comprising:
decoding prediction information of a current block in a coded bitstream, the prediction information indicating that template matching (TM) is applied with a merge mode with motion vector difference (MMVD) mode and indicating motion vector difference (MVD) information of the current block;
determining, using the MMVD mode, one or more MVD candidates based on the MVD information and a first plurality of distances;
performing TM to search for a matched MVD between a current template of the current block and a reference template of a reference block of the current block based on the one or more MVD candidates determined using the MMVD mode; and
reconstructing the current block based on a motion vector (MV) that is a summation of a motion vector predictor (MVP) and the matched MVD, wherein
the first plurality of distances used in the MMVD mode to determine the one or more MVD candidates when the TM is enabled is different from a second plurality of distances used in the MMVD mode when the TM is not enabled.
|