CN109889896A - Method, mobile terminal and the storage medium of dynamic regulation CPU running frequency - Google Patents
Method, mobile terminal and the storage medium of dynamic regulation CPU running frequency Download PDFInfo
- Publication number
- CN109889896A CN109889896A CN201910240031.7A CN201910240031A CN109889896A CN 109889896 A CN109889896 A CN 109889896A CN 201910240031 A CN201910240031 A CN 201910240031A CN 109889896 A CN109889896 A CN 109889896A
- Authority
- CN
- China
- Prior art keywords
- cpu
- video
- frequency
- weighted value
- running frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses method, system, mobile terminal and the storage mediums of a kind of dynamic regulation CPU running frequency, are related to technical field of mobile terminals.Wherein method includes: and samples according to predeterminated frequency to currently playing video when detecting video playing;According to the sample information of current sampling point and the default CPU broadcasting weighted value for playing weighted value calculative strategy and calculating the current sampling point;The target operating frequency that the mapping relations between weighted value and preset CPU broadcasting weighted value and the running frequency of CPU determine the CPU is played according to the CPU;The CPU is controlled to run according to the target operating frequency.The running frequency that CPU is adjusted according to video content dynamic may be implemented in the embodiment of the present invention, can not only guarantee the fluency of video playing, but also can save the power consumption of mobile terminal, reduce the calorific value of CPU.
Description
Technical field
The present embodiments relate to technical field of mobile terminals, in particular to a kind of side of dynamic regulation CPU running frequency
Method, mobile terminal and storage medium.
Background technique
Currently, mobile terminal is when carrying out video playing, no matter video content how, central processor (Central
Processing Unit, CPU) running frequency be all consistent, however actually by factors such as shooting environmental, post-production
It influences, different videos, such as: the video of different types of video or different image quality, when playing to the running frequency of CPU
Demand be variation, if playing out control using same running frequency for different videos, can there is broadcasting Caton
Or the potential problems such as mobile terminal generates heat, electric quantity consumption is fast.
Summary of the invention
In view of this, a kind of method for being designed to provide dynamic regulation CPU running frequency of the embodiment of the present invention, movement
Terminal and storage medium, with solve it is above-mentioned control is played out using same running frequency for different videos, can be in the presence of broadcasting
Put Caton or the potential problems such as mobile terminal generates heat, electric quantity consumption is fast.
It is as follows that the embodiment of the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of an embodiment of the present invention, a kind of method of dynamic regulation CPU running frequency is provided, is applied to move
Dynamic terminal, which is characterized in that the method for the dynamic regulation CPU running frequency includes:
When detecting video playing, currently playing video is sampled according to predeterminated frequency;
The current sampling point is calculated according to the sample information of current sampling point and the default weighted value calculative strategy that plays
CPU plays weighted value;
Weighted value is played according to the CPU and preset CPU plays the mapping between weighted value and the running frequency of CPU and closes
System determines the target operating frequency of the CPU;
The CPU is controlled to run according to the target operating frequency.
Based on the above technical solution, it is described when detecting video playing after further include:
The video type of currently playing video is obtained, the video type includes game video and non-gaming video;
If the currently playing video is game video, currently playing video is carried out according to predeterminated frequency into described
The step of sampling;Alternatively,
If the currently playing video is non-gaming video, identify that the currently playing video is prompted with the presence or absence of plot
Point;
Plot prompts point if it exists, then the currently playing video is divided into multiple videos according to plot prompt point
Segmentation, and each video segmentation is sampled respectively according to the predeterminated frequency;
Plot prompts point if it does not exist, then enters the step sampled according to predeterminated frequency to currently playing video
Suddenly.
Based on the above technical solution, the sample information of the current sampling point includes video type, present sample
It puts number of person, number of articles, color saturation, image quality information in the frame image of place and whether there is in basic lens information
It is one or more.
Based on the above technical solution, described that weighted value and preset CPU broadcasting weighted value are played according to the CPU
Mapping relations between the running frequency of CPU determine before the target operating frequency of the CPU further include:
Judge that the CPU of the current sampling point plays the difference between weighted value and the CPU broadcasting weighted value of a upper sampled point
Whether value is less than preset threshold;
If being less than the preset threshold, controls the CPU and continue according to the frequency of operation corresponding to a upper sampled point
Rate operation;
If more than or equal to the preset threshold, then broadcast into described according to CPU broadcasting weighted value and preset CPU
Put the step of mapping relations between weighted value and the running frequency of CPU determine the target operating frequency of the CPU.
Other side according to an embodiment of the present invention provides a kind of system of dynamic regulation CPU running frequency, is applied to
The system of mobile terminal, the dynamic regulation CPU running frequency includes:
Video content sampling unit, for when detecting video playing, according to predeterminated frequency to currently playing video into
Row sampling;
Weighted value computing unit is played, for calculating plan according to the sample information and the default weighted value that plays of current sampling point
The CPU that approximation calculates the current sampling point plays weighted value;
Running frequency acquiring unit, for playing weighted value and preset CPU broadcasting weighted value and CPU according to the CPU
Running frequency between mapping relations determine the target operating frequency of the CPU;
Running frequency adjustment unit is run for controlling the CPU according to the target operating frequency.
Based on the above technical solution, further includes:
Video type acquiring unit, for obtaining the video type of currently playing video, the video type includes game
Video and non-gaming video;
The video content sampling unit, is specifically used for:
If the currently playing video is game video, currently playing video is sampled according to predeterminated frequency;Or
Person,
If the currently playing video is non-gaming video, identify that the currently playing video is prompted with the presence or absence of plot
Point;
Plot prompts point if it exists, then the currently playing video is divided into multiple videos according to plot prompt point
Segmentation, and each video segmentation is sampled respectively according to the predeterminated frequency;
Plot prompts point if it does not exist, then samples according to predeterminated frequency to currently playing video.
Based on the above technical solution, the sample information of the current sampling point includes video type, present sample
It puts number of person, number of articles, color saturation, image quality information in the frame image of place and whether there is in basic lens information
It is one or more.
Based on the above technical solution, further includes:
Judging unit, for judging that the CPU of the current sampling point plays weighted value and the CPU broadcasting of a upper sampled point adds
Whether the difference between weight is less than preset threshold;
The running frequency acquiring unit is specifically used for:
If being less than the preset threshold, using running frequency corresponding to a upper sampled point as the mesh of the CPU
Mark running frequency;
If more than or equal to the preset threshold, then weighted value is played according to the CPU and preset CPU plays weighted value
Mapping relations between the running frequency of CPU determine the target operating frequency of the CPU.
Another aspect according to an embodiment of the present invention provides a kind of mobile terminal, including memory, processor and storage
On the memory and the computer program that can run on the processor, the computer program is by the processor
When execution, realize as described in any of the above-described the step of the method for dynamic regulation CPU running frequency.
Another aspect according to an embodiment of the present invention provides a kind of storage medium, meter is stored on the storage medium
Calculation machine program when the computer program is executed by processor, realizes the dynamic regulation CPU running frequency as described in any of the above-described
Method the step of.
Method, system, mobile terminal and the storage medium of dynamic regulation CPU running frequency provided in an embodiment of the present invention,
Due to by being sampled to currently playing video according to predeterminated frequency when detecting video playing;According to current sampling point
Sample information and it is default play weighted value calculative strategy and calculate the CPU of the current sampling point play weighted value;According to described
The mapping relations that CPU is played between weighted value and preset CPU broadcasting weighted value and the running frequency of CPU determine the CPU's
Target operating frequency;It controls the CPU to run according to the target operating frequency, so as to realize according to video content dynamic
The running frequency for adjusting CPU, can not only guarantee the fluency of video playing, but also can save the power consumption of mobile terminal,
Reduce the calorific value of CPU.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of hardware structural diagram of mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the specific implementation flow signal of the method for the dynamic regulation CPU running frequency that the embodiment of the present invention one provides
Figure;
Fig. 3 is the specific implementation flow signal of the method for dynamic regulation CPU running frequency provided by Embodiment 2 of the present invention
Figure;
Fig. 4 is the structural schematic diagram of the system for the dynamic regulation CPU running frequency that the embodiment of the present invention three provides;
Fig. 5 is the schematic diagram of internal structure for the mobile terminal that the embodiment of the present invention four provides.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Mobile terminal can be implemented in a variety of manners.For example, mobile terminal described in the present invention may include such as
Mobile phone, tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant,
PDA), portable media player (Portable Media Player, PMP), navigation device, wearable device, intelligent hand
The fixed cellular terminals such as the mobile terminals such as ring, pedometer, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the mobile end of fixed type
End.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the method for the present invention is proposed.
Embodiment one
Fig. 2 is the specific implementation flow signal of the method for the dynamic regulation CPU running frequency that the embodiment of the present invention one provides
Figure, the executing subject of this method are mobile terminal shown in FIG. 1.It is shown in Figure 2, dynamic regulation CPU provided in this embodiment
The method of running frequency the following steps are included:
Step S201 samples currently playing video according to predeterminated frequency when detecting video playing.
In the present embodiment, the predeterminated frequency is that every 300ms is primary to currently playing video sampling.Each sampled point
Sample information includes but is not limited to that number of person, number of articles, color are saturated in frame image where video type, current sampling point
Degree, image quality information and with the presence or absence of one or more in basic lens information.
Step S202 is calculated described current according to the sample information of current sampling point and default broadcasting weighted value calculative strategy
The CPU of sampled point plays weighted value.
In the present embodiment, it is assigned corresponding weight for the sample information of each attribute in advance, when mobile terminal obtains
After the sample information of every attribute of current sampling point, can further it obtain in advance as the sample information distribution of every attribute
Weighted value, obtain the current sampling point after being overlapped to the weighted value of the sample information distribution of every attribute
CPU plays weighted value.
Such as: in a specific implementation example, preset and play in weighted value calculative strategy: video type is non-gaming video
Corresponding weight is 4, and video type is that the corresponding weight of game video is 6;Number of person is 4 less than the weight of 3 people in image,
Weight more than or equal to 3 people is 6;Weight of the number of articles less than 3 is 4 in image, and the weight more than or equal to 3 is 6;
The weight that the color saturation of image is less than preset color threshold value is 4, and the weight more than or equal to preset color threshold value is 6;It draws
The weight that matter resolution ratio is less than default resolution threshold is 4, and the weight greater than preset color resolution ratio is 6;It is not present in image
The weight of basic lens is 4, is 6 there are the weight of basic lens.Assuming that the sample information of current sampling point are as follows: non-gaming type
Number of person is 1 in frame image where video, current sampling point, number of articles 1, color saturation are saturated greater than preset color
Threshold value, image quality resolution ratio are greater than default resolution threshold, and there are basic lens in image, then the current sampling point
CPU weighted value n=4+4+4+6+6+6=48.Certainly in other implementation examples, or the sample information of different attribute point
With different weights.
Step S203, according to the CPU play weighted value and preset CPU play weighted value and CPU running frequency it
Between mapping relations determine the target operating frequency of the CPU.
In the present embodiment, the mapping relations carry out handmarking, data by data of the background server to acquisition
It is obtained after analysis and excavation, the mapping relations can be stored in the background server, also can store in the mobile terminal
It is local.When the mapping relations are stored in background server, the mobile terminal plays weighted value according to the CPU and accesses institute
Background server is stated, to obtain the target operating frequency of the CPU corresponding with CPU broadcasting weighted value;When the mapping
When relationship is stored in the mobile terminal local, it is local that the mobile terminal directly can play weighted value access according to the CPU
The mapping relations of storage obtain the target operating frequency of the CPU.
Step S204 controls the CPU and runs according to the target operating frequency.
In the present embodiment, after acquisition for mobile terminal target operating frequency corresponding to the current sampling point,
It directly controls the CPU and current operation frequency is switched to the target operating frequency, and run according to institute's target operating frequency.
Since mobile terminal persistently can sample broadcasting video according to predeterminated frequency in video display process, every time after sampling all
The target operating frequency of a CPU can be reacquired, and in real time according to the fortune of the target frequency of the CPU newly got control CPU
Row, such mobile terminal can realize the running frequency that CPU is adjusted according to video-frequency playing content dynamic, so that the operation of CPU
Frequency matches with frequency required for broadcasting content, thus can be in video playing in the higher situation of CPU running frequency
Guarantee the fluency of video playing, and mobile terminal power consumption can be saved in the case where video playing is to the lower situation of CPU running frequency,
Reduce mobile terminal calorific value.
Above as can be seen that the method for dynamic regulation CPU running frequency provided in this embodiment by working as due to being detected
When video playing, currently playing video is sampled according to predeterminated frequency;According to the sample information of current sampling point and preset
Play the CPU broadcasting weighted value that weighted value calculative strategy calculates the current sampling point;According to CPU broadcasting weighted value and in advance
If CPU play the target operating frequency that the mapping relations between weighted value and the running frequency of CPU determine the CPU;Control
The CPU is run according to the target operating frequency, so as to realize the operation frequency according to video content dynamic adjustment CPU
Rate can not only guarantee the fluency of video playing, but also can save the power consumption of mobile terminal, reduce the calorific value of CPU.
Embodiment two
Fig. 3 is the implementation process schematic diagram of the method for the dynamic regulation CPU running frequency that the embodiment of the present invention three provides, should
The executing subject of method is mobile terminal shown in FIG. 1.It is shown in Figure 3, dynamic regulation CPU operation frequency provided in this embodiment
The method of rate the following steps are included:
Step S301 obtains the video type of currently playing video, the video type packet when detecting video playing
Include game video and non-gaming video;If the currently playing video is non-gaming video, S302 is entered step;If described work as
Preceding broadcasting video is game video, then enters step S304.
Step S302 identifies that the currently playing video prompts point with the presence or absence of plot;If it exists plot prompt point, then into
Enter step S303;Plot prompts point if it does not exist, then enters step S304.
The currently playing video is divided into multiple video segmentation according to plot prompt point, and pressed by step S303
Each video segmentation is sampled respectively according to the predeterminated frequency.
Step S304 samples currently playing video according to predeterminated frequency.
Wherein, the mobile terminal can currently playing video described in the source title by the currently playing video view
Frequency type.The non-gaming video includes but is not limited to the video of the types such as TV play, film in video APP;The game
Video includes the video played when game APP operation.Due to be generally not present in game video plot prompt point, only TV play,
Just there is plot prompt point in the non-gaming video of film types, therefore when identifying currently playing video is game video, directly
It connects and currently playing video is sampled according to predeterminated frequency;And when identifying currently playing video is non-gaming video, then
Whether have plot prompt point, since plot prompt point is usually scene, role, plot switching if needing further to identify wherein
Starting point, therefore the image frame of corresponding video playing is considerable at plot prompt point, so in the present embodiment
In, when detecting in the currently playing video there are when plot prompt point, then prompt point will be described currently playing according to plot
Video is divided into multiple video segmentation, and then from the starting point of each video segmentation, (plot of i.e. every section video segmentation prompts point
Place) start respectively to sample each video segmentation according to the predeterminated frequency, it can guarantee to collect each plot in this way
The corresponding video playing picture image in prompt point place, so that subsequent analysis result is more accurate.
Step S305 is calculated described current according to the sample information of current sampling point and default broadcasting weighted value calculative strategy
The CPU of sampled point plays weighted value.
Step S306 judges that the CPU of the current sampling point plays weighted value and the CPU of a upper sampled point plays weighted value
Between difference whether be less than preset threshold;If being less than the preset threshold, S307 is entered step;Described in if more than or equal to
Preset threshold then enters step S308.
Step S307 controls the CPU and continues to run according to running frequency corresponding to a upper sampled point.
In the present embodiment, the mobile terminal get current sampling point CPU play weighted value after by its with it is upper
CPU corresponding to one sampled point plays weighted value and is compared, and judges whether the difference of the two is less than preset threshold, if being less than default
Threshold value plays weighted value in the corresponding CPU of two sampled points of explanation and is located at same section, and corresponding CPU running frequency is identical,
Therefore control CPU continues to run according to running frequency corresponding to a upper sampled point;Conversely, then illustrating that two sampled points are corresponding
CPU plays weighted value and is located at different sections, and corresponding CPU running frequency is different, it is therefore desirable to enter weight in step S208
The new target operating frequency for obtaining the corresponding CPU of current sampling point.
Step S308, according to the CPU play weighted value and preset CPU play weighted value and CPU running frequency it
Between mapping relations determine the target operating frequency of the CPU.
Step S309 controls the CPU and runs according to the target operating frequency.
It should be noted that the step S305, step S308 and step S309 in the present embodiment are due to real with upper one respectively
Step S202~step S204 the implementation applied in example is identical, therefore details are not described herein.
Relative to a upper embodiment, when the present embodiment is due to prompting point there are plot in recognizing currently playing video,
The currently playing video is divided into multiple video segmentation according to plot prompt point, and is distinguished according to the predeterminated frequency
Each video segmentation is sampled, thereby may be ensured that the picture frame sampled accurately reacts its view for corresponding to video segmentation
Frequency feature, so that the target operating frequency of the CPU of subsequent calculating is more accurate;Due in the CPU that current sampling point is calculated
After playing weighted value, judge that its CPU corresponding with a upper sampled point plays weighted value whether in same section, if in same area
Between, then keep CPU current operation frequency constant;If playing weighted value further according to the CPU of current sampling point not in same section
Its corresponding target operating frequency is obtained, the current operation frequency of CPU is adjusted to target operating frequency, so as to improve
The running frequency regulated efficiency of CPU.
Embodiment three
Fig. 4 is the structural schematic diagram of the system for the dynamic regulation CPU running frequency that the embodiment of the present invention three provides.The system
Applied to mobile terminal shown in FIG. 1.For ease of description, it illustrate only part related to the present embodiment.
Shown in Figure 4, the system 4 of dynamic regulation CPU running frequency provided in this embodiment includes:
Video content sampling unit 41, for when detecting video playing, according to predeterminated frequency to currently playing video
It is sampled;
Weighted value computing unit 42 is played, for calculating according to the sample information and the default weighted value that plays of current sampling point
The CPU of current sampling point described in policy calculation plays weighted value;
Running frequency acquiring unit 43, for according to the CPU play weighted value and preset CPU play weighted value with
Mapping relations between the running frequency of CPU determine the target operating frequency of the CPU;
Running frequency adjustment unit 44 is run for controlling the CPU according to the target operating frequency.
Optionally, the system 4 of the dynamic regulation CPU running frequency further include:
Video type acquiring unit 45, for obtaining the video type of currently playing video, the video type includes trip
Play video and non-gaming video;
The video content sampling unit 41, is specifically used for:
If the currently playing video is game video, currently playing video is sampled according to predeterminated frequency;Or
Person,
If the currently playing video is non-gaming video, identify that the currently playing video is prompted with the presence or absence of plot
Point;
Plot prompts point if it exists, then the currently playing video is divided into multiple videos according to plot prompt point
Segmentation, and each video segmentation is sampled respectively according to the predeterminated frequency;
Plot prompts point if it does not exist, then samples according to predeterminated frequency to currently playing video.
Optionally, the sample information of the current sampling point includes video type, people in frame image where current sampling point
Object quantity, number of articles, color saturation, image quality information and with the presence or absence of one or more in basic lens information.
Optionally, the system 4 of the dynamic regulation CPU running frequency further include:
Judging unit 46, for judging that the CPU of the current sampling point plays the CPU broadcasting of weighted value and a upper sampled point
Whether the difference between weighted value is less than preset threshold;
The running frequency acquiring unit 43 is specifically used for:
If being less than the preset threshold, using running frequency corresponding to a upper sampled point as the mesh of the CPU
Mark running frequency;
If more than or equal to the preset threshold, then weighted value is played according to the CPU and preset CPU plays weighted value
Mapping relations between the running frequency of CPU determine the target operating frequency of the CPU.
It should be noted that the system of the dynamic regulation CPU running frequency of the offer of the present embodiment due to above-mentioned implementation
The method for the dynamic regulation CPU running frequency that example one and embodiment two provide belongs to same design, and specific implementation process is detailed
See embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in this apparatus embodiments, which is not described herein again.
It will appreciated by the skilled person that whole or certain steps in the present embodiment disclosed method, can be with
It is implemented as software, firmware, hardware and its combination appropriate.
Example IV
Fig. 5 is the schematic diagram of internal structure for the mobile terminal that the embodiment of the present invention four provides.For ease of description, only show
Part related to the present embodiment is gone out.
It is shown in Figure 5, mobile terminal 5 provided in this embodiment, including memory 51, processor 52 and be stored in described
On memory 51 and the computer program 53 that can run on the processor 52, the computer program 53 is by the processing
When device 52 executes, realize as described in above-described embodiment one or embodiment two the step of the method for dynamic regulation CPU running frequency.
It should be noted that the mobile terminal of the offer of the present embodiment with above-described embodiment one and embodiment two due to providing
The method of dynamic regulation CPU running frequency belong to same design, specific implementation process is shown in embodiment of the method, and method in detail
Technical characteristic in embodiment is corresponding applicable in this apparatus embodiments, and which is not described herein again.
It will appreciated by the skilled person that whole or certain steps in the present embodiment disclosed method, can be with
It is implemented as software, firmware, hardware and its combination appropriate.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, stores on the computer readable storage medium
There is computer program, when the computer program is executed by processor, realizes and moved as described in above-described embodiment one or embodiment two
State adjusts the step of method of CPU running frequency.
It should be noted that the computer readable storage medium of the offer of the present embodiment is due to above-described embodiment one and in fact
The method for applying the dynamic regulation CPU running frequency of the offer of example two belongs to same design, and the detailed square method of specific implementation process is real
Example is applied, and the technical characteristic in embodiment of the method is corresponding applicable in this apparatus embodiments, which is not described herein again.
It will appreciated by the skilled person that whole or certain steps in the present embodiment disclosed method, can be with
It is implemented as software, firmware, hardware and its combination appropriate.
In hardware embodiment, the division between functional module/unit referred in the above description is not necessarily corresponded to
In the division of physical assemblies;If for example, a physical assemblies can have multiple functions or a function or step can be by
Dry physical assemblies cooperation executes.Certain physical assemblies or all physical assemblies may be implemented as by processor, such as central processing
The software that device, digital signal processor or microprocessor execute, is perhaps implemented as hardware or is implemented as integrated circuit,
Such as specific integrated circuit.Such software can be distributed on a computer-readable medium, and computer-readable medium may include meter
Calculation machine storage medium (or non-transitory medium) and communication media (or fugitive medium).As known in those of ordinary skill in the art
, term computer storage medium is included in for storing information (such as computer readable instructions, data structure, program module
Or other data) any method or technique in implement volatile and non-volatile, removable and nonremovable medium.It calculates
Machine storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc
(DVD) or other optical disc storages, magnetic holder, tape, disk storage or other magnetic memory apparatus or can be used for storing desired
Information and any other medium that can be accessed by a computer.In addition, known to a person of ordinary skill in the art be, communication
Medium generally comprises computer readable instructions, data structure, program module or such as carrier wave or other transmission mechanisms etc
Other data in modulated data signal, and may include any information delivery media.
Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, not thereby limiting the scope of the invention.This
Field technical staff without departing from the scope and spirit of the invention in made by any modifications, equivalent replacements, and improvements, should all this
Within the interest field of invention.
Claims (10)
1. a kind of method of dynamic regulation CPU running frequency is applied to mobile terminal, which is characterized in that the dynamic regulation CPU
The method of running frequency includes:
When detecting video playing, currently playing video is sampled according to predeterminated frequency;
It is broadcast according to the CPU that the sample information of current sampling point and default broadcasting weighted value calculative strategy calculate the current sampling point
Put weighted value;
It is true that the mapping relations between weighted value and preset CPU broadcasting weighted value and the running frequency of CPU are played according to the CPU
The target operating frequency of the fixed CPU;
The CPU is controlled to run according to the target operating frequency.
2. the method for dynamic regulation CPU running frequency as described in claim 1, which is characterized in that described to detect video
After when broadcasting further include:
The video type of currently playing video is obtained, the video type includes game video and non-gaming video;
If the currently playing video is game video, currently playing video is sampled according to predeterminated frequency into described
The step of;Alternatively,
If the currently playing video is non-gaming video, identify that the currently playing video prompts point with the presence or absence of plot;
Plot prompts point if it exists, then the currently playing video is divided into multiple videos minute according to plot prompt point
Section, and each video segmentation is sampled respectively according to the predeterminated frequency;
Plot prompts point if it does not exist, then enters described the step of sampling according to predeterminated frequency to currently playing video.
3. the method for dynamic regulation CPU running frequency as described in claim 1, which is characterized in that the current sampling point
Sample information includes video type, number of person, number of articles, color saturation, image quality in frame image where current sampling point
Information and with the presence or absence of one or more in basic lens information.
4. the method for dynamic regulation CPU running frequency as described in claim 1, which is characterized in that described to be broadcast according to the CPU
It puts weighted value and preset CPU plays the mapping relations between weighted value and the running frequency of CPU and determines that the target of the CPU is transported
Before line frequency further include:
Judging the difference between the CPU broadcasting weighted value of the current sampling point and the CPU broadcasting weighted value of a upper sampled point is
It is no to be less than preset threshold;
If being less than the preset threshold, controls the CPU and continue to transport according to running frequency corresponding to a upper sampled point
Row;
If more than or equal to the preset threshold, then enters described play according to CPU broadcasting weighted value and preset CPU and add
Mapping relations between weight and the running frequency of CPU determine the step of target operating frequency of the CPU.
5. a kind of system of dynamic regulation CPU running frequency is applied to mobile terminal, which is characterized in that the dynamic regulation CPU
The system of running frequency includes:
Video content sampling unit, for being adopted to currently playing video according to predeterminated frequency when detecting video playing
Sample;
Weighted value computing unit is played, based on according to the sample information of current sampling point and default broadcasting weighted value calculative strategy
The CPU for calculating the current sampling point plays weighted value;
Running frequency acquiring unit, for playing the fortune of weighted value and preset CPU broadcasting weighted value and CPU according to the CPU
Mapping relations between line frequency determine the target operating frequency of the CPU;
Running frequency adjustment unit is run for controlling the CPU according to the target operating frequency.
6. the system of dynamic regulation CPU running frequency as claimed in claim 5, which is characterized in that further include:
Video type acquiring unit, for obtaining the video type of currently playing video, the video type includes game video
With non-gaming video;
The video content sampling unit, is specifically used for:
If the currently playing video is game video, currently playing video is sampled according to predeterminated frequency;Alternatively,
If the currently playing video is non-gaming video, identify that the currently playing video prompts point with the presence or absence of plot;
Plot prompts point if it exists, then the currently playing video is divided into multiple videos minute according to plot prompt point
Section, and each video segmentation is sampled respectively according to the predeterminated frequency;
Plot prompts point if it does not exist, then samples according to predeterminated frequency to currently playing video.
7. the system of dynamic regulation CPU running frequency as claimed in claim 5, which is characterized in that the current sampling point
Sample information includes video type, number of person, number of articles, color saturation, image quality in frame image where current sampling point
Information and with the presence or absence of one or more in basic lens information.
8. the system of dynamic regulation CPU running frequency as claimed in claim 5, which is characterized in that further include:
Judging unit, for judging that the CPU of the current sampling point plays the CPU broadcasting weighted value of weighted value and a upper sampled point
Between difference whether be less than preset threshold;
The running frequency acquiring unit is specifically used for:
If being less than the preset threshold, transported running frequency corresponding to a upper sampled point as the target of the CPU
Line frequency;
If more than or be equal to the preset threshold, then according to the CPU play weighted value and preset CPU play weighted value with
Mapping relations between the running frequency of CPU determine the target operating frequency of the CPU.
9. a kind of mobile terminal, which is characterized in that including memory, processor and be stored on the memory and can be described
The computer program run on processor, when which is executed by the processor, realize as claim 1 to
Described in any one of 4 the step of the method for dynamic regulation CPU running frequency.
10. a kind of storage medium, which is characterized in that be stored with computer program, the computer program on the storage medium
When being executed by processor, realize as described in any one of claims 1 to 4 the step of the method for dynamic regulation CPU running frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910240031.7A CN109889896B (en) | 2019-03-27 | 2019-03-27 | Method for dynamically adjusting CPU operation frequency, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910240031.7A CN109889896B (en) | 2019-03-27 | 2019-03-27 | Method for dynamically adjusting CPU operation frequency, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109889896A true CN109889896A (en) | 2019-06-14 |
CN109889896B CN109889896B (en) | 2022-05-27 |
Family
ID=66934738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910240031.7A Active CN109889896B (en) | 2019-03-27 | 2019-03-27 | Method for dynamically adjusting CPU operation frequency, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109889896B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112764933A (en) * | 2021-01-27 | 2021-05-07 | 惠州Tcl移动通信有限公司 | CPU configuration method, device, terminal and computer readable storage medium |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1459692A (en) * | 2002-05-21 | 2003-12-03 | 联想(北京)有限公司 | Method of CPU frequency controlling based on the insertion system of computer platform |
US7106759B1 (en) * | 2000-10-12 | 2006-09-12 | Sprint Communications Company L.P. | Network timing reference for an integrated services hub |
US20060285102A1 (en) * | 2005-06-16 | 2006-12-21 | Sokkia Co., Ltd. | Distance measuring device and method thereof |
US20090204830A1 (en) * | 2008-02-11 | 2009-08-13 | Nvidia Corporation | Power management with dynamic frequency dajustments |
CN104394422A (en) * | 2014-11-12 | 2015-03-04 | 华为软件技术有限公司 | Video segmentation point acquisition method and device |
CN104407690A (en) * | 2014-12-19 | 2015-03-11 | 中科创达软件股份有限公司 | Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) |
CN105404381A (en) * | 2015-11-06 | 2016-03-16 | 珠海全志科技股份有限公司 | Terminal device operation frequency control method and system |
CN105933702A (en) * | 2016-04-19 | 2016-09-07 | 北京工商大学 | Power consumption control method based on task sensitivity |
CN106097479A (en) * | 2016-05-30 | 2016-11-09 | 北京奇虎科技有限公司 | The recording method and device of running information |
CN106249844A (en) * | 2016-07-29 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | Processor working frequency and/or the work method of adjustment of check figure, device and terminal |
CN106527666A (en) * | 2016-11-18 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Control method of central processing unit and terminal equipment |
CN107465929A (en) * | 2017-07-21 | 2017-12-12 | 山东大学 | DVFS control methods, system, processor and storage device based on HEVC |
CN107678855A (en) * | 2017-09-19 | 2018-02-09 | 中国电子产品可靠性与环境试验研究所 | Processor dynamic regulating method, device and processor chips |
CN108200473A (en) * | 2018-02-01 | 2018-06-22 | 深圳创维-Rgb电子有限公司 | Cpu power control method, intelligent TV set and storage medium |
CN108919939A (en) * | 2018-07-20 | 2018-11-30 | 中新国际电子有限公司 | A kind of video broadcasting method, device, equipment and computer readable storage medium |
CN108958450A (en) * | 2018-06-11 | 2018-12-07 | 江苏食品药品职业技术学院 | Intelligence adjusts the computer of running frequency and power consumption |
-
2019
- 2019-03-27 CN CN201910240031.7A patent/CN109889896B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7106759B1 (en) * | 2000-10-12 | 2006-09-12 | Sprint Communications Company L.P. | Network timing reference for an integrated services hub |
CN1459692A (en) * | 2002-05-21 | 2003-12-03 | 联想(北京)有限公司 | Method of CPU frequency controlling based on the insertion system of computer platform |
US20060285102A1 (en) * | 2005-06-16 | 2006-12-21 | Sokkia Co., Ltd. | Distance measuring device and method thereof |
US20090204830A1 (en) * | 2008-02-11 | 2009-08-13 | Nvidia Corporation | Power management with dynamic frequency dajustments |
CN104394422A (en) * | 2014-11-12 | 2015-03-04 | 华为软件技术有限公司 | Video segmentation point acquisition method and device |
CN104407690A (en) * | 2014-12-19 | 2015-03-11 | 中科创达软件股份有限公司 | Method, device and mobile terminal for regulating operating frequency of CPU (Central Processing Unit) |
CN105404381A (en) * | 2015-11-06 | 2016-03-16 | 珠海全志科技股份有限公司 | Terminal device operation frequency control method and system |
CN105933702A (en) * | 2016-04-19 | 2016-09-07 | 北京工商大学 | Power consumption control method based on task sensitivity |
CN106097479A (en) * | 2016-05-30 | 2016-11-09 | 北京奇虎科技有限公司 | The recording method and device of running information |
CN106249844A (en) * | 2016-07-29 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | Processor working frequency and/or the work method of adjustment of check figure, device and terminal |
CN106527666A (en) * | 2016-11-18 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Control method of central processing unit and terminal equipment |
CN107465929A (en) * | 2017-07-21 | 2017-12-12 | 山东大学 | DVFS control methods, system, processor and storage device based on HEVC |
CN107678855A (en) * | 2017-09-19 | 2018-02-09 | 中国电子产品可靠性与环境试验研究所 | Processor dynamic regulating method, device and processor chips |
CN108200473A (en) * | 2018-02-01 | 2018-06-22 | 深圳创维-Rgb电子有限公司 | Cpu power control method, intelligent TV set and storage medium |
CN108958450A (en) * | 2018-06-11 | 2018-12-07 | 江苏食品药品职业技术学院 | Intelligence adjusts the computer of running frequency and power consumption |
CN108919939A (en) * | 2018-07-20 | 2018-11-30 | 中新国际电子有限公司 | A kind of video broadcasting method, device, equipment and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
KRISHNA NAISHADHAM: "《Accurate Probing of RF Amplifiers Using Vertical Interconnect Boards》", 《56TH ARFTG CONFERENCE DIGEST》 * |
郑琳俊: "《多线程H.264视频传输的动态能量控制》", 《电视技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112764933A (en) * | 2021-01-27 | 2021-05-07 | 惠州Tcl移动通信有限公司 | CPU configuration method, device, terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109889896B (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107817939A (en) | A kind of image processing method and mobile terminal | |
CN109214810A (en) | A kind of two-dimensional code display method, mobile terminal and computer readable storage medium | |
CN107679156A (en) | A kind of video image identification method and terminal, readable storage medium storing program for executing | |
CN109618218B (en) | Video processing method and mobile terminal | |
CN109144441A (en) | A kind of screen adjustment method, terminal and computer readable storage medium | |
CN109538538A (en) | A kind of processing method of fan noise, mobile terminal and storage medium | |
CN108989873A (en) | Barrage information display method, mobile terminal and computer readable storage medium | |
CN108512991A (en) | A kind of based reminding method, mobile terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN108549660B (en) | Information pushing method and device | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN109040808A (en) | A kind of video interactive regulation method, equipment and computer readable storage medium | |
CN109062465A (en) | A kind of application program launching method, mobile terminal and storage medium | |
CN107688429A (en) | Management method, mobile terminal and the computer-readable recording medium of application controls | |
CN109462700A (en) | A kind of call method, mobile terminal and computer readable storage medium | |
CN108307105A (en) | A kind of image pickup method, terminal and computer readable storage medium | |
CN110347244A (en) | A kind of terminal and its interaction control method, computer readable storage medium | |
CN109388326A (en) | A kind of electronic equipment, the control method and device of dual-screen electronic device | |
CN110064196A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN110278481A (en) | Picture-in-picture implementing method, terminal and computer readable storage medium | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
CN108512616A (en) | Method for displaying signal intensity, mobile terminal and computer readable storage medium | |
CN109889896A (en) | Method, mobile terminal and the storage medium of dynamic regulation CPU running frequency | |
CN110177206A (en) | Image pickup method, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |