IP Library Granted Patent US 12,604,017
Granted Patent B2
US 12,604,017 · App. 18/589,756 · Granted Apr 14, 2026

Encoding method, encapsulation method, display method, apparatus, and electronic device

Inventors: Peiyun Di (Shenzhen, CN); Xin Liu (Shenzhen, CN); Yi Song (Shenzhen, CN); Xiaoyu Yang (Shenzhen, CN); Xuejian Gong (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04N19/30H04N19/105H04N19/164H04N19/172H04N19/192
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,604,017
App. No.
18/589,756
Granted
Apr 14, 2026
Kind
B2
Abstract

The technology of this application relates to an encoding method, an encapsulation method, a display method, an apparatus, and an electronic device. The encoding method includes obtaining a to-be-encoded image, determining N encoding scales (N is an integer greater than 1) for the image, determining an encoding parameter corresponding to each of the N encoding scales, to obtain N groups of encoding parameters, and encoding the image N times by using a preset single-scale encoder based on the N groups of encoding parameters to obtain N groups of bitstream data. In this way, the image is encoded to obtain the bitstream data with a small data amount (namely, the bitstream data with a low encoding scale), so that when a network fluctuates, the bitstream data corresponding to the image can arrive at a decoder side with a higher probability, thereby ensuring smoothness of video playing.

Claims (69)

1 . An encoding method, comprising:

obtaining an image for encoding;

determining N encoding scales for the image, wherein N is an integer greater than 1;

determining N groups of encoding parameters corresponding to the N encoding scales, wherein each encoding scale, from the N encoding scales, corresponds to one group of encoding parameters from the N groups of encoding parameters; and

obtaining N groups of bitstream data by encoding the image N times by repeatedly using a single-scale encoder based on the N groups of encoding parameters, wherein the single-scale encoder is an encoder that can perform encoding on an image at only one encoding scale and output bitstream data at only one encoding scale, and

wherein the method further comprises:

determining whether to perform multi-scale encoding on the image in association with at least one of: an importance of the image to encoding and decoding of another image in video data to which the image belongs satisfies a first condition, an impact degree of bitstream data corresponding to the image on a network satisfies a second condition, or a predicted image quality of the image satisfies a third condition.

2 . The method according to claim 1 , wherein the first condition comprises at least one of:

the image is an I frame or an IDR frame;

the image is a scene switching frame;

the image is a reference frame; or

the image is a key frame.

3 . The method according to claim 1 , wherein the second condition comprises at least one of:

a data amount of bitstream data corresponding to the image is greater than a data amount threshold; and

the data amount of the bitstream data corresponding to the image is greater than a network transmission capability.

4 . The method according to claim 1 , wherein

the predicted image quality of the image includes a first predicted image quality and a second predicted image quality, the first predicted image quality is of the image that is encoded based on a source resolution of the image, and the second predicted image quality is of the image that is encoded based on a resolution lower than the source resolution; and

the third condition comprises:

the first predicted image quality is lower than or equal to the second predicted image quality.

5 . The method according to claim 1 , wherein an encoding parameter, from the N groups of encoding parameters, includes at least one of: a resolution, a quantization parameter, reference frame information, or a target bit rate.

6 . The method according to claim 1 , wherein the N groups of encoding parameters are determined based on the N encoding scales and a parameter value range of the encoder.

7 . The method according to claim 1 , wherein

an encoding parameter, from the N groups of encoding parameters, includes reference frame information,

when first feedback information is received, the reference frame information is determined based on the first feedback information,

the first feedback information indicates that an encoded frame corresponding to sent bitstream data is successfully received,

the encoded frame is acknowledged as a reference frame, and

the reference frame information indicates the reference frame.

8 . A data encapsulation method, comprising:

obtaining bitstream data by encoding an image using an encoder, wherein the encoder is a single-scale encoder that can perform encoding on an image at only one encoding scale and output bitstream data at only one encoding scale, and wherein the method further comprises determining whether to perform multi-scale encoding on the image in association with at least one of: an importance of the image to encoding and decoding of another image in video data to which the image belongs satisfies a first condition, an impact degree of bitstream data corresponding to the image on a network satisfies a second condition, or a predicted image quality of the image satisfies a third condition;

obtaining description information of the bitstream data;

obtaining encapsulated data by encapsulating the bitstream data and the description information of the bitstream data; and

storing or transmitting the encapsulated data.

9 . The method according to claim 8 , wherein

the description information includes scale identification information, and

the method further comprises:

when, based on the scale identification information, an encoding scale corresponding to the bitstream data is a lowest encoding scale, determining that a transmission policy of the bitstream data is a first transmission policy; or

when, based on the scale identification information, the encoding scale corresponding to the bitstream data is another encoding scale, determining that the transmission policy of the bitstream data is a second transmission policy, wherein

the first transmission policy is superior to the second transmission policy.

10 . A display method, comprising:

obtaining a plurality of reconstructed images by decoding bitstream data using a decoder, wherein the bitstream data is generated by encoding an image using a single-scale encoder that can perform encoding of an image at only one encoding scale and output bitstream data corresponding to only one encoding scale, and wherein the encoding of the image is performed in association with determining whether to perform multi-scale encoding on the image based on at least one of: an importance of the image to encoding and decoding of another image in video data to which the image belongs satisfies a first condition, an impact degree of bitstream data corresponding to the image on a network satisfies a second condition, or a predicted image quality of the image satisfies a third condition;

obtaining a plurality of groups of description information corresponding to the plurality of reconstructed images, wherein at least one group of description information, in the plurality of groups of description information, includes first frame identification information; and

in association with only one of the plurality of groups of description information includes the first frame identification information, selecting and displaying a reconstructed image corresponding to the first frame identification information, or

in association with at least two groups of description information, in the plurality of groups of description information, include the first frame identification information, selecting a reconstructed image from at least two reconstructed images corresponding to the first frame identification information, and displaying the selected reconstructed image.

11 . The method according to claim 10 , wherein the description information, from the plurality of groups of description information, further comprises scale identification information, and selecting the reconstructed image from the at least two reconstructed images corresponding to the first frame identification information comprises:

selecting, based on the scale identification information of the at least two reconstructed images corresponding to the first frame identification information, a reconstructed image with a highest encoding scale.

12 . The method according to claim 10 , wherein the description information, from the plurality of groups of description information, further comprises scale identification information, and selecting the reconstructed image from the at least two reconstructed images corresponding to the first frame identification information comprises:

selecting, based on the scale identification information of the at least two reconstructed images corresponding to the first frame identification information, a reconstructed image whose scale identification information is closest to scale identification information of a previously displayed reconstructed image.

13 . An electronic device, comprising:

a processor; and

a memory configured to store program instructions which, when executed by the processor, cause the electronic device to:

obtain an image for encoding;

determine N encoding scales for the image, wherein Nis an integer greater than 1;

determine N groups of encoding parameters corresponding to the N encoding scales, wherein each encoding scale, from the N encoding scales, corresponds to one group of encoding parameters from the N groups of encoding parameters; and

obtain N groups of bitstream data by encoding the image N times by repeatedly using a single-scale encoder based on the N groups of encoding parameters, wherein the single-scale encoder is an encoder that can perform encoding on an image at only one encoding scale and output bitstream data at only one encoding scale, and

wherein the program instructions further cause the electronic device to determine whether to perform multi-scale encoding on the image in association with at least one of: an importance of the image to encoding and decoding of another image in video data to which the image belongs satisfies a first condition, an impact degree of bitstream data corresponding to the image on a network satisfies a second condition, or a predicted image quality of the image satisfies a third condition.

14 . The electronic device according to claim 13 , wherein the N groups of encoding parameters are determined based on the N encoding scales and a parameter value range of the encoder.

15 . The electronic device according to claim 13 , wherein

an encoding parameter, from the N groups of encoding parameters, includes reference frame information,

when first feedback information is received, the reference frame information is determined based on the first feedback information,

the first feedback information indicates that an encoded frame corresponding to sent bitstream data is successfully received,

the encoded frame is acknowledged as a reference frame, and

the reference frame information indicates the reference frame.

16 . A chip, comprising:

one or more interface circuits; and

one or more processors, wherein the one or more interface circuits are configured to:

receive a signal from a memory of an electronic device, and

send the signal to the one or more processors, wherein the signal comprises computer instructions stored in the memory, and when the one or more processors execute the computer instructions, the electronic device is caused to perform the method according to claim 1 .

17 . A computer-readable storage medium comprising a computer program, and when the computer program is executed on a computer or a processor, the computer or the processor is caused to perform the method according to claim 1 .

18 . A computer program product comprising a software program, and when the software program is executed by a computer or a processor, the method according to claim 1 is performed.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 1, 2024
From: DI, PEIYUN; LIU, XIN; SONG, YI; YANG, XIAOYU; GONG, XUEJIAN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 066959/0484 →
Priority Claims (1)
CN 202111003288.4 · Aug 30, 2021 · national
Continuity (2)
Continuation PCTCN2022113966 · Aug 22, 2022
Related Publication 20240205432A1 · Jun 20, 2024
References Cited (20)
US 5623308A · Civanlar et al. · 1997 [cited by applicant]
US 6169821B1 · Fukunaga et al. · 2001 [cited by applicant]
US 20140365231A1 · Hoerich · 2014 [cited by examiner]
US 20150042878A1 · Jeon · 2015 [cited by examiner]
US 20160073116A1 · Matsunobu · 2016 [cited by examiner]
US 20170111649A1 · Wang · 2017 [cited by examiner]
US 20170220283A1 · Zhang · 2017 [cited by examiner]
US 20190238860A1 · Lim · 2019 [cited by examiner]
US 20190387237A1 · Phillips · 2019 [cited by examiner]
US 20220201288A1 · Shima · 2022 [cited by examiner]
CN 1926874A · 2007 [cited by applicant]
CN 102111644A · 2011 [cited by applicant]
CN 107959814A · 2018 [cited by applicant]
CN 108781291A · 2018 [cited by applicant]
CN 111541899A · 2020 [cited by applicant]
H. Schwarz, D. Marpe and T. Wiegand, “Overview of the Scalable Video Coding Extension of the H.264/AVC Standard,” in IEEE Transactions on Circuits and Systems for Video Technology, vol. 17, No. 9, pp. 1103-1120, Sep. 20… [cited by applicant]
International Search Report and Written Opinion issued in PCT/CN2022/113966, dated Nov. 23, 2022, 10 pages. [cited by applicant]
Osama A. Lotfallah et al, “Adaptive bitstream switching of scalable video”, Signal Processing Image Communication (2007), XP022328281, total 24 pages. [cited by applicant]
Minh Nguyen et al., “Scalable High Efficiency Video Coding based HTTP Adaptive Streaming over QUIC”, Conference on Applications, Technologies, Architectures, and Protocols for Computer Communication (SIGCOMM) (2020) , X… [cited by applicant]
Extended European Search Report issued in EP22863209.7, dated Oct. 22, 2024, 9 pages. [cited by applicant]