# US 2026/0181177 A1 · Methods and devices for candidate derivation for affine merge mode 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 2026/0181177 A1
- Document ID: US20260181177A1
- Status: Published application
- Kind: A1
- Application number: 19/543,788
- Filed: 2026-02-18
- Published: 2026-06-25
- Earliest claimed: 2023-08-23
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Wei CHEN; Xiaoyu XIU; Hong-Jheng JHU; Che-Wei KUO; Ning YAN; Changyue MA; Xianglin WANG; Bing YU
- Web page: https://patentgrep.com/patent/US20260181177A1

## CPC

- H04N 19/567: Motion estimation based on rate distortion criteria
- 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/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/52: by predictive encoding
- H04N 19/54: using feature points or meshes
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Methods for video decoding and encoding, apparatuses and non-transitory storage media are provided. The method for video decoding includes: obtaining, by a decoder, a plurality of first motion vectors of a plurality of sub-blocks of a current block, based on a subblock-based temporal motion vector prediction (SbTMVP) mode; deriving, by the decoder, a set of linear model parameters by inputting the plurality of first motion vectors and a plurality of center positions of the plurality of sub-blocks into a linear regression process; and obtaining, by the decoder, a plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters.

## Claims

### Claim 1

A method for video decoding, comprising:
obtaining, by a decoder, a plurality of first motion vectors of a plurality of sub-blocks of a current block, based on a subblock-based temporal motion vector prediction (SbTMVP) mode;
deriving, by the decoder, a set of linear model parameters by inputting the plurality of first motion vectors and a plurality of center positions of the plurality of sub-blocks into a linear regression process; and
obtaining, by the decoder, a plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters comprises:
converting the set of linear model parameters into a plurality of control point motion vectors (CPMVs);
deriving an affine model based on the plurality of CPMVs;
deriving a plurality of second motion vectors of the plurality of sub-blocks based on the affine model; and
obtaining the plurality of predictions of the plurality of sub-blocks based on the plurality of second motion vectors of the plurality of sub-blocks.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing, by the decoder, the affine model for decoding subsequent blocks; or
storing, by the decoder, the plurality of second motion vectors for decoding subsequent blocks.

### Claim 4 (depends on 2)

The method of claim 2, wherein deriving the plurality of second motion vectors of the plurality of sub-blocks based on the affine model comprises:
in response to receiving a flag from an encoder, the flag indicating that the plurality of second motion vectors need to be derived, deriving the plurality of second motion vectors of the plurality of sub-blocks based on the affine model; or,
in response to determining that the plurality of second motion vectors need to be derived after an evaluation process based on a rate-distortion algorithm, deriving the plurality of second motion vectors of the plurality of sub-blocks based on the affine model.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
refining, by the decoder, the plurality of predictions of the plurality of sub-blocks based on a prediction refinement with optical flow (PROF) for affine mode.

### Claim 6 (depends on 5)

The method of claim 5, wherein refining the plurality of predictions of the plurality of sub-blocks based on the PROF for affine mode comprises:
in response to receiving a flag from an encoder, the flag indicating that the PROF for affine mode is applied for the current block, refining the plurality of predictions of the plurality of sub-blocks based on the PROF for affine mode; or,
in response to determining that the PROF mode is applied for the current block after an evaluation process based on a rate-distortion algorithm, refining the plurality of predictions of the plurality of sub-blocks based on the PROF for affine mode.

### Claim 7 (depends on 1)

The method of claim 1, wherein obtaining the plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters comprises:
obtaining a plurality of first predictions of the plurality of sub-blocks based on the set of linear model parameters;
obtaining a plurality of second predictions of the plurality of sub-blocks based on the plurality of first motion vectors of the plurality of sub-blocks; and
combining the plurality of first predictions with the plurality of second predictions to obtain the plurality of predictions of the plurality of sub-blocks.

### Claim 8 (depends on 1)

The method of claim 1, wherein deriving the set of linear model parameters by inputting the plurality of first motion vectors and the plurality of center positions of the plurality of sub-blocks to the linear regression process comprises:
in response to receiving a flag from an encoder, the flag indicating that the linear regression process is applied to the current block, deriving the set of linear model parameters by inputting the plurality of first motion vectors and the plurality of center positions of the plurality of sub-blocks into the linear regression process; or,
in response to determining that the linear regression process is applied to the current block after an evaluation process based on a rate-distortion algorithm, deriving the set of linear model parameters by inputting the plurality of first motion vectors and the plurality of center positions of the plurality of sub-blocks to the linear regression process.

