Content adaptive backlight control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a content adaptive backlight control method and electronic equipment.
Background
Electronic equipment such as mobile phones and tablet computers are widely applied to daily life of people, in order to improve user experience and meet requirements of users on cruising ability, designers design various power saving schemes for the electronic equipment on the premise of not influencing normal use functions of the equipment, and a content self-adaptive backlight control function is just one of the power saving schemes of the equipment. In the existing equipment, a content self-adaptive backlight control function is realized through a content analysis circuit preset in a screen module. However, the inventors found that at least the following problems exist in the prior art: the existing scheme realizes the function through the screen module, namely the function can be realized only by the support of the screen chip, the processing capacity of the screen chip is increased, and if a developer needs to change the relevant parameters of the content self-adaptive backlight control, the developer needs to contact a screen manufacturer to change the parameters of the screen module, which is very troublesome.
Disclosure of Invention
An object of embodiments of the present invention is to provide a content adaptive backlight control method and an electronic device, so that the device achieves the purpose of reducing backlight power consumption, and meanwhile, a screen does not need hardware to support content adaptive backlight control, thereby improving the efficiency of content adaptive backlight control and reducing energy consumption.
In order to solve the above technical problem, an embodiment of the present invention provides a content adaptive backlight control method, which is applied to an FPGA chip of an electronic device; the content adaptive backlight control method includes: acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data; increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data; and outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to reduce the backlight brightness by a second preset amplitude by the backlight controller.
An embodiment of the present invention also provides an electronic device, including: at least one processor; the FPGA chip is in communication connection with the at least one processor, and the screen is in communication connection with the at least one processor; the FPGA chip is internally burned with an instruction which can be executed by the FPGA chip, so that the FPGA chip can execute the content adaptive backlight control method.
Compared with the prior art, the embodiment of the invention provides a content self-adaptive backlight control method applied to an FPGA chip of electronic equipment, which comprises the steps of acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data; increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data; outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to enable the backlight controller to reduce the backlight brightness by a second preset amplitude; the embodiment of the invention increases the image brightness through the FPGA chip and controls the backlight controller to reduce the backlight brightness, so that the aim of reducing the backlight power consumption is fulfilled, meanwhile, the image display effect of the second pixel data displayed by the display screen is similar to the image display effect of the first pixel data, and the FPGA chip can independently realize the content self-adaptive backlight control function without being supported by screen hardware, so that developers can flexibly select the required screen model; in the embodiment of the invention, because the content self-adaptive backlight control is realized through the FPGA chip, namely the function is realized through hardware, compared with the prior art that the function is realized through a screen chip, the efficiency is higher and the energy consumption is lower.
In addition, before increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data, the method further includes: judging whether the picture brightness of the first pixel data is greater than the preset brightness value; and if the picture brightness of the first pixel data is judged to be greater than the preset brightness value, the picture brightness of the first pixel data is increased by a first preset amplitude to obtain second pixel data. In this embodiment, when the image brightness of the first pixel data is determined to be greater than the preset brightness value, the image brightness of the first pixel data is increased to obtain the second pixel data, that is, the image brightness of the first pixel data corresponding to the image brightness lower than the preset brightness value is not increased, so that the display effect of the display screen is improved while the backlight power consumption of the device is reduced.
In addition, before the obtaining the first pixel data from the processor, the method further comprises: a backlight control signal is detected. In this embodiment, only after the backlight control signal is detected, the content adaptive backlight control function is turned on, so that the user may turn on the function as needed, or the electronic device may turn on the function intelligently according to the power remaining state of the device.
In addition, the backlight control signal is detected, specifically: and generating the backlight control signal when detecting that the residual electric quantity of the electronic equipment is smaller than a preset threshold value. In this embodiment, a generation manner of the backlight control signal is provided, that is, when the remaining power is less than the preset threshold, the content adaptive backlight control function is automatically turned on to save the power.
In addition, calculating the corresponding picture brightness according to the first pixel data specifically comprises: the picture luminance Y, Y0.2999R +0.587G +0.114B is calculated according to the following formula. In this embodiment, a specific calculation method of the picture brightness is provided.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flow chart of a content adaptive backlight control method according to a first embodiment;
FIG. 2 is a flow chart of a content adaptive backlight control method according to a second embodiment;
FIG. 3 is a flow chart of a content adaptive backlight control method according to a third embodiment;
fig. 4 is a flowchart of a content adaptive backlight control method according to a fourth embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a content adaptive backlight control method, which is applied to an FPGA chip of an electronic device, and as shown in fig. 1, the content adaptive backlight control method includes:
101, acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data.
In this embodiment, an electronic device such as a mobile phone is provided with an FPGA chip in advance; and the first pixel data acquired by the FPGA is designed to be valid pixel data, wherein other types of data such as clock data and the like are not included.
And 102, increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data.
And 103, outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to enable the backlight controller to reduce the backlight brightness by a second preset amplitude.
In this embodiment, after receiving the second pixel data, the screen displays a picture corresponding to the second pixel data. And after receiving the adjusting signal, the backlight controller detects the current backlight brightness and reduces the current backlight brightness by a second preset amplitude.
Compared with the prior art, the embodiment of the invention provides a content adaptive backlight control method applied to an FPGA chip of electronic equipment, which comprises the steps of acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data; increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data; outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to enable the backlight controller to reduce the backlight brightness by a second preset amplitude; the embodiment of the invention increases the image brightness through the FPGA chip and controls the backlight controller to reduce the backlight brightness, so that the aim of reducing the backlight power consumption is fulfilled, meanwhile, the image display effect of the second pixel data displayed by the display screen is similar to the image display effect of the first pixel data, and the FPGA chip can independently realize the content self-adaptive backlight control function without being supported by screen hardware, so that developers can flexibly select the required screen model; according to the embodiment of the invention, because the content self-adaptive backlight control is realized through the FPGA chip, developers can add the module according to the function requirement of the equipment, a mode that a screen module and the function module are bound together in the prior art is replaced, and because the FPGA chip is a combination of gate circuits, the operation is actually carried out through a circuit, compared with the mode that the function is realized through the screen chip in the prior art, the efficiency is higher, and the energy consumption is lower.
The following describes implementation details of the content adaptive backlight control method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary for implementing the present embodiment.
In one example, calculating the corresponding picture brightness according to the first pixel data specifically includes: the picture brightness Y is calculated according to the following formula, wherein Y is 0.2999R +0.587G +0.114B, the method is simple, and the calculation time is short. However, this embodiment is only an exemplary illustration, and the present embodiment does not limit the way of calculating the brightness of the picture.
In one example, the first preset range and the second preset range are preset by a developer according to the performance of the screen module, the first preset range is 20% -33% of the picture brightness of the first pixel data, for example, 1/3, and since the FPGA chip has the characteristic of being convenient for customization, the developer can change the chip logic algorithm quickly, conveniently and massively according to the module display effect, and the parameter change is convenient compared with the prior art. However, the present embodiment is not limited to this, and the specific value of the first/second predetermined range is not limited in any way.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A second embodiment of the present invention relates to a content adaptive backlight control method. The second embodiment is an improvement on the first embodiment, and the main improvement lies in that: in the second embodiment of the present invention, the FPGA chip only processes the first pixel data with the picture brightness greater than the preset brightness value to obtain the second pixel data.
Fig. 2 shows a content adaptive backlight control method in this embodiment, where 201, 203, and 204 in this embodiment are the same as 101-103 in the first embodiment, which is not described herein again, and the following 202 is added in this embodiment:
202, judging whether the picture brightness of the first pixel data is greater than a preset brightness value; if so, executing 203, otherwise, ending directly.
In this embodiment, the preset brightness value is set by a developer through a pre-test, and when the first pixel data corresponding to the picture brightness higher than the preset brightness value is processed to obtain the corresponding second pixel data, the display effect of the first pixel data displayed by the display screen is similar to the display effect of the second pixel data. When the first pixel data corresponding to the picture brightness lower than the preset brightness value is processed to obtain the corresponding second pixel data, the display effect of the first pixel data displayed by the display screen is different from the display effect of the second pixel data.
Compared with the first implementation manner, in the embodiment of the present invention, when the picture brightness of the first pixel data is determined to be greater than the preset brightness value, the picture brightness of the first pixel data is increased to obtain the second pixel data, that is, the picture brightness increase processing is not performed on the first pixel data corresponding to the picture brightness lower than the preset brightness value, so that the display effect of the display screen is improved while the device achieves the purpose of reducing the backlight power consumption.
A third embodiment of the present invention relates to a content adaptive backlight control method. The third embodiment is improved on the basis of the second embodiment, and the main improvement lies in that: in the third embodiment of the present invention, the function of content adaptive backlight control is turned on only after the backlight control signal is detected.
The content adaptive backlight control method of the present embodiment is shown in fig. 3, where 302-305 of the present embodiment is the same as 201-204 of the first embodiment, and is not described herein again, and the following 301 is added to the present embodiment:
301, whether a backlight control signal is detected; if so, 302 is performed, otherwise 301 is continued.
In one example, a user can start the function by operating a preset function button, so that the FPGA chip detects a backlight control signal; however, the present embodiment is not limited thereto, and the detection method of the backlight control signal is not limited thereto.
In one example, whether the remaining power of the electronic device is smaller than a preset threshold is detected, and when the remaining power is smaller than the preset threshold, a backlight control signal is generated, that is, the FPGA chip detects the backlight control signal; the preset threshold is, for example, 15% (but not limited thereto). However, the present embodiment is not limited thereto, and the detection method of the backlight control signal is not limited thereto.
In fact, the present embodiment may be a modification of the first embodiment.
Compared with the second embodiment, the embodiment of the present invention turns on the content adaptive backlight control function only after detecting the backlight control signal, so that the user can turn on the function as needed, or the electronic device can turn on the function intelligently according to the remaining power state of the device.
A fourth embodiment of the present invention relates to a content adaptive backlight control method. The fourth embodiment is improved on the basis of the third embodiment, and the main improvement lies in that: in a fourth embodiment of the present invention, a method for calculating the brightness of a picture is provided.
In an example, the content adaptive backlight control method of this embodiment is shown in fig. 4, where 401, 403 and 405 in this embodiment are the same as 301, 303 and 305 in the third embodiment, which is not described herein again, and 402 in this embodiment is as follows:
402, first pixel data is obtained from a processor, and a corresponding gray value is calculated according to the first pixel data.
In an example, RGB of each single pixel in the first pixel data is calculated, and then an average value of RGB of all the single pixels is calculated as a corresponding gray-level value of the first pixel data, which is merely an exemplary illustration, and the present embodiment does not set any limit to the calculation manner of the gray-level value.
In another example, RGB of each individual pixel in the first pixel data is calculated, then pixels larger than a preset RGB value are acquired, and an average RGB value of the acquired pixels is used as the first pixel data to calculate a corresponding gray value; however, the present embodiment is not limited to this, and the calculation method of the gray scale value is not limited in any way.
403, determining whether the gray value of the first pixel data is greater than a preset gray value; if so, 504 is performed, otherwise, the process is ended directly.
In this embodiment, the preset gray-level value is set in a manner similar to the preset brightness in the second embodiment, and is not described herein again.
And 404, increasing the gray value of the first pixel data by a first preset amplitude to obtain second pixel data.
In fact, this embodiment may also be a modification of the first or second embodiment.
Compared with the third embodiment, the embodiment of the invention provides a mode of increasing the brightness of the picture, namely, the adjustment of the brightness of the picture is realized by increasing the gray-scale value.
A fifth embodiment of the present invention relates to an electronic apparatus including: at least one processor; the FPGA chip is in communication connection with the at least one processor, and the screen is in communication connection with the at least one processor; the FPGA chip is programmed with a command executable by the FPGA chip, so that the FPGA chip can execute the content adaptive backlight control method according to any one of the first to fourth embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Compared with the prior art, the embodiment of the invention provides an electronic device, which can apply the content adaptive backlight control method provided by the embodiment of the invention, and the method comprises the steps of acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data; increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data; outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to enable the backlight controller to reduce the backlight brightness by a second preset amplitude; the embodiment of the invention increases the image brightness through the FPGA chip and controls the backlight controller to reduce the backlight brightness, so that the aim of reducing the backlight power consumption is fulfilled, meanwhile, the image display effect of the second pixel data displayed by the display screen is similar to the image display effect of the first pixel data, and the FPGA chip can independently realize the content self-adaptive backlight control function without being supported by screen hardware, so that developers can flexibly select the required screen model; in the embodiment of the invention, because the content self-adaptive backlight control is realized through the FPGA chip, namely the function is realized through hardware, compared with the prior art that the function is realized through a screen chip, the efficiency is higher and the energy consumption is lower.
In one example, the backlight controller is a screen chip, a processor, or a power management chip in the electronic device. However, the present embodiment is not limited thereto, and the type of the backlight controller is not limited thereto.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the content adaptive backlight control method of any one of the first to fourth embodiments.
Compared with the prior art, the embodiment of the invention provides a content adaptive backlight control method applied to an FPGA chip of an electronic device, which comprises the steps of acquiring first pixel data from a processor, and calculating corresponding picture brightness according to the first pixel data; increasing the picture brightness of the first pixel data by a first preset amplitude to obtain second pixel data; outputting the second pixel data to a screen, and sending an adjusting signal to a backlight controller to enable the backlight controller to reduce the backlight brightness by a second preset amplitude; the embodiment of the invention increases the image brightness through the FPGA chip and controls the backlight controller to reduce the backlight brightness, so that the aim of reducing the backlight power consumption is fulfilled, meanwhile, the image display effect of the second pixel data displayed by the display screen is similar to the image display effect of the first pixel data, and the FPGA chip can independently realize the content self-adaptive backlight control function without being supported by screen hardware, so that developers can flexibly select the required screen model; in the embodiment of the invention, because the content self-adaptive backlight control is realized through the FPGA chip, namely the function is realized through hardware, compared with the prior art that the function is realized through a screen chip, the efficiency is higher and the energy consumption is lower.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.