An under-screen fingerprint display optimization method, device and computer readable storage medium
By using vertical synchronization signals to control the callback loop tasks of the global highlight and interface drawing modules in under-display optical fingerprint technology, the screen flickering problem caused by the time asynchrony between DIM and HBM is solved, improving the stability of under-display fingerprint recognition and user experience.
Patent Information
- Application Number
- CN202210587251.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Existing under-display optical fingerprint technology causes the screen to flicker or dim in global high-brightness mode due to the asynchronous timing of DIM rendering and HBM display, which affects the user experience.
When the under-display optical fingerprint startup command is received, the global highlight module and the interface drawing module are controlled to execute preset callback loop tasks based on the vertical synchronization signal, ensuring that DIM drawing and HBM display are completed synchronously within the same synchronization cycle.
It achieves stability in under-display fingerprint display, avoids screen flickering or dimming issues, and improves user experience.
Smart Images

Figure CN114972708B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to an under-display fingerprint display optimization method, device, and computer-readable storage medium. Background Technology
[0002] In current technology, with the continuous development of smart terminal devices, users' demand for fingerprint recognition is also increasing. In particular, under-display optical fingerprint technology has become widely popular. This technology relies on the screen backlight to illuminate the fingerprint, and the under-display fingerprint camera compares and identifies the fingerprint based on the reflected fingerprint texture. Currently, backlight brightness is divided into local brightness and global brightness. Among them, global brightness has high and stable brightness, making the fingerprint recognition success rate higher than that of local brightness. However, global brightness also has certain problems. Specifically, since the screen brightness reaches its maximum when global brightness (HBM) is enabled, it can be very dazzling. Therefore, the usual practice is to display a semi-transparent black mask (DIM) on the application side, i.e., when the finger is pressed on the fingerprint area, while simultaneously enabling HBM. However, since the time required for DIM to be drawn and displayed on the screen is different from the time required for HBM to be displayed on the screen, and the drawing of DIM can cause the system to lag, it is difficult to ensure that HBM and DIM are effective on the screen at the same time. In this case, when pressing the under-display fingerprint recognition, it is easy to cause the screen to flash or dim, which is likely to bring a poor under-display optical fingerprint user experience. Summary of the Invention
[0003] To address the aforementioned technical deficiencies in the prior art, this invention proposes an under-display fingerprint display optimization method, which includes:
[0004] Upon receiving the activation command of the under-display optical fingerprint sensor, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task. At the same time, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task.
[0005] Within each synchronization cycle of the vertical synchronization signal, it is monitored whether the masking drawing task is completed. If the masking drawing task is not completed, the global highlighting module is controlled to be in the first callback loop task, and the drawing module is controlled to be in the second callback loop task.
[0006] When the masking drawing task is completed, the current synchronization period at the time of task completion is determined, and the first callback loop task executed by the global highlighting module is ended within the current synchronization period, as well as the second callback loop task executed by the drawing module is ended.
[0007] At the end of the current synchronization cycle, the global highlight module is controlled to perform global highlight display of the under-display optical fingerprint, and the interface drawing module is controlled to display the completed masking layer.
[0008] Optionally, upon receiving the activation command for the under-display optical fingerprint sensor, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task. Simultaneously, the interface rendering module corresponding to the global highlight module is controlled to execute a preset masking rendering task and a preset second callback loop task, including:
[0009] Upon receiving the activation command from the in-display optical fingerprint sensor, the current highlight mode of the optical fingerprint sensor is detected.
[0010] When the high-brightness mode is a local high-brightness mode, the local high-brightness module corresponding to the local high-brightness mode is controlled to perform local high-brightness display of the under-display optical fingerprint.
[0011] Optionally, upon receiving the activation command for the under-display optical fingerprint sensor, the step of controlling the global highlight module to execute a preset first callback loop task based on the current vertical synchronization signal, and simultaneously controlling the interface drawing module corresponding to the global highlight module to execute a preset masking drawing task and a preset second callback loop task, further includes:
[0012] When the highlight mode is global highlight mode, the first callback loop task associated with the vertical synchronization signal is created.
[0013] Control the global highlight module corresponding to the global highlight mode to execute the first callback loop task.
[0014] Optionally, upon receiving the activation command for the under-display optical fingerprint sensor, the step of controlling the global highlight module to execute a preset first callback loop task based on the current vertical synchronization signal, and simultaneously controlling the interface drawing module corresponding to the global highlight module to execute a preset masking drawing task and a preset second callback loop task, further includes:
[0015] Determine the masking drawing mode corresponding to the global highlighting mode, and call the interface drawing module corresponding to the masking drawing mode.
[0016] A second callback loop task corresponding to the first callback loop task is created based on the vertical synchronization signal, and the interface drawing module is controlled to execute the second callback loop task.
[0017] Optionally, upon receiving the activation command for the under-display optical fingerprint sensor, the step of controlling the global highlight module to execute a preset first callback loop task based on the current vertical synchronization signal, and simultaneously controlling the interface drawing module corresponding to the global highlight module to execute a preset masking drawing task and a preset second callback loop task, further includes:
[0018] The interface drawing module is invoked to generate the masking drawing task corresponding to the masking drawing mode.
[0019] The masking drawing task and the second callback loop task are associated so that the masking drawing task and the second callback loop task are executed synchronously within the same synchronization period.
[0020] Optionally, the step of monitoring whether the masking drawing task is completed within the synchronization cycle of each vertical synchronization signal, and controlling the global highlighting module to be in the first callback loop task when the masking drawing task is not completed, and controlling the drawing module to be in the second callback loop task, includes:
[0021] Pre-set associated registration modules related to the drawing module and the global highlighting module.
[0022] When the masking drawing task is not completed, the association registration module controls the global highlighting module to continue executing the first callback loop task, and controls the drawing module to continue executing the second callback loop task.
[0023] Optionally, the step of determining the current synchronization period when the masking drawing task is completed, and ending the first callback loop task executed by the global highlighting module and the second callback loop task executed by the drawing module within the current synchronization period, includes:
[0024] When the masking drawing task is completed, the current synchronization period at the time of task completion is determined through the association registration module.
[0025] Within the current synchronization cycle, the association registration module controls the global highlight module to end the execution of the first callback loop task, and controls the drawing module to end the execution of the second callback loop task.
[0026] Optionally, at the end of the current synchronization cycle, controlling the global highlight module to perform global highlight display of the under-display optical fingerprint, and controlling the interface drawing module to display the completed masking layer, includes:
[0027] Upon receiving the termination command for the under-display optical fingerprint sensor, the current termination period is obtained through the associated registration module.
[0028] During the end period, the associated registration module controls the global highlight module to turn off the enabled global highlight display, and controls the interface drawing module to remove the displayed masking layer.
[0029] The present invention also proposes an under-display fingerprint display optimization device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint display optimization method as described in any of the preceding claims.
[0030] The present invention also proposes a computer-readable storage medium storing an under-display fingerprint display optimization program, which, when executed by a processor, implements the steps of the under-display fingerprint display optimization method as described in any of the preceding claims.
[0031] The under-display fingerprint display optimization method, device, and computer-readable storage medium of the present invention, upon receiving the activation command of the under-display optical fingerprint, controls a global highlight module to execute a preset first callback loop task based on the current vertical synchronization signal, and simultaneously controls the interface drawing module corresponding to the global highlight module to execute a preset masking drawing task and a preset second callback loop task; within the synchronization cycle of each vertical synchronization signal, it monitors whether the masking drawing task is completed; if the masking drawing task is not completed, it controls the global highlight module to be in the first callback loop task and controls the drawing module to be in the second callback loop task; when the masking drawing task is completed, it determines the current synchronization cycle at the time of task completion, and within the current synchronization cycle, it ends the first callback loop task executed by the global highlight module and the second callback loop task executed by the drawing module; at the end of the current synchronization cycle, it controls the global highlight module to execute the global highlight display of the under-display optical fingerprint and controls the interface drawing module to display the completed masking layer. An under-display fingerprint display optimization solution has been implemented, which avoids the screen flickering or dimming problem of under-display fingerprint, and greatly improves the user experience of under-display fingerprint function. Attached Figure Description
[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0033] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0034] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;
[0035] Figure 3 This is a flowchart of the first embodiment of the under-display fingerprint display optimization method of the present invention;
[0036] Figure 4 This is a flowchart of the second embodiment of the under-display fingerprint display optimization method of the present invention;
[0037] Figure 5 This is a flowchart of the third embodiment of the under-display fingerprint display optimization method of the present invention;
[0038] Figure 6 This is a flowchart of the fourth embodiment of the under-display fingerprint display optimization method of the present invention;
[0039] Figure 7 This is a flowchart of the fifth embodiment of the under-display fingerprint display optimization method of the present invention;
[0040] Figure 8 This is a flowchart of the sixth embodiment of the under-display fingerprint display optimization method of the present invention;
[0041] Figure 9 This is a flowchart of the seventh embodiment of the under-display fingerprint display optimization method of the present invention;
[0042] Figure 10 This is a flowchart of the eighth embodiment of the under-display fingerprint display optimization method of the present invention;
[0043] Figure 11 This is a schematic diagram of the first registration callback of the first embodiment of the under-display fingerprint display optimization method of the present invention;
[0044] Figure 12 This is a schematic diagram of the second registration callback in the first embodiment of the under-display fingerprint display optimization method of the present invention. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0046] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0047] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0048] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0049] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0050] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:
[0051] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0052] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0053] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0054] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0055] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0056] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0057] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0058] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0059] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0060] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0061] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0062] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0063] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0064] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0065] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0066] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0067] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0068] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0069] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0070] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0071] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0072] Example 1
[0073] Figure 3 This is a flowchart of the first embodiment of the under-display fingerprint display optimization method of the present invention. An under-display fingerprint display optimization method includes:
[0074] S1. Upon receiving the start command of the under-display optical fingerprint sensor, based on the current vertical synchronization signal, control the global highlight module to execute the preset first callback loop task, and simultaneously control the interface drawing module corresponding to the global highlight module to execute the preset masking drawing task and the preset second callback loop task.
[0075] S2. During the synchronization cycle of each vertical synchronization signal, monitor whether the masking drawing task is completed. If the masking drawing task is not completed, control the global highlighting module to be in the first callback loop task, and control the drawing module to be in the second callback loop task.
[0076] S3. When the masking drawing task is completed, determine the current synchronization period when the task is completed, and end the first callback loop task executed by the global highlighting module and the second callback loop task executed by the drawing module within the current synchronization period.
[0077] S4. At the end of the current synchronization cycle, control the global highlight module to perform global highlight display of the under-display optical fingerprint, and control the interface drawing module to display the completed masking layer.
[0078] In this embodiment, the technical approach taken is to consider that the rendering and display of DIM (Display Indicator) is executed during system callbacks based on synchronization signals within Android applications. Therefore, this embodiment utilizes the synchronization mechanism of Android phones to simultaneously trigger HBM (Hyperblind Beam). This allows DIM display and HBM to take effect simultaneously, meaning that the changes in screen brightness and masking are controlled synchronously, thus avoiding a poor user experience with excessively bright or dim lighting.
[0079] Specifically, in this embodiment, considering that the Android system can send a vsync synchronization signal every 16ms to trigger the drawing and display of the UI interface, the vsync synchronization mechanism, introduced in Android 4.1, is used to synchronize drawing and display. This allows the application's UI interface to work according to the hardware-generated vsync synchronization rhythm. By sending a vsync synchronization signal to the upper-layer application, the upper-layer application only performs the drawing action upon receiving the vsync synchronization signal, thus drawing the application's UI content according to the screen refresh rate. Based on the same principle, currently, the drawing of the DIM gray background layer only occurs when the application layer receives the vsync synchronization signal. The timing of receiving this vsync synchronization signal depends on the current working state of the fingerprint UI thread. If the current fingerprint UI thread is busy, for example, with many other tasks being executed, the drawing of the DIM is delayed, resulting in a slow display of the DIM mask, which may cause it to miss the synchronization opportunity with HBM. In this embodiment, based on the principle of the vsync synchronization signal, a new runnable state is created as a callback loop task. The implementation of this runnable is HBM. Then, a postCallback callback is also registered for the choreographer registration class of the fingerprint UI. For details, please refer to... Figure 11 The diagram illustrating the first registration callback shows that when the fingerprint UI thread receives the vsync synchronization signal, it sequentially calls the previously registered runnables and also calls back the execution of those runnables. This allows the global highlighting module to wait for the UI rendering module.
[0080] Furthermore, in this embodiment, for calls to the underlying HBM, please refer to... Figure 12 The diagram illustrates the second registration callback. It can be seen that after the fingerprint UI thread receives the vsync synchronization signal, it executes the HBM callback first, and then continues to execute some runnables for drawing. At this time, this embodiment will draw and display the DIM background. Therefore, by utilizing Android's vsync synchronization mechanism, the HBM call and DIM drawing display can be precisely synchronized within a single display cycle (16ms), ensuring that both are executed sequentially. As a result, the combination of these two mechanisms perfectly controls the screen brightness, preventing any sudden changes in brightness and allowing for a natural completion of the process when the user uses the in-display fingerprint sensor for recognition.
[0081] The beneficial effect of this embodiment is that, upon receiving the activation command for the under-display optical fingerprint sensor, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task, while the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task. Within each synchronization cycle of the vertical synchronization signal, the completion status of the masking drawing task is monitored. If the masking drawing task is not completed, the global highlight module is controlled to be in the first callback loop task, and the drawing module is controlled to be in the second callback loop task. When the masking drawing task is completed, the current synchronization cycle at the time of task completion is determined, and within the current synchronization cycle, the first callback loop task executed by the global highlight module and the second callback loop task executed by the drawing module are terminated. At the end of the current synchronization cycle, the global highlight module is controlled to perform global highlight display of the under-display optical fingerprint sensor, and the interface drawing module is controlled to display the completed masking layer. This implements an optimized under-display fingerprint display scheme, avoiding the screen flickering or dimming problem of under-display fingerprint sensors, and greatly improving the user experience of the under-display fingerprint function.
[0082] Example 2
[0083] Figure 4 This is a flowchart of the second embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, when the start command of the under-display optical fingerprint is received, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task, and simultaneously, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task, including:
[0084] S11. Upon receiving the activation command for the in-display optical fingerprint sensor, detect the current highlight mode of the optical fingerprint sensor.
[0085] S12. When the high-brightness mode is a local high-brightness mode, control the local high-brightness module corresponding to the local high-brightness mode to perform local high-brightness display of the under-display optical fingerprint.
[0086] Optionally, in this embodiment, when the highlight mode is a partial highlight mode, the current interface drawing task queue is detected. When it is estimated that the execution time of the task in the task queue is shorter than a preset value, the partial highlight module corresponding to the partial highlight mode is controlled to perform partial highlight display of the under-display optical fingerprint.
[0087] The beneficial effect of this embodiment is that, upon receiving the activation command for the under-display optical fingerprint sensor, it detects the current highlight mode of the optical fingerprint; when the highlight mode is a partial highlight mode, it controls the partial highlight module corresponding to the partial highlight mode to perform partial highlight display of the under-display optical fingerprint sensor. This achieves an optimized under-display fingerprint display scheme, avoiding the screen flickering or dimming problem of under-display fingerprint sensors, and greatly improving the user experience of the under-display fingerprint function.
[0088] Example 3
[0089] Figure 5 This is a flowchart of the third embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, when the start command of the under-display optical fingerprint is received, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task, and simultaneously, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task, further comprising:
[0090] S13. When the highlight mode is global highlight mode, create the first callback loop task associated with the vertical synchronization signal.
[0091] S14. Control the global highlighting module corresponding to the global highlighting mode to execute the first callback loop task.
[0092] Optionally, in this embodiment, when the highlight mode is the global highlight mode, the current interface drawing task queue is detected. When it is estimated that the execution time of the task in the task queue is shorter than a preset value, the global highlight module corresponding to the global highlight mode is controlled to perform global highlight display of the under-display optical fingerprint, and to start masked drawing and masked display.
[0093] The beneficial effect of this embodiment is that, when the highlight mode is a global highlight mode, a first callback loop task associated with the vertical synchronization signal is created; the global highlight module corresponding to the global highlight mode is controlled to execute the first callback loop task. This achieves an under-display fingerprint display optimization scheme, avoiding the screen flickering or dimming problem of under-display fingerprints, and greatly improving the user experience of the under-display fingerprint function.
[0094] Example 4
[0095] Figure 6This is a flowchart of the fourth embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, when the start command of the under-display optical fingerprint is received, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task, and at the same time, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task, which further includes:
[0096] S15. Determine the masking drawing mode corresponding to the global highlighting mode, and call the interface drawing module corresponding to the masking drawing mode.
[0097] S16. Create a second callback loop task corresponding to the first callback loop task according to the vertical synchronization signal, and control the interface drawing module to execute the second callback loop task.
[0098] Optionally, in this embodiment, the mask to be drawn is divided into the superposition of at least two layer regions, thereby creating a semi-transparent black-gray mask by superimposing the first layer and the second layer. Specifically, when creating a second callback loop task corresponding to the first callback loop task based on the vertical synchronization signal, the interface drawing module is controlled to sequentially execute the drawing of the first layer and the second layer in the second callback loop task. The first layer is the fingerprint region, and the second layer is the surrounding area of the fingerprint region.
[0099] The beneficial effect of this embodiment is that by determining the masking drawing mode corresponding to the global highlight mode and calling the interface drawing module corresponding to the masking drawing mode; creating a second callback loop task corresponding to the first callback loop task according to the vertical synchronization signal, and controlling the interface drawing module to execute the second callback loop task, an under-display fingerprint display optimization scheme is implemented, avoiding the screen flickering or dimming problem of under-display fingerprint, and greatly improving the user experience of under-display fingerprint function.
[0100] Example 5
[0101] Figure 7 This is a flowchart of the fifth embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, when the start command of the under-display optical fingerprint is received, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task, and at the same time, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task, which further includes:
[0102] S17. Call the interface drawing module to generate the masking drawing task corresponding to the masking drawing mode.
[0103] S18. Associate the masking drawing task and the second callback loop task so that the masking drawing task and the second callback loop task are executed synchronously within the same synchronization period.
[0104] Optionally, in this embodiment, the drawing of the first layer is performed first, and then the drawing of the second layer is performed.
[0105] The beneficial effect of this embodiment is that by calling the interface drawing module to generate the masking drawing task corresponding to the masking drawing mode, and associating the masking drawing task with the second callback loop task, the masking drawing task and the second callback loop task are executed synchronously within the same synchronization period. This implements an under-display fingerprint display optimization scheme, avoiding the screen flickering or dimming problem of under-display fingerprints, and greatly improving the user experience of the under-display fingerprint function.
[0106] Example 6
[0107] Figure 8 This is a flowchart of the sixth embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, the step of monitoring whether the masking drawing task is completed within the synchronization cycle of each vertical synchronization signal, and controlling the global highlight module to be in the first callback loop task when the masking drawing task is not completed, and controlling the drawing module to be in the second callback loop task, includes:
[0108] S21. Preset an association registration module related to the drawing module and the global highlighting module.
[0109] S22. When the masking drawing task is not completed, the global highlighting module is controlled by the association registration module to continue executing the first callback loop task, and the drawing module is controlled to continue executing the second callback loop task.
[0110] Optionally, in this embodiment, when the first layer drawing is not completed and the second layer drawing is not completed, the association registration module controls the global highlighting module to continue executing the first callback loop task, and controls the drawing module to continue executing the second callback loop task.
[0111] The beneficial effect of this embodiment is that, by pre-setting an association registration module related to the drawing module and the global highlighting module, when the masking drawing task is not completed, the association registration module controls the global highlighting module to continue executing the first callback loop task, and controls the drawing module to continue executing the second callback loop task. This achieves an optimized under-display fingerprint display solution, avoiding the screen flickering or dimming issues of under-display fingerprint technology, and greatly improving the user experience of the under-display fingerprint function.
[0112] Example 7
[0113] Figure 9 This is a flowchart of the seventh embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, the step of determining the current synchronization period when the masking drawing task is completed, and ending the first callback loop task executed by the global highlight module within the current synchronization period, and ending the second callback loop task executed by the drawing module, includes:
[0114] S31. When the masking drawing task is completed, the current synchronization period at the time of task completion is determined through the association registration module.
[0115] S32. During the current synchronization cycle, the association registration module controls the global highlight module to end the execution of the first callback loop task, and controls the drawing module to end the execution of the second callback loop task.
[0116] Optionally, in this embodiment, when the first layer has been drawn and the second layer has not been drawn, the current synchronization period when the task is completed is determined by the association registration module; within the current synchronization period, the association registration module controls the global highlight module to end the execution of the first callback loop task, and controls the drawing module to end the execution of the second callback loop task.
[0117] The beneficial effect of this embodiment is that, upon completion of the masking drawing task, the current synchronization period at the time of task completion is determined through the association registration module; within the current synchronization period, the association registration module controls the global highlight module to end the execution of the first callback loop task, and controls the drawing module to end the execution of the second callback loop task. This implements an optimized under-display fingerprint display scheme, avoiding the screen flickering or dimming issues of under-display fingerprint technology, and greatly improving the user experience of the under-display fingerprint function.
[0118] Example 8
[0119] Figure 10 This is a flowchart of the eighth embodiment of the under-display fingerprint display optimization method of the present invention. Based on the above embodiment, the step of controlling the global highlight module to perform global highlight display of the under-display optical fingerprint at the end of the current synchronization cycle, and controlling the interface drawing module to display the completed masking layer, includes:
[0120] S41. Upon receiving the end command of the under-display optical fingerprint sensor, obtain the current end period through the associated registration module.
[0121] S42. During the end period, the associated registration module controls the global highlight module to turn off the enabled global highlight display, and controls the interface drawing module to remove the displayed masking layer.
[0122] Optionally, in this embodiment, during the end period, the associated registration module controls the global highlight module to turn off the enabled global highlight display, and controls the interface drawing module to cancel the displayed second layer.
[0123] The beneficial effect of this embodiment is that, upon receiving the termination command for the under-display optical fingerprint sensor, the current termination period is obtained through the associated registration module; within the termination period, the associated registration module controls the global highlight module to turn off the already enabled global highlight display, and controls the interface drawing module to remove the displayed masking layer. This achieves an optimized under-display fingerprint display scheme, avoiding the screen flickering or dimming issues of under-display fingerprint sensors, and greatly improving the user experience of the under-display fingerprint function.
[0124] Example 9
[0125] Based on the above embodiments, the present invention also proposes an under-display fingerprint display optimization device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the under-display fingerprint display optimization method as described in any of the above embodiments.
[0126] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0127] Example 10
[0128] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing an under-display fingerprint display optimization program, which, when executed by a processor, implements the steps of the under-display fingerprint display optimization method as described in any of the above embodiments.
[0129] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0130] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0131] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0133] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for optimizing under-display fingerprint display, characterized in that, The method includes: Upon receiving the activation command of the under-display optical fingerprint sensor, based on the current vertical synchronization signal, the global highlight module is controlled to execute a preset first callback loop task. At the same time, the interface drawing module corresponding to the global highlight module is controlled to execute a preset masking drawing task and a preset second callback loop task. Within the synchronization cycle of each vertical synchronization signal, monitor whether the masking drawing task is completed. If the masking drawing task is not completed, control the global highlighting module to be in the first callback loop task, and control the drawing module to be in the second callback loop task. When the masking drawing task is completed, the current synchronization period at the time of task completion is determined, and the first callback loop task executed by the global highlighting module is ended within the current synchronization period, as well as the second callback loop task executed by the drawing module is ended. At the end of the current synchronization cycle, the global highlight module is controlled to perform global highlight display of the under-display optical fingerprint, and the interface drawing module is controlled to display the completed masking layer. Upon receiving the activation command for the under-display optical fingerprint sensor, based on the current vertical synchronization signal, the system controls the global highlight module to execute a preset first callback loop task. Simultaneously, it controls the interface rendering module corresponding to the global highlight module to execute a preset masking rendering task and a preset second callback loop task, including: Upon receiving the activation command from the in-display optical fingerprint sensor, detect the current highlight mode of the optical fingerprint sensor; When the high-brightness mode is a partial high-brightness mode, the partial high-brightness module corresponding to the partial high-brightness mode is controlled to perform partial high-brightness display of the under-display optical fingerprint. When the highlight mode is global highlight mode, create the first callback loop task associated with the vertical synchronization signal; Control the global highlight module corresponding to the global highlight mode to execute the first callback loop task; Determine the masking drawing mode corresponding to the global highlighting mode, and call the interface drawing module corresponding to the masking drawing mode; A second callback loop task corresponding to the first callback loop task is created based on the vertical synchronization signal, and the interface drawing module is controlled to execute the second callback loop task. The interface drawing module is invoked to generate the masking drawing task corresponding to the masking drawing mode; The masking drawing task and the second callback loop task are associated so that the masking drawing task and the second callback loop task are executed synchronously within the same synchronization period.
2. The under-display fingerprint display optimization method according to claim 1, characterized in that, Within the synchronization cycle of each vertical synchronization signal, monitoring whether the masking drawing task is completed, and if the masking drawing task is not completed, controlling the global highlighting module to be in the first callback loop task, and controlling the drawing module to be in the second callback loop task, includes: Pre-defined association registration modules related to the drawing module and the global highlighting module; When the masking drawing task is not completed, the association registration module controls the global highlighting module to continue executing the first callback loop task, and controls the drawing module to continue executing the second callback loop task.
3. The under-display fingerprint display optimization method according to claim 2, characterized in that, The step of determining the current synchronization period when the masking drawing task is completed, and ending the first callback loop task executed by the global highlighting module within the current synchronization period, and ending the second callback loop task executed by the drawing module, includes: When the masking drawing task is completed, the current synchronization period at the time of task completion is determined by the association registration module; Within the current synchronization cycle, the association registration module controls the global highlight module to end the execution of the first callback loop task, and controls the drawing module to end the execution of the second callback loop task.
4. The under-display fingerprint display optimization method according to claim 3, characterized in that, At the end of the current synchronization cycle, controlling the global highlight module to perform global highlight display of the under-display optical fingerprint, and controlling the interface drawing module to display the completed masking layer, includes: Upon receiving the termination command for the under-display optical fingerprint sensor, the current termination period is obtained through the associated registration module; During the end period, the associated registration module controls the global highlight module to turn off the enabled global highlight display, and controls the interface drawing module to remove the displayed masking layer.
5. An under-display fingerprint display optimization device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the under-display fingerprint display optimization method as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an under-display fingerprint display optimization program, which, when executed by a processor, implements the steps of the under-display fingerprint display optimization method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Light spot display method, electronic equipment and computer readable storage medium
CN113778273A
In-screen fingerprint display method and electronic device
WO2021169337A1