# US 2021/0289214 A1 · Reference image encoding method, reference image decoding method, reference image encoding device, and reference image decoding device

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

- Number: US 2021/0289214 A1
- Document ID: US20210289214A1
- Status: Published application
- Kind: A1
- Application number: 17/217,808
- Filed: 2021-03-30
- Published: 2021-09-16
- Earliest claimed: 2015-07-03
- Assignees: Huawei Technologies Co., Ltd.; University of Science and Technology of China
- Applicants: Huawei Technologies Co., Ltd.; University of Science and Technology of China
- Inventors: Feng WU; Fangdong CHEN; Houqiang LI; Zhuoyi LV; Haitao YANG
- Web page: https://patentgrep.com/patent/US20210289214A1

## CPC

- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/179: the unit being a scene or a shot
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/55: Motion estimation with spatial constraints, e.g. at image or region borders
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N 19/58: Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one (H04N19/23 takes precedence)
- H04N 19/61: in combination with predictive coding
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure provides a reference image encoding method, including: encoding sequence, to obtain a reconstructed image of a first and second reference images; determining whether a local area in the second reference image is suitable for updating first reference image; determining whether the first reference image is updated; when the first reference image is not updated, and it is determined the second reference image is suitable for updating the first reference image, replacing a pixel value of a corresponding area or a related area in the first reference image with a pixel value of the local area in the second reference image; and compiling, into the bitstream.

## Claims

### Claim 1

A reference image decoding method comprising:
parsing a bitstream, to obtain a reconstructed image of a first reference image and a reconstructed image of a second reference image, wherein the first reference image is decoded before the second reference image;
obtaining reference image update information and determining, after parsing the bitstream to obtain the reconstructed image of the second reference image, according to the reference image update information, whether a local area in the second reference image is used to update a corresponding area or a related area in the first reference image, wherein a size of the local area is less than or equal to a size of the second reference image; and
responsive to determining, according to the reference image update information, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image, replacing a pixel value of the corresponding area or the related area in the first reference image with a pixel value of the local area in the second reference image.

### Claim 2 (depends on 1)

The decoding method according to claim 1, wherein parsing the bitstream, to obtain the reference image update information, and determining, according to the reference image update information, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
parsing the bitstream to obtain a flag; and
responsive to determining that the flag is a first value, determining that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 3 (depends on 1)

The decoding method according to claim 1, wherein parsing the bitstream, to obtain the reference image update information, and determining, whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
parsing the bitstream, to obtain coding information, and determining, according to the coding information and a preset rule, whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 4 (depends on 3)

The decoding method according to claim 3, wherein the coding information comprises a quantization parameter offset value of the local area in the second reference image; and wherein determining whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
responsive to determining that an absolute value of the quantization parameter offset value falls within a first value range, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 5 (depends on 4)

The decoding method according to claim 4, wherein:
the first value range is greater than or equal to 10, and is less than 20.

### Claim 6 (depends on 3)

The decoding method according to claim 3, wherein the coding information comprises: a scale factor of a quantization process of the local area in the second reference image; and wherein determining whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
responsive to determining that the scale factor of the quantization process falls within a second value range, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 7 (depends on 6)

The decoding method according to claim 6, wherein determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
responsive to determining that the scale factor of the quantization process is greater than or equal to 0.5 and is less than 1, or responsive to determining that the scale factor is less than or equal to 1.5 and is greater than 1, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 8 (depends on 1)

The decoding method according to claim 1, wherein the corresponding area in the first reference image is an area that is in the first reference image and that has location coordinates that match location coordinates of the local area in the second reference image.

### Claim 9 (depends on 1)

The decoding method according to claim 1, wherein parsing the bitstream, to obtain the reference image update information, and determining-whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image further comprises:
obtaining spatial offsets between location coordinates of the local area and location coordinates of the related area in the first reference image, wherein the spatial offsets comprise a lateral offset and a longitudinal offset; and
wherein the method further comprises: before replacing the pixel value of the corresponding area or the related area in the first reference image with the pixel value of the local area in the second reference image, determining a location of the related area in the first reference image according to the location coordinates of the local area in the second reference image and the spatial offsets.

