US 12,470,722 B2
Image encoding method, real-time communication method, device, storage medium, and program product
Jian Cao, Shenzhen (CN); Hongbin Cao, Shenzhen (CN); Xiaoxiang Yang, Shenzhen (CN); Sijia Chen, Shenzhen (CN); Yongcheng Huang, Shenzhen (CN); and Jia Zhang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Guangdong (CN)
Filed on Jun. 14, 2023, as Appl. No. 18/334,441.
Application 18/334,441 is a continuation of application No. PCT/CN2022/135614, filed on Nov. 30, 2022.
Claims priority of application No. 202210103019.3 (CN), filed on Jan. 27, 2022.
Prior Publication US 2023/0328259 A1, Oct. 12, 2023
Int. Cl. H04N 19/159 (2014.01); H04N 19/172 (2014.01); H04N 19/184 (2014.01)
CPC H04N 19/159 (2014.11) [H04N 19/172 (2014.11); H04N 19/184 (2014.11)] 18 Claims
OG exemplary drawing
 
1. An image encoding method, performed by a computer device, comprising:
obtaining a first image frame in a video stream;
encoding the first image frame into a first non-instantaneous decoding refresh (non-IDR) frame;
determining whether the first non-IDR frame indicates that a scene switch occurs; and
obtaining a preset image frame sequence to which the first image frame belongs;
determining whether there is an image frame that is encoded into an IDR frame based on the scene switch in the preset image frame sequence;
determining, according to the first non-IDR frame based on there not being the image frame that is encoded into the IDR frame, whether the scene switch occurs; and
encoding a next image frame of the first image frame into an instantaneous decoding refresh (IDR) frame based on a determination that the first non-IDR frame indicates that the scene switch occurs.