CN109947230A - Screen brightness adjusting method and device of terminal equipment and terminal equipment - Google Patents
Screen brightness adjusting method and device of terminal equipment and terminal equipment Download PDFInfo
- Publication number
- CN109947230A CN109947230A CN201910250239.7A CN201910250239A CN109947230A CN 109947230 A CN109947230 A CN 109947230A CN 201910250239 A CN201910250239 A CN 201910250239A CN 109947230 A CN109947230 A CN 109947230A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- screen
- image buffer
- ambient light
- light intensity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 239000000872 buffer Substances 0.000 claims abstract description 79
- 238000004590 computer program Methods 0.000 claims description 21
- 230000009711 regulatory function Effects 0.000 claims description 13
- 239000012536 storage buffer Substances 0.000 claims description 9
- 230000001105 regulatory effect Effects 0.000 claims description 7
- 230000002035 prolonged effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000005611 electricity Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention is suitable for the technical field of terminal equipment, and provides a screen brightness adjusting method and device of the terminal equipment and the terminal equipment, wherein when the screen brightness of the terminal equipment needs to be adjusted, an image cache Buffer of the terminal equipment is obtained, the RGB channel value of each pixel point of the image Buffer is adjusted according to a preset adjusting proportion, and the image Buffer with the RGB value adjusted by each pixel point is output to the screen end of the terminal equipment, so that the adjustment of the screen brightness of the terminal equipment is realized; according to the embodiment of the invention, the screen brightness is adjusted by adjusting the RGB value of each pixel point of the acquired image Buffer of the terminal equipment, so that the screen backlight is not required to be controlled to adjust the screen brightness, the power consumption of the screen is not increased, the power consumption of the terminal equipment is reduced, the cruising ability of the terminal equipment is ensured, the service life of a battery is prolonged, and the user experience is better.
Description
Technical field
The invention belongs to terminal device technical field more particularly to a kind of screen luminance adjustment methods of terminal device, dress
It sets and terminal device.
Background technique
The mobile terminals such as current terminal device such as smart phone, Ipad are all built-in with light sensor substantially, with logical
Most of cross the intensity of light sensor detection environment light to adjust the brightness of mobile phone screen, and adjust the brightness of mobile phone screen
It is that screen intensity size is adjusted by control screen backlight.
However, since the component of most power consumption in terminal device is typically all screen, if screen is in most light for a long time
Degree, the then power consumption that will lead to terminal device increase, to reduce the cruising ability of terminal device, long-time service will reduce electricity
The service life in pond.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of screen luminance adjustment method of terminal device, device and terminals
Equipment, it is big to adjust the power consumption that screen intensity size still has by control screen backlight to solve existing terminal device, it is difficult
The problem of cruising ability to guarantee terminal device.
The first aspect of the embodiment of the present invention provides a kind of screen luminance adjustment method of terminal device, comprising:
When needing that the screen intensity of the terminal device is adjusted, the image buffer storage of the terminal device is obtained
Buffer;
According to default adjusting ratio, the RGB channel value of each pixel of described image Buffer is adjusted;
Image Buffer after the rgb value of each pixel is adjusted is exported to the screen end of the terminal device, is realized
Adjusting to the screen intensity of the terminal device.
The second aspect of the embodiment of the present invention provides a kind of screen brightness regulating device of terminal device, comprising:
Image Buffer acquiring unit, for obtaining when needing that the screen intensity of the terminal device is adjusted
The image buffer storage Buffer of the terminal device;
RGB channel value adjusts unit, for according to default adjusting ratio, to each pixel of described image Buffer
RGB channel value is adjusted;
Image Buffer output unit is exported for the image Buffer after adjusting the rgb value of each pixel to institute
The screen end of terminal device is stated, realizes the adjusting to the screen intensity of the terminal device.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
Memory, processor and storage are in the memory and the computer journey that can run on the processor
Sequence, wherein the terminal for realizing that the first aspect of the embodiment of the present invention provides when the processor executes the computer program is set
The step of standby screen luminance adjustment method.
Wherein, the computer program includes:
Image Buffer acquiring unit, for obtaining when needing that the screen intensity of the terminal device is adjusted
The image buffer storage Buffer of the terminal device;
RGB channel value adjusts unit, for according to default adjusting ratio, to each pixel of described image Buffer
RGB channel value is adjusted;
Image Buffer output unit is exported for the image Buffer after adjusting the rgb value of each pixel to institute
The screen end of terminal device is stated, realizes the adjusting to the screen intensity of the terminal device.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, wherein the first of the embodiment of the present invention is realized when the computer program is executed by processor
The step of screen luminance adjustment method for the terminal device that aspect provides.
Wherein, the computer program includes:
Image Buffer acquiring unit, for obtaining when needing that the screen intensity of the terminal device is adjusted
The image buffer storage Buffer of the terminal device;
RGB channel value adjusts unit, for according to default adjusting ratio, to each pixel of described image Buffer
RGB channel value is adjusted;
Image Buffer output unit is exported for the image Buffer after adjusting the rgb value of each pixel to institute
The screen end of terminal device is stated, realizes the adjusting to the screen intensity of the terminal device.
Existing beneficial effect is the embodiment of the present invention compared with prior art: by working as the screen needed to terminal device
When brightness is adjusted, the image buffer storage Buffer of terminal device is obtained, according to default adjusting ratio, to the every of image Buffer
The RGB channel value of a pixel is adjusted, and the image Buffer after the rgb value of each pixel is adjusted, which is exported to terminal, to be set
The adjusting to the screen intensity of terminal device is realized at standby screen end;The embodiment of the present invention is logical to adjust acquired terminal device
The rgb value of each pixel of image Buffer realize the adjusting to screen intensity, to no longer need to control screen back
Light adjusts the size of screen intensity, would not also increase the power consumption of screen, thus realize the power consumption for reducing terminal device,
Guarantee the cruising ability of terminal device and improve the service life of battery, so that user experience is more preferable.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the screen luminance adjustment method of terminal device provided in an embodiment of the present invention;
Fig. 2 is a kind of the specific of method for determining the need for that screen intensity is adjusted provided in an embodiment of the present invention
Implementation flow chart;
Fig. 3 is the tool that another kind provided in an embodiment of the present invention determines the need for the method that screen intensity is adjusted
Body implementation flow chart;
Fig. 4 is a kind of schematic diagram of the screen brightness regulating device of terminal device provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, system, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.Referring to FIG. 1,
Fig. 1 shows a kind of implementation process of the screen luminance adjustment method of terminal device provided in an embodiment of the present invention, and details are as follows:
In step s101, it when needing that the screen intensity of the terminal device is adjusted, obtains the terminal and sets
Standby image Buffer.
In embodiments of the present invention, when needing the screen intensity to terminal device to be adjusted, for example ambient light intensity is big
When default light intensity value or user manually adjust the screen intensity of terminal device, the image Buffer of terminal device is obtained,
Image Buffer includes the image Buffer of the current display interface of terminal device.
Optionally, above-mentioned image Buffer includes at least two image Buffer, which is adjacent
Two field pictures Buffer.
Optionally, referring to FIG. 2, Fig. 2 shows one kind provided in an embodiment of the present invention determine the need for it is bright to screen
The specific implementation flow for the method being adjusted is spent, details are as follows:
In step s 201, by light sensor, the ambient light intensity of the terminal device is obtained.
In embodiments of the present invention, light sensor is equipped in terminal device, it is referred herein for obtaining ambient light intensity
Ambient light intensity be terminal device ambient enviroment luminous intensity, for example ambient light intensity acquired in daytime is greater than evening institute
The ambient light intensity of acquisition.
As an embodiment of the present invention, since ambient light intensity changes less within a certain period of time, step
S201 specifically:
By light sensor, it is spaced the ambient light intensity that preset time obtains the terminal device.
In step S202, by the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained with
Preset threshold is compared.
In embodiments of the present invention, it by calculating the difference of the ambient light intensity obtained twice recently, and will be calculated
The absolute value of difference be compared with preset threshold with whether the ambient light intensity for judging terminal device is changed.
In step S203, determine whether the ambient light intensity of the terminal device is changed according to comparison result.
In embodiments of the present invention, comparison result includes the first comparison result and the second comparison result, wherein first compares
As a result are as follows: the absolute value of the difference of ambient light intensity and the last ambient light intensity obtained is greater than preset threshold;Second compares
As a result the absolute value for the difference of ambient light intensity and the last ambient light intensity obtained is less than or equal to preset threshold, this
When, step S203 specifically:
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is greater than preset threshold,
Determine that the ambient light intensity of the terminal device is changed;
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is less than or equal to default
Threshold value, it is determined that the ambient light intensity of the terminal device does not change.
In step S204, if the ambient light intensity of the terminal device is changed, it is determined that need to the end
The screen intensity of end equipment is adjusted.
It in embodiments of the present invention, cannot root since the brightness value of the screen backlight of terminal device does not change
It determines the need for that the screen intensity of terminal device is adjusted according to the brightness value of screen backlight, the embodiment of the present invention passes through
Judge whether the ambient light intensity of terminal device is changed to determine the need for the screen intensity progress to terminal device
It adjusts, particular by the absolute value of the difference for the ambient light intensity for obtaining current acquired ambient light intensity and last time
With the comparison result of preset threshold, the screen intensity to determine the need for terminal device is adjusted.
Optionally, after step S203, further includes:
If the ambient light intensity of the terminal device does not change, it is determined that do not need the screen to the terminal device
Brightness is adjusted.
Optionally, referring to FIG. 3, Fig. 3 shows another kind provided in an embodiment of the present invention determines the need for screen
The specific implementation flow for the method that brightness is adjusted, details are as follows:
In step S301, when the screen of the terminal device is in illuminating state, detect whether to receive user defeated
The screen intensity regulating command entered.
In step s 302, if receiving the screen intensity regulating command of user's input, it is determined that need to screen intensity
It is adjusted.
Optionally, after step S302, further includes:
In step S303, the screen intensity regulating command is parsed, screen intensity adjustment factor is obtained;
In step S304, according to the screen intensity adjustment factor, to the RGB of each pixel of described image Buffer
Channel value is adjusted.
In embodiments of the present invention, screen intensity adjustment factor is the luminance bar on screen intensity regulatory function button, no
Luminance bar with length corresponds to different screen intensity adjustment factors, and gradually increases from left to right from screen intensity adjustment factor
Greatly, i.e., luminance bar more leans on the right, and screen intensity adjustment factor is bigger, and screen is brighter.
In step s 102, according to default adjusting ratio, to the RGB channel value of each pixel of described image Buffer
It is adjusted.
In embodiments of the present invention, it when determination needs that the screen intensity of terminal device is adjusted, does not adjust directly
The screen back light value of terminal device is saved, i.e. the screen back light value of holding terminal device is constant, adjusts according to preset ratio
The RGB channel value of each pixel in image Buffer is saved, so that the brightness of each pixel enhances, to reach adjusting eventually
The purpose of the screen intensity of end equipment.
Herein, presetting adjusting ratio is one or more ratio values by repeatedly testing, different channel values
Corresponding identical ratio value or different channel values correspond to different ratio values.
Optionally, step S102 specifically:
According to corresponding default adjusting ratio, respectively to the RGB channel value of each pixel of described image Buffer into
Row is adjusted.
In embodiments of the present invention, in the image processing arts, each pixel is by tri- Color Channel tables of RGB
Show, range 0-255, respectively represent red, green, blue, the corresponding value of tri- Color Channels of RGB is known as RGB by the embodiment of the present invention
Channel value comprising the channel value of the channel value in the channel R, the channel value of channel B and the channel G, the range of the channel value be [0,
255]。
Herein, the brightness of pixel is adjusted by three channel values that adjustable range is [0,255], to reach increasing
The purpose of the brightness of strong image Buffer.
Optionally, step S102 is specifically included:
Determine whether the ambient light intensity currently obtained is greater than the ambient light intensity of last acquisition;
If the ambient light intensity currently obtained is greater than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer is adjusted up to increase the brightness of described image Buffer
Value;
If the ambient light intensity currently obtained is less than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer adjust downwards to reduce the brightness of described image Buffer
Value.
In embodiments of the present invention, by determining whether the ambient light intensity currently obtained is greater than the environment of last acquisition
Luminous intensity, to determine that the RGB channel value to each pixel of image Buffer is adjusted or is adjusted up downwards, from
And achieve the purpose that the screen intensity for adjusting terminal device.
Optionally, since degree of concern of the human eye to different location in image is different, it can only adjust human eye and pay close attention to the most
Image-region, that is, specific region partial pixel point RGB channel value, i.e. step S102 specifically:
According to default adjusting ratio, to the RGB channel value of each pixel in the specific region of described image Buffer
It is adjusted.
In step s 103, the image Buffer after the RGB channel value of each pixel being adjusted is exported to the terminal
The screen end of equipment.
In embodiments of the present invention, the image Buffer after each RGB channel value being adjusted is as terminal device
Screen output, since the brightness of image Buffer increases, so that the brightness at interface shown by terminal device is also accordingly sent out
Variation has been given birth to, has achieved the purpose that screen intensity is adjusted.
As an embodiment of the present invention, the screen backlight of terminal device is protected during carrying out screen intensity adjusting
Hold constant, and its corresponding backlight value is minimum backlight value, so that electricity consumed by the screen of terminal device keeps minimum
It is worth and constant,
Optionally, before step S101, further includes:
When the screen for determining the terminal device is lighted, the screen intensity regulatory function of the terminal device is opened.
In embodiments of the present invention, only when the screen of terminal device is lighted, the image of terminal device is just obtained
Buffer realizes that the screen intensity to terminal device automatically adjusts.
Herein, the switch button that screen intensity is adjusted is provided on the screen of terminal device, so that user can pass through
Button selection is turned on or off screen intensity regulatory function.After opening screen intensity regulatory function, can in real time according to
Default adjusting ratio, is adjusted the RGB channel parameter of each pixel of acquired image Buffer, realizes to described
The adjusting of the screen intensity of terminal device can also be spaced some cycles according to default adjusting ratio, to acquired multiple figures
As the RGB channel parameter of each pixel of Buffer is adjusted, the adjusting to the screen intensity of the terminal device is realized.
It is understood that the unlatching of screen intensity regulatory function, which has no effect on user, manually adjusts screen intensity.Work as pass
After closing screen intensity regulatory function, terminal device is not to determine further according to ambient light intensity and the comparison result of default luminous intensity
The screen intensity of the terminal device is adjusted in no needs.
In embodiments of the present invention, it is set by when needing the screen intensity to terminal device to be adjusted, obtaining terminal
Standby image buffer storage Buffer adjusts the RGB channel value of each pixel of image Buffer according to default adjusting ratio
Section, the image Buffer after the rgb value of each pixel is adjusted are exported to the screen end of terminal device, are realized to terminal device
Screen intensity adjusting;Each pixel of the logical image Buffer for adjusting acquired terminal device of the embodiment of the present invention
Rgb value realizes the adjusting to screen intensity, to no longer need to control size of the screen backlight to adjust screen intensity, also
It not will increase the power consumption of screen, to realize the power consumption for reducing terminal device, guarantee the cruising ability of terminal device and mention
The high service life of battery, so that user experience is more preferable.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence Ying Yiqi function and internal logic control, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to a kind of screen luminance adjustment method of terminal device described in foregoing embodiments, Fig. 4 shows the present invention
A kind of schematic diagram of the screen brightness regulating device for terminal device that embodiment provides illustrates only and this for ease of description
The relevant part of inventive embodiments.
Referring to Fig. 4, which includes:
Image Buffer acquiring unit 41, for obtaining when needing that the screen intensity of the terminal device is adjusted
Take the image buffer storage Buffer of the terminal device;
RGB channel value adjusts unit 42, is used for according to default adjusting ratio, to each pixel of described image Buffer
RGB channel value be adjusted;
Image Buffer output unit 43, for the image Buffer after adjusting the rgb value of each pixel export to
The adjusting to the screen intensity of the terminal device is realized at the screen end of the terminal device.
Optionally, described device further include:
Screen intensity regulatory function opening unit, for when the screen for determining the terminal device is lighted, described in unlatching
The screen intensity regulatory function of terminal device.
Optionally, described device further include:
Ambient light intensity acquiring unit, for obtaining the ambient light intensity of the terminal device by light sensor;
Luminous intensity comparing unit, for by the ambient light intensity with last time obtain ambient light intensity difference it is exhausted
Value is compared with preset threshold;
Intensity variation determination unit, for determining whether the ambient light intensity of the terminal device is sent out according to comparison result
Variation is given birth to;
Screen intensity adjusts determination unit, if the ambient light intensity for the terminal device is changed, it is determined that
The screen intensity to the terminal device is needed to be adjusted.
Optionally, the intensity variation determination unit is specifically used for:
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is greater than preset threshold,
Determine that the ambient light intensity of the terminal device is changed;
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is less than or equal to default
Threshold value, it is determined that the ambient light intensity of the terminal device does not change.
Optionally, the RGB channel value adjusts unit 42 and is specifically used for:
Determine whether the ambient light intensity currently obtained is greater than the ambient light intensity of last acquisition;
If the ambient light intensity currently obtained is greater than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer is adjusted up to increase the brightness of described image Buffer
Value;
If the ambient light intensity currently obtained is less than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer adjust downwards to reduce the brightness of described image Buffer
Value.
Optionally, the RGB channel value adjusts unit 42 and is specifically used for:
According to default adjusting ratio, to the RGB channel value of each pixel in the specific region of described image Buffer
It is adjusted.
In embodiments of the present invention, it is set by when needing the screen intensity to terminal device to be adjusted, obtaining terminal
Standby image buffer storage Buffer adjusts the RGB channel value of each pixel of image Buffer according to default adjusting ratio
Section, the image Buffer after the rgb value of each pixel is adjusted are exported to the screen end of terminal device, are realized to terminal device
Screen intensity adjusting;Each pixel of the logical image Buffer for adjusting acquired terminal device of the embodiment of the present invention
Rgb value realizes the adjusting to screen intensity, to no longer need to control size of the screen backlight to adjust screen intensity, also
It not will increase the power consumption of screen, to realize the power consumption for reducing terminal device, guarantee the cruising ability of terminal device and mention
The high service life of battery, so that user experience is more preferable.
Fig. 5 is a kind of schematic diagram for terminal device that one embodiment of the invention provides.As shown in figure 5, the end of the embodiment
End equipment 5 includes: processor 50, memory 51 and is stored in the memory 51 and can run on the processor 50
Computer program 52.The processor 50 realizes that the screen of above-mentioned each terminal device is bright when executing the computer program 52
The step in adjusting method embodiment, such as step 101 shown in FIG. 1 are spent to 103.Alternatively, the processor 50 execute it is described
The function of each unit in above-mentioned each system embodiment, such as the function of module 41 to 43 shown in Fig. 4 are realized when computer program 52.
Illustratively, the computer program 52 can be divided into one or more units, one or more of
Unit is stored in the memory 51, and is executed by the processor 50, to complete the present invention.One or more of lists
Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 52 in the terminal device 5.It is obtained for example, the computer program 52 can be divided into image Buffer
Unit 41, RGB channel value is taken to adjust unit 42, image Buffer output unit 43, each unit concrete function is as follows:
Image Buffer acquiring unit 41, for obtaining when needing that the screen intensity of the terminal device is adjusted
Take the image buffer storage Buffer of the terminal device;
RGB channel value adjusts unit 42, is used for according to default adjusting ratio, to each pixel of described image Buffer
RGB channel value be adjusted;
Image Buffer output unit 43, for the image Buffer after adjusting the rgb value of each pixel export to
The adjusting to the screen intensity of the terminal device is realized at the screen end of the terminal device.
Optionally, described device further include:
Screen intensity regulatory function opening unit, for when the screen for determining the terminal device is lighted, described in unlatching
The screen intensity regulatory function of terminal device.
Optionally, described device further include:
Ambient light intensity acquiring unit, for obtaining the ambient light intensity of the terminal device by light sensor;
Luminous intensity comparing unit, for by the ambient light intensity with last time obtain ambient light intensity difference it is exhausted
Value is compared with preset threshold;
Intensity variation determination unit, for determining whether the ambient light intensity of the terminal device is sent out according to comparison result
Variation is given birth to;
Screen intensity adjusts determination unit, if the ambient light intensity for the terminal device is changed, it is determined that
The screen intensity to the terminal device is needed to be adjusted.
Optionally, the intensity variation determination unit is specifically used for:
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is greater than preset threshold,
Determine that the ambient light intensity of the terminal device is changed;
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is less than or equal to default
Threshold value, it is determined that the ambient light intensity of the terminal device does not change.
Optionally, the RGB channel value adjusts unit 42 and is specifically used for:
Determine whether the ambient light intensity currently obtained is greater than the ambient light intensity of last acquisition;
If the ambient light intensity currently obtained is greater than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer is adjusted up to increase the brightness of described image Buffer
Value;
If the ambient light intensity currently obtained is less than the last ambient light intensity obtained, according to default adjusting ratio,
The RGB channel value of each pixel of described image Buffer adjust downwards to reduce the brightness of described image Buffer
Value.
Optionally, the RGB channel value adjusts unit 42 and is specifically used for:
According to default adjusting ratio, to the RGB channel value of each pixel in the specific region of described image Buffer
It is adjusted.
The terminal device 5 can be the terminal devices such as desktop PC, notebook, server, mainframe computer,
It can be the mobile devices such as smart phone, smartwatch, plate.The terminal device 5 may include, but be not limited only to, processor
50, memory 51.It will be understood by those skilled in the art that Fig. 5 is only the example of terminal device 5, structure paired terminal is not set
Standby 5 restriction may include components more more or fewer than diagram, perhaps combine certain components or different components, such as
The terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal other
Program and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the system is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system/terminal device and method, it can be with
It realizes by another way.For example, system described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, system
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or system, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of screen luminance adjustment method of terminal device, which is characterized in that the described method includes:
When needing that the screen intensity of the terminal device is adjusted, the image buffer storage of the terminal device is obtained
Buffer;
According to default adjusting ratio, the RGB channel value of each pixel of described image Buffer is adjusted;
Image Buffer after the rgb value of each pixel is adjusted is exported to the screen end of the terminal device, is realized to institute
State the adjusting of the screen intensity of terminal device.
2. the method as described in claim 1, which is characterized in that in the screen for working as and detecting and needing to the terminal device
When brightness is adjusted, before the step of obtaining the image Buffer of the terminal device, further includes:
When the screen for determining the terminal device is lighted, the screen intensity regulatory function of the terminal device is opened.
3. method according to claim 1 or 2, which is characterized in that needs ought be detected to the terminal device described
When screen intensity is adjusted, before the step of obtaining the image Buffer of the terminal device, further includes:
By light sensor, the ambient light intensity of the terminal device is obtained;
The ambient light intensity is compared with the absolute value of the difference of the ambient light intensity of last time acquisition with preset threshold;
Determine whether the ambient light intensity of the terminal device is changed according to comparison result;
If the ambient light intensity of the terminal device is changed, it is determined that need to the screen intensity of the terminal device into
Row is adjusted.
4. method as claimed in claim 3, which is characterized in that the environment for determining the terminal device according to comparison result
The step of whether luminous intensity has occurred variation, comprising:
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is greater than preset threshold, it is determined that
The ambient light intensity of the terminal device is changed;
If the absolute value of the difference of the ambient light intensity and the last ambient light intensity obtained is less than or equal to preset threshold,
Then determine that the ambient light intensity of the terminal device does not change.
5. method as claimed in claim 3, which is characterized in that it is described according to default adjusting ratio, to described image Buffer
The RGB channel value of each pixel the step of being adjusted, comprising:
Determine whether the ambient light intensity currently obtained is greater than the ambient light intensity of last acquisition;
If the ambient light intensity currently obtained is greater than the last ambient light intensity obtained, according to default adjusting ratio, to institute
The RGB channel value for stating each pixel of image Buffer is adjusted up to increase the brightness value of described image Buffer;
If the ambient light intensity currently obtained is less than the last ambient light intensity obtained, according to default adjusting ratio, to institute
The RGB channel value for stating each pixel of image Buffer adjust downwards to reduce the brightness value of described image Buffer.
6. the method as described in claim 1, which is characterized in that it is described according to default adjusting ratio, to described image Buffer
The RGB channel value of each pixel the step of being adjusted, comprising:
According to default adjusting ratio, the RGB channel value of each pixel in the specific region of described image Buffer is carried out
It adjusts.
7. a kind of screen brightness regulating device of terminal device, which is characterized in that described device includes:
Image Buffer acquiring unit, for when needing that the screen intensity of the terminal device is adjusted, described in acquisition
The image buffer storage Buffer of terminal device;
RGB channel value adjusts unit, is used for according to default adjusting ratio, to the RGB of each pixel of described image Buffer
Channel value is adjusted;
Image Buffer output unit is exported for the image Buffer after adjusting the rgb value of each pixel to the end
The adjusting to the screen intensity of the terminal device is realized at the screen end of end equipment.
8. the method for claim 7, which is characterized in that described device further include:
Screen intensity regulatory function opening unit, for opening the terminal when the screen for determining the terminal device is lighted
The screen intensity regulatory function of equipment.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of screen luminance adjustment method of any one terminal device.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the screen intensity of realization terminal device as described in any one of claim 1 to 6 when the computer program is executed by processor
The step of adjusting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250239.7A CN109947230A (en) | 2019-03-29 | 2019-03-29 | Screen brightness adjusting method and device of terminal equipment and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250239.7A CN109947230A (en) | 2019-03-29 | 2019-03-29 | Screen brightness adjusting method and device of terminal equipment and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109947230A true CN109947230A (en) | 2019-06-28 |
Family
ID=67012292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910250239.7A Pending CN109947230A (en) | 2019-03-29 | 2019-03-29 | Screen brightness adjusting method and device of terminal equipment and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947230A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112863457A (en) * | 2019-11-27 | 2021-05-28 | 深圳市万普拉斯科技有限公司 | Display brightness adjusting method and device, electronic equipment and storage medium |
CN112988098A (en) * | 2021-04-06 | 2021-06-18 | 恒玄科技(上海)股份有限公司 | Terminal device, image processing method, and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050057484A1 (en) * | 2003-09-15 | 2005-03-17 | Diefenbaugh Paul S. | Automatic image luminance control with backlight adjustment |
CN102810306A (en) * | 2012-07-26 | 2012-12-05 | 广东欧珀移动通信有限公司 | Method for automatically controlling brightness of display screen wallpaper |
US20140306943A1 (en) * | 2013-04-16 | 2014-10-16 | Fih (Hong Kong) Limited | Electronic device and method for adjusting backlight of electronic device |
CN104640186A (en) * | 2015-03-17 | 2015-05-20 | 深圳市欧珀通信软件有限公司 | Method and device for reducing power consumption of mobile terminal |
CN104902088A (en) * | 2015-05-25 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for adjusting screen brightness of mobile terminal |
CN105511668A (en) * | 2015-11-30 | 2016-04-20 | 小米科技有限责任公司 | Screen display control method and device, and terminal equipment |
CN105632458A (en) * | 2016-02-26 | 2016-06-01 | 深圳天珑无线科技有限公司 | Method, device and related equipment for adjusting screen brightness |
CN105979400A (en) * | 2016-06-28 | 2016-09-28 | 乐视控股(北京)有限公司 | Screen brightness adjusting method, device and terminal |
CN107093418A (en) * | 2017-06-20 | 2017-08-25 | 努比亚技术有限公司 | A kind of screen display method, computer equipment and storage medium |
CN107645606A (en) * | 2017-09-29 | 2018-01-30 | 努比亚技术有限公司 | Screen luminance adjustment method, mobile terminal and readable storage medium storing program for executing |
CN107799093A (en) * | 2017-12-08 | 2018-03-13 | 深圳市金立通信设备有限公司 | Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal |
-
2019
- 2019-03-29 CN CN201910250239.7A patent/CN109947230A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050057484A1 (en) * | 2003-09-15 | 2005-03-17 | Diefenbaugh Paul S. | Automatic image luminance control with backlight adjustment |
CN102810306A (en) * | 2012-07-26 | 2012-12-05 | 广东欧珀移动通信有限公司 | Method for automatically controlling brightness of display screen wallpaper |
US20140306943A1 (en) * | 2013-04-16 | 2014-10-16 | Fih (Hong Kong) Limited | Electronic device and method for adjusting backlight of electronic device |
CN104640186A (en) * | 2015-03-17 | 2015-05-20 | 深圳市欧珀通信软件有限公司 | Method and device for reducing power consumption of mobile terminal |
CN104902088A (en) * | 2015-05-25 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for adjusting screen brightness of mobile terminal |
CN105511668A (en) * | 2015-11-30 | 2016-04-20 | 小米科技有限责任公司 | Screen display control method and device, and terminal equipment |
CN105632458A (en) * | 2016-02-26 | 2016-06-01 | 深圳天珑无线科技有限公司 | Method, device and related equipment for adjusting screen brightness |
CN105979400A (en) * | 2016-06-28 | 2016-09-28 | 乐视控股(北京)有限公司 | Screen brightness adjusting method, device and terminal |
CN107093418A (en) * | 2017-06-20 | 2017-08-25 | 努比亚技术有限公司 | A kind of screen display method, computer equipment and storage medium |
CN107645606A (en) * | 2017-09-29 | 2018-01-30 | 努比亚技术有限公司 | Screen luminance adjustment method, mobile terminal and readable storage medium storing program for executing |
CN107799093A (en) * | 2017-12-08 | 2018-03-13 | 深圳市金立通信设备有限公司 | Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112863457A (en) * | 2019-11-27 | 2021-05-28 | 深圳市万普拉斯科技有限公司 | Display brightness adjusting method and device, electronic equipment and storage medium |
CN112988098A (en) * | 2021-04-06 | 2021-06-18 | 恒玄科技(上海)股份有限公司 | Terminal device, image processing method, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8817002B2 (en) | Data display adapted for bright ambient light | |
CN104428829B (en) | Color control method and communication apparatus | |
EP3726513A1 (en) | Method, apparatus and device for adjusting backlight brightness according to human eye characteristics | |
US9552781B2 (en) | Content adaptive LCD backlight control | |
JP2020504831A (en) | Interface image display method, apparatus and program | |
CN107799093A (en) | Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal | |
CN109151337A (en) | Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal | |
CN105096912A (en) | Mobile terminal screen brightness adjustment method and mobile terminal | |
US20160253944A1 (en) | Image Display Method and Device and Electronic Apparatus | |
CN109947230A (en) | Screen brightness adjusting method and device of terminal equipment and terminal equipment | |
CN109309826A (en) | A kind of image color equalization methods and terminal | |
CN110248444A (en) | Flashlight brightness adjusting method, device, mobile terminal and storage medium | |
CN109257507A (en) | A kind of method, mobile terminal and storage medium adjusting screen intensity | |
CN109920394A (en) | A kind of adjusting method of screen intensity, regulating device and display equipment | |
CN112289278A (en) | Screen brightness adjusting method, screen brightness adjusting device and electronic equipment | |
CN110138402A (en) | A kind of control method, device and the mobile terminal of mobile terminal output power | |
CN108874134A (en) | Eyeshield mode treatment method, mobile terminal and computer readable storage medium | |
CN109859283A (en) | One kind taking color method, takes color device, electronic equipment and can storage medium | |
CN111736793B (en) | Screen light adjusting method and device | |
CN104376834B (en) | A kind of luminance regulating method and electronic equipment | |
CN106790836A (en) | The display screen method to set up of mobile terminal and mobile terminal | |
CN107205142B (en) | A kind of method, apparatus and display equipment of image color offset | |
CN109949752A (en) | A kind of region display lightness regulating method, playback terminal and storage medium | |
CN110728962B (en) | Blue light adjusting method, blue light adjusting device, computer equipment and medium | |
CN107507601A (en) | A kind of method and system of the camera supervised interface display effect of adjust automatically |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190628 |
|
RJ01 | Rejection of invention patent application after publication |