CN108121524B - Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment - Google Patents

Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN108121524B
CN108121524B CN201711378701.9A CN201711378701A CN108121524B CN 108121524 B CN108121524 B CN 108121524B CN 201711378701 A CN201711378701 A CN 201711378701A CN 108121524 B CN108121524 B CN 108121524B
Authority
CN
China
Prior art keywords
power consumption
frame rate
electronic equipment
state
electronic device
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
CN201711378701.9A
Other languages
Chinese (zh)
Other versions
CN108121524A (en
Inventor
刘畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711378701.9A priority Critical patent/CN108121524B/en
Publication of CN108121524A publication Critical patent/CN108121524A/en
Application granted granted Critical
Publication of CN108121524B publication Critical patent/CN108121524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)
  • Studio Devices (AREA)

Abstract

According to the method and the device for adjusting the image display preview frame rate of the electronic equipment, the electronic equipment and the computer readable storage medium, the power consumption heating state of the electronic equipment is obtained according to the power consumption characteristics and the heating characteristics of the electronic equipment, and according to the power consumption heating state of the electronic equipment, the electronic equipment can dynamically adjust the image display preview frame rate range in the video call, photography or camera shooting process according to the actual condition of power consumption heating and the preset rule, so that the power consumption, the heating and the image display fluency of the electronic equipment are better balanced, the working state of the electronic equipment is optimized, and the video call, photography or camera shooting efficiency is improved.

