# US 2021/0344929 A1 · Encoding method and apparatus therefor, and decoding method and apparatus therefor

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

- Number: US 2021/0344929 A1
- Document ID: US20210344929A1
- Status: Published application
- Kind: A1
- Application number: 17/270,944
- Filed: 2019-08-26
- Published: 2021-11-04
- Earliest claimed: 2018-08-24
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Narae CHOI; Minwoo PARK; Minsoo PARK; Kiho CHOI; Yinji PI AO; Seungsoo JEONG; Woongil CHOI; Anish TAMSE; Gahyun RYU
- Web page: https://patentgrep.com/patent/US20210344929A1

## CPC

- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- 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/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/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/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Video decoding includes obtaining intra prediction mode information for a current block; determining an intra prediction direction indicated by the intra prediction mode, and a shape of the current block; predicting the current block by intra predicting the current block; and reconstructing the current block, according to a prediction result with respect to the current block. The intra prediction direction of the current block is used and may include: when the current block has the square shape, determining the intra prediction direction of the current block in a prediction direction indicated by the intra prediction mode information; and when the current block has the non-square shape, determining the intra prediction direction of the current block based on a result of comparison between a reference prediction direction and the prediction direction, the reference prediction direction being determined according to a ratio of the width and the height of the current block.

## Claims

### Claim 1

A video decoding method comprising:
obtaining intra prediction mode information indicating an intra prediction mode of a current block;
determining an intra prediction direction indicated by the intra prediction mode information, according to a shape of the current block;
predicting the current block by intra predicting the current block in the intra prediction direction; and
reconstructing the current block, according to a prediction result with respect to the current block,
wherein the determining of the intra prediction direction of the current block comprises,
when the current block has a square shape, determining the intra prediction direction of the current block from first intra prediction direction candidates determined according to the square shape, and
when the current block has a non-square shape, determining the intra prediction direction of the current block from second intra prediction direction candidates determined according to a width and a height of the non-square current block, and
wherein the first intra prediction direction candidates and the second intra prediction direction candidates are determined from an intra prediction direction candidate group comprising a plurality of prediction directions.

### Claim 2 (depends on 1)

The video decoding method of claim 1, wherein the determining of the intra prediction direction of the current block comprises:
when the current block has the square shape, determining the intra prediction direction of the current block from the first intra prediction direction candidates, in a prediction direction indicated by the intra prediction mode information; and
when the current block has the non-square shape, determining the intra prediction direction of the current block from the second intra prediction direction candidates, based on a result of comparison between a reference prediction direction and the prediction direction, the reference prediction direction being determined according to a ratio of the width and the height of the current block and the prediction direction being indicated by the intra prediction mode information.

### Claim 3 (depends on 2)

The video decoding method of claim 2, wherein the determining of the intra prediction direction of the current block comprises:
in a case where the current block has a non-square shape whose width is greater than its height, when the prediction direction indicated by the intra prediction mode information is closer to a lower direction than the reference prediction direction, determining the intra prediction direction of the current block in a direction symmetrical to the prediction direction indicated by the intra prediction mode information with respect to an origin; and
in a case where the current block has the non-square shape whose width is greater than its height, when the reference prediction direction is equal to the prediction direction indicated by the intra prediction mode information or the reference prediction direction is closer to a lower direction than the prediction direction indicated by the intra prediction mode information, determining the intra prediction direction of the current block in the prediction direction indicated by the intra prediction mode information.

### Claim 4 (depends on 2)

The video decoding method of claim 2, wherein the determining of the intra prediction direction of the current block comprises:
in a case where the current block has a non-square shape whose height is greater than its width, when the prediction direction indicated by the intra prediction mode information is closer to a right direction than the reference prediction direction, determining the intra prediction direction of the current block in a direction symmetrical to the prediction direction indicated by the intra prediction mode information with respect to an origin; and
in a case where the current block has the non-square shape whose height is greater than its width, when the reference prediction direction is equal to the prediction direction indicated by the intra prediction mode information or the reference prediction direction is closer to a right direction than the prediction direction indicated by the intra prediction mode information, determining the intra prediction direction of the current block in the prediction direction indicated by the intra prediction mode information.

