# US 2021/0092425 A1 · Method and device for video encoding and decoding with interpolation filter flag being consistent with mmvd distances

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0092425 A1
- Document ID: US20210092425A1
- Status: Published application
- Kind: A1
- Application number: 17/022,008
- Filed: 2020-09-15
- Published: 2021-03-25
- Earliest claimed: 2019-09-22
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Guichun LI; Xiang Li; Xiaozhong XU; Shan LIU
- Web page: https://patentgrep.com/patent/US20210092425A1

## CPC

- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/51: Motion estimation or motion compensation
- H04N 19/52: by predictive encoding
- H04N 19/523: with sub-pixel accuracy
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for video decoding includes: receiving an encoded block of video data for a current block; receiving signaling information associated with the current block, the signaling information indicating that a merge-with-motion-vector-difference (MMVD) mode is used in encoding the current block; performing a conformation reconfiguration to cause an alternative half-sample interpolation filter flag to be consistent with one or more distance values of an MMVD candidate, the conformation reconfiguration including reconfiguration of one or more of: the alternative half-sample interpolation filter flag, or the one or more distance values of the MMVD candidate; and reconstructing the current block according to the encoded block and the alternative half-sample interpolation filter flag.

## Claims

### Claim 1

A method for video decoding, comprising:
receiving an encoded block of video data for a current block;
receiving signaling information associated with the current block, the signaling information indicating that a merge-with-motion-vector-difference (MMVD) mode is used in encoding the current block;
performing a conformation reconfiguration to cause an alternative half-sample interpolation filter flag to be consistent with one or more distance values of an MMVD candidate, the conformation reconfiguration including reconfiguration of one or more of: the alternative half-sample interpolation filter flag, or the one or more distance values of the MMVD candidate; and
reconstructing the current block according to the encoded block and the alternative half-sample interpolation filter flag.

### Claim 2 (depends on 1)

The method according to claim 1, wherein performing the conformation reconfiguration includes:
assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply an alternative half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 3 (depends on 1)

The method according to claim 1, wherein performing the conformation reconfiguration includes:
determining whether the one or more distances of the MMVD candidate includes a distance greater than 0 and less than ½ sample; and
in response to the one or more distances of the MMVD candidate including a distance greater than 0 and less than ½ sample, assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply an alternative half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 4 (depends on 1)

The method according to claim 1, wherein performing the conformation reconfiguration includes:
determining whether a final motion vector (MV) of a MMVD candidate is not at a ½ sample position; and
in response to a final MV of a MMVD candidate not being at a ½ sample position, assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply an alternative half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 5 (depends on 1)

The method according to claim 1, wherein performing the conformation reconfiguration includes:
determining whether the alternative half-sample interpolation filter flag associated with a base candidate equals to 1; and
in response to the alternative half-sample interpolation filter flag associated with the base candidate equals to 1, using a modified MMVD distance table to ensure all distance values of the MMVD candidate being greater than or equal to ½ sample.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the modified MMVD distance table is:
Distance IDX
0
1
2
3
4
5
6
7
Offset (in unit of
½
1
2
4
8
16
32
64
luma sample)
Full-pel MMVD off
Offset (in unit of
1
2
4
8
16
32
64
128;
luma sample)
Full-pel MMVD on
wherein a first row of the modified MMVD distance table lists distance indexes; a second row of the modified MMVD distance table lists offsets of moving vectors (MVs) in unit of luma samples when a full-pel MMVD flag is off; and a third row of the modified MMVD distance table lists offsets of the MVs in unit of luma samples when the full-pel MMVD flag is on.

### Claim 7 (depends on 1)

The method according to claim 1, wherein performing the conformation reconfiguration includes:
determining whether a half-sample interpolation filter is enabled; and
in response to the half-sample interpolation filter being enabled, using a modified MMVD distance table to ensure all distance values of the MMVD candidate being greater than or equal to ½ sample.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the modified MMVD distance table is:
Distance IDX
0
1
2
3
4
5
6
7
Offset (in unit of
½
1
2
4
8
16
32
64
luma sample)
Full-pel MMVD off
Offset (in unit of
1
2
4
8
16
32
64
128;
luma sample)
Full-pel MMVD on
wherein a first row of the modified MMVD distance table lists distance indexes; a second row of the modified MMVD distance table lists offsets of moving vectors (MVs) in unit of luma samples when a full-pel MMVD flag is off; and a third row of the modified MMVD distance table lists offsets of the MVs in unit of luma samples when the full-pel MMVD flag is on.

### Claim 9 (depends on 1)

The method according to claim 1, wherein:
the encoded block and signaling information are generated by an encoder that performs a bit stream conformance in response to a base candidate associated with a moving vector difference (MVD) of the current block has the alternative half sample interpolation filter flag value equal to 1.

