# US 2023/0068657 A1 · Selecting a coding method for suffix values for displacement vector differences based on value intervals

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

- Number: US 2023/0068657 A1
- Document ID: US20230068657A1
- Status: Published application
- Kind: A1
- Application number: 17/969,633
- Filed: 2022-10-19
- Published: 2023-03-02
- Earliest claimed: 2020-12-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Ye HU
- Web page: https://patentgrep.com/patent/US20230068657A1

## CPC

- H04N 19/513: Processing of motion vectors
- H04N 19/593: involving spatial prediction techniques
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video decoding method includes determining, from among plural value intervals, a first value interval to which an absolute value of a displacement vector difference of a current decoding unit in a first direction belongs. The method further includes determining, based on the first value interval, that the displacement vector difference in the first direction has a prefix value and a suffix value, and determining, based on the first value interval, a first suffix decoding method for decoding the suffix value. The method further includes performing decoding processing on a first suffix part in a bitstream using the determined first suffix decoding method, to obtain the suffix value corresponding to the displacement vector difference in the first direction. The method further includes determining, based on the prefix value and the suffix value, the displacement vector difference in the first direction.

## Claims

### Claim 1

A video decoding method, performed by a processor, the method comprising:
determining, from among plural value intervals, a first value interval to which an absolute value of a displacement vector difference of a current decoding unit in a first direction belongs;
determining, based on the first value interval, that the displacement vector difference in the first direction has a prefix value and a suffix value;
determining, based on the first value interval, a first suffix decoding method for decoding the suffix value;
performing decoding processing on a first suffix part in a bitstream using the determined first suffix decoding method, to obtain the suffix value corresponding to the displacement vector difference in the first direction; and
determining, based on the prefix value and the suffix value, the displacement vector difference in the first direction.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining the first value interval comprises:
performing decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction; and
determining, based on the prefix value, the first value interval among the plural value intervals.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining the first value interval comprises:
decoding, from the bitstream, a first range identifier, wherein the first range identifier indicates whether the absolute value of the displacement vector difference in the first direction is in a first range; and
determining, based on the first range identifier, the first value interval among the plural value intervals.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the determining the first value interval comprises:
performing decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction; and
in response to a determination that the prefix value is in a first value range, determining the first value interval based on the prefix value; and
in response to a determination that the prefix value is in a second value range,
decoding the bitstream to obtain a second range identifier, wherein the second range identifier indicates whether the absolute value of the displacement vector difference in the first direction is in a second range; and
determining, based on the second range identifier, the first value interval among the plural value intervals.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining the first value interval comprises:
decoding the bitstream to obtain a third range identifier, wherein the third range identifier indicates whether the absolute value of the displacement vector difference in the first direction is in a third range;
in response to the third range identifier indicating that the absolute value of the displacement vector difference in the first direction is in the third range, determining the first value interval based on the third range; and
in response to the third range identifier indicating that the absolute value of the displacement vector difference in the first direction is not in the third range,
performing decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction; and
determining, based on the prefix value, the first value interval among the plural value intervals.

### Claim 6 (depends on 2)

The method according to claim 2, wherein the performing decoding processing on the first prefix part in the bitstream comprises:
performing the decoding processing on a signed binary string of the first prefix part in the bitstream using a truncated unary code method, to obtain the prefix value corresponding to the displacement vector difference in the first direction.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the determining the first suffix decoding method comprises:
in response to a determination that the first value interval meets a first condition, determining that the first suffix decoding method is a fixed-length code decoding method; and
in response to a determination that the first value interval meets a second condition, determining that the first suffix decoding method is an exponential-Golomb decoding method.

### Claim 8 (depends on 1)

The method according to claim 1, wherein
the current decoding unit corresponds to an intra block copy (IBC) decoding block, and the displacement vector difference is a block vector difference (BVD); or
the current decoding unit corresponds to an intra string copy (ISC) decoding block, and the displacement vector difference is a string vector difference (SVD); or
the current decoding unit corresponds to a decoding block in an inter-frame prediction mode, and the displacement vector difference is a motion vector difference (MVD).

### Claim 9 (depends on 1)

The method according to claim 1, wherein the plural value intervals are set based on a distribution characteristic of the displacement vector difference.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
determining, from plural value intervals, a second value interval to which an absolute value of a displacement vector difference of the current decoding unit in a second direction belongs;
determining, based on the second value interval, that the displacement vector difference in the second direction has a prefix value and a suffix value;
determining, based on the second value interval, a second suffix decoding method for decoding the suffix value of the displacement vector difference in the second direction; performing decoding processing on a second suffix part in the bitstream using the determined second suffix decoding method, to obtain the suffix value corresponding to the displacement vector difference in the second direction; and
determining, based on the prefix value and the suffix value corresponding to the displacement vector difference in the second direction, the displacement vector difference in the second direction, wherein
(i) the first direction is a horizontal direction and the second direction is a vertical direction; or (ii) the first direction is a vertical direction and the second direction is a horizontal direction.

### Claim 11 (depends on 10)

The method according to claim 10, wherein
the prefix value corresponding to the displacement vector difference in the second direction is entropy coded with context-based adaptive binary arithmetic coding (CABAC), and a first bit of the prefix value corresponding to the displacement vector difference in the second direction has a first context model and a second context model; and
when the displacement vector difference in the first direction is decoded first and the displacement vector difference in the second direction is decoded second, the method further comprises:
in response to a determination that the displacement vector difference in the first direction is 0, determining a value of the first bit of the prefix value corresponding to the displacement vector difference in the second direction according to the first context model; and
in response to a determination that the displacement vector difference in the first direction is not 0, determining the value of the first bit of the prefix value corresponding to the displacement vector difference in the second direction according to the second context model.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the determining, based on the prefix value and the suffix value, the displacement vector difference in the first direction comprises:
determining, based on the prefix value corresponding to the displacement vector difference in the first direction, a first offset value;
determining, based on the first offset value and the suffix value corresponding to the displacement vector difference in the first direction, the absolute value of the displacement vector difference in the first direction;
when the absolute value of the displacement vector difference in the first direction is not 0, decoding the bitstream to obtain a sign of the displacement vector difference in the first direction, and determining, based on the absolute value of the displacement vector difference in the first direction and the sign, the displacement vector difference in the first direction; and
when the absolute value of the displacement vector difference in the first direction is 0, determining that the displacement vector difference in the first direction is 0 without decoding the bitstream to obtain the sign of the displacement vector difference in the first direction.

### Claim 13

A video encoding method, comprising:
determining, from among plural value intervals, a first value interval to which an absolute value of a displacement vector difference of a current encoding unit in a first direction belongs;
determining, based on the first value interval, that the displacement vector difference in the first direction has a prefix value and a suffix value;
determining, based on the first value interval, a first suffix encoding method for encoding the suffix value;
performing encoding processing on the suffix value corresponding to the displacement vector difference in the first direction using the first suffix encoding method, to obtain a first suffix part; and
performing encoding to generate a bitstream comprising the first suffix part.

### Claim 14

A video decoding apparatus, comprising:
processing circuitry configured to determine, from among plural value intervals, a first value interval to which an absolute value of a displacement vector difference of a current decoding unit in a first direction belongs;
determine, based on the first value interval, that the displacement vector difference in the first direction has a prefix value and a suffix value;
determine, based on the first value interval, a first suffix decoding method for decoding the suffix value;
perform decoding processing on a first suffix part in a bitstream using the first suffix decoding method, to obtain the suffix value corresponding to the displacement vector difference in the first direction; and
determine, based on the prefix value and the suffix value, the displacement vector difference in the first direction.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the processing circuitry is further configured to
perform decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction; and
determine, based on the prefix value, the first value interval among the plural value intervals.

### Claim 16 (depends on 14)

The apparatus according to claim 14, wherein the processing circuitry is further configured to
decode, from the bitstream, a first range identifier, wherein the first range identifier indicates whether the absolute value of the displacement vector difference in the first direction is in a first range; and
determine, based on the first range identifier, the first value interval among the plural value intervals.

### Claim 17 (depends on 14)

The apparatus according to claim 14, wherein the processing circuitry is further configured to perform decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction;
in response to a determination that the prefix value is in a first value range, determine the first value interval based on the prefix value; and
in response to a determination that the prefix value belongs to a second value range,
decode the bitstream to obtain a second range identifier, wherein the second range identifier indicates whether the absolute value of the displacement vector difference in the first direction belongs to a second range; and
determine, based on the second range identifier, the first value interval among the plural value intervals.

### Claim 18 (depends on 14)

The apparatus according to claim 14, wherein the processing circuitry is further configured to
decode the bitstream to obtain a third range identifier, wherein the third range identifier indicates whether the absolute value of the displacement vector difference in the first direction is in a third range;
in response to the third range identifier indicating that the absolute value of the displacement vector difference in the first direction is in the third range, determine the first value interval based on the third range; and
in response to the third range identifier indicating that the absolute value of the displacement vector difference in the first direction is not in the third range,
perform decoding processing on a first prefix part in the bitstream, to obtain the prefix value corresponding to the displacement vector difference in the first direction; and
determine, based on the prefix value, the first value interval among the plural value intervals.

### Claim 19 (depends on 15)

The apparatus according to claim 15, wherein the processing circuitry is further configured to
perform the decoding processing on a signed binary string of the first prefix part in the bitstream using a truncated unary code method, to obtain the prefix value corresponding to the displacement vector difference in the first direction.

### Claim 20 (depends on 14)

The apparatus according to claim 14, wherein the processing circuitry is further configured to
in response to a determination that the first value interval meets a first condition, determine that the first suffix decoding method is a fixed-length code decoding method; and
in response to a determination that the first value interval meets a second condition, determine that the first suffix decoding method is an exponential-Golomb decoding method.
