# US 2021/0084302 A1 · Coding unit division decision method and device, encoder, 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 2021/0084302 A1
- Document ID: US20210084302A1
- Status: Published application
- Kind: A1
- Application number: 16/954,047
- Filed: 2017-12-14
- Published: 2021-03-18
- Earliest claimed: 2017-12-14
- Assignees: Beijing Kingsoft Cloud Network Technology Co., Ltd.; Beijing Kingsoft Cloud Technology Co., Ltd.
- Applicants: Beijing Kingsoft Cloud Network Technology Co., Ltd.; Beijing Kingsoft Cloud Technology Co., Ltd.
- Inventors: Zheng Zhu; Xianguo Zhang; Xing Jin; Juanting Fan; Erli Zhang
- Web page: https://patentgrep.com/patent/US20210084302A1

## CPC

- H04N 19/122: Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/36: Scalability techniques involving formatting the layers as a function of picture distortion after decoding, e.g. signal-to-noise [SNR] scalability
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of a coding unit division decision method and device, an encoder and a storage medium are disclosed. The method includes: determining the current level of a target CU and obtaining a predicted level of the target CU according to a preset level prediction rule; determining whether the current level is smaller than the predicted level; in case of the current level smaller than the predicted level, performing division decisions on sub-CUs of the target CU to obtain first division decision results; in case of the first division decision results meeting a preset first skip condition, determining that a division decision result for the target CU is a result comprised of a division result for dividing the target CU into the four sub-CUs and the first division decision results respectively corresponding to the four sub-CUs of the target CU.

## Claims

### Claim 1

A coding unit division decision method, comprising:
obtaining a target coding unit (CU);
determining a current level of the target CU;
obtaining a predicted level of the target CU according to a preset level prediction rule;
determining whether the current level is smaller than the predicted level;
in case of the current level smaller than the predicted level, performing division decisions on four sub-CUs of the target CU respectively to obtain a first division decision result for each of the sub-CUs;
determining whether the first division decision results meet a preset first skip condition; and
in case of the first division decision results meeting the preset first skip condition, determining a target division decision result for the target CU as a second division decision result, wherein the second division decision result comprises a division result for dividing the target CU into the four sub-CUs and the first division decision results for the four sub-CUs of the target CU.

### Claim 2 (depends on 1)

The method of claim 1, wherein when the first division decision results do not meet the preset first skip condition, the method further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU; and
determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result, wherein the third division decision result comprises a division result for not dividing the target CU and the mode decision result for the target CU.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result comprises:
determining whether a rate-distortion cost in the second division decision result is smaller than or equal to a rate-distortion cost in the third division decision result;
in case of the rate-distortion cost in the second division decision result smaller than or equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the second division decision result; and
in case of the rate-distortion cost in the second division decision result not smaller than and not equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the third division decision result.

### Claim 4 (depends on 1)

The method of claim 1, wherein when the current level is not smaller than the predicted level, the method further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU;
determining whether the mode decision result for the target CU meets a preset second skip condition; and
in case of the mode decision result for the target CU meeting the preset second skip condition, determining the target division decision result for the target CU as a third division decision result, wherein the third division decision result comprises a division result for not dividing the target CU and the mode decision result for the target CU.

### Claim 5 (depends on 2)

The method of claim 2, wherein performing a mode decision on the target CU to obtain a mode decision result for the target CU comprises:
calculating a rate-distortion cost for the target CU to obtain the mode decision result for the target CU.

### Claim 6 (depends on 4)

The method of claim 4, wherein when the mode decision result for the target CU does not meet the preset second skip condition, the method further comprises:
performing the division decisions on the four sub-CUs of the target CU respectively to obtain the first division decision result for each of the sub-CUs; and
determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and the third division decision result.

### Claim 7 (depends on 1)

The method of claim 1, wherein performing the division decisions on the four sub-CUs of the target CU respectively to obtain the first division decision result for each of the sub-CUs comprises:
determining the four sub-CUs of the target CU as target CUs respectively according to a preset rule and returning to the step of determining a current level of the target CU.

### Claim 8 (depends on 1)

The method of claim 1, wherein obtaining a predicted level of the target CU according to a preset level prediction rule comprises:
determining whether a level of a left neighboring CU of the target CU and a level of a top neighboring CU of the target CU are known,
in case of the level of the left neighboring CU being known and the level of the top neighboring CU being unknown, determining the predicted level of the target CU as the level of the left neighboring CU;
in case of the level of the top neighboring CU being known and the level of the left neighboring CU being unknown, determining the predicted level of the target CU as the level of the top neighboring CU;
in case of the level of the left neighboring CU and the level of the top neighboring CU being known, determining the predicted level of the target CU as a highest level of the level of the left neighboring CU and the level of the top neighboring CU;
in case of the level of the left neighboring CU and the level of the top neighboring CU being unknown, determining the predicted level of the target CU as a level of a reference CU, wherein when the reference CU is not available, determining the predicted level of the target CU as 0, wherein the reference CU comprises a CU in a previous video frame before a video frame where the target CU is located, and a position of the CU in the previous video frame is the same as a position of the target CU in the video frame.

### Claim 9

An encoder, comprising at least one processor, wherein the at least one processor is configured to perform operations comprising
obtaining a target coding unit (CU);
determining a current level of the target CU;
obtaining a predicted level of the target CU according to a preset level prediction rule;
determining whether the current level is smaller than the predicted level;
in case of the current level smaller than the predicted level, performing division decisions on four sub-CUs of the target CU respectively to obtain a first division decision result for each of the sub-CUs;
determining whether the first division decision results meet a preset first skip condition; and
in case of the first division decision results meeting the preset first skip condition, determining a target division decision result for the target CU as a second division decision result, wherein the second division decision result comprises a division result for dividing the target CU into the four sub-CUs and the first division decision results for the four sub-CUs of the target CU.

### Claim 10 (depends on 9)

The encoder of claim 9, wherein when the first division decision results do not meet the preset first skip condition, the operations further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU; and
determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result, wherein the third division decision result comprises a division result for not dividing the target CU and the mode decision result for the target CU.

### Claim 11 (depends on 10)

The encoder of claim 10, wherein determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result:
determining whether a rate-distortion cost in the second division decision result is smaller than or equal to a rate-distortion cost in the third division decision result;
in case of the rate-distortion cost in the second division decision result smaller than or equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the second division decision result; and
in case of the rate-distortion cost in the second division decision result not smaller than and not equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the third division decision result.

### Claim 12 (depends on 9)

The encoder of claim 9, wherein when the current level is not smaller than the predicted level, the operations further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU;
determining whether the mode decision result for the target CU meets a preset second skip condition; and
in case of the mode decision result for the target CU meeting the preset second skip condition, determining the target division decision result for the target CU as a third division decision result.

### Claim 13 (depends on 10)

The encoder of claim 10, wherein performing a mode decision on the target CU to obtain a mode decision result for the target CU comprises:
calculating a rate-distortion cost for the target CU to obtain the mode decision result for the target CU.

### Claim 14 (depends on 12)

The encoder of claim 12, wherein when the mode decision result for the target CU does not meet the preset second skip condition, the operations further comprises:
performing the division decisions on the four sub-CUs of the target CU respectively to obtain the first division decision result for each of the sub-CUs; and
determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and the third division decision result.

### Claim 15 (depends on 9)

The encoder of claim 9, wherein performing the division decisions on the four sub-CUs of the target CU respectively to obtain the first division decision result for each of the sub-CUs comprises:
determining the four sub-CUs of the target CU as target CUs respectively according to a preset rule and returning to the operation of determining a current level of the target CU.

### Claim 16 (depends on 9)

The encoder of claim 9, wherein obtaining a predicted level of the target CU according to a preset level prediction rule comprises:
determining whether a level of a left neighboring CU of the target CU and a level of a top neighboring CU of the target CU are known,
in case of the level of the left neighboring CU being known and the level of the top neighboring CU being unknown, determining the predicted level of the target CU as the level of the left neighboring CU;
in case of the level of the top neighboring CU being known and the level of the left neighboring CU being unknown, determining the predicted level of the target CU as the level of the top neighboring CU;
in case of the level of the left neighboring CU and the level of the top neighboring CU being known, determining the predicted level of the target CU as a highest level of the level of the left neighboring CU and the level of the top neighboring CU;
in case of the level of the left neighboring CU and the level of the top neighboring CU being unknown, determining the predicted level of the target CU as a level of a reference CU, wherein when the reference CU is not available, determining the predicted level of the target CU as 0, wherein the reference CU comprises a CU in a previous video frame before a video frame where the target CU is located, and a position of the CU in the previous video frame is the same as a position of the target CU in the video frame.

### Claim 17

(canceled)

### Claim 18

(canceled)

### Claim 19

A non-transitory computer-readable storage medium, having stored thereon a computer program that, when executed by a processor, causes the processor to carry out operations comprising:
obtaining a target coding unit (CU);
determining a current level of the target CU;
obtaining a predicted level of the target CU according to a preset level prediction rule;
determining whether the current level is smaller than the predicted level;
in case of the current level smaller than the predicted level, performing division decisions on four sub-CUs of the target CU respectively to obtain a first division decision result for each of the sub-CUs;
determining whether the first division decision results meet a preset first skip condition; and
in case of the first division decision results meeting the preset first skip condition, determining a target division decision result for the target CU as a second division decision result, wherein the second division decision result comprises a division result for dividing the target CU into the four sub-CUs and the first division decision results for the four sub-CUs of the target CU.

### Claim 20 (depends on 19)

The storage medium of claim 19, wherein when the first division decision results do not meet the preset first skip condition, the method further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU; and
determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result, wherein the third division decision result comprises a division result for not dividing the target CU and the mode decision result for the target CU.

### Claim 21 (depends on 20)

The storage medium of claim 20, wherein determining the target division decision result for the target CU as an optimal division decision result of the second division decision result and a third division decision result comprises:
determining whether a rate-distortion cost in the second division decision result is smaller than or equal to a rate-distortion cost in the third division decision result;
in case of the rate-distortion cost in the second division decision result smaller than or equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the second division decision result; and
in case of the rate-distortion cost in the second division decision result not smaller than and not equal to the rate-distortion cost in the third division decision result, determining the target division decision result for the target CU as the third division decision result.

### Claim 22 (depends on 19)

The storage medium of claim 19, wherein when the current level is not smaller than the predicted level, the method further comprises:
performing a mode decision on the target CU to obtain a mode decision result for the target CU;
determining whether the mode decision result for the target CU meets a preset second skip condition; and
in case of the mode decision result for the target CU meeting the preset second skip condition, determining the target division decision result for the target CU as a third division decision result, wherein the third division decision result comprises a division result for not dividing the target CU and the mode decision result for the target CU.
