# US 2023/0067372 A1 · Weighted prediction in video coding

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

- Number: US 2023/0067372 A1
- Document ID: US20230067372A1
- Status: Published application
- Kind: A1
- Application number: 17/975,005
- Filed: 2022-10-27
- Published: 2023-03-02
- Earliest claimed: 2019-01-15
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Hongbin Liu; Li Zhang; Kai Zhang; Yue Wang
- Web page: https://patentgrep.com/patent/US20230067372A1

## CPC

- H04N 19/52: by predictive encoding
- 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/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video processing method includes generating, for a conversion between a current block of a video and a bitstream representation of the video, a motion vector for the current block; invoking a weighted prediction processing tool or a second processing tool in a mutually exclusive manner; and performing the conversion according to the invoking. The invoking of the second processing tool comprises refining the motion vector.

## Claims

### Claim 1

A video processing method, comprising:
generating, for a conversion between a current block of a video and a bitstream of the video, a motion vector for the current block;
invoking a first weighted prediction processing tool or a third processing tool in a mutually exclusive manner, wherein the third processing tool applies a prediction offset to prediction samples in bi-prediction directions to derive a final prediction for the current block, wherein the prediction offset is determined based on multiple gradients in different directions; and
performing the conversion according to the invoking,
wherein the invoking the first weighted prediction processing tool comprises applying a linear weight and an offset to at least one prediction block of the current block to derive the final prediction of the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the conversion comprises decoding the current block from the bitstream.

### Claim 3 (depends on 1)

The method of claim 1, wherein the conversion comprises encoding the current block into the bitstream.

### Claim 4 (depends on 1)

The method of claim 1, wherein the invoking further comprises invoking the first weighted prediction processing tool or a second processing tool in a mutually exclusive manner, wherein the invoking the second processing tool comprises refining the motion vector.

### Claim 5 (depends on 4)

The method of claim 4, wherein the invoking the first weighted prediction processing tool or the second processing tool comprises:
determining, in case the first weighted prediction processing tool is enabled for the current block, that the second processing tool is disabled for the current block.

### Claim 6 (depends on 4)

The method of claim 4, wherein the invoking the first weighted prediction processing tool or the second processing tool comprises:
determining, based on the first weighted prediction processing tool being disabled for the current block, that the second processing tool is enabled for the current block.

### Claim 7 (depends on 1)

The method of claim 1, wherein refining the motion vector comprises applying a motion vector offset to refine the motion vector,
wherein the motion vector offset is determined based on a sum of absolute differences derived from a first reference block in a reference list 0 and a second reference block in a reference list 1 of the current block.

### Claim 8 (depends on 7)

The method of claim 7, wherein the sum of absolute differences is calculated based on partial positions of the first reference block and the second reference block.

### Claim 9 (depends on 4)

The method of claim 4, wherein, in case the first weighted prediction processing tool is applied to the current block, information indicating whether the second processing tool is applied to the current block is defaulted to have a value of zero.

### Claim 10 (depends on 4)

The method of claim 4, wherein information indicating whether the second processing tool is applied is signaled in at least one of a sequence parameter set (SPS), or a picture parameter set (PPS).

### Claim 11 (depends on 4)

The method of claim 4, wherein the second processing tool comprises a decoder side motion vector refinement process.

### Claim 12 (depends on 1)

The method of claim 1, wherein the third processing tool comprises a bi-directional optical flow prediction process.

### Claim 13 (depends on 1)

The method of claim 1, wherein, in case the first weighted prediction processing tool is applied to the current block, information indicating whether the third processing tool is applied to the current block is defaulted to have a value of zero.

### Claim 14 (depends on 1)

The method of claim 1, wherein information indicating whether the third processing tool is applied is signaled in at least one of a sequence parameter set (SPS), or a picture parameter set (PPS).

### Claim 15 (depends on 1)

The method of claim 1, wherein the invoking further comprises invoking the first weighted prediction processing tool or a fourth processing tool in a mutually exclusive manner, the fourth processing tool comprising one of: a combined inter-intra prediction processing tool that generates the final prediction based on an inter prediction and an intra prediction, an affine processing tool that generates the final prediction based on a control point motion vector, or an overlapped block motion compensation processing tool that generates the final prediction based on motion vectors of a sub-block and spatial neighboring sub-block.

### Claim 16

An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
generate, for a conversion between a current block of a video and a bitstream of the video, a motion vector for the current block;
invoke a first weighted prediction processing tool or a third processing tool in a mutually exclusive manner, wherein the third processing tool applies a prediction offset to prediction samples in bi-prediction directions to derive a final prediction for the current block, wherein the prediction offset is determined based on multiple gradients in different directions; and
perform the conversion according to the invoking;
wherein invoking the first weighted prediction processing tool comprises applying a linear weight and an offset to at least one prediction block of the current block to derive the final prediction of the current block.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the third processing tool comprises a bi-directional optical flow prediction process; and
wherein in case the first weighted prediction processing tool is applied to the current block, information indicating whether the third processing tool is applied to the current block is defaulted to have a value of zero.

### Claim 18

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
generate, for a conversion between a current block of a video and a bitstream of the video, a motion vector for the current block;
invoke a first weighted prediction processing tool or a third processing tool in a mutually exclusive manner, wherein the third processing tool applies a prediction offset to prediction samples in bi-prediction directions to derive a final prediction for the current block, wherein the prediction offset is determined based on multiple gradients in different directions; and
perform the conversion according to the invoking,
wherein the invoking the first weighted prediction processing tool comprises applying a linear weight and an offset to at least one prediction block of the current block to derive the final prediction of the current block.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the third processing tool comprises a bi-directional optical flow prediction process; and
wherein in case the first weighted prediction processing tool is applied to the current block, information indicating whether the third processing tool is applied to the current block is defaulted to have a value of zero.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
generating a motion vector for a current block of the video;
invoking a first weighted prediction processing tool or a third processing tool in a mutually exclusive manner, wherein the third processing tool applies a prediction offset to prediction samples in bi-prediction directions to derive a final prediction for the current block, wherein the prediction offset is determined based on multiple gradients in different directions; and
generating the bitstream based on the invoking,
wherein the invoking the first weighted prediction processing tool comprises applying a linear weight and an offset to at least one prediction block of the current block to derive the final prediction of the current block.
