# US 2022/0046253 A1 · Video encoding and decoding methods and apparatuses, device, and storage medium

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

- Number: US 2022/0046253 A1
- Document ID: US20220046253A1
- Status: Published application
- Kind: A1
- Application number: 17/452,289
- Filed: 2021-10-26
- Published: 2022-02-10
- Earliest claimed: 2019-12-31
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Hongbin ZHANG; Xiang LI; Guichun LI; Shan LIU
- Web page: https://patentgrep.com/patent/US20220046253A1

## CPC

- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/18: the unit being a set of transform coefficients
- 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/186: the unit being a colour or a chrominance component
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/593: involving spatial prediction techniques
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video encoding method is provided. The method includes decoding intra-frame prediction mode information corresponding to a current decoding unit, decoding first identification information corresponding to the current decoding unit when the intra-frame prediction mode information indicates that a block differential pulse code modulation (BDPCM) mode is applied to the current decoding unit, determining, when the first identification information indicates that a transform block (TB) corresponding to the current decoding unit does not include any non-zero transform coefficients, that a residual block corresponding to the current decoding unit is an all-zero residual block, and reconstructing the current decoding unit according to the residual block and a prediction block corresponding to the current decoding unit. The technical solutions provided in embodiments of this application improve the encoding and decoding efficiency of the decoding unit using the BDPCM mode. Apparatus and non-transitory computer-readable storage medium counterpart embodiments are also provided.

## Claims

### Claim 1

A video decoding method, comprising:
decoding intra-frame prediction mode information corresponding to a current decoding unit;
decoding first identification information corresponding to the current decoding unit when the decoded intra-frame prediction mode information indicates that a block differential pulse code modulation (BDPCM) mode is applied to the current decoding unit, and all color components of the current decoding unit use the BDPCM mode, the first identification information indicating whether a transform block (TB) corresponding to the current decoding unit includes a non-zero transform coefficient;
determining, when the first identification information indicates that the TB corresponding to the current decoding unit does not include any non-zero transform coefficients, that a residual block corresponding to the current decoding unit is an all-zero residual block; and
reconstructing the current decoding unit according to the residual block and a prediction block corresponding to the current decoding unit.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first identification information is present in a coding unit (CU) syntax structure.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first identification information is cu_cbf,
a value of cu_cbf being equal to one indicating that the TB corresponding to the current decoding unit comprises a non-zero transform coefficient; and
the value of cu_cbf being equal to zero indicating that the TB corresponding to the current decoding unit does not comprise any non-zero transform coefficients.

### Claim 4 (depends on 3)

The method according to claim 3, wherein
when a coding tree type corresponding to the current decoding unit is DUAL_TREE_LUMA, the value of cu_cbf being equal to one indicates that a luma TB corresponding to the current decoding unit comprises the non-zero transform coefficient;
when the coding tree type corresponding to the current decoding unit is DUAL_TREE_CHROMA, the value of cu_cbf being equal to one indicates that at least one of a first chroma TB and a second chroma TB that correspond to the current decoding unit comprises the non-zero transform coefficient; and
when the coding tree type corresponding to the current decoding unit is SINGLE_TREE, the value of cu_cbf being equal to one indicates that at least one of the luma TB, the first chroma TB, and the second chroma TB that correspond to the current decoding unit comprises the non-zero transform coefficient.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the first identification information is present in a transform unit (TU) syntax structure.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first identification information is tu_cbf_chroma[xC][yC],
a value of tu_cbf_chroma[xC][yC] being equal to one indicating that at least one of a first chroma TB and a second chroma TB that correspond to the current decoding unit comprises the non-zero transform coefficient; and
the value of tu_cbf_chroma[xC][yC] being equal to zero indicating that neither of the first chroma TB and the second chroma TB that correspond to the current decoding unit comprises the non-zero transform coefficient.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
decoding tu_cbf_chroma[xC][yC] by using an entropy decoding scheme of context-based adaptive binary arithmetic coding (CABAC).

### Claim 8 (depends on 1)

The method according to claim 1, further comprising performing, when the current decoding unit meets a predefined condition, the operation of decoding first identification information corresponding to the current decoding unit,
wherein the predefined condition comprises determining, according to a coding tree type corresponding to the current decoding unit, that all the color components of the current decoding unit use the BDPCM mode.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the first identification information is present in a syntax structure of a CU, and
the predefined condition comprises the BDPCM mode is applied to a luma component of the current decoding unit, and at least one of the following conditions is met:
the coding tree type corresponding to the current decoding unit is DUAL_TREE_LUMA; and
the coding tree type corresponding to the current decoding unit is SINGLE_TREE and a value of ChromaArrayType is not equal to three, the value of the ChromaArrayType being equal to three indicating that three color components of the current decoding unit are not separately decoded and a chroma format is 4:4:4.

