CN114428563A - Method and device for determining display frame rate and touch sampling rate and storage medium - Google Patents
Method and device for determining display frame rate and touch sampling rate and storage medium Download PDFInfo
- Publication number
- CN114428563A CN114428563A CN202011173432.4A CN202011173432A CN114428563A CN 114428563 A CN114428563 A CN 114428563A CN 202011173432 A CN202011173432 A CN 202011173432A CN 114428563 A CN114428563 A CN 114428563A
- Authority
- CN
- China
- Prior art keywords
- touch
- scene
- sampling rate
- display
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005070 sampling Methods 0.000 title claims abstract description 263
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000004044 response Effects 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 5
- 230000001052 transient effect Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a method and an apparatus for determining a display frame rate and a touch sampling rate, and a storage medium. The method for determining the display frame rate and the touch sampling rate is applied to a terminal and comprises the following steps: the current display scene is determined. And determining a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene based on the current display scene. Through the method for determining the display frame rate and the touch sampling rate, the display frame rate and the corresponding touch sampling rate can be determined based on the current display scene, the touch sampling rate can be switched rapidly, the phenomenon of transient touch failure is avoided, and the use experience of a user is improved.
Description
Technical Field
The present disclosure relates to the field of touch display technologies, and in particular, to a method and an apparatus for determining a display frame rate and a touch sampling rate, and a storage medium.
Background
With the rapid development of the terminal, in order to avoid excessive stacking cost and large device size among modules in the terminal, a Touch and Display Driver Integration (TDDI) chip is used to control the Touch function and the Display function of the terminal. With the rapid development of the terminal, the user has higher and higher requirements on the touch fluency of the terminal, that is, high requirements on the display frame rate and the touch sampling rate of the terminal.
In the related art, switching between the display frame rate and the touch sampling rate requires determining a current display scene and a touch scene at the same time, determining the display frame rate based on the current display scene, and determining the touch sampling rate based on the current touch scene. Generally, there is a one-to-one correspondence between the display frame rate and the touch sampling rate. When the display frame rate is determined to be the touch sampling rate in the related art, due to the fact that time consumption for switching the touch sampling rate is long, short touch failure is easily caused in the process of switching the display frame rate, and therefore touch smoothness of a terminal is affected, and use experience of a user is affected.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for determining a display frame rate and a touch sampling rate, and a storage medium.
According to a 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, and the method for determining the display frame rate and the touch sampling rate includes: the current display scene is determined. And determining a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene based on the current display scene.
In an embodiment, the determining, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene includes: and determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation between the display scene and the display frame rate. And determining a touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, wherein the touch scene white list comprises touch scenes for adjusting the touch sampling rate based on the adjustment firmware touch scanning idle time.
In another embodiment, the determining, based on the package name of the current display scene and a preset white list of touch scenes, a touch sampling rate corresponding to the current touch scene includes: and in response to that the preset touch scene white list does not include the current display scene packet name, determining a first touch sampling rate corresponding to the first display frame rate based on a first corresponding relation 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. And in response to the fact that the preset touch scene white list comprises the current display scene packet name, adjusting the firmware touch scanning 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 scene.
In 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 white list, the method for determining the display frame rate and the touch sampling rate further includes: and determining that the current display scene belongs to a preset display scene white list, wherein the display scene white list comprises the display scene of which the touch sampling rate is determined to correspond to the current touch scene based on the display scene.
In another embodiment, the determining, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene includes: and in response to that the current display scene does not belong to a preset display scene white list, determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation 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 corresponding relation between a display frame rate and a touch sampling rate, and determining the first touch sampling rate as a touch sampling rate corresponding to a current touch scene. And the display scene white list comprises display scenes of which the touch sampling rate corresponds to the current touch scene determined based on the display scenes.
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 including: and the detection unit is used for determining the current display scene. And the determining unit is used for 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.
In an embodiment, the determining unit determines, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene in the following manner: and determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation between the display scene and the display frame rate. And determining a touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, wherein the touch scene white list comprises touch scenes for adjusting the touch sampling rate based on the adjustment firmware touch scanning idle time.
In another embodiment, the determining unit determines the touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list in the following manner: and in response to that the preset touch scene white list does not include the current display scene packet name, determining a first touch sampling rate corresponding to the first display frame rate based on a first corresponding relation 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. And in response to the fact that the preset touch scene white list comprises the current display scene packet name, adjusting the firmware touch scanning 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 scene.
In 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 white list, the determining unit is further configured to: and determining that the current display scene belongs to a preset display scene white list, wherein the display scene white list comprises the display scene of which the touch sampling rate is determined to correspond to the current touch scene based on the display scene.
In another embodiment, the determining unit determines, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene in the following manner: and in response to that the current display scene does not belong to a preset display scene white list, determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation 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 corresponding relation between a display frame rate and a touch sampling rate, and determining the first touch sampling rate as a touch sampling rate corresponding to a current touch scene. And the display scene white list comprises display scenes of which the touch sampling rate corresponds to the current touch scene determined based on the display scenes.
According to a third aspect of the embodiments of the present disclosure, there is provided a device for determining a display frame rate and a touch sampling rate, including: a memory to store instructions; and the processor is used for calling the instruction stored in the memory to execute any one of the methods for determining the display frame rate and the touch sampling rate.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which instructions are stored, and when executed by a processor, the method for determining a display frame rate and a touch sampling rate as described in any one of the above is performed.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through the method for determining the display frame rate and the touch sampling rate, the display frame rate and the corresponding touch sampling rate can be determined based on the current display scene, the touch sampling rate can be rapidly determined, the phenomenon of transient touch failure is avoided, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method for determining a display frame rate and a touch sampling rate according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method for determining a display frame rate and a touch sampling rate according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a process of determining a display frame rate and a touch sampling rate according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating an apparatus for determining a display frame rate and a touch sampling rate according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus for determining a display frame rate and a touch sampling rate according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, the display frame rate is controlled by the configuration file of the display scene, the touch sampling rate is controlled by the configuration file of the touch scene, and the display frame rate and the touch sampling rate have a one-to-one corresponding binding relationship. When the display frame rate and the touch sampling rate are determined, the current display scene and the touch scene need to be determined at the same time, and then the display frame rate and the touch sampling rate are determined based on the binding relationship between the display frame rate and the touch sampling rate. However, by using the method, the time consumption is determined, and the touch sampling rate is not determined in time and the touch failure is easily caused in the display frame rate switching process, so that the touch smoothness of the terminal is influenced, and the use experience of a user is influenced.
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 embodiment of the disclosure, the touch sampling rate corresponding to the touch scene can be determined under the condition that the display frame rate corresponding to the current display scene is determined. Through the method and the device, the touch sampling rate corresponding to the touch scene can be determined quickly, power consumption is saved, the phenomenon of short-time failure of touch can be avoided, and the use experience of a user is improved.
The method for determining the display frame rate and the touch sampling rate provided in the embodiment of the disclosure is applied to a terminal. In one example, the category of terminals may include mobile terminals, such as: cell phones, tablets, notebooks, etc. In another example. The structure of the terminal may include: a dual-screen terminal, a folding screen terminal, a full-screen terminal, etc.
Fig. 1 is a flowchart illustrating a method for determining a display frame rate and a touch sampling rate according to an exemplary embodiment, where the method for determining a display frame rate and a touch sampling rate is used in a terminal, as shown in fig. 1, and includes the following steps S11 to S12.
In step S11, the current display scene is determined.
In the embodiment of the present disclosure, the display frame rate corresponding to each display scene is preset for the display scene, and then the preset corresponding relationship between the display scene and the display frame rate is determined. The display frame rates corresponding to different display scenes are different, and certainly, the display frame rates corresponding to different display scenes may also be the same, which is not limited in the embodiment of the present disclosure.
The embodiment of the disclosure can determine the current display scene through system detection.
In step S12, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene are determined.
In the embodiment of the present disclosure, according to the determined current display scene, the display frame rate corresponding to the current display scene is determined. And determining a touch sampling rate corresponding to the current touch scene according to the display frame rate corresponding to the determined display scene. By the method and the device, the display frame rate and the touch sampling rate can be determined based on the current display scene, namely the display frame rate and the touch sampling rate can be determined by triggering of the display scene. The display frame rate and the touch sampling rate determination time can be shortened. The phenomenon of transient touch failure caused by untimely determination of the touch sampling rate when the display frame rate is switched is avoided, the smoothness of the terminal is improved, and the use experience of a user is improved.
Through the embodiment, when the display frame rate and the touch sampling rate are switched, the display frame rate and the touch sampling rate are determined through the determined display scene, so that the display frame rate corresponding to the display scene and the determination time of the touch frame rate corresponding to the touch scene can be saved. Moreover, the embodiment of the disclosure is beneficial to avoiding the phenomenon that the touch sampling rate is not determined in time to cause touch failure when the display frame rate is switched, and is beneficial to avoiding the missing of historical report data, thereby improving the use smoothness of the terminal and improving the use experience of a user.
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 the touch sampling rate corresponding to the current touch scene is determined according to the current display scene, the touch sampling rate can be determined based on a preset touch scene white list of the touch scene. The touch scene white list may be preset in a configuration file of the touch scene. In the embodiment of the present disclosure, the touch scene white list includes a plurality of touch scene packet names. The package name is a unique identifier, and each touch scene can be distinguished through the package name. In the touch scene white list, under the condition that the display frame rate corresponding to the display scene is too high, each touch scene is suitable for a low touch sampling rate, and if too high touch sampling rate is also adopted, unnecessary power consumption is easily generated, the use of a terminal is affected, and then the touch sampling rate corresponding to the touch scene needs to be determined according to the actual use requirement of the touch scene. When the touch sampling rate is determined, the touch sampling rate suitable for the current touch scene is quickly determined based on the firmware after the touch scanning idle time is adjusted. Therefore, by presetting the touch scene white list, whether the TDDI needs to adjust the touch scanning idle time of the firmware or not can be determined when determining the touch sampling rate corresponding to the touch scene, and a proper touch sampling rate is provided for the current touch scene, so that the power consumption is saved. That is, in the embodiment of the present disclosure, the touch scene white list includes the touch scene whose touch sampling rate is adjusted based on the adjustment firmware touch scan idle time. If the touch scene white list does not include the current display scene, the touch sampling rate corresponding to the representation of the current touch scene can be directly determined without adjusting the touch scanning idle time of the firmware. Therefore, when the display frame rate and the touch sampling rate are determined, the first display frame rate corresponding to the current display scene is determined according to the preset corresponding relation between the determined display scene and the display frame rate. And when the touch sampling rate is determined, comparing the current display scene packet name with the touch scene white list, and determining whether the touch scene white list comprises the current display scene according to the comparison result so as to determine whether the touch sampling rate corresponding to the current touch scene is determined by adjusting the touch scanning idle time of the firmware.
In another embodiment, if it is determined that the current display scene packet name is not included in the touch scene white list according to the comparison result, when the touch sampling rate is determined, the first corresponding relationship between the display frame rate and the touch sampling rate is used for determining. In most scenes, 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. Further, for the phenomenon, the display frame rate corresponding to the display scene and the touch sampling rate of the touch scene corresponding to the display scene may be bound one to one, so as to establish a first corresponding relationship. For example: the display frame rate is set to A, B, C or the like as necessary. The touch sampling rate is set according to a plurality of frame rate levels set by the display frame rate, a plurality of touch sampling rate levels such as 2A, 2B, 2C and the like are correspondingly set, and the touch sampling rate and the display frame rate are bound one to one according to the levels. Therefore, when the display frame rate corresponding to the current display scene is determined to be the first display frame rate, the touch sampling rate corresponding to the first display frame rate can be determined to be the first touch sampling rate based on the first corresponding relationship between the display frame rate and the touch sampling rate, and the touch sampling rate corresponding to the current touch scene is determined to be the first touch sampling rate, so that the touch sampling rate of the touch scene can be rapidly determined to facilitate timely switching. In another example, the first corresponding relationship may be established based on a specified proportional relationship. For example: the designated ratio may be 1:2, and when the first corresponding relationship is established, the touch sampling rate is set to be twice as large as the value of the display frame rate corresponding to the touch sampling rate based on the value corresponding to the display frame rate. For example: if the designated display frequency corresponds to a value of 30, the designated display frequency corresponds to a value of 60 corresponding to the touch sampling rate of 30. If the designated display frequency corresponds to a value of 60, the touch sampling rate corresponding to 60 is 120.
And if the touch scene white list comprises the current display scene packet name according to the comparison result, determining by adopting a mode of adjusting the idle time of firmware touch scanning when determining the touch sampling rate. In a few scenes, 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 white list, each touch scene is suitable for a low touch sampling rate under the condition that the display frame rate corresponding to the display scene is too high, and if too high touch sampling rate is also adopted, unnecessary power consumption is easily generated, the use of the terminal is affected, and then the touch sampling rate corresponding to the touch scene needs to be determined according to the actual use requirement of the touch scene. For example: in a video scene, if it is determined that the display scene is at a high display frame rate, the determined touch sampling rate is also the high touch sampling rate based on the first corresponding relationship. In actual user operation, when a user watches a video, the method is suitable for touch scanning at a low touch sampling rate in the touch scene. If a high touch sampling rate is used in the touch scene, overscan is easily caused, and then invalid power consumption is generated, which affects the use of the terminal. Therefore, in order to avoid power consumption waste and influence the use experience of a user, after the current display scene and the first display frame rate are determined, the touch sampling rate corresponding to the current touch scene is determined again by adjusting the firmware touch scanning idle time according to the current touch scene, so that a second touch sampling rate suitable for the current touch scene is obtained, and the second touch sampling rate is used as the touch sampling rate under the current touch scene, so that the power consumption is saved. Therefore, the use experience of the user is not influenced under the condition that the historical report point data are not lost. For example: the touch scene white list comprises a display scene corresponding to the video scene, and when the touch sampling rate of the touch scene corresponding to the video scene is determined, the touch sampling rate applicable to the touch scene is obtained by adjusting the firmware touch scanning time, and the touch sampling rate of the touch scene is determined.
Based on the same concept, the embodiment of the present disclosure further provides another flowchart of a method for determining a display frame rate and a touch sampling rate.
Fig. 2 is a flowchart illustrating another method for determining a display frame rate and a touch sampling rate according to an exemplary embodiment, where as shown in fig. 2, the method for determining the display frame rate and the touch sampling rate includes the following steps S21 to S24.
In step S21, the current display scene is determined.
In step S22, a first display frame rate corresponding to the current display scene is determined.
In the embodiment of the present disclosure, the display scene and the display frame rate have a preset corresponding relationship. Furthermore, after the current display scene is determined, the display frame rate corresponding to the current display scene may be determined according to the preset corresponding relationship between the display scene and the display frame rate. In the embodiment of the present disclosure, the display frame rate determined according to the preset corresponding relationship between the display scene and the display frame rate is referred to as a first display frame rate.
In step S23, it is determined that the current display scene belongs to the preset display scene whitelist.
In the embodiment of the present disclosure, the display scene white list includes a display scene for determining a touch sampling rate corresponding to a current touch scene based on the display scene. If the current display scene belongs to the preset display scene white list, determining to execute the touch sampling rate corresponding to the current touch scene determined based on the display scene provided by the embodiment of the disclosure.
In another embodiment, if the current display scene does not belong to the display scene white list, the characterization does not adopt the touch sampling rate corresponding to the current touch scene determined based on the display scene in the embodiment of the present disclosure. The display frame rate of the current display scene may determine the display frame rate corresponding to the current display scene based on a preset relationship between the display scene and the display frame rate. The touch sampling rate corresponding to the current touch scene may be determined based on a correspondence between the display frame rate and the touch sampling rate.
In step S24, a touch sampling rate corresponding to the current touch scene is determined based on the current display scene package name and the preset touch scene white list.
Through the embodiment, the display frame rate and the touch sampling rate are determined by the dual configuration files of the preset display scene white list and the preset touch scene white list, so that part of touch scenes can enter the touch scanning idle time quickly, the determination time of the touch sampling rate is shortened, and the power consumption is saved.
In another embodiment, in the method for determining the display frame rate and the touch sampling rate, a display scene white list may be preset. The display scene white list comprises display scenes which determine the touch sampling rate corresponding to the current touch scene based on the display scenes. According to the display scene white list, if the current display scene is determined not to belong to a preset display scene white list through comparison, a first display frame rate corresponding to the current display scene is determined based on a preset corresponding relation between the display scene and the display frame rate, the first display frame rate is determined based on the first corresponding relation when the touch sampling rate corresponding to the current touch scene is determined, and the first touch sampling rate determined according to the first corresponding relation is used as the touch sampling rate corresponding to the current touch scene.
In an implementation scenario, a workflow for determining the display frame rate and the touch sampling rate in the terminal may be as shown in fig. 3. Fig. 3 is a flowchart of a work flow for determining a display frame rate and a touch sampling rate. And presetting a display scene white list and a touch scene white list of the display scene. And determining the display frame rate of the current display scene as a first display frame rate. And comparing the determined current display scene with the display scene white list, if the current display scene does not belong to the display scene white list, determining the touch sampling rate of the touch scene according to the first corresponding relation, and taking the first touch sampling rate determined according to the first corresponding relation as the touch sampling rate corresponding to the current touch scene. And if the current display scene belongs to the display scene white list, determining the touch sampling rate of the touch scene by adjusting the firmware touch scanning time. And then judging whether the current display scene belongs to a touch scene white list. And if the current display scene belongs to the touch scene white list, determining the touch sampling rate as a second touch sampling rate by adjusting the touch scanning idle time of the firmware. And if the current display scene does not belong to the touch scene white list, determining the touch sampling rate as a first touch sampling rate corresponding to a first display frame rate according to the first display frame rate corresponding to the current display scene.
Based on the same concept, the embodiment of the disclosure further provides a device for determining the display frame rate and the touch sampling rate.
It can be understood that, in order to implement the above functions, the apparatus for determining a display frame rate and a touch sampling rate provided by the embodiments of the present disclosure includes a hardware structure and/or a software module corresponding to each function. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 4 is a block diagram illustrating an apparatus for determining a display frame rate and a touch sampling rate 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 fig. 4, the apparatus 100 for determining a display frame rate and a touch sampling rate includes: a detection unit 101 and a determination unit 102.
And the detection unit is used for determining the current display scene.
The determining unit is used for determining a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene based on the current display scene.
In an embodiment, the determining unit 102 determines, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene in the following manner: and determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation between the display scene and the display frame rate. And determining a touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, wherein the touch scene white list comprises touch scenes for adjusting the touch sampling rate based on the adjustment firmware touch scanning idle time.
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 a preset touch scene white list by the following method: and in response to that the preset touch scene white list does not include the current display scene packet name, determining a first touch sampling rate corresponding to the first display frame rate based on a first corresponding relation 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. And in response to the preset touch scene white list including the current display scene packet name, adjusting the firmware touch scanning 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 scene.
In 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 white list, the determining unit 102 is further configured to: and determining that the current display scene belongs to a preset display scene white list, wherein the display scene white list comprises the display scene of which the touch sampling rate is determined to correspond to the current touch scene based on the display scene.
In another embodiment, the determining unit 102 determines, based on the current display scene, a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene in the following manner: and in response to that the current display scene does not belong to a preset display scene white list, determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation 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 corresponding relation between the display frame rate and the touch sampling rate, and determining the first touch sampling rate as a touch sampling rate corresponding to the current touch scene. The display scene white list comprises display scenes of which the touch sampling rates corresponding to the current touch scenes are determined based on the display scenes.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a device 200 for determining a display frame rate and a touch sampling rate according to an exemplary embodiment. For example, the apparatus 200 for determining the display frame rate and the touch sampling rate may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 200 for determining the display frame rate and the touch sampling rate may 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.
The processing component 202 generally controls the overall operation of the display frame rate and touch sample rate determining apparatus 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing components 202 may include one or more processors 220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support the operation of the apparatus 200 in determining the display frame rate and the touch sampling rate. Examples of such data include instructions for any application or method operating on the display frame rate and touch sample rate determining apparatus 200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, 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, magnetic or optical disks.
The power component 206 provides power to various components of the display frame rate and touch sampling rate determining apparatus 200. The power components 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the display frame rate and touch sample rate determining apparatus 200.
The multimedia component 208 includes a screen providing an output interface between the display frame rate and touch sample 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 may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front facing camera and/or a rear facing camera. When the device 200 for determining the display frame rate and the touch sampling rate is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 210 is configured to output and/or input audio signals. For example, the audio component 210 includes a Microphone (MIC) configured to receive an external audio signal when the apparatus 200 for determining the display frame rate and the touch sampling rate is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing component 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 214 includes one or more sensors for providing various aspects of status assessment for the display frame rate and touch sampling rate determination apparatus 200. For example, the sensor component 214 may detect the on/off status of the apparatus 200 for determining the display frame rate and the touch sampling rate, the relative positioning of the components, such as the display and the keypad of the apparatus 200 for determining the display frame rate and the touch sampling rate, the sensor component 214 may detect a position change of one component of the apparatus 200 for determining the display frame rate and the touch sampling rate or the apparatus 200 for determining the display frame rate and the touch sampling rate, the presence or absence of a user contact with the apparatus 200 for determining the display frame rate and the touch sampling rate, the orientation or acceleration/deceleration of the apparatus 200 for determining the display frame rate and the touch sampling rate, and a temperature change of the apparatus 200 for determining the display frame rate and the touch sampling rate. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may 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 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the display frame rate and touch sample rate determining apparatus 200 and other devices. The display frame rate and touch sampling rate determining apparatus 200 may access a wireless network based on a communication standard, 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 communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the determining apparatus 200 for the display frame rate and the touch sampling rate may 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, micro-controllers, microprocessors or other electronic components, for performing the above-mentioned method.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 204 comprising instructions, executable by the processor 220 of the apparatus for determining display frame rate and touch sample rate 200 to perform the method is also provided. 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, and the like.
It is further understood that the use of "a plurality" in this disclosure means two or more, as other terms are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like are used to describe various information and that such information should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It is further to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (12)
1. A method for determining a display frame rate and a touch sampling rate is applied to a terminal, and the method for determining the display frame rate and the touch sampling rate comprises the following steps:
determining a current display scene;
and determining a display frame rate corresponding to the current display scene and a touch sampling rate corresponding to the current touch scene based on the current display scene.
2. The method for determining the display frame rate and the touch sampling rate according to claim 1, wherein 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 comprises:
determining a first display frame rate corresponding to the current display scene based on a preset corresponding relation between the display scene and the display frame rate;
and determining a touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, wherein the touch scene white list comprises touch scenes for adjusting the touch sampling rate based on the adjustment firmware touch scanning idle time.
3. The method for determining the display frame rate and the touch sampling rate according to claim 2, wherein the determining the touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list comprises:
in response to that the preset touch scene white list does not include the current display scene packet name, determining a first touch sampling rate corresponding to a first display frame rate based on a first corresponding relation between the display frame rate and a touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scene;
and in response to the fact that the preset touch scene white list comprises the current display scene packet name, adjusting the firmware touch scanning 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 scene.
4. The method for determining the display frame rate and the touch sampling rate according to claim 2 or 3, wherein before determining the touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, the method for determining the display frame rate and the touch sampling rate further comprises:
and determining that the current display scene belongs to a preset display scene white list, wherein the display scene white list comprises the display scene of which the touch sampling rate is determined to correspond to the current touch scene based on the display scene.
5. The method for determining the display frame rate and the touch sampling rate according to claim 1, wherein 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 comprises:
in response to that the current display scene does not belong to a preset display scene white list, determining a first display frame rate corresponding to the current display scene based on a preset corresponding relationship 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 corresponding relation between a display frame rate and a touch sampling rate, and determining the first touch sampling rate as a touch sampling rate corresponding to a current touch scene;
and the display scene white list comprises display scenes of which the touch sampling rate corresponds to the current touch scene determined based on the display scenes.
6. The device for determining the display frame rate and the touch sampling rate is applied to a terminal, and comprises:
the detection unit is used for determining a current display scene;
and the determining unit is used for 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.
7. The apparatus according to claim 6, wherein the determining unit determines the display frame rate and the touch sampling rate corresponding to the current display 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 corresponding relation between the display scene and the display frame rate;
and determining a touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, wherein the touch scene white list comprises touch scenes for adjusting the touch sampling rate based on the adjustment firmware touch scanning idle time.
8. The apparatus according to claim 7, wherein the determining unit determines the touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list by:
in response to that the preset touch scene white list does not include the current display scene packet name, determining a first touch sampling rate corresponding to a first display frame rate based on a first corresponding relation between the display frame rate and a touch sampling rate, and determining the first touch sampling rate as the touch sampling rate corresponding to the current touch scene;
and in response to the fact that the preset touch scene white list comprises the current display scene packet name, adjusting the firmware touch scanning 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 scene.
9. The apparatus according to claim 7 or 8, wherein before determining the touch sampling rate corresponding to the current touch scene based on the current display scene packet name and a preset touch scene white list, the determining unit is further configured to:
and determining that the current display scene belongs to a preset display scene white list, wherein the display scene white list comprises the display scene of which the touch sampling rate is determined to correspond to the current touch scene based on the display scene.
10. The apparatus according to claim 6, wherein the determining unit determines the display frame rate and the touch sampling rate corresponding to the current display scene based on the current display scene in the following manner:
in response to that the current display scene does not belong to a preset display scene white list, determining a first display frame rate corresponding to the current display scene based on a preset corresponding relationship 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 corresponding relation between a display frame rate and a touch sampling rate, and determining the first touch sampling rate as a touch sampling rate corresponding to a current touch scene;
and the display scene white list comprises display scenes of which the touch sampling rate corresponds to the current touch scene determined based on the display scenes.
11. The device for determining the display frame rate and the touch sampling rate is characterized by comprising:
a memory to store 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 to 5.
12. A computer readable storage medium having stored therein instructions which, when executed by a processor, perform the method for determining a display frame rate and a touch sampling rate according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011173432.4A CN114428563A (en) | 2020-10-28 | 2020-10-28 | Method and device for determining display frame rate and touch sampling rate and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011173432.4A CN114428563A (en) | 2020-10-28 | 2020-10-28 | Method and device for determining display frame rate and touch sampling rate and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114428563A true CN114428563A (en) | 2022-05-03 |
Family
ID=81309166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011173432.4A Pending CN114428563A (en) | 2020-10-28 | 2020-10-28 | Method and device for determining display frame rate and touch sampling rate and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114428563A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140176450A1 (en) * | 2012-12-21 | 2014-06-26 | Barnesandnoble.Com Llc | System and apparatus for adaptive setting of scan rate |
CN108646938A (en) * | 2018-03-13 | 2018-10-12 | 广东欧珀移动通信有限公司 | Configuration method, device, terminal and the storage medium of touch screen |
CN110058739A (en) * | 2019-04-19 | 2019-07-26 | Oppo广东移动通信有限公司 | Control method, control device, electronic equipment, computer readable storage medium |
CN110362225A (en) * | 2019-06-18 | 2019-10-22 | 腾讯科技(成都)有限公司 | Touch screen sample frequency control method, device, medium and electronic equipment |
CN111625134A (en) * | 2020-05-18 | 2020-09-04 | Oppo(重庆)智能科技有限公司 | Display refresh rate synchronization method and device, terminal and storage medium |
CN111752368A (en) * | 2020-06-22 | 2020-10-09 | 无锡睿勤科技有限公司 | Display fluency adjusting method, system, terminal and storage medium |
-
2020
- 2020-10-28 CN CN202011173432.4A patent/CN114428563A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140176450A1 (en) * | 2012-12-21 | 2014-06-26 | Barnesandnoble.Com Llc | System and apparatus for adaptive setting of scan rate |
CN108646938A (en) * | 2018-03-13 | 2018-10-12 | 广东欧珀移动通信有限公司 | Configuration method, device, terminal and the storage medium of touch screen |
CN110058739A (en) * | 2019-04-19 | 2019-07-26 | Oppo广东移动通信有限公司 | Control method, control device, electronic equipment, computer readable storage medium |
CN110362225A (en) * | 2019-06-18 | 2019-10-22 | 腾讯科技(成都)有限公司 | Touch screen sample frequency control method, device, medium and electronic equipment |
CN111625134A (en) * | 2020-05-18 | 2020-09-04 | Oppo(重庆)智能科技有限公司 | Display refresh rate synchronization method and device, terminal and storage medium |
CN111752368A (en) * | 2020-06-22 | 2020-10-09 | 无锡睿勤科技有限公司 | Display fluency adjusting method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107526494B (en) | Keyboard display method, device, terminal and storage medium | |
EP3306441A1 (en) | Temperature control method and apparatus | |
CN112114765A (en) | Screen projection method and device and storage medium | |
EP3136699A1 (en) | Method and device for connecting external equipment | |
US11457479B2 (en) | Method and apparatus for configuring random access occasion, method and apparatus for random access | |
US11596018B2 (en) | Region configuration method and device | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
US12089101B2 (en) | Cell handover method and apparatus, handover configuration method and apparatus, and user equipment | |
CN112463084A (en) | Split screen display method and device, terminal equipment and computer readable storage medium | |
US11011124B2 (en) | Method and device for adjusting current of backlight, and storage medium | |
CN105227426B (en) | Application interface switching method and device and terminal equipment | |
CN107371222B (en) | Virtual card disabling method and device | |
CN110637502B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
EP3846488A1 (en) | Method and apparatus for controlling video | |
US20170041377A1 (en) | File transmission method and apparatus, and storage medium | |
CN104112460B (en) | Method and device for playing audio data | |
CN108650412B (en) | Display method, display device and computer readable storage medium | |
CN109922203B (en) | Terminal, screen off method and device | |
CN106375744B (en) | Information projecting method and device | |
CN105100135A (en) | Network sharing setting method and device | |
CN114428563A (en) | Method and device for determining display frame rate and touch sampling rate and storage medium | |
CN106170038B (en) | Recording method and device | |
CN111314232A (en) | Application acceleration method, device and storage medium | |
CN111414245B (en) | Method, device and medium for controlling flash memory read-write rate | |
EP4398609A1 (en) | Locating method and apparatus, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |