WO2022082951A1 - 帧率设置方法、装置、存储介质及移动终端 - Google Patents

帧率设置方法、装置、存储介质及移动终端 Download PDF

Info

Publication number
WO2022082951A1
WO2022082951A1 PCT/CN2020/134471 CN2020134471W WO2022082951A1 WO 2022082951 A1 WO2022082951 A1 WO 2022082951A1 CN 2020134471 W CN2020134471 W CN 2020134471W WO 2022082951 A1 WO2022082951 A1 WO 2022082951A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame rate
preset
mobile terminal
refresh
application identifier
Prior art date
Application number
PCT/CN2020/134471
Other languages
English (en)
French (fr)
Inventor
刘杰
Original Assignee
Tcl通讯(宁波)有限公司
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 Tcl通讯(宁波)有限公司 filed Critical Tcl通讯(宁波)有限公司
Priority to US18/250,199 priority Critical patent/US11994931B2/en
Publication of WO2022082951A1 publication Critical patent/WO2022082951A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communication technologies, and in particular to a frame rate setting method, device, storage medium and mobile terminal.
  • FPS FrameworkPerSecond, the number of frames per second
  • FPS is defined as the number of frames per second transmitted by the picture, which generally refers to the number of pictures of animation or video.
  • FPS is a measure of the amount of information used to save and display dynamic video. The more frames per second, the smoother the displayed action.
  • the frame rates supported by each application are becoming more and more differentiated.
  • some game applications When the frame rate reaches 120Hz, you can experience the ultimate smoothness, and some small video applications may only need a frame rate of 60Hz.
  • existing terminals usually only support a fixed frame rate, which cannot meet the requirements of various applications.
  • the power consumption of the terminal is increased.
  • the present application provides a frame rate setting method, device, storage medium and mobile terminal, aiming to solve the technical problem that the existing frame rate is fixed and cannot meet application requirements and increases the power consumption of the terminal.
  • the present application provides a frame rate setting method, applied to a mobile terminal, including:
  • the wake-up command does not carry a frame rate refresh signal, setting the display frame rate of the mobile terminal to a first preset frame rate;
  • the wake-up command carries a frame rate refresh signal, detecting whether the frame rate refresh signal is a preset low power consumption signal;
  • the frame rate refresh signal is a preset low power consumption signal, setting the display frame rate of the mobile terminal to a second preset frame rate;
  • the frame rate refresh signal is not a preset low power consumption signal, a frame rate application list to be refreshed is acquired, and the display frame rate of the mobile terminal is set according to the frame rate application list to be refreshed.
  • the present application also provides a frame rate setting device, applied to a mobile terminal, including:
  • a first detection module configured to detect whether the wake-up command carries a frame rate refresh signal when the mobile terminal receives a wake-up command
  • a first setting module configured to set the display frame rate of the mobile terminal to a first preset frame rate if the wake-up instruction does not carry a frame rate refresh signal
  • a second detection module configured to detect whether the frame rate refresh signal is a preset low power consumption signal if the wake-up command carries a frame rate refresh signal
  • a second setting module configured to set the display frame rate of the mobile terminal to a second preset frame rate if the frame rate refresh signal is a preset low power consumption signal;
  • a third setting module configured to acquire a frame rate application list to be refreshed if the frame rate refresh signal is not a preset low power consumption signal, and set the display frame of the mobile terminal according to the frame rate application list to be refreshed Rate.
  • the third setting module specifically includes:
  • an acquisition submodule for acquiring the current display frame rate of the mobile terminal
  • the first setting submodule is configured to set the display frame rate of the mobile terminal according to the current display frame rate and the application list of the frame rate to be refreshed.
  • the frame rate application list to be refreshed stores at least one first application identifier and the cumulative refresh times corresponding to each first application identifier
  • the first setting sub-module stores Specifically include:
  • a first judging unit for judging whether the current display frame rate is a third preset frame rate
  • a first setting unit configured to set the display frame rate of the mobile terminal according to the preset list and the to-be-refreshed frame rate application list if the current display frame rate is a third preset frame rate;
  • a second determination unit configured to update all the cumulative refresh times if the current display frame rate is not the third refresh frame rate, and determine whether there is a cumulative refresh number greater than a preset number in the updated cumulative refresh times ;
  • the second setting unit if there is a cumulative refresh count greater than a preset count among the updated cumulative refresh counts, set the mobile terminal according to a preset list and a first application identifier corresponding to the cumulative refresh count greater than the preset count display frame rate.
  • the preset list stores multiple second application identifiers and preset frame rates and priorities corresponding to the multiple second application identifiers
  • the second setting unit Specifically for:
  • the preset frame rate corresponding to the second application identifier with the highest priority is set as the display frame rate.
  • the second setting unit is further used for:
  • the preset frame rate and the priority in the preset list that match the first application identifier corresponding to the accumulated refresh times greater than the preset number of times determine whether the preset list is in the preset list. Whether there is a second application identifier matching the first application identifier corresponding to the cumulative refresh times greater than the preset number of times;
  • the display frame rate is set as the preset default frame rate.
  • an instruction generation module is also included, which is used for:
  • the mobile terminal Before receiving the wake-up instruction, when the mobile terminal receives a frame rate refresh signal, generate the wake-up instruction carrying the frame rate refresh signal;
  • the wake-up instruction is generated.
  • the second setting module is further used for:
  • the display frame rate of the mobile terminal After the setting of the display frame rate of the mobile terminal to the second preset frame rate, if the display screen of the mobile terminal remains static for a second preset duration, the display frame rate of the mobile terminal is set to The fourth preset frame rate.
  • the present application also provides a computer-readable storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are adapted to be loaded by a processor to execute the frame rate setting method described in any one of the above.
  • the present application also provides a mobile terminal, including a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing any one of the above steps in the frame rate setting method.
  • the present application discloses a frame rate setting method, device, storage medium and mobile terminal.
  • the frame rate setting method is applied to a mobile terminal.
  • a wake-up command carrying a frame rate refresh signal is received, and the frame rate refresh signal is not
  • the display frame rate of the mobile terminal is set according to the application list of the frame rate to be refreshed, and the display frame rate matching the application can be set according to the application's own attributes, which can not only meet the display requirements of various applications , it can also avoid the increased power consumption of the mobile terminal caused by maintaining a high frame rate for a long time, thereby improving the performance of the mobile terminal.
  • FIG. 1 is a schematic flowchart of a frame rate setting method provided by an embodiment of the present application.
  • FIG. 2 is another schematic flowchart of a frame rate setting method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a frame rate setting process provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an apparatus for setting a frame rate provided by an embodiment of the present application.
  • FIG. 5 is another schematic structural diagram of an apparatus for setting a frame rate provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • Embodiments of the present application provide a frame rate setting method, device, storage medium, and mobile terminal.
  • FIG. 1 is a schematic flowchart of a frame rate setting method provided by an embodiment of the present application.
  • the frame rate setting method is applied to a mobile terminal, and the mobile terminal is any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet Computers, smart watches, etc.
  • the frame rate setting method provided by this embodiment mainly includes steps S101 to S105, which are described as follows:
  • Step S101 when a wake-up command is received, it is detected whether the wake-up command carries a frame rate refresh signal, and if so, step S103 is performed, and if not, step S102 is performed.
  • FIG. 2 is another schematic flowchart of the frame rate setting method provided by the embodiment of the present application.
  • the method may further include: when a frame rate refresh signal is received, generating a The wake-up command of the frame rate refresh signal, or when the mobile terminal enables the frame rate adjustment function and does not receive the frame rate refresh signal for a first preset duration, the wake-up command is generated.
  • the frame rate refresh signal may be a Vsync (vertical synchronization) signal. Whenever the display frame rate of the terminal screen needs to be refreshed, a Vsync signal will be generated.
  • Vsync vertical synchronization
  • the frame rate refresh signal when the frame rate refresh signal is not received and reaches the first preset duration, it can be considered that the display screen of the terminal screen is static. At this time, in order to save the power consumption of the mobile terminal, a wake-up instruction can be generated, Used to indicate that the display frame rate will be reduced.
  • the first preset duration may be 5 seconds.
  • Step S102 Set the display frame rate of the mobile terminal to the first preset frame rate.
  • the first preset frame rate may be 30 Hz. It is easy to understand that if the wake-up command does not carry the frame rate refresh signal, then the wake-up command is generated without receiving the frame rate refresh signal and reaches the first preset duration, then it can be considered that the current display screen of the mobile terminal is static and There is no need to update, so that the frame rate of the terminal screen can be reduced to a minimum value, so as to reduce the power consumption of the mobile terminal.
  • the current display frame rate of the mobile terminal is 60 Hz
  • the static picture does not need to constantly change the screen, that is, such a high display frame rate is not required, it will cause power consumption of the mobile terminal.
  • a wake-up command is generated, and the display frame rate of the mobile terminal is set to 30Hz.
  • Step S103 Detect whether the frame rate refresh signal is a preset low power consumption signal, if yes, go to step S104 , if not, go to step S105 .
  • a preset low power consumption signal when the mobile terminal is in a low power consumption mode or a low power consumption mode, a preset low power consumption signal may be automatically generated, or the frame rate setting function may include a low power consumption state, when the user selects the low power consumption state When the power consumption state is low, a preset low power consumption signal is generated.
  • the preset low power consumption signal is a kind of frame rate refresh signal, used to instruct to refresh the frame rate to a lower frame rate.
  • Step S104 Set the display frame rate of the mobile terminal to the second preset frame rate.
  • the display frame rate refresh signal is a preset low power consumption signal
  • the display frame rate should be appropriately reduced.
  • the second The preset frame rate can be 60Hz.
  • step S106 may also be included:
  • Step S106 If the display screen of the mobile terminal remains static for the second preset duration, set the display frame rate of the mobile terminal to the fourth preset frame rate.
  • the fourth preset frame rate is smaller than the second preset frame rate. Specifically, when a signal carrying a preset low power consumption is received, it can be understood that the current mobile terminal needs to reduce power consumption. Therefore, when it is detected that the display screen of the mobile terminal remains static for the second preset duration, that is, the current When the display screen of the mobile terminal is not updated, the display frame rate is further reduced to further save the power consumption of the mobile terminal.
  • the fourth preset frame rate may be 30Hz.
  • Step S105 Obtain a frame rate application list to be refreshed, and set a display frame rate of the mobile terminal according to the frame rate application list to be refreshed.
  • step S105 may mainly include steps S1051 to S1054, which are described as follows:
  • Step S1051 Acquire a frame rate application list to be refreshed and a current display frame rate of the mobile terminal.
  • the display frame rate of the mobile terminal should be set to a better frame rate.
  • Step S1052 Set the display frame rate of the mobile terminal according to the current display frame rate and the application list of the frame rate to be refreshed.
  • Step S1052 mainly includes steps S1052-1 to S1052-4, which are described as follows :
  • Step S1052-1 Determine whether the current display frame rate is the third preset frame rate, if yes, execute step S1052-2, if not, execute step S1052-3.
  • the third preset frame rate is the lowest frame rate, that is, it is determined whether the current display frame rate is the lowest value. If the current display frame rate is the lowest value, in order to ensure the smoothness of the user's use, there is no movement from the still picture to the motion. Hysteresis, must immediately respond to frame rate refresh signal.
  • the display frame rate of the game application is generally greater than 100Hz. Caton will greatly reduce the user experience.
  • Step S1052-2 Set the display frame rate of the mobile terminal according to the preset list and the frame rate application list to be refreshed.
  • Step S1052-2 may include: obtaining the frames in the preset list and the frames to be refreshed.
  • the preset application, optimal frame rate and priority corresponding to the first application identifier in the rate application list; the optimal frame rate corresponding to the preset application corresponding to the first application identifier with the highest priority is set as the display frame rate.
  • Step S1052-3 Update all cumulative refresh times, and determine whether there is a cumulative refresh frequency greater than the preset number in the updated cumulative refresh times, if so, go to step S1052-4, if not, go to step S101.
  • the current display frame rate is not the minimum frame rate
  • the current frame rate refresh signal in order to prevent the current frame rate refresh signal from being a glitch signal of some applications, first update the cumulative refresh times, that is, increase the cumulative refresh times by one, and judge that the cumulative refresh after the update Whether the number of times is greater than the preset number of times, the response is only performed when the cumulative refresh times is greater than the preset number of times.
  • the preset number of times may be 60 times, that is, the response is not performed until the frame rate refresh signal sent by the application is received 60 times.
  • Step S1052-4 Set the display frame rate of the mobile terminal according to the preset list and the first application identifier corresponding to the accumulated refresh times greater than the preset number of times.
  • the preset list stores multiple second application identifiers and preset frame rates and priorities corresponding to the multiple second application identifiers
  • step S1052-4 mainly includes step S1-1 and step S1-2 ,described as follows:
  • Step S1-1 Acquire a second application identifier, a preset frame rate, and a priority in the preset list that match the first application identifier corresponding to the accumulated refresh times greater than the preset number of times.
  • the second application identifier may be the application name
  • the preset frame rate may be the best display frame rate of each application
  • the priority may be set according to the frame rate or power consumption, and is determined according to specific needs .
  • Step S1-2 Set the preset frame rate corresponding to the second application identifier with the highest priority as the display frame rate.
  • the frame rate corresponding to the application with the highest priority is selected and set as the display frame rate.
  • step 1-1 before step 1-1, it further includes:
  • Step S2-1 Determine whether there is a second application identifier matching the first application identifier corresponding to the cumulative refresh times greater than the preset number of times in the preset list, if so, execute step S1-1, if not, execute step S2 -2.
  • Step S2-2 Set the display frame rate as a preset default frame rate.
  • the preset default frame rate may be the highest frame rate supported by the terminal screen, and in this embodiment, the preset default frame rate may be 120 Hz. It is easy to understand that when there is no second application identifier matching the first application identifier corresponding to the accumulated refresh times greater than the preset number of times in the preset list, in order to avoid the display screen being stuck due to the low frame rate, you can set the The display frame rate is set to the highest frame rate supported by the terminal screen.
  • FIG. 3 is a schematic diagram of the frame rate setting process provided by the embodiment of the present application.
  • FpsControlThread in SurfaceFlinger, the system service that is responsible for display control in the Android system, which is responsible for frame rate setting.
  • a whitelist is embedded in FpsControlThread, that is, the preset list in this application, which is used as a reference for frame rate setting.
  • the frame rate setting application when the user starts the frame rate setting function through the frame rate setting application, namely FPSAPP, the frame rate setting application sends a start instruction to SurfaceFlinger through the interface of the BINDER thread, and SurfaceFlinger starts the FpsControlThread thread.
  • the frame rate setting function can also be turned off through the FPSAPP.
  • the FPSAPP sends a shutdown command to SurfaceFlinger through the interface of the BINDER thread, and SurfaceFlinger closes the FpsControlThread thread.
  • the pid information forms a list, that is, the application list of frame rate applications to be refreshed in this application, and saves it for the FpsControlThread thread to obtain.
  • SurfaceFlinger receives a frame rate refresh request, namely refresh, it sends a wake-up command to the FpsControlThread thread, and the FpsControlThread thread sends a get command to the EventThread thread to obtain a list of frame rate applications to be refreshed.
  • the FpsControlThread thread determines the display based on the frame rate application list to be refreshed. frame rate, and set the display frame rate to the display hardware, that is, the display controller and the display screen, through SurfaceFlinger, and then sleep.
  • the frame rate setting method provided in this embodiment is applied to a mobile terminal.
  • a wake-up command it is detected whether the wake-up command carries a frame rate refresh signal, and if it does not carry a frame rate refresh signal, the mobile terminal's The display frame rate is set to the first preset frame rate. If the frame rate refresh signal is carried, it will be detected whether the frame rate refresh signal is a preset low power consumption signal. If the frame rate refresh signal is a preset low power consumption signal, it will move The display frame rate of the terminal is set to the second preset frame rate.
  • the frame rate refresh signal is not the preset low power consumption signal, a list of frame rate applications to be refreshed is obtained, and the mobile terminal's frame rate application list is set according to the frame rate application list to be refreshed.
  • Display frame rate which can set the display frame rate that matches the application according to the application's own properties, which can not only meet the display requirements of various applications, but also avoid the increase in power consumption caused by the mobile terminal maintaining a high frame rate for a long time. Thereby, the performance of the mobile terminal is improved.
  • this embodiment will be further described from the perspective of a frame rate setting device, which may be implemented as an independent entity or integrated in a mobile terminal.
  • FIG. 4 specifically describes the frame rate setting device provided by the embodiment of the present application, which is applied to a mobile terminal.
  • the frame rate setting device mainly includes a first detection module 10 , a first setting module 20 , and a second detection module 30 , the second setting module 40 and the third setting module 50 are described as follows:
  • the first detection module 10 is configured to detect whether the wake-up command carries a frame rate refresh signal when the mobile terminal receives the wake-up command.
  • the first setting module 20 is configured to set the display frame rate of the mobile terminal to the first preset frame rate if the first detection module 10 detects that the wake-up command does not carry the frame rate refresh signal.
  • the second detection module 30 is configured to detect whether the frame rate refresh signal is a preset low power consumption signal if the first detection module 10 detects that the wake-up command carries the frame rate refresh signal.
  • the second setting module 40 is configured to set the display frame rate of the mobile terminal to the second preset frame rate if the second detection module 30 detects that the frame rate refresh signal is a preset low power consumption signal.
  • the second setting module 40 can also be used for:
  • the display frame rate of the mobile terminal is set to the second preset frame rate
  • the display screen of the mobile terminal remains static for the second preset duration
  • the display frame rate of the mobile terminal is set to the fourth preset frame rate, wherein, the fourth preset frame rate is smaller than the second preset frame rate.
  • the third setting module 50 is configured to acquire a frame rate application list to be refreshed if the frame rate refresh signal detected by the second detection module 30 is not a preset low power consumption signal, and set the display of the mobile terminal according to the frame rate application list to be refreshed frame rate.
  • FIG. 5 is another schematic structural diagram of the frame rate setting apparatus provided by the embodiment of the present application.
  • the third setting module 50 mainly includes an acquisition sub-module 51 and a first setting sub-module 52 . as follows:
  • the first setting submodule 52 is configured to set the display frame rate of the mobile terminal according to the current display frame rate and the application list of the frame rate to be refreshed.
  • the first setting sub-module 52 mainly includes a first The judging unit 521, the first setting unit 522, the second judging unit 523 and the second setting unit 524 are described as follows:
  • the first judgment unit 521 is used for judging whether the current display frame rate is the third preset frame rate
  • the first setting unit 522 is configured to set the display frame rate of the mobile terminal according to the preset list and the frame rate application list to be refreshed if the first determination unit 521 determines that the current display frame rate is the third preset frame rate;
  • the second judging unit 523 is configured to update all the accumulated refresh times if the first judging unit 521 judges that the current display frame rate is not the third refresh frame rate, and judge whether there is a refresh rate greater than the preset number of times in the updated accumulated refresh times Cumulative refresh times;
  • the second setting unit 524 if the second determination unit 523 determines that there is a cumulative refresh count greater than the preset count among the updated cumulative refresh counts, then according to the preset list and the first application identifier corresponding to the cumulative refresh count greater than the preset count Set the display frame rate of the mobile terminal.
  • the preset list stores multiple second application identifiers and preset frame rates and priorities corresponding to the multiple second application identifiers, and the second setting unit 524 is specifically used for:
  • the preset frame rate corresponding to the second application identifier with the highest priority is set as the display frame rate.
  • the second setting unit 524 is also used for:
  • the preset frame rate and the priority in the preset list that match the first application identifier corresponding to the accumulated refresh times greater than the preset number of times it is determined whether there is an application identifier in the preset list that matches the number of refreshes greater than the preset number of times. the second application identifier that matches the first application identifier corresponding to the cumulative refresh times;
  • the display frame rate is set to the preset default frame rate.
  • the frame rate setting apparatus may further include an instruction generation module 60 for:
  • the mobile terminal Before receiving the wake-up instruction, when the mobile terminal receives the frame rate refresh signal, generate a wake-up instruction carrying the frame rate refresh signal;
  • a wake-up instruction is generated.
  • the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
  • the specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
  • the frame rate setting device provided in this embodiment is applied to a mobile terminal.
  • the first detection module 10 detects whether the wake-up command carries a frame rate refresh signal, and if the wake-up command does not carry a frame rate refresh signal.
  • the first setting module 20 sets the display frame rate of the mobile terminal to the first preset frame rate, and if the wake-up command carries the frame rate refresh signal, the second detection module 30 detects whether the frame rate refresh signal is a preset low power If the frame rate refresh signal is the preset low power consumption signal, the second setting module 40 sets the display frame rate of the mobile terminal to the second preset frame rate, if the frame rate refresh signal is not the preset low power consumption signal signal, then the third setting module 50 obtains the frame rate application list to be refreshed, and sets the display frame rate of the mobile terminal according to the frame rate application list to be refreshed, so as to set the display frame rate matching the application according to the application's own attributes, not only can To meet the display requirements of various applications, it can also avoid the increased power consumption of the mobile terminal caused by the long-term high frame rate of the mobile terminal, thereby improving the performance of the mobile terminal.
  • an embodiment of the present application further provides a mobile terminal, where the mobile terminal may be a device such as a smart phone or a tablet computer.
  • the mobile terminal 500 includes a processor 501 and a memory 502 .
  • the processor 501 is electrically connected to the memory 502 .
  • the processor 501 is the control center of the mobile terminal 500, uses various interfaces and lines to connect various parts of the entire mobile terminal, and executes the movement by running or loading the application program stored in the memory 502 and calling the data stored in the memory 502. Various functions of the terminal and processing data, so as to monitor the mobile terminal as a whole.
  • the processor 501 in the mobile terminal 500 loads the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 executes the instructions stored in the memory 502 .
  • applications in so as to achieve various functions:
  • the wake-up command does not carry a frame rate refresh signal, set the display frame rate of the mobile terminal to the first preset frame rate;
  • the wake-up command carries a frame rate refresh signal, detect whether the frame rate refresh signal is a preset low power consumption signal;
  • the frame rate refresh signal is a preset low power consumption signal, set the display frame rate of the mobile terminal to the second preset frame rate;
  • the frame rate refresh signal is not a preset low power consumption signal, a list of frame rate applications to be refreshed is obtained, and the display frame rate of the mobile terminal is set according to the frame rate application list to be refreshed.
  • FIG. 7 shows a specific structural block diagram of a mobile terminal provided by an embodiment of the present application, and the mobile terminal can be used to implement the frame rate setting method provided in the foregoing embodiment.
  • the mobile terminal 300 can be a smart phone or a tablet computer.
  • the RF circuit 310 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
  • RF circuitry 310 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like.
  • RF circuitry 310 may communicate with various networks, such as the Internet, an intranet, a wireless network, or with other devices over a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communication (Global System for Mobile Communication, GSM), enhanced mobile communication technology (EnhancedDataGSMEnvironment, EDGE), wideband code division multiple access technology (WidebandCodeDivisionMultipleAccess, WCDMA), code division multiple access technology (CodeDivisionAccess, CDMA), time division multiple access technology (TimeDivisionMultipleAccess, TDMA), Wireless Fidelity (Wi-Fi) (such as the IEEE standard IEEE802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), VoIP (VoiceoverInternetProtocol, VoIP), Worldwide InteroperabilityforMicrowaveAccess (Wi-Max), others for mail, instant messaging and short messages , and any other suitable communication protocols, even those that are not currently being developed.
  • GSM Global System for Mobile Communication
  • EDGE enhanced mobile communication technology
  • WCDMA wideband code division multiple access technology
  • CodeDivisionAccess Code Division Multiple
  • the memory 320 can be used to store software programs and modules, such as the frame rate setting method and corresponding program instructions/modules in the above-mentioned embodiments.
  • the processor 380 executes various functional applications by running the software programs and modules stored in the memory 320. And data processing, that is, to realize the function of communication data storage.
  • Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 320 may further include memory disposed remotely with respect to the processor 380, and these remote memories may be connected to the mobile terminal 300 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input unit 330 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332 .
  • Touch-sensitive surface 331 also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 331). operation near the touch-sensitive surface 331), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface 331 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch-sensitive surface 331 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types.
  • the input unit 330 may also include other input devices 332 .
  • other input devices 332 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 340 may include a display panel 341.
  • the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light emitting diode) and the like.
  • the touch-sensitive surface 331 may cover the display panel 341. When the touch-sensitive surface 331 detects a touch operation on or near it, it transmits it to the processor 380 to determine the type of the touch event, and then the processor 380 determines the type of the touch event according to the touch event.
  • Type provides corresponding visual output on display panel 341 .
  • the touch-sensitive surface 331 and the display panel 341 are used as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 331 and the display panel 341 may be integrated to realize the input and output functions.
  • the mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 341 when the mobile terminal 300 is moved to the ear and/or backlight.
  • the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 360 , the speaker 361 , and the microphone 362 may provide an audio interface between the user and the mobile terminal 300 .
  • the audio circuit 360 can transmit the received audio data converted electrical signal to the speaker 361, and the speaker 361 converts it into a sound signal for output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 360 After receiving, it is converted into audio data, and then the audio data is output to the processor 380 for processing, and then sent to, for example, another terminal through the RF circuit 310, or the audio data is output to the memory 320 for further processing.
  • the audio circuit 360 may also include an earphone jack to provide communication between peripheral headphones and the mobile terminal 300 .
  • the mobile terminal 300 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 370 (eg, a Wi-Fi module), and it provides the user with wireless broadband Internet access.
  • the transmission module 370 eg, a Wi-Fi module
  • FIG. 7 shows the transmission module 370, it can be understood that it does not belong to the necessary structure of the mobile terminal 300, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the processor 380 is the control center of the mobile terminal 300, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 320, and calling the data stored in the memory 320. , perform various functions of the mobile terminal 300 and process data, so as to monitor the mobile phone as a whole.
  • the processor 380 may include one or more processing cores; in some embodiments, the processor 380 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 380 .
  • the mobile terminal 300 also includes a power source 390 (such as a battery) for powering various components.
  • the power source can be logically connected to the processor 380 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. management and other functions.
  • Power supply 190 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the mobile terminal 300 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be described herein again.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be displayed by one or more programs.
  • the above processor executing one or more programs contains instructions for:
  • the wake-up command does not carry a frame rate refresh signal, set the display frame rate of the mobile terminal to the first preset frame rate;
  • the wake-up command carries a frame rate refresh signal, detect whether the frame rate refresh signal is a preset low power consumption signal;
  • the frame rate refresh signal is a preset low power consumption signal, set the display frame rate of the mobile terminal to the second preset frame rate;
  • the frame rate refresh signal is not a preset low power consumption signal, a list of frame rate applications to be refreshed is obtained, and the display frame rate of the mobile terminal is set according to the frame rate application list to be refreshed.
  • the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
  • the specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
  • an embodiment of the present application provides a storage medium, including a mobile terminal executable instruction. Wherein, when the mobile terminal executable instruction is executed by the mobile terminal processor, the steps in any frame rate setting method provided by the embodiments of the present application are executed.
  • the storage medium may include: a read-only memory (ROM, ReadOnlyMemory), a random access memory (RAM, RandomAccessMemory), a magnetic disk or an optical disk, and the like.
  • ROM Read OnlyMemory
  • RAM Random AccessMemory
  • magnetic disk or an optical disk and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

一种帧率设置方法、装置、存储介质及移动终端,该帧率设置方法应用于移动终端,包括:当接收到携带帧率刷新信号的唤醒指令,且该帧率刷新信号不为预设低功耗信号时,根据待刷新帧率应用列表设置移动终端的显示帧率。

Description

帧率设置方法、装置、存储介质及移动终端 技术领域
本发明涉及通信技术领域,具体涉及一种帧率设置方法、装置、存储介质及移动终端。
背景技术
在图像领域中,FPS(FramesPerSecond,每秒传输帧数)定义为画面每秒传输帧数,通俗来讲就是指动画或视频的画面数。FPS是测量用于保存、显示动态视频的信息数量,每秒钟帧数越多,所显示的动作就会越流畅。
目前,支持高帧率的终端越来越多,常用的帧率有30Hz、60Hz、90Hz或120Hz等,并且,各个应用所支持的帧率也越来越差异化,例如,有的游戏类应用在帧率达到120Hz时,才能体验到极致的流畅度,而有些小视频类应用,可能只需要60Hz的帧率就足够了。然而,现有终端通常只支持一种固定的帧率,无法满足各种应用的需求。另外,从功耗的角度上讲,若显示屏长期保持高帧率,则增加了终端的功耗。
技术问题
本申请提供了一种帧率设置方法、装置、存储介质及移动终端,旨在解决现有的帧率固定而无法满足应用需求、且增加终端的功耗的技术问题。
技术解决方案
本申请提供了一种帧率设置方法,应用于移动终端,包括:
当接收到唤醒指令时,检测所述唤醒指令是否携带帧率刷新信号;
若所述唤醒指令不携带帧率刷新信号,则将所述移动终端的显示帧率设置为第一预设帧率;
若所述唤醒指令携带帧率刷新信号,则检测所述帧率刷新信号是否为预设低功耗信号;
若所述帧率刷新信号为预设低功耗信号,则将所述移动终端的显示帧率设置为第二预设帧率;
若所述帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据所述待刷新帧率应用列表设置所述移动终端的显示帧率。
本申请还提供了一种帧率设置装置,应用于移动终端,包括:
第一检测模块,用于当所述移动终端接收到唤醒指令时,检测所述唤醒指令是否携带帧率刷新信号;
第一设置模块,用于若所述唤醒指令不携带帧率刷新信号,则将所述移动终端的显示帧率设置为第一预设帧率;
第二检测模块,用于若所述唤醒指令携带帧率刷新信号,则检测所述帧率刷新信号是否为预设低功耗信号;
第二设置模块,用于若所述帧率刷新信号为预设低功耗信号,则将所述移动终端的显示帧率设置为第二预设帧率;
第三设置模块,用于若所述帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据所述待刷新帧率应用列表设置所述移动终端的显示帧率。
在本申请提供的帧率设置装置中,所述第三设置模块具体包括:
获取子模块,用于获取所述移动终端的当前显示帧率;
第一设置子模块,用于根据所述当前显示帧率和所述待刷新帧率应用列表设置所述移动终端的显示帧率。
在本申请提供的帧率设置装置中,所述待刷新帧率应用列表中存储有至少一个第一应用标识和每个所述第一应用标识对应的累计刷新次数,所述第一设置子模块具体包括:
第一判断单元,用于判断所述当前显示帧率是否为第三预设帧率;
第一设置单元,用于若所述当前显示帧率为第三预设帧率,则根据预设列表和所述待刷新帧率应用列表设置所述移动终端的显示帧率;
第二判断单元,用于若所述当前显示帧率不为第三刷新帧率,则更新所有所述累计刷新次数,并判断更新后的累计刷新次数中是否存在大于预设次数的累计刷新次数;
第二设置单元,若更新后的累计刷新次数中存在大于预设次数的累计刷新次数,则根据预设列表和所述大于预设次数的累计刷新次数对应的第一应用标识设置所述移动终端的显示帧率。
在本申请提供的帧率设置装置中,所述预设列表中存储有多个第二应用标识以及所述多个第二应用标识对应的预设帧率和优先级,所述第二设置单元具体用于:
获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级;
将优先级最高的第二应用标识对应的预设帧率设置为显示帧率。
在本申请提供的帧率设置装置中,所述第二设置单元还用于:
在所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级之前,判断所述预设列表中是否存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识;
若存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则执行所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级的步骤;
若不存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则将显示帧率设置为预设默认帧率。
在本申请提供的帧率设置装置中,还包括指令生成模块,用于:
在接收到唤醒指令之前,当所述移动终端接收到帧率刷新信号时,生成携带所述帧率刷新信号的所述唤醒指令;
或者当所述移动终端开启帧率调整功能且未收到帧率刷新信号达到第一预设时长时,生成所述唤醒指令。
在本申请提供的帧率设置装置中,所述第二设置模块还用于:
在所述将所述移动终端的显示帧率设置为第二预设帧率后,若所述移动终端的显示画面保持静止达到第二预设时长,则将所述移动终端的显示帧率设置为第四预设帧率。
本申请还提供了一种计算机可读存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一项所述的帧率设置方法。
本申请还提供了一种移动终端,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行上述任一项所述的帧率设置方法中的步骤。
有益效果
本申请公开了一种帧率设置方法、装置、存储介质及移动终端,该帧率设置方法应用于移动终端,通过当接收到携带帧率刷新信号的唤醒指令,且该帧率刷新信号不为预设低功耗信号时,根据待刷新帧率应用列表设置移动终端的显示帧率,实现根据应用的自身属性来设置与所述应用匹配的显示帧率,不仅可以满足各种应用的显示需求,还可以避免移动终端长期保持高帧率给移动终端带来的功耗增加,从而提高移动终端的性能。
附图说明
图1为本申请实施例提供的帧率设置方法的流程示意图。
图2为本申请实施例提供的帧率设置方法的另一流程示意图。
图3为本申请实施例提供的帧率设置过程的示意图。
图4为本申请实施例提供的帧率设置装置的结构示意图。
图5为本申请实施例提供的帧率设置装置的另一结构示意图。
图6本申请实施例提供的移动终端的结构示意图。
图7为本申请实施例提供的移动终端的另一结构示意图。
本发明的实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。在图中,结构相似的单元是用以相同标号表示。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
本申请实施例提供了一种帧率设置方法、装置、存储介质及移动终端。
请参阅图1,图1为本申请实施例提供的帧率设置方法的流程示意图,该帧率设置方法应用于移动终端,移动终端为任意具有移动通信功能的智能电子设备,比如智能手机、平板电脑、智能手表等。如图1所示,本实施例提供的帧率设置方法主要包括步骤S101至步骤S105,说明如下:
步骤S101:当接收到唤醒指令时,检测唤醒指令是否携带帧率刷新信号,若是,则执行步骤S103,若否,则执行步骤S102。
在一些实施例中,请参阅图2,图2为本申请实施例提供的帧率设置方法的另一流程示意图,在步骤S101之前,还可以包括:当接收到帧率刷新信号时,生成携带帧率刷新信号的唤醒指令,或者当移动终端开启帧率调整功能且未收到帧率刷新信号达到第一预设时长时,生成唤醒指令。
具体地,帧率刷新信号可以为Vsync(垂直同步)信号,每当终端屏幕的显示帧率需要刷新时,会产生一个Vsync信号。
在本实施例中,当未收到帧率刷新信号达到第一预设时长时,可以认为终端屏幕的显示画面是静止的,此时,为了节省移动终端的功耗,可以生成一个唤醒指令,用来指示将显示帧率降低。其中,第一预设时长可以为5秒。
步骤S102:将移动终端的显示帧率设置为第一预设帧率。
具体地,第一预设帧率可以为30Hz。容易理解的是,若唤醒指令不携带帧率刷新信号,则该唤醒指令是未收到帧率刷新信号达到第一预设时长而生成的,则可以认为当前移动终端的显示画面是静止的且无需更新,从而可以将终端屏幕的帧率降到最低值,以降低移动终端的功耗。
譬如,当用户使用移动终端看一张静态图片时,若当前移动终端的显示帧率为60Hz,由于静态图片无需不断变换画面,也即无需这么高的显示帧率,就会造成移动终端功耗的浪费,当用户看这张静态图片超过5秒时,生成唤醒指令,将移动终端的显示显示帧率设置为30Hz。
步骤S103: 检测帧率刷新信号是否为预设低功耗信号,若是,则执行步骤S104,若否,则执行步骤S105。
在本实施例中,当移动终端处于低功耗模式或者电量低模式时,可以自动生成预设低功耗信号,或者,帧率设置功能中可以包括低功耗状态,当用户选择该低功耗状态时,生成预设低功耗信号。容易理解的是,预设低功耗信号是帧率刷新信号的一种,用来指示将帧率刷新至较低的帧率。
步骤S104:将移动终端的显示帧率设置为第二预设帧率。
具体地,当帧率刷新信号为预设低功耗信号时,为了节省移动终端的功耗,无论当前运行的是哪个应用,都应该将显示帧率适当降低,在本实施例中,第二预设帧率可以为60Hz。
请继续参阅图2,在一些实施例中,在步骤S104之后,还可以包括步骤S106:
步骤S106: 若移动终端的显示画面保持静止达到第二预设时长,则将移动终端的显示帧率设置为第四预设帧率。
在本实施例中,第四预设帧率小于第二预设帧率。具体地,当接收到携带预设低功耗信号时,可以理解为当前移动终端需要降低功耗,因此,当检测到移动终端的显示画面保持静止达到第二预设时长时,也即,当前移动终端的显示画面没有更新时,进一步将显示帧率降低,以进一步节省移动终端的功耗。第四预设帧率可以为30Hz。
步骤S105:获取待刷新帧率应用列表,并根据待刷新帧率应用列表设置移动终端的显示帧率。
请继续参阅图2,在一些实施例中,步骤S105主要可以包括步骤S1051至步骤S1054,说明如下:
步骤S1051:获取待刷新帧率应用列表和移动终端的当前显示帧率。
具体地,当帧率刷新信号不为预设低功耗信号时,可以认为移动终端无需降低功耗,因此,应该将移动终端的显示帧率设置为较佳的帧率。
步骤S1052:根据当前显示帧率和待刷新帧率应用列表设置移动终端的显示帧率。
在本实施例中,待刷新帧率应用列表中存储有至少一个第一应用标识和每个第一应用标识对应的累计刷新次数,步骤S1052主要包括步骤S1052-1至步骤S1052-4,说明如下:
步骤S1052-1:判断当前显示帧率是否为第三预设帧率,若是,则执行步骤S1052-2,若否,则执行步骤S1052-3。
具体地,第三预设帧率为最低帧率,也即判断当前显示帧率是否为最低值,如果当前显示帧率为最低值,为了保证用户使用的流畅度,从画面静止到运动没有任何迟滞感,必须立刻响应帧率刷新信号。
譬如,当当前显示帧率为30Hz时,若用户打开游戏应用,游戏应用的显示帧率一般大于100Hz,此时,若不立刻将显示帧率设置为100Hz以上,则可能会造成游戏应用的画面卡顿,将极大地降低用户体验。
步骤S1052-2:根据预设列表和待刷新帧率应用列表设置移动终端的显示帧率。
在本实施例中,预设列表中存储有多个预设应用,以及多个预设应用对应的最佳帧率和优先级,步骤S1052-2可以包括:获取预设列表中与待刷新帧率应用列表中第一应用标识对应的预设应用、最佳帧率和优先级;将优先级最高的与第一应用标识对应的预设应用对应的最佳帧率设置为显示帧率。
步骤S1052-3:更新所有累计刷新次数,并判断更新后的累计刷新次数中是否存在大于预设次数的累计刷新次数,若是,则执行步骤S1052-4,若否,则执行步骤S101。
具体地,若当前显示帧率不为最低帧率,为了避免当前的帧率刷新信号为一些应用的毛刺信号,先对累计刷新次数进行更新,也即将累计刷新次数加一,判断更新后累计刷新次数是否大于预设次数,在累计刷新次数大于预设次数时,才进行响应。其中,预设次数可以为60次,也即,当收到该应用发送的帧率刷新信号60次,才进行响应。
步骤S1052-4:根据预设列表和大于预设次数的累计刷新次数对应的第一应用标识设置移动终端的显示帧率。
在一些实施例中,预设列表中存储有多个第二应用标识以及多个第二应用标识对应的预设帧率和优先级,步骤S1052-4主要包括步骤S1-1和步骤S1-2,说明如下:
步骤S1-1:获取预设列表中与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级。
具体地,第二应用标识可以为应用名称,预设帧率可以为每个应用的最佳显示帧率,优先级可以根据按照帧率的高低或功耗的高低来设置,根据具体需求而定。
步骤S1-2:将优先级最高的第二应用标识对应的预设帧率设置为显示帧率。
具体地,当存在多个应用需要刷新帧率时,选择优先级最高的应用对应的帧率设置为显示帧率。
在一些实施例中,在步骤1-1之前,还包括:
步骤S2-1:判断预设列表中是否存在与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,若是,则执行步骤S1-1,若否,则执行步骤S2-2。
步骤S2-2:将显示帧率设置为预设默认帧率。
具体地,预设默认帧率可以为终端屏幕所支持的最高帧率,在本实施例中,预设默认帧率可以为120Hz。容易理解的是,当预设列表中不存在与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识时,为了避免显示画面由于帧率低而造成卡顿,可以将显示帧率设置为终端屏幕所支持的最高帧率。
需要说明的是,本申请中涉及的具体帧率大小并不构成对本申请技术方案的限制,具体帧率大小可根据实际的应用需求而设定。
为了便于理解,下面以Android系统为例,对本申请实施例提供的帧率设置的过程进行简单的说明,请参阅图3,图3为本申请实施例提供的帧率设置过程的示意图。
首先,在Android系统负责显示控制的SurfaceFlinger即系统服务中启动一个新的控制线程,命名为FpsControlThread,用来负责帧率设置。在FpsControlThread中嵌入一个白名单,也即本申请中的预设列表,用来作为帧率设置的参考。
在应用层,当用户通过帧率设置应用即FPSAPP启动帧率设置功能时,帧率设置应用通过BINDER线程的接口向SurfaceFlinger发送启动指令,SurfaceFlinger启动FpsControlThread线程。容易理解的是,尽管图中未示出,当用户想关闭帧率设置功能时,也可以通过FPSAPP关闭帧率设置功能,FPSAPP通过BINDER线程的接口向SurfaceFlinger发送关闭指令,SurfaceFlinger关闭FpsControlThread线程。当APP1、APP2、APP3等需要刷新帧率时,通过BINDER线程的RequestNextVsyncWithPid接口向SurfaceFlinger请求帧率刷新,并且将应用自身的端口线程标识即pid信息发送给EventThread线程,EventThread线程将所有请求帧率刷新的pid信息组成一个列表即本申请的待刷新帧率应用列表并保存起来,以供FpsControlThread线程获取。当SurfaceFlinger收到帧率刷新请求即refresh时,发送唤醒指令给FpsControlThread线程,FpsControlThread线程发送获取指令至EventThread线程,以获取待刷新帧率应用列表,之后,FpsControlThread线程根据待刷新帧率应用列表确定显示帧率,并通过SurfaceFlinger将显示帧率设置给显示硬件即显示控制器和显示屏,接着进行休眠。
由上述可知,本实施例提供的帧率设置方法,应用于移动终端,通过当接收到唤醒指令时,检测唤醒指令是否携带帧率刷新信号,若不携带帧率刷新信号,则将移动终端的显示帧率设置为第一预设帧率,若携带帧率刷新信号,则检测帧率刷新信号是否为预设低功耗信号,若帧率刷新信号为预设低功耗信号,则将移动终端的显示帧率设置为第二预设帧率,若帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据该待刷新帧率应用列表设置移动终端的显示帧率,实现根据应用的自身属性来设置与应用匹配的显示帧率,不仅可以满足各种应用的显示需求,还可以避免移动终端长期保持高帧率给移动终端带来的功耗增加,从而提高移动终端的性能。
根据上述实施例所描述的方法,本实施例将从帧率设置装置的角度进一步进行描述,该帧率设置装置具体可以作为独立的实体来实现,也可以集成在移动终端中来实现。
请参阅图4,图4具体描述了本申请实施例提供的帧率设置装置,应用于移动终端,该帧率设置装置主要包括第一检测模块10、第一设置模块20、第二检测模块30、第二设置模块40和第三设置模块50,说明如下:
(1)第一检测模块10
第一检测模块10,用于当移动终端接收到唤醒指令时,检测唤醒指令是否携带帧率刷新信号。
(2)第一设置模块20
第一设置模块20,用于若第一检测模块10检测唤醒指令不携带帧率刷新信号,则将移动终端的显示帧率设置为第一预设帧率。
(3)第二检测模块30
第二检测模块30,用于若第一检测模块10检测唤醒指令携带帧率刷新信号,则检测帧率刷新信号是否为预设低功耗信号。
(4)第二设置模块40
第二设置模块40,用于若第二检测模块30检测帧率刷新信号为预设低功耗信号,则将移动终端的显示帧率设置为第二预设帧率。
进一步地,第二设置模块40还可以用于:
在将移动终端的显示帧率设置为第二预设帧率后,若移动终端的显示画面保持静止达到第二预设时长,则将移动终端的显示帧率设置为第四预设帧率,其中,第四预设帧率小于第二预设帧率。
(5)第三设置模块50
第三设置模块50,用于若第二检测模块30检测帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据待刷新帧率应用列表设置移动终端的显示帧率。
在一些实施例中,请参阅图5,图5为本申请实施例提供的帧率设置装置的另一结构示意图,第三设置模块50主要包括获取子模块51和第一设置子模块52,说明如下:
获取子模块51,用于获取移动终端的当前显示帧率;
第一设置子模块52,用于根据当前显示帧率和待刷新帧率应用列表设置移动终端的显示帧率。
请继续参阅图5,在本实施例中,待刷新帧率应用列表中存储有至少一个第一应用标识和每个第一应用标识对应的累计刷新次数,第一设置子模块52主要包括第一判断单元521、第一设置单元522、第二判断单元523和第二设置单元524,说明如下:
第一判断单元521,用于判断当前显示帧率是否为第三预设帧率;
第一设置单元522,用于若第一判断单元521判断当前显示帧率为第三预设帧率,则根据预设列表和待刷新帧率应用列表设置移动终端的显示帧率;
第二判断单元523,用于若第一判断单元521判断当前显示帧率不为第三刷新帧率,则更新所有累计刷新次数,并判断更新后的累计刷新次数中是否存在大于预设次数的累计刷新次数;
第二设置单元524,若第二判断单元523判断更新后的累计刷新次数中存在大于预设次数的累计刷新次数,则根据预设列表和大于预设次数的累计刷新次数对应的第一应用标识设置移动终端的显示帧率。
其中,预设列表中存储有多个第二应用标识以及多个第二应用标识对应的预设帧率和优先级,第二设置单元524具体用于:
获取预设列表中与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级;
将优先级最高的第二应用标识对应的预设帧率设置为显示帧率。
在本实施例中,第二设置单元524还用于:
在获取预设列表中与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级之前,判断预设列表中是否存在与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识;
若存在与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则执行获取预设列表中与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级的步骤;
若不存在与大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则将显示帧率设置为预设默认帧率。
请继续参阅图5,在一些实施例中,帧率设置装置还可以包括指令生成模块60,用于:
在接收到唤醒指令之前,当移动终端接收到帧率刷新信号时,生成携带帧率刷新信号的唤醒指令;
或者当移动终端开启帧率调整功能且未收到帧率刷新信号达到第一预设时长时,生成唤醒指令。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
由上述可知,本实施例提供的帧率设置装置,应用于移动终端,通过当接收到唤醒指令时,第一检测模块10检测唤醒指令是否携带帧率刷新信号,若唤醒指令不携带帧率刷新信号,则第一设置模块20将移动终端的显示帧率设置为第一预设帧率,若唤醒指令携带帧率刷新信号,则第二检测模块30检测帧率刷新信号是否为预设低功耗信号,若帧率刷新信号为预设低功耗信号,则第二设置模块40将移动终端的显示帧率设置为第二预设帧率,若帧率刷新信号不为预设低功耗信号,则第三设置模块50获取待刷新帧率应用列表,并根据待刷新帧率应用列表设置移动终端的显示帧率,实现根据应用的自身属性来设置与应用匹配的显示帧率,不仅可以满足各种应用的显示需求,还可以避免移动终端长期保持高帧率给移动终端带来的功耗增加,从而提高移动终端的性能。
另外,本申请实施例还提供一种移动终端,该移动终端可以是智能手机、平板电脑等设备。如图6所示,移动终端500包括处理器501、存储器502。其中,处理器501与存储器502电性连接。
处理器501是移动终端500的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或加载存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。
在本实施例中,移动终端500中的处理器501会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能:
当接收到唤醒指令时,检测唤醒指令是否携带帧率刷新信号;
若唤醒指令不携带帧率刷新信号,则将移动终端的显示帧率设置为第一预设帧率;
若唤醒指令携带帧率刷新信号,则检测帧率刷新信号是否为预设低功耗信号;
若帧率刷新信号为预设低功耗信号,则将移动终端的显示帧率设置为第二预设帧率;
若帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据待刷新帧率应用列表设置移动终端的显示帧率。
图7示出了本申请实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的帧率设置方法。该移动终端300可以为智能手机或平板电脑。
RF电路310用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通信网络或者其他设备进行通信。RF电路310可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路310可与各种网络如互联网、企业内部网、无线网络进行通信或者通过无线网络与其他设备进行通信。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(GlobalSystemforMobileCommunication, GSM)、增强型移动通信技术(EnhancedDataGSMEnvironment, EDGE),宽带码分多址技术(WidebandCodeDivisionMultipleAccess, WCDMA),码分多址技术(CodeDivisionAccess, CDMA)、时分多址技术(TimeDivisionMultipleAccess, TDMA),无线保真技术(WirelessFidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE802.11a, IEEE802.11b, IEEE802.11g和/或 IEEE802.11n)、网络电话(VoiceoverInternetProtocol, VoIP)、全球微波互联接入(WorldwideInteroperabilityforMicrowaveAccess, Wi-Max)、其他用于邮件、即时通信及短消息的协议,以及任何其他合适的通信协议,甚至可包括那些当前仍未被开发出来的协议。
存储器320可用于存储软件程序以及模块,如上述实施例中的帧率设置方法及对应的程序指令/模块,处理器380通过运行存储在存储器320内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现通信数据保存功能。存储器320可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器320可进一步包括相对于处理器380远程设置的存储器,这些远程存储器可以通过网络连接至移动终端300。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入单元330可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元330可包括触敏表面331以及其他输入设备332。触敏表面331,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面331上或在触敏表面331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面331。除了触敏表面331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及移动终端300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元340可包括显示面板341,可选的,可以采用LCD(LiquidCrystalDisplay,液晶显示器)、OLED(OrganicLight-EmittingDiode,有机发光二极管)等形式来配置显示面板341。进一步的,触敏表面331可覆盖显示面板341,当触敏表面331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图7中,触敏表面331与显示面板341是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面331与显示面板341集成而实现输入和输出功能。
移动终端300还可包括至少一种传感器350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板341和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于移动终端300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路360、扬声器361,传声器362可提供用户与移动终端300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经RF电路310以发送给比如另一终端,或者将音频数据输出至存储器320以便进一步处理。音频电路360还可能包括耳塞插孔,以提供外设耳机与移动终端300的通信。
移动终端300通过传输模块370(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了传输模块370,但是可以理解的是,其并不属于移动终端300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器380是移动终端300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行移动终端300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理核心;在一些实施例中,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。
移动终端300还包括给各个部件供电的电源390(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端300还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:
当接收到唤醒指令时,检测唤醒指令是否携带帧率刷新信号;
若唤醒指令不携带帧率刷新信号,则将移动终端的显示帧率设置为第一预设帧率;
若唤醒指令携带帧率刷新信号,则检测帧率刷新信号是否为预设低功耗信号;
若帧率刷新信号为预设低功耗信号,则将移动终端的显示帧率设置为第二预设帧率;
若帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据待刷新帧率应用列表设置移动终端的显示帧率。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本申请实施例提供一种存储介质,包括移动终端可执行指令。其中,移动终端可执行指令在由移动终端处理器执行时,执行本申请实施例提供任一种帧率设置方法中的步骤。
其中,该存储介质可以包括:只读存储器(ROM,ReadOnlyMemory)、随机存取记忆体(RAM,RandomAccessMemory)、磁盘或光盘等。
由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一种帧率设置方法中的步骤,因此,可以实现本发明实施例所提供的任一种帧率设置方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
综上该,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。

Claims (20)

  1. 一种帧率设置方法,其中,应用于移动终端,包括:
    当接收到唤醒指令时,检测所述唤醒指令是否携带帧率刷新信号;
    若所述唤醒指令不携带帧率刷新信号,则将所述移动终端的显示帧率设置为第一预设帧率;
    若所述唤醒指令携带帧率刷新信号,则检测所述帧率刷新信号是否为预设低功耗信号;
    若所述帧率刷新信号为预设低功耗信号,则将所述移动终端的显示帧率设置为第二预设帧率;
    若所述帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据所述待刷新帧率应用列表设置所述移动终端的显示帧率。
  2. 根据权利要求1所述的帧率设置方法,其中,所述根据所述待刷新帧率应用列表设置所述移动终端的显示帧率,具体包括:
    获取所述移动终端的当前显示帧率;
    根据所述当前显示帧率和所述待刷新帧率应用列表设置所述移动终端的显示帧率。
  3. 根据权利要求2所述的帧率设置方法,其中,所述待刷新帧率应用列表中存储有至少一个第一应用标识和每个所述第一应用标识对应的累计刷新次数,所述根据所述当前显示帧率和所述待刷新帧率应用列表设置所述移动终端的显示帧率,具体包括:
    判断所述当前显示帧率是否为第三预设帧率;
    若所述当前显示帧率为第三预设帧率,则根据预设列表和所述待刷新帧率应用列表设置所述移动终端的显示帧率;
    若所述当前显示帧率不为第三刷新帧率,则更新所有所述累计刷新次数,并判断更新后的累计刷新次数中是否存在大于预设次数的累计刷新次数;
    若更新后的累计刷新次数中存在大于预设次数的累计刷新次数,则根据预设列表和所述大于预设次数的累计刷新次数对应的第一应用标识设置所述移动终端的显示帧率。
  4. 根据权利要求3所述的帧率设置方法,其中,所述预设列表中存储有多个第二应用标识以及所述多个第二应用标识对应的预设帧率和优先级,所述根据预设列表和所述大于预设次数的累计刷新次数对应的第一应用标识设置所述移动终端的显示帧率,具体包括:
    获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级;
    将优先级最高的第二应用标识对应的预设帧率设置为显示帧率。
  5. 根据权利要求4所述的帧率设置方法,其中,在所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级之前,还包括:
    判断所述预设列表中是否存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识;
    若存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则执行所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级的步骤;
    若不存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则将显示帧率设置为预设默认帧率。
  6. 根据权利要求1所述的帧率设置方法,其中,在接收到唤醒指令之前,还包括:
    当所述移动终端接收到帧率刷新信号时,生成携带所述帧率刷新信号的所述唤醒指令;
    或者当所述移动终端开启帧率调整功能且未收到帧率刷新信号达到第一预设时长时,生成所述唤醒指令。
  7. 根据权利要求1所述的帧率设置方法,其中,在所述将所述移动终端的显示帧率设置为第二预设帧率后,还包括:
    若所述移动终端的显示画面保持静止达到第二预设时长,则将所述移动终端的显示帧率设置为第四预设帧率,所述第四预设帧率小于所述第二预设帧率。
  8. 根据权利要求1所述的帧率设置方法,其中,所述帧率设置方法还包括:
    当所述移动终端处于低功耗模式或者电量低模式时,生成预设低功耗信号,所述预设低功耗信号为所述帧率刷新信号的一种。
  9. 根据权利要求1所述的帧率设置方法,其中,所述移动终端包括帧率设置功能,所述帧率设置方法还包括:
    当所述帧率设置功能中的低功耗状态被选中时,生成预设低功耗信号,所述预设低功耗信号为所述帧率刷新信号中的一种。
  10. 一种帧率设置装置,其中,应用于移动终端,包括:
    第一检测模块,用于当所述移动终端接收到唤醒指令时,检测所述唤醒指令是否携带帧率刷新信号;
    第一设置模块,用于若所述唤醒指令不携带帧率刷新信号,则将所述移动终端的显示帧率设置为第一预设帧率;
    第二检测模块,用于若所述唤醒指令携带帧率刷新信号,则检测所述帧率刷新信号是否为预设低功耗信号;
    第二设置模块,用于若所述帧率刷新信号为预设低功耗信号,则将所述移动终端的显示帧率设置为第二预设帧率;
    第三设置模块,用于若所述帧率刷新信号不为预设低功耗信号,则获取待刷新帧率应用列表,并根据所述待刷新帧率应用列表设置所述移动终端的显示帧率。
  11. 根据权利要求10所述的帧率设置装置,其中,所述第三设置模块具体包括:
    获取子模块,用于获取所述移动终端的当前显示帧率;
    第一设置子模块,用于根据所述当前显示帧率和所述待刷新帧率应用列表设置所述移动终端的显示帧率。
  12. 根据权利要求11所述的帧率设置装置,其中,所述待刷新帧率应用列表中存储有至少一个第一应用标识和每个所述第一应用标识对应的累计刷新次数,所述第一设置子模块具体包括:
    第一判断单元,用于判断所述当前显示帧率是否为第三预设帧率;
    第一设置单元,用于若所述当前显示帧率为第三预设帧率,则根据预设列表和所述待刷新帧率应用列表设置所述移动终端的显示帧率;
    第二判断单元,用于若所述当前显示帧率不为第三刷新帧率,则更新所有所述累计刷新次数,并判断更新后的累计刷新次数中是否存在大于预设次数的累计刷新次数;
    第二设置单元,若更新后的累计刷新次数中存在大于预设次数的累计刷新次数,则根据预设列表和所述大于预设次数的累计刷新次数对应的第一应用标识设置所述移动终端的显示帧率。
  13. 根据权利要求12所述的帧率设置装置,其中,所述预设列表中存储有多个第二应用标识以及所述多个第二应用标识对应的预设帧率和优先级,所述第二设置单元具体用于:
    获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级;
    将优先级最高的第二应用标识对应的预设帧率设置为显示帧率。
  14. 根据权利要求13所述的帧率设置装置,其中,所述第二设置单元还用于:
    在所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级之前,判断所述预设列表中是否存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识;
    若存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则执行所述获取所述预设列表中与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识、预设帧率和优先级的步骤;
    若不存在与所述大于预设次数的累计刷新次数对应的第一应用标识匹配的第二应用标识,则将显示帧率设置为预设默认帧率。
  15. 根据权利要求10所述的帧率设置装置,其中,所述帧率设置装置还包括指令生成模块,用于:
    在接收到唤醒指令之前,当所述移动终端接收到帧率刷新信号时,生成携带所述帧率刷新信号的所述唤醒指令;
    或者当所述移动终端开启帧率调整功能且未收到帧率刷新信号达到第一预设时长时,生成所述唤醒指令。
  16. 根据权利要求10所述的帧率设置装置,其中,所述第二设置模块还用于:
    在所述将所述移动终端的显示帧率设置为第二预设帧率后,若所述移动终端的显示画面保持静止达到第二预设时长,则将所述移动终端的显示帧率设置为第四预设帧率。
  17. 根据权利要求10所述的帧率设置装置,其中,所述帧率设置装置还包括第一信号生成模块,用于:
    当所述移动终端处于低功耗模式或者电量低模式时,生成预设低功耗信号,所述预设低功耗信号为所述帧率刷新信号的一种。
  18. 根据权利要求10所述的帧率设置装置,其中,所述移动终端包括帧率设置功能,所述帧率设置装置还包括第二信号生成模块,用于:
    当所述帧率设置功能中的低功耗状态被选中时,生成预设低功耗信号,所述预设低功耗信号为所述帧率刷新信号中的一种。
  19. 一种计算机可读存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行权利要求1至9任一项所述的帧率设置方法。
  20. 一种移动终端,其包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行权利要求1至9任一项所述的帧率设置方法中的步骤。
PCT/CN2020/134471 2020-10-23 2020-12-08 帧率设置方法、装置、存储介质及移动终端 WO2022082951A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/250,199 US11994931B2 (en) 2020-10-23 2020-12-08 Frame rate setting method, apparatus, storage medium and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011149054.6A CN112198954B (zh) 2020-10-23 2020-10-23 帧率设置方法、装置、存储介质及移动终端
CN202011149054.6 2020-10-23

Publications (1)

Publication Number Publication Date
WO2022082951A1 true WO2022082951A1 (zh) 2022-04-28

Family

ID=74011241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134471 WO2022082951A1 (zh) 2020-10-23 2020-12-08 帧率设置方法、装置、存储介质及移动终端

Country Status (3)

Country Link
US (1) US11994931B2 (zh)
CN (1) CN112198954B (zh)
WO (1) WO2022082951A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929511B (zh) * 2021-01-29 2023-04-25 展讯通信(上海)有限公司 垂直同步信号的上报方法、装置及计算机可读存储介质
TWI785785B (zh) * 2021-09-09 2022-12-01 華碩電腦股份有限公司 電子裝置及其電源管理方法
CN114339410A (zh) * 2021-12-28 2022-04-12 维沃移动通信有限公司 插帧方法、装置及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869560A (zh) * 2016-04-01 2016-08-17 广东欧珀移动通信有限公司 一种显示屏刷新帧率调整方法及装置
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN106817755A (zh) * 2017-03-20 2017-06-09 北京白鹭时代信息技术有限公司 一种降低移动终端耗电的方法及装置
CN106933526A (zh) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 一种动态调节屏幕刷新率的方法、装置及移动终端
US20180332252A1 (en) * 2017-05-10 2018-11-15 Mediatek Inc. Apparatuses and methods for dynamic frame rate adjustment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991883A (en) * 1996-06-03 1999-11-23 Compaq Computer Corporation Power conservation method for a portable computer with LCD display
US8578192B2 (en) * 2008-06-30 2013-11-05 Intel Corporation Power efficient high frequency display with motion blur mitigation
CN103473051B (zh) * 2013-09-02 2017-03-15 小米科技有限责任公司 一种节省终端功耗的方法和装置
KR20150134772A (ko) * 2014-05-23 2015-12-02 엘지전자 주식회사 이동 단말기 및 그의 동적 프레임 조절 방법
US10096080B2 (en) * 2014-06-27 2018-10-09 Intel Corporation Power optimization with dynamic frame rate support
CN106776259B (zh) * 2017-01-10 2020-03-10 Oppo广东移动通信有限公司 一种移动终端帧率检测方法、装置及移动终端
CN110875978A (zh) * 2018-08-31 2020-03-10 努比亚技术有限公司 一种终端显示的控制方法、终端及计算机可读存储介质
CN110928396B (zh) * 2019-11-18 2021-07-30 Oppo(重庆)智能科技有限公司 屏幕刷新方法及相关设备
CN111399625A (zh) * 2020-03-04 2020-07-10 RealMe重庆移动通信有限公司 刷新频率的切换方法及装置、可读介质、通信终端
CN111610848A (zh) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、电子设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869560A (zh) * 2016-04-01 2016-08-17 广东欧珀移动通信有限公司 一种显示屏刷新帧率调整方法及装置
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN106933526A (zh) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 一种动态调节屏幕刷新率的方法、装置及移动终端
CN106817755A (zh) * 2017-03-20 2017-06-09 北京白鹭时代信息技术有限公司 一种降低移动终端耗电的方法及装置
US20180332252A1 (en) * 2017-05-10 2018-11-15 Mediatek Inc. Apparatuses and methods for dynamic frame rate adjustment

Also Published As

Publication number Publication date
CN112198954A (zh) 2021-01-08
US11994931B2 (en) 2024-05-28
US20230393643A1 (en) 2023-12-07
CN112198954B (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
US11635939B2 (en) Prompting method and mobile terminal
US11366510B2 (en) Processing method for reducing power consumption and mobile terminal
WO2022082951A1 (zh) 帧率设置方法、装置、存储介质及移动终端
CN109388220B (zh) 一种电源管理方法及移动终端
CN108762881B (zh) 界面绘制方法、装置、终端及存储介质
CN108196947B (zh) 一种应用运行状态控制方法及移动终端
WO2018095130A1 (zh) 一种确定直播时长的方法和系统
CN107957843B (zh) 一种控制方法和移动终端
US11381100B2 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
WO2018233631A1 (zh) 一种终端设备的控制方法、存储介质及终端设备
US20200168166A1 (en) Method for controlling brightness in mobile terminal display, mobile terminal and storage device
WO2022027859A1 (zh) 功率调节方法、存储介质及终端
CN111443803B (zh) 模式切换方法、装置、存储介质及移动终端
WO2023160250A1 (zh) 一种显示亮度控制方法、装置、电子设备和存储介质
CN111158815B (zh) 一种动态壁纸模糊方法、终端和计算机可读存储介质
CN108200635B (zh) 一种应用程序的运行控制方法及移动终端
CN107404569B (zh) 一种系统控制方法、终端和计算机可读存储介质
CN111627384B (zh) 显示画面补偿方法、装置、电子设备及存储介质
CN107193551B (zh) 一种生成图像帧的方法和装置
CN108365649B (zh) 一种充电控制方法、装置及移动终端
CN108170362B (zh) 一种应用运行状态控制方法及移动终端
CN112379778A (zh) 一种显示调节方法、装置、存储介质及终端
CN112199050A (zh) 存储方法、装置、存储介质及终端设备
CN108681467B (zh) 一种系统唤醒方法、终端
WO2019179296A1 (zh) 应用程序的管理方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20958526

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20958526

Country of ref document: EP

Kind code of ref document: A1