# US 2024/0007645 A1 · Video encoding and decoding method using adaptive reference pixel selection

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

- Number: US 2024/0007645 A1
- Document ID: US20240007645A1
- Status: Published application
- Kind: A1
- Application number: 18/037,961
- Filed: 2021-11-23
- Published: 2024-01-04
- Earliest claimed: 2020-11-23
- Assignees: Hyundai Motor Company; Kia Corporation; Research & Business Foundation Sungkyunkwan University
- Applicants: Hyundai Motor Company; Kia Corporation; Research & Business Foundation Sungkyunkwan University
- Inventors: Byeung Woo Jeon; Jee Yoon Park; Bum Yoon Kim; Seung Wook Park
- Web page: https://patentgrep.com/patent/US20240007645A1

## CPC

- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- 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/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 video decoding method is disclosed for decoding a current block by using intra-prediction. The method includes: decoding related information including an intra-prediction mode of the current block from a bitstream; depending on the presence or absence of a reference sample at a position to be referenced in a first prediction direction indicated by an intra-prediction mode, determining a direction for the intra-prediction in consideration of a second prediction direction different than the first prediction direction; generating a prediction block of the current block by performing the intra-prediction according to the direction for the intra-prediction; reconstructing a residual block of the current block from the bitstream; and reconstructing the current block by adding the prediction block and the residual block.

## Claims

### Claim 1

A video decoding method for decoding a current block by using intra-prediction, the method comprising:
decoding related information including an intra-prediction mode of the current block from a bitstream;
depending on the presence or absence of a reference sample at a position to be referenced in a first prediction direction indicated by an intra-prediction mode, determining a direction for the intra-prediction in consideration of a second prediction direction different than the first prediction direction;
performing the intra-prediction according to the direction for the intra-prediction to generate a prediction block of the current block;
reconstructing a residual block of the current block from the bitstream; and
adding the prediction block and the residual block to reconstruct the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein whether there is a reference sample at a position to be referenced in the first prediction direction is determined depending on the position of the current block.

### Claim 3 (depends on 1)

The method of claim 1, wherein, when the first prediction direction is related to a prediction direction using either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, and when at least part of one of the reference sample groups is not available for reference, the intra-prediction is performed by using the other reference sample group which is either the first reference sample group or the second reference sample group.

### Claim 4 (depends on 1)

The method of claim 1, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the intra-prediction is performed in the second prediction direction according to a result of comparison between the proportion of reference samples in one of the reference sample groups that are available for intra-prediction in the first prediction direction and the proportion of reference samples in the other reference sample group that are available for intra-prediction in the second prediction direction.

### Claim 5 (depends on 4)

The method of claim 4, wherein the value of a reference sample in the other reference sample group that is not available for reference for intra-prediction in the second prediction direction is determined by using the values of other reference samples.

### Claim 6 (depends on 1)

The method of claim 1, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the intra-prediction is performed in the second prediction direction depending on a result of comparison between the number of reference samples in one of the reference sample groups that are available for intra-prediction in the first prediction direction and the number of reference samples in the other reference sample group that are available for intra-prediction in the second prediction direction.

### Claim 7 (depends on 1)

The method of claim 1, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the current block is divided into a plurality of regions depending on whether part of one of the reference sample groups is unavailable for reference for intra-prediction in the first prediction direction, and the direction for intra-prediction for each region is selected between the first prediction direction and the second prediction direction.

### Claim 8 (depends on 7)

The method of claim 7, wherein the boundaries of the plurality of regions are in parallel with the first prediction direction.

### Claim 9 (depends on 7)

The video decoding method of claim 7, wherein, for a region in which there are neither reference samples available for the first prediction direction nor reference samples available for the second prediction direction, the intra-prediction is performed in the first prediction direction.

### Claim 10 (depends on 1)

The method of claim 1, wherein the related information includes an ARS flag, and wherein the ARS flag is information indicating to perform an operation of determining the second prediction direction based on the presence of an available reference sample.

### Claim 11 (depends on 1)

The method of claim 1, wherein, when the current block is positioned on at least one of a CTU boundary, a picture boundary, or a slice boundary, the direction for intra-prediction is determined in consideration of prediction in the first prediction direction and the second prediction direction.

### Claim 12

A method for encoding a current block by using intra-prediction, the method comprising:
determining an intra-prediction mode of the current block;
depending on the presence or absence of a reference sample at a position to be referenced in a first prediction direction indicated by an intra-prediction mode, determining a direction for the intra-prediction in consideration of a second prediction direction different than the first prediction direction;
performing the intra-prediction according to the determined direction for the intra-prediction to generate a prediction block of the current block;
generating a residual block by subtracting the prediction block from the current block; and
encoding information related to the intra-prediction mode and the residual block.

### Claim 13 (depends on 12)

The method of claim 12, wherein, when the first prediction direction is related to a prediction direction using either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, and when at least part of one of the reference sample groups is not available for reference, the intra-prediction is performed by using the other reference sample group which is either the first reference sample group or the second reference sample group.

### Claim 14 (depends on 12)

The method of claim 12, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the intra-prediction is performed in the second prediction direction according to a result of comparison between the proportion of reference samples in one of the reference sample groups that are available for intra-prediction in the first prediction direction and the proportion of reference samples in the other reference sample group that are available for intra-prediction in the second prediction direction.

### Claim 15 (depends on 12)

The method of claim 12, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the intra-prediction is performed in the second prediction direction depending on a result of comparison between the number of reference samples in one of the reference sample groups that are available for intra-prediction in the first prediction direction and the number of reference samples in the other reference sample group that are available for intra-prediction in the second prediction direction.

### Claim 16 (depends on 12)

The method of claim 12, wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, the current block is divided into a plurality of regions depending on whether part of one of the reference sample groups is unavailable for reference for intra-prediction in the first prediction direction, and the direction for intra-prediction for each region is selected between the first prediction direction and the second prediction direction.

### Claim 17 (depends on 16)

The method of claim 16, wherein the boundaries of the plurality of regions are in parallel with the first prediction direction.

### Claim 18 (depends on 16)

The method of claim 16, wherein, for a region in which there are neither reference samples available for the first prediction direction nor reference samples available for the second prediction direction, the intra-prediction is performed in the first prediction direction.

### Claim 19

A recording medium readable by a decoder, which stores a bitstream generated by a video encoding method, the video encoding method comprising:
determining an intra-prediction mode of the current block;
depending on the presence or absence of a reference sample at a position to be referenced as a first prediction direction indicated by an intra-prediction mode, determining a direction for the intra-prediction in consideration of a second prediction direction different than the first prediction direction;
performing the intra-prediction according to the direction for the intra-prediction to generate a prediction block of the current block;
generating a residual block by subtracting the prediction block from the current block; and
encoding information related to the intra-prediction mode and the residual block.
