# US 2024/0205425 A1 · Method, device, and medium for video processing

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

- Number: US 2024/0205425 A1
- Document ID: US20240205425A1
- Status: Published application
- Kind: A1
- Application number: 18/286,213
- Filed: 2022-04-08
- Published: 2024-06-20
- Earliest claimed: 2021-04-09
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Na ZHANG; Kai ZHANG; Li ZHANG; Hongbin LIU; Zhipin DENG; Yang WANG
- Web page: https://patentgrep.com/patent/US20240205425A1

## CPC

- H04N 19/176: the region being a block, e.g. a macroblock
- 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/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/52: by predictive encoding
- H04N 19/54: using feature points or meshes
- H04N 19/88: involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for video processing is proposed. The method comprises: constructing a list of merge candidates for a target block of a video in a subblock based merge mode: reordering the list of merge candidates for the target block; and performing a conversion between the target block and a bitstream of the video based on the reordered list of merge candidates. Compared with the conventional solution, the proposed method can advantageously improve the coding efficiency.

## Claims

### Claim at position 1

1-42. (canceled)

### Claim 43

A method for video processing, comprising:
constructing a list of merge candidates for a target block of a video in a subblock based merge mode;
reordering the list of merge candidates for the target block; and
performing a conversion between the target block and a bitstream of the video based on the reordered list of merge candidates.

### Claim 44 (depends on 43)

The method of claim 43, wherein
the reordered list of merge candidates excludes a zero candidate; or
the list of the merge candidates is reordered in a first reordering scheme, the first reordering scheme being different from a second reordering scheme for a different list of merge candidates for the target block in a merge mode different from the subblock based merge mode.

### Claim 45 (depends on 43)

The method of claim 43, wherein reordering the list of merge candidates comprises:
determining a plurality of costs associated with the list of merge candidates, a cost of the plurality of costs being associated with a merge candidate in the list and being determined based on a plurality of distortion metrics between a plurality of target sub-templates for the target block and a plurality of reference sub-templates, the plurality of reference sub-templates being determined for the merge candidate and corresponding to the plurality of target sub-templates; and
reordering the list of merge candidates based on the plurality of costs.

### Claim 46 (depends on 45)

The method of claim 45, wherein each of the plurality of target sub-templates possesses an individual piece of motion information.

### Claim 47 (depends on 45)

The method of claim 45, wherein determining the plurality of costs associated with the list of merge candidates comprises:
for a target sub-template of the plurality of target sub-templates, constructing a corresponding reference sub-template of the plurality of reference sub-templates using motion information of a sub-block in the first row or the first column of the target block; and
determining the reference cost of the plurality of reference costs based on the distortion metric of the plurality of distortion metrics between the target sub-template and the corresponding reference sub-template.

### Claim 48 (depends on 47)

The method of claim 47, wherein constructing the corresponding reference sub-template comprises:
deriving motion information of the corresponding reference sub-template from the motion information of the sub-block; and
constructing reference samples of the corresponding reference sub-template based on the derived motion information, the reference samples neighboring to the sub-block.

### Claim 49 (depends on 45)

The method of claim 45, further comprising:
for a target sub-template of the plurality of target sub-templates, constructing a corresponding reference sub-template of the plurality of reference sub-templates using motion information other than motion information of a sub-block in the target block; and
determining the reference cost of the plurality of reference costs based on the distortion metric of the plurality of distortion metrics between the target sub-template and the corresponding reference sub-template.

### Claim 50 (depends on 49)

The method of claim 49, wherein constructing the corresponding reference sub-template comprises:
deriving motion information of the corresponding reference sub-template according to an affine model of the target block; and
constructing reference samples of the corresponding reference sub-template based on the derived motion information.

### Claim 51 (depends on 50)

The method of claim 50, wherein deriving the motion information of the corresponding reference sub-template comprises:
deriving a motion vector of the corresponding reference sub-template according to the affine model of the target block; and
deriving the motion information of the corresponding reference sub-template from the motion vector of the corresponding reference sub-template.

### Claim 52 (depends on 51)

The method of claim 51, wherein deriving the motion vector of the corresponding reference sub-template comprises:
calculating, according to the affine model of the target block, a motion vector of a center sample of a subblock containing the target sub-template, as the motion vector of the corresponding reference sub-template; or
calculating, according to the affine model of the target block, a motion vector of a center sample of the target sub-template, as the motion vector of the corresponding reference sub-template.

### Claim 53 (depends on 43)

The method of claim 43, wherein reordering the list of merge candidates comprises:
selecting, from the list of merge candidates, merge candidates to be reordered; and
reordering the selected merge candidates.

### Claim 54 (depends on 53)

The method of claim 53, wherein
the merge candidates to be reordered comprise the first N merge candidates in the list, N being a positive integer; or
orders of merge candidates other than the selected merge candidates are remained in the list; or
merge candidates other than the selected merge candidates are arranged behind or before the selected merge candidates in the list.

### Claim 55 (depends on 43)

The method of claim 43, wherein reordering the list of merge candidates comprises:
dividing the list of merge candidates into one or more subgroups of merge candidates; and
reordering at least one subgroup of the one or more subgroups of merge candidates.

### Claim 56 (depends on 55)

The method of claim 55, wherein
the least one subgroup of the one or more subgroups of merge candidates comprise the first subgroup of the one or more subgroups of merge candidates; or
the least one subgroup of the one or more subgroups of merge candidates exclude the last subgroup of the one or more subgroups of merge candidates; or
the one or more subgroups of merge candidates comprise a plurality of subgroups of merge candidates, and the at least one subgroup of the one or more subgroups of merge candidates to be reordered comprise at least a first subgroup of merge candidates and a different second subgroup of merge candidates.

### Claim 57 (depends on 56)

The method of claim 56, wherein reordering the at least one subgroup of the one or more subgroups of merge candidates comprises:
reordering the first and second subgroups of merge candidates separately; or
reordering the first subgroup of merge candidates without considering the second subgroup of merge candidates.

### Claim 58 (depends on 57)

The method of claim 57, wherein the first and second subgroups of merge candidates are reordered separately while remaining the order of the first and second subgroups.

### Claim 59 (depends on 43)

The method of claim 43, wherein the bitstream of the video comprises a first indication whether the reordering of the list of merge candidates is applied for the target block.

### Claim 60 (depends on 59)

The method of claim 59, wherein the first indication comprises a message signalled in at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a sequence header, a picture header, a slice header, a coding tree unit (CTU), a coding unit (CU), transform unit (TU), or a prediction unit (PU).

### Claim 61

An electronic device, comprising:
a processing unit; and
a memory coupled to the processing unit and having instructions stored thereon which, when executed by the processing unit, cause the electronic device to:
construct a list of merge candidates for a target block of a video in a subblock based merge mode;
reorder the list of merge candidates for the target block; and
perform a conversion between the target block and a bitstream of the video based on the reordered list of merge candidates.

### Claim 62

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
construct a list of merge candidates for a target block of a video in a subblock based merge mode;
reorder the list of merge candidates for the target block; and
perform a conversion between the target block and a bitstream of the video based on the reordered list of merge candidates.
