# US 2025/0220195 A1 · Video coding method and apparatus, 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 2025/0220195 A1
- Document ID: US20250220195A1
- Status: Published application
- Kind: A1
- Application number: 19/087,294
- Filed: 2025-03-21
- Published: 2025-07-03
- Earliest claimed: 2023-03-03
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jia Zhang
- Web page: https://patentgrep.com/patent/US20250220195A1

## CPC

- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/103: Selection of coding mode or of prediction mode
- 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/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of this application provide a video coding method performed by a computer device. The method includes: acquiring a target video frame and coding information of the target video frame, the target video frame including M first coding units (CUs), and the coding information including locations of the M first CUs in the target video frame and prediction modes of the M first CUs; acquiring a to-be-coded second CU in the target video frame; determining a prediction mode of the second CU according to the prediction mode of a first CU that is in the M first CUs and that has an overlapping region with the second CU; and coding the second CU according to the prediction mode of the second CU, to obtain bitstream data corresponding to the target video frame under a second coding/decoding standard.

## Claims

### Claim 1

A video coding method performed by a computer device, the method comprising:
acquiring a target video frame and coding information of the target video frame, the target video frame comprising M first coding units (CUs) according to a first coding/decoding standard, and the coding information comprising locations of the M first CUs in the target video frame and prediction modes of the M first CUs under the first coding/decoding standard, and M being a positive integer;
acquiring a to-be-coded second CU in the target video frame according to a second coding/decoding standard, and the second coding/decoding standard being different from the first coding/decoding standard;
determining, according to the locations of the M first CUs in the target video frame and a location of the second CU in the target video frame, a first CU that has an overlapping region with the second CU;
determining a prediction mode of the second CU according to a prediction mode of the first CU; and
encoding the second CU according to the prediction mode of the second CU, to obtain bitstream data corresponding to the target video frame under the second coding/decoding standard.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the second CU is comprised in a jth first CU, and j is a positive integer less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
setting the prediction mode of the second CU to the prediction mode of the jth first CU.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the second CU is comprised in k first CUs, the prediction modes of the k first CUs are different, and k is an integer greater than 1 and less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the prediction mode comprises an intra-frame prediction mode and an inter-frame prediction mode; and the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
determining the prediction mode of the second CU as the intra-frame prediction mode when a first quantity proportion of first CUs whose prediction modes are the intra-frame prediction modes in the k first CUs is greater than a quantity proportion threshold; and
determining the prediction mode of the second CU as the inter-frame prediction mode when a second quantity proportion of first CUs whose prediction modes are the inter-frame prediction modes in the k first CUs is greater than the quantity proportion threshold.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the prediction mode comprises an intra-frame prediction mode and an inter-frame prediction mode; and the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
determining the prediction mode of the second CU as the intra-frame prediction mode when a first area proportion of first CUs whose prediction modes are the intra-frame prediction modes in the k first CUs is greater than an area proportion threshold; and
determining the prediction mode of the second CU as the inter-frame prediction mode when a second area proportion of first CUs whose prediction modes are the inter-frame prediction modes in the k first CUs is greater than the area proportion threshold.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs when the at least one of the k first CUs is comprised in the second CU.

### Claim 7 (depends on 3)

The method according to claim 3, wherein the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
randomly screening one first CU from the k first CUs; and
setting the prediction mode of the second CU to the prediction mode of the screened first CU when an overlapping area of the screened first CU and the second CU is greater than an area threshold.

### Claim 8 (depends on 3)

The method according to claim 3, wherein the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
acquiring overlapping areas of the k first CUs and the second CU;
screening a first CU that meets an overlapping area screening rule from the k first CUs; and
determining the prediction mode of the second CU according to the prediction mode of the first CU that meets the overlapping area screening rule; and
the first CU that meets the overlapping area screening rule comprises any one of the following: a first CU whose overlapping area is greater than an area threshold, a first CU whose overlapping proportion is greater than a proportion threshold, and a first CU whose overlapping area is greater than the area threshold and whose overlapping proportion is greater than the proportion threshold.

### Claim 9 (depends on 3)