### Claim 10 (depends on 8)

The method according to claim 8, wherein the first identification information is present in a syntax structure of a CU, and
the predefined condition comprises the BDPCM mode is applied to chroma components of the current decoding unit, and the coding tree type corresponding to the current decoding unit is DUAL_TREE_CHROMA.

### Claim 11 (depends on 10)

The method according to claim 10, wherein after the decoding the first identification information corresponding to the current decoding unit, the method further comprises:
decoding second identification information corresponding to the current decoding unit when the first identification information indicates that the TB corresponding to the current decoding unit comprises the non-zero transform coefficient, the second identification information being used for indicating whether a first chroma TB corresponding to the current decoding unit comprises the non-zero transform coefficient; and
decoding third identification information corresponding to the current decoding unit when at least one condition in a first condition set is met, the third identification information being used for indicating whether a second chroma TB corresponding to the current decoding unit comprises a non-zero transform coefficient.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the first condition set comprises the following conditions:
the BDPCM mode is not applied to the chroma components of the current decoding unit;
the coding tree type corresponding to the current decoding unit is not DUAL_TREE_CHROMA; and
a value of the second identification information indicates that the first chroma TB corresponding to the current decoding unit does not comprise any non-zero transform coefficients.

### Claim 13 (depends on 8)

The method according to claim 8, wherein the first identification information is present in a CU syntax structure or a TU syntax structure, and
the predefined condition comprises the BDPCM mode is applied to all the color components of the current decoding unit, and the coding tree type corresponding to the current decoding unit is SINGLE_TREE.

### Claim 14 (depends on 13)

The method according to claim 13, wherein after the decoding the first identification information corresponding to the current decoding unit, the method further comprises:
decoding second identification information corresponding to the current decoding unit when the first identification information indicates that at least one of a first chroma TB and a second chroma TB that correspond to the current decoding unit comprises the non-zero transform coefficient, the second identification information being used for indicating whether the first chroma TB corresponding to the current decoding unit comprises the non-zero transform coefficient; and
decoding third identification information corresponding to the current decoding unit when at least one condition in a second condition set is met, the third identification information being used for indicating whether the second chroma TB corresponding to the current decoding unit comprises a non-zero transform coefficient.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the second condition set comprises the following conditions:
the coding tree type corresponding to the current decoding unit is not SINGLE_TREE;
a value of the second identification information indicates that the first chroma TB corresponding to the current decoding unit comprises the non-zero transform coefficient; and
the BDPCM mode is not applied to all the color components of the current decoding unit.

### Claim 16

A video encoding method, comprising:
obtaining a current coding unit (CU);
calculating a residual block corresponding to the current CU according to the current CU and a prediction block corresponding to the current CU; and
encoding first identification information corresponding to the current CU when the residual block corresponding to the current CU is an all-zero residual block and all color components of the current CU use a block differential pulse code modulation (BDPCM) mode, the first identification information indicating that a transform block (TB) corresponding to the current CU does not comprise any non-zero transform coefficients.

### Claim 17

A video decoding apparatus, comprising:
processing circuitry configured to
decode intra-frame prediction mode information corresponding to a current decoding unit;
decode first identification information corresponding to the current decoding unit when the decoded intra-frame prediction mode information indicates that a block differential pulse code modulation (BDPCM) mode is applied to the current decoding unit, and all color components of the current decoding unit use the BDPCM mode, the first identification information indicating whether a transform block (TB) corresponding to the current decoding unit comprises a non-zero transform coefficient;
determine when the first identification information indicates that the TB corresponding to the current decoding unit does not comprise any non-zero transform coefficients, that a residual block corresponding to the current decoding unit is an all-zero residual block; and
reconstruct the current decoding unit according to the residual block and a prediction block corresponding to the current decoding unit.

### Claim 18 (depends on 1)

A computer device, comprising processing circuitry and a memory, the memory storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processing circuitry to implement the method according to claim 1.

### Claim 19 (depends on 1)

A non-transitory computer-readable storage medium, storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by processing circuitry to implement the method according to claim 1.

### Claim 20 (depends on 1)

The method according to claim 1, wherein the first identification information is a flag,
a value of the flag being equal to one indicating that the TB corresponding to the current decoding unit comprises a non-zero transform coefficient; and
the value of the flag being equal to zero indicating that the TB corresponding to the current decoding unit does not comprise any non-zero transform coefficients.
