CN106155263B - Parameter adjusting method and device - Google Patents

Parameter adjusting method and device Download PDF

Info

Publication number
CN106155263B
CN106155263B CN201510174730.8A CN201510174730A CN106155263B CN 106155263 B CN106155263 B CN 106155263B CN 201510174730 A CN201510174730 A CN 201510174730A CN 106155263 B CN106155263 B CN 106155263B
Authority
CN
China
Prior art keywords
processor
image
frame
value
images
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.)
Active
Application number
CN201510174730.8A
Other languages
Chinese (zh)
Other versions
CN106155263A (en
Inventor
汪明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510174730.8A priority Critical patent/CN106155263B/en
Publication of CN106155263A publication Critical patent/CN106155263A/en
Application granted granted Critical
Publication of CN106155263B publication Critical patent/CN106155263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Abstract

The embodiment of the invention discloses a parameter adjusting method and device, relates to the technical field of computers, and can reduce the power consumption of a processor of electronic equipment to a greater extent. The specific scheme is as follows: reading each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of the processor is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2. The method and the device are used in the process of outputting the image by the electronic equipment.

Description

Parameter adjusting method and device
Technical Field
The invention relates to the technical field of computers, in particular to a parameter adjusting method and device.
Background
With the development of electronic technology, the screen resolution of electronic devices such as mobile phones, televisions, computers and the like is higher and higher, the displayed images are clearer and clearer, the requirement on the processing capability of a processor of the electronic device is higher and higher, and the power consumption of the processor is higher and higher. Currently, reducing the power consumption of a processor is an urgent problem to be solved.
In the prior art, the electronic device may reduce power consumption of the processor by monitoring a load condition of a current service and adjusting a voltage value and a frequency value of a processor according to the load condition of the current service. For example, when the electronic device plays the 3D interface, the operating frequency of a processor (e.g., GPU) of the electronic device may be adjusted to a first frequency value; when the electronic device plays a common User Interface (UI), the operating frequency of the processor of the electronic device may be adjusted to a second frequency value, where the first frequency value is higher than the second frequency value.
However, the above method cannot achieve the purpose of reducing the power consumption of the processor; for example, when the electronic device currently plays a static 3D interface (i.e., the currently played interface is still unchanged for the user), in the above manner, the processor of the electronic device still has a higher operating frequency (first frequency value) because the processor needs to repeatedly render the same screen, which may not reduce the power consumption of the processor ideally.
Disclosure of Invention
Embodiments of the present invention provide a parameter adjusting method and apparatus, which can reduce power consumption of a processor of an electronic device to a greater extent.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect of the embodiments of the present invention, a parameter adjusting method is provided, including:
reading each frame of output image in the process of outputting the image by the electronic equipment;
when N continuous same frames of images are read, adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value, and adjusting the voltage of the processor from a first voltage value to a second voltage value, wherein N is more than or equal to 2;
the first voltage value is a normal operating voltage value of the processor, the first frequency value is a normal operating frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
With reference to the first aspect, in a first possible implementation manner, after the adjusting the frequency of the processor of the electronic device from the first frequency value to the second frequency value and the adjusting the voltage of the processor from the first voltage value to the second voltage value, the method further includes:
if one frame of image different from the continuous same N frames of images is read, adjusting the voltage of the processor from the second voltage value to the first voltage value, and adjusting the frequency of the processor from the second frequency value to the first frequency value.
With reference to the first aspect, in a second possible implementation manner, the processor is a multi-core processor, and the multi-core processor includes at least one core for rendering each frame of image;
the method further comprises the following steps:
and when the continuous same N frames of images are read, controlling at least one core in the cores for rendering each frame of image in the multi-core processor to pause.
With reference to the first aspect or any one of the foregoing possible implementation manners, in a third possible implementation manner, after the controlling at least one of the cores of the multi-core processor for rendering each frame of image suspends, the method further includes:
and if one frame of image different from the continuous same N frames of images is read, controlling the core which is used for rendering each frame of image and is suspended from the cores to resume normal work.
With reference to the first aspect or any one of the foregoing possible implementation manners, in a fourth possible implementation manner, the consecutive same N frames of images are consecutive N frames of images with the same cyclic redundancy check CRC value; alternatively, the first and second electrodes may be,
the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
With reference to the first aspect or any one of the foregoing possible implementation manners, in a fifth possible implementation manner, the processor is a central processing unit CPU of the electronic device;
or the processor is an image processing unit (GPU) of the electronic equipment;
alternatively, the processor comprises: a CPU and a GPU of the electronic device.
In a second aspect of the embodiments of the present invention, there is provided a parameter adjusting apparatus, including:
the reading unit is used for reading each frame of output image in the process of outputting the image by the electronic equipment;
the adjusting unit is used for adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value and adjusting the voltage of the processor from a first voltage value to a second voltage value when the reading unit reads the continuous same N frames of images;
the first voltage value is a normal operating voltage value of the processor, the first frequency value is a normal operating frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
With reference to the second aspect, in a first possible implementation manner, after the adjusting the frequency of the processor of the electronic device from the first frequency value to the second frequency value and the adjusting the voltage of the processor from the first voltage value to the second voltage value are performed, if the reading unit reads a frame image different from the consecutive same N frame images, the adjusting unit adjusts the voltage of the processor from the second voltage value to the first voltage value and adjusts the frequency of the processor from the second frequency value to the first frequency value.
With reference to the second aspect, in a second possible implementation manner, the processor is a multi-core processor, and the multi-core processor includes at least one core for rendering each frame of image;
the device further comprises:
and the control unit is used for controlling at least one core in the cores for rendering each frame of image in the multi-core processor to pause when the reading unit reads the continuous same N frames of images.
With reference to the second possible implementation manner, in a third possible implementation manner, the control unit is further configured to, after the execution of the pause of at least one core of the cores that control rendering of each frame of image in the multi-core processor, if the reading unit reads a frame of image that is different from the consecutive same N frames of images, control the core that has paused in the cores that render each frame of image to resume normal operation.
With reference to the second aspect and any one of the foregoing possible implementation manners, in a fourth possible implementation manner, the consecutive same N frames of images are consecutive N frames of images with the same cyclic redundancy check CRC value; alternatively, the first and second electrodes may be,
the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
With reference to the second aspect and any one of the foregoing possible implementation manners, the processor is a central processing unit CPU of the electronic device;
or the processor is an image processing unit (GPU) of the electronic equipment;
alternatively, the processor comprises: a CPU and a GPU of the electronic device.
The parameter adjusting method and the parameter adjusting device provided by the embodiment of the invention can read each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of a processor of the electronic equipment is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2.
Compared with the prior art, through the scheme, when the electronic equipment plays a static picture, the same continuous N-frame images can be detected, namely the electronic equipment repeatedly plays the same picture, and the voltage and the frequency of the processor can be reduced by the electronic equipment; the voltage and the frequency of the processor are reduced, so that the rendering frequency of the processor to the picture can be reduced, and the power consumption generated when the processor repeatedly renders the same picture when the electronic equipment plays the static picture can be reduced.
Meanwhile, in the scheme, the voltage and the frequency of the processor are reduced only when the first image is the same as the first N consecutive frames of images of the first image (namely, the electronic device plays the same picture repeatedly), so that the visual experience of a user cannot be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a parameter adjusting method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a parameter adjusting method according to a second embodiment of the present invention;
fig. 3 is an example diagram of an implementation principle of a parameter adjusting method according to an embodiment of the present invention;
FIG. 4 is a diagram of an example of a method for adjusting parameters by interrupting a program according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a parameter adjusting apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of another parameter adjustment apparatus according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a parameter adjusting apparatus according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The parameter adjusting method and device provided by the embodiment of the invention can be applied to the process of outputting images by electronic equipment. The electronic device can realize the output of each Frame image by the electronic device through information interaction and cooperative control among a Frame Buffer Driver (English), a System-on-a-Chip (SoC) and a software Driver (English). In the process of outputting images by the electronic equipment, the electronic equipment can adjust the working frequency and the working voltage of a processor of the electronic equipment by monitoring each frame of image output by the electronic equipment so as to achieve the purpose of reducing the power consumption of the processor of the electronic equipment.
Wherein, the SoC may include: a Central Processing Unit (CPU), an image Processing Unit (GPU), and a Display Controller (Display Controller).
An execution main body of the parameter adjusting method provided by the embodiment of the present invention may be a parameter adjusting device, and the parameter adjusting device may be a Central Processing Unit (CPU) of the electronic device or may be a control Unit or module in the electronic device.
A parameter adjusting method and apparatus provided in the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Example one
An embodiment of the present invention provides a parameter adjusting method, as shown in fig. 1, the parameter adjusting method includes:
s101, reading each output frame image by the parameter adjusting device in the process of outputting the image by the electronic equipment.
When the electronic equipment outputs the image, the image is divided into image data of one frame and one frame, and the image data is output one frame and one frame; therefore, the electronic device can read each frame of image output by the electronic device in the process of outputting the image by the electronic device and then adjust the voltage and the frequency of the processor of the electronic device by judging whether each frame of image output is the same or not.
S102, when the parameter adjusting device reads the continuous same N frames of images, adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value, adjusting the voltage of the processor from a first voltage value to a second voltage value, wherein N is larger than or equal to 2.
The parameter adjusting device can determine whether to read the continuous same N frames of images by judging whether each frame of image in the currently read frame of image and the continuous previous N-1 frames of images of the frame of image is the same. The parameter adjusting device can compare each frame image in the frame image and the previous N-1 frame image of the frame image after reading one frame image every time, and judge whether each frame image in the frame image and the continuous previous N-1 frame image of the frame image is the same or not. When N >2, the parameter adjusting device may compare whether a frame of image is the same as a previous frame of image after reading the frame of image and determining that the frame of image is the same as the previous frame of image.
For example, assuming that each frame of image in the embodiment of the present invention is in an ARGB8888 format, the parameter adjusting device may determine that consecutive previous N-1 frames of images of the frame of image are the same by comparing an ARGB value of each pixel of one frame of image with an ARGB value of a corresponding pixel of each frame of image in consecutive previous N-1 frames of images of the frame of image, when the ARGB value of each pixel of the frame of image is the same as the ARGB value of a corresponding pixel of each frame of image in consecutive previous N-1 frames of images of the frame of image; or, the parameter adjusting device may perform interframe matching on the frame image and each frame image in the N-1 consecutive frames of images before the frame image, and when the interframe matching is successful, the parameter adjusting device may determine that the frame image is the same as the N-1 consecutive frames of images before the frame image. The ARGB8888 means that the color of each pixel point is composed of four components, namely transparency a (alpha), red r (red), green g (green) and blue b (blue), and each component accounts for 8 bits.
It should be noted that, the method for performing interframe matching on a frame of image and consecutive previous N-1 frames of images of the frame of image by the parameter adjusting device may refer to a specific method for performing interframe matching in the prior art, and details are not repeated here in the embodiment of the present invention. Of course, the parameter adjusting device may also use various existing image checking algorithms to determine whether each frame of image in the image is the same, and the specific method for determining whether each frame of image in the image is the same is not limited in this embodiment of the present invention.
The first voltage value is a normal working voltage value of the processor, the first frequency value is a normal working frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
It should be noted that, the processor in the embodiment of the present invention may be a Central Processing Unit (CPU) of the electronic device, that is, if the same N consecutive images are read, the parameter adjusting device may adjust the voltage of the CPU of the electronic device from a first voltage value to a second voltage value, and adjust the frequency of the CPU from a first frequency value to a second frequency value. Alternatively, the processor in the embodiment of the present invention is an image Processing Unit (GPU) of the electronic device, that is, if the same N consecutive frames of images are read, the parameter adjusting device may adjust the voltage of the GPU of the electronic device from the first voltage value to the second voltage value, and adjust the frequency of the GPU from the first frequency value to the second frequency value.
Alternatively, the processor in the embodiment of the present invention may include: a CPU and a GPU of the electronic device. At this time, the first voltage value may include a first CPU voltage value and a first GPU voltage value, and the second voltage value may include a second CPU voltage value and a second GPU voltage value; and the first CPU voltage value is higher than the second CPU voltage value, and the first GPU voltage value is higher than the second GPU voltage value. The first frequency value may include a first CPU frequency value and a first GPU frequency value, and the second frequency value may include a second CPU frequency value and a second GPU frequency value; and the first CPU frequency value is higher than the second CPU frequency value, and the first GPU frequency value is higher than the second GPU frequency value.
If the same N consecutive images are read, the parameter adjusting apparatus may perform: adjusting the voltage of a CPU of the electronic equipment from a first CPU voltage value to a second CPU voltage value, and adjusting the frequency of the CPU from a first CPU frequency value to a second CPU frequency value; and adjusting the voltage of the GPU of the electronic equipment from the first GPU voltage value to the second GPU voltage value, and adjusting the frequency of the GPU from the first GPU frequency value to the second GPU frequency value.
The parameter adjusting method provided by the embodiment of the invention can read each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of a processor of the electronic equipment is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2.
Compared with the prior art, through the scheme, when the electronic equipment plays a static picture, the same continuous N-frame images can be detected, namely the electronic equipment repeatedly plays the same picture, and the voltage and the frequency of the processor can be reduced by the electronic equipment; the voltage and the frequency of the processor are reduced, so that the rendering frequency of the processor to the picture can be reduced, and the power consumption generated when the processor repeatedly renders the same picture when the electronic equipment plays the static picture can be reduced.
Meanwhile, in the scheme, the voltage and the frequency of the processor are reduced only when the first image is the same as the first N consecutive frames of images of the first image (namely, the electronic device plays the same picture repeatedly), so that the visual experience of a user cannot be reduced.
Example two
An embodiment of the present invention provides a parameter adjusting method, as shown in fig. 2, the parameter adjusting method includes:
s201, reading each frame of output image by the parameter adjusting device in the process of outputting the image by the electronic equipment.
S202, when the parameter adjusting device reads the continuous same N frames of images, adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value, and adjusting the voltage of the processor from a first voltage value to a second voltage value, wherein N is larger than or equal to 2.
In the parameter adjustment method provided in the embodiment of the present invention, as shown in fig. 3, a Still image detection unit (SPD) may be configured in the Display Controller to monitor whether the Display Controller reads consecutive N Frame images from the Frame Buffer, that is, to monitor whether a Frame image currently read by the Display Controller from the Frame Buffer is identical to a consecutive previous N-1 Frame image of the currently read Frame image.
In the output process of the image, the Display Controller is originally to read the image to be output in each Frame from the Frame Buffer, so that in the embodiment of the invention, a Still Picture Detect is added to the Display Controller to perform repeated Frame monitoring on each Frame of read image (i.e. to judge whether the same continuous N-Frame image is read), no bandwidth load is brought, the overhead of the repeated Frame monitoring process is low, and the power consumption of a processor of the electronic device is not increased.
For example, assuming that N is 2, the method for the parameter adjustment device to determine whether to read the continuously same 2-frame image is as follows: the parameter adjusting device judges whether the currently read frame image is the same as the last frame image of the currently read frame image; and if the currently read frame image is the same as the previous frame image of the currently read frame image, determining that the continuously same 2 frames of images are read.
As shown in fig. 3, it is assumed that the Still Picture Detect detects that the first Frame image read by the Display Controller from the Frame Buffer is image a, and after the Still Picture Detect detects that the Display Controller reads the second Frame image (the image B next to the first Frame image) from the Frame Buffer, it can be determined whether the second Frame image (image B) is the same as the first Frame image (image a).
Similarly, Still Picture Detect reads the third Frame image from the Frame Buffer when the Display Controller is monitored (the next Frame image of the second Frame image, i.e. image C)1) Thereafter, the third frame image (image C) can be judged1) Is the same as the second frame image (image B).
For example, the parameter adjusting device may not immediately adjust the voltage and frequency of the processor when the same 2 consecutive frames of images are read, but continue to perform repeated frame monitoring until the voltage and frequency of the processor are adjusted after the same N (N >2) consecutive frames of images are read. This avoids frequent adjustments to the voltage and frequency of the processor.
Illustratively, assume image C in FIG. 31Image C2… … image CNImage CN+1Image CN+2And image CN+iAll the images are identical, and N is 3. The Still Picture Detect reads the fourth Frame image (the image C which is the next Frame image of the third Frame image) from the Frame Buffer when the Display Controller is monitored2) Thereafter, the fourth frame image (image C) can be judged2) And the third frame image (image C)1) Whether they are the same; due to the fourth frame image (image C)2) And the third frame image (image C)1) Similarly, the parameter adjustment device can determine that the same 2-frame image (image C) is read continuously1And image C2) (ii) a Due to 2<3, therefore, the Still Picture Detect cannot adjust the voltage and frequency of the processor of the electronic device, but continues to monitor each Frame image that the Display Controller reads from the Frame Buffer until the Display Controller reads from the Frame Buffer to the consecutive same N frames of images.
Illustratively, as shown in FIG. 3, assume that the Display Controller monitors Dis from time 0 on the time axisEach Frame image read by the play Controller from the Frame Buffer is at t0When the Still Picture Detect monitors that the Display Controller reads C from the Frame BufferNThen, the currently read frame image (image A, image B, image C)1Image C2… … image CN) In (1), including an image C1Image C2… … image CNThe same N frames of images are waited and are consecutive, so that it can be predicted that a repeated image C (i.e. a static image) will still appear in several frames of images in the future, so that the parameter adjusting means can adjust the frequency of the processor from the first frequency value to the second frequency value and adjust the voltage of the processor of the electronic device from the first voltage value to the second voltage value.
For example, the parameter adjusting means may adjust the frequency of the processor from 60FPS (first frequency value) to 5FPS (second frequency value). Wherein FPS is the number of Frames Per Second (English: Frames Per Second).
It should be noted that, in the embodiment of the present invention, the determination criterion of the still image (i.e. the number N of still image detection repeat frames) may be set in the drive initialization module Init, that is, "after N frames of images, it is predicted that repeat images may still occur in a plurality of frames of images in the future". The setting may be implemented by configuring a register in the Display Controller, and the specific method may refer to a configuration method of a register in the prior art, which is not described herein again.
In the embodiment of the present invention, by adding a detection Interrupt to a Display Controller static image in an Interrupt Service Routine (ISR), the voltage and frequency of a processor of an electronic device can be adjusted after N frames of continuous repeated images appear.
In an application scenario of the embodiment of the present invention, consecutive N frames of images are consecutive N frames of images with the same Cyclic Redundancy Check (CRC) value.
In this application scenario, the method for the parameter adjusting apparatus to determine whether the two images are the same may include:
the parameter adjusting device respectively calculates CRC values of the two frames of images;
the parameter adjusting device judges whether CRC values of the two frames of images are the same;
if the CRC values of the two frames of images are the same, the parameter adjusting device determines that the two frames of images are the same;
if the CRC values of the two frames of images are different, the parameter adjusting device determines that the two frames of images are different.
It should be noted that, the method for calculating the CRC value of a frame of image by the parameter adjusting apparatus may refer to a specific method for calculating the CRC value of a frame of image in the prior art, and details of the embodiment of the present invention are not repeated herein.
Optionally, in another application scenario of the embodiment of the present invention, the consecutive same N frame images are consecutive N frame images having the same Message Digest 5 (MD 5) value in the fifth version of the Message Digest Algorithm.
In this application scenario, the method for the parameter adjusting apparatus to determine whether the two images are the same may include:
the parameter adjusting device respectively calculates MD5 values of the two frame images;
the parameter adjusting device judges whether the MD5 values of the two frame images are the same;
if the MD5 values of the two images are the same, the parameter adjusting device determines that the two images are the same;
if the values of MD5 are different for the two images, the parameter adjustment device determines that the two images are different.
It should be noted that, as for the method for calculating the MD5 value of a frame image by the parameter adjusting apparatus, reference may be made to a specific method for calculating the MD5 value of a frame image in the prior art, and details of the embodiment of the present invention are not repeated here.
After performing S202 (i.e., the parameter adjusting apparatus adjusts the frequency of the processor of the electronic device from the first frequency value to the second frequency value, and adjusts the voltage of the processor from the first voltage value to the second voltage value), the method of the embodiment of the present invention may further include S203:
s203, if a frame of image different from the continuous same N frames of images is read, the parameter adjusting device adjusts the voltage of the processor of the electronic equipment from the second voltage value to the first voltage value, and adjusts the frequency of the processor from the second frequency value to the first frequency value.
Illustratively, as shown in FIG. 3, the parameter adjustment device is at t0After the frequency of the processor is adjusted from the first frequency value to the second frequency value and the voltage of the processor of the electronic device is adjusted from the first voltage value to the second voltage value, if the Still Picture Detect monitors that the D image read by the Display Controller from the Frame Buffer is different from the continuous same image C, the parameter adjusting device can adjust the frequency of the processor to the second frequency value at t1And adjusting the voltage of a processor of the electronic equipment from a second voltage value to a first voltage value, and adjusting the frequency of the processor from a second frequency value to a first frequency value.
For example, the parameter adjusting means may adjust the frequency of the processor from 5FPS (second frequency value) to 60FPS (first frequency value).
As shown in fig. 4, the method for the parameter adjusting apparatus to adjust the voltage and frequency of the processor of the electronic device after N consecutive repeated images appear through the interrupt program may be:
s1, setting a static image detection repetition frame number N by Init;
s2, enabling static image detection interruption by Init, and closing image motion detection interruption;
s3, detecting N continuous repeated images by a Display Controller;
s4, the Display Controller sends a repeat (repeat) interrupt of the static image to the ISR;
s5, Init closes the static image detection interruption and enables the image motion detection interruption;
s6, adjusting the voltage of the Init control processor from a first voltage value to a second voltage value, and adjusting the frequency of the processor from a first frequency value to a second frequency value;
s7, detecting that the currently read frame image is different from the previous frame image of the currently read frame image;
s8, the Display Controller sends an image motion interrupt to the ISR;
s9, enabling static image detection interruption by Init, and closing image motion detection interruption;
and S10, controlling the voltage of the processor to be adjusted to the first voltage value from the second voltage value, and adjusting the frequency of the processor to be the first frequency value from the second frequency value.
Optionally, in the first application scenario of the embodiment of the present invention, the method for determining whether the consecutive same N-frame images are read by the parameter adjusting apparatus may specifically include Sa-Sc:
sa, if the currently read frame image is the same as the previous frame image of the currently read frame image, the parameter adjusting device adds 1 to the current value of the repeat frame count value, and the initial value of the repeat frame count value is 0.
And Sb, when the current value of the repeated frame counting value is equal to N-1, the parameter adjusting device determines that the continuous same N frames of images are read.
And Sc, if the currently read frame image is different from the previous frame image of the currently read frame image, the parameter adjusting device clears the repeated frame counting value.
Further optionally, in a second application scenario of the embodiment of the present invention, the method for determining whether to read consecutive identical N-frame images by the parameter adjusting apparatus may specifically include Sd-Sf:
and Sd, if the currently read frame image is the same as the previous frame image of the currently read frame image, adding 1 to the current value of the repeated frame counting value by the parameter adjusting device, and setting the initial value of the repeated frame counting value as 1.
Se, when the current value of the repeated frame counting value is equal to N, the parameter adjusting device determines that the same continuous N frames of images are read.
Sf, if the currently read frame image is different from the previous frame image of the currently read frame image, the parameter adjusting device sets the repeated frame counting value to 1.
Further optionally, if the processor in the embodiment of the present invention is a multi-core processor, the multi-core processor includes at least one core for rendering each frame of image.
When the processor in the embodiment of the present invention is a multi-core processor, the method in the embodiment of the present invention may further include S204 to S205:
s204, when the continuous same N frames of images are read, the parameter adjusting device controls at least one core in the cores for rendering each frame of image in the multi-core processor to pause working.
For example, if the processor in the embodiment of the present invention is a multi-core processor (4-core processor), the method specifically includes: 2 cores (core a and core b) for rendering each frame of image and 2 cores with other functions. When the multi-core processor works normally, 4 cores run simultaneously, and in order to reduce the power consumption of the electronic device processor, the parameter adjusting device can control the cores a and b in the multi-core processor to pause working and other 2 cores to continue working when determining that N frames of images which are continuously the same as the currently read frame images exist in the currently read frame images. Of course, the parameter adjusting device may also control only one of the cores a or b in the multi-core processor to suspend operation and the other 3 cores to continue operation when it is determined that N consecutive frames of images identical to the currently read frame image exist in the currently read frame image.
S205, if a frame of image different from the continuous same N frames of images is read, the parameter adjusting device controls the core which is suspended in the cores for rendering each frame of image to resume normal operation.
The parameter adjusting method provided by the embodiment of the invention can read each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of a processor of the electronic equipment is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2.
Compared with the prior art, through the scheme, when the electronic equipment plays a static picture, the same continuous N-frame images can be detected, namely the electronic equipment repeatedly plays the same picture, and the voltage and the frequency of the processor can be reduced by the electronic equipment; the voltage and the frequency of the processor are reduced, so that the rendering frequency of the processor to the picture can be reduced, and the power consumption generated when the processor repeatedly renders the same picture when the electronic equipment plays the static picture can be reduced.
Meanwhile, in the scheme, the voltage and the frequency of the processor are reduced only when the first image is the same as the first N consecutive frames of images of the first image (namely, the electronic device plays the same picture repeatedly), so that the visual experience of a user cannot be reduced.
EXAMPLE III
An embodiment of the present invention provides a parameter adjusting apparatus, as shown in fig. 5, the parameter adjusting apparatus includes: a reading unit 31 and an adjusting unit 32.
The reading unit 31 is configured to read each output frame of image in the process of outputting the image by the electronic device.
The adjusting unit 32 is configured to adjust a frequency of a processor of the electronic device from a first frequency value to a second frequency value and adjust a voltage of the processor from a first voltage value to a second voltage value when the reading unit 31 reads consecutive identical N frames of images.
The first voltage value is a normal operating voltage value of the processor, the first frequency value is a normal operating frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
Further, the adjusting unit 32 is further configured to, after the adjusting of the frequency of the processor of the electronic device from the first frequency value to the second frequency value and the adjusting of the voltage of the processor from the first voltage value to the second voltage value are performed, if the reading unit 31 reads a frame image different from the consecutive same N frame images, adjust the voltage of the processor from the second voltage value to the first voltage value and adjust the frequency of the processor from the second frequency value to the first frequency value.
Further, the processor is a multi-core processor, and the multi-core processor comprises at least one core for rendering each frame of image.
As shown in fig. 6, the apparatus may further include: a control unit 34.
And the control unit 34 is configured to control at least one core of the cores for rendering each frame of image in the multi-core processor to pause when the reading unit 31 reads the same N consecutive frames of images.
Further, the control unit 34 is further configured to, after the execution of the control of suspending the operation of at least one core of the cores for rendering each frame of image in the multi-core processor, if the reading unit 31 reads a frame of image different from the consecutive same N frames of images, control the core suspended in operation of the cores for rendering each frame of image to resume the normal operation.
Further, the continuous same N frames of images are continuous N frames of images with the same cyclic redundancy check CRC value; or the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
Further, the processor is a CPU of the electronic device; or the processor is a GPU of the electronic equipment; alternatively, the processor comprises: a CPU and a GPU of the electronic device.
It should be noted that, for specific description of some functional modules in the parameter adjusting device provided in the embodiment of the present invention, reference may be made to corresponding contents in the method embodiment, and details are not described here again.
The parameter adjusting device provided by the embodiment of the invention can read each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of a processor of the electronic equipment is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2.
Compared with the prior art, through the scheme, when the electronic equipment plays a static picture, the same continuous N-frame images can be detected, namely the electronic equipment repeatedly plays the same picture, and the voltage and the frequency of the processor can be reduced by the electronic equipment; the voltage and the frequency of the processor are reduced, so that the rendering frequency of the processor to the picture can be reduced, and the power consumption generated when the processor repeatedly renders the same picture when the electronic equipment plays the static picture can be reduced.
Meanwhile, in the scheme, the voltage and the frequency of the processor are reduced only when the first image is the same as the first N consecutive frames of images of the first image (namely, the electronic device plays the same picture repeatedly), so that the visual experience of a user cannot be reduced.
Example four
An embodiment of the present invention provides a parameter adjusting apparatus, as shown in fig. 7, including: a memory 41 and a processor 42.
A memory 41 for storing a set of program codes, the memory 41 being a computer storage medium of the parameter adjusting apparatus, the computer storage medium comprising: a non-volatile storage medium.
A processor 42, configured to execute the memory 41 to store the program code, and specifically configured to perform the following operations:
reading each frame of output image in the process of outputting the image by the electronic equipment;
when the continuous same N frames of images are read, the frequency of a processor of the electronic equipment is adjusted to a second frequency value from a first frequency value, the voltage of the processor is adjusted to a second voltage value from a first voltage value, and N is larger than or equal to 2.
Wherein the first voltage value is a normal operating voltage value of the processor 42, the first frequency value is a normal operating frequency value of the processor 42, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
In the embodiment of the present invention, the memory 41 and the processor 42 are connected via a bus and perform communication with each other.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The processor 42 may be a CPU of the electronic device; alternatively, the processor 42 may be a GPU of the electronic device; alternatively, the processor 42 may include both: a CPU and a GPU of the electronic device.
Further, the processor 42 is further configured to, after the adjusting of the frequency of the processor of the electronic device from the first frequency value to the second frequency value and the adjusting of the voltage of the processor from the first voltage value to the second voltage value are performed, if a frame of image different from the consecutive same N frames of images is read, adjust the voltage of the processor from the second voltage value to the first voltage value and adjust the frequency of the processor from the second frequency value to the first frequency value.
Further, the processor 42 is a multi-core processor, and the multi-core processor 42 includes at least one core for rendering each frame of image.
The processor 42 is further configured to control at least one core of the cores of the multi-core processor for rendering each frame of image to pause when the consecutive same N frames of images are read.
Further, the processor 42 is further configured to, after performing the pause operation of at least one core of the cores for rendering each frame of image in the multi-core processor, if a frame of image different from the consecutive same N frames of images is read, control the core that has paused operation in the cores for rendering each frame of image to resume the normal operation.
The continuous same N frames of images are continuous N frames of images with the same Cyclic Redundancy Check (CRC) value; alternatively, the first and second electrodes may be,
the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
It should be noted that, for specific description of some functional modules in the parameter adjusting device provided in the embodiment of the present invention, reference may be made to corresponding contents in the method embodiment, and details are not described here again.
The parameter adjusting device provided by the embodiment of the invention can read each frame of output image in the process of outputting the image by the electronic equipment; when the same N continuous frames of images are read, the frequency of a processor of the electronic equipment is adjusted from a first frequency value to a second frequency value, the voltage of the processor is adjusted from a first voltage value to a second voltage value, and N is larger than or equal to 2.
Compared with the prior art, through the scheme, when the electronic equipment plays a static picture, the same continuous N-frame images can be detected, namely the electronic equipment repeatedly plays the same picture, and the voltage and the frequency of the processor can be reduced by the electronic equipment; the voltage and the frequency of the processor are reduced, so that the rendering frequency of the processor to the picture can be reduced, and the power consumption generated when the processor repeatedly renders the same picture when the electronic equipment plays the static picture can be reduced.
Meanwhile, in the scheme, the voltage and the frequency of the processor are reduced only when the first image is the same as the first N consecutive frames of images of the first image (namely, the electronic device plays the same picture repeatedly), so that the visual experience of a user cannot be reduced.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A parameter adjustment method applied to an image processing apparatus, the image processing apparatus including a display controller in which a still image detection unit is configured, and a software driver including an interrupt service routine ISR, the method comprising:
during the process of outputting images by the electronic equipment, the static image detection unit monitors each frame image read by the display controller from a frame buffer;
when the static image detection unit monitors that the display controller reads the continuous same N frames of images, sending static image repeated interruption to the ISR;
adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value, and adjusting the voltage of the processor from a first voltage value to a second voltage value, so that the processor processes an image by the second frequency value and the second voltage value, wherein N is more than or equal to 2;
if the static image detection unit monitors that the display controller reads a frame image different from the continuous same N frames of images, adjusting the voltage of the processor from the second voltage value to the first voltage value, and adjusting the frequency of the processor from the second frequency value to the first frequency value;
the first voltage value is a normal operating voltage value of the processor, the first frequency value is a normal operating frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
2. The method of claim 1, wherein the processor is a multi-core processor including at least one core for rendering each frame of image;
the method further comprises the following steps:
and when the continuous same N frames of images are read, controlling at least one core in the cores for rendering each frame of image in the multi-core processor to pause.
3. The method of claim 2, wherein after the controlling at least one of the cores in the multi-core processor to render each frame of image halts operation, the method further comprises:
and if one frame of image different from the continuous same N frames of images is read, controlling the core which is used for rendering each frame of image and is suspended from the cores to resume normal work.
4. The method according to any one of claims 1 to 3,
the continuous same N frames of images are continuous N frames of images with the same Cyclic Redundancy Check (CRC) value; alternatively, the first and second electrodes may be,
the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
5. The method according to any of claims 1-3, wherein the processor is a Central Processing Unit (CPU) of the electronic device;
or the processor is an image processing unit (GPU) of the electronic equipment;
alternatively, the processor comprises: a CPU and a GPU of the electronic device.
6. A parameter adjusting apparatus, comprising: the display device comprises a display controller, a software driver and an adjusting unit, wherein a static image detection unit is configured in the display controller, and the software driver comprises an interrupt service routine ISR;
the static image detection unit is used for monitoring each frame image read from a frame buffer by the display controller in the process of outputting the image by the electronic equipment;
the static image detection unit is used for sending static image repeated interruption to the ISR when the display controller reads the continuous same N frames of images, wherein N is more than or equal to 2;
the adjusting unit is used for adjusting the frequency of a processor of the electronic equipment from a first frequency value to a second frequency value and adjusting the voltage of the processor from a first voltage value to a second voltage value, so that the processor processes an image by the second frequency value and the second voltage value;
the adjusting unit is further configured to adjust the voltage of the processor from the second voltage value to the first voltage value and adjust the frequency of the processor from the second frequency value to the first frequency value when the static image detection unit monitors that the display controller reads a frame of image different from the consecutive same N frames of images;
the first voltage value is a normal operating voltage value of the processor, the first frequency value is a normal operating frequency value of the processor, the first voltage value is higher than the second voltage value, and the first frequency value is higher than the second frequency value.
7. The apparatus of claim 6, wherein the processor is a multi-core processor including at least one core for rendering each frame of image;
the device further comprises:
and the control unit is used for controlling at least one core in the cores for rendering each frame of image in the multi-core processor to pause when the reading unit reads the continuous same N frames of images.
8. The apparatus according to claim 7, wherein the control unit is further configured to, after performing the control of pausing at least one of the cores of the multi-core processor for rendering each frame of image, if the reading unit reads a frame of image different from the consecutive same N frames of images, control the cores of the cores for rendering each frame of image that are paused to resume normal operation.
9. The apparatus according to any one of claims 6-8,
the continuous same N frames of images are continuous N frames of images with the same Cyclic Redundancy Check (CRC) value; alternatively, the first and second electrodes may be,
the continuous same N-frame images are continuous N-frame images with the same value of MD5 of the fifth version of the message digest algorithm.
10. The apparatus according to any of claims 6-8, wherein the processor is a Central Processing Unit (CPU) of the electronic device;
or the processor is an image processing unit (GPU) of the electronic equipment;
alternatively, the processor comprises: a CPU and a GPU of the electronic device.
11. A readable storage medium, characterized by comprising a program or instructions, which when executed, the parameter adjustment method of any one of claims 1 to 5 is implemented.
CN201510174730.8A 2015-04-14 2015-04-14 Parameter adjusting method and device Active CN106155263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510174730.8A CN106155263B (en) 2015-04-14 2015-04-14 Parameter adjusting method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510174730.8A CN106155263B (en) 2015-04-14 2015-04-14 Parameter adjusting method and device
PCT/CN2016/078971 WO2016165594A1 (en) 2015-04-14 2016-04-11 Parameter adjustment method and device

