# US 2025/0159252 A1 · Video coding method, apparatus and system

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

- Number: US 2025/0159252 A1
- Document ID: US20250159252A1
- Status: Published application
- Kind: A1
- Application number: 19/024,962
- Filed: 2025-01-16
- Published: 2025-05-15
- Earliest claimed: 2022-08-12
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Luhang XU
- Web page: https://patentgrep.com/patent/US20250159252A1

## 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/11: among a plurality of spatial predictive coding modes
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video coding method, apparatus and a system are provided. During decoding of a current block, a TMRL enabled flag is used. Whether it is allowed to encode or decode a TMRL mode syntax element for the current block is determined based on a value of the TMRL enabled flag.

## Claims

### Claim 1

A video decoding method, applied to a decoder, the video decoding method comprising:
determining a value of a template-based multiple reference line intra prediction TMRL enabled flag by decoding; and
during decoding of a current block:
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is allowed to be used, allowing to decode a TMRL mode syntax element for the current block; or
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is not allowed to be used, skipping decoding a TMRL mode syntax element for the current block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
the TMRL enabled flag is a sequence-level identifier, an image-level identifier, or a slice-level identifier.

### Claim 3 (depends on 1)

The method according to claim 1, wherein
the determining a value of a TMRL enabled flag by decoding comprises: decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
the determining a value of a TMRL enabled flag by decoding comprises:
decoding an MRL enabled flag to obtain a value of the MRL enabled flag; and
in a case in which the value of the MRL enabled flag indicates that MRL is not allowed to be used, skipping decoding the TMRL enabled flag, and determining, by default, the value of the TMRL enabled flag to a value indicating that the TMRL mode is not allowed to be used; or
in a case in which the value of the MRL enabled flag indicates that MRL is allowed to be used, decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag.

### Claim 5 (depends on 1)

The method according to claim 1, wherein
the determining a value of a TMRL enabled flag by decoding comprises:
decoding a template enabled flag to obtain a value of the template enabled flag; and
in a case in which the value of the template enabled flag indicates that a template is not allowed to be used, skipping decoding the TMRL enabled flag, and determining, by default, the value of the TMRL enabled flag to a value indicating that the TMRL mode is not allowed to be used; or
in a case in which the value of the template enabled flag indicates that a template is allowed to be used, decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag.

### Claim 6 (depends on 1)

The method according to claim 1, wherein
the determining a value of a TMRL enabled flag by decoding comprises:
decoding an MRL enabled flag and a template enabled flag to obtain a value of the MRL enabled flag and a value of the template enabled flag; and
in a case in which the value of the MRL enabled flag indicates that MRL is allowed to be used, and the value of the template enabled flag indicates that a template is allowed to be used, decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag; or
in a case in which the value of the MRL enabled flag indicates that MRL is not allowed to be used, or the value of the template enabled flag indicates that a template is not allowed to be used, skipping decoding the TMRL enabled flag, and determining, by default, the value of the TMRL enabled flag to a value indicating that the TMRL mode is not allowed to be used.

### Claim 7 (depends on 1)

The method according to claim 1, wherein
the TMRL enabled flag is a sequence-level identifier, and the determining a value of a TMRL enabled flag by decoding comprises:
decoding general constraints information GCI, and determining, based on a value of a flag bit used for indicating whether the TMRL mode is restricted in the GCI, whether the TMRL mode is restricted; and
in a case in which the TMRL mode is restricted, skipping decoding the TMRL enabled flag, and determining that the value of the TMRL enabled flag indicates that the TMRL mode is not allowed to be used; or
in a case in which the TMRL mode is not restricted, decoding a sequence-level identifier to determine the value of the TMRL enabled flag.

### Claim 8 (depends on 1)

The method according to claim 1, wherein
the TMRL enabled flag is a sequence-level identifier, and the determining a value of a TMRL enabled flag by decoding comprises:
decoding GCI, and determining, based on a value of a flag bit used for indicating whether MRL is restricted in the GCI, whether an MRL mode is restricted; and
in a case in which the MRL mode is restricted, skipping decoding the TMRL enabled flag, and determining that the value of the TMRL enabled flag indicates that the TMRL mode is not allowed to be used; or
in a case in which the MRL mode is not restricted, decoding a sequence-level identifier to determine the value of the TMRL enabled flag.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the TMRL enabled flag is a sequence-level identifier, and the determining a value of a TMRL enabled flag by decoding comprises:
decoding GCI, and determining, based on a value of a flag bit used for indicating whether usage of a template is restricted in the GCI, whether the usage of the template is restricted; and
in a case in which the usage of the template is restricted, skipping decoding the TMRL enabled flag, and determining that the value of the TMRL enabled flag indicates that the TMRL mode is not allowed to be used; or
in a case in which the usage of the template is not restricted, decoding a sequence-level identifier to determine the value of the TMRL enabled flag.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the TMRL enabled flag is a sequence-level identifier, and the determining a value of a TMRL enabled flag by decoding comprises:
decoding GCI, and determining, based on a value of a flag bit used for indicating whether an MRL mode is restricted in the GCI, whether the MRL mode is restricted, and determining, based on a value of a flag bit used for indicating whether usage of a template is restricted in the GCI, whether the usage of the template is restricted; and
in a case in which the MRL mode is restricted or the usage of the template is restricted, skipping decoding the TMRL enabled flag, and determining that the value of the TMRL enabled flag indicates that the TMRL mode is not allowed to be used; or
in a case in which the MRL mode is not restricted or the usage of the template is not restricted, decoding a sequence-level identifier to determine the value of the TMRL enabled flag.