Description

Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting an image display preview frame rate of an electronic device, and a computer-readable storage medium.
Background
With the development of electronic device technology, video call, photographing or shooting through electronic devices are more and more frequent. In the conventional technology, when a video call, a photo or a video is made, a preview frame rate range of the video call, the photo or the video is fixed.
However, sometimes the fluency needs to be improved to meet the requirements of video call, photographing or shooting, and sometimes the power consumption needs to be reduced to ensure that the electronic device is in a good working state. The conventional method has a problem that it cannot meet such a demand.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting an image display preview frame rate of an electronic device, the electronic device and a computer readable storage medium, which can dynamically adjust the frame rate range of the image display preview frame rate in scenes such as video call, photo or camera shooting according to the power consumption heating performance of the electronic device, obtain better balance between the fluency of image display and the power consumption and heating of the electronic device, and improve the efficiency of video call or camera shooting.
A method for adjusting a preview frame rate, the method comprising:
acquiring power consumption characteristics and heating characteristics of electronic equipment;
acquiring a power consumption heating state of the electronic equipment according to the power consumption characteristic and the heating characteristic;
and adjusting the frame rate range of the image display preview frame rate of the electronic equipment according to the power consumption heating state and a preset rule.
An apparatus for adjusting an image display preview frame rate of an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring the power consumption characteristics and the heating characteristics of the electronic equipment;
the second acquisition module is used for acquiring the power consumption heating state of the electronic equipment according to the power consumption characteristics and the heating characteristics;
and the adjusting module is used for adjusting the frame rate range of the image display preview frame rate of the electronic equipment according to the power consumption heating state and a preset rule.
An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the computer program causes the processor to execute the steps of the method for adjusting the image display preview frame rate of the electronic device when being executed by the processor.
A computer readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the method for adjusting image display preview frame rate of an electronic device.
According to the method and the device for adjusting the image display preview frame rate of the electronic equipment, the electronic equipment and the computer readable storage medium, the power consumption characteristic and the heating characteristic of the electronic equipment are obtained, the power consumption heating state of the electronic equipment is obtained according to the power consumption characteristic and the heating characteristic, the frame rate range of the image display preview frame rate under the scenes of video call, photography or shooting and the like can be dynamically adjusted according to the power consumption heating performance of the electronic equipment, better balance among the power consumption, the heating and the fluency of the image display of the electronic equipment is obtained, the working state of the electronic equipment is optimized, and the efficiency of the video call, the photography or the shooting is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for adjusting a frame rate of an image display preview of an electronic device;
FIG. 2 is a schematic diagram of an electronic device in one embodiment;
FIG. 3 is a flowchart illustrating a method for adjusting a preview frame rate of an image display of an electronic device according to an embodiment;
FIG. 4 is a diagram illustrating a software architecture in a method for adjusting a preview frame rate of an image display of an electronic device according to an embodiment;
FIG. 5 is a flow chart of the operation of modules in the software architecture of FIG. 4;
FIG. 6 is another software architecture diagram in the method for adjusting the preview frame rate of an image display of an electronic device according to an embodiment;
FIG. 7 is a diagram illustrating a frame rate mode setting interface for an image display of an electronic device in accordance with an embodiment;
FIG. 8 is a flowchart illustrating steps for obtaining a power consuming heating state of an electronic device, in one embodiment;
FIG. 9 is a flowchart illustrating steps for acquiring a power consumption heating status of an electronic device according to another embodiment;
FIG. 10(a) is a diagram illustrating a picture stuck in one embodiment;
FIG. 10(b) is a diagram illustrating the frame rate range of the preview frame rate after being dynamically increased in the frame rate range in FIG. 10 (a);
FIG. 11 is a flowchart illustrating a method for adjusting a preview frame rate of an image display of an electronic device in accordance with an exemplary embodiment;
FIG. 12 is a block diagram of an apparatus for adjusting a frame rate of image display preview of an electronic device according to an embodiment;
fig. 13 is a block diagram of a partial structure of a cellular phone related to an electronic device provided in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various objects, but these objects are not limited by these terms. These terms are only used to distinguish a first object from another object. For example, the first preset threshold may be referred to as a second preset threshold, and similarly, the second preset threshold may be referred to as a first preset threshold, without departing from the scope of the present application. Both the first preset threshold and the second preset threshold are preset thresholds, but they are not the same preset threshold.
Fig. 1 is a schematic application environment diagram of an adjustment method for an image display preview frame rate of an electronic device in an embodiment. As shown in fig. 1, the application environment includes an electronic device 110, an electronic device 140, a connection network 120, and a server 130.
The electronic devices 110 and 140 may include a mobile terminal, an intelligent wearable device, a desktop computer, or the like, which is illustrated as a mobile terminal in this embodiment.
The connection network 120 may be a wired or WIreless network, and the WIreless connection mode includes a mobile communication network or a WIreless-Fidelity (WIFI) connection mode. This embodiment is illustrated by a wireless network.
The server 130 may be a desktop computer, a server, or the like, the server 130 is used for supporting video calls and the like between different electronic devices, and the server 130 may be composed of one or more servers.
The working process of each component in the application environment is as follows: the electronic device 110 and the electronic device 140 perform a video call, the electronic device 110 and the electronic device 140 are respectively connected with the server 130 through the connection network 120, and the electronic device 110 and the electronic device 140 perform a video call through the server 130. The electronic device 110 obtains the power consumption feature and the heating feature of the electronic device 110 itself, obtains the power consumption heating state of the electronic device 110 according to the power consumption feature and the heating feature, and according to the obtained power consumption heating state, the electronic device 110 adjusts the frame rate range of the image display preview frame rate of the electronic device 110 in the video call process according to a preset rule. The electronic device 140 may also adjust the frame rate range of the image display preview frame rate of the electronic device 140 itself in the same or similar manner as the electronic device 110 during the video call.
It should be noted that the above application environment is only for explaining the technical solutions of the embodiments of the present application, and is not used to limit the technical solutions of the present application. The technical solution of the embodiment of the present application can be applied not only to the application scenario of the video call, but also to the scenes of shooting or shooting of each electronic device, and can be applied not only to the electronic devices such as the mobile terminal, the tablet computer, the smart wearable device, the desktop or the notebook, and also to the devices such as the camera, and as long as the application environment of the technical solution of the embodiment of the present application can be applied, the application environment is within the scope of the claims of the present application.
Fig. 2 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 2, the electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs and the like, and at least one computer program is stored on the memory, and the computer program can be executed by the processor to realize the method for adjusting the image display preview frame rate of the electronic device, which is suitable for the electronic device, provided by the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a method for adjusting an image display preview frame rate of an electronic device according to the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external computer device. The electronic device may be a desktop computer, a laptop computer, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or a camera, etc.
In the conventional technology, when an electronic device performs a video call, for an application in a white list on the electronic device, a frame rate range for image display preview of the video call is fixed, for example, an application in the white list limits a frame rate range for the image display preview frame rate to be 5 to 24fps (frame Per Second, frame Per Second, abbreviated as fps), while an application not in the white list has a frame rate range for the image display preview frame rate to be 10 to 30 fps. The scheme that the frame rate range of the image display preview frame rate of the electronic equipment is fixed has some defects: when a video component operates, such as video call, photography or camera shooting, the electronic device has more hardware resources involved in operation, and the problems of power consumption and heating are relatively outstanding, and if the frame rate range of the image display preview frame rate is fixed, the smoothness requirement of image display and the power consumption heating requirement of the electronic device cannot be better and dynamically adapted, for example, the frame rate range of the image display preview frame rate of an application in a white list is fixed at 5-24 fps, but in some scenes, the frame rate range of the image display preview frame rate is increased to 10-30 fps, even higher frame rate range, so that the smoothness requirement of the image display of the application and the effect requirement of the application can be met, for example, some instant communication software, such as WeChat, Skype software, imo chat and the like, can use the software of video call; on the contrary, in some application scenarios, the frame rate range of the image display preview frame rate is reduced, for example, the frame rate range of the image display preview frame rate of the application is reduced to 5-20 fps, so that a better power consumption heating performance of the electronic device can be obtained.
Based on this, the embodiment of the present application provides a method for adjusting an image display preview frame rate of an electronic device, where the electronic device can automatically dynamically adjust a frame rate range of the image display preview frame rate of the electronic device according to actual power consumption and heat generation performance, so as to obtain a better balance between fluency of image display and power consumption and heat generation of the electronic device.
Note that the preview frame rate and the display frame rate are different from each other, and the differences are as follows:
(1) when a preview refers to a representation of the field of cameras, in general, the output modes of the camera include: a preview output mode, a photographing mode and a recording mode.
The preview output mode refers to the screen content output by the camera, and after the screen content is processed by Image Signal Processing (abbreviated as ISP), the flow behind the software displays the screen stream on the screen.
The picture output mode refers to picture content output by the camera, and after the picture content is processed by the ISP, the picture content is coded and then stored in a file form by the later process of software to form a single picture file. Wherein, the photographing output mode may include a process of preview output.
The video output mode refers to the picture content output by the camera, and after the picture content is processed by the ISP, the following process of the software encodes the picture streams and stores the encoded picture streams in the form of a file to form a video file. The video output mode may include a preview output process.
The preview frame rate refers to a frame rate of a picture output by the camera in the preview output mode, for example, the preview frame rate is 30fps, which indicates that the camera outputs 30 pictures per second at this time, and application scenarios of the preview frame rate include: video calls, photography, or video capture.
(2) The display means that all pictures on the terminal are stored in a buffer area in the memory, when the pictures are updated, the electronic device refreshes the buffer area once, and then the display controller flushes the content of the buffer area to the screen.
Display frame rate: referring to the number of times the electronic device refreshes the buffer area per second, for example, the display frame rate is 60fps, which indicates that the electronic device refreshes the buffer area 60 times per second, and the application scenarios include: games or movie television, etc.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for adjusting an image display preview frame rate of an electronic device according to an embodiment of the present disclosure, where the method for adjusting the image display preview frame rate of the electronic device in the embodiment of the present disclosure is described by taking the electronic device in fig. 1 as an example. As shown in fig. 3, the method for adjusting the image display preview frame rate of the electronic device includes:
and step 302, acquiring power consumption characteristics and heating characteristics of the electronic equipment.
Specifically, the power consumption characteristics refer to power consumption performance of the electronic device, including current power consumption of the electronic device, and a charging state of the electronic device. Generally, the capacity of the electronic device is represented by a certain number of milliamperes, such as 2300 milliamperes and 3200 milliamperes, and the current capacity of the electronic device is represented by 80%, 50%, or 30% of the battery capacity. Here, the battery capacity indicates an amount of electricity discharged from the battery under a certain condition (such as a discharge rate, a temperature, and a voltage), that is, the capacity of the battery, and is generally expressed in units of ampere-hour (abbreviated as "a · H", 1A · H ═ 3600C), milliampere, which is a unit of measurement of current, and is expressed in letters mA, and one milliampere is one thousandth of one ampere. The Quantity of electricity (english Quantity of electric charge) indicates how much an object is charged, and generally, the Quantity of electric charge is called the Quantity of electricity, and is represented by symbol Q, and the unit is bin (symbol is C). The electronic device power consumption is in different states, for example, the electronic device is in a screen-off state and a screen-on state, the electronic device is in a standby state and a use state, the power consumed by the electronic device during operation is different, and the power consumed by different application programs during operation is also different, so that the power consumption of the electronic device changes with the change of the state of the electronic device and the difference of the running application programs, and the power consumption of the electronic device is generally expressed as the power of the electronic device and can be converted into the power consumed correspondingly. The charging state of the electronic device includes that the electronic device is being charged, that the electronic device is not being charged, and the like. The electronic equipment acquires the power consumption information of the electronic equipment, can acquire the power consumption information of the electronic equipment through a power supply (Powersupply), and can also acquire the power consumption information through a power consumption log provided by a battery state service (Battery).
The heating characteristic refers to the heating performance of the electronic device, and includes temperature information of each warm zone (Thermal _ zone) in the electronic device, including a Central Processing Unit (CPU) temperature, a Graphics Processing Unit (GPU) temperature, and a motherboard temperature (board temperature for short), where the highest temperature among the CPU temperature, the GPU temperature, and the motherboard temperature is the temperature of the electronic device. The CPU temperature, the GPU temperature and the mainboard temperature can be respectively obtained through temperature sensors, and the temperature ranges of the CPU temperature, the GPU temperature and the mainboard temperature are generally 30-60 ℃. The electronic equipment acquires the temperature information of the electronic equipment and can acquire the temperature information through the temperature sensors corresponding to the warm areas.
And 304, acquiring the power consumption heating state of the electronic equipment according to the power consumption characteristics and the heating characteristics.
Specifically, the electronic device presets different parameters for each condition according to the acquired power consumption characteristics, such as conditions of the electronic device, such as electric quantity, power consumption data of the electronic device, a charging state of the electronic device, and the like, and conditions of the heating characteristics, such as CPU temperature, GPU temperature, motherboard temperature, and the like, determines the state of each condition according to the preset different parameters, and acquires the power consumption heating state of the electronic device according to the state of each condition. For example, the following conditions are predetermined:
(1) if the electronic equipment is in the uncharged state, the electric quantity of the electronic equipment can be judged according to the preset electric quantity threshold value.
The electric quantity state of the electronic equipment can be divided into different electric quantity states according to the comparison between the preset electric quantity threshold value and the current electric quantity of the electronic equipment. For example, if the current power of the electronic device is greater than or equal to a preset power threshold, it is called a first power state, if the current power of the electronic device is less than the preset power threshold, it is called a second power state, and so on, for example, the power threshold is set to 30% of the battery capacity, if the current power of the electronic device is greater than or equal to 30% of the battery capacity, because the electric quantity of the electronic equipment is sufficient, the current electric quantity of the electronic equipment is judged to be in the first electric quantity state, if the current electric quantity of the electronic equipment is less than 30 percent of the battery capacity, because the electric quantity of the electronic equipment is lower than the preset threshold value, the current electric quantity of the electronic equipment is judged to be in a second electric quantity state, the battery capacity is 2300 milliamperes, 3200 milliamperes or 3800 milliamperes, different electronic devices are different in capacity, and different electric quantity thresholds need to be set according to the actual conditions of specific electronic devices. Furthermore, a plurality of preset electric quantity thresholds can be set, and electric quantity is correspondingly divided into a plurality of states.
If the electronic device is in a charging state, the state of charge of the electronic device may be disregarded because the rate of power consumption is less than the rate of charging the battery.
(2) The electronic device power consumption may be represented by electric power.
The electric power is the work done by current in unit time, called electric power, and is used for representing the physical quantity of consumed electric energy, and is represented by P, and the unit of the electric power is Watt (Watt), which is called Watt for short, and the symbol is W.
The power consumption state of the electronic device may be determined based on a preset electric power threshold. For example, an electric power less than a preset electric power threshold is referred to as a first power consumption state, and an electric power greater than or equal to the preset electric power threshold is referred to as a second power consumption state. Specifically, for example, when the electric power threshold is set to 1600 mW, if the electric power consumption of the electronic device is less than 1600 mW, the power consumption of the electronic device is determined to be in the first power consumption state, and if the electric power consumption of the electronic device is greater than or equal to 1600 mW, the power consumption of the electronic device is determined to be in the second power consumption state, where mW is mW and 0.001W is one thousandth of watt.
It should be noted that, the parameters of the real-time power consumption are different for different electronic devices. For example, the power consumption of the mobile terminal is different from that of a desktop computer, and the power consumption of the wearable device is different from that of the mobile terminal, so that different electric power thresholds, such as 1200 milliwatts, 2000 milliwatts, or 2400 milliwatts, need to be set according to actual conditions of different electronic devices.
(3) The heating characteristic of the electronic equipment takes the highest temperature among the CPU temperature, the GPU temperature and the mainboard temperature as the judgment basis of the heating characteristic of the electronic equipment.
The heating characteristics can be judged by setting a temperature threshold of the temperature of the electronic equipment, and the heating characteristics of the electronic equipment can be divided into a first temperature state, a second temperature state and the like according to a preset temperature threshold. For example, the temperature of the electronic device is smaller than or equal to the temperature threshold as a first temperature state, and is greater than the temperature threshold as a second temperature state. Typically, the CPU temperature, GPU temperature and motherboard temperature will be between 30 degrees celsius and 60 degrees celsius. The temperature threshold value for setting the temperature of the electronic equipment is 50 ℃, if the obtained CPU temperature, the GPU temperature and the mainboard temperature do not exceed 50 ℃, the temperature of the electronic equipment is judged to be in a first temperature state, and if one of the obtained CPU temperature, the GPU temperature and the mainboard temperature exceeds 50 ℃, the temperature of the electronic equipment is judged to be in a second temperature state.
The power consumption heating state of the electronic device is further determined according to the above determination of the states of the conditions, for example, in combination with the above examples of the conditions, the power consumption heating state of the electronic device can be determined as follows:
(1) if the electronic equipment is in the charging state, only if the power consumption of the electronic equipment is in the first power consumption state and the temperature of the electronic equipment is in the first temperature state, the power consumption heating state of the electronic equipment can be judged to be in the first state, and if not, the power consumption heating state of the electronic equipment is judged to be in the second state.
The power consumption heating state of the electronic equipment is in a first state, which indicates that the power consumption of the electronic equipment can be further improved to meet the requirement of the electronic equipment on power consumption during operation, and the power consumption heating state of the electronic equipment is in a second state, which indicates that the power consumption of the electronic equipment needs to be reduced to ensure a good working state of the electronic equipment.
(2) If the electronic equipment is in the uncharged state, only if the electric quantity of the electronic equipment is in the first electric quantity state, the power consumption of the electronic equipment is in the first power consumption state and the temperature of the electronic equipment is in the first temperature state, the power consumption heating state of the electronic equipment can be judged to be in the first state, otherwise, the power consumption heating state of the electronic equipment is judged to be in the second state.
It should be noted that the above examples are only for understanding the embodiments of the present application and are not intended to limit the technical solutions of the present application, and the technical solutions of the present application include more or less expressions than the above examples and are within the scope of the claims of the present application. For example, in the above embodiment, the data of each condition and the power consumption heating state of the electronic device may be previously corresponding to the acquired conditions such as the electric quantity data of the electronic device, the power consumption data of the electronic device, the charging state of the electronic device, and the like, and the temperature data including the CPU temperature, the GPU temperature, the motherboard temperature, and the like included in the heating characteristic, and the power consumption heating state of the electronic device may be directly determined according to the data of each condition, and the current power consumption heating state of the corresponding electronic device may also be acquired through a process of determining the state of each condition according to the different preset parameters of each condition without presetting different parameters for each condition.
And step 306, adjusting the frame rate range of the image display preview frame rate of the electronic equipment according to a preset rule according to the power consumption heating state.
Specifically, frame rate, english: the Frame rate is a measure for measuring the number of display Frames in units of Frames Per Second (Frame Per Second, fps) or Hertz (Hz).
The electronic equipment judges whether the frame rate range of the image display preview frame rate is increased or decreased or the frame rate range of the image display preview frame rate is maintained according to the acquired power consumption heating state of the electronic equipment. For example, if the power consumption heating state of the electronic device is determined to be in the first state, the frame rate range of the image display preview frame rate can be increased, so that the smoothness of image display is improved, and if the current power consumption heating state of the electronic device is determined to be in the second state, the frame rate range of the image display preview frame rate can be decreased, so that the power consumption of the electronic device is decreased, and the balance among the power consumption, the heating and the smoothness of image display of the electronic device can be better obtained by dynamically adjusting the frame rate range of the image display preview frame rate in the video call, photographing or photographing process, so that the working state of the electronic device is optimized, and the efficiency of video call, photographing or photographing is improved.
Further, referring to fig. 4, fig. 4 is a software architecture diagram in the adjustment method for the preview frame rate in an embodiment, and the operation principle of each module of the software architecture diagram shown in fig. 4 is as follows:
(1) the power supply (Powersupply) is used for acquiring power consumption information of electronic equipment, and can be realized by a coulomb meter arranged in a system under a general condition, wherein the coulomb meter, also called ampere-second meter, is a programmable digital electric meter, and adopts an advanced microprocessor to carry out intelligent control, and after an input signal is subjected to operation processing by a CPU, the input signal outputs the current battery capacity.
(2) The temperature control core (Thermal core) is used for acquiring temperature information of the electronic device, and generally, the system is divided into different warm-up areas (Thermal zones), such as a CPU warm-up area, a GPU warm-up area and a motherboard warm-up area, and each warm-up area (Thermal zone) has a corresponding temperature Sensor (Sensor) for measuring temperature information.
(3) The system comprises a virtual file system sysfs and a Daemon process (Daemon) located in a library of a local layer (Native layer) space, wherein the Daemon process (Daemon) comprises a Power consumption local Daemon process (Power Native Daemon) and a temperature control local Daemon process (Thermal Native Daemon), the Daemon process (Daemon) can access information data corresponding to a Power supply (Power supply) and a temperature control core (Thermal core) through the sysfs, and in the embodiment, the Daemon process (Daemon) acquires Power consumption information and temperature information through the virtual file system sysfs.
(4) A Power consumption local daemon process (Power native daemon) acquires and arranges Power consumption information of the electronic device, and ranks Power consumption levels according to a threshold, for example, the Power consumption levels are divided into a first Power consumption state and a second Power consumption state according to whether the Power consumption of the electronic device is greater than or equal to a preset Power consumption threshold. For example, if the power consumption of the electronic device is less than 1600 mw, it is referred to as a first power consumption state, and if the power consumption of the electronic device is greater than or equal to 1600 mw, it is referred to as a second power consumption state.
(5) A local temperature control daemon (Thermal native daemon) acquires and arranges temperature information of the electronic device, and classifies temperature levels according to a threshold, for example, the temperature levels are classified into a first temperature state and a second temperature state.
(6) Battery status services (batteries) for providing a battery consumption log.
(7) The power consumption monitoring service (Powermonitor services) dynamically outputs the target frame rate range according to the power consumption level of the electronic device, the temperature level of the electronic device, and a battery consumption log provided by the battery status service (batteries services). And the power consumption monitoring service (Powermonitor services) module is also responsible for application management of the white list, such as setting the white list, adding an application in the white list, deleting an application in the white list, or setting a preview frame rate range of an application in the white list.
(8) The Camera service (Camera services) receives an adjustment instruction for an image display preview frame rate from a power consumption monitoring service (Powermonitor services) module, adjusts the preview frame rate according to the adjustment instruction, for example, receives a message of a "target frame rate range", such as a 5-20 fps message, a 10-25 fps message or a 10-30 fps message, from the power consumption monitoring service (Powermonitor services) module, and sets a requirement of the message through a corresponding software interface, and a video component of the electronic device operates at the set preview frame rate.
Specifically, referring to fig. 5, fig. 5 is a flowchart illustrating operations of modules in the software architecture of fig. 4, where the operations of the modules in fig. 4 include:
step 501, a power supply (Powersupply) acquires system power consumption information data, a temperature control core (Thermal core) acquires heating characteristic data of electronic equipment, and the power consumption information data and the heating characteristic data are transmitted to a virtual file system sysfs;
step 502, the virtual file system sysfs receives power consumption information data sent by a power supply (Powersupply) and electronic equipment heating characteristic data sent by a temperature control core (Thermal core);
step 503, a Power consumption local daemon process (Power native daemon) acquires Power consumption information data and a temperature control local daemon process (Thermal native daemon) acquires heating characteristic data;
specifically, a Power local daemon (Power native daemon) acquires Power consumption information data from the virtual file system sysfs and processes the Power consumption information data, and a temperature local daemon (Thermal daemon) acquires heating feature data from the virtual file system sysfs and processes the heating feature data.
Step 504, a power consumption monitoring service (Powermonitor services) acquires power consumption information data, heating characteristic data and a battery power consumption log, determines a dynamic frame rate target, and sends the dynamic frame rate target to a camera service;
specifically, the Power consumption monitoring service (Powermonitor services) acquires Power consumption information data from a Power consumption local daemon process (Power native daemon), acquires heating feature data from a temperature control local daemon process (Thermal native daemon), determines a dynamic frame rate target from a battery consumption log provided by a battery status service (batteries services), according to the acquired Power consumption information data, the heating feature data and the Power consumption log, and sends the dynamic frame rate target to the camera service.
Step 505, the camera service receives an instruction for adjusting the preview frame rate sent by a power consumption monitoring service (Powermonitor services) module, adjusts the preview frame rate according to the instruction, sets the preview frame rate requirement through a corresponding software interface, and a video component of the electronic device works at the set preview frame rate.
In another embodiment, the electronic device obtains the power consumption information of the electronic device, in addition to the power consumption information of the electronic device obtained through the power consumption log provided by the battery status service (batteries) in fig. 4, if the power consumption information of the electronic device is obtained through the power consumption log provided by the battery status service (batteries), the power consumption monitoring service (Powermonitor) no longer needs to access the power supply (Powersupply), and the corresponding software architecture is adjusted and then refers to fig. 6, where fig. 6 is another software architecture diagram in the adjustment method for the image display preview frame rate of the electronic device in one embodiment, and a power manager tool (Powertools) module running in a Framework layer (Framework layer) is used for obtaining and calculating the power consumption performance of the electronic device, and then transfers the power consumption performance to the power consumption monitoring service (Powermonitor services).
In order to better understand the technical solution of the embodiment of the present application, a specific application scenario is used to describe the use of the technical solution of the present application, for example, in a video call application scenario of an electronic device, the application of the technical solution of the embodiment of the present application may manage an application program using the technical solution by setting a white list on an electronic device system. When a user uses a third-party chat Application (APP for short) to perform video chat, if the APP is in a white list of the electronic device, a frame rate mode corresponding to the technical scheme of the embodiment of the present Application may be used. For the frame rate mode of the technical scheme of the application, the frame rate mode can be set in the following two ways:
(1) in the first mode, the user can select the video call frame rate through setting, battery, advanced and video call frame rate adjustment, and then through one of three options: a first frame rate mode, wherein in the first frame rate mode, the frame rate range is 15-30 fps; a "second frame rate mode", in which the frame rate range is 5-20 fps; in the "dynamic frame rate mode", the frame rate range is dynamically adjusted according to the power consumption performance and the heat generation performance of the electronic device. Referring to fig. 7, fig. 7 is a frame rate mode setting interface diagram in an embodiment, as shown in fig. 7, the currently selected frame rate mode in fig. 7 is a dynamic frame rate mode, and when an application running on the electronic device is in a white list of the electronic device, the electronic device executes the dynamic frame rate mode according to a power consumption performance and a heat generation performance of the electronic device, so as to dynamically adjust a frame rate range of a preview frame rate of the application.
(2) In the second way, the function can be selected by the adb command, and the "first frame rate mode", the "second frame rate mode", and the "dynamic frame rate mode" can be selected by setp persistence.
In one embodiment, the method further comprises:
detecting whether a video component is started;
and if the video assembly is detected to be started, acquiring the power consumption characteristic and the heating characteristic of the electronic equipment.
Specifically, the video component refers to an element capable of performing a video call, shooting or shooting, and the like, and includes a camera, a lens of a camera, and the like, for example, a camera of a mobile terminal, a camera of a wearable device, and the like, or a digital camera, a video camera, and the like.
The electronic equipment detects whether the video component is started, corresponding functions can be set through the electronic equipment, when the video component is started, the video component sends a first message to the electronic equipment, and the electronic equipment is informed of the start of the video component through the first message. Or, setting a corresponding function through the electronic device, when the video component is started by the application program, sending a second message to the electronic device by the application program, and informing the electronic device of the start of the video component through the second message.
If the electronic equipment detects that the video component is started, it indicates that an application program carries out video call, photography or shooting through the video component, and if the electronic equipment is in a mode of dynamically adjusting the preview frame rate at the moment, the electronic equipment acquires the power consumption characteristic and the heating characteristic of the electronic equipment, judges the power consumption heating state of the electronic equipment according to the power consumption characteristic and the heating characteristic, and adjusts the frame rate range of the image display preview frame rate according to the power consumption heating state of the electronic equipment.
In one embodiment, the step of detecting whether the video component is started comprises:
detecting whether a message sent by an application program in a white list and starting the video assembly is received;
and if the message of starting the video assembly is received, judging that the video assembly is started.
Specifically, the white list and the concept of the white list correspond to a "black list", and it is simply understood that the white list is a user who can pass through the setting, and users other than the white list cannot pass through the setting.
The electronic equipment can manage the application program through the white list by setting the white list, the application program in the white list uses a mode of dynamically adjusting the frame rate range, and the application program outside the white list does not use the mode of dynamically adjusting the frame rate range, so that the application program is better managed, particularly the application program with higher requirements on the power consumption and the fluency of the electronic equipment, such as the application program of video call type, the application program of photography camera type and other application programs with higher power consumption.
When an application program in a white list of the electronic equipment starts a video component, sending a message to the electronic equipment, wherein the message is used for informing the electronic equipment that the application program starts the video component, if the electronic equipment receives the message for starting the video component sent by the application program in the white list, the electronic equipment judges that the video component is started, then a mode for dynamically adjusting a preview frame rate is started, power consumption characteristics and heating characteristics of the electronic equipment are obtained, the current state of power consumption heating of the electronic equipment is judged according to the power consumption characteristics and the heating characteristics, and the frame rate range of an image display preview frame rate is adjusted according to the current state of power consumption heating of the electronic equipment.
In one embodiment, the method further comprises:
and if a message of closing the video assembly sent by the application program in the white list is received, judging that the video assembly is not started.
When an application program in a white list of the electronic equipment closes a video component, sending a message of closing the video component to the electronic equipment of the electronic equipment, wherein the message is used for informing the electronic equipment that the application program closes the video component, and if the electronic equipment receives the message of closing the video component sent by the application program in the white list, the electronic equipment judges that the video component is not started, and then closes a mode of dynamically adjusting a preview frame rate, so that the power consumption of the electronic equipment is reduced, and the resources of the electronic equipment are saved.
In an embodiment, please refer to fig. 8, fig. 8 is a flowchart illustrating a step of acquiring a power consumption heating state of an electronic device according to an embodiment, where the step of acquiring the power consumption heating state of the electronic device according to the power consumption feature and the heating feature includes:
step 802, acquiring a power consumption level corresponding to the power consumption feature according to the power consumption feature;
step 804, acquiring a temperature level corresponding to the heating feature according to the heating feature;
and 806, acquiring the power consumption heating state of the electronic equipment according to the power consumption level and the temperature level.
Specifically, the power consumption level refers to a power consumption level at which the electronic device divides the power consumption characteristics according to a preset threshold, and is used for indicating the power consumption degree of the electronic device in different situations.
The following two cases can be classified:
(1) and under the condition of charging the electronic equipment, dividing the power consumption characteristics into different levels according to the power consumption threshold of the electronic equipment.
Specifically, the power consumption characteristics may be divided into three levels according to different power consumption thresholds of the electronic device, the power consumption characteristics are divided into a first level when the power consumption of the electronic device is less than or equal to a first preset power consumption threshold, the power consumption characteristics are divided into a second level when the power consumption of the electronic device is greater than or equal to a second preset power consumption threshold, and the power consumption characteristics are divided into a third level when the power consumption of the electronic device is between the first preset power consumption threshold and the second preset power consumption threshold. For example, the power consumption is expressed by electric power, see table 1, for example, a first preset power consumption threshold is set to 1600 milliwatts, a second preset power consumption threshold is set to 2400 milliwatts, and the power consumption levels of the electronic device are divided into a first level, a second level and a third level, which respectively correspond to corresponding power consumption characteristics. Wherein 1600 milliwatts is equivalent to the electric power of 400 milliamperes current under 4 volts; 2400 milliwatts corresponds to an electrical power of 600 milliamps of current at 4 volts.
(2) Under the condition that the electronic equipment is not charged, the power consumption characteristics are divided into different levels according to the battery power and the power consumption threshold of the electronic equipment. For example, the power consumption level is classified into three levels according to the battery capacity as a percentage of the battery capacity and the difference between the power consumption thresholds. For example, the first preset charge threshold is set to be 30% of the battery capacity, the second preset charge threshold is set to be 50% of the battery capacity, and the power consumption is expressed as electric power, see table 1, according to the fact that the charge is greater than or equal to 50% of the battery capacity, the charge is between 30% of the battery capacity and 50% of the battery capacity, the charge is less than or equal to 30% of the battery capacity, the electric power of the electronic device is less than or equal to 1600 milliwatts, the electric power of the electronic device is between 1600 milliwatts and 2400 milliwatts, and the electric power of the electronic device is greater than or equal to 2400 milliwatts, the power consumption levels are divided into a first level, a second level and a third level, which correspond to the corresponding power consumption characteristics respectively.
The temperature level refers to a temperature level preset by the electronic device and is used for indicating the heating degree of the electronic device, and the heating features are divided into different levels according to a preset temperature threshold.
According to the difference of the temperature thresholds, the heating features can be divided into three levels, when the temperature of the electronic device is less than or equal to a first preset temperature threshold, the electronic device is divided into a first level, when the temperature of the electronic device is greater than or equal to a second preset temperature threshold, the electronic device is divided into a second level, and when the temperature of the electronic device is between the first preset temperature threshold and the second preset temperature threshold, the electronic device is divided into a third level. For example, referring to table 1, according to the difference between the temperature of the electronic device and the preset temperature threshold, the first preset temperature threshold is set to 35 degrees celsius, the second temperature threshold is set to 60 degrees celsius, and according to the temperature of the electronic device being less than or equal to 35 degrees celsius, the temperature of the electronic device being between 35 degrees celsius and 60 degrees celsius, and the temperature of the electronic device being greater than or equal to 60 degrees celsius, the temperature levels of the heating features are divided into three levels, and the temperature levels are divided into a first level, a second level and a third level, which correspond to the corresponding heating features respectively.
It should be noted that the parameter setting and the grade division in table 1 are only for explaining the technical solution of the present embodiment, and are not used to limit the technical solution of the present application, and the specific parameter setting and the grade division may be set and adjusted continuously in practice according to different actual conditions of different devices, so that the parameter setting and the grade division better conform to the actual operating conditions of the devices.
Table 1
Figure RE-GDA0001601510860000161
Figure RE-GDA0001601510860000171
After the electronic equipment acquires the power consumption characteristics of the electronic equipment, the power consumption level corresponding to the power consumption characteristics is acquired according to the power consumption characteristics. For example, referring to table 1, if the power consumption characteristic of the electronic device is acquired by the electronic device that the battery is not charged and the electric quantity is greater than or equal to 50% of the battery capacity, the power consumption level is the first level.
After the electronic equipment acquires the heating characteristics of the electronic equipment, the temperature level corresponding to the heating characteristics is acquired according to the heating characteristics. For example, referring to table 1, if the electronic device obtains the heat generation characteristic of the electronic device that the current temperature of the electronic device is 33 degrees celsius, the temperature level is the first level.
And acquiring the power consumption heating state of the electronic equipment according to the power consumption level and the temperature level. For example, please refer to table 1, where the power consumption level of the electronic device obtained by the electronic device is a first level, and the temperature level of the electronic device obtained by the electronic device is a first level, as can be seen from table 1, the state of the power consumption heating feature of the electronic device is a first state, and then it is determined that the frame rate range of the preview frame rate can be increased, so as to improve the fluency of the video image, the photographing image, or the shooting image. Similarly, if the state of the power consumption heating feature of the electronic device is determined to be the second state, the frame rate range of the preview frame rate needs to be reduced, thereby reducing the power consumption of the electronic device.
In the above embodiment, the electronic device may directly acquire the power consumption heating state of the electronic device according to the power consumption characteristic and the temperature characteristic without acquiring the power consumption level and the temperature level, so as to dynamically adjust the preview frame rate of the display image of the video component.
In an embodiment, the step of adjusting the frame rate range of the preview frame rate according to the current state and a preset rule includes:
acquiring a target frame rate range corresponding to the power consumption heating state according to the power consumption heating state;
and adjusting the frame rate range of the preview frame rate to the target frame rate range.
Specifically, the electronic device acquires a power consumption heating state of the electronic device, acquires a target frame rate range corresponding to the power consumption heating state according to the power consumption heating state, and adjusts the frame rate range of the preview frame rate to the target frame rate range. With reference to table 1, if the power consumption heating state of the electronic device is the first state, the target frame rate range for acquiring the preview frame rate is 10 to 30fps, and the electronic device adjusts the preview frame rate range of the video component to 10 to 30fps, so as to achieve dynamic adjustment of the preview frame rate range, and balance between the power consumption of the electronic device and the smoothness of image display of the electronic device is obtained.
Still further, the adjusting the frame rate range of the preview frame rate to the target frame rate range includes:
if the frame rate range of the preview frame rate is larger than the target frame rate range, reducing the frame rate range of the preview frame rate to the target frame rate range;
if the frame rate range of the preview frame rate is smaller than the target frame rate range, increasing the frame rate range of the preview frame rate to the target frame rate range;
and if the frame rate range of the preview frame rate is equal to the target frame rate range, not adjusting.
Specifically, the electronic device acquires a target frame rate range of a preview frame rate corresponding to a power consumption heating state of the electronic device, compares the frame rate range of the preview frame rate with the target frame rate range, and determines whether to increase the frame rate range of the preview frame rate, decrease the frame rate range of the preview frame rate, or not to adjust the frame rate according to a comparison result. If the frame rate range of the preview frame rate is larger than the target frame rate range, reducing the frame rate range of the preview frame rate to the target frame rate range, if the frame rate range of the preview frame rate is smaller than the target frame rate range, increasing the frame rate range of the preview frame rate to the target frame rate range, and if the frame rate range of the preview frame rate is equal to the target frame rate range, not adjusting. For example, if the frame rate range of the preview frame rate is 10 to 25fps, if the range of the obtained target frame rate is 10 to 30fps, the frame rate range of the preview frame rate is increased to 10 to 30fps, if the range of the obtained target frame rate is 5 to 20fps, the frame rate range of the preview frame rate is decreased to 5 to 20fps, and if the range of the obtained target frame rate is 10 to 25fps, no adjustment is performed.
In one embodiment, the step of acquiring the power consumption and heat generation state of the electronic device according to the power consumption feature and the heat generation feature includes:
if the electronic equipment is detected to simultaneously meet the following conditions, judging that the power consumption heating state of the electronic equipment is in a first state:
detecting that the electronic device is in a charging state;
judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
otherwise, judging that the power consumption heating state of the electronic equipment is in a second state.
In one embodiment, the step of acquiring the power consumption and heat generation state of the electronic device according to the power consumption feature and the heat generation feature includes:
if the electronic equipment is detected to simultaneously meet the following conditions, judging that the power consumption heating state of the electronic equipment is in a first state:
detecting that the electronic equipment is in an uncharged state, and judging that the electric quantity of the electronic equipment is greater than or equal to an electric quantity preset threshold value;
judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
otherwise, judging that the power consumption heating state of the electronic equipment is in a second state.
Specifically, referring to fig. 9, fig. 9 is a flowchart illustrating steps of acquiring a power consumption heating state of an electronic device according to another embodiment, where the steps include:
step 901, the electronic device starts a preview frame rate dynamic adjustment mode to start detecting a power consumption heating state of the electronic device;
step 902, the electronic device detects whether the electronic device is in a charging state, if so, the step 904 is executed, otherwise, the step 903 is executed;
step 903, if the electronic device is not in a charging state, the electronic device determines whether the battery power of the electronic device is greater than or equal to a preset power threshold, for example, the preset power threshold may be set to 50% or 60% of the battery capacity, if the electronic device determines that the battery power of the electronic device is greater than or equal to the preset power threshold, it indicates that the battery power is sufficient, and the power consumption requirement can be met, otherwise, the step 907 is entered;
step 904, the electronic device determines whether the power consumption of the electronic device is less than or equal to a preset power consumption threshold, where the preset power consumption threshold may be 600 milliwatts or 500 milliwatts, and if the electronic device determines that the power consumption of the electronic device is less than or equal to the preset power consumption threshold, step 905 is entered, otherwise step 907 is entered;
step 905, the electronic device determines whether the temperature of the electronic device is less than or equal to a preset temperature threshold, where the preset temperature threshold may be 55 degrees celsius or 60 degrees celsius, and if the electronic device determines that the temperature of the electronic device is less than or equal to the preset temperature threshold. Step 906 is entered, otherwise step 907 is entered;
step 906, the electronic equipment judges that the power consumption heating state is in a first state;
step 907, the electronic device determines that the power consumption heating state is in the second state.
It should be noted that, although the steps in the flowchart of fig. 9 are shown in sequence as indicated by arrows, the steps are not necessarily executed in sequence as indicated by the arrows. Since the three conditions of the power consumption of the electronic device, the power consumption of the electronic device and the temperature of the electronic device are in parallel, the steps may be performed in other sequences, for example, the electronic device may perform the detection of the three conditions simultaneously. Moreover, at least a portion of the steps in fig. 7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, the step of adjusting a frame rate range of an image display preview frame rate of the electronic device according to a preset rule according to the power consumption heating state includes:
if the power consumption heating state of the electronic equipment is judged to be in the first state, the frame rate range of the preview frame rate is increased to a first target frame rate range;
and if the power consumption heating state of the electronic equipment is judged to be in the second state, reducing the frame rate range of the preview frame rate to a second target frame rate range.
Specifically, after determining that the power consumption heating state of the electronic device is in the first state or the second state, the electronic device adjusts the frame rate range of the preview frame rate of the electronic device to a target range according to a preset rule, for example, if the electronic device determines that the power consumption heating state of the electronic device is in the first state, the frame rate range of the preview frame rate is increased to a first target frame rate range, the first target frame rate range includes 10 to 30fps, so as to increase the smoothness of the image displayed by the video component, and prevent a picture of a video call, a picture of a photography or a video camera from being stuck, please refer to fig. 10(a) and fig. 10(b), where fig. 10(a) is a schematic diagram of a picture being stuck in one embodiment, and fig. 10(b) is a schematic diagram of a picture in fig. 10(a) after dynamically increasing the frame rate range of the preview frame rate; if the electronic equipment judges that the power consumption heating state of the electronic equipment is in a second state, the frame rate range of the preview frame rate is reduced to a second target frame rate range, the second target frame rate range comprises 5-20 fps, so that the power consumption of the image displayed by the video component is reduced, the electronic equipment is enabled to keep a good working state, further the frame rate range of the preview frame rate of the electronic equipment is dynamically adjusted, balance is obtained between the fluency of the image displayed by the electronic equipment and the power consumption of the electronic equipment, the working state of the electronic equipment is optimized, and the efficiency of video conversation, shooting or shooting is improved.
In one embodiment, the step of adjusting a frame rate range of an image display preview frame rate of the electronic device according to a preset rule according to the power consumption heating state includes:
if the power consumption heating state of the electronic equipment is judged to be in the first state, the frame rate range of the preview frame rate is increased according to a first preset amplitude;
and if the power consumption heating state of the electronic equipment is judged to be in the second state, reducing the frame rate range of the preview frame rate according to a second preset amplitude.
Specifically, the first preset amplitude and the second preset amplitude are respectively preset frame rate values, for example, the first preset amplitude is 3fps, 5fps, or 8 fps.
After the electronic device determines that the power consumption heating state of the electronic device is in the first state or the second state, the frame rate range of the preview frame rate of the video component is adjusted to a target range according to a preset rule, for example, if the electronic device determines that the power consumption heating state of the electronic device is in the first state, the frame rate range of the preview frame rate is increased according to a first preset amplitude, the first preset amplitude is greater than zero, the first preset amplitude may be 3fps, 5fps, or 8fps, and for example, if the preview frame rate is currently 5 to 20fps, the first preset amplitude is 5fps, and after the increase, the preview frame rate is 10 to 25fps, and the like, so that the fluency of the image displayed by the video component is increased, and a balance is obtained between the fluency of the image displayed by the electronic device and the power consumption and the heating of the electronic device.
If the electronic device determines that the power consumption heating state of the electronic device is in the second state, reducing the frame rate range of the preview frame rate according to a second preset amplitude, where the second preset amplitude is greater than zero, and the second preset amplitude may be 3fps, 5fps, or 8fps, for example, if the preview frame rate is currently 10-30 fps, taking the second preset amplitude as 3fps as an example, after reduction, the preview frame rate is 7-27 fps, so as to reduce the power consumption of the electronic device, and balance is obtained between the fluency of image display of the electronic device and the power consumption of the electronic device.
It should be noted that the first preset amplitude and the second preset amplitude may be the same or different, for example, the first preset amplitude and the second preset amplitude are both 5fps, or the first preset amplitude and the second preset amplitude are both 8fps, or the first preset amplitude is 5fps, and the second preset amplitude is 8 fps. The specific data of the first preset amplitude and the second preset amplitude are for explaining the embodiment of the present application, and are not limited to the embodiment of the present application, and different other data may be set according to actual needs in the first preset amplitude and the second preset amplitude.
Referring to fig. 11, fig. 11 is a flowchart illustrating a method for adjusting a preview frame rate of an image display of an electronic device according to an embodiment, where the method includes:
step 1101, after the electronic device is started, starting detection;
step 1102, the electronic device detects whether a video component starting message sent by an application program in a white list is received, if so, step 803 is entered, otherwise, the electronic device continues to detect whether the video component starting message sent by the application program in the white list is received, wherein the application program in the white list is set as the application program using a mode of dynamically adjusting the preview frame rate;
1103, the electronic device acquires power consumption characteristics and heating characteristics of the electronic device, wherein the power consumption characteristics comprise electric quantity of the electronic device, power consumption of the electronic device, charging state of the electronic device and the like, and the heating characteristics comprise CPU temperature, GPU temperature, mainboard temperature and the like, and the step 1104 is entered;
1104, obtaining a power consumption level corresponding to the power consumption feature according to the power consumption feature, obtaining a temperature level corresponding to the heating feature according to the temperature feature, where the power consumption level and the temperature level are, for example, set to a first level, a second level, and a third level, and entering 1105;
step 1105, obtaining a power consumption heating state of the electronic device according to the power consumption level and the temperature level, where the power consumption heating state is, for example, a first state, a third state, a second state, and the like, and entering step 1106;
step 1106, acquiring a target frame rate range corresponding to the power consumption heating state according to the power consumption heating state, wherein the target frame rate range is 5-20 fps, 10-25 ps, 10-30 fps and the like, and entering step 1107;
step 1107, adjust the frame rate range of the preview frame rate to the target frame rate range.
It should be understood that, although the steps in the flowchart of fig. 11 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 11 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
According to the method for adjusting the image display preview frame rate of the electronic equipment, the power consumption heating state of the electronic equipment is obtained according to the power consumption characteristics and the heating characteristics of the electronic equipment, and according to the power consumption heating state of the electronic equipment, the frame rate range of the preview frame rate in the video call, photographing or photographing process can be dynamically adjusted according to the actual condition of power consumption and the preset rule by the electronic equipment, so that the frame rate range of the preview frame rate in the image display process of the electronic equipment such as the video call and the like is controlled by using the power consumption characteristics and the heating characteristics as input parameters, better balance is obtained among the power consumption, the heating and the fluency of image display of the electronic equipment, the working state of the electronic equipment is optimized, and the efficiency of the video call, the photographing or the photographing is improved.
The embodiment of the application also provides a device for adjusting the image display preview frame rate of the electronic equipment. Referring to fig. 12, fig. 12 is a block diagram illustrating an adjusting apparatus for adjusting a frame rate of image display preview of an electronic device according to an embodiment. As shown in fig. 12, the apparatus includes:
a first obtaining module 1202, configured to obtain a power consumption characteristic and a heat generation characteristic of an electronic device;
specifically, referring to fig. 4, a power consumption local daemon acquires power consumption information of the electronic device provided by a power supply through a virtual file system sysfs, acquires power consumption characteristics of the electronic device according to the power consumption information, and a temperature control local daemon acquires temperature information of the electronic device provided by a temperature control core through the virtual file system sysfs, and acquires heating characteristics of the electronic device according to the temperature information. The power consumption information of the electronic equipment provided by the power supply can be realized through a coulomb meter of the system, and the temperature information of the electronic equipment provided by the temperature control core is acquired through a temperature sensor corresponding to each warm area.
A second obtaining module 1204, configured to obtain, according to the power consumption feature and the heating feature, a power consumption heating state of the electronic device;
specifically, with continuing reference to fig. 4, the power consumption monitoring service obtains the power consumption characteristics from a power consumption local daemon, the power consumption monitoring service obtains a battery power consumption log from a battery status service, the power consumption monitoring service obtains the heating characteristics from a temperature control local daemon, the power consumption monitoring service obtains the power consumption heating status of the electronic device according to the obtained power consumption characteristics, the battery power consumption log and the heating characteristics,
an adjusting module 1206, configured to adjust a frame rate range of an image display preview frame rate of the electronic device according to a preset rule according to the power consumption heating state.
Specifically, please continue to refer to fig. 4, the power consumption monitoring service obtains the power consumption heating state of the electronic device according to the obtained target frame rate range, and outputs the target frame rate range to the camera service, the camera service receives an adjustment instruction for the image display preview frame rate from a power consumption monitoring service (Powermonitor services) module, adjusts the preview frame rate according to the adjustment instruction, the camera service then sets the requirement of the instruction through a corresponding software interface, and a video component of the electronic device will operate at the set preview frame rate.
In one embodiment, the obtaining module 1202 includes:
the first acquisition unit is used for acquiring the power consumption level corresponding to the power consumption characteristic according to the power consumption characteristic;
the second acquisition unit is used for acquiring the temperature level corresponding to the heating characteristic according to the heating characteristic;
and the third acquisition unit is used for acquiring the power consumption heating state of the electronic equipment according to the power consumption level and the temperature level.
In one embodiment, the adjustment module 1206 includes:
a fourth obtaining unit, configured to obtain, according to the power consumption heating state, a target frame rate range corresponding to the power consumption heating state;
and the adjusting unit is used for adjusting the frame rate range of the preview frame rate to the target frame rate range.
In one embodiment, the second obtaining module 1204 includes:
the first state judgment unit is used for judging that the power consumption heating state of the electronic equipment is in a first state if the electronic equipment is detected to simultaneously meet the following conditions:
detecting that the electronic device is in a charging state;
the power consumption judging module is used for judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
the temperature judging module is used for judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
and the second state judging unit is used for judging that the power consumption heating state of the electronic equipment is in a second state if the electronic equipment is judged not to be in the first state.
In one embodiment, the second obtaining module 1204 includes:
the first state judgment unit is used for judging that the power consumption heating state of the electronic equipment is in a first state if the electronic equipment is detected to simultaneously meet the following conditions:
the device is used for detecting that the electronic equipment is in an uncharged state and judging that the electric quantity of the electronic equipment is greater than or equal to an electric quantity preset threshold value;
the power consumption judging module is used for judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
the temperature judging module is used for judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
and the second state judging unit is used for judging that the power consumption heating state of the electronic equipment is in a second state if the electronic equipment is judged not to be in the first state.
In one embodiment, the adjustment module 1206 includes:
a first lifting unit, configured to lift a frame rate range of the preview frame rate to a first target frame rate range if it is determined that a power consumption heating state of the electronic device is in the first state;
and the first reducing unit is used for reducing the frame rate range of the preview frame rate to a second target frame rate range if the power consumption heating state of the electronic equipment is judged to be in the second state.
In one embodiment, the adjustment module 1206 includes:
the second lifting unit is used for lifting the frame rate range of the preview frame rate according to a first preset amplitude if the power consumption heating state of the electronic equipment is judged to be in the first state;
and the second reducing unit is used for reducing the frame rate range of the preview frame rate according to a second preset amplitude if the power consumption heating state of the electronic equipment is judged to be in the second state.
The device for adjusting the image display preview frame rate of the electronic equipment is used for acquiring the power consumption heating state of the electronic equipment according to the power consumption characteristics and the heating characteristics by acquiring the power consumption characteristics and the heating characteristics of the electronic equipment, and dynamically adjusting the frame rate range of the image display preview frame rate in the processes of video call, photography or camera shooting according to the power consumption heating state of the electronic equipment and the actual situation of the power consumption heating of the electronic equipment according to the preset rule, so that better balance among the power consumption, the heating and the fluency of the image display of the electronic equipment is obtained, the working state of the electronic equipment is optimized, and the efficiency of the video call, the photography or the camera shooting is improved.
The division of each module in the apparatus for adjusting the image display preview frame rate of the electronic device is only used for illustration, and in other embodiments, the apparatus for adjusting the image display preview frame rate of the electronic device may be divided into different modules as needed to complete all or part of the functions of adjusting the image display preview frame rate of the electronic device.
The implementation of each module in the apparatus for adjusting the image display preview frame rate of the electronic device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media embodying a computer program that, when executed by one or more processors, causes the processors to perform the steps of:
a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method for adjusting the image display preview frame rate of an electronic device as described in the embodiments above.
The embodiment of the application also provides the electronic equipment. As shown in fig. 13, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 13 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 13, the handset includes: radio Frequency (RF) circuitry 1310, memory 1320, input unit 1330, display unit 1340, sensor 1350, audio circuitry 1360, wireless fidelity (WiFi) module 1370, processor 1380, and power supply 1390. Those skilled in the art will appreciate that the handset configuration shown in fig. 13 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 1310 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information from a base station and then process the received downlink information to the processor 1380; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1310 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 1320 may be used to store software programs and modules, and the processor 1380 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1320. The memory 1320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1320 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1300. Specifically, the input unit 1330 may include a touch panel 1331 and other input devices 1332. Touch panel 1331, which may also be referred to as a touch screen, can collect touch operations by a user (e.g., operations by a user on or near touch panel 1331 using a finger, a stylus, or any other suitable object or accessory) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1331 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1380, where the touch controller can receive and execute commands sent by the processor 1380. In addition, the touch panel 1331 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1330 may include other input devices 1332 in addition to the touch panel 1331. In particular, other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 1340 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The display unit 1340 may include a display panel 1341. In one embodiment, the Display panel 1341 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 1331 can overlay display panel 1341 and, when touch panel 1331 detects a touch operation on or near touch panel 1331, communicate to processor 1380 to determine the type of touch event, and processor 1380 then provides a corresponding visual output on display panel 1341 based on the type of touch event. Although in fig. 13, the touch panel 1331 and the display panel 1341 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1331 and the display panel 1341 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1300 may also include at least one sensor 1350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1341 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1341 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuit 1360, speaker 1361, and microphone 1362 may provide an audio interface between the user and the cell phone. The audio circuit 1360 may transmit the electrical signal converted from the received audio data to the speaker 1361, and the electrical signal is converted into a sound signal by the speaker 1361 and output; on the other hand, the microphone 1362 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 1360, and then outputs the audio data to the processor 1380 for processing, and then the audio data can be transmitted to another mobile phone through the RF circuit 1310, or the audio data can be output to the memory 1320 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1370, and provides wireless broadband internet access for the user. Although fig. 13 shows a WiFi module 1370, it is to be understood that it does not belong to the essential components of the handset 1300 and may be omitted as needed.
The processor 1380 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1320 and calling data stored in the memory 1320, thereby integrally monitoring the mobile phone. In one embodiment, processor 1380 may include one or more processing units. In one embodiment, the processor 1380 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1380.
The handset 1300 also includes a power supply 1390 (e.g., a battery) to supply power to the various components, which may preferably be logically connected to the processor 1380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In one embodiment, the cell phone 1300 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 1380 included in the electronic device implements the steps of the method for adjusting the image display preview frame rate of the electronic device described in the above examples when executing the computer program stored in the memory.
The embodiment of the application also provides a computer program product. A computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the method for adjusting the image display preview frame rate of an electronic device described in the embodiments above.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A method for adjusting an image display preview frame rate of an electronic device, the method comprising:
acquiring power consumption characteristics and heating characteristics of electronic equipment;
acquiring a power consumption heating state of the electronic equipment according to the power consumption characteristic and the heating characteristic;
adjusting the frame rate range of an image display preview frame rate of the electronic equipment according to the power consumption heating state and a preset rule; the preview frame rate is the frame rate of an output picture of the camera in a preview output mode;
the step of acquiring the power consumption and heat generation state of the electronic device according to the power consumption characteristic and the heat generation characteristic comprises:
if the electronic equipment is detected to simultaneously meet the following conditions, judging that the power consumption heating state of the electronic equipment is in a first state:
detecting that the electronic equipment is in an uncharged state, and judging that the electric quantity of the electronic equipment is greater than or equal to an electric quantity preset threshold value;
judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
otherwise, judging that the power consumption heating state of the electronic equipment is in a second state.
2. The method according to claim 1, wherein the step of obtaining the power consumption and heat generation state of the electronic device according to the power consumption characteristic and the heat generation characteristic comprises:
acquiring a power consumption level corresponding to the power consumption feature according to the power consumption feature;
acquiring a temperature level corresponding to the heating feature according to the heating feature;
and acquiring the power consumption heating state of the electronic equipment according to the power consumption level and the temperature level.
3. The method according to claim 1 or 2, wherein the step of adjusting the frame rate range of the image display preview frame rate of the electronic device according to the power consumption heating state according to a preset rule comprises:
acquiring a target frame rate range corresponding to the power consumption heating state according to the power consumption heating state;
and adjusting the frame rate range of the preview frame rate to the target frame rate range.
4. The method according to claim 1, wherein the step of obtaining the power consumption and heat generation state of the electronic device according to the power consumption characteristic and the heat generation characteristic comprises:
if the electronic equipment is detected to simultaneously meet the following conditions, judging that the power consumption heating state of the electronic equipment is in a first state:
detecting that the electronic device is in a charging state;
judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold;
judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
otherwise, judging that the power consumption heating state of the electronic equipment is in a second state.
5. The method according to claim 1 or 4, wherein the step of adjusting the frame rate range of the image display preview frame rate of the electronic device according to the power consumption heating state according to a preset rule comprises:
if the power consumption heating state of the electronic equipment is judged to be in the first state, the frame rate range of the preview frame rate is increased to a first target frame rate range;
and if the power consumption heating state of the electronic equipment is judged to be in the second state, reducing the frame rate range of the preview frame rate to a second target frame rate range.
6. The method according to claim 1 or 4, wherein the step of adjusting the frame rate range of the image display preview frame rate of the electronic device according to the power consumption heating state according to a preset rule comprises:
if the power consumption heating state of the electronic equipment is judged to be in the first state, the frame rate range of the preview frame rate is increased according to a first preset amplitude;
and if the power consumption heating state of the electronic equipment is judged to be in the second state, reducing the frame rate range of the preview frame rate according to a second preset amplitude.
7. An apparatus for adjusting a frame rate of image display preview of an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring the power consumption characteristics and the heating characteristics of the electronic equipment;
the second obtaining module is configured to determine that the power consumption heating state of the electronic device is in the first state if it is detected that the electronic device simultaneously satisfies the following conditions: detecting that the electronic equipment is in an uncharged state, and judging that the electric quantity of the electronic equipment is greater than or equal to an electric quantity preset threshold value; judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold; judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold; otherwise, judging that the power consumption heating state of the electronic equipment is in a second state;
the adjusting module is used for adjusting the frame rate range of the image display preview frame rate of the electronic equipment according to the power consumption heating state and a preset rule; and the preview frame rate is the frame rate of the output picture of the camera in the preview output mode.
8. The apparatus of claim 7, wherein the first obtaining module comprises:
the first acquisition unit is used for acquiring the power consumption level corresponding to the power consumption characteristic according to the power consumption characteristic;
the second acquisition unit is used for acquiring the temperature level corresponding to the heating characteristic according to the heating characteristic;
and the third acquisition unit is used for acquiring the power consumption heating state of the electronic equipment according to the power consumption level and the temperature level.
9. The apparatus of claim 7 or 8, wherein the adjustment module comprises:
a fourth obtaining unit, configured to obtain, according to the power consumption heating state, a target frame rate range corresponding to the power consumption heating state;
and the adjusting unit is used for adjusting the frame rate range of the preview frame rate to the target frame rate range.
10. The apparatus of claim 7, wherein the second obtaining module comprises:
the first state judgment unit is used for judging that the power consumption heating state of the electronic equipment is in a first state if the electronic equipment is detected to simultaneously meet the following conditions: detecting that the electronic device is in a charging state; the power consumption judging module is used for judging that the power consumption of the electronic equipment is less than or equal to a preset power consumption threshold; the temperature judging module is used for judging that the temperature of the electronic equipment is less than or equal to a preset temperature threshold;
and the second state judging unit is used for judging that the power consumption heating state of the electronic equipment is in a second state if the electronic equipment is judged not to be in the first state.
11. The apparatus of claim 7 or 10, wherein the adjustment module comprises:
a first lifting unit, configured to lift a frame rate range of the preview frame rate to a first target frame rate range if it is determined that a power consumption heating state of the electronic device is in the first state;
and the first reducing unit is used for reducing the frame rate range of the preview frame rate to a second target frame rate range if the power consumption heating state of the electronic equipment is judged to be in the second state.
12. The apparatus of claim 7 or 10, wherein the adjustment module comprises:
the second lifting unit is used for lifting the frame rate range of the preview frame rate according to a first preset amplitude if the power consumption heating state of the electronic equipment is judged to be in the first state;
and the second reducing module is used for reducing the frame rate range of the preview frame rate according to a second preset amplitude if the power consumption heating state of the electronic equipment is judged to be in the second state.
13. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the method of preview frame rate adjustment of any of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201711378701.9A 2017-12-19 2017-12-19 Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment Active CN108121524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711378701.9A CN108121524B (en) 2017-12-19 2017-12-19 Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711378701.9A CN108121524B (en) 2017-12-19 2017-12-19 Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN108121524A CN108121524A (en) 2018-06-05
CN108121524B true CN108121524B (en) 2021-05-11