Publications (2)

Publication Number Publication Date
CN106155263A CN106155263A (en) 2016-11-23
CN106155263B true CN106155263B (en) 2021-07-20

Family

ID=57125828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510174730.8A Active CN106155263B (en) 2015-04-14 2015-04-14 Parameter adjusting method and device

Country Status (2)

Country Link
CN (1) CN106155263B (en)
WO (1) WO2016165594A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107318048B (en) * 2017-06-06 2019-12-10 深圳市创维软件有限公司 voltage acquisition method and device and storage medium
CN107464517A (en) * 2017-08-17 2017-12-12 上海天马有机发光显示技术有限公司 Driving method, drive device, display panel and the display device of display panel
CN109828699A (en) * 2019-02-03 2019-05-31 广州视源电子科技股份有限公司 Control method, device and the interactive intelligence equipment of terminal
CN110609603A (en) * 2019-09-20 2019-12-24 北京字节跳动网络技术有限公司 Frequency modulation method and device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8542221B1 (en) * 2009-06-25 2013-09-24 Nvidia Corporation Method and system for optimizing display power reduction through a continuously variable refresh rate adjustment
CN103517051A (en) * 2012-06-28 2014-01-15 联想(北京)有限公司 Control method and electronic equipment
CN103631357A (en) * 2012-08-22 2014-03-12 宏碁股份有限公司 Power management system and power management method
CN103905718A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Information processing method and device and electronic device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8458497B2 (en) * 2007-10-11 2013-06-04 Qualcomm Incorporated Demand based power control in a graphics processing unit
KR20140030823A (en) * 2012-09-04 2014-03-12 삼성전자주식회사 Soc performing dynamic voltage and frequency scaling policies using 3d workload and method using the same
CN103473051B (en) * 2013-09-02 2017-03-15 小米科技有限责任公司 A kind of method and apparatus for saving power consumption of terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8542221B1 (en) * 2009-06-25 2013-09-24 Nvidia Corporation Method and system for optimizing display power reduction through a continuously variable refresh rate adjustment
CN103517051A (en) * 2012-06-28 2014-01-15 联想(北京)有限公司 Control method and electronic equipment
CN103631357A (en) * 2012-08-22 2014-03-12 宏碁股份有限公司 Power management system and power management method
CN103905718A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Information processing method and device and electronic device