### Claim 10 (depends on 1)

The decoding method according to claim 1, wherein parsing the bitstream, to obtain the reconstructed image of the first reference image comprises:
parsing the bitstream, to obtain a particular picture order count (POC) of the first reference image, and obtain the reconstructed image of the first reference image having the particular picture order count.

### Claim 11 (depends on 10)

The decoding method according to claim 10, wherein parsing the bitstream, to obtain the reconstructed image of the second reference image comprises:
parsing the bitstream, to obtain a particular picture order count of the second reference image, and obtaining the reconstructed image of the second reference image having the particular picture order count of the second reference image, wherein the particular picture order count of the second reference image is associated with the particular picture order count of the first reference image that is updated by using the second reference image.

### Claim 12

A reference image decoding device, comprising:
a processor; and
a memory coupled to the processor, having processor-readable instructions stored thereon, wherein the processor-readable instructions when executed by the processor cause the processor to implement operations including:
parsing a bitstream, to obtain a reconstructed image of a first reference image and a reconstructed image of a second reference image, wherein the first reference image is decoded before the second reference image;
obtaining reference image update information and determining, after the bitstream is parsed to obtain the reconstructed image of the second reference image, according to the reference image update information, whether a local area in the second reference image is used to update a corresponding area or a related area in the first reference image, wherein a size of the local area is less than or equal to a size of the second reference image; and
responsive to determining, according to the reference image update information, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image, replacing a pixel value of the corresponding area or the related area in the first reference image with a pixel value of the local area in the second reference image.

### Claim 13 (depends on 12)

The decoding device according to claim 12, wherein the operations include:
parsing the bitstream, to obtain a flag; and responsive to determining that the flag is a first value, determining that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 14 (depends on 12)

The decoding device according to claim 12, wherein the operations include:
parsing the bitstream, to obtain coding information, and determining, according to the coding information and a preset rule, whether the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 15 (depends on 14)

The decoding device according to claim 14, wherein the coding information comprises a quantization parameter offset value of the local area in the second reference image; and-the operations include:
responsive to determining that an absolute value of the quantization parameter offset value falls within a first value range, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 16 (depends on 15)

The decoding device according to claim 15, wherein:
the first value range is greater than or equal to 10, and is less than 20.

### Claim 17 (depends on 14)

The decoding device according to claim 14, wherein the coding information comprises: a scale factor of a quantization process of the local area in the second reference image; and the operations include:
responsive to determining that the scale factor of the quantization process falls within a second value range, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 18 (depends on 17)

The decoding device according to claim 17, wherein the operation of determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image comprises:
responsive to determining that the scale factor of the quantization process is greater than or equal to 0.5 and is less than 1, or responsive to determining that the scale factor is less than or equal to 1.5 and is greater than 1, determining, that the local area in the second reference image is used to update the corresponding area or the related area in the first reference image.

### Claim 19 (depends on 12)

The decoding device according to claim 12, wherein the corresponding area in the first reference image is an area that is in the first reference image and that has location coordinates that match location coordinates of the local area in the second reference image.

### Claim 20 (depends on 12)

The decoding device according to claim 12, wherein the operations include:
obtaining spatial offsets between location coordinates of the local area and location coordinates of the related area in the first reference image, wherein the spatial offsets comprise a lateral offset and a longitudinal offset; and
before replacing the pixel value of the corresponding area or the related area in the first reference image with the pixel value of the local area in the second reference image, determining a location of the related area in the first reference image according to the location coordinates of the local area in the second reference image and the spatial offsets.

### Claim 21 (depends on 12)

The decoding device according to claim 12, wherein the operations include:
parsing the bitstream, to obtain a particular picture order count (POC) of the first reference image.

### Claim 22 (depends on 21)

The decoding device according to claim 21, wherein the operations include:
parsing the bitstream, to obtain a particular picture order count of the second reference image, wherein the particular picture order count of the second reference image is associated with the particular picture order count of the first reference image.
