# US 10,375,414 B2 · Method and apparatus for intra prediction

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

- Number: US 10,375,414 B2
- Document ID: US10375414B2
- Status: Granted
- Kind: B2
- Application number: 16/004,592
- Filed: 2018-06-11
- Published: 2018-10-11
- Granted: 2019-08-06
- Earliest claimed: 2013-02-06
- Assignees: Research & Business Foundation Sungkyunkwan University
- Applicants: Research & Business Foundation Sungkyunkwan University
- Inventors: Byeung Woo Jeon; Ho Young Lee; Kwang Hyun Won
- Web page: https://patentgrep.com/patent/US10375414B2

## CPC

- H04N 19/593: involving spatial prediction techniques
- 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/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed herein are a method and apparatus for filtering a reference pixel. A method of smoothing a reference pixel may include determining whether or not to perform smoothing on a reference pixel based on the size of a transform block and information about an intra-prediction mode for the transform block and determining a smoothing method by comparing the size of the transform block with the size of a maximum transform block. Accordingly, image coding efficiency can be increased, and picture quality can be improved.

## Claims

### Claim 1

An intra-prediction method in which an intra-prediction is performed on a current block, comprising:
determining whether or not to perform smoothing on a reference pixel of the current block based on a size of a block and an intra-prediction mode for the current block, the size of the block being indicated by an encoder and transmitted to a decoder through a higher layer syntax;
determining a smoothing filter by comparing the size of the current block with the transmitted size of the block, and
in response to the result of comparison between the size of the current block and the transmitted size of the block, determining the smoothing filter to be a bi-linear smoothing filter or a smoothing filter having predetermined filtering coefficients.

### Claim 2

An intra-prediction method in which an intra-prediction is performed on a current block, comprising:
determining whether or not to perform smoothing on a reference pixel of the current block based on a size of a block and an intra-prediction mode for the current block, the size of the block being indicated by an encoder and transmitted to a decoder through a higher layer syntax; and
determining a smoothing method by comparing the size of the current block with the transmitted size of the block,
wherein the determining of whether or not to perform smoothing on the reference pixel based on the transmitted size of the block and the intra-prediction mode for the current block comprises determining to perform smoothing only in response to each of:
the size of the current block being 8×8 and the intra-prediction mode for the current block being a No. 2 intra-prediction mode,
the size of the current block being 8×8 and the intra-prediction mode for the current block being a No. 18 intra-prediction mode,
the size of the current block being 8×8 and the intra-prediction mode for the current block being a No. 34 intra-prediction mode,
the size of the current block being 8×8 and the intra-prediction mode for the current block being a planar mode;
the size of the current block being 16×16 and the intra-prediction mode for the current block being a No. 2 intra-prediction mode to a No. 8 intra-prediction mode,
the size of the current block being 16×16 and the intra-prediction mode for the current block being a No. 12 intra-prediction mode to a No. 24 intra-prediction mode,
the size of the current block being 16×16 and the intra-prediction mode for the current block being a No. 28 intra-prediction mode to a No. 34 intra-prediction mode, and
the size of the current block being 16×16 and the intra-prediction mode for the current block being a planar mode; and
the size of the current block being 32×32 and the intra-prediction mode for the current block being a No. 2 intra-prediction mode to a No. 34 intra-prediction mode, and
the size of the current block being 32×32 and the intra-prediction mode for the current block being a planar mode other than a No. 10 intra-prediction mode and a No. 26 intra-prediction mode.

### Claim 3 (depends on 1)

The intra-prediction method of claim 1, wherein the smoothing filter having the filtering coefficients of [1,2,1] is a filter for calculating a filtered reference pixel,
pF[x][y](x=−1,y=−1 . . . nT*2-1,x=−1 . . . nT*2-1,y=−1),
according to the equations:
pF[−1][nT*2−1]=p[−1][nT*2−1]
pF[nT*2−1][−1]=p[nT*2−1][−1]
pF[−1][y]=(p[−1][y+1]+2*p[−1][y]+p[−1][y−1]+2)>>2 for y=nT*2−2 . . . 0
pF[−1][−1]=(p[−1][0]+2*p[−1][−1]+p[0][−1]+2)>>2
pF[x][−1]=(p[x−1][−1]+2*p[x][−1]+p[x+1][−1]+2)>>2 for x=0 . . . nT*2−2
wherein the current block is a current transform block and the size of the current block is a size of a current transform block, and wherein the size of the current transform block is nT, a reference pixel of the current transform block is
p[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=1).

### Claim 4 (depends on 1)

