# US 2021/0092365 A1 · Image encoding/decoding method and device

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

- Number: US 2021/0092365 A1
- Document ID: US20210092365A1
- Status: Published application
- Kind: A1
- Application number: 17/115,060
- Filed: 2020-12-08
- Published: 2021-03-25
- Earliest claimed: 2018-09-07
- Assignees: B1 Institute of Image Technology, Inc.
- Inventors: Ki Baek KIM
- Web page: https://patentgrep.com/patent/US20210092365A1

## CPC

- 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/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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/136: Incoming video signal characteristics or properties
- 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/182: the unit being a pixel
- H04N 19/593: involving spatial prediction techniques
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Image encoding/decoding method and device according to the present invention enable deciding of an intra-screen prediction mode of a target block, generation of a prediction block of the target block on the basis of the intra-screen prediction mode, and correction of the generated prediction block.

## Claims

### Claim 1

A method for decoding a video signal with a decoding apparatus, comprising:
obtaining, from the video signal, a syntax element indicating whether a constrained intra prediction is used;
determining an intra prediction mode of a current block in the video signal;
constructing reference samples of the current block based on a coding order of the current block; and
generating a prediction block of the current block based on the intra prediction mode and the constructed reference samples,
wherein the constructed reference samples include a left reference sample and a right reference sample according to the coding order of the current block,
wherein generating the prediction block of the current block comprises generating a prediction sample of a current sample in the current block using a specific number of reference samples among the constructed reference samples when the intra prediction mode is a non-directional mode.

### Claim 2 (depends on 1)

The method of claim 1, wherein constructing the reference samples of the current block comprises determining an availability of the reference samples according to the coding order of the current block.

### Claim 3 (depends on 2)

The method of claim 2, wherein at least one of the reference samples is determined to be unavailable when the at least one of the reference samples is located outside a picture boundary, the at least one of the reference samples is not contained in a same tile as the current block, or decoding of the at least one of the reference samples is not completed.

### Claim 4 (depends on 3)

The method of claim 3, wherein when the constrained intra prediction is used, the availability of the left reference sample is determined based on a coding mode of a reference sample candidate block adjacent to a left of the current block, and the availability of the right reference sample is determined based on a coding mode of a reference sample candidate block adjacent to a right of the current block.

### Claim 5 (depends on 4)

The method of claim 4, wherein the specific number is determined as 5 according to the coding order of the current block.

### Claim 6 (depends on 5)

The method of claim 5, wherein the specific number of reference samples include top, left, right, and bottom-left reference samples.

### Claim 7 (depends on 6)

The method of claim 6, wherein a location of the bottom-left reference sample is (−1,H−1) relative to a top-left sample of the current block, the H referring to a height of the current block.

### Claim 8 (depends on 6)

The method of claim 6, wherein the specific number of reference samples include first reference samples determined based on a position of the current sample within the current block and second reference samples determined based on a width or a height of the current block.

### Claim 9 (depends on 8)

The method of claim 8, wherein the prediction sample of the current sample is generated using an arbitrary sample and the first reference samples determined based on the position of the current sample among the specific number of reference samples, and
wherein the arbitrary sample is obtained by a weighted sum of the second reference samples among the specific number of reference samples.

### Claim 10 (depends on 9)

The method of claim 9, wherein the prediction sample of the current sample is generated by applying a weight to the arbitrary sample and the first reference samples, respectively.

### Claim 11 (depends on 10)

The method of claim 10, the weight is determined based on the position of the current sample in the current block.

### Claim 12

A method of encoding a video signal with an encoding apparatus, comprising:
encoding a syntax element indicating whether a constrained intra prediction is used;
determining an intra prediction mode of a current block in the video signal;
constructing reference samples of the current block based on a coding order of the current block; and
generating a residual block of the current block using a prediction block, the prediction block being generated based on the intra prediction mode and the reference samples,
wherein the constructed reference samples include a left reference sample and a right reference sample according to the coding order of the current block,
wherein generating the prediction block of the current block comprises generating a prediction sample of a current sample in the current block using a specific number of reference samples among the constructed reference samples when the intra prediction mode is a non-directional mode.

### Claim 13

A non-transitory computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processor to:
obtaining, from a video signal, a syntax element indicating whether a constrained intra prediction is used;
determining an intra prediction mode of a current block in the video signal;
constructing reference samples of the current block based on a coding order of the current block; and
generating a prediction block of the current block based on the intra prediction mode and the reference samples,
wherein the constructed reference samples include a left reference sample and a right reference sample according to the coding order of the current block,
wherein generating the prediction block of the current block comprises generating a prediction sample of a current sample in the current block using a specific number of reference samples among the constructed reference samples when the intra prediction mode is a non-directional mode.
