# US 2022/0295089 A1 · Motion candidate derivation

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

- Number: US 2022/0295089 A1
- Document ID: US20220295089A1
- Status: Published application
- Kind: A1
- Application number: 17/200,631
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Na ZHANG; Kai ZHANG; Hongbin LIU; Li ZHANG; Yue WANG
- Web page: https://patentgrep.com/patent/US20220295089A1

## CPC

- H04N 19/513: Processing of motion vectors
- 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/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of the present disclosure provide methods, apparatuses and computer storage media for video processing. One example method comprises determining, during a conversion between a current video block of a video and a bitstream of the video, at least one set of motion candidates for the current video block, each motion candidate comprising predicted motion information determined from neighboring video blocks of the current video block; determining, based on a template of the current video block and from the at least one set of motion candidates, a target motion candidate for the current video block by using a template matching cost rule; and performing the conversion based on the target motion candidate.

## Claims

### Claim 1

A video processing method, comprising:
determining, during a conversion between a current video block of a video and a bitstream of the video, at least one set of motion candidates for the current video block, each motion candidate comprising predicted motion information determined from neighboring video blocks of the current video block;
determining, based on a template of the current video block and from the at least one set of motion candidates, a target motion candidate for the current video block by using a template matching cost rule; and
performing the conversion based on the target motion candidate.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one set of motion candidates comprises original motion vector predication candidates followed by all merge candidates in response to the current video block being coded with a motion vector predication mode.

### Claim 3 (depends on 1)

The method of claim 1, wherein the at least one set of motion candidates comprises all merge candidates in response to the current video block being coded with a merge mode.

### Claim 4 (depends on 1)

The method of claim 1, wherein the at least one set of motion candidates comprises partial original motion vector predication candidates followed by partial merge candidates in response to the current video block being coded with a motion vector predication mode.

### Claim 5 (depends on 1)

The method of claim 1, wherein the at least one set of motion candidates comprises partial merge candidates in response to the current video block being coded with a merge mode.

### Claim 6 (depends on 1)

The method of claim 1, wherein the at least one set of motion candidates comprises original motion vector predication candidates in response to the current video block being coded with a motion vector predication mode.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining the at least one set of motion candidates comprises:
determining, from a merge candidate, a motion candidate to be comprised in the at least one set of motion candidates.

### Claim 8 (depends on 7)

The method of claim 7, wherein the current video block is coded with a motion vector predication mode and wherein determining the motion candidate comprises:
in response to a reference picture list and a reference index of the merge candidate in a prediction direction being the same as a current reference picture list and a current reference index of the motion vector predication mode respectively,
determining the motion candidate comprising predicted motion information of the merge candidate in the prediction direction.

### Claim 9 (depends on 7)

The method of claim 7, wherein the current video block is coded with a motion vector predication mode and wherein determining the motion candidate comprises:
in response to a reference picture of the merge candidate in a prediction direction being the same as a current reference picture of the motion vector predication mode,
determining the motion candidate comprising predicted motion information of the merge candidate in the prediction direction.

### Claim 10 (depends on 7)

The method of claim 7, wherein the current video block is coded with a merge mode and wherein the at least one set of motion candidates comprises a first set of motion candidates for a first prediction direction and a second set of motion candidates for a second prediction direction.

### Claim 11 (depends on 10)

The method of claim 10, wherein determining the at least one set of motion candidates comprises:
incorporating first predicted motion information of the merge candidate in the first prediction direction into the first set of motion candidates; and
incorporating second predicted motion information of the merge candidate in the second prediction direction into the second set of motion candidates.

### Claim 12 (depends on 7)

The method of claim 7, wherein the current video block is coded with a merge mode and wherein the at least one set of motion candidates comprises only one set of motion candidates.

### Claim 13 (depends on 12)

The method of claim 12, wherein determining the motion candidate comprises:
determining the motion candidate comprising first predicted motion information of the merge candidate in a first prediction direction and second predicted motion information of the merge candidate in a second prediction direction.

### Claim 14 (depends on 1)

The method of claim 1, wherein the current video block is coded with a motion vector predication mode and wherein determining a target motion candidate for the current video block comprises:
in response to Adaptive Motion Vector Resolution being enabled, reusing a target motion candidate determined in a first motion vector precision as a target motion candidate in a second motion vector precision different from the first motion vector precision.

### Claim 15 (depends on 1)

The method of claim 1, wherein the number of motion vector predication candidates in a motion vector predication candidate list is set based on whether template matched decoder side motion vector derivation is applied.

### Claim 16 (depends on 15)

The method of claim 15, wherein:
in response to template matched decoder side motion vector derivation being applied in a motion vector predication mode, the number of motion vector predication candidates in the motion vector predication candidate list is set to be a first number; and
in response to template matched decoder side motion vector derivation being not applied in the motion vector predication mode, the number of motion vector predication candidates in the motion vector predication candidate list is set to be a second number different from the first number.

### Claim 17 (depends on 1)

The method of claim 1, wherein determining the at least one set of motion candidates comprises any of the following:
determining, based on template matched decoder side motion vector derivation, a motion vector predication candidate to be comprised in a motion vector predication candidate list; or
determining, from neighboring video blocks of the current video block, a motion vector predication candidate to be comprised in the motion vector predication candidate list.

### Claim 18 (depends on 1)

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

### Claim 19 (depends on 1)

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

### Claim 20

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:
determine, during a conversion between a current video block of a video and a bitstream of the video, at least one set of motion candidates for the current video block, each motion candidate comprising predicted motion information determined from neighboring video blocks of the current video block;
determine, based on a template of the current video block and from the at least one set of motion candidates, a target motion candidate for the current video block by using a template matching cost rule; and
perform the conversion based on the target motion candidate.

### Claim 21

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:
determining, during a conversion between a current video block of a video and a bitstream of the video, at least one set of motion candidates for the current video block, each motion candidate comprising predicted motion information determined from neighboring video blocks of the current video block;
determining, based on a template of the current video block and from the at least one set of motion candidates, a target motion candidate for the current video block by using a template matching cost rule; and
performing the conversion based on the target motion candidate.