### Claim 9 (depends on 1)

The method of claim 1, wherein obtaining the plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters comprises:
obtaining a plurality of first predictions of the plurality of sub-blocks based on the set of linear model parameters;
obtaining a plurality of second predictions of the plurality of sub-blocks based on the plurality of first motion vectors of the plurality of sub-blocks; and
in response to receiving a flag from an encoder, the flag indicating that the plurality of second predictions need to be modified, or in response to determining that the plurality of second predictions need to be modified after an evaluation process based on a rate-distortion algorithm, obtaining the plurality of predictions of the plurality of sub-blocks by replacing the plurality of second predictions with the plurality of first predictions.

### Claim 10 (depends on 1)

The method of claim 1, wherein the linear regression process comprises:
a linear regression process based on a regression based affine candidate derivation (RMVF) mode, or
a linear regression process based on a modified mode obtained by modifying the RMVF mode.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
obtaining, by the decoder, the modified mode based on the RMVF mode by requiring a smaller number of linear model parameters to be derived than a number of linear model parameters derived in the RMVF mode;
obtaining, by the decoder, the modified mode based on the RMVF mode by requiring a larger number of linear model parameters to be derived than a number of linear model parameters derived in the RMVF mode; or
obtaining, by the decoder, the modified mode based on the RMVF mode by requiring more diverse motions as input than input of the RMVF mode.

### Claim 12 (depends on 11)

The method of claim 11, wherein the more diverse motions comprise any one of, or any combination of, a translation motion, a non-translational motion, a spatial motion, or a temporal motion.

### Claim 13 (depends on 1)

The method of claim 1, wherein a chroma format of the current sample is 4:0:0, 4:2:0, 4:2:2, or 4:4:4.

### Claim 14

A method for video encoding, comprising:
obtaining, by an encoder, a plurality of first motion vectors of a plurality of sub-blocks of a current block, based on a subblock-based temporal motion vector prediction (SbTMVP) mode;
deriving, by the encoder, a set of linear model parameters by inputting the plurality of first motion vectors and a plurality of center positions of the plurality of sub-blocks into a linear regression process; and
obtaining, by the encoder, a plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters.

### Claim 15 (depends on 14)

The method of claim 14, wherein a chroma format of the current sample is 4:0:0, 4:2:0, 4:2:2, or 4:4:4.

### Claim 16

An apparatus for video coding, comprising:
one or more processors; and
a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors,
wherein the one or more processors, upon execution of the instructions, are configured to perform a method for video decoding, wherein the method for video decoding comprises:
obtaining, by a decoder, a plurality of first motion vectors of a plurality of sub-blocks of a current block, based on a subblock-based temporal motion vector prediction (SbTMVP) mode;
deriving, by the decoder, a set of linear model parameters by inputting the plurality of first motion vectors and a plurality of center positions of the plurality of sub-blocks into a linear regression process; and
obtaining, by the decoder, a plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters,
or
the one or more processors, upon execution of the instructions, are configured to perform a method for video encoding, wherein the method for video encoding comprises:
obtaining, by an encoder, a plurality of first motion vectors of a plurality of sub-blocks of a current block, based on a subblock-based temporal motion vector prediction (SbTMVP) mode;
deriving, by the encoder, a set of linear model parameters by inputting the plurality of first motion vectors and a plurality of center positions of the plurality of sub-blocks into a linear regression process; and
obtaining, by the encoder, a plurality of predictions of the plurality of sub-blocks based on the set of linear model parameters.

### Claim 17 (depends on 14)

A non-transitory computer-readable storage medium storing a bitstream generated by the method for video encoding according to claim 14.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein a chroma format of the current sample is 4:0:0, 4:2:0, 4:2:2, or 4:4:4.

### Claim 19 (depends on 14)

A method for storing a bitstream, comprising:
performing the method in claim 14 to generate a bitstream; and
storing the bitstream.

### Claim 20 (depends on 19)

The method of claim 19, wherein a chroma format of the current sample is 4:0:0, 4:2:0, 4:2:2 or 4:4:4.