Also Published As

Publication number Publication date
WO2016165594A1 (en) 2016-10-20
CN106155263A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106155263B (en) Parameter adjusting method and device
KR20150095632A (en) Method and apparatus for reducing digital video image data
US8643677B2 (en) Image processing apparatus and image processing method, and program therefor
KR20130127468A (en) Method and apparatus for providing static frame
CN110688081A (en) Method for displaying data on screen and display control device
KR20120018821A (en) Virtual graphics device driver
KR101722413B1 (en) Graphics voltage reduction for load line optimization
US9460481B2 (en) Systems and methods for processing desktop graphics for remote display
KR101768143B1 (en) Vehicle head unit, and method of operating the same
EP2869576A1 (en) Dynamic video encoding based on channel quality
GB2528870A (en) Managing display data for display
TW201415242A (en) Method and apparatus of data transfer dynamic adjustment in response to usage scenarios, and associated computer program product
WO2010110786A1 (en) Performing remoting operations for different regions of a display surface at different rates
WO2017202175A1 (en) Method and device for video compression and electronic device
CN108780348B (en) Image transmission apparatus, image transmission system, and method of controlling image transmission apparatus
WO2020258805A1 (en) Systems and methods for video decoding
GB2551199A (en) Video data processing system
CN111290725A (en) Screen projection method, equipment and storage medium
CA2805308A1 (en) Methods and apparatus to perform animation smoothing
CN106791855B (en) Method and system for reducing cost of agent management system
JP2019515516A (en) Image drawing method, related device and system
KR20190132434A (en) Method and apparatus for transmitting virtual reality images
US20180007386A1 (en) Dynamic fidelity updates for encoded displays
US10225536B2 (en) Dynamic fidelity updates for encoded displays
US11212540B2 (en) Video data processing system

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant