# US 2022/0046236 A1 · Image encoding method, decoding method, encoder, and decoder

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

- Number: US 2022/0046236 A1
- Document ID: US20220046236A1
- Status: Published application
- Kind: A1
- Application number: 17/256,104
- Filed: 2019-06-18
- Published: 2022-02-10
- Earliest claimed: 2018-06-26
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Ming LI; Ping WU; Zhao WU
- Web page: https://patentgrep.com/patent/US20220046236A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/593: involving spatial prediction techniques
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Provided is an image encoding method. The method includes: determining an intra prediction mode of an encoding block, and constructing a first prediction value of the encoding block according to the intra prediction mode; determining a filtering parameter according to the first prediction value and an original value of the encoding block, where the filtering parameter includes a filtering indication parameter; in a case where the filtering indication parameter indicates performing filtering processing on the first prediction value, performing the filtering processing on the first prediction value to obtain an intra prediction value; calculating a prediction difference parameter according to a difference between the original value of the encoding block and the intra prediction value; and encoding the intra prediction mode, the filtering parameter, and the prediction difference parameter, and writing encoded bits into a bitstream.

## Claims

### Claim 1

An image encoding method, comprising:
determining an intra prediction mode of an encoding block, and constructing a first prediction value of the encoding block according to the intra prediction mode;
determining a filtering parameter according to the first prediction value and an original value of the encoding block; wherein the filtering parameter comprises a filtering indication parameter;
in a case where the filtering indication parameter indicates performing filtering processing on the first prediction value, performing the filtering processing on the first prediction value to obtain an intra prediction value;
calculating a prediction difference parameter according to a difference between the original value of the encoding block and the intra prediction value; and
encoding the intra prediction mode, the filtering parameter and the prediction difference parameter, and writing encoded bits into a bitstream.

### Claim 2 (depends on 1)

The method of claim 1, wherein the filtering parameter further comprises a filter parameter for indicating a filter coefficient of a filter in use, and performing the filtering processing on the first prediction value to obtain the intra prediction value comprises:
performing the filtering processing on the first prediction value by using at least one type of filter indicated by the filter parameter to obtain the intra prediction value.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
in a case where the filtering indication parameter indicates not performing the filtering processing on the first prediction value, configuring the intra prediction value by using the first prediction value.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the filtering parameter according to the first prediction value and the original value of the encoding block comprises:
determining, by using a rate-distortion optimization method, the filtering parameter according to the first prediction value and the original value of the encoding block.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining the filtering parameter by using the rate-distortion optimization method comprises:
determining the filtering parameter by reducing an error between the original value of the encoding block and the first prediction value.

### Claim 6 (depends on 5)

The method of claim 5, wherein an error criterion adopted for the error between the original value of the encoding block and the first prediction value comprises at least one of:
a numerical error criterion or a human visual system perception error criterion.

### Claim 7 (depends on 2)

The method of claim 2, wherein the at least one type of filter indicated by the filter parameter comprises at least one of:
a filter having a fixed coefficient; wherein the filter having the fixed coefficient comprises at least one of:
a one-dimensional filter, a two-dimensional filter, or a multi-stage neural network filter; or
a filter capable of adaptively adjusting a coefficient; wherein the filter capable of adaptively adjusting the coefficient comprises at least one of:
a one-dimensional filter, a two-dimensional filter, or a multi-stage neural network filter.

### Claim at position 8

-9. (canceled)

### Claim 10 (depends on 2)

The method of claim 2, wherein the at least one type of filter indicated by the filter parameter comprises:
a filter used by an encoded block adjacent to the encoding block.

### Claim 11 (depends on 10)

The method of claim 10, wherein performing the filtering processing on the first prediction value by using the at least one type of filter indicated by the filter parameter comprises:
performing, by using the filter used by the encoded block adjacent to the encoding block, the filtering processing on the first prediction value of the encoding block.

### Claim 12 (depends on 2)

The method of claim 2, wherein performing the filtering processing on the first prediction value by using the at least one type of filter indicated by the filter parameter comprises:
determining the filter corresponding to the filter parameter according to the filter parameter, and configuring a coefficient of the filter; and
performing, by using the filter, the filtering processing on the first prediction value.

### Claim 13 (depends on 1)

The method of claim 1, wherein calculating the prediction difference parameter according to the difference between the original value of the encoding block and the intra prediction value comprises:
calculating the difference between the original value of the encoding block and the intra prediction value to obtain a prediction difference of the encoding block; and
performing transformation and quantization processing on the prediction difference to obtain the prediction difference parameter.

### Claim 14 (depends on 1)