### Claim 11 (depends on 1)

The method according to claim 1, wherein
in a case in which the value of the TMRL enabled flag indicates that the TMRL mode is allowed to be used, the method further comprises:
determining whether a template-based intra mode derivation TIMD mode is to be used for the current block; and
in a case in which the TIMD mode is to be used for the current block, decoding a multiple reference line MRL index for the current block, and skipping decoding a TMRL mode syntax element for the current block; or
in a case in which the TIMD mode is not to be used for the current block, decoding a TMRL mode syntax element for the current block, and skipping decoding an MRL index for the current block.

### Claim 12 (depends on 1)

The method according to claim 1, wherein
the decoding a TMRL mode syntax element for the current block comprises:
decoding a TMRL mode flag for the current block to obtain a value of the TMRL mode flag, wherein the TMRL mode flag is used for indicating whether the TMRL mode is to be used for the current block; and
determining, based on the value of the TMRL mode flag, whether the TMRL mode is to be used for the current block; and in a case in which it is determined that the TMRL mode is to be used, decoding a TMRL mode index for the current block; or in a case in which it is determined that the TMRL mode is not to be used, skipping decoding a TMRL mode index for the current block,
wherein after the TMRL mode index for the current block is decoded, the method further comprises:
constructing a candidate list of the TMRL mode for the current block; determining, based on the TMRL mode index and the candidate list, a combination, selected for the current block, of an extended reference line and an intra prediction mode; and predicting the current block based on the selected combination to obtain a predicted value for the current block.

### Claim 13 (depends on 12)

The method according to claim 12, wherein
the predicting the current block based on the selected combination to obtain a predicted value for the current block comprises:
in a case in which the selected combination is an original combination, predicting the current block based on an extended reference line and an intra prediction mode in the original combination, to obtain the predicted value for the current block; and
in a case in which the selected combination is a fused combination, using a weighted sum of a first prediction result and a second prediction result as the predicted value for the current block, wherein the first prediction result is obtained by predicting the current block based on an extended reference line and a predetermined angular mode in an original combination corresponding to the fused combination, and the second prediction result is obtained by predicting the current block based on another reference line and a predetermined angular mode in an original combination corresponding to the fused combination.

### Claim 14 (depends on 13)

The method according to claim 13, wherein
the predetermined angular mode comprises all angular modes, or comprises other angular modes than an angular mode of an integer slope;
the another reference line is adjacent to an extended reference line in the original combination corresponding to the fused combination, or the another reference line is a reference line with an index of 0.

### Claim 15 (depends on 13)

The method according to claim 13, wherein
the weighted sum of the first prediction result and the second prediction result is calculated according to following formula:
pfusion=(wapa+wbpb)>>shift
or
pfusion=(wapa+wbpb+offset)>>shift
wherein pa denotes the first prediction result, pb denotes the second prediction result, pfusion denotes a final prediction result for the current block, wa denotes a weight of pa, and wb denotes a weight of pb;
wherein wa+wb=(1<<shift), offset=1<<(shift−1), shift≥1, and both shift and offset are set parameters.

### Claim 16

A video decoder, comprising a memory and a processor, wherein the memory is configured to store at least program, and the processor is configured to execute the program stored in the memory to cause the video decoder to perform operations comprising:
determining a value of a template-based multiple reference line intra prediction TMRL enabled flag by decoding; and
during decoding of a current block:
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is allowed to be used, allowing to decode a TMRL mode syntax element for the current block; or
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is not allowed to be used, skipping decoding a TMRL mode syntax element for the current block.

### Claim 17 (depends on 16)

The video decoder according to claim 16, wherein the TMRL enabled flag is a sequence-level identifier, an image-level identifier, or a slice-level identifier.

### Claim 18 (depends on 16)

The video decoder according to claim 16, wherein
the determining a value of a TMRL enabled flag by decoding comprises: decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag.

### Claim 19 (depends on 16)

The video decoder according to claim 16, wherein
the determining a value of a TMRL enabled flag by decoding comprises:
decoding an MRL enabled flag to obtain a value of the MRL enabled flag; and
in a case in which the value of the MRL enabled flag indicates that MRL is not allowed to be used, skipping decoding the TMRL enabled flag, and determining, by default, the value of the TMRL enabled flag to a value indicating that the TMRL mode is not allowed to be used; or
in a case in which the value of the MRL enabled flag indicates that MRL is allowed to be used, decoding the TMRL enabled flag to obtain the value of the TMRL enabled flag.

### Claim 20

A video encoding method, applied to an encoder, the video encoding method comprising:
determining a value of a template-based multiple reference line intra prediction TMRL enabled flag; and
during encoding of a current block:
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is allowed to be used, allowing to encode a TMRL mode syntax element for the current block; or
in a case in which the value of the TMRL enabled flag indicates that a TMRL mode is not allowed to be used, skipping encoding a TMRL mode syntax element for the current block.
