IP Library › Granted Patent US 12,034,944
Granted Patent B2
US 12,034,944 · App. 17/469,716 · Granted Jul 9, 2024

Video encoding method and apparatus, video decoding method and apparatus, electronic device and readable storage medium

Inventors: Xinwei Gao (Shenzhen, CN); Weiran Li (Shenzhen, CN); Chenchen Gu (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H04N19/30H04N19/176H04N19/46H04N19/70
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,034,944
App. No.
17/469,716
Granted
Jul 9, 2024
Kind
B2
Abstract

This application discloses a video encoding method and apparatus, a video decoding method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: obtaining a current video frame, the current video frame being divided into a plurality of tile-divided Tile regions; determining a resolution corresponding to each Tile region in the plurality of Tile regions to obtain a plurality of resolutions, the plurality of resolutions including at least two different resolutions; and decoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain a decoded video frame.

Claims (57)

1. A video decoding method performed by an electronic device, the method comprising:

obtaining a current video frame, the current video frame being divided into a plurality of tile-divided Tile regions;

determining a resolution corresponding to each Tile region in the plurality of Tile regions to obtain a plurality of resolutions, comprising at least two different resolutions, wherein:

a resolution corresponding to each respective Tile region is determined according to a transmission bandwidth of a video stream including the current video frame from a source to the electronic device,

a first resolution is chosen for the respective Tile region when the transmission bandwidth is less than a threshold corresponding to the respective Tile region,

a second resolution is chosen for the respective Tile region when the transmission bandwidth is greater than the threshold, and

the second resolution is higher than the first resolution; and

decoding each Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain a decoded video frame.

2. The method according to claim 1 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

obtaining flag bit data corresponding to each Tile region in the plurality of Tile regions from a syntactic element of the current video frame, the flag bit data being used for identifying the resolution corresponding to the Tile region.

3. The method according to claim 1 , wherein the thresholds corresponding to the plurality of Tile regions are different from each other.

4. A video encoding method performed by an electronic device, the method comprising:

performing division processing on a current video frame to obtain a plurality of tile- divided Tile regions comprised in the current video frame;

determining a resolution corresponding to each Tile region in the plurality of Tile regions to obtain a plurality of resolutions, comprising at least two different resolutions , wherein:

a resolution corresponding to each respective Tile region is determined according to a transmission bandwidth of a video stream including the current video frame from a source to the electronic device,

a first resolution is chosen for the respective Tile region when the transmission bandwidth is less than a threshold corresponding to the respective Tile region,

a second resolution is chosen for the respective Tile region when the transmission bandwidth is greater than the threshold, and

the second resolution is higher than the first resolution; and

encoding each Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain encoded data of the current video frame.

5. The method according to claim 4 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

performing the following processing on the Tile region in the plurality of Tile regions:

determining, for each resolution in a resolution set, a rate distortion cost of encoding the Tile region; and

determining a resolution corresponding to a smallest rate distortion cost as the resolution corresponding to the Tile region.

6. The method according to claim 4 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

obtaining an inputted resolution determining instruction, the resolution determining instruction being used for indicating the resolution corresponding to the Tile region; and

determining the resolution indicated by the resolution determining instruction as the resolution corresponding to the Tile region.

7. The method according to claim 4 , wherein the encoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions comprises:

encoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain encoded data corresponding to the Tile region;

determining flag bit data corresponding to the encoded data corresponding to the Tile region, the flag bit data being used for identifying the resolution corresponding to the Tile region; and

adding the flag bit data as a syntactic element to the encoded data corresponding to the Tile region.

8. The method according to claim 4 , wherein the thresholds corresponding to the plurality of Tile regions are different from each other.

9. An electronic device, comprising a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing electronic device to perform a plurality of operations including:

obtaining a current video frame, the current video frame being divided into a plurality of tile-divided Tile regions;

determining a resolution corresponding to each Tile region in the plurality of Tile regions to obtain a plurality of resolutions, comprising at least two different resolutions, wherein:

a resolution corresponding to each respective Tile region is determined according to a transmission bandwidth of a video stream including the current video frame from a source to the electronic device,

a first resolution is chosen for the respective Tile region when the transmission bandwidth is less than a threshold corresponding to the respective Tile region,

a second resolution is chosen for the respective Tile region when the transmission bandwidth is greater than the threshold, and

the second resolution is higher than the first resolution; and

decoding each Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain a decoded video frame.

10. The electronic device according to claim 9 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

obtaining flag bit data corresponding to each Tile region in the plurality of Tile regions from a syntactic element of the current video frame, the flag bit data being used for identifying the resolution corresponding to the Tile region.

11. The electronic device according to claim 9 , wherein the plurality of operations further comprise:

performing division processing on a second current video frame to obtain a plurality of tile-divided Tile regions comprised in the second current video frame;

determining a resolution corresponding to each Tile region in the plurality of Tile regions to obtain a plurality of resolutions, the plurality of resolutions comprising at least two different resolutions; and

encoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain encoded data of the second current video frame.

12. The electronic device according to claim 11 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

performing the following processing on the Tile region in the plurality of Tile regions:

determining, for each resolution in a resolution set, a rate distortion cost of encoding the Tile region; and

determining a resolution corresponding to a smallest rate distortion cost as the resolution corresponding to the Tile region.

13. The electronic device according to claim 11 , wherein the determining a resolution corresponding to each Tile region in the plurality of Tile regions comprises:

obtaining an inputted resolution determining instruction, the resolution determining instruction being used for indicating the resolution corresponding to the Tile region; and

determining the resolution indicated by the resolution determining instruction as the resolution corresponding to the Tile region.

14. The electronic device according to claim 11 , wherein the encoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions comprises:

encoding the Tile region based on the resolution corresponding to the Tile region among the plurality of resolutions, to obtain encoded data corresponding to the Tile region;

determining flag bit data corresponding to the encoded data corresponding to the Tile region, the flag bit data being used for identifying the resolution corresponding to the Tile region; and

adding the flag bit data as a syntactic element to the encoded data corresponding to the Tile region.

15. The electronic device according to claim 9 , wherein the thresholds corresponding to the plurality of Tile regions are different from each other.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 28, 2022
From: GAO, XINWEI; LI, WEIRAN; GU, CHENCHEN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 060045/0257 →
Priority Claims (1)
CN 201910927955.4 · Sep 27, 2019 · national
Continuity (2)
Continuation PCTCN2020116600 · Sep 21, 2020
Related Publication 20210409736A1 · Dec 30, 2021