[go: up one dir, main page]

CN106657680A - Method and device for controlling frame rate of mobile terminal and mobile terminal - Google Patents

Method and device for controlling frame rate of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106657680A
CN106657680A CN201710142551.5A CN201710142551A CN106657680A CN 106657680 A CN106657680 A CN 106657680A CN 201710142551 A CN201710142551 A CN 201710142551A CN 106657680 A CN106657680 A CN 106657680A
Authority
CN
China
Prior art keywords
frame rate
mobile terminal
set value
current
current frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710142551.5A
Other languages
Chinese (zh)
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 CN201710142551.5A priority Critical patent/CN106657680A/en
Publication of CN106657680A publication Critical patent/CN106657680A/en
Priority to PCT/CN2017/106602 priority patent/WO2018161572A1/en
Pending legal-status Critical Current

Links

Classifications

    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种移动终端帧率的控制方法、装置及移动终端,所述方法包括:获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。本发明实施例提供的技术方案,可以合理的调节移动终端的帧率。

The embodiment of the present invention discloses a method, device and mobile terminal for controlling the frame rate of a mobile terminal, the method comprising: obtaining a current first frame rate of the mobile terminal and a second frame rate to be adjusted, the first frame rate being greater than the second frame rate; obtaining at least one intermediate frame rate between the first frame rate and the second frame rate according to a set smooth adjustment strategy; and gradually adjusting the frame rate of the mobile terminal from the first frame rate to the second frame rate based on the at least one intermediate frame rate. The technical solution provided by the embodiment of the present invention can reasonably adjust the frame rate of the mobile terminal.

Description

一种移动终端帧率的控制方法、装置及移动终端Method and device for controlling frame rate of mobile terminal and mobile terminal

技术领域technical field

本发明实施例涉及移动终端技术领域,尤其涉及一种移动终端帧率的控制方法、装置及移动终端。Embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method and device for controlling the frame rate of a mobile terminal and a mobile terminal.

背景技术Background technique

随着移动终端技术的发展,各式各样的移动终端已成为人们生活工作中不可或缺的工具。在安装有操作系统的移动终端中,移动终端通过不断刷新显示画面来呈现不同时刻下的各种显示画面。With the development of mobile terminal technology, various mobile terminals have become indispensable tools in people's life and work. In a mobile terminal installed with an operating system, the mobile terminal continuously refreshes the display screen to present various display screens at different times.

在手机等移动终端中的显示刷新流程中主要包括画面绘制操作、画面合成操作和显示操作。各应用如桌面或视频等,执行绘图(Render)操作,以分别绘制各自的图像;待所有应用完成Render操作后,系统执行合成(Compose)操作,以将各应用所绘制的图像合成为一个显示帧;将该显示帧输出到屏幕上进行最终显示。相关技术中移动终端在有帧率调节的需求时,帧率的控制方法存在一定缺陷,需要改进。The display refresh process in a mobile terminal such as a mobile phone mainly includes a picture drawing operation, a picture composition operation and a display operation. Each application, such as desktop or video, executes the Render operation to draw its own image; after all the applications complete the Render operation, the system executes the Compose operation to combine the images drawn by each application into one display Frame; outputs this display frame to the screen for final display. In the related art, when the mobile terminal needs to adjust the frame rate, the frame rate control method has certain defects and needs to be improved.

发明内容Contents of the invention

本发明实施例提供一种移动终端帧率的控制方法、装置及移动终端,可以合理的调节移动终端的帧率。Embodiments of the present invention provide a method and device for controlling the frame rate of a mobile terminal, and a mobile terminal, which can reasonably adjust the frame rate of the mobile terminal.

在第一方面,本发明实施例提供了一种移动终端帧率的控制方法,包括:In the first aspect, the embodiment of the present invention provides a method for controlling the frame rate of a mobile terminal, including:

获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;Acquiring the current first frame rate of the mobile terminal and a second frame rate to be adjusted, where the first frame rate is greater than the second frame rate;

按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;Obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy;

基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.

在第二方面,本发明实施例提供了一种移动终端帧率的控制装置,包括:In the second aspect, an embodiment of the present invention provides a device for controlling the frame rate of a mobile terminal, including:

帧率获取模块,用于获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;A frame rate acquisition module, configured to acquire the current first frame rate of the mobile terminal and a second frame rate to be adjusted, the first frame rate being greater than the second frame rate;

中间帧率获取模块,用于按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;An intermediate frame rate acquisition module, configured to acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy;

帧率调节模块,用于基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。A frame rate adjustment module, configured to gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate based on the at least one intermediate frame rate.

在第三方面,本发明实施例提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the computer program :

获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;Acquiring the current first frame rate of the mobile terminal and a second frame rate to be adjusted, where the first frame rate is greater than the second frame rate;

按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;Obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy;

基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.

本发明实施例通过获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率,按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率,并基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以合理的调节移动终端的帧率。In the embodiment of the present invention, by obtaining the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate is greater than the second frame rate, and the first frame rate is obtained according to the set smooth adjustment strategy. at least one intermediate frame rate between the frame rate and the second frame rate, and based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second Frame rate, which can reasonably adjust the frame rate of the mobile terminal.

附图说明Description of drawings

图1是本发明一个实施例提供的一种移动终端帧率的控制方法的流程图;FIG. 1 is a flowchart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention;

图2是本发明一个实施例提供的一种显示过程的示意图;Fig. 2 is a schematic diagram of a display process provided by an embodiment of the present invention;

图3是本发明一个实施例提供的Vsync显示刷新机制的示意图;FIG. 3 is a schematic diagram of a Vsync display refresh mechanism provided by an embodiment of the present invention;

图4是本发明一个实施例提供的一种移动终端帧率的控制方法的流程图;FIG. 4 is a flow chart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention;

图5是本发明一个实施例提供的帧率调节平滑曲线的示意图;Fig. 5 is a schematic diagram of a frame rate adjustment smooth curve provided by an embodiment of the present invention;

图6是本发明一个实施例提供的一种移动终端帧率的控制方法的流程图;FIG. 6 is a flow chart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention;

图7是本发明一个实施例提供的一种移动终端帧率的控制装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention;

图8是本发明一个实施例提供的一种移动终端的结构示意图。Fig. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

图1给出了本发明一个实施例提供的一种移动终端帧率的控制方法的流程图,本实施例的方法可以由移动终端帧率的控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部。Figure 1 shows a flow chart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention. The method of this embodiment can be executed by a device for controlling the frame rate of a mobile terminal, which can be implemented through hardware and/or It is realized by means of software, and the device can be set inside the mobile terminal as a part of the mobile terminal.

如图1所示,本实施例提供的一种移动终端帧率的控制方法包括以下步骤:As shown in Figure 1, a method for controlling the frame rate of a mobile terminal provided in this embodiment includes the following steps:

步骤101、获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率。Step 101. Obtain a current first frame rate and a second frame rate to be adjusted of the mobile terminal, where the first frame rate is greater than the second frame rate.

为了便于理解,下面以Android系统为例,对Android系统中显示画面从生成到显示的过程进行简单的说明。图2为本发明一个实施例提供的一种显示过程的示意图。For ease of understanding, the Android system is taken as an example below to briefly describe the process from generation to display of the display screen in the Android system. Fig. 2 is a schematic diagram of a display process provided by an embodiment of the present invention.

首先,在应用(Application)层,每个应用程序(以下简称应用或APP)按照自己的应用设计情况(一般由对应的安装包APK决定)各自单独执行图像绘制(Render)操作,并在绘制操作处理完成后,各应用将所绘制的所有图像发送给执行图像合成操作的合成模块(Surface flinger)。First, at the application layer, each application (hereinafter referred to as application or APP) executes the image rendering (Render) operation independently according to its own application design (generally determined by the corresponding installation package APK). After the processing is completed, each application sends all the drawn images to a composite module (Surface flinger) that performs image composite operations.

