# US 2022/0279161 A1 · Image encoding/decoding method and device, and recording medium storing bitstream

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

- Number: US 2022/0279161 A1
- Document ID: US20220279161A1
- Status: Published application
- Kind: A1
- Application number: 17/608,399
- Filed: 2020-04-29
- Published: 2022-09-01
- Earliest claimed: 2019-05-03
- Assignees: Electronics and Telecommunications Research Institute; Chips & Media, Inc
- Applicants: Electronics and Telecommunications Research Institute; Chips&Media, Inc
- Inventors: Sung Chang LIM; Jung Won KANG; Ha Hyun LEE; Jin Ho LEE; Hui Yong KIM; Dae Yeon KIM
- Web page: https://patentgrep.com/patent/US20220279161A1

## 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/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/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/1883: {the unit relating to sub-band structure, e.g. hierarchical level, directional tree, e.g. low-high [LH], high-low [HL], high-high [HH]}
- 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/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed herein is an image encoding/decoding method. A method of decoding an image includes determining an intra prediction mode of a current block, and generating a prediction block of the current block, by performing prediction based on the intra prediction mode. When the intra prediction mode of the current block is a matrix-based intra prediction (MIP) mode, a length of a reference sample used for intra prediction is derived based on a length of the current block.

## Claims

### Claim 1

A method of decoding an image, the method comprising:
determining an intra prediction mode of a current block; and
generating a prediction block of the current block, by performing prediction based on the intra prediction mode,
wherein, when the intra prediction mode of the current block is a matrix-based intra prediction (MIP) mode, a length of a reference sample used for intra prediction is derived based on a length of the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the reference sample includes a top reference sample and a left reference sample, a length of the top reference sample is derived as a width of the current block+1, and a length of the left reference sample is derived as a height of the current block+1.

### Claim 3 (depends on 1)

The method of claim 1, wherein the reference sample includes a top reference sample and a left reference sample, a length of the top reference sample is derived as twice a width of the current block and a length of the left reference sample is derived as twice a height of the current block.

### Claim 4 (depends on 1)

The method of claim 1, wherein, when the current block is a chroma block and the intra prediction mode of the current block is a cross-component prediction mode,
the intra prediction of the current block includes:
generating a neighboring sample of a luma block corresponding to the current block;
performing down-sampling with respect to the neighboring sample of the luma block;
deriving a cross-component parameter based on the down-sampled neighboring sample; and
generating the prediction block of the current block based on the cross-component parameter.

### Claim 5 (depends on 4)

The method of claim 4,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein, when the neighboring sample of the luma block is not available, the unavailable neighboring sample is replaced with an inner sample of the luma block.

### Claim 6 (depends on 5)

The method of claim 5,
wherein, when the unavailable neighboring sample is the top neighboring sample, the inner sample of the luma block is an inner sample adjacent to a top boundary of the luma block, and
wherein, when the unavailable neighboring sample is the left neighboring sample, the inner sample of the luma block is an inner sample adjacent to a left boundary of the luma block.

### Claim 7 (depends on 6)

The method of claim 6,
wherein the unavailable top neighboring sample and the inner sample adjacent to the top boundary of the luma block have the same x coordinate, and
wherein the unavailable left neighboring sample and the inner sample adjacent to the left boundary of the luma block have the same y coordinate.

### Claim 8 (depends on 4)

The method of claim 4,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein a filter used for down-sampling of the top neighboring sample is differently determined based on at least one of whether a top boundary of the current block is a coding tree unit (CTU) boundary or information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 9 (depends on 4)

The method of claim 4,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein a filter used for down-sampling of the left neighboring sample is differently determined based on information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 10 (depends on 4)

The method of claim 4,
wherein the intra prediction of the current block further includes performing down-sampling with respect to an inner sample of the luma block, and
wherein a filter used for down-sampling of the inner sample of the luma block is differently determined based on at least one of whether the neighboring sample is available or information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 11

A method of encoding an image, the method comprising:
determining an intra prediction mode of a current block; and
generating a prediction block of the current block, by performing prediction based on the intra prediction mode,
wherein, when the intra prediction mode of the current block is a matrix-based intra prediction (MIP) mode, a length of a reference sample used for intra prediction is derived based on a length of the current block.

### Claim 12 (depends on 11)

The method of claim 11, wherein the reference sample includes a top reference sample and a left reference sample, a length of the top reference sample is derived as a width of the current block+1, and a length of the left reference sample is derived as a height of the current block+1.

### Claim 13 (depends on 11)

The method of claim 11, wherein the reference sample includes a top reference sample and a left reference sample, a length of the top reference sample is derived as twice a width of the current block and a length of the left reference sample is derived as twice a height of the current block.

### Claim 14 (depends on 11)

The method of claim 11, wherein, when the current block is a chroma block and the intra prediction mode of the current block is a cross-component prediction mode,
the intra prediction of the current block includes:
generating a neighboring sample of a luma block corresponding to the current block;
performing down-sampling with respect to the neighboring sample of the luma block;
deriving a cross-component parameter based on the down-sampled neighboring sample; and
generating the prediction block of the current block based on the cross-component parameter.

### Claim 15 (depends on 14)

The method of claim 14,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein, when the neighboring sample of the luma block is not available, the unavailable neighboring sample is replaced with an inner sample of the luma block.

### Claim 16 (depends on 15)

The method of claim 15,
wherein, when the unavailable neighboring sample is the top neighboring sample, the inner sample of the luma block is an inner sample adjacent to a top boundary of the luma block, and
wherein, when the unavailable neighboring sample is the left neighboring sample, the inner sample of the luma block is an inner sample adjacent to a left boundary of the luma block.

### Claim 17 (depends on 14)

The method of claim 14,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein a filter used for down-sampling of the top neighboring sample is differently determined based on at least one of whether a top boundary of the current block is a coding tree unit (CTU) boundary or information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 18 (depends on 14)

The method of claim 14,
wherein the neighboring sample of the luma block includes at least one of a top neighboring sample or a left neighboring sample, and
wherein a filter used for down-sampling of the left neighboring sample is differently determined based on information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 19 (depends on 14)

The method of claim 14,
wherein the intra prediction of the current block further includes performing down-sampling with respect to an inner sample of the luma block, and
wherein a filter used for down-sampling of the inner sample of the luma block is differently determined based on at least one of whether the neighboring sample is available or information on locations of a chroma signal and a luma signal corresponding thereto.

### Claim 20

A non-transitory computer-readable recording medium for storing a bitstream generated by an image encoding method, the image encoding method comprises:
determining an intra prediction mode of a current block; and
generating a prediction block of the current block, by performing prediction based on the intra prediction mode,
wherein, when the intra prediction mode of the current block is a matrix-based intra prediction (MIP) mode, a length of a reference sample used for intra prediction is derived based on a length of the current block.