The intra-prediction method of claim 1, wherein the bi-linear smoothing filter is a filter for calculating a filtered reference pixel
pF[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=−1).
according to the equations:
pF[−1][nT*2−1]=p[−1][nT*2−1]
pF[nT*2−1][−1]=p[nT*2−1][−1]
pF[−1][y]=(nT*2−1−y)*p[−1][−1]+(y+1)*p[−1][nT*2−1]+nT)>>(1+log2(nT)) for y=0 . . . nT*2−2
pF[−1][−1]=p[−1][−1]
pF[x][−1]=((nT*2−1−x)*p[−1][−1]+(x+1)*p[nT*2−1][−1]+nT)>>(1+log2(nT)) for x=0 . . . nT*2−2
wherein the current block is a current transform block and the size of the current block is a size of a current transform block, and wherein the size of the current transform block is nT, and a reference pixel of the current transform block is
p[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=1).

### Claim 5 (depends on 1)

The intra-prediction method of claim 1, further comprising decoding flag information, wherein the flag information is information for determining whether or not to perform smoothing on the reference pixel by determining whether or not to perform smoothing on the reference pixel based on the size of the current block and the intra-prediction mode for the current block and comparing the size of the current block with the size of the block.

### Claim 6 (depends on 1)

The intra-prediction method of claim 1, further comprising determining an intra-prediction method for a specific intra-prediction mode by comparing the size of the current block with the transmitted size of the block.

### Claim 7

An image decoder in which an intra-prediction is performed on a current block, comprising:
an intra-prediction unit configured to:
determine whether or not to perform smoothing on a reference pixel of the current block based on a size of a block and an intra-prediction mode for the current block, the size of the block being indicated by an encoder and transmitted to the decoder through a higher layer syntax,
determine a smoothing method by comparing the size of the current block with the transmitted size of the block,
in response to the result of comparison between the size of the current block and the transmitted size of the block, determine the smoothing filter to be a bi-linear smoothing filter or a smoothing filter having predetermined filtering coefficients.

### Claim 8 (depends on 7)

The image decoder of claim 7,
wherein the smoothing filter having the filtering coefficients of [1,2,1] is a filter for calculating a filtered reference pixel,
pF[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=1),
according to:
pF[−1][nT*2−1]=p[−1][nT*2−1]
pF[nT*2−1][−1]=p[nT*2−1][−1]
pF[−1][y]=(p[−1][y+1]+2*p[−1][y]+p[−1][y−1]+2)>>2 for y=nT*2−2 . . . 0
pF[−1][−1]=(p[−1][0]+2*p[−1][−1]+p[0][−1]+2)>>2
pF[x][−1]=(p[x−1][−1]+2*p[x][−1]+p[x+1][−1]+2)>>2 for x=0 . . . nT*2−2
wherein the current block is a current transform block and the size of the current block is a size of a current transform block, and wherein the size of the transform current block is nT, and a reference pixel of the transform block is
p[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=−1).

### Claim 9 (depends on 7)

The image decoder of claim 7,
wherein the bi-linear smoothing filter is a filter for calculating a filtered reference pixel, pF[x][y] (x=−1, y=−1 . . . nT*2−1, x=−1 . . . nT*2−1, y=−1), according to:
pF[−1][nT*2−1]=p[−1][nT*2−1]
pF[nT*2−1][−1]=p[nT*2−1][−1]
pF[−1][y]=(nT*2−1−y)*p[−1][−1]+(y+1)*p[−1][nT*2−1]+nT)>>(1+log1(nT)) for y=0 . . . nT*2−2
pF[−1][−1]=p[−1][−1]
pF[x][−1]=((nT*2−1−x)*p[−1][−1]+(x+1)*p[nT*2−1][−1]+nT)>>(1+log2(nT)) for x=0 . . . nT*2−2
wherein the current block is a current transform block and the size of the current block is a size of a current transform block, and wherein the size of the transform block is nT, and a reference pixel of the transform block is
p[x][y](x=−1,y=−1 . . . nT*2−1,x=−1 . . . nT*2−1,y=−1).

### Claim 10 (depends on 7)

The image decoder of claim 7, further comprising an entropy decoding unit,
wherein the entropy decoding unit is configured to decode flag information, and
the flag information is information for determining whether or not to perform smoothing on the reference pixel by determining whether or not to perform smoothing on the reference pixel based on the size of the current block and the intra-prediction mode for the current block and comparing the size of the current block with the transmitted size of the block.

### Claim 11 (depends on 7)

The image decoder of claim 7, wherein the intra-prediction unit is configured to determine an intra-prediction method for a specific intra-prediction mode by comparing the size of the current block with the transmitted size of the block.
