# US 2025/0386013 A1 · Intra prediction method, coder, decoder, and coding and decoding system

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

- Number: US 2025/0386013 A1
- Document ID: US20250386013A1
- Status: Published application
- Kind: A1
- Application number: 19/303,060
- Filed: 2025-08-18
- Published: 2025-12-18
- Earliest claimed: 2021-09-27
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Fan WANG
- Web page: https://patentgrep.com/patent/US20250386013A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/00: Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An intra prediction method, an encoder, and a storage medium are provided. In the method, after determining the weights of at least two prediction modes on at least two units in a current block, the rate of change of a weight in a certain direction can be determined further according to the weights of the at least two units, and according to the rate of change, the weights on other units on the current block can then be determined by means of a smooth transition to determine an intra prediction value of the current block.

## Claims

### Claim 1

A method for intra prediction, applied to an encoder, comprising:
acquiring a prediction mode parameter of a current block, the prediction mode parameter indicating that a template-based intra mode derivation (TIMD) is used to determine an intra prediction value of the current block;
determining first weights of at least two prediction modes on a first unit of the current block, respectively, and determining second weights of the at least two prediction modes on a second unit of the current block, respectively; wherein coordinates of the first unit and coordinates of the second unit are different in a first direction;
determining first change rates of the at least two prediction modes in the first direction based on the first weights, the second weights, the coordinates of the first unit and the coordinates of the second unit;
determining fourth weights of the at least two prediction modes on a fourth unit based on the first change rates and coordinates of the fourth unit; and
determining the intra prediction value of the current block based on the first weights, the second weights and the fourth weights.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining third weights of the at least two prediction modes on a third unit of the current block, respectively, wherein the coordinates of the first unit and coordinates of the third unit are different in a second direction, and the second direction is perpendicular to the first direction; and
determining second change rates of the at least two prediction modes in the second direction based on the first weights, the third weights, the coordinates of the first unit and the coordinates of the third unit,
wherein determining the fourth weights of the at least two prediction modes on the fourth unit based on the first change rates and the coordinates of the fourth unit comprises:
determining the fourth weights based on the first change rates, the second change rates, and the coordinates of the fourth unit.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a left-bottom corner position of the current block, and the third unit is located at a right-top corner position of the current block.

### Claim 4 (depends on 2)

The method of claim 2, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a right-middle position of the current block, and the third unit is located at a middle-top position of the current block.

### Claim 5 (depends on 1)

The method of claim 1, wherein the at least two prediction modes are determined based on costs of candidate modes on a template of the current block, or based on costs of candidate modes on a part of sub-templates in a template.

### Claim 6 (depends on 5)

The method of claim 5, wherein in case that the at least two prediction modes are determined based on the costs of the candidate modes on the part of sub-templates in the template, costs of the at least two prediction modes on the template does not exceed a first value; the first value is a preset threshold value, or the first value is twice of a cost of a first prediction mode, and the first prediction mode is a mode with a minimum cost on the template.

### Claim 7 (depends on 1)

The method of claim 1, wherein units of the current block comprise sub-blocks of the current block, portions of the current block, or pixels of the current block.

### Claim 8 (depends on 1)

The method of claim 1, wherein the current block comprises a coding unit (CU) or a prediction unit (PU).

### Claim 9

An encoder, comprising:
a processor and a memory,
wherein the memory is configured to store computer programs, and
the processor is configured to:
acquire a prediction mode parameter of a current block, the prediction mode parameter indicating that a template-based intra mode derivation (TIMD) is used to determine an intra prediction value of the current block; and
determine first weights of at least two prediction modes on a first unit of the current block, respectively, and determine second weights of the at least two prediction modes on a second unit of the current block, respectively; wherein coordinates of the first unit and coordinates of the second unit are different in a first direction,
wherein the processor is further configured to determine first change rates of the at least two prediction modes in the first direction based on the first weights, the second weights, the coordinates of the first unit and the coordinates of the second unit;
wherein the processor is further configured to determine fourth weights of the at least two prediction modes on a fourth unit based on the first change rates and coordinates of the fourth unit; and
wherein the processor is further configured to determine the intra prediction value of the current block based on the first weights, the second weights and the fourth weights.

### Claim 10 (depends on 9)

The encoder of claim 9, wherein the processor is further configured to:
determine third weights of the at least two prediction modes on a third unit of the current block, respectively, wherein the coordinates of the first unit and coordinates of the third unit are different in a second direction, and the second direction is perpendicular to the first direction; and
determine second change rates of the at least two prediction modes in the second direction based on the first weights, the third weights, the coordinates of the first unit and the coordinates of the third unit,
wherein the processor is further configured to:
determine the fourth weights based on the first change rates, the second change rates, and the coordinates of the fourth unit.

### Claim 11 (depends on 10)

The encoder of claim 10, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a left-bottom corner position of the current block, and the third unit is located at a right-top corner position of the current block.

### Claim 12 (depends on 10)

The encoder of claim 10, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a right-middle position of the current block, and the third unit is located at a middle-top position of the current block.

### Claim 13 (depends on 9)

The encoder of claim 9, wherein the at least two prediction modes are determined based on costs of candidate modes on a template of the current block, or based on costs of candidate modes on a part of sub-templates in a template.

### Claim 14 (depends on 13)

The encoder of claim 13, wherein in case that the at least two prediction modes are determined based on the costs of the candidate modes on the part of sub-templates in the template, costs of the at least two prediction modes on the template does not exceed a first value; the first value is a preset threshold value, or the first value is twice of a cost of a first prediction mode, and the first prediction mode is a mode with a minimum cost on the template.

### Claim 15 (depends on 9)

The encoder of claim 9, wherein units of the current block comprise sub-blocks of the current block, portions of the current block, or pixels of the current block.

### Claim 16

A non-transitory computer readable storage medium storing computer programs that when executed by a processor, cause the processor to perform a method of intra prediction to generate and store a bitstream, wherein the method comprises:
acquiring a prediction mode parameter of a current block, the prediction mode parameter indicating that a template-based intra mode derivation (TIMD) is used to determine an intra prediction value of the current block;
determining first weights of at least two prediction modes on a first unit of the current block, respectively, and determining second weights of the at least two prediction modes on a second unit of the current block, respectively; wherein coordinates of the first unit and coordinates of the second unit are different in a first direction;
determining first change rates of the at least two prediction modes in the first direction based on the first weights, the second weights, the coordinates of the first unit and the coordinates of the second unit;
determining fourth weights of the at least two prediction modes on a fourth unit based on the first change rates and coordinates of the fourth unit; and
determining the intra prediction value of the current block based on the first weights, the second weights and the fourth weights.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the method further comprises:
determining third weights of the at least two prediction modes on a third unit of the current block, respectively, wherein the coordinates of the first unit and coordinates of the third unit are different in a second direction, and the second direction is perpendicular to the first direction; and
determining second change rates of the at least two prediction modes in the second direction based on the first weights, the third weights, the coordinates of the first unit and the coordinates of the third unit,
wherein determining the fourth weights of the at least two prediction modes on the fourth unit based on the first change rates and the coordinates of the fourth unit comprises:
determining the fourth weights based on the first change rates, the second change rates, and the coordinates of the fourth unit.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a left-bottom corner position of the current block, and the third unit is located at a right-top corner position of the current block.

### Claim 19 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the first unit is located at a left-top corner position of the current block, the second unit is located at a right-middle position of the current block, and the third unit is located at a middle-top position of the current block.

### Claim 20 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the at least two prediction modes are determined based on costs of candidate modes on a template of the current block, or based on costs of candidate modes on a part of sub-templates in a template.
