CN110619860A - Screen refresh rate adjusting method and device, storage medium and electronic equipment - Google Patents

Screen refresh rate adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110619860A
CN110619860A CN201910980098.4A CN201910980098A CN110619860A CN 110619860 A CN110619860 A CN 110619860A CN 201910980098 A CN201910980098 A CN 201910980098A CN 110619860 A CN110619860 A CN 110619860A
Authority
CN
China
Prior art keywords
refresh rate
screen
target
current
adjusting
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.)
Granted
Application number
CN201910980098.4A
Other languages
Chinese (zh)
Other versions
CN110619860B (en
Inventor
陈观荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910980098.4A priority Critical patent/CN110619860B/en
Publication of CN110619860A publication Critical patent/CN110619860A/en
Application granted granted Critical
Publication of CN110619860B publication Critical patent/CN110619860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory

Abstract

The embodiment of the application discloses a method and a device for adjusting a screen refresh rate, a storage medium and electronic equipment, wherein when detecting that an application is switched to a foreground operation, historical use information of the foreground application and the current refresh rate of the screen are obtained; determining a first target refresh rate corresponding to the foreground application according to the historical use information; judging whether the current refresh rate is consistent with the first target refresh rate or not; when the current refresh rate is inconsistent with the first target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate, and based on the method, the refresh rate of the screen is dynamically adjusted according to the use condition of the user to the application.

Description

Screen refresh rate adjusting method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of mobile terminals, in particular to a method and a device for adjusting a screen refresh rate, a storage medium and electronic equipment.
Background
With the development of mobile terminal technology, various mobile terminals have become indispensable tools in people's life and work. In a mobile terminal equipped with an operating system, the mobile terminal presents various display screens at different times by constantly refreshing the display screens.
Mobile terminals such as mobile phones and the like can display pictures according to a certain screen refresh rate, wherein the refresh rate refers to the number of times that an electron beam repeatedly scans an image on a screen, and the higher the refresh rate is, the better the stability of the displayed image is, the smoother the display is, the smaller the influence on eyes is, but the higher the power consumption is. However, with the development of single technology in the mobile, the operating system can already support setting different refresh rates, but in the conventional refresh rate setting scheme, a user is generally required to manually adjust the refresh rate as required, and the terminal cannot automatically adjust the screen refresh rate according to the use condition of the user.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting a screen refresh rate, a storage medium and an electronic device, which can realize intelligent adjustment of the screen refresh rate according to the use condition of a user on a terminal.
In a first aspect, an embodiment of the present application provides a method for adjusting a screen refresh rate, including:
when detecting that the application is switched to foreground operation, acquiring historical use information of foreground application and the current refresh rate of a screen;
determining a first target refresh rate corresponding to the foreground application according to the historical use information;
judging whether the current refresh rate is consistent with the first target refresh rate or not;
and when the current refresh rate is inconsistent with the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
In a second aspect, an embodiment of the present application further provides an apparatus for adjusting a screen refresh rate, including:
the data acquisition module is used for acquiring historical use information of foreground application and the current refresh rate of a screen when detecting that the application is switched to the foreground operation;
the refresh rate determining module is used for determining a first target refresh rate corresponding to the foreground application according to the historical use information;
the refresh rate judging module is used for judging whether the current refresh rate is consistent with the first target refresh rate or not;
and the refresh rate adjusting module is used for adjusting the refresh rate of the screen to the first target refresh rate when the current refresh rate is inconsistent with the first target refresh rate.
In a third aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method for adjusting a screen refresh rate according to any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the method for adjusting a screen refresh rate according to any embodiment of the present application by calling the computer program.
According to the technical scheme, when the application is switched to the foreground, the historical use information of the foreground application and the current refresh rate of the screen are obtained, the first target refresh rate corresponding to the foreground application is determined according to the historical use information, whether the current refresh rate is consistent with the first target refresh rate or not is judged, when the current refresh rate is inconsistent with the first target refresh rate, the refresh rate of the screen is adjusted to be the first target refresh rate, based on the first target refresh rate, the refresh rate of the screen is dynamically adjusted according to the use condition of the application by a user, different refresh rates are set according to the use condition of the application, and balance between power consumption and display effect is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment of the present disclosure.
Fig. 3 is a third flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an apparatus for adjusting a screen refresh rate according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the method for adjusting the screen refresh rate may be the device for adjusting the screen refresh rate provided by the embodiment of the present application, or an electronic device integrated with the device for adjusting the screen refresh rate, where the device for adjusting the screen refresh rate may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment of the present disclosure. The specific process of the method for adjusting the screen refresh rate provided by the embodiment of the application can be as follows:
in 101, when detecting that an application is switched to a foreground operation, acquiring historical use information of the foreground application and a current refresh rate of a screen.
The display process of mobile terminals such as mobile phones mainly comprises picture drawing operation, picture synthesis operation and picture display operation. For example, when displaying screen content, each application (such as a desktop, a video, an application program, or the like) first performs a drawing operation to draw respective display content, and after all applications complete the drawing operation, the system synthesizes the contents drawn by all applications into one display frame and outputs the display frame to the screen for display. The refresh rate of the screen is the number of times per second that the display image is drawn, i.e., the number of screen refreshes per second, in Hz (hertz). Generally, a higher refresh rate has a larger number of frames in the same time, and a higher frame rate results in less image sticking, smoother animation, but more power consumption.
According to the method and the device, historical use information of the user on each application is counted to determine the use habit of the user on the application, a proper refresh rate is set for the application according to the use habit of the user on the application, and when the application is located in foreground operation, the refresh rate is used as a target refresh rate to adjust the refresh rate of a screen.
In this embodiment, when the electronic device is operated in a bright screen state, when it is detected that an application is switched to foreground operation, historical usage information of the application switched to foreground is acquired, where the historical usage information includes usage frequency and/or accumulated usage time of the application by a user in a historical time period. The usage frequency can be counted in a week or day period. The historical time period may be the last half year or the last three months, etc.
The application switching to the foreground application may include various scenarios, for example, a user clicks an icon of an application from a desktop to open the application, and the application is in a closed state before the application is opened, and then the application is switched from the closed state to the foreground after the user performs the operation. For another example, the user switches application a, which is running in the foreground, from the foreground to the background, while switching application B, which is running in the background, from the background to the foreground, and so on. And when detecting that the application is switched to the foreground operation, the current refresh rate of the screen.
At 102, a first target refresh rate corresponding to a foreground application is determined based on historical usage information.
The method comprises the steps of presetting a mapping relation between historical use information and a first target refresh rate in the electronic equipment, and searching the corresponding first target refresh rate according to the relation after determining the historical use information of foreground application, wherein if the use frequency of one application is higher, the application is relatively frequently used by a user, and in order to enable the user to have better use experience when using the application, the relatively higher screen refresh rate can be set for the application. Conversely, a smaller refresh rate may be set for the application. When the cumulative usage period of an application is longer, a higher refresh rate is set for it as well.
For example, in some embodiments, a mapping relationship between a refresh rate and a usage frequency interval or an accumulated usage duration interval is set, after historical usage information of a foreground application is acquired, an interval to which the historical usage information belongs is determined, and then a refresh rate corresponding to the interval is searched. In this embodiment, the minimum refresh rate is 60Hz, and the values of the refresh rate may be 60Hz, 61Hz, 62Hz, … … 120Hz … … 240Hz, and the like. For example, in some embodiments, the refresh rate may take on values of 60Hz, 90Hz, 120Hz, 240 Hz.
For example, when the cumulative service life of the application is greater than or equal to 0 and less than 10 hours, the corresponding refresh rate is 60Hz, when the cumulative service life of the application is greater than or equal to 10 hours and less than 50 hours, the corresponding refresh rate is 90Hz, and when the cumulative service life of the application is greater than or equal to 50 hours, the corresponding refresh rate is 120 Hz. And so on.
At 103, it is determined whether the current refresh rate coincides with a first target refresh rate.
At 104, when the current refresh rate does not coincide with the first target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate.
After the first target refresh rate is determined, whether the current refresh rate is consistent with the first target refresh rate or not is judged, if the current refresh rate is inconsistent with the first target refresh rate, the current refresh rate of the screen is adjusted, for example, if the current refresh rate is smaller than the first target refresh rate, the refresh rate is increased to the first target refresh rate, and if the current refresh rate is larger than the first target refresh rate, the refresh rate is decreased to the first target refresh rate.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the method for adjusting a screen refresh rate provided in the embodiment of the present application, when it is detected that an application is switched to a foreground, historical usage information of the foreground application and a current refresh rate of a screen are obtained, a first target refresh rate corresponding to the foreground application is determined according to the historical usage information, whether the current refresh rate is consistent with the first target refresh rate is determined, and when the current refresh rate is inconsistent with the first target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 2, fig. 2 is a second flow chart illustrating a method for adjusting a screen refresh rate according to an embodiment of the invention. The method comprises the following steps:
in 201, when detecting that an application is switched to a foreground operation, acquiring historical use information of the foreground application and a current refresh rate of a screen.
When the electronic equipment is in the bright screen state operation, when the electronic equipment detects that the application is switched to the foreground operation, acquiring historical use information of the application switched to the foreground, for example, a user clicks an icon of an application from a desktop to open the application, and when the application is switched to the closed state before, switching the application from the closed state to the foreground after the user executes the operation.
At 202, a first target refresh rate corresponding to a foreground application is determined based on historical usage information.
The method comprises the steps that a mapping relation between historical use information and a first target refresh rate is preset in the electronic equipment, and after the historical use information of foreground application is determined, the corresponding first target refresh rate is searched according to the relation.
At 203, it is determined whether the current refresh rate coincides with a first target refresh rate.
And when the current refresh rate is the same as the first target refresh rate, the current refresh rate and the first target refresh rate are considered to be consistent, or when the current refresh rate and the first target refresh rate both belong to the same preset refresh rate interval, the current refresh rate and the first target refresh rate are judged to be consistent.
In 204, when the current refresh rate is greater than the first target refresh rate, the refresh rate of the screen is gradually decreased from the current refresh rate to the first target refresh rate according to the preset adjustment amplitude.
In 205, when the current refresh rate is less than the first target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate.
For a scene adjusted from a low refresh rate to a high refresh rate, the refresh rate can be directly set as the high refresh rate, but for a scene adjusted from the high refresh rate to the low refresh rate, if the high refresh rate is directly reduced to the low refresh rate, the display screen is easy to display in an unnatural and unsmooth manner, and very bad experience is brought to a user. Therefore, when the refresh rate of the screen needs to be reduced from the higher current refresh rate to the first target refresh rate, the intermediate refresh rate needs to be gradually reduced to buffer the change of the refresh rate, so that the user can have a process of slowly accepting the change, and the problems of unnatural and unsmooth display of the display screen are avoided.
For example, in some embodiments, 204 may include the following refinement steps:
a. when the current refresh rate is larger than the first target refresh rate, determining one or more intermediate refresh rates from large to small according to the preset adjusting amplitude and the current refresh rate;
b. and gradually reducing the refresh rate of the screen from the current refresh rate to a first target refresh rate according to one or more intermediate refresh rates from large to small.
In this embodiment, it is assumed that the preset adjustment amplitude is 5Hz, the current refresh rate is 90Hz, and the first target refresh rate is 60 Hz; then, according to the preset adjustment amplitude and the current refresh rate, the following intermediate refresh rates can be determined: 85Hz, 80Hz, 75Hz, 70Hz, 65H. Then, within a preset time (for example, 1 minute), the refresh rate is gradually (uniformly) decreased from 90Hz to 85Hz, then decreased from 85Hz to 80Hz, then decreased from 80Hz to 75Hz, then decreased from 75Hz to 70Hz, then decreased from 70Hz to 65Hz, and then decreased from 65Hz to 60 Hz. The above numbers are all examples, and in other embodiments, a suitable preset adjustment range may be set as needed.
Alternatively, in other embodiments, the refresh rate of the screen may be linearly gradually decreased from the current refresh rate to the first target refresh rate.
At 206, when it is detected that the foreground application is closed or switched to the background operation, the refresh rate of the screen is adjusted to the minimum refresh rate.
After the foreground runs for a period of time, if the electronic device detects that the foreground application is closed or detects that the foreground application is switched to the background, and the current display interface is switched to the desktop, the refresh rate of the screen is adjusted to be the minimum refresh rate, namely 60Hz, so that when the user does not use the application, the power consumption is reduced, and through the dynamic mode, when the application frequently used by the user or the application operated for a long time runs in the foreground, the screen is adjusted to be a higher refresh rate, and the user experience is improved; on the contrary, for example, when the desktop is displayed or the application which is not used by the user and has short service time runs in the foreground, the screen is adjusted to a lower refresh rate, so that the power consumption is reduced, and the balance between the user experience and the power consumption is ensured.
If the foreground application is switched to the background and other applications are switched to the foreground, the dynamic adjustment of the refresh rate of the screen is controlled according to the processes 201 to 206 again so as to adapt to the use condition of the electronic equipment by the user.
As can be seen from the above, in the method for adjusting the screen refresh rate provided in this embodiment, when the refresh rate of the screen is adjusted to be lower, in order to avoid the problem that the image display is not smooth due to the fact that the reduction range is too large because the refresh rate is directly reduced from a higher refresh rate to a lower refresh rate, the intermediate refresh rate is determined first, and the electronic device is sequentially adjusted from the current refresh rate to each of the intermediate refresh rates in the order from the current refresh rate to the first target refresh rate until the current refresh rate is adjusted to the first target refresh rate, so as to buffer the change of the refresh rate.
In some embodiments, before obtaining the historical usage information of the foreground application and the current refresh rate of the screen, further comprising: judging whether the foreground application is in a preset blacklist or not; if not, acquiring historical use information of the foreground application and the current refresh rate of the screen.
In this embodiment, to further reduce power consumption, a user may add some applications with a long duration to the blacklist, for example, some video playing applications, or game applications, and these applications may generally have a high cumulative usage time or usage frequency due to an excessively long duration, and if the applications are continuously refreshed at a high refresh rate, the power consumption may be excessively high. Therefore, if a user wants to guarantee the standby time of the mobile phone, the applications can be added into the blacklist, and even if the applications are switched to be operated in the foreground, the refresh rate of the applications cannot be increased.
Referring to fig. 3, fig. 3 is a third flow chart illustrating a method for adjusting a screen refresh rate according to an embodiment of the invention. The method comprises the following steps:
in 301, when detecting that an application is switched to a foreground operation, acquiring historical use information of the foreground application and a current refresh rate of a screen.
At 302, a first target refresh rate corresponding to a foreground application is determined based on historical usage information.
In 303, a current ambient light level is obtained and a second target refresh rate corresponding to the ambient light level is determined.
Because human eyes have different sensitivities to screen stroboflash under different light brightness conditions. On the basis of the foregoing embodiment, after the first target refresh rate is determined, the current ambient light brightness is detected, and a second target refresh rate is determined according to the detected ambient light brightness and the mapping relationship between the preset ambient light brightness and the target refresh rate.
At 304, it is determined whether the first target refresh rate is not less than the second target refresh rate.
When the first target refresh rate is not less than the second target refresh rate, execute 306; when the first target refresh rate is less than the second target refresh rate, 308 is performed.
At 305, it is determined whether the current refresh rate coincides with a first target refresh rate.
At 306, when the current refresh rate does not coincide with the first target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate.
At 307, it is determined whether the current refresh rate is consistent with a second target refresh rate.
At 308, when the current refresh rate is inconsistent with the second target refresh rate, the refresh rate of the screen is adjusted to the second target refresh rate.
After the second target refresh rate is determined, the higher of the first target refresh rate and the second target refresh rate is taken as the refresh rate to be finally adjusted. For example, if the first target refresh rate is not less than the second target refresh rate, the refresh rate of the screen is adjusted to the first target refresh rate when the current refresh rate is not identical to the first target refresh rate. And if the first target refresh rate is smaller than the second target refresh rate, adjusting the refresh rate of the screen to be the second target refresh rate when the current refresh rate is inconsistent with the second target refresh rate. The refresh rate corresponding to different ambient light brightness may be an empirical value, where the refresh rate may be positively correlated with the ambient light brightness, that is, the brighter the ambient light brightness is, the higher the refresh rate is to avoid stroboflash.
Therefore, the method for adjusting the screen refresh rate provided by the embodiment integrates the use condition of the user to the application and the ambient light brightness, and dynamically adjusts the refresh rate of the electronic device, so that the screen is ensured not to have stroboflash under various ambient light brightness, and the picture is ensured to have better fluency.
In one embodiment, a device for adjusting a screen refresh rate is also provided. Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus 400 for adjusting a screen refresh rate according to an embodiment of the present disclosure. The device 400 for adjusting the screen refresh rate is applied to an electronic device, and the device 400 for adjusting the screen refresh rate includes a data obtaining module 401, a refresh rate determining module 402, a refresh rate determining module 403, and a refresh rate adjusting module 404, as follows:
the data acquisition module 401 is configured to acquire historical usage information of foreground applications and a current refresh rate of a screen when detecting that an application is switched to foreground operation;
a refresh rate determining module 402, configured to determine, according to the historical usage information, a first target refresh rate corresponding to the foreground application;
a refresh rate determining module 403, configured to determine whether the current refresh rate is consistent with the first target refresh rate;
a refresh rate adjusting module 404, configured to adjust the refresh rate of the screen to the first target refresh rate when the current refresh rate is inconsistent with the first target refresh rate.
In some embodiments, the refresh rate adjustment module 404 is further configured to:
when the current refresh rate is larger than the first target refresh rate, gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to a preset adjustment amplitude;
and when the current refresh rate is smaller than the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
In some embodiments, the refresh rate adjustment module 404 is further configured to:
when the current refresh rate is larger than the first target refresh rate, determining one or more intermediate refresh rates from large to small according to the preset adjustment amplitude and the current refresh rate;
and gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to the one or more intermediate refresh rates from large to small.
In some embodiments, the refresh rate adjustment module 404 is further configured to:
and when the foreground application is detected to be closed or switched to the background operation, adjusting the refresh rate of the screen to be the minimum refresh rate.
In some embodiments, the refresh rate adjustment module 404 is further configured to:
and reducing the refresh rate of the screen from the first target refresh rate to the minimum refresh rate according to a preset adjusting amplitude.
In some embodiments, the apparatus 400 for adjusting a screen refresh rate further includes a blacklist determining module, configured to determine whether the foreground application is in a preset blacklist;
the data acquisition module 401 is further configured to: and when the blacklist is judged and judged that the foreground application is not located in the blacklist, acquiring historical use information of the foreground application and the current refresh rate of a screen.
In some embodiments, the apparatus 400 for adjusting the screen refresh rate further includes a brightness determination module, configured to:
the refresh rate determination module 402 is further configured to: acquiring current ambient light brightness, and determining a second target refresh rate corresponding to the ambient light brightness;
and determining whether the first target refresh rate is not less than the second target refresh rate;
when the first target refresh rate is not less than the second target refresh rate, executing to judge whether the current refresh rate is consistent with the first target refresh rate;
when the first target refresh rate is smaller than the second target refresh rate, judging whether the current refresh rate is consistent with the second target refresh rate;
and when the current refresh rate is inconsistent with the second target refresh rate, adjusting the refresh rate of the screen to the second target refresh rate.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It should be noted that the device for adjusting the screen refresh rate provided in the embodiment of the present application and the method for adjusting the screen refresh rate in the foregoing embodiment belong to the same concept, and any method provided in the method for adjusting the screen refresh rate may be run on the device for adjusting the screen refresh rate, and a specific implementation process thereof is described in detail in the method for adjusting the screen refresh rate, and is not described herein again.
As can be seen from the above, in the device for adjusting the screen refresh rate provided in this embodiment of the application, when it is detected that an application is switched to the foreground, the data obtaining module 401 obtains historical usage information of the foreground application and the current refresh rate of the screen, the refresh rate determining module 402 determines the first target refresh rate corresponding to the foreground application according to the historical usage information, the refresh rate determining module 403 determines whether the current refresh rate is consistent with the first target refresh rate, and when the current refresh rate is not consistent with the first target refresh rate, the refresh rate adjusting module 404 adjusts the refresh rate of the screen to the first target refresh rate.
The embodiment of the application further provides an electronic device, and the electronic device can be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 800 may include a camera module 801, a memory 802, a processor 803, a touch display 804, a speaker 805, a microphone 806, and the like.
The camera module 801 may include a circuit for adjusting a screen refresh rate, which may be implemented by hardware and/or software components, and may include various Processing units defining an Image Signal Processing (Image Signal Processing) pipeline. The adjusting circuit of the screen refresh rate at least comprises: a camera, an image signal Processor (ISP Processor), control logic, an image memory, and a display. Wherein the camera may comprise at least one or more lenses and an image sensor. The image sensor may include an array of color filters (e.g., Bayer filters). The image sensor may acquire light intensity and wavelength information captured with each imaging pixel of the image sensor and provide a set of raw image data that may be processed by an image signal processor.
The image signal processor may process the raw image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the image signal processor may perform one or more screen refresh rate adjustment operations on the raw image data, gathering statistical information about the image data. The adjustment operation of the screen refresh rate can be performed with the same or different bit depth precision. The raw image data can be stored in an image memory after being processed by an image signal processor. The image signal processor may also receive image data from an image memory.
The image Memory may be part of a Memory device, a storage device, or a separate dedicated Memory within the electronic device, and may include a DMA (Direct Memory Access) feature.
When image data from the image memory is received, the image signal processor may perform one or more screen refresh rate adjustment operations, such as temporal filtering. The processed image data may be sent to an image memory for additional processing before being displayed. The image signal processor may also receive processed data from the image memory and perform image data processing on the processed data in the raw domain and in the RGB and YCbCr color spaces. The processed image data may be output to a display for viewing by a user and/or further processed by a Graphics Processing Unit (GPU). Further, the output of the image signal processor may also be sent to an image memory, and the display may read image data from the image memory. In one embodiment, the image memory may be configured to implement one or more frame buffers.
The statistical data determined by the image signal processor may be sent to the control logic. For example, the statistical data may include statistical information of the image sensor such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens shading correction, and the like.
The control logic may include a processor and/or microcontroller that executes one or more routines (e.g., firmware). One or more routines may determine camera control parameters and ISP control parameters based on the received statistics. For example, the control parameters of the camera may include camera flash control parameters, control parameters of the lens (e.g., focal length for focusing or zooming), or a combination of these parameters. The ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (e.g., during RGB processing), etc.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a circuit for adjusting a screen refresh rate according to the present embodiment. For ease of illustration, only aspects of the screen refresh rate adjustment techniques associated with embodiments of the present invention are shown.
For example, the adjusting circuit of the screen refresh rate may include: camera, image signal processor, control logic ware, image memory, display. The camera may include one or more lenses and an image sensor, among others. In some embodiments, the camera may be either a tele camera or a wide camera.
And the image collected by the camera is transmitted to an image signal processor for processing. After the image signal processor processes the image, statistical data of the image (such as brightness of the image, contrast value of the image, color of the image, etc.) may be sent to the control logic. The control logic device can determine the control parameters of the camera according to the statistical data, so that the camera can carry out operations such as automatic focusing and automatic exposure according to the control parameters. The image can be stored in the image memory after being processed by the image signal processor. The image signal processor may also read the image stored in the image memory for processing. In addition, the image can be directly sent to a display for displaying after being processed by the image signal processor. The display may also read the image in the image memory for display.
In addition, not shown in the figure, the electronic device may further include a CPU and a power supply module. The CPU is connected with the logic controller, the image signal processor, the image memory and the display, and is used for realizing global control. The power supply module is used for supplying power to each module.
The memory 802 stores applications containing executable code. The application programs may constitute various functional modules. The processor 803 executes various functional applications and data processing by running the application programs stored in the memory 802.
The processor 803 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 802 and calling data stored in the memory 802, thereby integrally monitoring the electronic device.
The touch display screen 804 may be used to receive user touch control operations for the electronic device. Speaker 805 may play sound signals. The microphone 806 may be used to pick up sound signals.
In this embodiment, the processor 803 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 803 runs the application programs stored in the memory 802, so as to execute:
when detecting that the application is switched to foreground operation, acquiring historical use information of foreground application and the current refresh rate of a screen;
determining a first target refresh rate corresponding to the foreground application according to the historical use information;
judging whether the current refresh rate is consistent with the first target refresh rate or not;
and when the current refresh rate is inconsistent with the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
In some embodiments, when the current refresh rate is not consistent with the first target refresh rate, and the refresh rate of the screen is adjusted to the first target refresh rate, the processor 803 performs:
when the current refresh rate is larger than the first target refresh rate, gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to a preset adjustment amplitude;
and when the current refresh rate is smaller than the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
In some embodiments, when the current refresh rate is greater than the first target refresh rate, and the refresh rate of the screen is gradually decreased from the current refresh rate to the first target refresh rate by a preset adjustment magnitude, the processor 803 performs:
when the current refresh rate is larger than the first target refresh rate, determining one or more intermediate refresh rates from large to small according to the preset adjustment amplitude and the current refresh rate;
and gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to the one or more intermediate refresh rates from large to small.
In some embodiments, after adjusting the refresh rate of the screen to the first target refresh rate, the processor 803 further performs:
and when the foreground application is detected to be closed or switched to the background operation, adjusting the refresh rate of the screen to be the minimum refresh rate.
In some embodiments, when adjusting the refresh rate of the screen to the minimum refresh rate, the processor 803 performs:
and reducing the refresh rate of the screen from the first target refresh rate to the minimum refresh rate according to a preset adjusting amplitude.
In some embodiments, before obtaining the historical usage information of the foreground application and the current refresh rate of the screen, the processor 803 further performs:
acquiring current ambient light brightness, and determining a second target refresh rate corresponding to the ambient light brightness;
judging whether the first target refresh rate is not less than the second target refresh rate;
when the first target refresh rate is not less than the second target refresh rate, executing to judge whether the current refresh rate is consistent with the first target refresh rate;
when the first target refresh rate is smaller than the second target refresh rate, judging whether the current refresh rate is consistent with the second target refresh rate;
and when the current refresh rate is inconsistent with the second target refresh rate, adjusting the refresh rate of the screen to the second target refresh rate.
Therefore, the embodiment of the application provides an electronic device, when it is detected that an application is switched to a foreground, the electronic device obtains historical use information of the foreground application and a current refresh rate of a screen, determines a first target refresh rate corresponding to the foreground application according to the historical use information, determines whether the current refresh rate is consistent with the first target refresh rate, and adjusts the refresh rate of the screen to the first target refresh rate when the current refresh rate is inconsistent with the first target refresh rate.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the method for adjusting a screen refresh rate according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The method, the apparatus, the storage medium, and the electronic device for adjusting the screen refresh rate according to the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for adjusting a screen refresh rate, comprising:
when detecting that the application is switched to foreground operation, acquiring historical use information of foreground application and the current refresh rate of a screen;
determining a first target refresh rate corresponding to the foreground application according to the historical use information;
judging whether the current refresh rate is consistent with the first target refresh rate or not;
and when the current refresh rate is inconsistent with the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
2. The method for adjusting a screen refresh rate according to claim 1, wherein the adjusting the screen refresh rate to the first target refresh rate when the current refresh rate is inconsistent with the first target refresh rate comprises:
when the current refresh rate is larger than the first target refresh rate, gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to a preset adjustment amplitude;
and when the current refresh rate is smaller than the first target refresh rate, adjusting the refresh rate of the screen to the first target refresh rate.
3. The method for adjusting the screen refresh rate according to claim 2, wherein gradually decreasing the screen refresh rate from the current refresh rate to the first target refresh rate according to a preset adjustment amplitude when the current refresh rate is greater than the first target refresh rate comprises:
when the current refresh rate is larger than the first target refresh rate, determining one or more intermediate refresh rates from large to small according to the preset adjustment amplitude and the current refresh rate;
and gradually reducing the refresh rate of the screen from the current refresh rate to the first target refresh rate according to the one or more intermediate refresh rates from large to small.
4. The method for adjusting the refresh rate of a screen according to claim 1, wherein after the adjusting the refresh rate of the screen to the first target refresh rate, further comprising:
and when the foreground application is detected to be closed or switched to the background operation, adjusting the refresh rate of the screen to be the minimum refresh rate.
5. The method for adjusting the refresh rate of the screen according to claim 4, wherein the adjusting the refresh rate of the screen to the minimum refresh rate comprises:
and reducing the refresh rate of the screen from the first target refresh rate to the minimum refresh rate according to a preset adjusting amplitude.
6. The method for adjusting screen refresh rate according to claim 1, wherein said obtaining the historical usage information of the foreground application and the current refresh rate of the screen is preceded by:
judging whether the foreground application is in a preset blacklist or not;
if not, acquiring historical use information of the foreground application and the current refresh rate of the screen.
7. The method for adjusting screen refresh rate according to any one of claims 1 to 6, wherein after determining the first target refresh rate corresponding to the foreground application according to the historical usage information, the method further comprises:
acquiring current ambient light brightness, and determining a second target refresh rate corresponding to the ambient light brightness;
judging whether the first target refresh rate is not less than the second target refresh rate;
when the first target refresh rate is not less than the second target refresh rate, executing to judge whether the current refresh rate is consistent with the first target refresh rate;
when the first target refresh rate is smaller than the second target refresh rate, judging whether the current refresh rate is consistent with the second target refresh rate;
and when the current refresh rate is inconsistent with the second target refresh rate, adjusting the refresh rate of the screen to the second target refresh rate.
8. An apparatus for adjusting a screen refresh rate, comprising:
the data acquisition module is used for acquiring historical use information of foreground application and the current refresh rate of a screen when detecting that the application is switched to the foreground operation;
the refresh rate determining module is used for determining a first target refresh rate corresponding to the foreground application according to the historical use information;
the refresh rate judging module is used for judging whether the current refresh rate is consistent with the first target refresh rate or not;
and the refresh rate adjusting module is used for adjusting the refresh rate of the screen to the first target refresh rate when the current refresh rate is inconsistent with the first target refresh rate.
9. A storage medium having stored thereon a computer program, characterized in that when the computer program is run on a computer, it causes the computer to execute the method of adjusting a screen refresh rate according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the method for adjusting a screen refresh rate according to any one of claims 1 to 7 by calling the computer program.
CN201910980098.4A 2019-10-15 2019-10-15 Screen refresh rate adjusting method and device, storage medium and electronic equipment Active CN110619860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910980098.4A CN110619860B (en) 2019-10-15 2019-10-15 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910980098.4A CN110619860B (en) 2019-10-15 2019-10-15 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110619860A true CN110619860A (en) 2019-12-27
CN110619860B CN110619860B (en) 2022-11-29

Family

ID=68925840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910980098.4A Active CN110619860B (en) 2019-10-15 2019-10-15 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110619860B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118618A (en) * 2020-09-18 2020-12-22 上海闻泰电子科技有限公司 Screen refresh rate configuration method and device, computer equipment and readable storage medium
CN112667339A (en) * 2020-12-31 2021-04-16 努比亚技术有限公司 Method for setting screen refresh rate, terminal and computer readable medium
CN113129828A (en) * 2019-12-30 2021-07-16 乐金显示有限公司 Display device and driving method thereof
WO2021175213A1 (en) * 2020-03-06 2021-09-10 华为技术有限公司 Refresh rate switching method and electronic device
CN113625860A (en) * 2021-07-23 2021-11-09 荣耀终端有限公司 Mode switching method and device, electronic equipment and chip system
CN113760412A (en) * 2020-06-01 2021-12-07 Oppo(重庆)智能科技有限公司 Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium
CN113805983A (en) * 2020-09-08 2021-12-17 荣耀终端有限公司 Method for adjusting window refresh rate and electronic equipment
US11328661B2 (en) 2020-02-10 2022-05-10 Samsung Electronics Co., Ltd. Electronic device including display and method for operating the same
EP4220392A4 (en) * 2021-06-10 2024-05-01 Honor Device Co Ltd Display method, electronic device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106292838A (en) * 2016-07-27 2017-01-04 联想(北京)有限公司 Control method, processor and electronic equipment
CN106791212A (en) * 2017-03-10 2017-05-31 广东欧珀移动通信有限公司 A kind of control method of mobile terminal refresh rate, device and mobile terminal
CN106941625A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method for playing back of mobile terminal, device and mobile terminal
CN109147714A (en) * 2017-06-16 2019-01-04 北京小米移动软件有限公司 The refresh rate method of adjustment and device of screen, computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106292838A (en) * 2016-07-27 2017-01-04 联想(北京)有限公司 Control method, processor and electronic equipment
CN106791212A (en) * 2017-03-10 2017-05-31 广东欧珀移动通信有限公司 A kind of control method of mobile terminal refresh rate, device and mobile terminal
CN106941625A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method for playing back of mobile terminal, device and mobile terminal
CN109147714A (en) * 2017-06-16 2019-01-04 北京小米移动软件有限公司 The refresh rate method of adjustment and device of screen, computer readable storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113129828A (en) * 2019-12-30 2021-07-16 乐金显示有限公司 Display device and driving method thereof
US11328661B2 (en) 2020-02-10 2022-05-10 Samsung Electronics Co., Ltd. Electronic device including display and method for operating the same
WO2021175213A1 (en) * 2020-03-06 2021-09-10 华为技术有限公司 Refresh rate switching method and electronic device
CN113760412A (en) * 2020-06-01 2021-12-07 Oppo(重庆)智能科技有限公司 Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium
CN113805983A (en) * 2020-09-08 2021-12-17 荣耀终端有限公司 Method for adjusting window refresh rate and electronic equipment
CN113805983B (en) * 2020-09-08 2022-12-02 荣耀终端有限公司 Method for adjusting window refresh rate and electronic equipment
CN112118618A (en) * 2020-09-18 2020-12-22 上海闻泰电子科技有限公司 Screen refresh rate configuration method and device, computer equipment and readable storage medium
CN112118618B (en) * 2020-09-18 2024-01-26 上海闻泰电子科技有限公司 Screen refresh rate configuration method, device, computer equipment and readable storage medium
CN112667339A (en) * 2020-12-31 2021-04-16 努比亚技术有限公司 Method for setting screen refresh rate, terminal and computer readable medium
CN112667339B (en) * 2020-12-31 2023-12-08 努比亚技术有限公司 Screen refresh rate setting method, terminal and computer readable medium
EP4220392A4 (en) * 2021-06-10 2024-05-01 Honor Device Co Ltd Display method, electronic device and computer storage medium
CN113625860A (en) * 2021-07-23 2021-11-09 荣耀终端有限公司 Mode switching method and device, electronic equipment and chip system
WO2023000772A1 (en) * 2021-07-23 2023-01-26 荣耀终端有限公司 Mode switching method and apparatus, electronic device and chip system
CN113625860B (en) * 2021-07-23 2023-01-31 荣耀终端有限公司 Mode switching method and device, electronic equipment and chip system

Also Published As

Publication number Publication date
CN110619860B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN110619860B (en) Screen refresh rate adjusting method and device, storage medium and electronic equipment
US11800221B2 (en) Time-lapse shooting method and device
EP3276604A1 (en) Method and device for adjusting refresh rate
JP2023516206A (en) Refresh rate switching method and electronic device
CN106875925B (en) The refresh rate method of adjustment and device of screen
KR101889624B1 (en) Method and device for mode switching
CN110766621B (en) Image processing method, image processing device, storage medium and electronic equipment
CN113963659B (en) Display device and adjustment method thereof
US10176769B2 (en) Liquid crystal display method and device, and storage medium
EP3168836A1 (en) Liquid crystal display method and device, computer program and recording medium
CN110445986B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109147714A (en) The refresh rate method of adjustment and device of screen, computer readable storage medium
CN113625860B (en) Mode switching method and device, electronic equipment and chip system
WO2017049939A1 (en) Picture display method, device, and terminal
WO2022257451A1 (en) Display method, electronic device and computer storage medium
CN110798627B (en) Shooting method, shooting device, storage medium and terminal
CN108200279A (en) backlight adjusting method, device and equipment
WO2020207427A1 (en) Method for image-processingand electronic device
CN113674718B (en) Display brightness adjusting method, device and storage medium
US10769416B2 (en) Image processing method, electronic device and storage medium
CN110971833B (en) Image processing method and device, electronic equipment and storage medium
CN110868533A (en) HDR mode determination method, device, storage medium and terminal
JP2011049988A (en) Image processing apparatus and camera
CN109102779A (en) backlight adjusting method and device
CN114463191A (en) Image processing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant