CN107895563B - Display control method and device, terminal and computer readable storage medium - Google Patents

Display control method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107895563B
CN107895563B CN201711062854.2A CN201711062854A CN107895563B CN 107895563 B CN107895563 B CN 107895563B CN 201711062854 A CN201711062854 A CN 201711062854A CN 107895563 B CN107895563 B CN 107895563B
Authority
CN
China
Prior art keywords
display
preset
value
pixel
display area
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
CN201711062854.2A
Other languages
Chinese (zh)
Other versions
CN107895563A (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.)
Wuhan Xingji Meizu Technology Co ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201711062854.2A priority Critical patent/CN107895563B/en
Publication of CN107895563A publication Critical patent/CN107895563A/en
Application granted granted Critical
Publication of CN107895563B publication Critical patent/CN107895563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • G09G2320/0646Modulation of illumination source brightness and image signal correlated to each other

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention provides a display control method and device, a terminal and a computer readable storage medium, and relates to the technical field of electronics. The display control method provided by the invention comprises the following steps: when an instruction for reducing the display brightness is received, judging whether the electrical parameters of the display panel are within a preset electrical parameter range; the preset electrical parameter range is an effective parameter range for reducing the display brightness; if the electrical parameter of the display panel is not within the preset electrical parameter range, adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness. By using the invention, the extension of the adjustment range of lower display brightness can be realized.

Description

Display control method and device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a display control method and apparatus, a terminal, and a computer-readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims and the detailed description. The description herein is not admitted to be prior art by inclusion in this section.
When human eyes adapt to a dark light environment, the sensitivity to light is increased, and at the moment, in order to reduce the visual effect of stimulation to the human eyes of the mobile phone screen, the display brightness of the mobile phone screen is required to be reduced. However, even if the display brightness of the conventional mobile phone screen is minimized, the human eye still has a distinct stimulus.
Disclosure of Invention
In view of the foregoing, the present invention provides a display control method and apparatus, a terminal, and a computer-readable storage medium, so as to achieve extension of an adjustment range of lower display luminance.
The invention provides a display control method, which is applied to a terminal, wherein the terminal comprises a display panel, and the method comprises the following steps:
when an instruction for reducing the display brightness is received, judging whether the electrical parameter of the display panel is within a preset electrical parameter range; the preset electrical parameter range is an effective parameter range for reducing the display brightness;
if the electrical parameter of the display panel is not within the preset electrical parameter range, adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness.
Further, the adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness includes:
determining the adjustment amount of an alpha value according to the color value of the pixel in the preset display area;
and adjusting the alpha value of the pixel in the preset display area by using the adjustment amount of the alpha value to reduce the display brightness.
Further, the determining an adjustment amount of the alpha value according to the color value of the pixel in the preset display area includes:
acquiring a plurality of sample pixels in the preset display area;
obtaining a color value with the largest proportion according to the color value of each sample pixel;
and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
Further, the electrical parameter of the display panel includes a control voltage of the display panel, and the preset electrical parameter range includes a minimum value at which the control voltage of the display panel is greater than an effective control voltage.
Further, the preset display area includes a plurality of display sub-areas, and the adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to lower the display brightness includes:
acquiring the gray value of the pixel in each display sub-area;
determining an adjustment sequence for adjusting the plurality of display sub-regions according to the size of the maximum value of the gray value; wherein, the adjustment sequence is adjusted in sequence from the display subarea corresponding to the maximum value of the maximum gray value;
and adjusting the alpha values of the pixels in each display sub-area one by one according to the adjustment sequence to reduce the display brightness.
A second aspect of the present invention provides a display control apparatus applied to a terminal, the display control apparatus including:
the judging module is used for judging whether the electrical parameters of the display panel are in a preset electrical parameter range or not when receiving an instruction for reducing the display brightness; the preset electrical parameter range is an effective parameter range for reducing the display brightness;
and the control module is used for adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness when the electrical parameter of the display panel is not in the preset electrical parameter range.
Further, the display control apparatus further includes:
the determining module is used for determining the adjustment amount of an alpha value according to the color value of the pixel in the preset display area on the display panel;
the control module is specifically configured to, when adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness: and adjusting the alpha value of the pixel in the preset display area by using the adjustment amount of the alpha value to reduce the display brightness.
Further, the display control apparatus further includes:
the acquisition module is used for acquiring a plurality of sample pixels in the preset display area;
the calculation module is used for obtaining a color value with the largest proportion according to the color value of each sample pixel;
the determining module is specifically configured to, when determining the adjustment amount of the alpha value according to the color value of the pixel in the preset display area on the display panel: and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
Further, the electrical parameter of the display panel includes a control voltage of the display panel, and the preset electrical parameter range includes a minimum value at which the control voltage of the display panel is greater than an effective control voltage.
Further, when the preset display area includes a plurality of display sub-areas, and the obtaining module adjusts the alpha values of the pixels in the preset display area according to the color values of the pixels in the preset display area on the display panel to reduce the display brightness, the obtaining module is specifically configured to: acquiring the gray value of the pixel in each display sub-area;
the determining module is specifically configured to, when the preset display area includes a plurality of display sub-areas, adjust an alpha value of a pixel in the preset display area according to a color value of the pixel in the preset display area on the display panel to reduce the display brightness: determining an adjustment sequence for adjusting the plurality of display sub-regions according to the size of the maximum value of the gray value; wherein, the adjustment sequence is adjusted in sequence from the display subarea corresponding to the maximum value of the maximum gray value;
the control module is specifically configured to, when the preset display area includes a plurality of display sub-areas, adjust an alpha value of a pixel in the preset display area according to a color value of the pixel in the preset display area on the display panel to reduce the display brightness: and adjusting the alpha values of the pixels in each display sub-area one by one according to the adjustment sequence to reduce the display brightness.
The third aspect of the present invention also provides a terminal comprising a processor for implementing the steps of the display control method as described above when executing a computer program stored in a memory.
The fourth aspect of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the display control method as described above.
According to the display control method and device and the computer readable storage medium provided by the invention, when the electrical parameter of the display panel is not within the preset electrical parameter range, the alpha value of the pixel in the preset display area on the display panel is adjusted according to the color value of the pixel in the preset display area on the display panel, and the adjustment of the brightness of the pixel is realized in a mode of reducing the color transparency of the pixel in the preset display area, so that the effect of reducing the brightness of the preset display area is obtained, and the extension of the adjustment range of lower display brightness is realized.
Furthermore, the method can obtain the color value with the largest proportion according to the color value of each sample pixel, and finally obtain the adjustment quantity of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment quantity of the alpha value, and further can adjust the alpha value according to the adjustment quantity of the alpha value to reduce the display brightness, thereby realizing the extension of the lower brightness range.
Furthermore, the invention can determine an adjustment sequence according to the gray value of the pixels in each sub-region of the preset display region, and the adjustment sequence is sequentially adjusted in a descending manner from the display sub-region with the maximum gray value, namely, the display sub-region corresponding to the maximum gray value is adjusted by an alpha value first, and the maximum value of the lower gray value is adjusted by the second, and so on, thereby effectively reducing the stimulation brought to human eyes by the display sub-region corresponding to the maximum gray value, and simultaneously, the adjustment of each display sub-region one by one according to the sequence is adapted to the computing capability of the terminal.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a display control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a display control method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a display control method according to a third embodiment of the present invention;
FIG. 4 is an exemplary functional block diagram of a display control apparatus provided in one embodiment of the present invention;
fig. 5 is an exemplary structural diagram of a terminal according to an embodiment of the present invention.
Description of the main elements
Terminal 1
Processor 10
Memory 20
Display panel 30
Display control apparatus 100
Judging module 11
Control module 12
Determination module 13
Acquisition module 14
Calculation module 15
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. In addition, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Fig. 1 is a flowchart of a display control method according to a first embodiment of the present invention, and it should be noted that the display control method according to the embodiment of the present invention is not limited to the steps and the sequence in the flowchart shown in fig. 1. Steps in the illustrated flowcharts may be added, removed, or changed in order according to various needs.
The display control method of the present embodiment is applied to a terminal including a display panel. As shown in fig. 1, the display control method may include the steps of:
step 101: when an instruction for reducing the display brightness is received, judging whether the electrical parameter of the display panel is within a preset electrical parameter range; wherein the preset electrical parameter range is an effective parameter range for turning down the display brightness.
In this embodiment, the receiving of the instruction for turning down the display brightness may be implemented as follows:
receiving an instruction corresponding to an input operation of lowering display brightness by a user; alternatively, the first and second electrodes may be,
and recognizing the brightness of the environment where the terminal is located by using an optical sensor of the terminal, and outputting an adaptive low display brightness instruction by the terminal according to the brightness.
In this embodiment, the electrical parameters of the display panel may include a control resistance, a control current, and/or a control voltage of an electronic component of the display panel for adjusting display brightness.
In this embodiment, the preset electrical parameter range may include:
1) the control resistance of the display panel is smaller than the maximum value of the effective control resistance; alternatively, the first and second electrodes may be,
2) the control current of the display panel is larger than the minimum value of the effective control current; alternatively, the first and second electrodes may be,
3) and the control voltage of the display panel is greater than the minimum value of the effective control voltage.
It will be appreciated that the effective parameter range may be determined based on the effectiveness of adjusting the display color effect or the inherent physical properties of the electronic components of the display panel.
In the case where the valid parameter range is determined based on the effectiveness of adjusting the display color effect: when the display brightness is reduced, the visual effect changes of all colors are different, for example, a darker color (e.g., grayish purple, dark blue, etc.) has better color expression when the display brightness is higher, and has extremely poor color expression when the display brightness is lower, so that the color of the darker color is difficult to be identified by naked eyes. Therefore, the effective parameter range can be obtained according to the resolving power of the naked eye to the color under different brightness.
In the case where the valid parameter range is determined based on adjusting intrinsic physical properties of electronic components of the display panel: inherent physical properties of electronic components vary depending on inherent factors such as voltage and current resistance. Therefore, the effective parameter range can be obtained according to the tolerance of the electronic components of the display panel.
Step 102: if the electrical parameter of the display panel is not within the preset electrical parameter range, adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness.
In this embodiment, the electrical parameter of the display panel not within the preset electrical parameter range may be:
1) the control resistance of the display panel is greater than or equal to the maximum value of the effective control resistance; alternatively, the first and second electrodes may be,
2) the control current of the display panel is less than or equal to the minimum value of the effective control current; alternatively, the first and second electrodes may be,
3) and the control voltage of the display panel is less than or equal to the minimum value of the effective control voltage.
In this embodiment, the preset display area on the display panel may be the entire display area of the display screen, or may be a partial display area of the display screen determined by a user selection or a default determination of the terminal.
In this embodiment, corresponding to the above-described situation in which the effective parameter range is determined based on the effectiveness of adjusting the display color effect: when the electrical parameter of the display panel is not within the preset electrical parameter range, it can be understood that: the current display color effect of the terminal is difficult to meet the display requirement, specifically, the color displayed under low display brightness is difficult to meet the visual requirement of naked eyes, and when the maximum value (minimum value or maximum value) difference value between the electrical parameter of the display panel and the preset electrical parameter range is larger, the current display effect of the terminal is difficult to meet the display requirement.
Based on this understanding, when the electrical parameter of the display panel is equal to the maximum value of the effective control resistance, the minimum value of the effective control current or the minimum value of the effective control voltage, the step of adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness is adopted immediately, and the display effect is closer to the visual requirement of naked eyes because of being closer to the preset electrical parameter range.
It can be understood that when the electrical parameter of the display panel is adjusted, the display effect of each pixel in the entire display screen changes, and when the electrical parameter of the display panel is adjusted to be equal to the maximum value of the effective control resistance, the minimum value of the effective control current, or the minimum value of the effective control voltage, the adjustment of the alpha value is performed for the pixel, so that some pixels with poor color expression at low display brightness are not adjusted or the adjustment range of the pixels is small, and further, the color of the color such as partial dark color and the like in the preset display area at low display brightness can still maintain a certain color expression.
In this embodiment, in response to the above-described case where the effective parameter range is determined based on the adjustment of the inherent physical properties of the electronic components of the display panel: when the electrical parameter of the display panel is not within the preset electrical parameter range, it can be understood that: the tolerance capability of the electronic components of the display panel is close to the designed limit range, and the larger the difference value between the electrical parameter of the display panel and the maximum value (maximum value or minimum value) of the preset electrical parameter range is, the more likely the display screen of the terminal cannot normally display.
Based on this understanding, when the electrical parameter of the display panel is equal to the maximum value of the effective control resistance, the minimum value of the effective control current, or the minimum value of the effective control voltage, the step of adjusting the alpha values of the pixels in the preset display area according to the color values of the pixels in the preset display area on the display panel to lower the display brightness may be immediately adopted, and the display screen of the terminal may still be in the normal display state due to being closer to the preset electrical parameter range.
In a specific application example of the present embodiment, the electrical parameter of the display panel is a control voltage, and the preset electrical parameter range is a minimum value of the control voltage of the display panel being greater than an effective control voltage. Corresponding to the aforementioned situation of determining the effective parameter range based on the effectiveness of adjusting the display color effect, when the electrical parameter of the display panel is equal to the minimum value of the effective control voltage, the alpha value of the pixel in the preset display area on the display panel can be immediately adjusted according to the color value of the pixel in the preset display area to reduce the display brightness. Corresponding to the situation that the effective parameter range is determined based on the adjustment of the inherent physical properties of the electronic components of the display panel, when the electrical parameter of the display panel is equal to the minimum value of the effective control voltage, the alpha value of the pixel in the preset display area can be immediately adjusted according to the color value of the pixel in the preset display area on the display panel so as to reduce the display brightness.
It is understood that the color values of the pixels in the preset display area include values of various colors represented by the pixels in the preset display area in an RGB color mode.
It will be appreciated that the alpha value of a pixel in the predetermined display area comprises a value stored by the alpha channel of a pixel in the predetermined display area to determine the color transparency of that pixel.
In this embodiment, when the electrical parameter of the display panel is not within the preset electrical parameter range, the display effect obtained by adjusting the electrical parameter cannot meet the display requirement, and at this time, the alpha value of the pixel in the preset display area on the display panel is adjusted according to the color value of the pixel in the preset display area on the display panel, and the adjustment of the brightness of the pixel is realized in a manner that the color transparency of the pixel in the preset display area is reduced, so that the effect of reducing the brightness of the preset display area is obtained, and the extension of the adjustment range of lower display brightness is realized.
It can be understood that, since adjusting the alpha values of the pixels in the preset display area involves image operation, the alpha values of the pixels in the preset display area may be adjusted according to the color values of the pixels in the preset display area on the display panel to reduce the display brightness when the electrical parameter of the display panel is not within the preset electrical parameter range.
Fig. 2 is a flowchart of a display control method according to a second embodiment of the present invention, and the second embodiment is mainly different from the first embodiment in that the second embodiment involves steps such as determining an adjustment amount of an alpha value from color values of pixels in the preset display area. It should be noted that, within the scope of the spirit or the basic features of the present invention, each specific solution applicable to the first embodiment may also be correspondingly applicable to the second embodiment, and for the sake of brevity and avoidance of repetition, the detailed description thereof is omitted here.
As shown in fig. 2, the display control method may include the steps of:
step 201: when an instruction for reducing the display brightness is received, judging whether the electrical parameter of the display panel is within a preset electrical parameter range; wherein the preset electrical parameter range is an effective parameter range for turning down the display brightness.
Step 202: and if the electrical parameter of the display panel is not in the preset electrical parameter range, determining the adjustment amount of the alpha value according to the color value of the pixel in the preset display area.
In this embodiment, the determining the adjustment amount of the alpha value according to the color value of the pixel in the preset display area may be implemented by the following sub-steps:
step 202 (1): and acquiring a plurality of sample pixels in the preset display area.
In this embodiment, the sample pixel may be obtained by randomly selecting from the pixels in the preset display area, or by selecting a large color value from the pixels in the preset display area.
Step 202 (2): and obtaining the color value with the largest proportion according to the color value of each sample pixel.
It is understood that the color value with the largest proportion can be calculated by performing weighted average calculation according to the color value sample number of each sample pixel.
Step 202 (3): and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
It can be understood that the preset corresponding relationship between the color value with the largest proportion and the adjustment amount of the alpha value can be obtained by looking up a mapping table, and then the adjustment amount of the alpha value is determined.
Step 203: and adjusting the alpha value of the pixel in the preset display area by using the adjustment amount of the alpha value to reduce the display brightness.
In this embodiment, the adjusting of the alpha value of the pixel in the preset display area is specifically realized by an adjustment amount of the alpha value determined according to the color value of the pixel in the preset display area.
On the basis of the first embodiment and the second embodiment, the embodiment can obtain the color value with the largest proportion according to the color value of each sample pixel by obtaining the sample pixels in the preset display area, and finally obtain the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value, and further can adjust the alpha value according to the adjustment amount of the alpha value to reduce the display brightness, thereby realizing the extension of the lower brightness range.
It can be understood that the target value to be adjusted to the alpha value can also be directly determined according to the color values of the pixels in the preset display area.
Fig. 3 is a flowchart of a display control method according to a third embodiment of the present invention, and the present embodiment is mainly different from the first embodiment and the second embodiment in that the preset display region in the third embodiment includes a plurality of display sub-regions, and specifically relates to the steps of acquiring the gray scale values of the pixels in the respective display sub-regions, and the like. It should be noted that, within the scope of the spirit or the basic features of the present invention, each specific solution applicable to the foregoing embodiments may also be correspondingly applicable to the third embodiment, and for the sake of brevity and avoidance of repetition, further description is omitted here.
As shown in fig. 3, the display control method may include the steps of:
step 301: when an instruction for reducing the display brightness is received, judging whether the electrical parameter of the display panel is within a preset electrical parameter range; wherein the preset electrical parameter range is an effective parameter range for turning down the display brightness.
Step 302: and if the electrical parameters of the display panel are not in the preset electrical parameter range, acquiring the gray values of the pixels in the display sub-regions.
In this embodiment, the gray scale value of the pixel can reflect the brightness of the pixel, and the visual effect is often more dazzling as the gray scale value is larger.
Step 303: and determining an adjusting sequence for adjusting the plurality of display sub-areas according to the size of the maximum value of the gray value. And the adjustment sequence is adjusted in sequence from the display subarea corresponding to the maximum value of the maximum gray value.
It will be appreciated that each display sub-region has a maximum value of the corresponding gray scale value, and the maximum value of the gray scale value reflects one of the display sub-regions that provides the most dazzling visual effect. Thus, the degree of the visual effect given to the individual display sub-regions can be determined in dependence on the size of the maximum value of the grey value of the individual display sub-regions.
Step 304: and adjusting the alpha values of the pixels in each display sub-area one by one according to the adjustment sequence to reduce the display brightness.
In this embodiment, an adjustment sequence is determined according to the gray scale values of the pixels in each sub-region of the preset display region, and the adjustment sequence is sequentially adjusted in a descending manner from the display sub-region having the maximum gray scale value, that is, the display sub-region corresponding to the maximum gray scale value is adjusted by an alpha value first, and the maximum gray scale value that is lower is the second, and so on, so that the irritation to human eyes due to the display of the display sub-region corresponding to the maximum gray scale value that is the largest can be effectively reduced, and meanwhile, the display sub-regions are adjusted one by one in sequence and are adapted to the computing power of the terminal.
It can be understood that, when the computing capability of the terminal is not strong, before adjusting the alpha values of the pixels in the preset display area according to the color values of the pixels in the preset display area on the display panel to lower the display brightness, it may be further determined whether the display content in the preset display area includes video playing content, and when the display content in the preset display area does not include the video playing content, the adjusting of the alpha values of the pixels in the preset display area according to the color values of the pixels in the preset display area on the display panel is performed to lower the display brightness.
It can be understood that, when the terminal plays a video, the color variation of the pixel is usually large, and at this time, the adjustment through the alpha value brings a large amount of computation, which may not match the computation capability of the terminal design. Therefore, video playing can be carried out on the terminal, and the display brightness can be adjusted only by adjusting the electric parameters of the display panel, so that the requirements of terminal operation and power consumption are met.
Fig. 4 is an exemplary functional block diagram of a display control apparatus according to an embodiment of the present invention. As shown in fig. 4, the display control apparatus 100 may adjust the alpha value of the pixel in the preset display area on the display panel according to the color value of the pixel in the preset display area on the display panel when the electrical parameter of the display panel is not within the preset electrical parameter range, and may adjust the brightness of the pixel in a manner other than that expressed by a decrease in the color transparency of the pixel in the preset display area, thereby obtaining an effect of decreasing the brightness of the preset display area and extending the adjustment range of the lower display brightness.
The display control apparatus 100 of the present invention may include one or more modules, which may be stored in a memory of the terminal and may be configured to be executed by one or more processors (one processor in this embodiment) to complete the present invention. For example, as shown in fig. 4, the display control apparatus 100 may include a judging module 11, a control module 12, a determining module 13, an obtaining module 14, and a calculating module 15. The modules referred to in this application may be program segments that perform particular functions, or may be more specialized than programs that describe the execution of software on a processor.
It should be noted that, corresponding to the above-mentioned embodiments of the display control method, the display control apparatus 100 may include some or all of the functional blocks shown in fig. 4, and the functions of the blocks will be described in detail below. The same noun terms and their specific explanations in the above embodiments of the display control method can also be applied to the following functional descriptions of the respective modules. For brevity and to avoid repetition, further description is omitted.
Fig. 5 is an exemplary structural diagram of a terminal according to an embodiment of the present invention. The terminal 1 provided in the present embodiment includes: a processor 10, a memory 20, a display panel 30 and a computer program, such as a display control program, stored in said memory 20 and executable on said processor 10. When the processor 10 executes the computer program, the steps in the above-described embodiments of the display control method, for example, steps 101 to 102 shown in fig. 1, are implemented. Alternatively, the processor 10 implements the functions of the modules in the above device embodiments when executing the computer program, for example, the determining module 11 in fig. 4 implements the function of determining whether the electrical parameter of the display panel is within the preset electrical parameter range when receiving the instruction for turning down the display brightness.
The terminal 1 may be a mobile phone, a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 1 may include, but is not limited to, a processor 10, a memory 20, and a display panel 30. It will be understood by those skilled in the art that the schematic diagram is merely an example of the terminal 1 for implementing the display control method of the present invention, and does not constitute a limitation of the terminal 1, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal 1 may further include an input and output device, a network access device, a bus, etc.
The Processor 10 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 10 is the control center of the terminal 1 and connects the various parts of the whole terminal 1 with various interfaces and lines.
The memory 20 may be used to store the computer programs and/or modules, and the processor 10 implements various functions of the terminal 1 by operating or executing the computer programs and/or modules stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The display panel 30 is used for providing a graphical information display interface for interaction with a user, and the display brightness of the display panel 30 is adjustable.
The terminal 1 may further include a display control apparatus 100 as shown in fig. 4, and the display control apparatus 100 may be stored in the memory 20.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory 20 and executed by the processor 10 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the terminal 1. For example, the computer program may be divided into the display control apparatus 100 shown in fig. 4, which includes a judging module 11, a control module 12, a determining module 13, an obtaining module 14, and a calculating module 15, and the specific functions of each module are as follows:
the determining module 11 is configured to determine whether an electrical parameter of the display panel is within a preset electrical parameter range when receiving an instruction for turning down display brightness. Wherein the preset electrical parameter range is an effective parameter range for turning down the display brightness.
And the control module 12 is configured to adjust an alpha value of a pixel in a preset display area according to a color value of the pixel in the preset display area on the display panel to reduce the display brightness when the electrical parameter of the display panel is not within the preset electrical parameter range.
The determining module 13 is configured to determine an adjustment amount of an alpha value according to a color value of a pixel in a preset display area on the display panel.
When the control module 12 adjusts the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness, it may specifically be configured to: and adjusting the alpha value of the pixel in the preset display area by using the adjustment amount of the alpha value to reduce the display brightness.
An obtaining module 14, configured to obtain a plurality of sample pixels in the preset display area.
The calculation module 15 is configured to obtain a color value with a largest proportion according to the color value of each sample pixel;
when determining the adjustment amount of the alpha value according to the color value of the pixel in the preset display area on the display panel, the determining module 13 may be specifically configured to: and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
Further, the electrical parameter of the display panel includes a control voltage of the display panel, and the preset electrical parameter range includes a minimum value at which the control voltage of the display panel is greater than an effective control voltage.
The obtaining module 14 may further specifically be configured to, when the preset display area includes a plurality of display sub-areas, and the alpha value of the pixel in the preset display area is adjusted according to the color value of the pixel in the preset display area on the display panel to lower the display brightness: acquiring the gray value of the pixel in each display sub-area;
the determining module 13 may be further specifically configured to, when the preset display area includes a plurality of display sub-areas, and the alpha value of the pixel in the preset display area is adjusted according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness: determining an adjustment sequence for adjusting the plurality of display sub-regions according to the size of the maximum value of the gray value; and the adjustment sequence is adjusted in sequence from the display subarea corresponding to the maximum value of the maximum gray value.
The control module 12 may be further specifically configured to, when the preset display area includes a plurality of display sub-areas, and the alpha value of the pixel in the preset display area is adjusted according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness: and adjusting the alpha values of the pixels in each display sub-area one by one according to the adjustment sequence to reduce the display brightness.
The modules integrated in the terminal 1 according to the present invention may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow in the display control method according to the above embodiments may be implemented by instructing related hardware by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps in the display control method according to the above embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units, modules or devices recited in the system, device or terminal device claims may also be implemented by the same unit, module or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention.

Claims (10)

1. A display control method is applied to a terminal, the terminal comprises a display panel, and the method is characterized by comprising the following steps:
when an instruction for reducing the display brightness is received, judging whether the electrical parameter of the display panel is within a preset electrical parameter range; the preset electrical parameter range is an effective parameter range for reducing the display brightness;
if the electrical parameter of the display panel is not within the preset electrical parameter range, adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness.
2. The method as claimed in claim 1, wherein said adjusting alpha values of pixels in a predetermined display area to lower display brightness according to color values of pixels in the predetermined display area on the display panel comprises:
determining the adjustment amount of an alpha value according to the color value of the pixel in the preset display area;
and adjusting the alpha value of the pixel in the preset display area by using the adjustment amount of the alpha value to reduce the display brightness.
3. The display control method according to claim 2, wherein the determining an adjustment amount of an alpha value according to the color value of the pixel in the preset display area comprises:
acquiring a plurality of sample pixels in the preset display area;
obtaining a color value with the largest proportion according to the color value of each sample pixel;
and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
4. The display control method of claim 2, wherein the electrical parameter of the display panel comprises a control voltage of the display panel, and the preset electrical parameter range comprises a minimum value of the control voltage of the display panel being greater than an effective control voltage.
5. The method according to any one of claims 1 to 4, wherein the predetermined display area comprises a plurality of display sub-areas, and the adjusting the alpha values of the pixels in the predetermined display area according to the color values of the pixels in the predetermined display area on the display panel to lower the display brightness comprises:
acquiring the gray value of the pixel in each display sub-area;
determining an adjustment sequence for adjusting the plurality of display sub-regions according to the size of the maximum value of the gray value; wherein, the adjustment sequence is adjusted in sequence from the display subarea corresponding to the maximum value of the maximum gray value;
and adjusting the alpha values of the pixels in each display sub-area one by one according to the adjustment sequence to reduce the display brightness.
6. A display control apparatus applied to a terminal, the display control apparatus comprising:
the judging module is used for judging whether the electrical parameters of the display panel are in a preset electrical parameter range or not when receiving an instruction for reducing the display brightness; the preset electrical parameter range is an effective parameter range for reducing the display brightness;
and the control module is used for adjusting the alpha value of the pixel in the preset display area according to the color value of the pixel in the preset display area on the display panel to reduce the display brightness when the electrical parameter of the display panel is not in the preset electrical parameter range.
7. The display control apparatus according to claim 6, characterized in that the display control apparatus further comprises:
the determining module is used for determining the adjustment amount of an alpha value according to the color value of the pixel in the preset display area on the display panel;
the control module is further used for adjusting the alpha values of the pixels in the preset display area by using the adjustment amount of the alpha values so as to reduce the display brightness.
8. The display control apparatus according to claim 7, wherein the display control apparatus further comprises:
the acquisition module is used for acquiring a plurality of sample pixels in the preset display area;
the calculation module is used for obtaining a color value with the largest proportion according to the color value of each sample pixel;
the determining module is specifically configured to, when determining the adjustment amount of the alpha value according to the color value of the pixel in the preset display area on the display panel: and obtaining the adjustment amount of the alpha value according to the preset corresponding relation between the color value with the largest proportion and the adjustment amount of the alpha value.
9. A terminal, characterized in that it comprises a processor for implementing the steps of the display control method according to any one of claims 1-5 when executing a computer program stored in a memory.
10. 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 display control method according to any one of claims 1 to 5.
CN201711062854.2A 2017-11-02 2017-11-02 Display control method and device, terminal and computer readable storage medium Active CN107895563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711062854.2A CN107895563B (en) 2017-11-02 2017-11-02 Display control method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711062854.2A CN107895563B (en) 2017-11-02 2017-11-02 Display control method and device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107895563A CN107895563A (en) 2018-04-10
CN107895563B true CN107895563B (en) 2021-03-16

Family

ID=61803038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711062854.2A Active CN107895563B (en) 2017-11-02 2017-11-02 Display control method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107895563B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388223A (en) * 2018-09-14 2019-02-26 维沃移动通信有限公司 One kind putting out screen display method, apparatus and terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441861A (en) * 2007-11-23 2009-05-27 佛山市顺德区汉达精密电子科技有限公司 Apparatus and method for low brightness display
CN101861616A (en) * 2007-11-19 2010-10-13 Nec显示器解决方案株式会社 Luminance adjusting device, display device, computer-readable recording medium and luminance adjusting method
CN102592544A (en) * 2011-01-14 2012-07-18 纬创资通股份有限公司 Brightness control device and control method thereof
CN102902460A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Screen display brightness adjusting method and terminal
EP2565865A1 (en) * 2011-09-01 2013-03-06 Research In Motion Limited Data display adapted for bright ambient light
CN103077696A (en) * 2013-01-15 2013-05-01 Opera软件股份公司 Method and equipment for adjusting brightness of display screen and display system
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN104851415A (en) * 2015-06-10 2015-08-19 联想(北京)有限公司 Control method and device, and electronic equipment
CN105225623A (en) * 2014-09-25 2016-01-06 三星电子株式会社 The data transmission method for uplink of display device, its control method and display device
CN105912231A (en) * 2016-03-31 2016-08-31 广东欧珀移动通信有限公司 Brightness adjusting method, adjusting device and terminal
CN107256122A (en) * 2017-06-13 2017-10-17 广东欧珀移动通信有限公司 Screen luminance adjustment method, device, terminal and computer-readable recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100277452A1 (en) * 2007-02-23 2010-11-04 Sony Corporation Mobile display control system
JP5642457B2 (en) * 2010-08-31 2014-12-17 オリンパス株式会社 Display control apparatus and display control method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101861616A (en) * 2007-11-19 2010-10-13 Nec显示器解决方案株式会社 Luminance adjusting device, display device, computer-readable recording medium and luminance adjusting method
CN101441861A (en) * 2007-11-23 2009-05-27 佛山市顺德区汉达精密电子科技有限公司 Apparatus and method for low brightness display
CN102592544A (en) * 2011-01-14 2012-07-18 纬创资通股份有限公司 Brightness control device and control method thereof
CN102902460A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Screen display brightness adjusting method and terminal
EP2565865A1 (en) * 2011-09-01 2013-03-06 Research In Motion Limited Data display adapted for bright ambient light
CN103077696A (en) * 2013-01-15 2013-05-01 Opera软件股份公司 Method and equipment for adjusting brightness of display screen and display system
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN105225623A (en) * 2014-09-25 2016-01-06 三星电子株式会社 The data transmission method for uplink of display device, its control method and display device
CN104851415A (en) * 2015-06-10 2015-08-19 联想(北京)有限公司 Control method and device, and electronic equipment
CN105912231A (en) * 2016-03-31 2016-08-31 广东欧珀移动通信有限公司 Brightness adjusting method, adjusting device and terminal
CN107256122A (en) * 2017-06-13 2017-10-17 广东欧珀移动通信有限公司 Screen luminance adjustment method, device, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107895563A (en) 2018-04-10

