# US 12,113,958 B2 · Intra prediction for square and non-square blocks in video compression

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

- Number: US 12,113,958 B2
- Document ID: US12113958B2
- Status: Granted
- Kind: B2
- Application number: 18/478,560
- Filed: 2023-09-29
- Published: 2024-01-25
- Granted: 2024-10-08
- Earliest claimed: 2018-07-02
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Liang Zhao; Xin Zhao; Xiang Li; Shan Liu
- Web page: https://patentgrep.com/patent/US12113958B2

## CPC

- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- 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/189: characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

In a method for video encoding, whether an angular intra prediction mode for a current block is a wide angle mode is determined. The current block is a non-square block and the wide angle mode is in a direction outside of a range of directions that spans a bottom left diagonal direction and top right diagonal direction of the current block. In response to determining that the angular intra prediction mode is the wide angle mode, whether a block size of the non-square block is greater than 32 is determined. In response to determining that the block size of the non-square block is greater than 32, an intra smoothing filter is enabled and the enabled intra smoothing filter is applied to blocks neighboring the current block to generate filtered blocks. A characteristic value of the current block is encoded in a bitstream based on the filtered blocks.

## Claims

### Claim 1

A method for video encoding, comprising:
determining, for a current block that is a non-square block, whether an angular intra prediction mode for the current block is a wide angle mode that is in a direction outside of a range of directions that spans a bottom left diagonal direction and top right diagonal direction of the current block;
when the angular intra prediction mode is the wide angle mode, determining whether a block size of the non-square block is greater than 32;
when the block size of the non-square block is greater than 32, enabling an intra smoothing filter and applying the enabled intra smoothing filter to blocks neighboring the current block to generate filtered blocks; and
encoding a characteristic value of the current block in a bitstream based on the filtered blocks.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the encoding the characteristic value further comprises:
determining whether a coding tool that utilizes the filtered blocks for performing intra prediction supports the wide angle mode, and
when the coding tool does not support the wide angle mode, changing the angular intra prediction mode from the wide angle mode to an intra prediction mode included in the range of directions that spans the bottom left diagonal direction and the top right diagonal direction of the current block.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions having a direction that is opposite to a direction of the wide angle mode such that the changed intra prediction mode is 180 degrees from the wide angle mode.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions that is nearest to the wide angle mode.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the coding tool is an intra prediction coding tool.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the intra prediction coding tool is Position Dependent Prediction Combination (PDPC).

### Claim 7 (depends on 1)

The method according to claim 1, wherein the block size of the current block is determined in accordance with a height, a width, or an arithmetic mean of the height and the width of the current block.

### Claim 8

A method for video decoding, comprising:
determining, for a current block that is a non-square block, whether an angular intra prediction mode for the current block is a wide angle mode that is in a direction outside of a range of directions that spans a bottom left diagonal direction and top right diagonal direction of the current block;
when the angular intra prediction mode is the wide angle mode, determining whether a block size of the non-square block is greater than 32;
when the block size of the non-square block is greater than 32, enabling an intra smoothing filter and applying the enabled intra smoothing filter to blocks neighboring the current block to generate filtered blocks; and
performing intra prediction based on the filtered blocks to obtain a characteristic value for the current block.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the performing the intra prediction based on the filtered blocks further comprises:
determining whether a coding tool that utilizes the filtered blocks for performing the intra prediction supports the wide angle mode, and
when the coding tool does not support the wide angle mode, changing the angular intra prediction mode from the wide angle mode to an intra prediction mode included in the range of directions that spans the bottom left diagonal direction and the top right diagonal direction of the current block.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions having a direction that is opposite to a direction of the wide angle mode such that the changed intra prediction mode is 180 degrees from the wide angle mode.

### Claim 11 (depends on 9)

The method according to claim 9, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions that is nearest to the wide angle mode.

### Claim 12 (depends on 9)

The method according to claim 9, wherein the coding tool is an intra prediction coding tool.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the intra prediction coding tool is Position Dependent Prediction Combination (PDPC).

### Claim 14 (depends on 8)

The method according to claim 8, wherein the block size of the current block is determined in accordance with a height, a width, or an arithmetic mean of the height and the width of the current block.

### Claim 15

A method of processing visual media data, the method comprising:
processing a bitstream that includes the visual media data according to a format rule, wherein the bitstream includes coded information of a current block in a current picture; and
the format rule specifies that:
whether an angular intra prediction mode for a current block that is a non-square block is a wide angle mode that is in a direction outside of a range of directions that spans a bottom left diagonal direction and top right diagonal direction of the current block is determined;
when the angular intra prediction mode is the wide angle mode, whether a block size of the non-square block is greater than 32 is determined;
when the block size of the non-square block is greater than 32, an intra smoothing filter is enabled and the enabled intra smoothing filter is applied to blocks neighboring the current block to generate filtered blocks; and
intra prediction is performed based on the filtered blocks to obtain a characteristic value for the current block.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the format rule specifies that:
whether a coding tool that utilizes the filtered blocks for performing the intra prediction supports the wide angle mode is determined, and
when the coding tool does not support the wide angle mode, the angular intra prediction mode is changed from the wide angle mode to an intra prediction mode included in the range of directions that spans the bottom left diagonal direction and the top right diagonal direction of the current block.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions having a direction that is opposite to a direction of the wide angle mode such that the changed intra prediction mode is 180 degrees from the wide angle mode.

### Claim 18 (depends on 16)

The method according to claim 16, wherein the angular intra prediction mode is changed to the intra prediction mode in the range of directions that is nearest to the wide angle mode.

### Claim 19 (depends on 16)

The method according to claim 16, wherein the coding tool is an intra prediction coding tool.

### Claim 20 (depends on 15)

The method according to claim 15, wherein the block size of the current block is determined in accordance with a height, a width, or an arithmetic mean of the height and the width of the current block.