The method of claim 1, wherein the filtering indication parameter comprises at least one of:
a sequence layer filtering control parameter; wherein the sequence layer filtering control parameter comprises at least one of:
at least one flag bit for indicating whether the filtering processing is required to be performed on a first prediction value of an encoding block which is in a video sequence and uses the intra prediction mode;
at least one first preset value of a size of an encoding block; wherein the at least one first preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in a video sequence and has a size equal to each of the at least one first preset value; or
at least one second preset value of an intra prediction mode; wherein the at least one second preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in a video sequence and uses an intra prediction mode indicated by each of the at least one second preset value;
an image layer filtering control parameter; wherein the image laver filtering control parameter comprises at least one of:
at least one flag bit for indicating whether the filtering processing is required to be performed on a first prediction value of an encoding block which is in an image and uses the intra prediction mode;
at least one third preset value of a size of an encoding block; wherein the at least one third preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in an image and has a size equal to each of the at least one third preset value; or
at least one fourth preset value of an intra prediction mode; wherein the at least one fourth preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in an image and uses an intra prediction mode indicated by each of the at least one fourth preset value;
a slice layer filtering control parameter; the slice layer filtering control parameter comprises at least one of:
at least one flag bit for indicating whether the filtering processing is required to be performed on a first prediction value of an encoding block which is in a slice and uses the intra prediction mode;
at least one fifth preset value of a size of an encoding block; wherein the at least one fifth preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in a slice and has a size equal to each of the at least one fifth preset value; or
at least one sixth preset value of an intra prediction mode; wherein the at least one sixth preset value indicates that the filtering processing is required to be performed on a first prediction value of an encoding block which is in a slice and uses an intra prediction mode indicated by each of the at least one sixth preset value; or
a block layer filtering control parameter; wherein the block layer filtering, control parameter comprises at least one of:
at least one flag bit for indicating whether the filtering processing is required to be performed on the first prediction value of the encoding block;
at least one seventh preset value of a size of an encoding block, used for indicating that the filtering processing is performed on the first prediction value of the encoding block in a case where a size of the encoding block is equal to the at least one seventh preset value; or
at least one eighth preset value of an intra prediction mode, used for indicating that the filtering, processing is performed on the first prediction value of the encoding block in a case where the intra prediction mode of the encoding block is same as an intra prediction mode indicated by each of the at least one eighth preset value.

### Claim at position 14

-18. (canceled)

### Claim 19 (depends on 14)

The method of claim 14, wherein encoding the filtering parameter comprises:
encoding the filtering parameter to obtain an encoded bit of the filtering parameter; and
writing the encoded bit into a data unit in the bitstream; wherein the data unit in the bitstream comprises at least one of: at least one parameter set, a slice header, or a block layer data unit.

### Claim 20

An image decoding method, comprising:
parsing a bitstream to obtain a prediction difference parameter, a filtering parameter and an intra prediction mode of a decoding block; wherein the filtering parameter comprises a filtering indication parameter;
constructing a first prediction value of the decoding block according to the intra prediction mode;
in a case where the filtering indication parameter indicates performing filtering processing on the first prediction value, performing the filtering processing on the first prediction value to obtain an intra prediction value;
calculating a prediction difference of the decoding block according to the prediction difference parameter;
calculating a sum of the intra prediction value and the prediction difference to obtain a first decoding value of the decoding block; and
obtaining a decoding restored value of the decoding block according to the first decoding value.

### Claim 21 (depends on 20)

The method of claim 20, wherein parsing the bitstream to obtain the filtering parameter of the decoding block comprises:
parsing at least one data unit in the bitstream to obtain the filtering parameter; wherein each of the at least one data unit comprises at least one of: at least one parameter set, a slice header, or a block layer data unit.

### Claim at position 18

-28. (canceled)

### Claim 29 (depends on 20)

The method of claim 20, after constructing the first prediction value of the decoding block according to the intra prediction mode, further comprising:
in a case where the filtering indication parameter indicates not performing the filtering processing on the first prediction value, configuring the intra prediction value by using the first prediction value.

### Claim 30 (depends on 20)

The method of claim 20, wherein calculating the prediction difference of the decoding block according to the prediction difference parameter comprises:
performing scaling and transformation processing on the prediction difference parameter to obtain the prediction difference of the decoding block.

### Claim 31 (depends on 20)

The method of claim 20, wherein obtaining the decoding restored value of the decoding block according to the first decoding value comprises:
obtaining the decoding restored value of the decoding block by performing loop filtering processing on the first decoding value.

### Claim at position 22

-54. (canceled)

### Claim 55

An encoder, comprising: a first processor, a first storage medium, and a first communication bus; wherein the first processor is connected to the first storage medium through the first communication bus; and the first processor calls an image encoding-related program stored in the first storage medium and performs the following steps:
determining an intra prediction mode of an encoding block, and constructing a first prediction value of the encoding block according to the intra prediction mode;
determining a filtering parameter according to the first prediction value and an original value of the encoding block, wherein the filtering parameter comprises a filtering indication parameter;
in a case where the filtering indication parameter indicates performing filtering processing on the first prediction value, performing the filtering processing on the first prediction value to obtain an intra prediction value;
calculating a prediction difference parameter according to a difference between the original value of the encoding block and the intra prediction value; and
encoding the intra prediction mode, the filtering parameter, and the prediction difference parameter, and writing encoded bits into a bitstream.

### Claim 56 (depends on 20)

A decoder, comprising: a processor, a storage medium, and a communication bus; wherein the processor is connected to the storage medium through the communication bus; and the processor calls an image decoding related-program stored in the storage medium and performs the method of claim 20.

### Claim at position 25

-58. (canceled)