### Claim 5 (depends on 2)

The video decoding method of claim 2, wherein, when the current block has a non-square shape whose width is greater than its height, the reference prediction direction is a direction indicating a bottom-left vertex of the current block from a center of the current block, and
when the current block has a non-square shape whose height is greater than its width, the reference prediction direction is a direction indicating a top-right vertex of the current block from a center of the current block.

### Claim 6 (depends on 2)

The video decoding method of claim 2, wherein the intra prediction mode information indicates an index number of the intra prediction mode of the current block, and
wherein the determining of the intra prediction direction comprises determining the intra prediction direction of the current block, based on the index number indicated by the intra prediction mode information.

### Claim 7 (depends on 6)

The video decoding method of claim 6, wherein the determining of the intra prediction direction comprises:
in a case where the current block has a non-square shape whose width is greater than its height, when the index number is smaller than a reference index number corresponding to the reference prediction direction, determining the intra prediction direction of the current block in a prediction direction of an intra prediction mode corresponding to an adjusted index number greater than the index number by a first value; and
in a case where the current block has the non-square shape whose width is greater than its height, when the index number indicated by the intra prediction mode information is equal to an index number corresponding to the reference prediction direction or the index number indicated by the intra prediction mode information is greater than the index number corresponding to the reference prediction direction, determining the intra prediction direction of the current block in a prediction direction of an intra prediction mode corresponding to the index number.

### Claim 8 (depends on 6)

The video decoding method of claim 6, wherein the determining of the intra prediction direction comprises:
in a case where the current block has a non-square shape whose height is greater than its width, when the index number is greater than a reference index number corresponding to the reference prediction direction, determining the intra prediction direction of the current block in a prediction direction of an intra prediction mode corresponding to an adjusted index number smaller than the index number by a second value; and
in a case where the current block has the non-square shape whose height is greater than its width, when the index number indicated by the intra prediction mode information is equal to an index number corresponding to the reference prediction direction or the index number indicated by the intra prediction mode information is smaller than the index number corresponding to the reference prediction direction, determining the intra prediction direction of the current block in a prediction direction of an intra prediction mode corresponding to the index number.

### Claim 9

A video decoding apparatus comprising:
a memory storing at least one instruction for performing video decoding; and
a processor configured to execute the at least one instruction,
wherein the processor is further configured to, in response to the at least one instruction,
obtain intra prediction mode information indicating an intra prediction mode of a current block,
determine an intra prediction direction indicated by the intra prediction mode information, according to a shape of the current block,
predict the current block by intra predicting the current block in the intra prediction direction, and
reconstruct the current block, according to a prediction result with respect to the current block, and
wherein, when the current block has a square shape, the intra prediction mode of the current block is determined from first intra prediction direction candidates determined according to the square shape,
wherein, when the current block has a non-square shape, the intra prediction direction of the current block is determined from second intra prediction direction candidates determined according to a width and a height of the non-square current block, and
wherein the first intra prediction direction candidates and the second intra prediction direction candidates are determined from an intra prediction direction candidate group comprising a plurality of prediction directions.

### Claim 10

A video encoding method comprising:
determining an intra prediction direction to be used in prediction of a current block, from among a plurality of intra prediction directions;
determining intra prediction mode information indicating an intra prediction mode of the current block, according to a shape and the intra prediction direction of the current block; and
outputting a bitstream comprising intra prediction mode information,
wherein the determining of the intra prediction mode information of the current block comprises,
when the current block has a square shape, determining the intra prediction mode information from first intra prediction direction candidates determined according to the square shape, and
when the current block has a non-square shape, determining the intra prediction mode information of the current block from second intra prediction direction candidates determined according to a width and a height of the non-square current block, and
wherein the first intra prediction direction candidates and the second intra prediction direction candidates are determined from an intra prediction direction candidate group comprising a plurality of prediction directions.

### Claim at position 11

11-16. (canceled)