Similar Documents

Publication Publication Date Title
CN107179889B (en) Interface color adjusting method, webpage color adjusting method and webpage color adjusting device
CN107111992B (en) method and terminal for adjusting backlight brightness
CN109741281B (en) Image processing method, image processing device, storage medium and terminal
CN113168038B (en) Method and device for displaying image
CN108280431B (en) Face recognition processing method, face recognition processing device and intelligent terminal
CN108401078B (en) Backlight brightness adjusting method and device, mobile terminal and readable storage medium
CN107123399A (en) The method of adjustment and mobile terminal of mobile terminal screen brightness
CN110084204B (en) Image processing method and device based on target object posture and electronic equipment
EP3149701A1 (en) Systems and methods for localized contrast enhancement
CN113096035A (en) High dynamic range image generation method and device, intelligent terminal and storage medium
CN110618852B (en) View processing method, view processing device and terminal equipment
CN113507598A (en) Video picture display method, device, terminal and storage medium
CN110442313B (en) Display attribute adjusting method and related equipment
CN110660365A (en) Regional backlight control method, display and storage medium
CN110444181B (en) Display method, display device, terminal and computer-readable storage medium
CN107895563B (en) Display control method and device, terminal and computer readable storage medium
CN112783460B (en) Display control method and device, electronic equipment and readable storage medium
CN110880164A (en) Image processing method, device and equipment and computer storage medium
CN111090384B (en) Soft keyboard display method and device
WO2019052476A1 (en) Method for collecting facial information and related devices
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
CN107105167B (en) Method and device for shooting picture during scanning question and terminal equipment
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
CN116954771A (en) Screen backlight adjusting method and device
KR20210145071A (en) Display method and device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231221

Address after: 430000, 14th floor, No. 181 Chunxiao Road, Wuhan Economic and Technological Development Zone, Hubei Province

Patentee after: Wuhan Xingji Meizu Technology Co.,Ltd.

Address before: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee before: MEIZU TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right