### Claim 10

A method for video encoding, comprising:
encoding video data in an MMVD mode to generate an encoded block for a current block; and
generating signaling information associated with the current block, including performing a conformation reconfiguration to cause an alternative half-sample interpolation filter flag to be consistent with one or more distance values of an MMVD candidate.

### Claim 11 (depends on 10)

The method according to claim 10, wherein performing the conformation reconfiguration includes:
determining whether a base candidate associated with a motion vector difference (MVD) of the current block has an alternative half sample interpolation filter flag value equal to 1; and
in response to the base candidate associated with the MVD of the current block has an alternative half sample interpolation filter flag value equal to 1, enforcing a bit stream conformance to cause MMVD distance with value smaller than ½ samples not to be selected for the corresponding MMVD candidates.

### Claim 12 (depends on 10)

The method according to claim 10, wherein performing the conformation reconfiguration includes:
in response to the base candidate associated with the MVD of the current block has an alternative half sample interpolation filter flag value equal to 1, enforcing a bit stream conformance to cause all components of final moving vectors (MVs) of a MMVD candidate are at ½ sample positions.

### Claim 13

A video decoder for video decoding, comprising:
a memory, storing computer-executable instructions; and
a processor, coupled with the memory and, when the computer-executable instructions being executed, configured to:
receive an encoded block of video data for a current block;
receiving signaling information associated with the current block, the signaling information indicating that an MMVD mode is used in encoding the current block;
perform a conformation reconfiguration to cause an alternative half-sample interpolation filter flag to be consistent with one or more distance values of an MMVD candidate, the conformation reconfiguration including reconfiguration of one or more of: the alternative half-sample interpolation filter flag, or the one or more distance values of the MMVD candidate; and
reconstruct the current block according to the encoded block and the alternative half-sample interpolation filter flag.

### Claim 14 (depends on 13)

The video decoder according to claim 13, wherein performing the conformation reconfiguration includes:
assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply a half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 15 (depends on 13)

The video decoder according to claim 13, wherein performing the conformation reconfiguration includes:
determining whether the one or more distances of the MMVD candidate includes a distance greater than 0 and less than ½ sample; and
in response to the one or more distances of the MMVD candidate including a distance greater than 0 and less than ½ sample, assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply a half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 16 (depends on 13)

The video decoder according to claim 13, wherein performing the conformation reconfiguration includes:
determining whether a final MV of a MMVD candidate is not at a ½ sample position; and
in response to a final MV of a MMVD candidate not being at a ½ sample position, assigning a 0 value to the alternative half-sample interpolation filter flag to indicate not to apply a half-sample interpolation filter in a motion compensation in reconstructing the current block.

### Claim 17 (depends on 13)

The video decoder according to claim 13, wherein performing the conformation reconfiguration includes:
determining whether the alternative half-sample interpolation filter flag associated with a base candidate equals to 1; and
in response to the alternative half-sample interpolation filter flag associated with a base candidate equals to 1, using a modified MMVD distance table to ensure all distance values of the MMVD candidate being greater than or equal to ½ sample.

### Claim 18 (depends on 17)

The video decoder according to claim 17, wherein the modified MMVD distance table is:
Distance IDX
0
1
2
3
4
5
6
7
Offset (in unit of
½
1
2
4
8
16
32
64
luma sample)
Full-pel MMVD off
Offset (in unit of
1
2
4
8
16
32
64
128;
luma sample)
Full-pel MMVD on
wherein a first row of the modified MMVD distance table lists distance indexes; a second row of the modified MMVD distance table lists offsets of moving vectors (MVs) in unit of luma samples when a full-pel MMVD flag is off; and a third row of the modified MMVD distance table lists offsets of the MVs in unit of luma samples when the full-pel MMVD flag is on.

### Claim 19 (depends on 13)

The video decoder according to claim 13, wherein performing the conformation reconfiguration includes:
determining whether a half-sample interpolation filter is enabled; and
in response to the half-sample interpolation filter being enabled, using a modified MMVD distance table to ensure all distance values of the MMVD candidate being greater than or equal to ½ sample.

### Claim 20 (depends on 19)

The video decoder according to claim 19, wherein the modified MMVD distance table is:
Distance IDX
0
1
2
3
4
5
6
7
Offset (in unit of
½
1
2
4
8
16
32
64
luma sample)
Full-pel MMVD off
Offset (in unit of
1
2
4
8
16
32
64
128;
luma sample)
Full-pel MMVD on
wherein a first row of the modified MMVD distance table lists distance indexes; a second row of the modified MMVD distance table lists offsets of moving vectors (MVs) in unit of luma samples when a full-pel MMVD flag is off; and a third row of the modified MMVD distance table lists offsets of the MVs in unit of luma samples when the full-pel MMVD flag is on.
