# US 2026/0089336 A1 · Apparatus and method for encoding and decoding image by using reference block

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

- Number: US 2026/0089336 A1
- Document ID: US20260089336A1
- Status: Published application
- Kind: A1
- Application number: 19/408,916
- Filed: 2025-12-04
- Published: 2026-03-26
- Earliest claimed: 2023-06-09
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Ling LI; Kwangpyo CHOI
- Web page: https://patentgrep.com/patent/US20260089336A1

## CPC

- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- 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/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/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for image decoding includes determining at least one of a first reference block in a current picture reconstructed before a current block or a second reference block in a previous picture reconstructed before the current block, based on template matching; identifying a corresponding location of a pre-determined location within the current block from at least one of the first reference block or the second reference block generating a prediction block by performing intra prediction on the current block according to an intra prediction mode used to reconstruct a sample at the identified corresponding location; and reconstructing the current block using the prediction block.

## Claims

### Claim 1

A method for image decoding, the method comprising:
determining at least one of a first reference block in a current picture reconstructed before a current block or a second reference block in a previous picture reconstructed before the current block, based on template matching;
identifying a corresponding location of a pre-determined location within the current block from at least one of the first reference block or the second reference block;
generating a prediction block by performing intra prediction on the current block according to an intra prediction mode used to reconstruct a sample at the identified corresponding location; and
reconstructing the current block using the prediction block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generating of the prediction block comprises:
based on the intra prediction mode being unused to reconstruct the sample at the corresponding location of the first reference block, intra prediction is performed on the current block according to the intra prediction mode used to reconstruct the sample at the corresponding location of the second reference block.

### Claim 3 (depends on 1)

The method of claim 1, wherein the determining of the at least one of the first reference block or the second reference block comprises:
determining the first reference block based on the template matching; and
based on the intra prediction mode being unused to reconstruct the sample at the corresponding location of the first reference block, determining the second reference block within the previous picture based on a motion vector used to reconstruct the sample at the corresponding location of the first reference block.

### Claim 4 (depends on 1)

The method of claim 1, wherein the generating of the prediction block comprises:
based on the intra prediction mode being unused to reconstruct the sample at the identified corresponding location, performing intra prediction on the current block according to a pre-determined intra prediction mode.

### Claim 5 (depends on 1)

The method of claim 1, wherein the generating of the prediction block comprises:
selecting the intra prediction mode from a first intra prediction mode used to reconstruct the sample at the corresponding location of the first reference block and a second intra prediction mode used to reconstruct the sample at the corresponding location of the second reference block; and
performing intra prediction on the current block according to the selected intra prediction mode.

### Claim 6 (depends on 5)

The method of claim 5, wherein the selecting of the intra prediction mode comprises:
selecting the intra prediction mode indicated by information obtained from a bitstream from the first intra prediction mode and the second intra prediction mode.

### Claim 7 (depends on 5)

The method of claim 5, wherein the selecting of the intra prediction mode comprises:
obtaining a first prediction sample set of a neighboring sample set reconstructed before the current block by applying intra prediction according to the first intra prediction mode to the neighboring sample set;
obtaining a second prediction sample set of the neighboring sample set by applying intra prediction according to the second intra prediction mode to the neighboring sample set; and
selecting the intra prediction mode from the first intra prediction mode and the second intra prediction mode, based on a result of comparing the first prediction sample set with the neighboring sample set and a result of comparing the second prediction sample set and the neighboring sample set.

### Claim 8 (depends on 1)

The method of claim 1, wherein the generating of the prediction block comprises:
obtaining a first prediction block by performing, on the current block, intra prediction according to a first intra prediction mode used to reconstruct the sample at the corresponding location of the first reference block;
obtaining a second prediction block by performing, on the current block, intra prediction according to a second intra prediction mode used to reconstruct the sample at the corresponding location of the second reference block; and
obtaining a third prediction block based on a weighted sum of the first prediction block and the second prediction block, and
wherein the reconstructing of the current block comprises reconstructing the current block using the third prediction block.

### Claim 9 (depends on 1)

The method of claim 1, wherein the generating of the prediction block comprises:
obtaining a first prediction block by performing, on the current block, intra prediction according to the intra prediction mode used to reconstruct the sample at the corresponding location;
obtaining a second prediction block by performing, on the current block, intra prediction according to a pre-determined intra prediction mode; and
obtaining a third prediction block based on a weighted sum of the first prediction block and the second prediction block, and
wherein the reconstructing of the current block comprises reconstructing the current block using the third prediction block.

### Claim 10 (depends on 1)

The method of claim 1, wherein the reconstructing of the current block comprises:
reconstructing the current block using a result of combining at least one of the first reference block or the second reference block with the prediction block.

### Claim 11 (depends on 1)

The method of claim 1, wherein the identifying of the corresponding location comprises identifying a plurality of corresponding locations of a plurality of pre-determined locations within the current block from at least one of the first reference block or the second reference block, and
wherein the generating of the prediction block comprises generating the prediction block by performing intra prediction on the current block according to at least one intra prediction mode used to reconstruct a sample at least one corresponding location among the plurality of corresponding locations.

### Claim 12 (depends on 11)

The method of claim 11, wherein the generating of the prediction block comprises:
obtaining a first prediction block by performing intra prediction on the current block according to a first intra prediction mode used to reconstruct a sample at a first corresponding location among the identified plurality of corresponding locations;
obtaining a second prediction block by performing intra prediction on the current block according to a second intra prediction mode used to reconstruct a sample at a second corresponding location among the identified plurality of corresponding locations; and
obtaining a third prediction block based on a weighted sum of the first prediction block and the second prediction block, and
wherein the reconstructing of the current block comprises reconstructing the current block using the third prediction block.

### Claim 13 (depends on 11)

The method of claim 11, wherein the generating of the prediction block comprises:
obtaining a first prediction block by performing intra prediction on the current block according to a first intra prediction mode selected from among a plurality of intra prediction modes used to reconstruct samples at the identified plurality of corresponding locations;
obtaining a second prediction block by performing intra prediction on the current block according to a second intra prediction mode selected from among the plurality of intra prediction modes used to reconstruct the samples at the identified plurality of corresponding locations; and
obtaining a third prediction block based on a weighted sum of the first prediction block and the second prediction block, and
wherein the reconstructing of the current block comprises reconstructing the current block using the third prediction block.

### Claim 14

A method for image encoding, the method comprising:
determining at least one of a first reference block in a current picture encoded before a current block or a second reference block in a previous picture encoded before the current block, based on template matching;
identifying a corresponding location of a pre-determined location within the current block from at least one of the first reference block or the second reference block;
generating a prediction block by performing intra prediction on the current block according to an intra prediction mode used to encode a sample at the identified corresponding location; and
encoding the current block using the prediction block.

### Claim 15

A non-transitory computer-readable medium having a bitstream recorded thereon,
wherein the bitstream includes a result of encoding a current block, and
the result of encoding the current block is generated by:
determine at least one of a first reference block in a current picture encoded before the current block or a second reference block in a previous picture encoded before the current block, based on template matching;
identify a corresponding location of a pre-determined location within the current block from at least one of the first reference block or the second reference block;
generate a prediction block by performing intra prediction on the current block according to an intra prediction mode used to encode a sample at the identified corresponding location; and
encode the current block using the prediction block.