然后,在应用框架(Framework)层,系统有三个帧缓冲器(Frame Buffer,FB),三个FB可以循环使用。Surface flinger从三个FB中找出一个空闲的FB,并在该空闲的FB上,根据应用配置信息,例如哪个图像应该置底、哪个图像应该置顶、哪个图像采用透底效果等,通过合成(Compose)操作,将各个应用分别绘制的多个图像叠加在一起,得到最终显示的显示帧(待显示画面)。Then, in the application framework (Framework) layer, the system has three frame buffers (Frame Buffer, FB), and the three FBs can be used cyclically. Surface flinger finds an idle FB from the three FBs, and on the idle FB, according to the application configuration information, such as which image should be placed at the bottom, which image should be placed at the top, and which image should use the bottom effect, etc., through compositing (Compose ) operation to superimpose multiple images drawn by each application to obtain a final displayed display frame (image to be displayed).

最后,在内核(Kernel)层,可以将待显示画面通过移动终端显示处理(MobileDisplay Process,MDP)模块传输给显示硬件(包括显示控制器和显示屏,使待显示画面最终显示在显示屏上。这里对显示屏的类型不做限定,例如可以是液晶显示器(LiquidCrystal Display,LCD)。Finally, at the kernel (Kernel) layer, the picture to be displayed can be transmitted to the display hardware (including a display controller and a display screen) through a mobile terminal display processing (Mobile Display Process, MDP) module, so that the picture to be displayed is finally displayed on the display screen. The type of the display screen is not limited here, for example, it may be a liquid crystal display (LiquidCrystal Display, LCD).

另外,Android系统在显示刷新的过程中,引入了同步(Vsync)刷新机制。图3给出了本发明一个实施例提供的Vsync显示刷新机制的示意图。具体地,Vsync刷新机制其实就是在整个显示流程中,插入“心跳”即系统同步(Vsync)信号,由显示控制器发送给CPU,用于产生Vsync中断,以控制每次Render操作和Compose操作都需要按照心跳来完成,从而将整个显示过程中的关键步骤都纳入到Vsync的统一管理机制。Vsync信号频率目前常见为60Hz。In addition, the Android system introduces a synchronous (Vsync) refresh mechanism during the display refresh process. FIG. 3 shows a schematic diagram of a Vsync display refresh mechanism provided by an embodiment of the present invention. Specifically, the Vsync refresh mechanism is actually to insert a "heartbeat" or system synchronization (Vsync) signal in the entire display process, which is sent by the display controller to the CPU to generate a Vsync interrupt to control the timing of each Render operation and Compose operation. It needs to be completed according to the heartbeat, so that the key steps in the entire display process are included in the unified management mechanism of Vsync. The frequency of the Vsync signal is currently 60 Hz.

如图3所示,假设Vsync信号周期为T,不考虑信号的传输延迟,第一个Vsync信号Vsync1到达CPU后,CPU控制合成模块向各应用转发该第一个Vsync信号Vsync1,各应用响应于用户在显示屏上的触摸滑动等操作,开始执行Render操作;并在各应用完成Render操作后,得到各应用所绘制的多个图像。第二个Vsync信号Vsync2到达CPU后,CPU控制显示控制器向合成模块转发该第二个Vsync信号Vsync2,合成模块开始执行图像合成操作,将各应用所绘制的多个图像进行合成,生成待显示画面。第三个Vsync信号Vsync3到达CPU后,系统开始执行显示刷新,并将该待显示画面最终显示在显示屏上。As shown in Figure 3, assuming that the period of the Vsync signal is T, regardless of the transmission delay of the signal, after the first Vsync signal Vsync1 reaches the CPU, the CPU controls the synthesis module to forward the first Vsync signal Vsync1 to each application, and each application responds to The user performs operations such as touch and slide on the display screen to start the Render operation; and after each application completes the Render operation, multiple images drawn by each application are obtained. After the second Vsync signal Vsync2 reaches the CPU, the CPU controls the display controller to forward the second Vsync signal Vsync2 to the compositing module, and the compositing module starts to perform the image compositing operation, compositing multiple images drawn by each application to generate images to be displayed picture. After the third Vsync signal Vsync3 reaches the CPU, the system starts to perform display refresh, and finally displays the picture to be displayed on the display screen.

在移动终端图像绘制、合成和刷新显示的流程中,存在3种帧率:绘制帧率、合成帧率和刷新率(刷新帧率)。In the process of drawing, compositing and refreshing the display of images in the mobile terminal, there are three kinds of frame rates: frame rate for drawing, frame rate for compositing and refresh rate (refresh frame rate).

其中,绘制帧率为应用程序在图像绘制完成后,触发合成模块合成的帧率,可以理解为应用程序单位时间(例如,1秒钟)绘制图像的次数。Wherein, the drawing frame rate is the frame rate at which the application program triggers the composition module to synthesize after the image drawing is completed, which can be understood as the number of times the application program draws the image per unit time (for example, 1 second).

合成帧率为把各个应用程序的绘制图像合成为一个待显示画面的帧率。Compositing frame rate is the frame rate for compositing the drawn images of various application programs into a frame to be displayed.

刷新率为移动终端的显示屏显示画面刷新的帧率。The refresh rate is the frame rate at which the display screen of the mobile terminal is refreshed.

该步骤101中所述的帧率可以为绘制帧率、合成帧率或者刷新率。The frame rate mentioned in step 101 may be a rendering frame rate, a composite frame rate or a refresh rate.

在移动终端的运行场景中可能存在一些需要调整移动终端帧率的应用场景,对于从低帧率调到高帧率的应用场景,可以直接将帧率设置为高帧率,但是对于从高帧率调节为低帧率的应用场景,若直接由高帧率降低设置为低帧率,将会造成显示屏画面显示不够自然和流畅的问题,用户体验非常不好。There may be some application scenarios where the frame rate of the mobile terminal needs to be adjusted in the running scenario of the mobile terminal. For the application scenario where the frame rate is adjusted from a low frame rate to a high frame rate, the frame rate can be directly set to a high frame rate, but for a high frame rate In the application scenario where the frame rate is adjusted to a low frame rate, if the high frame rate is directly reduced to a low frame rate, it will cause the problem that the screen display is not natural and smooth enough, and the user experience is very bad.

该步骤用于获取当前的第一帧率和待调节后的第二帧率,其中所述第一帧率大于所述第二帧率。例如,第一帧率为60HZ,第二帧率为50HZ。This step is used to obtain the current first frame rate and the second frame rate to be adjusted, wherein the first frame rate is greater than the second frame rate. For example, the first frame rate is 60HZ, and the second frame rate is 50HZ.

步骤102、按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率。Step 102: Obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to a set smoothing adjustment strategy.

该步骤用于按照预先设定的平滑调节策略,获取第一帧率和第二帧率之间的至少一个中间帧率。具体可以根据第一帧率和第二帧率与各个中间帧率之间的设定函数对应关系来根据所述第一帧率和第二帧率获取所述至少一个中间帧率;或者结合移动终端当前的运行场景来根据所述第一帧率和第二帧率获取所述至少一个中间帧率。This step is used to obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to a preset smooth adjustment strategy. Specifically, the at least one intermediate frame rate can be obtained according to the first frame rate and the second frame rate according to the set function correspondence between the first frame rate and the second frame rate and each intermediate frame rate; or combined with the movement The terminal obtains the at least one intermediate frame rate according to the first frame rate and the second frame rate according to the current running scene of the terminal.

步骤103、基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Step 103. Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.

将移动终端的帧率由第一帧率依次调节至各个中间帧率,直至调节至所述第二帧率,实现了移动终端帧率的平滑调节,避免了由第一帧率直接调整至第二帧率造成的画面显示不流畅的问题。The frame rate of the mobile terminal is sequentially adjusted from the first frame rate to each intermediate frame rate until it is adjusted to the second frame rate, which realizes the smooth adjustment of the frame rate of the mobile terminal and avoids directly adjusting the frame rate from the first frame rate to the second frame rate. The problem that the picture display is not smooth caused by the second frame rate.

本实施例提供的移动终端帧率的控制方法,通过获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率,按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率,并基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以合理的调节移动终端的帧率。In the method for controlling the frame rate of a mobile terminal provided in this embodiment, by acquiring the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate is greater than the second frame rate, according to the set A smooth adjustment strategy, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate, and based on the at least one intermediate frame rate, changing the frame rate of the mobile terminal from the first The frame rate is gradually adjusted to the second frame rate, so that the frame rate of the mobile terminal can be adjusted reasonably.

图4给出了本发明一个实施例提供的一种移动终端帧率的控制方法的流程图。如图4所示,本实施例提供的方法包括以下步骤:FIG. 4 shows a flow chart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention. As shown in Figure 4, the method provided in this embodiment includes the following steps:

步骤201、获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率。Step 201. Obtain a current first frame rate and a second frame rate to be adjusted of the mobile terminal, where the first frame rate is greater than the second frame rate.

步骤201、将所述第一帧率作为当前帧率,基于当前帧率与中间帧率的设定对应关系,获取当前帧率对应的第一个中间帧率。Step 201. Using the first frame rate as the current frame rate, and based on the setting correspondence between the current frame rate and the intermediate frame rate, obtain a first intermediate frame rate corresponding to the current frame rate.

其中,所述当前帧率与中间帧率的设定关系包括:Wherein, the setting relationship between the current frame rate and the intermediate frame rate includes:

F(n)=Fs*cos((nπ)/K);或者,F(n)=Fs*cos((nπ)/K); or,

F(n)=Fs*sin((nπ)/K+π/2)F(n)=Fs*sin((nπ)/K+π/2)

其中,F(n)为中间帧率,Fs为当前帧率,K为设定值,n为初始值为1,增加值为设定间隔值的变量,在当前帧率为所述第一帧率时n为所述初始值1。其中π为180°,所述K值可以取值为180°。Wherein, F(n) is an intermediate frame rate, Fs is a current frame rate, K is a set value, n is an initial value of 1, and an increase value is a variable of a set interval value, and the current frame rate is the first frame The rate n is the initial value 1. Where π is 180°, and the value of K may be 180°.

可以理解的是,所述当前帧率与中间帧率的设定关系也可以为线性关系、指数关系或者对数关系,本实施例对此并不进行限制。示例性的,所述设定关系还可以为:F(n)=Fs-1,其中F(n)为中间帧率,Fs为当前帧率,n为初始值为1,增加值为设定间隔值的变量,例如设定间隔值为1,即n=n+1,在当前帧率为所述第一帧率时n为所述初始值1。It can be understood that, the setting relationship between the current frame rate and the intermediate frame rate may also be a linear relationship, an exponential relationship or a logarithmic relationship, which is not limited in this embodiment. Exemplarily, the setting relationship can also be: F(n)=Fs-1, wherein F(n) is the intermediate frame rate, Fs is the current frame rate, n is an initial value of 1, and the increment value is set For the variable of the interval value, for example, the interval value is set to 1, that is, n=n+1, and n is the initial value 1 when the current frame rate is the first frame rate.

下面以设定关系为F(n)=Fs*cos((nπ)/K)进行举例说明:The following is an example of setting the relationship as F(n)=Fs*cos((nπ)/K):

若K取值180°,当前的第一帧率为60,第二帧率为50,那么根据设定关系可得到第一个中间帧率F(1)=60*cos(π/K)=60*cos1=59.99,在一个具体的实施方式中可通过取整函数INT(x),得到F′(n)=INT(F(n)),即可将F′(1)=59作为第一个中间帧率。If the value of K is 180°, the current first frame rate is 60, and the second frame rate is 50, then according to the setting relationship, the first intermediate frame rate can be obtained F(1)=60*cos(π/K)= 60*cos1=59.99, in a specific embodiment, F'(n)=INT(F(n)) can be obtained through the rounding function INT(x), that is, F'(1)=59 can be used as the first An intermediate frame rate.

步骤203、将所述第一个中间帧率作为新的当前帧率,基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率,直至当前帧率与第二帧率的差值在设定范围内。Step 203, using the first intermediate frame rate as the new current frame rate, and based on the set correspondence, obtain the next intermediate frame rate corresponding to the new current frame rate until the current frame rate is the same as the second intermediate frame rate. The frame rate difference is within the set range.

如上述示例,将第一个中间帧率59作为新的当前帧率,基于上述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率(第二个中间帧率)F′(2),由F(2)=59.99*cos(2π/K)=59.95,可知F′(2)=59,将第二个中间帧率F′(2)=59作为当前帧率,基于上述对应关系,获取当前帧率对应的下一个中间帧率(第三个中间帧率)F′(3)=59,以此类推,直至当前帧率与第二帧率50的差值在设定范围内。其中,所述设定范围可以设置为0-1,即若当前帧率与第二设定值的差值小于等于1,则停止执行基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率的操作。例如,若当前中间帧率的值为51,则不再获取下一个中间帧率。As in the above example, the first intermediate frame rate 59 is used as the new current frame rate, and based on the above-mentioned setting correspondence, the next intermediate frame rate (second intermediate frame rate) F corresponding to the new current frame rate is obtained '(2), from F(2)=59.99*cos(2π/K)=59.95, it can be seen that F'(2)=59, the second intermediate frame rate F'(2)=59 is used as the current frame rate, Based on the above correspondence, the next intermediate frame rate corresponding to the current frame rate (the third intermediate frame rate) F'(3)=59 is obtained, and so on until the difference between the current frame rate and the second frame rate of 50 is within the setting range. Wherein, the setting range can be set to 0-1, that is, if the difference between the current frame rate and the second setting value is less than or equal to 1, the execution of obtaining the new current frame based on the setting correspondence is stopped. rate corresponds to the operation of the next intermediate frame rate. For example, if the value of the current intermediate frame rate is 51, the next intermediate frame rate will not be acquired.

最终可得到如下的中间帧率序列(单位HZ)(59,59,59,59,59,59,58,58,57,56,55,54,52,51)。Finally, the following intermediate frame rate sequence (unit: HZ) (59, 59, 59, 59, 59, 59, 58, 58, 57, 56, 55, 54, 52, 51) can be obtained.

步骤204、基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Step 204. Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.

如上述示例,基于获取的中间帧率序列,将帧率由第一帧率逐渐调节至所述第二帧率,即由第一帧率60HZ平滑调节至第二帧率50HZ的平滑调节序列如下(单位HZ)(60,59,59,59,59,59,59,58,58,57,56,55,54,52,51)。As in the above example, based on the obtained intermediate frame rate sequence, the frame rate is gradually adjusted from the first frame rate to the second frame rate, that is, the smooth adjustment sequence from the first frame rate of 60HZ to the second frame rate of 50HZ is as follows (unit HZ) (60, 59, 59, 59, 59, 59, 59, 58, 58, 57, 56, 55, 54, 52, 51).

如图5所示,根据F(n)=Fs*cos((nπ)/K)设定关系得到的中间帧率有一个缓慢过渡的过程,例如前6个中间帧率都是59,往后2个中间帧率是58,再往后是57,56,55,54,52,51,相比于线性设定关系能够更加平滑的调整帧率,且在从第一帧率降低到第二帧率的过程中,开始阶段平滑度较高,往后平滑度慢慢降低,可以达到画面流畅度高,并且帧率降低速度快的技术效果。As shown in Figure 5, the intermediate frame rate obtained by setting the relationship according to F(n)=Fs*cos((nπ)/K) has a slow transition process. For example, the first six intermediate frame rates are all 59, and the following The two intermediate frame rates are 58, and then 57, 56, 55, 54, 52, 51. Compared with the linear setting relationship, the frame rate can be adjusted more smoothly, and when the first frame rate is reduced to the second In the process of frame rate, the smoothness is high at the beginning, and then the smoothness gradually decreases, which can achieve the technical effect of high screen fluency and fast frame rate reduction.

本实施例提供的方法,通过获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率,将所述第一帧率作为当前帧率,基于当前帧率与中间帧率的设定对应关系,获取当前帧率对应的第一个中间帧率,将所述第一个中间帧率作为新的当前帧率,基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率,直至当前帧率与第二帧率的差值在设定范围内,并基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以实现平滑的调节移动终端的帧率。In the method provided in this embodiment, by acquiring the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate is greater than the second frame rate, and the first frame rate is used as the current frame rate, based on the setting correspondence between the current frame rate and the intermediate frame rate, obtain the first intermediate frame rate corresponding to the current frame rate, and use the first intermediate frame rate as the new current frame rate, based on the set Determine the corresponding relationship, obtain the next intermediate frame rate corresponding to the new current frame rate, until the difference between the current frame rate and the second frame rate is within the set range, and based on the at least one intermediate frame rate, the obtained The frame rate of the mobile terminal is gradually adjusted from the first frame rate to the second frame rate, which can realize smooth adjustment of the frame rate of the mobile terminal.

图6给出了本发明一个实施例提供的一种移动终端帧率的控制方法的流程图。如图6所示,本实施例提供的移动终端帧率的控制方法包括以下步骤:FIG. 6 shows a flow chart of a method for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 6, the method for controlling the frame rate of a mobile terminal provided in this embodiment includes the following steps:

步骤301、获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率。Step 301. Obtain the current first frame rate and the second frame rate to be adjusted of the mobile terminal, where the first frame rate is greater than the second frame rate.

步骤302、根据设定预测参数预测从所述第一帧率到第二帧率的调节过程中,移动终端所处的场景类型,所述场景类型包括静态画面场景、低动态画面场景和高动态画面场景。Step 302: Predict the scene type of the mobile terminal during the adjustment process from the first frame rate to the second frame rate according to the set prediction parameters, and the scene types include static picture scenes, low dynamic picture scenes and high dynamic picture scenes. screen scene.

其中,所述设定预测参数包括当前运行的应用程序的属性、中央处理器(CentralProcessing Unit,CPU)的频率信息、中央处理器的负载信息、图像处理器(GraphicProcessing Unit,GPU)的频率信息和图像处理器的负载信息中的至少一项。所述应用程序的属性包括应用程序的标识或者类型。Wherein, the set prediction parameters include the attributes of the currently running application program, the frequency information of the central processing unit (Central Processing Unit, CPU), the load information of the central processing unit, the frequency information of the image processor (Graphic Processing Unit, GPU) and At least one item of load information of the image processor. The attributes of the application program include the identification or type of the application program.

示例性,若当前运行的应用程序为桌面,则预测调节过程中移动终端所处的场景类型为静态画面场景;若当前运行的应用程序为微信、QQ或者阅读器类型的应用程序,则预测调节过程中移动终端所处的场景类型为低动态画面场景;若当前运行的应用程序的类型为视频或者游戏,则预测调节过程中移动终端处于高动态画面场景。Exemplarily, if the currently running application program is a desktop, the scene type of the mobile terminal during the forecast adjustment process is a static picture scene; The scene type of the mobile terminal is a low dynamic picture scene; if the type of the currently running application program is video or game, the mobile terminal is in a high dynamic picture scene during the prediction adjustment process.

又示例性的,可将中央处理器的负载和/或频率分为3个等级,负载和/或频率处于第1等级即负载和/或频率为0的或者较小的运行场景下预测调节过程中移动终端处于静态画面场景;负载和/或频率处于第2等级的运行场景下预测调节过程中移动终端处于低动态画面场景;负载和/或频率处于第3等级的运行场景下预测调节过程中移动终端处于高动态画面场景。同理,也可将图像处理器的负载和/或频率分为3个等级,根据图像处理器的负载和/或频率的等级预测调节过程中移动终端所处的场景类型。可以理解的是,也可以结合中央处理器的负载和/或频率的等级以及图像处理器的负载和/或频率的等级预测调节过程中移动终端所处的场景类型。As another example, the load and/or frequency of the central processing unit can be divided into 3 levels, and the load and/or frequency is in the first level, that is, the load and/or frequency is 0 or a smaller operating scenario. The mobile terminal is in a static picture scene; the mobile terminal is in a low dynamic picture scene during the predictive adjustment process under the second-level operating scene; the mobile terminal is in the predictive adjustment process under the third-level operating scene. High dynamic picture scene. Similarly, the load and/or frequency of the image processor can also be divided into three levels, and the scene type of the mobile terminal during the adjustment process is predicted according to the load and/or frequency level of the image processor. It can be understood that, the load and/or frequency level of the central processing unit and the load and/or frequency level of the image processor can also be used to predict the scene type of the mobile terminal during the adjustment process.

步骤303、按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率。Step 303: Acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the smoothing adjustment strategy corresponding to the scene type.

若预测到调节过程中移动终端处于静态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:将所述第一帧率作为当前帧率,将当前帧率与第一设定值的差值作为第一个中间帧率;将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第一设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第一设定值。If it is predicted that the mobile terminal is in a static picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes: Using the first frame rate as the current frame rate, using the difference between the current frame rate and the first set value as the first intermediate frame rate; using the first intermediate frame rate as the new current frame rate, setting The difference between the new current frame rate and the first set value is used as the next intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the first set value.

示例性的,第一帧率为60HZ,第二帧率为50HZ,第一设定值为3。将第一帧率与第一设定值的差值57HZ作为第一个中间帧率;将第一个中间帧率作为新的当前帧率,将新的当前帧率与第一设定值的差值54HZ作为第二个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第一设定值。即可得到中间帧率序列(单位HZ)为(57,54,51)。Exemplarily, the first frame rate is 60HZ, the second frame rate is 50HZ, and the first setting value is 3. Take the difference of 57HZ between the first frame rate and the first set value as the first intermediate frame rate; use the first intermediate frame rate as the new current frame rate, and use the difference between the new current frame rate and the first set value The difference of 54HZ is used as the second intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the first set value. Then the intermediate frame rate sequence (unit HZ) can be obtained as (57, 54, 51).

若预测到调节过程中移动终端处于低动态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:将所述第一帧率作为当前帧率,将当前帧率与第二设定值的差值作为第一个中间帧率;将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第二设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第二设定值。If it is predicted that the mobile terminal is in a low dynamic picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes : use the first frame rate as the current frame rate, use the difference between the current frame rate and the second set value as the first intermediate frame rate; use the first intermediate frame rate as the new current frame rate, The difference between the new current frame rate and the second set value is used as the next intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the second set value.

示例性的,第一帧率为60HZ,第二帧率为50HZ,第二设定值为2。将第一帧率与第二设定值的差值58HZ作为第一个中间帧率;将第一个中间帧率作为新的当前帧率,将新的当前帧率与第二设定值的差值56HZ作为第二个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第二设定值。即可得到中间帧率序列(单位HZ)为(58,56,54,52)。Exemplarily, the first frame rate is 60HZ, the second frame rate is 50HZ, and the second setting value is 2. Use the difference of 58HZ between the first frame rate and the second set value as the first intermediate frame rate; use the first intermediate frame rate as the new current frame rate, and use the difference between the new current frame rate and the second set value The difference of 56HZ is used as the second intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the second set value. Then the intermediate frame rate sequence (unit HZ) can be obtained as (58, 56, 54, 52).

若预测到调节过程中移动终端处于高动态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:将所述第一帧率作为当前帧率,将当前帧率与第三设定值的差值作为第一个中间帧率;将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第三设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第三设定值。If it is predicted that the mobile terminal is in a high dynamic picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes : use the first frame rate as the current frame rate, use the difference between the current frame rate and the third set value as the first intermediate frame rate; use the first intermediate frame rate as the new current frame rate, The difference between the new current frame rate and the third set value is used as the next intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the third set value.

示例性的,第一帧率为60HZ,第二帧率为50HZ,第三设定值为1。将第一帧率与第三设定值的差值59HZ作为第一个中间帧率;将第一个中间帧率作为新的当前帧率,将新的当前帧率与第三设定值的差值58作为第二个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第三设定值。即可得到中间帧率序列(单位HZ)为(59,58,57,56,55,54,53,52,51)。Exemplarily, the first frame rate is 60HZ, the second frame rate is 50HZ, and the third set value is 1. Use the difference 59HZ between the first frame rate and the third set value as the first intermediate frame rate; use the first intermediate frame rate as the new current frame rate, and use the difference between the new current frame rate and the third set value The difference 58 is used as the second intermediate frame rate until the difference between the current frame rate and the second frame rate is less than or equal to the third set value. Then the intermediate frame rate sequence (unit: HZ) can be obtained as (59, 58, 57, 56, 55, 54, 53, 52, 51).

其中,所述第一设定值、第二设定值和第三设定值依次减小。Wherein, the first set value, the second set value and the third set value decrease sequentially.

步骤304、基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Step 304. Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.

本实施例提供的方法,通过获取移动终端当前的第一帧率和待调节后的第二帧率,根据设定预测参数预测从所述第一帧率到第二帧率的调节过程中,移动终端所处的场景类型,按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以结合移动终端所处的场景类型,平滑的调节移动终端的帧率。In the method provided in this embodiment, by acquiring the current first frame rate of the mobile terminal and the second frame rate to be adjusted, and predicting the adjustment process from the first frame rate to the second frame rate according to the set prediction parameters, The scene type where the mobile terminal is located, according to the smooth adjustment strategy corresponding to the scene type, acquiring at least one intermediate frame rate between the first frame rate and the second frame rate based on the at least one intermediate frame rate, Gradually adjusting the frame rate of the mobile terminal from the first frame rate to the second frame rate can smoothly adjust the frame rate of the mobile terminal in combination with the scene type of the mobile terminal.

图7为本发明一个实施例提供的一种移动终端帧率的控制装置的结构示意图,该装置可由软件和/或硬件实现,集成在移动终端中。如图7所示,该装置包括帧率获取模块41、中间帧率获取模块42和帧率调节模块43。FIG. 7 is a schematic structural diagram of a device for controlling the frame rate of a mobile terminal provided by an embodiment of the present invention. The device can be implemented by software and/or hardware and integrated in the mobile terminal. As shown in FIG. 7 , the device includes a frame rate acquisition module 41 , an intermediate frame rate acquisition module 42 and a frame rate adjustment module 43 .

所述帧率获取模块41,用于获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;The frame rate acquiring module 41 is configured to acquire the current first frame rate of the mobile terminal and a second frame rate to be adjusted, the first frame rate being greater than the second frame rate;

所述中间帧率获取模块42,用于按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;The intermediate frame rate acquisition module 42 is configured to acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy;

所述帧率调节模块43,用于基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。The frame rate adjustment module 43 is configured to gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate based on the at least one intermediate frame rate.

进一步的,所述中间帧率获取模块用于:Further, the intermediate frame rate acquisition module is used for:

将所述第一帧率作为当前帧率,基于当前帧率与中间帧率的设定对应关系,获取当前帧率对应的第一个中间帧率;Using the first frame rate as the current frame rate, based on the setting correspondence between the current frame rate and the intermediate frame rate, obtaining the first intermediate frame rate corresponding to the current frame rate;

将所述第一个中间帧率作为新的当前帧率,基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率,直至当前帧率与第二帧率的差值在设定范围内。Using the first intermediate frame rate as a new current frame rate, based on the set correspondence, acquire the next intermediate frame rate corresponding to the new current frame rate until the difference between the current frame rate and the second frame rate The difference is within the set range.

进一步的,所述当前帧率与中间帧率的设定关系包括:Further, the setting relationship between the current frame rate and the intermediate frame rate includes:

F(n)=Fs*cos((nπ)/K);或者,F(n)=Fs*cos((nπ)/K); or,

F(n)=Fs*sin((nπ)/K+π/2)F(n)=Fs*sin((nπ)/K+π/2)

其中,F(n)为中间帧率,Fs为当前帧率,K为设定值,n为初始值为1,增加值为设定间隔值的变量,在当前帧率为所述第一帧率时n为所述初始值1。Wherein, F(n) is an intermediate frame rate, Fs is a current frame rate, K is a set value, n is an initial value of 1, and an increase value is a variable of a set interval value, and the current frame rate is the first frame The rate n is the initial value 1.

进一步的,所述中间帧率获取模块用于:Further, the intermediate frame rate acquisition module is used for:

根据设定预测参数预测从所述第一帧率到第二帧率的调节过程中,移动终端所处的场景类型,所述场景类型包括静态画面场景、低动态画面场景和高动态画面场景;According to the set prediction parameters, during the adjustment process from the first frame rate to the second frame rate, the scene type of the mobile terminal is predicted, and the scene type includes a static picture scene, a low dynamic picture scene and a high dynamic picture scene;

按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率。Acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the smoothing adjustment policy corresponding to the scene type.

进一步的,所述设定预测参数包括当前运行的应用程序的种类属性、中央处理器的频率信息、中央处理器的负载信息、图像处理器的频率信息和图像处理器的负载信息中的至少一项。Further, the set prediction parameters include at least one of the category attribute of the currently running application program, the frequency information of the central processing unit, the load information of the central processing unit, the frequency information of the image processor, and the load information of the image processor item.

进一步的,若预测到调节过程中移动终端处于静态画面场景,则所述中间帧率获取模块用于:Further, if it is predicted that the mobile terminal is in a static picture scene during the adjustment process, the intermediate frame rate acquisition module is used to:

将所述第一帧率作为当前帧率,将当前帧率与第一设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the first set value as the first intermediate frame rate;

将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第一设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于第一设定值小于或者等于第一设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the first set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than the first set value less than or equal to the first set value;

若预测到调节过程中移动终端处于低动态画面场景,则所述中间帧率获取模块用于:If it is predicted that the mobile terminal is in a low dynamic picture scene during the adjustment process, the intermediate frame rate acquisition module is used for:

将所述第一帧率作为当前帧率,将当前帧率与第二设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the second set value as the first intermediate frame rate;

将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第二设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于第二设定值小于或者等于第二设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the second set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than the second set value less than or equal to the second set value;

若预测到调节过程中移动终端处于高动态画面场景,则所述中间帧率获取模块用于:If it is predicted that the mobile terminal is in a high dynamic picture scene during the adjustment process, the intermediate frame rate acquisition module is used for:

将所述第一帧率作为当前帧率,将当前帧率与第三设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the third set value as the first intermediate frame rate;

将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第三设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于第三设定值小于或者等于第三设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the third set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than the third set value less than or equal to the third set value;

其中,所述第一设定值、第二设定值和第三设定值依次减小。Wherein, the first set value, the second set value and the third set value decrease sequentially.

进一步的,所述帧率包括移动终端的应用程序的绘制帧率、用于合成画面的合成模块的合成帧率或者显示屏的刷新率。Further, the frame rate includes a drawing frame rate of an application program of the mobile terminal, a synthesis frame rate of a synthesis module for synthesizing images, or a refresh rate of a display screen.

本实施例提供的装置,通过获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率,按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率,并基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以合理的调节移动终端的帧率。The device provided in this embodiment obtains the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate is greater than the second frame rate, and obtains the set smooth adjustment strategy according to the set smoothing adjustment strategy. at least one intermediate frame rate between the first frame rate and the second frame rate, and based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate The above second frame rate can reasonably adjust the frame rate of the mobile terminal.

图8为本发明一个实施例提供的一种移动终端的结构示意图,该移动终端可以包括本发明任意实施例提供的移动终端帧率的控制装置,如图8所示,该移动终端可以包括:存储器501、中央处理器(Central Processing Unit,CPU)502(又称处理器,以下简称CPU)、所述存储器501,用于存储可执行程序代码;所述处理器502通过读取所述存储器501中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal may include a device for controlling the frame rate of the mobile terminal provided in any embodiment of the present invention. As shown in FIG. 8 , the mobile terminal may include: Memory 501, central processing unit (Central Processing Unit, CPU) 502 (also known as processor, hereinafter referred to as CPU), and the memory 501 are used to store executable program codes; the processor 502 reads the memory 501 The executable program code stored in the executable program code is used to run the program corresponding to the executable program code, so as to perform: acquiring the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate greater than the second frame rate; according to the set smooth adjustment strategy, at least one intermediate frame rate between the first frame rate and the second frame rate is obtained; based on the at least one intermediate frame rate, the The frame rate of the mobile terminal is gradually adjusted from the first frame rate to the second frame rate.

所述移动终端还包括:外设接口503、RF(Radio Frequency,射频)电路505、音频电路506、扬声器511、电源管理芯片508、输入/输出(I/O)子系统509、触摸屏512、其他输入/控制设备510以及外部端口504,这些部件通过一个或多个通信总线或信号线507来通信。The mobile terminal also includes: peripheral interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio circuit 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other Input/control devices 510 and external ports 504 , these components communicate via one or more communication buses or signal lines 507 .

应该理解的是,图示移动终端500仅仅是移动终端的一个范例,并且移动终端500可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 500 is only an example of a mobile terminal, and the mobile terminal 500 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于控制帧率的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal for controlling the frame rate provided in this embodiment will be described in detail below, and the mobile terminal is a mobile phone as an example.

存储器501,所述存储器501可以被CPU502、外设接口503等访问,所述存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 501, the memory 501 can be accessed by the CPU 502, the peripheral interface 503, etc., the memory 501 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口503,所述外设接口503可以将设备的输入和输出外设连接到CPU502和存储器501。Peripheral interface 503 , which can connect the input and output peripherals of the device to CPU 502 and memory 501 .

I/O子系统509,所述I/O子系统509可以将设备上的输入输出外设,例如触摸屏512和其他输入/控制设备510,连接到外设接口503。I/O子系统509可以包括显示控制器5091和用于控制其他输入/控制设备510的一个或多个输入控制器5092。其中,一个或多个输入控制器5092从其他输入/控制设备510接收电信号或者向其他输入/控制设备510发送电信号,其他输入/控制设备510可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器5092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 509 , the I/O subsystem 509 can connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510 , to the peripheral interface 503 . I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510 . Among them, one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 5092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏512,所述触摸屏512是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 512, the touch screen 512 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统509中的显示控制器5091从触摸屏512接收电信号或者向触摸屏512发送电信号。触摸屏512检测触摸屏上的接触,显示控制器5091将检测到的接触转换为与显示在触摸屏512上的用户界面对象的交互,即实现人机交互,显示在触摸屏512上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or sends electrical signals to the touch screen 512 . The touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 512, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 512 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.

RF电路505,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路505接收并发送RF信号,RF信号也称为电磁信号,RF电路505将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路505可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 505 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 505 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.

音频电路506,主要用于从外设接口503接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器511。The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503 , convert the audio data into electrical signals, and send the electrical signals to the speaker 511 .

扬声器511,用于将手机通过RF电路505从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 511 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 505 into sound and play the sound to the user.

电源管理芯片508,用于为CPU502、I/O子系统及外设接口503所连接的硬件进行供电及电源管理。The power management chip 508 is used for power supply and power management for the hardware connected to the CPU 502 , the I/O subsystem and the peripheral interface 503 .

上述移动终端可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块,通过获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率,按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率,并基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率,可以合理的调节移动终端的帧率。The above-mentioned mobile terminal can execute the method provided by any embodiment of the present invention, and has a corresponding functional module for executing the method. By obtaining the current first frame rate of the mobile terminal and the second frame rate to be adjusted, the first frame rate is greater than For the second frame rate, according to the set smooth adjustment strategy, at least one intermediate frame rate between the first frame rate and the second frame rate is obtained, and based on the at least one intermediate frame rate, the The frame rate of the mobile terminal is gradually adjusted from the first frame rate to the second frame rate, so that the frame rate of the mobile terminal can be adjusted reasonably.

上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The foregoing are only preferred embodiments of the present invention and the applied technical principles. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the claims.

Claims (15)

1.一种移动终端帧率的控制方法,其特征在于,包括:1. A method for controlling the frame rate of a mobile terminal, comprising: 获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;Acquiring the current first frame rate of the mobile terminal and a second frame rate to be adjusted, where the first frame rate is greater than the second frame rate; 按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;Obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy; 基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate. 2.根据权利要求1所述的方法,其特征在于,所述按照设定平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:2. The method according to claim 1, wherein the obtaining at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy comprises: 将所述第一帧率作为当前帧率,基于当前帧率与中间帧率的设定对应关系,获取当前帧率对应的第一个中间帧率;Using the first frame rate as the current frame rate, based on the setting correspondence between the current frame rate and the intermediate frame rate, obtaining the first intermediate frame rate corresponding to the current frame rate; 将所述第一个中间帧率作为新的当前帧率,基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率,直至当前帧率与第二帧率的差值在设定范围内。Using the first intermediate frame rate as a new current frame rate, based on the set correspondence, acquire the next intermediate frame rate corresponding to the new current frame rate until the difference between the current frame rate and the second frame rate The difference is within the set range. 3.根据权利要求2所述的方法,其特征在于,所述当前帧率与中间帧率的设定关系包括:3. The method according to claim 2, wherein the setting relationship between the current frame rate and the intermediate frame rate comprises: F(n)=Fs*cos((nπ)/K);或者,F(n)=Fs*cos((nπ)/K); or, F(n)=Fs*sin((nπ)/K+π/2)F(n)=Fs*sin((nπ)/K+π/2) 其中,F(n)为中间帧率,Fs为当前帧率,K为设定值,n为初始值为1,增加值为设定间隔值的变量,在当前帧率为所述第一帧率时n为所述初始值1。Wherein, F(n) is an intermediate frame rate, Fs is a current frame rate, K is a set value, n is an initial value of 1, and an increase value is a variable of a set interval value, and the current frame rate is the first frame The rate n is the initial value 1. 4.根据权利要求1所述的方法,其特征在于,所述按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:4. The method according to claim 1, wherein the obtaining at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy comprises: 根据设定预测参数预测从所述第一帧率到第二帧率的调节过程中,移动终端所处的场景类型,所述场景类型包括静态画面场景、低动态画面场景和高动态画面场景;According to the set prediction parameters, during the adjustment process from the first frame rate to the second frame rate, the scene type of the mobile terminal is predicted, and the scene type includes a static picture scene, a low dynamic picture scene and a high dynamic picture scene; 按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率。Acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the smoothing adjustment policy corresponding to the scene type. 5.根据权利要求4所述的方法,其特征在于,所述设定预测参数包括当前运行的应用程序的属性、中央处理器的频率信息、中央处理器的负载信息、图像处理器的频率信息和图像处理器的负载信息中的至少一项。5. The method according to claim 4, wherein the set prediction parameters include the attributes of the currently running application program, the frequency information of the central processing unit, the load information of the central processing unit, and the frequency information of the image processor and at least one item of load information of the image processor. 6.根据权利要求4所述的方法,其特征在于:6. The method according to claim 4, characterized in that: 若预测到调节过程中移动终端处于静态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:If it is predicted that the mobile terminal is in a static picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes: 将所述第一帧率作为当前帧率,将当前帧率与第一设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the first set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第一设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第一设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the first set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the first set value; 若预测到调节过程中移动终端处于低动态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:If it is predicted that the mobile terminal is in a low dynamic picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes : 将所述第一帧率作为当前帧率,将当前帧率与第二设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the second set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第二设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第二设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the second set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the second set value; 若预测到调节过程中移动终端处于高动态画面场景,则所述按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率包括:If it is predicted that the mobile terminal is in a high dynamic picture scene during the adjustment process, then according to the smooth adjustment strategy corresponding to the scene type, obtaining at least one intermediate frame rate between the first frame rate and the second frame rate includes : 将所述第一帧率作为当前帧率,将当前帧率与第三设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the third set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第三设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第三设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the third set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the third set value; 其中,所述第一设定值、第二设定值和第三设定值依次减小。Wherein, the first set value, the second set value and the third set value decrease sequentially. 7.根据权利要求1-6任一项所述的方法,其特征在于,所述帧率包括移动终端的应用程序的绘制帧率、用于合成画面的合成模块的合成帧率或者显示屏的刷新率。7. The method according to any one of claims 1-6, wherein the frame rate includes the drawing frame rate of the application program of the mobile terminal, the synthesis frame rate of the synthesis module for synthesizing pictures, or the frame rate of the display screen. refresh rate. 8.一种移动终端帧率的控制装置,其特征在于,包括:8. A device for controlling the frame rate of a mobile terminal, comprising: 帧率获取模块,用于获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;A frame rate acquisition module, configured to acquire the current first frame rate of the mobile terminal and a second frame rate to be adjusted, the first frame rate being greater than the second frame rate; 中间帧率获取模块,用于按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;An intermediate frame rate acquisition module, configured to acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy; 帧率调节模块,用于基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。A frame rate adjustment module, configured to gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate based on the at least one intermediate frame rate. 9.根据权利要求8所述的装置,其特征在于,所述中间帧率获取模块用于:9. The device according to claim 8, wherein the intermediate frame rate acquisition module is used for: 将所述第一帧率作为当前帧率,基于当前帧率与中间帧率的设定对应关系,获取当前帧率对应的第一个中间帧率;Using the first frame rate as the current frame rate, based on the setting correspondence between the current frame rate and the intermediate frame rate, obtaining the first intermediate frame rate corresponding to the current frame rate; 将所述第一个中间帧率作为新的当前帧率,基于所述设定对应关系,获取所述新的当前帧率对应的下一个中间帧率,直至当前帧率与第二帧率的差值在设定范围内。Using the first intermediate frame rate as a new current frame rate, based on the set correspondence, acquire the next intermediate frame rate corresponding to the new current frame rate until the difference between the current frame rate and the second frame rate The difference is within the set range. 10.根据权利要求9所述的装置,其特征在于,所述当前帧率与中间帧率的设定关系包括:10. The device according to claim 9, wherein the setting relationship between the current frame rate and the intermediate frame rate comprises: F(n)=Fs*cos((nπ)/K);或者,F(n)=Fs*cos((nπ)/K); or, F(n)=Fs*sin((nπ)/K+π/2)F(n)=Fs*sin((nπ)/K+π/2) 其中,F(n)为中间帧率,Fs为当前帧率,K为设定值,n为初始值为1,增加值为设定间隔值的变量,在当前帧率为所述第一帧率时n为所述初始值1。Wherein, F(n) is an intermediate frame rate, Fs is a current frame rate, K is a set value, n is an initial value of 1, and an increase value is a variable of a set interval value, and the current frame rate is the first frame The rate n is the initial value 1. 11.根据权利要求8所述的装置,其特征在于,所述中间帧率获取模块用于:11. The device according to claim 8, wherein the intermediate frame rate acquisition module is used for: 根据设定预测参数预测从所述第一帧率到第二帧率的调节过程中,移动终端所处的场景类型,所述场景类型包括静态画面场景、低动态画面场景和高动态画面场景;According to the set prediction parameters, during the adjustment process from the first frame rate to the second frame rate, the scene type of the mobile terminal is predicted, and the scene type includes a static picture scene, a low dynamic picture scene and a high dynamic picture scene; 按照所述场景类型对应的平滑调整策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率。Acquire at least one intermediate frame rate between the first frame rate and the second frame rate according to the smoothing adjustment policy corresponding to the scene type. 12.根据权利要求11所述的装置,其特征在于,所述设定预测参数包括当前运行的应用程序的属性、中央处理器的频率信息、中央处理器的负载信息、图像处理器的频率信息和图像处理器的负载信息中的至少一项。12. The device according to claim 11, wherein the set prediction parameters include attributes of currently running application programs, frequency information of the central processing unit, load information of the central processing unit, and frequency information of the image processor and at least one item of load information of the image processor. 13.根据权利要求11所述的装置,其特征在于:13. The device of claim 11, wherein: 若预测到调节过程中移动终端处于静态画面场景,则所述中间帧率获取模块用于:If it is predicted that the mobile terminal is in a static picture scene during the adjustment process, the intermediate frame rate acquisition module is used for: 将所述第一帧率作为当前帧率,将当前帧率与第一设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the first set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第一设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第一设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the first set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the first set value; 若预测到调节过程中移动终端处于低动态画面场景,则所述中间帧率获取模块用于:If it is predicted that the mobile terminal is in a low dynamic picture scene during the adjustment process, the intermediate frame rate acquisition module is used for: 将所述第一帧率作为当前帧率,将当前帧率与第二设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the second set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第二设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第二设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the second set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the second set value; 若预测到调节过程中移动终端处于高动态画面场景,则所述中间帧率获取模块用于:If it is predicted that the mobile terminal is in a high dynamic picture scene during the adjustment process, the intermediate frame rate acquisition module is used for: 将所述第一帧率作为当前帧率,将当前帧率与第三设定值的差值作为第一个中间帧率;Using the first frame rate as the current frame rate, and using the difference between the current frame rate and the third set value as the first intermediate frame rate; 将所述第一个中间帧率作为新的当前帧率,将新的当前帧率与第三设定值的差值作为下一个中间帧率,直至当前帧率与第二帧率的差值小于或者等于第三设定值;Use the first intermediate frame rate as the new current frame rate, use the difference between the new current frame rate and the third set value as the next intermediate frame rate, until the difference between the current frame rate and the second frame rate less than or equal to the third set value; 其中,所述第一设定值、第二设定值和第三设定值依次减小。Wherein, the first set value, the second set value and the third set value decrease sequentially. 14.根据权利要求8-13任一项所述的装置,其特征在于,所述帧率包括移动终端的应用程序的绘制帧率、用于合成画面的合成模块的合成帧率或者显示屏的刷新率。14. The device according to any one of claims 8-13, wherein the frame rate includes the drawing frame rate of the application program of the mobile terminal, the synthesis frame rate of the synthesis module used for synthesizing pictures, or the frame rate of the display screen. refresh rate. 15.一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:15. A mobile terminal, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements the following steps when executing the computer program: 获取移动终端当前的第一帧率和待调节后的第二帧率,所述第一帧率大于所述第二帧率;Acquiring the current first frame rate of the mobile terminal and a second frame rate to be adjusted, where the first frame rate is greater than the second frame rate; 按照设定平滑调节策略,获取所述第一帧率和所述第二帧率之间的至少一个中间帧率;Obtain at least one intermediate frame rate between the first frame rate and the second frame rate according to the set smooth adjustment strategy; 基于所述至少一个中间帧率,将所述移动终端的帧率由所述第一帧率逐渐调节至所述第二帧率。Based on the at least one intermediate frame rate, gradually adjust the frame rate of the mobile terminal from the first frame rate to the second frame rate.
CN201710142551.5A 2017-03-10 2017-03-10 Method and device for controlling frame rate of mobile terminal and mobile terminal Pending CN106657680A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710142551.5A CN106657680A (en) 2017-03-10 2017-03-10 Method and device for controlling frame rate of mobile terminal and mobile terminal
PCT/CN2017/106602 WO2018161572A1 (en) 2017-03-10 2017-10-17 Method and apparatus for controlling frame rate of mobile terminal, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142551.5A CN106657680A (en) 2017-03-10 2017-03-10 Method and device for controlling frame rate of mobile terminal and mobile terminal

Publications (1)

Publication Number Publication Date
CN106657680A true CN106657680A (en) 2017-05-10

Family

ID=58848362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142551.5A Pending CN106657680A (en) 2017-03-10 2017-03-10 Method and device for controlling frame rate of mobile terminal and mobile terminal

Country Status (2)

Country Link
CN (1) CN106657680A (en)
WO (1) WO2018161572A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161572A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Method and apparatus for controlling frame rate of mobile terminal, storage medium, and electronic device
CN110531951A (en) * 2019-08-30 2019-12-03 腾讯科技(深圳)有限公司 Picture output mode method of adjustment, device, equipment, system and storage medium
CN110798738A (en) * 2018-08-01 2020-02-14 Oppo广东移动通信有限公司 Frame rate control method, device, terminal and storage medium
CN111752368A (en) * 2020-06-22 2020-10-09 无锡睿勤科技有限公司 Display fluency adjusting method, system, terminal and storage medium
CN111966557A (en) * 2019-05-20 2020-11-20 北京车和家信息技术有限公司 Method and device for monitoring browser frame rate
CN113630572A (en) * 2021-07-09 2021-11-09 荣耀终端有限公司 Frame rate switching method and related device
CN114785972A (en) * 2022-03-30 2022-07-22 中国科学院长春光学精密机械与物理研究所 A kind of aviation allometric image motion compensation circuit, system and method
WO2023124225A1 (en) * 2021-12-29 2023-07-06 荣耀终端有限公司 Frame rate switching method and apparatus
CN120393400A (en) * 2025-04-19 2025-08-01 北京传递快乐科技有限公司 A method, device and electronic device for controlling and switching the frame rate of a game display screen
WO2025227820A1 (en) * 2024-04-30 2025-11-06 华为技术有限公司 Image display method and apparatus

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702649B (en) * 2019-10-22 2024-12-20 高新兴科技集团股份有限公司 A method for optimizing the smoothness of live video playback on a mobile terminal, a storage medium, and an electronic device
CN112230758B (en) * 2020-11-09 2023-11-17 腾讯科技(深圳)有限公司 Frame rate adjustment method, device, equipment and computer readable storage medium
CN114510140B (en) * 2020-11-16 2024-04-16 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment
CN116700653B (en) 2022-02-28 2024-03-19 荣耀终端有限公司 Frame rate switching method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120189263A1 (en) * 2011-01-20 2012-07-26 Casio Computer Co., Ltd. Imaging apparatus and imaging method for taking moving image
CN102930852A (en) * 2012-11-08 2013-02-13 山东大学 Method of improving mobile terminal system performance by dynamically regulating of screen refresh rate
CN104269155A (en) * 2014-09-24 2015-01-07 广东欧珀移动通信有限公司 A method and device for adjusting screen refresh rate
CN104509119A (en) * 2012-04-24 2015-04-08 Vid拓展公司 Method and device for smooth stream switching in MPEG/3GPP-DASH

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005236520A (en) * 2004-02-18 2005-09-02 Sanyo Electric Co Ltd Display apparatus
CN104282286B (en) * 2014-10-30 2017-03-08 广东欧珀移动通信有限公司 Adjust the method and system of intelligent mobile terminal display refresh rates according to application scenarios
CN106250085A (en) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 Refresh rate method of adjustment and device
CN106375772B (en) * 2016-08-29 2019-10-01 北京小米移动软件有限公司 Video broadcasting method and device
CN106657680A (en) * 2017-03-10 2017-05-10 广东欧珀移动通信有限公司 Method and device for controlling frame rate of mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120189263A1 (en) * 2011-01-20 2012-07-26 Casio Computer Co., Ltd. Imaging apparatus and imaging method for taking moving image
CN104509119A (en) * 2012-04-24 2015-04-08 Vid拓展公司 Method and device for smooth stream switching in MPEG/3GPP-DASH
CN102930852A (en) * 2012-11-08 2013-02-13 山东大学 Method of improving mobile terminal system performance by dynamically regulating of screen refresh rate
CN104269155A (en) * 2014-09-24 2015-01-07 广东欧珀移动通信有限公司 A method and device for adjusting screen refresh rate

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161572A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Method and apparatus for controlling frame rate of mobile terminal, storage medium, and electronic device
CN110798738A (en) * 2018-08-01 2020-02-14 Oppo广东移动通信有限公司 Frame rate control method, device, terminal and storage medium
CN111966557A (en) * 2019-05-20 2020-11-20 北京车和家信息技术有限公司 Method and device for monitoring browser frame rate
CN111966557B (en) * 2019-05-20 2023-07-14 北京车和家信息技术有限公司 Method and device for monitoring browser frame rate
CN110531951B (en) * 2019-08-30 2022-03-25 腾讯科技(深圳)有限公司 Picture output mode adjusting method, device, equipment, system and storage medium
CN110531951A (en) * 2019-08-30 2019-12-03 腾讯科技(深圳)有限公司 Picture output mode method of adjustment, device, equipment, system and storage medium
CN111752368A (en) * 2020-06-22 2020-10-09 无锡睿勤科技有限公司 Display fluency adjusting method, system, terminal and storage medium
CN113630572A (en) * 2021-07-09 2021-11-09 荣耀终端有限公司 Frame rate switching method and related device
WO2023124225A1 (en) * 2021-12-29 2023-07-06 荣耀终端有限公司 Frame rate switching method and apparatus
US12308002B2 (en) 2021-12-29 2025-05-20 Honor Device Co., Ltd. Frame rate switching method and apparatus
CN114785972A (en) * 2022-03-30 2022-07-22 中国科学院长春光学精密机械与物理研究所 A kind of aviation allometric image motion compensation circuit, system and method
WO2025227820A1 (en) * 2024-04-30 2025-11-06 华为技术有限公司 Image display method and apparatus
CN120393400A (en) * 2025-04-19 2025-08-01 北京传递快乐科技有限公司 A method, device and electronic device for controlling and switching the frame rate of a game display screen
CN120393400B (en) * 2025-04-19 2025-10-21 北京传递快乐科技有限公司 A method, device and electronic device for controlling and switching the frame rate of a game display screen

Also Published As

Publication number Publication date
WO2018161572A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
CN106657680A (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
CN106941563B (en) control method and device for refresh rate of mobile terminal and mobile terminal
CN106933328B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
CN106791212B (en) Method, device and mobile terminal for controlling refresh rate of mobile terminal
CN106657681B (en) A kind of control method, device and the mobile terminal of mobile terminal refresh rate
US11100901B2 (en) Method for controlling rendering of layers, terminal, and storage medium
US10863213B2 (en) Method and device for controlling frame rate of electronic device, storage medium, and electronic device
CN106919401B (en) A method, device and mobile terminal for dynamically adjusting resolution
US10564837B2 (en) Mobile terminal and method and device for controlling to display in the same
CN106919243B (en) Mobile terminal control method and device and mobile terminal
CN106933327B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
US11145238B2 (en) Method for controlling image graphing of terminal, nontransitory computer-readable storage medium, and terminal
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
CN106919358A (en) A kind of display control method of mobile terminal, device and mobile terminal
CN106951054B (en) Application control method and device and mobile terminal
JP2014174995A (en) Reducing power consumption during graphics rendering
CN113728622B (en) Method and device for wirelessly transmitting images, storage medium and electronic device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510