The method according to claim 3, wherein the determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs comprises:
acquiring location information of a first target point in each of the k first CUs and location information of a second target point in the second CU;
calculating a distance between the first target point in each first CU and the second target point in the second CU according to the location information of the first target point in each first CU and the location information of the second target point in the second CU;
screening a first CU that meets a distance screening rule from the k first CUs, the distance between the first target point in the first CU that meets the distance screening rule and the second target point being less than a distance threshold; and
determining the prediction mode of the second CU according to the prediction mode of the first CU that meets the distance screening rule.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the second CU is comprised in at least two first CUs, and the prediction modes of the at least two first CUs are identical, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
setting the prediction mode of the second CU to the prediction modes of the at least two first CUs.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the acquiring a target video frame and coding information of the target video frame comprises:
acquiring bitstream data corresponding to the target video frame under the first coding/decoding standard; and
decoding the bitstream data corresponding to the target video frame under the first coding/decoding standard, to obtain the target video frame and the coding information of the target video frame.

### Claim 12

A computer device, comprising: a memory and a processor,
the memory having a computer program stored therein; and
the processor being configured to load the computer program to implement a video coding method including:
acquiring a target video frame and coding information of the target video frame, the target video frame comprising M first coding units (CUs) according to a first coding/decoding standard, and the coding information comprising locations of the M first CUs in the target video frame and prediction modes of the M first CUs under the first coding/decoding standard, and M being a positive integer;
acquiring a to-be-coded second CU in the target video frame according to a second coding/decoding standard, and the second coding/decoding standard being different from the first coding/decoding standard;
determining, according to the locations of the M first CUs in the target video frame and a location of the second CU in the target video frame, a first CU that has an overlapping region with the second CU;
determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU; and
encoding the second CU according to the prediction mode of the second CU, to obtain bitstream data corresponding to the target video frame under the second coding/decoding standard.

### Claim 13 (depends on 12)

The computer device according to claim 12, wherein the second CU is comprised in a jth first CU, and j is a positive integer less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
setting the prediction mode of the second CU to the prediction mode of the jth first CU.

### Claim 14 (depends on 12)

The computer device according to claim 12, wherein the second CU is comprised in k first CUs, the prediction modes of the k first CUs are different, and k is an integer greater than 1 and less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs.

### Claim 15 (depends on 12)

The computer device according to claim 12, wherein the second CU is comprised in at least two first CUs, and the prediction modes of the at least two first CUs are identical, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
setting the prediction mode of the second CU to the prediction modes of the at least two first CUs.

### Claim 16 (depends on 12)

The computer device according to claim 12, wherein the acquiring a target video frame and coding information of the target video frame comprises:
acquiring bitstream data corresponding to the target video frame under the first coding/decoding standard; and
decoding the bitstream data corresponding to the target video frame under the first coding/decoding standard, to obtain the target video frame and the coding information of the target video frame.

### Claim 17

A non-transitory computer-readable storage medium, having a computer program stored therein, the computer program, when executed by a processor of a computer device, causing the computer device to perform a video coding method including:
acquiring a target video frame and coding information of the target video frame, the target video frame comprising M first coding units (CUs) according to a first coding/decoding standard, and the coding information comprising locations of the M first CUs in the target video frame and prediction modes of the M first CUs under the first coding/decoding standard, and M being a positive integer;
acquiring a to-be-coded second CU in the target video frame according to a second coding/decoding standard, and the second coding/decoding standard being different from the first coding/decoding standard;
determining, according to the locations of the M first CUs in the target video frame and a location of the second CU in the target video frame, a first CU that has an overlapping region with the second CU;
determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU; and
coding the second CU according to the prediction mode of the second CU, to obtain bitstream data corresponding to the target video frame under the second coding/decoding standard.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the second CU is comprised in a jth first CU, and j is a positive integer less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
setting the prediction mode of the second CU to the prediction mode of the jth first CU.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the second CU is comprised in k first CUs, the prediction modes of the k first CUs are different, and k is an integer greater than 1 and less than or equal to M, the determining a prediction mode of the second CU according to the prediction mode of the first CU that has the overlapping region with the second CU comprises:
determining the prediction mode of the second CU according to the prediction mode of at least one of the k first CUs.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the acquiring a target video frame and coding information of the target video frame comprises:
acquiring bitstream data corresponding to the target video frame under the first coding/decoding standard; and
decoding the bitstream data corresponding to the target video frame under the first coding/decoding standard, to obtain the target video frame and the coding information of the target video frame.