Family

ID=62229548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711378701.9A Active CN108121524B (en) 2017-12-19 2017-12-19 Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN108121524B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958450A (en) * 2018-06-11 2018-12-07 江苏食品药品职业技术学院 Intelligence adjusts the computer of running frequency and power consumption
CN110874128B (en) * 2018-08-31 2021-03-30 上海瑾盛通信科技有限公司 Visualized data processing method and electronic equipment
CN110658904A (en) * 2019-09-19 2020-01-07 Oppo广东移动通信有限公司 Method and device for controlling terminal current, terminal and storage medium
CN111045816B (en) * 2019-11-06 2021-07-16 腾讯科技(深圳)有限公司 Performance optimization method and related device
CN114578941A (en) * 2020-12-01 2022-06-03 Oppo广东移动通信有限公司 Display method, display device, electronic equipment and storage medium
CN113301255B (en) * 2021-05-21 2022-12-02 上海富瀚微电子股份有限公司 Power consumption adjusting method and device and storage medium
CN114222084B (en) * 2021-12-01 2023-05-23 联想(北京)有限公司 Control method and device and electronic equipment
CN117911299A (en) * 2022-02-28 2024-04-19 荣耀终端有限公司 Video processing method and device
CN115150508B (en) * 2022-05-19 2023-10-24 东莞市步步高教育软件有限公司 Video call processing method, device, equipment and storage medium
CN116048217B (en) * 2022-08-29 2023-09-26 荣耀终端有限公司 Electronic equipment operation method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953037A (en) * 2005-10-21 2007-04-25 日本先锋公司 Display apparatus, display method, display system, server, and recording medium having program recorded thereon
CN103037099A (en) * 2012-12-20 2013-04-10 广东欧珀移动通信有限公司 Mobile phone photographing preview method and device
CN105259996A (en) * 2015-09-23 2016-01-20 努比亚技术有限公司 Temperature regulation device and method of mobile terminal
CN105975046A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Photographing preview method and device
CN106612458A (en) * 2015-10-27 2017-05-03 联发科技股份有限公司 Frame rate control method and image processing apparatus selectively limiting frame rate

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10510317B2 (en) * 2016-06-03 2019-12-17 Apple Inc. Controlling display performance with target presentation times

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953037A (en) * 2005-10-21 2007-04-25 日本先锋公司 Display apparatus, display method, display system, server, and recording medium having program recorded thereon
CN103037099A (en) * 2012-12-20 2013-04-10 广东欧珀移动通信有限公司 Mobile phone photographing preview method and device
CN105259996A (en) * 2015-09-23 2016-01-20 努比亚技术有限公司 Temperature regulation device and method of mobile terminal
CN106612458A (en) * 2015-10-27 2017-05-03 联发科技股份有限公司 Frame rate control method and image processing apparatus selectively limiting frame rate
CN105975046A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Photographing preview method and device

Also Published As

Publication number Publication date
CN108121524A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN108121524B (en) Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment
CN107357385B (en) Method for controlling temperature based on frequency, terminal and computer readable storage medium
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN108594120B (en) Battery state detection method and device and computer readable storage medium
CN111343682B (en) Network switching method, device, storage medium and terminal
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
WO2018049971A1 (en) Hotspot network switching method and terminals
CN108121681B (en) Hot plug implementation method, terminal and storage medium
WO2018049970A1 (en) Hotspot network switching method and terminal
CN110874128B (en) Visualized data processing method and electronic equipment
EP3550822A1 (en) Camera control method and terminal
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN107015611B (en) Context assisted thermal management mechanism in portable devices
JP2020509470A (en) Method, apparatus and non-volatile computer readable medium for image synthesis
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN108366171B (en) Temperature rise control method and mobile terminal
CN106454953B (en) Flow control method, device and terminal
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111968595B (en) Electrochromic control device and mobile terminal
EP4123574A1 (en) Image fusion method and apparatus, storage medium and mobile terminal
CN114265495A (en) Application program processing method, intelligent terminal and storage medium
CN110767950B (en) Charging method, charging device, terminal equipment and computer readable storage medium
CN112867171A (en) WIFI connection method and device, storage medium and mobile terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant