Patent ID: 11887557
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
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.