Determination Method, Device and Storage Medium for Display Frame Rate and Touch Sampling Rate
By quickly determining the display frame rate and touch sampling rate based on the display scene, the touch failure caused by display frame rate switching is solved, and the smoothness and user experience of the terminal are improved.
Patent Information
- Application Number
- CN202011173432.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2040-10-28
AI Technical Summary
In the prior art, the switching between display frame rate and touch sampling rate takes a long time, resulting in a brief failure of touch and affecting the user experience.
By determining the display frame rate and touch scene based on the current display scene, quickly determining the touch sampling rate using preset correspondence and touch scene whitelist, and adjusting the firmware touch scanning idle time to meet different scenario needs.
It realizes the rapid determination of touch sampling rate, avoids touch failure, improves terminal fluency and user experience, and saves power consumption.
Smart Images

Figure CN114428563B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of touch display, and in particular, to a method, apparatus, and storage medium for determining a display frame rate and a touch sampling rate. Background Art
[0002] With the rapid development of terminals, in order to avoid excessive stacking costs and bloated device volumes among various modules in the terminal, a Touch and Display Driver Integration (TDDI) chip is adopted to control the touch function and display function of the terminal. And with the rapid development of terminals, users have higher and higher requirements for the touch fluency of terminals, that is, high requirements for the display frame rate and touch sampling rate of terminals.
[0003] In the related art, the switching of the display frame rate and the touch sampling rate needs to simultaneously determine the current display scene and touch scene, and then determine the display frame rate based on the current display scene and determine the touch sampling rate based on the current touch scene. Usually, there is a one-to-one correspondence between the display frame rate and the touch sampling rate. When determining the display frame rate and touch sampling rate in the related art, since the time-consuming for switching the touch sampling rate is long, it is easy to cause a temporary touch failure during the switching of the display frame rate, thereby affecting the touch fluency of the terminal and the user experience. Summary of the Invention
[0004] To overcome the problems in the related art, the present disclosure provides a method, apparatus, and storage medium for determining a display frame rate and a touch sampling rate.
[0005] According to the first aspect of the embodiments of the present disclosure, a method for determining a display frame rate and a touch sampling rate is provided, which is applied to a terminal. The method for determining the display frame rate and the touch sampling rate includes: determining the current display scene. Based on the current display scene, determining the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene.
[0006] In an embodiment, the determining the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene includes: determining a first display frame rate corresponding to the current display scene based on a preset correspondence between the display scene and the display frame rate. Determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, where the touch scene whitelist includes touch scenes for adjusting the touch sampling rate based on the touch scan idle time of the adjustment firmware.
[0007] In another embodiment, determining the touch sampling rate corresponding to the current touch scenario based on the current display scenario package name and the preset touch scenario whitelist includes: in response to the preset touch scenario whitelist not including the current display scenario package name, determining a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scenario. In response to the preset touch scenario whitelist including the current display scenario package name, adjusting the firmware touch scan idle time to obtain a second touch sampling rate, and determining the second touch sampling rate as the touch sampling rate corresponding to the current touch scenario.
[0008] In yet another embodiment, before determining the touch sampling rate corresponding to the current touch scenario based on the current display scenario package name and the preset touch scenario whitelist, the method for determining the display frame rate and the touch sampling rate further includes: determining that the current display scenario belongs to the preset display scenario whitelist, and the display scenario whitelist includes a display scenario for determining the touch sampling rate corresponding to the current touch scenario based on the display scenario.
[0009] In yet another embodiment, determining the display frame rate corresponding to the current display scenario and the touch sampling rate corresponding to the current touch scenario based on the current display scenario includes: in response to the current display scenario not belonging to the preset display scenario whitelist, determining a first display frame rate corresponding to the current display scenario based on a preset correspondence between the display scenario and the display frame rate. Determining a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scenario. Wherein, the display scenario whitelist includes a display scenario for determining the touch sampling rate corresponding to the current touch scenario based on the display scenario.
[0010] According to a second aspect of the embodiments of the present disclosure, there is provided a device for determining a display frame rate and a touch sampling rate, which is applied to a terminal. The device for determining a display frame rate and a touch sampling rate includes: a detection unit, configured to determine the current display scenario. A determination unit, configured to determine the display frame rate corresponding to the current display scenario and the touch sampling rate corresponding to the current touch scenario based on the current display scenario.
[0011] In one embodiment, the determining unit determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: determining a first display frame rate corresponding to the current display scene based on a preset correspondence between the display scene and the display frame rate; determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, where the touch scene whitelist includes touch scenes for adjusting the touch sampling rate based on the touch scan idle time of the adjustment firmware.
[0012] In another embodiment, the determining unit determines the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist in the following manner: in response to the preset touch scene whitelist not including the current display scene package name, determining a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scene; in response to the preset touch scene whitelist including the current display scene package name, obtaining a second touch sampling rate after adjusting the touch scan idle time of the adjustment firmware, and determining the second touch sampling rate as the touch sampling rate corresponding to the current touch scene.
[0013] In yet another embodiment, before determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, the determining unit is further configured to: determine that the current display scene belongs to a preset display scene whitelist, where the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
[0014] In yet another embodiment, the determining unit determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: in response to the current display scene not belonging to a preset display scene whitelist, determining a first display frame rate corresponding to the current display scene based on a preset correspondence between the display scene and the display frame rate; determining a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scene. Wherein, the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
[0015] According to a third aspect of the embodiments of the present disclosure, a determining device for display frame rate and touch sampling rate is provided, including: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the method for determining the display frame rate and touch sampling rate according to any one of the above.
[0016] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions, which when executed by a processor, perform the method for determining the display frame rate and the touch sampling rate as described in any one of the above.
[0017] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: Through the method for determining the display frame rate and the touch sampling rate provided by the present disclosure, it is possible to determine the display frame rate and the corresponding touch sampling rate based on the current display scene, which helps to quickly determine the touch sampling rate and avoid the occurrence of short-term touch failures, thereby being beneficial to improving the user experience.
[0018] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0020] Figure 1 is a flowchart of a method for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment.
[0021] Figure 2 is a flowchart of a method for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment.
[0022] Figure 3 is a working flowchart of a method for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment.
[0023] Figure 4 is a block diagram of a device for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment.
[0024] Figure 5 is a block diagram of a device for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment. DETAILED DESCRIPTION
[0025] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0026] In the related art, the display frame rate is controlled by a configuration file of a display scene, the touch sampling rate is controlled by a configuration file of a touch scene, and there is a one-to-one binding relationship between the display frame rate and the touch sampling rate. When determining the display frame rate and the touch sampling rate, it is necessary to simultaneously determine the current display scene and the touch scene, and then determine the display frame rate and the touch sampling rate based on the binding relationship between the display frame rate and the touch sampling rate. However, when using this method, the determination takes a long time, and it is easy to cause the phenomenon that the touch sampling rate is not determined in time during the process of switching the display frame rate, resulting in touch failure, thereby affecting the touch fluency of the terminal and the user experience.
[0027] In view of this, the embodiments of the present disclosure provide a method for determining a display frame rate and a touch sampling rate, which determines the touch sampling rate of a touch scene based on a display scene, and realizes the determination of the touch sampling rate triggered by the display scene. In the embodiments of the present disclosure, it is possible to determine the touch sampling rate corresponding to the touch scene when the display frame rate corresponding to the current display scene is determined. Through the present disclosure, it helps to quickly determine the touch sampling rate corresponding to the touch scene, saves power consumption, and can avoid the occurrence of the phenomenon of short-term touch failure, improving the user experience.
[0028] The method for determining the display frame rate and the touch sampling rate provided in the embodiments of the present disclosure is applied to a terminal. In one example, the types of terminals may include mobile terminals, such as mobile phones, tablets, laptops, etc. In another example. The structure of the terminal may include: a double-sided screen terminal, a folding screen terminal, a full-screen terminal, etc.
[0029] Figure 1 is a flowchart of a method for determining a display frame rate and a touch sampling rate shown according to an exemplary embodiment. As Figure 1 shown, the method for determining the display frame rate and the touch sampling rate is used in a terminal and includes the following steps S11 to S12.
[0030] In step S11, determine the current display scene.
[0031] In the embodiments of the present disclosure, each display scene is preset with a corresponding display frame rate, and then the preset correspondence between the display scene and the display frame rate is determined. Among them, different display scenes correspond to different display frame rates. Of course, different display scenes may also correspond to the same display frame rate, and the embodiments of the present disclosure do not limit this.
[0032] The embodiments of the present disclosure can determine the current display scene through system detection.
[0033] In step S12, based on the current display scene, determine the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene.
[0034] In an embodiment of the present disclosure, according to the determined current display scenario, its corresponding display frame rate is determined. And according to the display frame rate corresponding to the determined display scenario, the touch sampling rate corresponding to the current touch scenario is determined. Through the present disclosure, it is possible to determine the display frame rate and the touch sampling rate based on the current display scenario, that is, the determination of the display frame rate and the touch sampling rate can be triggered by the display scenario. Through the present disclosure, it helps to shorten the determination time of the display frame rate and the touch sampling rate. And it helps to avoid the phenomenon of short-term touch failure caused by untimely determination of the touch sampling rate when the display frame rate is switched, thereby improving the smoothness of the terminal use and helping to improve the user experience.
[0035] Through the above embodiments, when switching the display frame rate and the touch sampling rate, by determining the display scenario, the display frame rate and the touch sampling rate are determined, which helps to save the determination time of the display frame rate corresponding to the display scenario and the touch frame rate corresponding to the touch scenario. Moreover, through the embodiments of the present disclosure, it helps to avoid the phenomenon of touch failure caused by untimely determination of the touch sampling rate when the display frame rate is switched, which is beneficial to avoid the loss of historical reported point data, thereby improving the smoothness of the terminal use and improving the user experience.
[0036] In one embodiment, the display frame rate is controlled by a configuration file of the display scene, and the touch sampling rate is controlled by a configuration file of the touch scene. When determining the touch sampling rate corresponding to the current touch scene according to the current display scene, it can be determined based on a touch scene whitelist of the preset touch scene. The touch scene whitelist can be preset in the configuration file of the touch scene. In the embodiments of the present disclosure, the touch scene whitelist includes multiple touch scene package names. Among them, the package name is a unique identifier, and each touch scene can be distinguished by the package name. In the touch scene whitelist, in the case where the display frame rate corresponding to the display scene is too high, each touch scene is suitable for a low touch sampling rate. If the same high touch sampling rate is also used, unnecessary power consumption is likely to occur, affecting the use of the terminal. Therefore, it is necessary to determine the touch sampling rate corresponding to the touch scene according to the actual usage requirements of the touch scene. When determining the touch sampling rate, based on the firmware after adjusting the touch scan idle time, quickly determine the touch sampling rate suitable for the current touch scene. Thus, by presetting the touch scene whitelist, it can be determined whether it is necessary to adjust the touch scan idle time of the firmware when the TDDI determines the touch sampling rate corresponding to the touch scene, and then provide a suitable touch sampling rate for the current touch scene to save power. That is, in the embodiments of the present disclosure, the touch scene whitelist includes touch scenes whose touch sampling rate is adjusted based on adjusting the touch scan idle time of the firmware. If the current display scene is not included in the touch scene whitelist, it means that the touch sampling rate corresponding to the current touch scene can be directly determined without adjusting the touch scan idle time of the firmware. Therefore, when determining the display frame rate and the touch sampling rate, first determine the first display frame rate corresponding to the current display scene according to the preset correspondence between the determined display scene and the display frame rate. Then, when determining the touch sampling rate, compare the current display scene package name with the touch scene whitelist to determine whether the current display scene is included in the touch scene whitelist through the comparison result, so as to determine whether to determine the touch sampling rate corresponding to the current touch scene by adjusting the touch scan idle time of the firmware.
[0037] In another embodiment, if it is determined according to the comparison result that the current display scene package name is not included in the touch scene whitelist, when determining the touch sampling rate, the first correspondence relationship between the display frame rate and the touch sampling rate is used for determination. In most scenarios, when the display scene adopts a high display frame rate, the corresponding touch scene also adopts a high touch sampling rate; when the display scene adopts a low display frame rate, the corresponding touch scene also adopts a low touch sampling rate. Furthermore, in view of this phenomenon, a one-to-one binding can be performed between the display frame rate corresponding to the display scene and the touch sampling rate of its corresponding touch scene to establish the first correspondence relationship. For example: multiple display frame rate levels such as A, B, and C can be set for the display frame rate as needed. The touch sampling rate is correspondingly set with multiple touch sampling rate levels such as 2A, 2B, and 2C according to the multiple frame rate levels set for the display frame rate, and the touch sampling rate and the display frame rate are bound one-to-one according to the levels. Thus, when it is determined that the display frame rate corresponding to the current display scene is the first display frame rate, the touch sampling rate corresponding to the first display frame rate can be determined as the first touch sampling rate based on the first correspondence relationship between the display frame rate and the touch sampling rate, and the touch sampling rate corresponding to the current touch scene is determined as the first touch sampling rate, which helps to quickly determine the touch sampling rate of the touch scene for timely switching. In another example, the first correspondence relationship can be established based on a specified proportional relationship. For example: the specified ratio can be 1:2. Furthermore, when establishing the first correspondence relationship, based on the value corresponding to the display frame rate, the touch sampling rate is set to twice the value of its corresponding display frame rate. For example: when the value corresponding to the specified display frequency is 30, the value corresponding to the touch sampling rate corresponding to 30 is 60. When the value corresponding to the specified display frequency is 60, the touch sampling rate corresponding to 60 is 120.
[0038] If, according to the comparison result, it is determined that the current display scene package name is included in the touch scene whitelist, when determining the touch sampling rate, it is determined by adjusting the touch scan idle time of the firmware. In a few scenarios, when the display frame rate corresponding to the display scene is high, the touch sampling rate corresponding to the touch scene is low. Therefore, in the touch scene whitelist, when the display frame rate corresponding to the display scene is too high, each touch scene is applicable to a low touch sampling rate. If the same high touch sampling rate is used, unnecessary power consumption is likely to occur, affecting the use of the terminal. Furthermore, it is necessary to determine the touch sampling rate corresponding to the touch scene according to the actual usage requirements of the touch scene. For example, in the video scene, if it is determined that the display scene is at a high display frame rate, based on the first correspondence, the determined touch sampling rate is also a high touch sampling rate. However, in actual user operations, when the user is watching a video, a low touch sampling rate is applicable for touch scanning in this touch scene. If a high touch sampling rate is used in this touch scene, an over-scanning phenomenon is likely to occur, resulting in invalid power consumption and affecting the use of the terminal. Therefore, to avoid power consumption waste and affect the user experience, after determining the current display scene and the first display frame rate, according to the current touch scene, the touch sampling rate corresponding to the current touch scene is re-determined by adjusting the touch scan idle time of the firmware, thereby obtaining a second touch sampling rate applicable to the current touch scene, and using the second touch sampling rate as the touch sampling rate in the current touch scene, which helps to save power. Thus, without affecting the user experience, the historical reporting point data is ensured not to be lost. For example, the touch scene whitelist includes the display scene corresponding to the video scene. Then, when determining the touch sampling rate of the touch scene corresponding to the video scene, the touch sampling rate applicable to this touch scene is obtained by adjusting the touch scan time of the firmware, and then the touch sampling rate of this touch scene is determined.
[0039] Based on the same concept, the embodiment of the present disclosure also provides a flowchart of another method for determining the display frame rate and the touch sampling rate.
[0040] Figure 2 It is a flowchart of another method for determining the display frame rate and the touch sampling rate shown according to an exemplary embodiment, as Figure 2 shown, the method for determining the display frame rate and the touch sampling rate includes the following steps S21 to step S24.
[0041] In step S21, determine the current display scene.
[0042] In step S22, determine the first display frame rate corresponding to the current display scene.
[0043] In the embodiments of the present disclosure, there is a preset correspondence between the display scene and the display frame rate. Furthermore, after determining the current display scene, the display frame rate corresponding to the current display scene can be determined according to the preset correspondence between the display scene and the display frame rate. In the embodiments of the present disclosure, the display frame rate determined according to the preset correspondence between the display scene and the display frame rate is referred to as the first display frame rate.
[0044] In step S23, it is determined that the current display scene belongs to the preset display scene white list.
[0045] In the embodiments of the present disclosure, the display scene white list includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene. Among them, if the current display scene belongs to the preset display scene white list, it is determined to execute the touch sampling rate corresponding to the current touch scene provided by the embodiments of the present disclosure based on the display scene.
[0046] In another implementation manner, if the current display scene does not belong to the display scene white list, it means that the touch sampling rate corresponding to the current touch scene determined based on the display scene involved in the embodiments of the present disclosure is not adopted. The display frame rate of the current display scene can determine the display frame rate corresponding to the current display scene based on the preset relationship between the display scene and the display frame rate. The touch sampling rate corresponding to the current touch scene can determine the touch sampling rate based on the corresponding relationship between the display frame rate and the touch sampling rate.
[0047] In step S24, based on the current display scene package name and the preset touch scene white list, the touch sampling rate corresponding to the current touch scene is determined.
[0048] Through the above embodiments, the determination of the display frame rate and the touch sampling rate is controlled by the dual configuration files of the preset display scene white list and the preset touch scene white list, which helps some touch scenes to quickly enter the touch scan idle time, thereby shortening the determination time of the touch sampling rate and saving power consumption.
[0049] In yet another embodiment, in the method for determining the display frame rate and the touch sampling rate, a display scene white list can be preset. The display scene white list includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene. According to this display scene white list, if it is determined by comparison that the current display scene does not belong to the preset display scene white list, then based on the preset correspondence between the display scene and the display frame rate, the first display frame rate corresponding to the current display scene is determined, and when determining the touch sampling rate corresponding to the current touch scene, it is determined based on the first correspondence, and the first touch sampling rate determined according to the first correspondence is used as the touch sampling rate corresponding to the current touch scene.
[0050] In an implementation scenario, the workflow for determining the display frame rate and the touch sampling rate in the terminal can be asFigure 3 as shown Figure 3 is a flowchart for determining the display frame rate and the touch sampling rate. A display scenario whitelist and a touch scenario whitelist for the preset display scenario are provided. Determine that the display frame rate of the current display scenario is the first display frame rate. Compare the determined current display scenario with the display scenario whitelist. If the current display scenario does not belong to the display scenario whitelist, it is determined that the touch sampling rate of the touch scenario needs to be determined according to the first correspondence relationship, and then the first touch sampling rate determined according to the first correspondence relationship is used as the touch sampling rate corresponding to the current touch scenario. If the current display scenario belongs to the display scenario whitelist, it is determined that the touch sampling rate of the touch scenario needs to be determined by adjusting the touch scan time of the firmware. Then, it is determined whether the current display scenario belongs to the touch scenario whitelist. If the current display scenario belongs to the touch scenario whitelist, the touch sampling rate is determined to be the second touch sampling rate by adjusting the touch scan idle time of the firmware. If the current display scenario does not belong to the touch scenario whitelist, the touch sampling rate is determined to be the first touch sampling rate corresponding to the first display frame rate according to the first display frame rate corresponding to the current display scenario.
[0051] Based on the same concept, an embodiment of the present disclosure further provides a device for determining the display frame rate and the touch sampling rate.
[0052] It can be understood that, in order to implement the above functions, the device for determining the display frame rate and the touch sampling rate provided by the embodiment of the present disclosure includes the corresponding hardware structure and / or software module for executing each function. Combining the units and algorithm steps of the examples disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present disclosure.
[0053] Figure 4 is a block diagram of a device for determining the display frame rate and the touch sampling rate shown according to an exemplary embodiment. The device 100 for determining the display frame rate and the touch sampling rate is applied to a terminal. Referring to Figure 4 , the device 100 for determining the display frame rate and the touch sampling rate includes: a detection unit 101 and a determination unit 102.
[0054] The detection unit is used to determine the current display scenario.
[0055] The determination unit is used to determine the display frame rate corresponding to the current display scenario and the touch sampling rate corresponding to the current touch scenario based on the current display scenario.
[0056] In one embodiment, the determining unit 102 determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: Based on the preset correspondence between the display scene and the display frame rate, determine the first display frame rate corresponding to the current display scene. Based on the current display scene package name and the preset touch scene whitelist, determine the touch sampling rate corresponding to the current touch scene, and the touch scene whitelist includes touch scenes for adjusting the touch sampling rate based on the touch scan idle time of the adjustment firmware.
[0057] In another embodiment, the determining unit 102 determines the touch sampling rate corresponding to the current touch scene based on the current display scene package name and the preset touch scene whitelist in the following manner: In response to the preset touch scene whitelist not including the current display scene package name, determine the first touch sampling rate corresponding to the first display frame rate based on the first correspondence between the display frame rate and the touch sampling rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene. In response to the preset touch scene whitelist including the current display scene package name, obtain the second touch sampling rate after adjusting the touch scan idle time of the firmware, and determine the second touch sampling rate as the touch sampling rate corresponding to the current touch scene.
[0058] In yet another embodiment, before determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and the preset touch scene whitelist, the determining unit 102 is further configured to: Determine that the current display scene belongs to the preset display scene whitelist, and the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
[0059] In yet another embodiment, the determining unit 102 determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: In response to the current display scene not belonging to the preset display scene whitelist, determine the first display frame rate corresponding to the current display scene based on the preset correspondence between the display scene and the display frame rate. Determine the first touch sampling rate corresponding to the first display frame rate based on the first correspondence between the display frame rate and the touch sampling rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene. Wherein, the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
[0060] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0061] Figure 5FIG. 0 is a block diagram of a display frame rate and touch sampling rate determination device 200 shown in accordance with an exemplary embodiment. For example, the display frame rate and touch sampling rate determination device 200 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0062] Referring Figure 5 , the display frame rate and touch sampling rate determination device 200 can include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216.
[0063] The processing component 202 generally controls the overall operation of the display frame rate and touch sampling rate determination device 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.
[0064] The memory 204 is configured to store various types of data to support the operation of the display frame rate and touch sampling rate determination device 200. Examples of such data include instructions for any application or method operating on the display frame rate and touch sampling rate determination device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0065] The power component 206 provides power to the various components of the display frame rate and touch sampling rate determination device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the display frame rate and touch sampling rate determination device 200.
[0066] The multimedia component 208 includes a screen that provides an output interface between the display frame rate and touch sampling rate determining device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the display frame rate and touch sampling rate determining device 200 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0067] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC) that is configured to receive external audio signals when the display frame rate and touch sampling rate determining device 200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio signals.
[0068] The I / O interface 212 provides an interface between the processing component 202 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0069] The sensor assembly 214 includes one or more sensors for providing a status assessment in various aspects for the display frame rate and touch sampling rate determination device 200. For example, the sensor assembly 214 can detect the on / off state of the display frame rate and touch sampling rate determination device 200, the relative positioning of components, such as the display and keypad of the display frame rate and touch sampling rate determination device 200. The sensor assembly 214 can also detect a change in the position of the display frame rate and touch sampling rate determination device 200 or a component of the display frame rate and touch sampling rate determination device 200, the presence or absence of user contact with the display frame rate and touch sampling rate determination device 200, the orientation or acceleration / deceleration of the display frame rate and touch sampling rate determination device 200, and the temperature change of the display frame rate and touch sampling rate determination device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0070] The communication component 216 is configured to facilitate communication between the display frame rate and touch sampling rate determination device 200 and other devices in a wired or wireless manner. The display frame rate and touch sampling rate determination device 200 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0071] In an exemplary embodiment, the display frame rate and touch sampling rate determination device 200 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0072] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the above instructions can be executed by a processor 220 of a determining device 200 for display frame rate and touch sampling rate to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0073] It can be further understood that in the present disclosure, "a plurality of" means two or more, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The singular forms of "a", "the", and "said" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0074] It can be further understood that the terms "first", "second", etc. are used to describe various information, but this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and do not represent a specific order or degree of importance. In fact, the expressions such as "first" and "second" can be used interchangeably completely. For example, without departing from the scope of the present disclosure, the first information can also be called the second information, and similarly, the second information can also be called the first information.
[0075] It can be further understood that unless otherwise specified, "connection" includes direct connection between the two without other components therebetween, and also includes indirect connection between the two with other elements therebetween.
[0076] It can be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring these operations to be performed in the specific order shown or in a serial order, or requiring all the operations shown to obtain the desired result. In a specific environment, multitasking and parallel processing may be advantageous.
[0077] Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0078] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for determining a display frame rate and a touch sampling rate, characterized in that Applied to a terminal, the method for determining the display frame rate and the touch sampling rate includes: Determine the current display scene; Based on the current display scene, determine the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene; Wherein, the step of based on the current display scene, determining the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene includes: Based on a preset correspondence between the display scene and the display frame rate, determine a first display frame rate corresponding to the current display scene; Based on the current display scene package name and a preset touch scene whitelist, determine the touch sampling rate corresponding to the current touch scene, where the touch scene whitelist includes touch scenes for adjusting the touch sampling rate based on the touch scan idle time of the adjustment firmware; Wherein, the step of based on the current display scene package name and a preset touch scene whitelist, determining the touch sampling rate corresponding to the current touch scene includes: In response to the preset touch scene whitelist including the current display scene package name, adjust the touch scan idle time of the firmware according to the current touch scene to obtain a second touch sampling rate, and determine the second touch sampling rate as the touch sampling rate corresponding to the current touch scene, so as to obtain a low touch sampling rate in the case where the display scene corresponds to a high display frame rate.
2. The method for determining the display frame rate and the touch sampling rate according to claim 1, wherein The step of based on the current display scene package name and a preset touch scene whitelist, determining the touch sampling rate corresponding to the current touch scene includes: In response to the preset touch scene whitelist not including the current display scene package name, based on a first correspondence between the display frame rate and the touch sampling rate, determine a first touch sampling rate corresponding to the first display frame rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene.
3. The method for determining the display frame rate and the touch sampling rate according to claim 1 or 2, characterized in that Before determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, the method for determining the display frame rate and the touch sampling rate further includes: Determine that the current display scene belongs to a preset display scene whitelist, where the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
4. The method for determining the display frame rate and the touch sampling rate according to claim 1, wherein The step of based on the current display scene, determining the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene includes: In response to the current display scene not belonging to the preset display scene whitelist, based on a preset correspondence between the display scene and the display frame rate, determine a first display frame rate corresponding to the current display scene; Based on a first correspondence between the display frame rate and the touch sampling rate, determine a first touch sampling rate corresponding to the first display frame rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene; Wherein, the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
5. A device for determining the display frame rate and touch sampling rate, characterized in that Applied to a terminal, the apparatus for determining the display frame rate and the touch sampling rate includes: A detection unit, configured to determine the current display scene; A determination unit, configured to based on the current display scene, determine the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene; Among them, the determining unit determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: Determine a first display frame rate corresponding to the current display scene based on a preset correspondence between the display scene and the display frame rate; Determine the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, where the touch scene whitelist includes touch scenes for adjusting the touch sampling rate based on the touch scan idle time of the adjustment firmware; The determining unit determines the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist in the following manner: In response to the preset touch scene whitelist including the current display scene package name, adjust the touch scan idle time of the firmware according to the current touch scene to obtain a second touch sampling rate, and determine the second touch sampling rate as the touch sampling rate corresponding to the current touch scene, so as to obtain a low touch sampling rate when the display scene corresponds to a high display frame rate.
6. The determining device for display frame rate and touch sampling rate according to claim 5, wherein The determining unit determines the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist in the following manner: In response to the preset touch scene whitelist not including the current display scene package name, determine a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene.
7. The determining device for display frame rate and touch sampling rate according to claim 5 or 6, characterized in that, Before determining the touch sampling rate corresponding to the current touch scene based on the current display scene package name and a preset touch scene whitelist, the determining unit is further configured to: Determine that the current display scene belongs to a preset display scene whitelist, where the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
8. The display frame rate and touch sampling rate determination device according to claim 5, characterized in that The determining unit determines the display frame rate corresponding to the current display scene and the touch sampling rate corresponding to the current touch scene based on the current display scene in the following manner: In response to the current display scene not belonging to the preset display scene whitelist, determine a first display frame rate corresponding to the current display scene based on a preset correspondence between the display scene and the display frame rate; Determine a first touch sampling rate corresponding to the first display frame rate based on a first correspondence between the display frame rate and the touch sampling rate, and determine the first touch sampling rate as the touch sampling rate corresponding to the current touch scene; Among them, the display scene whitelist includes display scenes for determining the touch sampling rate corresponding to the current touch scene based on the display scene.
9. A determining device for display frame rate and touch sampling rate, characterized in that The determining device for the display frame rate and the touch sampling rate includes: A memory for storing instructions; and A processor for calling the instructions stored in the memory to execute the method for determining the display frame rate and the touch sampling rate according to any one of claims 1-4.
10. A computer-readable storage medium storing instructions that, when executed by a processor, execute the method for determining the display frame rate and the touch sampling rate according to any one of claims 1-4.
Citation Information
Patent Citations
Touch screen configuring method, device, terminal and storage medium
CN108646938A
Display refresh rate synchronization method and device, terminal and storage medium
CN111625134A