US 11,887,557 B2
Method for image processing based on vertical synchronization signals and electronic device
Liang Wang, Shanghai (CN); Yu Li, Shanghai (CN); Jian Chen, Shanghai (CN); Xingchun Ji, Shanghai (CN); and Yifang Guo, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 17/624,292
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
PCT Filed Jul. 3, 2020, PCT No. PCT/CN2020/100014
§ 371(c)(1), (2) Date Dec. 31, 2021,
PCT Pub. No. WO2021/000921, PCT Pub. Date Jan. 7, 2021.
Claims priority of application No. 201910596178.X (CN), filed on Jul. 3, 2019; and application No. 201910617101.6 (CN), filed on Jul. 9, 2019.
Prior Publication US 2022/0358894 A1, Nov. 10, 2022
Int. Cl. G09G 5/12 (2006.01); G09G 5/00 (2006.01)
CPC G09G 5/001 (2013.01) [G09G 2320/0252 (2013.01); G09G 2330/021 (2013.01); G09G 2340/10 (2013.01); G09G 2354/00 (2013.01)] 16 Claims
OG exemplary drawing
 
1. A method for image processing based on vertical synchronization signals, wherein the method is applied to an electronic device comprising a display screen, and the method comprises:
drawing, by the electronic device, one or more first layers in response to a first vertical synchronization signal, and rendering the one or more first layers, and after rendering the one or more first layers, performing layer composing on the rendered one or more first layers to obtain a first image frame; and
refreshing and displaying, by the electronic device, the first image frame in response to a second vertical synchronization signal;
wherein the drawing, by the electronic device, one or more first layers in response to a first vertical synchronization signal, and rendering the one or more first layers, and after rendering the one or more first layers, performing layer composing on the rendered one or more first layers to obtain a first image frame comprises:
determining that a first frame processing duration in a first measurement period is shorter than or equal to a preset single-frame duration;
in response to the determining that the first frame processing duration in the first measurement period is shorter than or equal to the preset single-frame duration, drawing, by the electronic device, the one or more first layers in response to the first vertical synchronization signal, and rendering the one or more first layers, and after rendering the one or more first layers, performing layer composing on the rendered one or more first layers to obtain the first image frame, wherein
the first frame processing duration is a sum of a first frame rendering duration and a first layer composing frame duration for composing the first layer, the first frame rendering duration is a duration required for drawing the layer and rendering the drawn layer, and the first layer composing frame duration is a duration required for performing layer composing on the rendered layer.