# US 12,120,342 B2 · Method and apparatus for processing video signal based on history based motion vector prediction

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

- Number: US 12,120,342 B2
- Document ID: US12120342B2
- Status: Granted
- Kind: B2
- Application number: 18/387,809
- Filed: 2023-11-07
- Published: 2024-05-23
- Granted: 2024-10-15
- Earliest claimed: 2018-12-12
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Jane Zhao; Seunghwan Kim
- Web page: https://patentgrep.com/patent/US12120342B2

## CPC

- H04N 19/43: Hardware specially adapted for motion estimation or compensation
- H04N 19/56: Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/513: Processing of motion vectors
- H04N 19/52: by predictive encoding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The disclosure discloses a method for processing video signals and an apparatus therefor. Specifically, the method of processing video signals based on inter prediction, comprising: configuring a merge candidate list based on a spatial neighboring block and a temporal neighboring block to a current block; adding a history-based merge candidate of the current block to the merge candidate list; obtaining a merge index indicating a merge candidate used for an inter prediction of the current block within the merge candidate list; generating a prediction sample of the current block based on motion information of the merge candidate indicated by the merge index; and updating a history-based merge candidate list based on the motion information.

## Claims

### Claim 1

An image decoding method performed by an image decoding apparatus, the image decoding method comprising:
configuring a merge candidate list based on a spatial neighboring block and a temporal neighboring block of a current block;
adding a history-based motion vector predictor (HMVP) candidate included in an HMVP candidate list storing HMVP candidates of the current block to the merge candidate list;
generating a prediction sample of the current block based on motion information of a merge candidate within the merge candidate list, the merge candidate being indicated by a merge index,
wherein the HMVP candidate is added to the merge candidate list, based on a result of comparing motion information of the HMVP candidate with motion information of predetermined spatial merge candidates among merge candidates within the merge candidate list,
the predetermined spatial merge candidates include only a left neighboring spatial merge candidate and a top neighboring spatial merge candidate of the current block, and the left and top neighboring spatial merge candidates are the first two merge candidates in the merge candidate list, and
wherein a maximum size of the HMVP candidate list is smaller than a maximum size of the merge candidate list.

### Claim 2 (depends on 1)

The method of claim 1, wherein the HMVP candidate list is updated based on the motion information of the merge candidate.

### Claim 3 (depends on 1)

The method of claim 1, wherein the maximum size of the merge candidate list is a maximum size among available maximum sizes of the merge candidate list.

### Claim 4 (depends on 1)

The method of claim 1, wherein the HMVP candidate is not added to the merge candidate list as a last candidate.

### Claim 5

An image encoding method performed by an image encoding apparatus, the image encoding method comprising:
configuring a merge candidate list based on a spatial neighboring block and a temporal neighboring block of a current block;
adding a history-based motion vector predictor (HMVP) candidate included in an HMVP candidate list storing HMVP candidates of the current block to the merge candidate list;
generating a prediction sample of the current block based on motion information of a merge candidate within the merge candidate list; and
generating a merge index indicating the merge candidate used for generating the prediction sample, into a bitstream,
wherein the HMVP candidate is added to the merge candidate list, based on a result of comparing motion information of the HMVP candidate with motion information of predetermined spatial merge candidates among merge candidates within the merge candidate list,
the predetermined spatial merge candidates include only a left neighboring spatial merge candidate and a top neighboring spatial merge candidate of the current block, and the left and top neighboring spatial merge candidates are the first two merge candidates in the merge candidate list, and
wherein a maximum size of the HMVP candidate list is smaller than a maximum size of the merge candidate list.

### Claim 6 (depends on 5)

The method of claim 5, wherein the HMVP candidate list is updated based on the motion information of the merge candidate.

### Claim 7 (depends on 5)

The method of claim 5, wherein the maximum size of the merge candidate list is a maximum size among available maximum sizes of the merge candidate list.

### Claim 8 (depends on 5)

The method of claim 5, wherein the HMVP candidate is not added to the merge candidate list as a last candidate.

### Claim 9

A method of transmitting a bitstream generated by an image encoding method, the image encoding method comprising:
configuring a merge candidate list based on a spatial neighboring block and a temporal neighboring block of a current block;
adding a history-based motion vector predictor (HMVP) candidate included in an HMVP candidate list storing HMVP candidates of the current block to the merge candidate list;
generating a prediction sample of the current block based on motion information of a merge candidate within the merge candidate list; and
generating a merge index indicating the merge candidate used for generating the prediction sample, into the bitstream,
wherein the HMVP candidate is added to the merge candidate list, based on a result of comparing motion information of the HMVP candidate with motion information of predetermined spatial merge candidates among merge candidates within the merge candidate list,
the predetermined spatial merge candidates include only a left neighboring spatial merge candidate and a top neighboring spatial merge candidate of the current block, and the left and top neighboring spatial merge candidates are the first two merge candidates in the merge candidate list, and
wherein a maximum size of the HMVP candidate list is smaller than a maximum size of the merge candidate list.
