[go: up one dir, main page]

CN112825232B - Compensation method and electronic equipment - Google Patents

Compensation method and electronic equipment Download PDF

Info

Publication number
CN112825232B
CN112825232B CN201911144228.7A CN201911144228A CN112825232B CN 112825232 B CN112825232 B CN 112825232B CN 201911144228 A CN201911144228 A CN 201911144228A CN 112825232 B CN112825232 B CN 112825232B
Authority
CN
China
Prior art keywords
screen
screen area
mask layer
brightness
transparency
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
CN201911144228.7A
Other languages
Chinese (zh)
Other versions
CN112825232A (en
Inventor
谭威
李煜
王亮
王欣
王耀峰
蒋铭辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911144228.7A priority Critical patent/CN112825232B/en
Priority to PCT/CN2020/130168 priority patent/WO2021098790A1/en
Publication of CN112825232A publication Critical patent/CN112825232A/en
Application granted granted Critical
Publication of CN112825232B publication Critical patent/CN112825232B/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
    • 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
    • G09G3/22Control 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 using controlled light sources
    • G09G3/30Control 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 using controlled light sources using electroluminescent panels
    • G09G3/32Control 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 using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control 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 using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • 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
    • G09G3/34Control 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 by control of light from an independent source
    • G09G3/36Control 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 by control of light from an independent source using liquid crystals

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

A compensation method and an electronic device are provided, wherein the method comprises the following steps: the electronic equipment respectively determines the brightness of a first screen area, a second screen area and a third screen area at a first moment; determining a first gamma parameter corresponding to the brightness of the first screen area at the first moment, replacing a second gamma parameter of the second screen area and a second gamma parameter of the third screen area with the first gamma parameter, so that the brightness of the second screen area and the brightness of the third screen area can be reduced by the same amount, the brightness of the second screen area is reduced to be consistent with that of the first screen area, then adding a mask layer in the third screen area, and adjusting the transparency of the mask layer to be the first transparency according to the brightness difference value of the second screen area and the third screen area at the first moment, so that the brightness difference between the screen areas is reduced, and the display effects of different screen areas are consistent.

Description

Compensation method and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a compensation method and an electronic device.
Background
Along with the popularization of electronic products, electronic devices such as mobile phones and computers are deeper and deeper into lives of people, screens of the electronic devices are larger, and electronic devices with foldable screens are available afterwards for carrying conveniently.
In order to provide better display experience for users, organic Light Emitting Diodes (OLEDs) are widely used in display screens because of their characteristics of self-luminescence, high brightness, wide viewing angle, fast response, and RGB full-color device fabrication. The OLED emits light by using the characteristics of electroluminescence of organic materials, which have a life limit, and thus, as the use time of the display screen increases, there are problems of material exhaustion and aging. For example, when a certain fixed position of the display screen displays the same and still image picture for a long time, the organic material corresponding to the sub-pixels at these positions will be more severely worn than the organic material corresponding to the sub-pixels at other positions, and the organic materials corresponding to different sub-pixels (R pixel, G pixel, B pixel) will not have the same decay rate, or the use and duration of each area on the screen will not be the same, which will cause the problem of non-uniform aging on the display screen, especially the blue sub-pixel has a shorter decay period and more serious aging. Similarly, the LCD may have such a problem of inconsistent aging degree, and when the LCD, the OLED, and the like are applied to the electronic device with the foldable screen, the user may use different screens for different time periods when the electronic device with the foldable screen is in the folded state, and when the screen is completely unfolded, the user may find that the display effect of each screen is greatly different due to the inconsistent aging degree.
At present, in a compensation scheme for a folding screen, the compensation scheme is limited by a circuit structure of the folding screen, and effective compensation cannot be performed on an area to be compensated, for example, after an electronic device is bent, the electronic device can be divided into a main screen, a side screen (also called a bending area) and an auxiliary screen, generally, the service lives of users for the three screens are all inconsistent, so that the aging degrees of the main screen, the side screen and the auxiliary screen are inconsistent, a circuit of the main screen can be controlled independently, and circuits of the side screen and the auxiliary screen are controlled together, so that although the overall brightness difference between the main screen and the auxiliary screen can be reduced through circuit compensation, or the overall brightness difference between the main screen and the side screen can be reduced, the brightness difference between the side screen and the auxiliary screen cannot be compensated effectively.
Disclosure of Invention
The application provides a compensation method and electronic equipment, which are used for reducing the brightness difference among screen areas of the electronic equipment and enabling the display effects of different screen areas to be consistent.
In a first aspect, an embodiment of the present application provides a compensation method, which is applied to an electronic device having a display screen, where the display screen includes a first screen area, a second screen area, and a third screen area, where the second screen area and the third screen area are controlled by a same gamma parameter, and the method includes: the electronic equipment respectively determines the brightness of a first screen area, a second screen area and a third screen area at a first moment; the electronic equipment determines a first gamma parameter corresponding to the brightness of the first screen area at a first moment, sets a second gamma parameter of the second screen area and a second gamma parameter of the third screen area as the first gamma parameter, when the third screen area needs to display content, the electronic equipment adds a mask layer in the third screen area, and then the electronic equipment adjusts the transparency of the mask layer to be the first transparency according to the brightness difference value of the second screen area and the third screen area at the first moment.
In the embodiment of the application, because the brightness of the second screen area and the brightness of the third screen area are controlled by the same gamma parameter, the brightness of the second screen area and the brightness of the third screen area can be reduced by adjusting the same gamma parameter, and the brightness of the second screen area can be adjusted to be consistent with the brightness of the first screen area by replacing the second gamma parameter of the second screen area with the first gamma parameter corresponding to the first screen area, and the brightness of the third screen area is adjusted to be the same as the brightness of the second screen area, so that a brightness difference still exists between the third screen area and the first screen area, then, a mask layer is added in the third screen area, and the transparency of the mask layer is adjusted to be the first transparency according to the brightness difference of the second screen area and the third screen area at the first moment, so that the brightness difference between the screen areas of the electronic device can be reduced, and the display effects of different screen areas are consistent.
In one possible design, determining the brightness of the first screen region, the second screen region, and the third screen region at the first time point respectively includes: and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a screen-on state and manufacturing process parameters. In this way, the brightness of the three screen regions at the first moment can be determined conveniently in real time, so that the brightness difference of the three screen regions can be adjusted in real time.
In one possible design, the brightness of any one of the first, second, and third screen regions at a first time is determined using the following formula:
Figure BDA0002281738460000021
the method includes the steps that the Lum is the screen brightness of the screen area from the factory time to the first time, the Lum _ init is the maximum brightness of the screen area at the factory time, t is the total duration of the screen area in a bright screen state from the factory time to the first time, and t is the total duration of the screen area in the bright screen state from the factory time to the first time 0 The theoretical maximum light emitting time of the screen area is set, lev is the brightness of the light emitting unit with the maximum brightness at the first moment in all the light emitting units included in the screen area, and Lev _ max is the light emitting unit with the maximum brightness at the factory moment in all the light emitting units included in the screen area; gamma is a first manufacturing process parameter, k is a second manufacturing process parameter, and beta is a third manufacturing process parameter.
In one possible design, after determining the brightness of the first screen region, the second screen region, and the third screen region at the first time, respectively, before determining the first gamma parameter corresponding to the brightness of the first screen region at the first time, the method further includes: and determining that the brightness of the second screen area is greater than that of the first screen area and less than that of the third screen area. In this case, the luminance of the second screen region and the luminance of the third screen region, which have relatively large luminance, may be adjusted to reduce the difference between the luminance of the second screen region and the luminance of the third screen region, respectively, and the luminance of the first screen region.
In a possible design, the first gamma parameter corresponding to the brightness of the first screen region at the first time is determined, and the first gamma parameter corresponding to the brightness of the first screen region at the first time is determined according to a gray-scale value corresponding to the brightness of the first screen region at the first time and a first corresponding relationship, where the first corresponding relationship includes a corresponding relationship between the gamma parameter and the gray-scale value. This allows easy determination of the gamma parameter of the first screen area.
In one possible design, setting the second gamma parameter of the second screen region and the third screen region as the first gamma parameter may include: reading storage positions of second gamma parameters of the second screen area and the third screen area from a configuration file in an internal memory; deleting the second gamma parameter from the storage location of the second gamma parameter and writing the first gamma parameter into the storage location of the second gamma parameter.
In one possible design, before adding the mask layer to the third screen area, the method may further include: and determining that the third screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, the adjusting, by the electronic device, the transparency of the mask layer to the first transparency according to the brightness difference between the second screen area and the third screen area at the first time may include: the electronic equipment determines the percentage of the brightness difference value in the initial brightness of the third screen area according to the brightness difference value of the second screen area and the third screen area at the first moment; taking the percentage as a first transparency; and adjusting the transparency of the mask layer to be the first transparency. The transparency of the mask image layer can be 0-100, when the transparency is 0, the mask image layer is completely transparent, when the transparency is 100, the mask image layer is completely opaque, and the brightness difference value of the third screen area can be reduced to be consistent with the brightness of the first screen area by taking the percentage of the brightness difference value between the second screen area and the third screen area in the initial brightness of the third screen area as the first transparency.
In one possible design, before the electronic device adds the mask layer to the third screen area, the method may further include: acquiring display information of a third screen area; determining layer parameters of the mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency; after adding the mask layer to the third screen area, the method may further include: and setting layer parameters of the mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the mask layer change, determining the changed layer parameters; and setting the layer parameters of the mask layer according to the changed layer parameters. Therefore, when the layer parameters of the mask layer change, the layer parameters of the mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and width of the display screen, the coordinates of a mask layer and the height and width of the mask layer; and adjusting the mask attribute of the mask layer to be the first mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the mask layer is adaptively adjusted, so that the mask layer is adapted to the change of the third screen area.
In one possible design, the method may further include: when the brightness difference value of the third screen area and the second screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a second transparency; and adjusting the transparency of the mask layer to a second transparency. Therefore, when the brightness difference value between the third screen area and the second screen area changes, the transparency of the mask layer can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, the mask layer is deleted when the third screen area is closed to display. Therefore, when the third screen area is not displayed, the mask layer is deleted, and the system overhead can be saved.
In one possible design, when the screen direction of the electronic device changes or the screen resolution changes, the resolution of the mask layer is adjusted according to the changed direction or the changed resolution. Therefore, the mask layer can adapt to the change of the third screen area, and the problem that the actual display area of the third screen area is not matched with the screen resolution is avoided.
In one possible design, when the electronic device starts a screen capture or recording function, if it is determined that the content to be captured includes a mask layer, the mask layer is deleted from the content to be captured, and the screen capture or recording function is performed on the content to be captured with the mask layer deleted.
Through the design, when the screen is played in the electronic equipment with consistent content screen brightness after screen capture or screen recording, the situation that the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter can be avoided.
In one possible design, when the electronic device needs to share display content with the external display, if it is determined that the content to be shared includes a mask layer, the mask layer is deleted from the content to be shared, and the content to be shared with the deleted mask layer is shared with the external display.
Through the design, the situation that the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter when shared contents are played by the peripheral display with the consistent screen brightness can be avoided.
In a second aspect, an embodiment of the present application provides a compensation method, which is applied to an electronic device having a display screen, where the display screen includes a first screen area, a second screen area, and a third screen area, and the method includes: the electronic equipment respectively determines the brightness of a first screen area, a second screen area and a third screen area at a first moment; when the second screen area needs to display content, a first mask layer is added in the second screen area, and the transparency of the first mask layer is adjusted to be a second transparency according to a first brightness difference value of the first screen area and the second screen area at a first moment; when the third screen area needs to display content, a second mask layer is added in the third screen area, and the transparency of the second mask layer is adjusted to be a third transparency according to a second brightness difference value of the first screen area and the third screen area at the first moment.
In the embodiment of the application, the electronic device can adjust the transparency of the mask layers corresponding to the second screen region and the third screen region respectively by adding the mask layers in the second screen region and the third screen region respectively, so that the brightness of the second screen region is adjusted to be consistent with the brightness of the first screen region, and the brightness of the third screen region is also adjusted to be consistent with the brightness of the first screen region, thereby reducing the brightness difference between the screen regions of the electronic device, and enabling the display effects of different screen regions to be consistent.
In one possible design, determining the brightness of the first screen region, the second screen region, and the third screen region at the first time respectively includes: and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a screen-on state and manufacturing process parameters. In this way, the brightness of the three screen regions at the first moment can be determined conveniently in real time, so that the brightness difference of the three screen regions can be adjusted in real time.
In one possible design, the brightness of any one of the first, second, and third screen regions at a first time is determined using the following formula:
Figure BDA0002281738460000041
the method comprises the steps of obtaining a screen area, obtaining a first time point, obtaining a second time point, obtaining a Lum _ init, obtaining a maximum brightness of the screen area from the time point of leaving a factory to the first time point, obtaining a total length of the screen area in a bright screen state from the time point of leaving the factory to the first time point, and obtaining a Lum value of the screen area from the time point of leaving the factory to the first time point 0 The theoretical maximum light emitting time of the screen area is Lev, the Lev is the brightness of the light emitting unit with the maximum brightness at the first moment in the light emitting units included in the screen area, and Lev _ max is the brightness of the light emitting units included in the screen areaA light-emitting unit having the maximum luminance at the time of shipment; gamma is a first manufacturing process parameter, k is a second manufacturing process parameter, and beta is a third manufacturing process parameter.
In one possible design, after determining the brightness of the first screen region, the second screen region, and the third screen region at the first time point respectively, the method further includes: it is determined that the luminance of the second screen region is greater than the luminance of the first screen region and less than the luminance of the third screen region. In this case, the luminance of the second screen region and the luminance of the third screen region, which have greater luminance, may be adjusted to reduce the difference between the luminance of the second screen region and the luminance of the third screen region, respectively, and the luminance of the first screen region.
In a possible design, before adding the first mask layer to the second screen area, the method may further include: and determining that the second screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the first mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, before adding the second mask layer to the third screen area, the method may further include: and determining that the third screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the second mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, adjusting the transparency of the first mask layer to a second transparency according to a first luminance difference between the first screen region and the second screen region at a first time includes: determining a first percentage of the first brightness difference value in the initial brightness of the second screen area according to the first brightness difference value of the first screen area and the second screen area at the first moment; taking the first percentage as a second transparency; and adjusting the transparency of the first mask layer to be a second transparency. By setting the first brightness difference between the first screen region and the second screen region to be a first percentage of the initial brightness of the second screen region as the second transparency, the brightness of the second screen region can be reduced by the first brightness difference, thereby achieving reduction of the brightness of the second screen region to be consistent with the first screen region.
In one possible design, before adding the first mask layer to the second screen region, the method may further include: acquiring display information of a second screen area; determining layer parameters of the first mask layer according to the display information of the second screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the first mask layer; after adding the first mask layer to the third screen area, the method may further include: and setting layer parameters of the first mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the first mask layer change, determining the layer parameters after the first change; and setting first layer parameters of the first mask layer according to the first changed layer parameters. Therefore, when the layer parameters of the first mask layer change, the layer parameters of the first mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and width of the display screen, the coordinate of a first mask layer and the height and width of a mask layer; and adjusting the mask attribute of the first mask layer to be the first mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the first mask layer is adaptively adjusted, so that the first mask layer can adapt to the change of the second screen area.
In one possible design, the method may further include: when the brightness difference value of the second screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the second screen area as a fourth transparency; and adjusting the transparency of the first mask layer to be a fourth transparency. Therefore, when the brightness difference value between the first screen area and the second screen area changes, the transparency of the first mask layer of the second screen area can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, adjusting the transparency of the second mask layer to a third transparency according to a second luminance difference between the first screen area and the third screen area at the first time includes: determining a second percentage of the second brightness difference value in the initial brightness of the third screen area according to the second brightness difference value of the first screen area and the third screen area at the first moment; taking the second percentage as a third transparency; and adjusting the transparency of the second mask layer to be a third transparency. By taking the second brightness difference value between the first screen area and the third screen area as a second percentage of the initial brightness of the third screen area, as the third transparency, the brightness of the third screen area can be reduced by the second brightness difference value, thereby achieving the purpose of reducing the brightness of the third screen area to be consistent with the first screen area.
In one possible design, before adding the second mask layer to the third screen area, the method may further include: acquiring display information of a third screen area; determining layer parameters of a second mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the second mask layer; after adding the second mask layer to the third screen area, the method further comprises the following steps: and setting layer parameters of the second mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the first mask layer change, determining second changed layer parameters; and setting the layer parameters of the second mask layer according to the layer parameters after the second change. Therefore, when the layer parameters of the second mask layer change, the layer parameters of the second mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a second mask attribute corresponding to the changed direction or the changed resolution; the second mask attribute comprises the height and width of the display screen, the coordinates of the second mask layer and the height and width of the second mask layer, and the electronic equipment adjusts the mask attribute of the second mask layer into the second mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the second mask layer is adaptively adjusted, so that the second mask layer can adapt to the change of the third screen area.
In one possible design, the method may further include: when the brightness difference value of the third screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a fifth transparency; and adjusting the transparency of the second mask layer to a fifth transparency. Therefore, when the brightness difference value between the first screen area and the third screen area changes, the transparency of the second mask layer of the third screen area can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, when the second screen area is closed to display, the first mask layer is deleted; and when the third screen area is closed to display, deleting the second mask layer. Therefore, when any one of the second screen area and the third screen area is not displayed, the mask layer corresponding to the corresponding screen area is deleted, and the system overhead can be saved.
In one possible design, when a screen direction of the electronic device changes or a screen resolution changes, resolutions of the first mask layer and the second mask layer are respectively adjusted according to the changed direction or the changed resolution. Therefore, the mask layer can adapt to the resolution change of the corresponding screen area, and the problem that the actual display area of the screen area is not matched with the resolution of the screen is avoided.
In one possible design, when the electronic device starts a screen capture or recording function, if the content to be captured includes a first mask layer, deleting the first mask layer from the content to be captured, and executing the screen capture or recording function on the content to be captured with the first mask layer deleted; and if the content to be intercepted is determined to comprise the second mask layer, deleting the second mask layer from the content to be intercepted, and executing a screen intercepting or screen recording function on the content to be intercepted of which the second mask layer is deleted.
Through the design, when the screen is played in the electronic equipment with consistent content screen brightness after screen capture or screen recording, the situation that the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter can be avoided.
In one possible design, when the electronic device needs to share display content with the external display, if the content to be shared includes a first mask layer, deleting the first mask layer from the content to be shared, and sharing the content to be shared with the deleted first mask layer with the external display; and if the content to be shared comprises the second mask layer, deleting the second mask layer from the content to be shared, and sharing the content to be shared with the deleted second mask layer to the external display.
Through the design, the situation that the brightness of the area where the mask layer is located is relatively low and the brightness of other places is relatively high when the shared content is played by the peripheral display with the consistent screen brightness can be avoided.
In a third aspect, an embodiment of the present application further provides an electronic device. The electronic equipment comprises a display screen, one or more processors, a first display area, a second display area, a third display area and a display screen, wherein the display screen comprises the first display area, the second display area and the third display area which has the same driving circuit structure with the second display area; a memory; one or more programs; wherein the one or more programs are stored in the memory, the one or more programs including instructions which, when executed by the electronic device, cause the electronic device to perform any one of the above-described first aspect and its first possible design, or to perform any one of the above-described second aspect and its second possible design.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a module/unit that performs the method of the first aspect or any one of the possible designs of the first aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a fifth aspect, an embodiment of the present application further provides a chip, where the chip is coupled to a memory in an electronic device, and is configured to call a computer program stored in the memory and execute the technical solution of the first aspect and any possible design of the first aspect of the embodiment of the present application, or execute the technical solution of any possible design of the second aspect and any possible design of the second aspect of the embodiment of the present application; "coupled" in the context of this application means that two elements are directly or indirectly joined to each other.
In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions are configured to enable the computer to execute the technical solution of the first aspect and any one of the possible designs of the first aspect of the embodiment of the present application, or to execute the technical solution of the second aspect and any one of the possible designs of the second aspect of the embodiment of the present application.
In a seventh aspect, a program product in the embodiments of the present application includes program instructions, and when the program instructions are run on an electronic device, the electronic device is enabled to execute a technical solution of any one of the first aspect and the first aspect of the embodiments of the present application, or execute a technical solution of any one of the second aspect and the second aspect of the embodiments of the present application.
Drawings
Fig. 1a is a schematic shape diagram of a fully unfolded mobile phone according to an embodiment of the present application;
fig. 1b is a schematic view of a partially folded mobile phone according to an embodiment of the present disclosure;
fig. 1c is a schematic shape diagram of a fully folded mobile phone according to an embodiment of the present disclosure;
fig. 1d is a schematic diagram of a luminance difference between a main screen, a side screen and an auxiliary screen of a mobile phone according to an embodiment of the present application;
fig. 1e is a schematic diagram of a software structure of the mobile phone 100 according to the embodiment of the present application;
fig. 2 is a schematic diagram of a hardware structure of the mobile phone 100 according to an embodiment of the present disclosure;
fig. 3a is a schematic diagram of a software structure of the mobile phone 100 according to an embodiment of the present application;
fig. 3b is a schematic diagram of another software structure of the mobile phone 100 according to the embodiment of the present application;
FIG. 4 is a timing diagram illustrating a process for creating a mask layer according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a process for changing transparency of a mask layer according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a screen resolution of the mobile phone 100 according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating changing a resolution of a mask layer according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating a change in resolution of a mobile phone when a folding state of the mobile phone is changed according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a screenshot scenario provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of a video recording or multi-display scenario provided by an embodiment of the present application;
fig. 11 is a schematic flowchart of a compensation method according to an embodiment of the present application;
FIG. 12 is a schematic flow chart of another compensation method provided in the embodiments of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For example, the display screen includes a first screen region, a second screen region, and a third screen region, where the second screen region and the third screen region may be controlled by a same gamma parameter, and the control of the brightness by the same gamma parameter may also be achieved by controlling by a same driving circuit of the second screen region and the third screen region. Since the brightness of the second screen region and the third screen region is controlled by the same gamma parameter, so that the adjustment amount of the second screen region is the same as that of the third screen region, if there is a brightness difference between the second screen region and the third screen region, the brightness difference between the second screen region and the first screen region and the brightness difference between the third screen region and the first screen region can be reduced by controlling the brightness by the same gamma parameter, and the brightness difference between the second screen region and the third screen region cannot be reduced. In order to reduce the brightness difference between the screen regions included in the display screen, the following embodiments provide a compensation method for reducing the brightness difference between the screen regions of the electronic device, so that the display effects of different screen regions are consistent.
It should be noted that, in the embodiment of the present application, the brightness of each screen region refers to the actual brightness of the screen region. The difference between the luminance of the main screen and the luminance of the sub screen is taken as an example to explain, that is, when the luminance of the main screen is not consistent with the luminance of the sub screen, even if the same luminance parameter (for example, the luminance parameter of the main screen refers to the percentage of the actual luminance of the main screen to the maximum luminance (also referred to as the initial luminance) of the main screen when the main screen leaves the factory, which may be referred to as the luminance percentage for short) is set for the main screen and the sub screen, the luminance of the main screen and the luminance of the sub screen are not necessarily the same, for example, the maximum luminance of the main screen is 500nit and the maximum luminance of the sub screen is 400nit, the luminance parameter of the main screen and the luminance parameter of the sub screen are both set to 50% by the user, and actually, the luminance of the main screen is 250nit and the luminance of the sub screen is 200nit, so the luminance of the main screen and the luminance of the sub screen are not consistent. For convenience of description, the initial maximum brightness of the main screen, the sub-screen, and the side screen is used as an example, so that the brightness of the main screen, the sub-screen, and the side screen can be expressed by a brightness parameter, that is, a brightness percentage, unless otherwise specified.
The electronic device in the embodiment of the application can be a mobile phone, a tablet computer (pad), a notebook computer, and the like. The electronic device may be an electronic device having different screen areas (or display areas), and the different screen areas may be folded, stretched, or partially displayed. Taking the electronic device as an example of a mobile phone with a foldable screen, the foldable screen of the mobile phone may be an integrated flexible display screen, or may be a display screen composed of at least two rigid screens and a flexible screen located between the two rigid screens. The foldable screen provided by the embodiment of the present application is exemplified by including three parts, as shown in fig. 1a, 1b and 1c, the foldable screen may include a first screen 111, a second screen 112, and a bendable region 112 connecting the first screen 111 and the second screen 113.
The following describes shapes of the folding screen of the mobile phone in different states with reference to the drawings.
Fig. 1a shows a schematic shape of a cell phone when it is fully deployed. As shown in fig. 1a, when the mobile phone is unfolded, the housing 120 of the mobile phone is unfolded, and at the same time, the folding screen 110 is also unfolded. The foldable screen 110 may include a first screen 111, a bendable region 112, and a second screen 113, and when the foldable screen 110 of the mobile phone is completely unfolded, the first screen 111, the bendable region 112, and the second screen 113 are connected to form a whole screen, and at this time, the gravity sensor may detect that an included angle a between the first screen 111 and the second screen 113 is 180 ° (an actual folding angle may not reach 180 °, based on an actually reported folding angle).
In the embodiment of the present application, when the first screen 111 or the second screen 113 is rotated, the foldable screen 110 can be folded through the bendable region 112, when the foldable screen of the mobile phone is partially folded, see fig. 1b, and when the foldable screen of the mobile phone is fully folded, see fig. 1c.
As shown in fig. 1b and 1c, when the mobile phone is folded, the housing 120 of the mobile phone is also folded; at the same time, the folding screen 110 is also folded. While fig. 1b and 1c show the foldable screen 110 as being exposed when the phone is folded, it should be understood that the housing 120 may be exposed when the phone is folded, and the foldable screen 110 may be located inside, or a portion of the foldable screen 110 may be exposed.
In the process of the folding screen 110 of the mobile phone from being completely unfolded to being completely folded, an included angle a between the first screen 111 and the second screen 113 becomes smaller and smaller. As shown in fig. 1a, when the folding screen 110 is fully unfolded, the angle between the first screen 111 and the second screen 113 is 180 °. As shown in fig. 1b, when the foldable screen 110 of the mobile phone is partially folded, the gravity sensor 180E may detect that the angle between the first screen 111 and the second screen 113 is 40 °. As shown in fig. 1c, when the foldable screen 110 of the mobile phone is completely folded, the sensor detects that the included angle between the first screen 111 and the second screen 113 is 0 degree (the actual folding angle may not reach 0 °, based on the actually reported folding angle), and at this time, the first screen 111 and the second screen 113 are located on the exposed side when the mobile phone is folded.
When the mobile phone is folded, the second screen 113 faces the user for example, the second screen 113 faces the user and is called a main screen, the first screen 111 is called an auxiliary screen on the back, the bendable region 112 is called a side screen, when the mobile phone is folded, due to different use scenes and use habits of the user on the main screen and the auxiliary screen, for example, the user is used to use the main screen when the mobile phone is folded, and the auxiliary screen is in a screen-saving state, the different use time lengths of the main screen, the side screen and the auxiliary screen can be found after the mobile phone is used for a period of time, so that the problem that the aging degrees of the main screen, the side screen and the auxiliary screen are different can be caused.
The main screen is used for the most time generally, and the luminous efficiency of pixels is influenced due to the loss of display materials, so that the luminous materials of the main screen are aged the fastest, the service life of the auxiliary screen is shorter than that of the main screen, the side screen is a folding area and is not used for a long time, and the aging degree is the lowest. For example, taking the initial brightness of three screens as 100%, after a period of use, as shown in fig. 1d, the brightness of the main screen is 94.8%, the brightness of the sub-screen is 98.2%, and the brightness of the side screen is 100%. When the mobile phone is completely unfolded, the main screen, the side screen and the auxiliary screen form a screen, a user faces to the whole screen, and when the whole screen is displayed, the user can find the problem that the display brightness of different areas of the whole screen is inconsistent.
In the embodiment of the present application, a gamma (gamma) calibration mode may be adopted to compensate for the brightness difference between the main screen, the side screen, and the sub-screen, and it should be noted that, when the brightness of each screen is adjusted by adopting a gamma calibration mode for the electronic device with a foldable screen at present, the brightness is limited by the circuit structure, and the side screen can only be adjusted together with the main screen, or the side screen can only be adjusted together with the sub-screen. If the side screen rotates along with the main screen when the electronic device is folded, the side screen and the driving circuit of each pixel in the main screen can be controlled together, that is, the brightness of the main screen and the side screen can be adjusted simultaneously by controlling the driving circuit. If the side screen rotates along with the sub-screen when the electronic device is folded, the side screen and the driving circuit of each pixel in the sub-screen can be controlled together, that is, the brightness of the sub-screen and the side screen can be adjusted simultaneously by controlling the driving circuit. In the following embodiments, the side panel and the sub panel are adjusted together as an example.
Taking the compensation of the brightness difference between the main screen, the side screen and the sub screen shown in fig. 1d as an example, the brightness of the side screen and the sub screen is adjusted by gamma (gamma) calibration, for example, the brightness of the side screen and the sub screen in fig. 1d is respectively reduced by 3.4%, as shown in fig. 1e, the brightness of the side screen is 96.6%, and the brightness of the sub screen is 94.8%, that is, after gamma calibration, the brightness of the sub screen and the main screen are the same, but the brightness of the side screen cannot be the same as the brightness of the main screen and the sub screen.
Taking the luminance of the auxiliary screen as 98.2% and the luminance of the side screen as 100%, respectively reducing the luminance of the side screen and the luminance of the auxiliary screen by 3.4% by using a gamma calibration method, the process is as follows: the value of the gamma parameter is 2.1-2.3, which is corresponding to the gray scale (0-255), and the gray scale represents the brightness level. For example, taking the initial brightness of the main screen as 500nit (corresponding to a gray level value of 255) and the initial brightness of the sub-screen as 400nit as an example, after the electronic device is used for a period of time, the brightness of the main screen is reduced to 400nit, the corresponding gray level value is 204, and the gamma parameter of the main screen can be determined to be 2.26 according to the corresponding relationship between the gamma parameters (2.1-2.3) and the gray levels (0-255); the brightness of the auxiliary screen is reduced to 300nit, the corresponding gray scale value is 191, and the gamma parameter of the main screen can be determined to be 2.25 according to the corresponding relation between the gamma parameters (2.1-2.3) and the gray scales (0-255). It should be noted that the gray scale value of each screen is related to the initial brightness of the screen, and the gray scale values corresponding to the brightness at a certain time may be different for two screens with different initial brightness.
It should be noted that the brightness of the sub-screen and the side-screen is controlled by the same gamma parameter, and when the brightness of the side-screen and the sub-screen needs to be adjusted together in a gamma calibration manner, the brightness of the sub-screen and the brightness of the side-screen are adjusted at the same time, that is, the adjustment amount of the brightness of the sub-screen and the brightness of the side-screen are the same. For example, when the gamma parameter corresponding to the luminance of the sub-screen is adjusted to 2.28, the luminance of the sub-screen is reduced to 92% and the luminance is reduced by 3% in total, for example, the luminance of the sub-screen is 95%, the luminance of the side screen is 98%, and the gamma parameter corresponding to the luminance of the sub-screen is 95%, the luminance of the side screen is also reduced by 3%, that is, the luminance of the side screen is 95%.
The method comprises the steps that gamma parameters corresponding to the current brightness of a main screen and the current brightness of an auxiliary screen are stored in a configuration file of an internal memory, a first gamma parameter corresponding to the current brightness (94.8%) of the main screen can be determined according to a gray level value corresponding to the current brightness of the main screen and the corresponding relation between the gamma parameter and the gray level value, then a storage position of a second gamma parameter corresponding to the current brightness (96.6%) of the auxiliary screen is read from the configuration file of the internal memory, the first gamma parameter is written into the storage position of the second gamma parameter in the configuration file, namely the first gamma parameter is used for replacing the second gamma parameter, the brightness of the auxiliary screen is reduced to be consistent with that of the main screen, namely reduced to 94.8%, the brightness of the auxiliary screen is reduced by 3.4%, and the brightness of the side screen is reduced by 3.4%.
The embodiment of the application provides a compensation method, which is used for performing brightness compensation on a screen with low brightness attenuation when aging degrees of a plurality of screens (such as a main screen, a side screen and an auxiliary screen) included in an electronic device are different, for example, brightness differences exist among the main screen, the auxiliary screen and the side screen, so that brightness display effects of the screens are consistent.
Taking the example that the brightness of the main screen is greater than that of the auxiliary screen, and the brightness of the auxiliary screen is greater than that of the side screen, the embodiments of the present application have various possible ways to implement brightness compensation for the screen with low brightness attenuation, which may include, but are not limited to, the following:
in the mode 1, gamma calibration can be performed on the side screen and the auxiliary screen together, so that the brightness of the side screen and the brightness of the auxiliary screen can be reduced by the same brightness value, for example, the brightness of the auxiliary screen is reduced to be consistent with the brightness of the main screen, but the brightness of the side screen is still higher than the brightness of the main screen, and the brightness of the side screen can be adjusted by combining a mask layer, wherein the mask layer is used for continuously reducing the brightness of the side screen to be consistent with the brightness of the main screen. For convenience of description, the layer used for adjusting the brightness is referred to as a mask layer in this embodiment of the application, and in other possible embodiments, other names may also be used, which are not specifically limited.
Taking the foldable screen shown in fig. 1d as an example, gamma calibration is performed on the side screen and the sub-screen, so that the luminance of both the side screen and the sub-screen can be reduced by 3.4%, that is, the luminance of the side screen is reduced by 96.6%, and the luminance of the sub-screen is reduced by 94.8%. And a mask layer is created for the side screen, and the brightness of the side screen can be continuously reduced by 1.8% by adjusting the transparency of the mask layer to be 1.8%, namely the brightness of the side screen is reduced to be 94.8%. Therefore, the brightness difference among the three screens can be reduced by combining the gamma calibration and the mask layer, so that the display effects of the three screens are consistent.
And 2, respectively creating mask layers for the auxiliary screen and the side screen, reducing the brightness of the side screen to be consistent with the brightness of the main screen by adjusting the transparency of the mask layer of the side screen, and reducing the brightness of the auxiliary screen to be consistent with the brightness of the main screen by adjusting the transparency of the mask layer of the auxiliary screen.
Taking the folding screen shown in fig. 1d as an example, the luminance of the main screen is 94.8%, the luminance of the side screen is 100%, the luminance of the sub-screen is 98.2%, a mask layer is created and set to a transparency of 5.2% for the side screen, and a mask layer is created and set to a transparency of 3.4% for the sub-screen, so that the luminance of both the sub-screen and the sub-screen can be reduced to 94.8%. The brightness of the two screens with higher brightness can be reduced by adjusting the transparency through the mask layer, so that the brightness difference among the three screens is reduced, and the display effects of the three screens are consistent.
The mask layer is covered on the initial layer of the display picture, namely, the brightness compensation is realized by setting the transparency of the mask layer on the upper layer of the initial layer, the value of the transparency is set to be 0 percent, which represents that the mask layer is completely transparent, the value of the transparency is set to be 100 percent, which represents that the mask layer is completely opaque, the value of the transparency is set between 0 percent and 100 percent, and the larger the value is, the lower the transparency is.
It should be noted that, in the mask layer related in the embodiment of the present application, adjustment of the screen brightness is mainly achieved by changing the transparency, and the mask layer may be used by being superimposed on a layer with another function, so that the function of the layer with the other function is not affected. If the mask layer is superposed on other layers and the transparency value of the mask layer is greater than 0, only the brightness of the area where the mask layer exists is affected.
The embodiments of the present application refer to a plurality of the same or greater than two.
It should be noted that the term "and/or" is only one kind of association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified. Moreover, the terms "first," "second," and the like in the description of the embodiments of the present application are used for distinguishing between descriptions and not necessarily for describing a sequential or chronological order, or for indicating or implying a relative importance.
Embodiments of electronic devices and methods for using such electronic devices are described below. In some embodiments of the present application, the electronic device may be a portable terminal, such as a cell phone, a tablet computer, or the like, that includes a display screen. Exemplary embodiments of the portable electronic device include, but are not limited to, a mount
Figure BDA0002281738460000111
Or other operationsA portable electronic device of the system. The portable electronic device may also be other portable electronic devices such as a digital camera. It should also be understood that in other embodiments of the present application, the electronic device may not be a portable electronic device, but may be a desktop computer having a display screen, etc.
Taking the electronic device as a mobile phone as an example, fig. 2 shows a schematic diagram of a hardware structure of the mobile phone 100.
The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
Wherein the controller may be a neural center and a command center of the cell phone 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The processor 100 can run the software code of the compensation algorithm provided in the embodiment of the present application to implement a process of compensating for the brightness difference of each screen of the electronic device.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the mobile phone 100, and may also be used to transmit data between the mobile phone 100 and peripheral devices.
The charging management module 140 is configured to receive a charging input from a charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the mobile phone 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the handset 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the handset 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The mobile phone 100 implements the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the cell phone 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. The cameras 193 may include a front camera and a rear camera.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the cellular phone 100 by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Wherein the storage program area may store an operating system, software codes of at least one application program, and the like. The data storage area can store data (such as images, videos and the like) generated during the use of the mobile phone 100. In addition, the internal memory 121 may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like.
The internal memory 121 may further store software codes of the compensation method provided in the embodiment of the present application, and when the processor 110 runs the software codes, the flow steps of the compensation method are executed to implement a process of compensating the brightness of each screen of the electronic device.
The internal memory 121 may also store usage statistics corresponding to the brightness of each screen, a calculated compensation value, transparency, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
Of course, the software code of the compensation method provided in the embodiment of the present application may also be stored in the external memory, and the processor 110 may execute the software code through the external memory interface 120 to execute the flow steps of the compensation method, so as to implement the process of compensating the brightness of each screen of the electronic device. The usage statistical data corresponding to the brightness of each screen acquired by the mobile phone 100, the calculated compensation value, the aging model, various correspondence relationships, and the like may also be stored in the external memory.
The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The gyro sensor 180B may be used to determine the motion attitude of the cellular phone 100. In some embodiments, the angular velocity of the handpiece 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the handset 100 calculates altitude, aiding in positioning and navigation, from the barometric pressure measured by the barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The handset 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the handset 100 is a flip phone, the handset 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the cellular phone 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the handset 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The cell phone 100 can measure the distance by infrared or laser. In some embodiments, a scene is photographed and the cell phone 100 may utilize the distance sensor 180F to measure distance to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The cellular phone 100 emits infrared light to the outside through the light emitting diode. The cellular phone 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the cell phone 100. When insufficient reflected light is detected, the cell phone 100 can determine that there are no objects near the cell phone 100. The mobile phone 100 can detect that the user holds the mobile phone 100 by the proximity light sensor 180G and speaks near the ear, so as to automatically turn off the screen and achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The handset 100 may adaptively adjust the brightness of the display 194 according to the perceived ambient light level. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The mobile phone 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a photograph of the fingerprint, answer an incoming call with the fingerprint, and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the handset 100 implements a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the battery 142 is heated by the cell phone 100 when the temperature is below another threshold to avoid abnormal shutdown of the cell phone 100 due to low temperature. In other embodiments, when the temperature is lower than a further threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100, different from the position of the display 194.
The bone conduction sensor 180M can acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human voice vibrating a bone mass. The bone conduction sensor 180M may also contact the human body pulse to receive the blood pressure pulsation signal.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The cellular phone 100 may receive a key input, and generate a key signal input related to user setting and function control of the cellular phone 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the cellular phone 100 by being inserted into the SIM card interface 195 or being pulled out from the SIM card interface 195.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The following embodiments can be implemented in the cellular phone 100 having the above-described structure.
The embodiment of the present application further provides a software architecture, as shown in fig. 3a, the software architecture of the mobile phone 100 may divide the software into a plurality of layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, which are, from top to bottom, an application layer (referred to as an application layer), an application framework layer (referred to as a framework layer), an Android runtime (Android runtime) and system library, and a kernel layer (also referred to as a driver layer).
The application layer may include a series of application packages. As shown in fig. 3a, the application layer may include a system application and a third-party application, where the system application may include settings, screen capture, screen recording, user Interface (UI), short messages, and the like, and the third-party application may include maps, navigation, music, videos, and the like.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3a, the application framework layers may include a window manager, a content provider, a telephony manager, a resource manager, a notification manager, a view system, a screen loss modeling module, and a mask layer drawing module, among others.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication functions of the handset 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
And the screen loss modeling module is used for calculating the position, the compensation value and the transparency (Alpha value) of the area to be compensated in each screen.
And the mask image layer drawing module is used for drawing a mask image layer for the screen needing brightness compensation and setting an Alpha value for the mask image layer.
For clarity in describing the functionality of the screen loss modeling module, the mask layer rendering module, and the surface manager, further description is provided below in conjunction with FIG. 3 b. As shown in fig. 3 b:
and the screen loss modeling module can periodically read the use data and the aging formula of each screen in Flash in the hardware layer. Wherein, the aging formula can be expressed as:
Figure BDA0002281738460000151
where, lum is the screen brightness after the time t, lum _ init is the maximum brightness of the screen, t is the accumulated value of the historical use time (i.e. the time when the screen is in the bright screen state), t is 0 And (2) setting the theoretical maximum light-emitting duration of the screen area, wherein Lev is the brightness of a light-emitting unit with the maximum brightness in the OLED material of the screen at the current moment, lev _ max is the maximum brightness of the light-emitting unit in the OLED material of the screen, and all brightness-related parameters in the formula (1) are actual brightness. Wherein γ, k, and β are collectively referred to as fabrication process parameters, specifically, γ is a parameter related to maximum brightness, k is a constant determined by the OLED process, and β is a parameter related to the OLED material and the fabrication process.
For example, the brightness of the light-emitting units in the screen is stored in a register, and as the service time of the screen (i.e. the time of being on the bright screen) is prolonged, the brightness of each light-emitting unit stored in the register is also attenuated, and the brightness of each light-emitting unit can be read from the register at any time, for example, taking the main screen as an example, the brightness of each light-emitting unit can be read from the register at the time of factory shipment (i.e. any time before the main screen is on the bright screen for the first time), and a maximum brightness is determined as the maximum brightnessLev _ max in equation (1); the luminance of each light emitting unit included in the main screen may be read at a first time, and then a maximum luminance may be determined from each light emitting unit as the value of Lev in formula (1), γ, k, β, t 0 The Lum _ init is a known constant when being delivered out of a factory and is stored in a register; t is the total duration of the screen area in a bright screen state from the factory time to the first time; then, the brightness Lum of the main screen can be calculated according to the formula (1).
In the above formula (1), the time t is the time when the screen is in the bright screen state, and the brightness is calculated by counting the time when the screen is in the bright screen state, and the brightness and the display color are not considered, in other examples, the use time of the screen respectively at different brightness or different color may also be counted to determine the brightness of the screen after the screen decays in the use time t.
The screen loss modeling module can also respectively calculate the actual brightness of each screen after the brightness of each screen is attenuated by the time t according to the use data of each screen and the aging formula.
And calculating the brightness difference values of the main screen, the auxiliary screen and the side screen respectively by taking the screen with the lowest actual brightness as reference so as to adjust the brightness of the auxiliary screen and the side screen and enable the brightness of the side screen and the brightness of the auxiliary screen to be consistent. Taking the above mode 1 as an example, gamma calibration is performed on the secondary screen and the side screen first to make the brightness of the secondary screen consistent with that of the main screen, then a mask layer is added to the side screen, and then an Alpha value required to be set in the mask layer of the side screen is calculated.
The system comprises a mask layer drawing module, a surfefinger and a frame buffer (frame buffer), wherein the mask layer drawing module is used for drawing a mask layer, an Alpha value of the mask layer is set, then the mask layer is transmitted to the surfflinger, the surfflinger synthesizes the mask layer received from the mask layer drawing module with an initial layer, synthesized data are sent to an LCD through the frame buffer for displaying, then the synthesized data can be displayed on a display screen, and human eyes can see that the display brightness of the whole screen reaches consistency.
The mask image layer drawing module can comprise a resolution self-adaptive module, a screen turning direction self-adaptive module, a screen capture self-adaptive module, a screen recording self-adaptive module and an explicit self-adaptive module. The resolution self-adaptive module can adjust the resolution of the mask layer when the system resolution is changed so as to ensure that the area displayed on the physical position of the mask layer on the whole display screen is unchanged.
The screen rotation direction self-adaptive module can be used for adjusting the direction of the mask layer when the screen rotates, so that the physical position of the compensated region on the whole display screen is unchanged.
And the screen capture self-adaptive module is used for traversing all layers when a screen capture event is received, and capturing the interface formed by the layers except the mask layer.
And the screen recording self-adaptive module is used for traversing all layers when receiving a screen recording event and intercepting an interface formed by the layers except the mask layer.
And the explicit adaptive module is used for sending the data corresponding to the layers except the mask layer to the external display equipment for display when the content to be displayed is sent to the external display equipment.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system. The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surfflectors), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least includes a frame buffer (frame buffer), a display driver, a sensor driver, an audio driver, a camera driver, a display subsystem (DSS) driver, and the like, which is not limited in this embodiment.
For ease of understanding, a specific example of the compensation of the brightness of each screen in the above mode 1 will be described below with reference to fig. 3 b.
In the above mode 1, gamma calibration is performed on the side screen and the sub-screen with higher brightness in fig. 1d, that is, the brightness of both the side screen and the sub-screen is reduced by 3.4% by means of gamma calibration, that is, the brightness of the side screen is reduced to 96.6%, and the brightness of the sub-screen is reduced to 94.8%. Then, a mask layer is created for the side screen, and the brightness of the side screen can be continuously reduced by 1.8% by adjusting the transparency of the mask layer, that is, the brightness of the side screen is reduced to 94.8%. The process of creating the mask layer is described below by taking the creation of the mask layer of the side screen as an example.
Please refer to fig. 4, which is a timing diagram illustrating a process of creating a mask layer according to an embodiment of the present application. As shown in fig. 4, the method mainly comprises the following steps:
in step 401, a surface manager (surfflecger) initializes the screen display status of the side screen. For example, the screen display state may be display, or, the display may be turned off.
Step 402, a mask layer Display Thread (Thread) is created through an SF decoupling function (surfaceflexerex).
At step 403, the mask layer display thread notifies the display engine manager process to create an object that includes relevant information for determining whether the mask layer properties are supported.
Step 404, the mask layer display thread acquires the object.
Step 405, the mask layer display thread determines whether the side screen supports the result of the mask layer characteristics according to the obtained object.
In step 406, the mask layer display thread returns a result (whether the side screen supports the mask layer characteristics) to the SF decoupling function. And if the result received by the SF decoupling function is that the side screen supports the mask layer characteristics, starting the mask thread after receiving the completion of the starting of the main thread.
Step 407, the surface manager notifies the SF decoupling function: the main thread starts to complete.
In step 408, the SF decoupling function starts the masking thread.
And step 409, starting and running a mask layer display thread.
Step 410, the mask layer display thread obtains the mask graphic display information from the SF.
In step 411, the mask layer display thread acquires display information.
And step 412, the mask layer display thread determines layer parameters according to the display information.
In step 413, the mask layer display thread creates an SF client (surface component client) that can act as a proxy object for communicating with the surface manager.
In step 414, the SF client returns an SF client identifier to the mask layer display thread.
Step 415, the mask layer display thread creates a mask layer in the SF client.
In step 416, the sf client returns a handle to the mask layer display thread.
Step 417, the mask layer display thread sets layer parameters of the mask layer at the SF client through the handle, where the layer parameters may be resolution, direction, size, transparency, and the like of the mask layer.
In step 418, the sf client returns the layer parameter setting result to the mask layer display thread.
And step 419, the display thread of the mask layer creates a callback function.
In step 420, the callback function creation is complete.
In step 421, the mask layer display thread registers a callback function with the display engine manager process. And the mask layer display thread acquires the layer parameters of the side screen from the display engine manager process in a mode of registering a callback function.
Step 422, the mask layer display thread waits for a signal trigger. Specifically, when the mask layer display thread receives a signal triggered by an event such as a change in screen direction or a change in resolution, the mask layer display thread triggers resetting of the layer parameters of the mask layer.
Taking the luminance of the side screen as an example of 96.6%, after the mask layer (the initial transparency is 0%, i.e., completely transparent) is created for the side screen, the luminance of the side screen may be continuously reduced by 1.8% by adjusting the transparency of the mask layer so as to adjust the luminance of the side screen to be consistent with the sub-screen (the luminance is 94.8%), and then the setting of the mask layer may be set to 1.8% so as to change the transparency to 1.8%. Referring now to FIG. 5, a schematic diagram of a process for changing the transparency of the mask layer is shown. As shown in fig. 5, the method mainly comprises the following steps:
step 501, the display engine manager (display engine manager) process calls a callback function (display engine callback).
Step 502, the display engine manager process notifies the mask layer display thread (meta layer display: thread) by calling the onevent class in the callback function: and the layer parameters of the mask layer.
Step 503, the mask layer display thread checks whether the transparency in the layer parameters of the mask layer changes according to the obtained layer parameters of the mask layer.
Step 504, when the transparency of the mask layer display thread changes, the changed transparency is sent to the SF client, for example, the transparency of the mask layer before being changed is 0%, and the transparency after being changed is 1.8%.
And 505, the SF client updates the transparency of the mask layer.
When the screen direction or the screen resolution of the mobile phone changes, the size or the dimension of the mask layer also needs to be changed so as to adapt to the size of the screen, and therefore the whole screen can be shielded by the mask layer, and the consistency of the whole brightness of the screen can be realized. As shown in table 1 below, the mask attributes (wd, hd, x, y, w, h) of the side screen corresponding to different resolutions and directions are shown, where wd is the width of the entire screen of the mobile phone, hd is the height of the entire screen of the mobile phone, (x, y) is the coordinates of the mask layer, w is the width of the mask layer, and h is the height of the mask layer.
Table 1 shows the mask attributes of the side panels corresponding to different resolutions and directions
Resolution ratio 1100*1240(HD+) 1650*1860(FHD+) 2200*2480(WQHD+)
Direction 0 (1240,1100,0,574,1240,80) (1860,1650,0,861,1860,120) (2480,2200,0,1148,2480,160)
Direction 3 (1100,1240,446,0,80,1240) (1650,1860,669,0,120,1860) (2200,2480,892,0,160,2480)
Direction 2 (1240,1100,0,446,1240,80) (1860,1650,0,669,1860,120) (2480,2200,0,892,2480,160)
Direction 1 (1100,1240,574,0,80,1240) (1650,1860,861,0,120,1860) (2200,2480,1148,0,160,2480)
Table 1 shows mask attributes of mask layers corresponding to the mobile phone screen in each direction when the resolution of the mobile phone screen is 1100 × 1240, 1650 × 1860, 2200 × 2480, respectively, and the example of the resolution of the mobile phone screen is 2200 × 2480 is given, and when the direction of the mobile phone screen is changed, the mask attributes of the mask layers are also changed. As shown in fig. 6, the screen direction of the mobile phone is direction 1, when the screen of the mobile phone is rotated by 90 ° to the left, the screen direction of the mobile phone is direction 0, when the screen of the mobile phone is rotated by 90 ° to the left, the screen direction of the mobile phone is direction 3, and when the screen of the mobile phone is rotated by 90 ° to the left, the screen direction of the mobile phone is direction 2. When the mobile phone screen continues to rotate 90 degrees to the left, the screen direction of the mobile phone is direction 1. For example, the direction of the screen of the mobile phone is direction 1 as an example, in this case, the width of the mobile phone screen is 2200, the height is 2480, the coordinate position (x, y) of the mask layer of the corresponding side screen is (1148, 0), the width of the mask layer is 160, and the height is 2480.
In the following, how to change the resolution and/or size of the mask layer when the direction or resolution of the mobile phone screen changes is described in detail. As shown in fig. 7, the method mainly includes the following steps:
in step 701, the application/other SF client sends an event that the screen direction/resolution changes to an SF decoupling function (surface flanger Ex).
In step 702, the SF decoupling function informs the mask layer display thread (meta layer display: thread) of the occurrence of the event by setting a transaction status function.
Step 703, the mask layer display thread checks whether the resolution and direction of the screen change, and obtains a check result.
Step 704, the mask layer display thread sends the check result to the SF decoupling function.
Step 705, the sf decoupling function sends the inspection result to the surface manager (surface flicker).
In step 706, the surface manager updates the resolution and/or size of the mask layer if the checking result indicates that the resolution and/or screen direction has changed. Of course, the surface manager does not update the resolution and/or size of the mask layer if it determines that the resolution and/or screen orientation has not changed as a result of the check.
The following describes a process of layer resolution caused by a change in the physical state of the mobile phone screen, taking an example of changing the direction of the mobile phone screen from the unfolded state to the folded state. As shown in fig. 8, the method mainly includes the following steps:
step 801, the mobile phone is in a full screen display state.
Step 802, a sensor (sensor) detects that the mobile phone is changed from the unfolded state to the folded state, and sends a notification that the folded state of the mobile phone is changed to a sensor manager/state service. Thereafter, step 803 and step 808 are performed, respectively.
At step 803, the sensor state manager notifies a surface manager (surfflinger) to set the switch screen state.
At step 804, the surface manager notifies the DSS driver to set the switch screen state.
Step 805, DSS driver delays for several frames, switching to full screen display by DSC.
In step 806, the surface manager notifies the mask layer display thread (meta layer display: thread) to check for the collapsed state.
In step 807, the mask layer display thread waits for the completion of Window Manager (WMS) processing.
At step 808, the sensor state manager notifies a display manager (display manager service) to set the switch screen state.
Step 809, the display manager notifies the window manager of the new display resolution.
At step 810, the window manager freezes/notifies the application to switch to the new display resolution. Where "/" denotes or.
In step 811, the window manager notifies the display manager to apply the new display resolution to the newly sized rendered layer/unfreeze screen.
At step 812, the display manager notifies the surface manager to set a new display position.
In step 813, the surface manager notifies the mask layer display thread WMS that the process is complete.
Step 814, the mask layer display thread creates/deletes layers. For example, taking the example that the side screen is provided with the mask layer, when full-screen display needs to be switched to partial display, for example, the main screen is partially displayed, the sub-screen and the side screen do not display, and at this time, the mask layer corresponding to the side screen needs to be deleted. For another example, when switching from the partial display main screen to the partial display side screen, a mask layer needs to be created for the side screen.
At step 815, the surface manager notifies the hardware composition abstraction layer (HWC) of the new display location.
In a screen capture scene, in order not to affect the authenticity of the content captured and displayed by the mobile phone, whether a mask layer exists in all layers to be captured or not can be determined, and when the mask layer exists in all the layers to be captured, the content of other layers except the mask layer is captured.
The following describes in detail how to implement the specific process of the screen capture function in the screen capture scene with reference to fig. 9. As shown in fig. 9, the method mainly includes the following steps:
at step 901, a surface manager (surfefinger) receives a trigger screen capture event.
Step 902, the surface manager traverses all layers to be screenshot, and sends all layers to the renderer.
In step 903, the surface manager sends the layer snapshot to be subjected to screen capture to an SF decoupling function (surfefringerrex).
In step 904, the SF decoupling function notifies the mask layer display thread (meta layer display: thread) to determine if a mask layer exists.
Step 905, the mask layer display thread determines whether a mask layer exists.
And step 906, the mask layer display thread sends the determined result to the SF decoupling function.
In step 907, when the SF decoupling function informs the surface manager to draw the layer to be subjected to screen capturing, the mask layer is skipped over, and drawing processing is not performed.
In a screen recording scene, the content recorded for the mobile phone 100 may be used for playing in an electronic device with consistent screen brightness, and if the mask layer of the side screen of the mobile phone 100 is also recorded, when the recorded content is played in the electronic device with consistent screen brightness, the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter. For another example, in a scenario where the mobile phone 100 is connected to multiple displays, the screen of the mobile phone 100 is used as the main display, and the screens of other mobile phones are used as non-main displays, and if the screen brightness of the non-main displays is consistent, when the masking layer of the side screen of the mobile phone 100 is transmitted to the non-main displays for displaying, the brightness of the area where the masking layer is located is dark, and the brightness of other areas is slightly bright.
The following describes in detail how to implement the specific process of the screen capture function in the screen capture scenario with reference to fig. 10. As shown in fig. 9, the method mainly comprises the following steps:
at step 1001, the application notifies a surface manager (surfefinger) to enter a screen-recording or multi-display scene.
At step 1002, the surface manager calculates the visible area of each layer.
Step 1003, the surface manager traverses all layers, and adds the layer with the intersection of the visible area of each layer and the current display area to the layer set of the corresponding display.
In step 1004, the surface manager notifies an SF decoupling function (surfefringernex) to determine whether a mask layer exists in the layer set corresponding to each display.
In step 1005, the sf decoupling function notifies a mask layer display thread (meta layer display: thread) to determine whether a mask layer exists in the layer set corresponding to each display.
In step 1006, the mask layer display thread determines whether a mask layer exists.
And 1007, the mask layer display thread sends the determined result to the SF decoupling function.
In step 1008, the sf decoupling function notifies the surface manager to determine the layer sets of all displays, and the masked layers in the layer sets of any non-main display (virtual displays such as peripheral displays and screen recording) are skipped.
By the above example, in scenes such as screen recording and multi-display, display on a display (or a display screen) with uniformity in screen brightness is not affected by skipping the mask layer.
Referring to fig. 11, a flowchart of a compensation method provided by an embodiment of the present application is exemplarily shown, where the method is performed by an electronic device having a display screen, and the display screen includes a first screen area, a second screen area, and a third screen area having a same driving circuit structure as the second screen area, and the method includes the following steps:
in step 1101, the electronic device determines the brightness of the first screen area, the second screen area and the third screen area at a first time respectively.
In step 1102, the electronic device determines a first gamma parameter corresponding to the brightness of the first screen area at a first time.
In step 1103, the electronic device sets the second gamma parameters of the second screen area and the third screen area as the first gamma parameters.
Step 1104, when the third screen area needs to display the content, the electronic device adds a mask layer in the third screen area.
In step 1105, the electronic device adjusts the transparency of the mask layer to a first transparency according to the brightness difference between the second screen area and the third screen area at the first time.
In the step 1105, the brightness difference between the second screen region and the third screen region at the first time is the same as the brightness difference between the second screen region and the third screen region after being adjusted to the first gamma parameter. That is, step 1105 may be replaced with: and adjusting the transparency of the mask layer to be the first transparency according to the brightness difference value of the second screen area and the third screen area after the first gamma parameter is set.
In the embodiment of the application, because the brightness of the second screen area and the third screen area is controlled by the same gamma parameter, the brightness of the second screen area and the third screen area can be reduced by adjusting the same gamma parameter, and the brightness of the second screen area can be adjusted to be consistent with the brightness of the first screen area by replacing the second gamma parameter of the second screen area with the first gamma parameter corresponding to the first screen area, and the brightness of the third screen area is adjusted to be the same as the brightness of the second screen area, so that a brightness difference still exists between the third screen area and the first screen area, then a mask layer is added to the third screen area, the transparency of the mask layer is adjusted to be the first transparency according to the brightness difference of the second screen area and the third screen area at the first moment, and the brightness of the third screen area can be adjusted to be the same as that of the second screen area, so that the brightness difference between the screen areas of the electronic device can be reduced, and the display effects of different screen areas are consistent.
In one possible design, determining the brightness of the first screen region, the second screen region, and the third screen region at the first time respectively includes: and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a screen-on state and manufacturing process parameters. In this way, the brightness of the three screen regions at the first moment can be determined conveniently in real time, so that the brightness difference of the three screen regions can be adjusted in real time.
In one possible design, the brightness of any one of the first, second, and third screen regions at a first time is determined using the following formula:
Figure BDA0002281738460000211
the method includes the steps that the Lum is the screen brightness of the screen area from the factory time to the first time, the Lum _ init is the maximum brightness of the screen area at the factory time, t is the total duration of the screen area in a bright screen state from the factory time to the first time, and t is the total duration of the screen area in the bright screen state from the factory time to the first time 0 The theoretical maximum light emitting duration of the screen area is obtained, lev is the brightness of the light emitting unit with the maximum brightness at the first moment in the light emitting units included in the screen area, and Lev _ max is the light emitting unit with the maximum brightness at the factory moment in the light emitting units included in the screen area; gamma is a first manufacturing process parameter, k is a second manufacturing process parameter, and beta is a third manufacturing process parameter.
For example, the specific manner of determining the brightness of the first screen region, the second screen region and the third screen region at the first time can be seen in the above formula (1).
In one possible design, after determining the brightness of the first screen region, the second screen region, and the third screen region at the first time, respectively, before determining the first gamma parameter corresponding to the brightness of the first screen region at the first time, the method further includes: and determining that the brightness of the second screen area is greater than that of the first screen area and less than that of the third screen area. In this case, the luminance of the second screen region and the luminance of the third screen region, which have relatively large luminance, may be adjusted to reduce the difference between the luminance of the second screen region and the luminance of the third screen region, respectively, and the luminance of the first screen region.
In one possible design, a first gamma parameter corresponding to the brightness of the first screen region at the first time is determined, and the first gamma parameter corresponding to the brightness of the first screen region at the first time is determined according to a gray-scale value corresponding to the brightness of the first screen region at the first time and a first corresponding relationship, where the first corresponding relationship includes a corresponding relationship between the gamma parameter and the gray-scale value. This allows easy determination of the gamma parameter of the first screen area.
In one possible design, setting the second gamma parameter of the second screen region and the third screen region as the first gamma parameter may include: reading storage locations of second gamma parameters of the second screen area and the third screen area from a configuration file in an internal memory; deleting the second gamma parameter from the storage location of the second gamma parameter and writing the first gamma parameter into the storage location of the second gamma parameter.
In a possible design, before adding the mask layer to the third screen area, the method may further include: and determining that the third screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, the adjusting, by the electronic device, the transparency of the mask layer to the first transparency according to the brightness difference between the second screen area and the third screen area at the first time may include: the electronic equipment determines the percentage of the brightness difference value in the initial brightness of the third screen area according to the brightness difference value of the second screen area and the third screen area at the first moment; taking the percentage as a first transparency; and adjusting the transparency of the mask layer to be the first transparency. The transparency of the mask image layer can be 0-100, when the transparency is 0, the mask image layer is completely transparent, when the transparency is 100, the mask image layer is completely opaque, and the brightness difference value of the third screen area can be reduced to be consistent with the brightness of the first screen area by taking the percentage of the brightness difference value between the second screen area and the third screen area in the initial brightness of the third screen area as the first transparency.
In one possible design, before the electronic device adds the mask layer to the third screen area, the method may further include: acquiring display information of a third screen area; determining layer parameters of the mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency; after adding the mask layer in the third screen area, the method may further include: and setting layer parameters of the mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the mask layer change, determining the changed layer parameters; and setting the layer parameters of the mask layer according to the changed layer parameters. Therefore, when the layer parameters of the mask layer change, the layer parameters of the mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and width of the display screen, the coordinates of a mask layer and the height and width of the mask layer; and adjusting the mask attribute of the mask layer to be the first mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the mask layer is adaptively adjusted, so that the mask layer is adapted to the change of the third screen area.
In one possible design, the method may further include: when the brightness difference value of the third screen area and the second screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a second transparency; and adjusting the transparency of the mask layer to a second transparency. Therefore, when the brightness difference value between the third screen area and the second screen area changes, the transparency of the mask layer can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, the mask layer is deleted when the third screen area is closed to display. Therefore, the mask layer is deleted when the third screen area is not displayed, and the system overhead can be saved.
In one possible design, when the screen direction of the electronic device changes or the screen resolution changes, the resolution of the mask layer is adjusted according to the changed direction or the changed resolution. Therefore, the mask layer can adapt to the change of the third screen area, and the problem that the actual display area of the third screen area is not matched with the screen resolution is avoided.
In one possible design, when the electronic device starts a screen capture or recording function, if it is determined that the content to be captured includes a mask layer, the mask layer is deleted from the content to be captured, and the screen capture or recording function is performed on the content to be captured with the mask layer deleted. Therefore, when the content screen after screen capture or screen recording is played in the electronic equipment with consistent brightness, the situation that the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter can be avoided.
In one possible design, when the electronic device needs to share display content with the external display, if it is determined that the content to be shared includes a mask layer, the mask layer is deleted from the content to be shared, and the content to be shared with the deleted mask layer is shared with the external display. Therefore, the situation that when the shared content is played by the peripheral display with the consistent screen brightness, the brightness of the area where the mask layer is located is relatively low, and the brightness of other places is relatively high can be avoided.
Referring to fig. 12, a flowchart of another compensation method provided by an embodiment of the present application is exemplarily shown, where the method is performed by an electronic device having a display screen, and the display screen includes a first screen area, a second screen area, and a third screen area, where the second screen area and the third screen area are controlled by a same gamma parameter, and the method includes the following steps:
step 1201, the electronic device determines the brightness of the first screen area, the second screen area and the third screen area at a first moment respectively.
Step 1202, when the second screen area needs to display the content, adding a first mask layer in the second screen area, and adjusting the transparency of the first mask layer to a second transparency according to a first brightness difference value of the first screen area and the second screen area at a first moment.
Step 1203, when the third screen area needs to display the content, adding a second mask layer in the third screen area, and adjusting the transparency of the second mask layer to a third transparency according to a second brightness difference between the first screen area and the third screen area at the first time.
In the embodiment of the application, the electronic device can adjust the transparency of the mask layers corresponding to the second screen region and the third screen region respectively by adding the mask layers in the second screen region and the third screen region respectively, so that the brightness of the second screen region is adjusted to be consistent with the brightness of the first screen region, and the brightness of the third screen region is also adjusted to be consistent with the brightness of the first screen region, thereby reducing the brightness difference between the screen regions of the electronic device, and enabling the display effects of different screen regions to be consistent.
In one possible design, determining the brightness of the first screen region, the second screen region, and the third screen region at the first time point respectively includes: and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a bright screen state and manufacturing process parameters. In this way, the brightness of the three screen regions at the first moment can be determined conveniently in real time, so that the brightness difference of the three screen regions can be adjusted in real time.
In one possible design, the brightness of any one of the first, second, and third screen regions at a first time is determined using the following formula:
Figure BDA0002281738460000241
the method includes the steps that the Lum is the screen brightness of the screen area from the factory time to the first time, the Lum _ init is the maximum brightness of the screen area at the factory time, t is the total duration of the screen area in a bright screen state from the factory time to the first time, and t is the total duration of the screen area in the bright screen state from the factory time to the first time 0 The theoretical maximum light emitting duration of the screen area is obtained, lev is the brightness of the light emitting unit with the maximum brightness at the first moment in the light emitting units included in the screen area, and Lev _ max is the light emitting unit with the maximum brightness at the factory moment in the light emitting units included in the screen area; gamma is the first systemThe manufacturing process parameter, k is the second manufacturing process parameter, and β is the third manufacturing process parameter.
For example, the specific manner of determining the brightness of the first screen region, the second screen region and the third screen region at the first time may be referred to in formula (1) and related contents thereof, and details are not described here again.
In one possible design, after determining the brightness of the first screen region, the second screen region, and the third screen region at the first time point respectively, the method further includes: and determining that the brightness of the second screen area is greater than that of the first screen area and less than that of the third screen area. In this case, the luminance of the second screen region and the luminance of the third screen region, which have relatively large luminance, may be adjusted to reduce the difference between the luminance of the second screen region and the luminance of the third screen region, respectively, and the luminance of the first screen region.
In one possible design, before adding the first mask layer to the second screen region, the method may further include: and determining that the second screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the first mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, before adding the second mask layer to the third screen area, the method may further include: and determining that the third screen area supports the mask layer characteristics. That is, in the case where the third screen region supports the mask layer characteristics, the second mask layer is added; in the case where the third screen region does not support the mask layer characteristics, no operation is performed.
In one possible design, adjusting the transparency of the first mask layer to a second transparency according to a first brightness difference between the first screen area and the second screen area at a first time includes: determining a first percentage of the first brightness difference value in the initial brightness of the second screen area according to the first brightness difference value of the first screen area and the second screen area at the first moment; taking the first percentage as a second transparency; and adjusting the transparency of the first mask layer to be a second transparency. By setting the first luminance difference value between the first screen region and the second screen region to be a first percentage of the initial luminance of the second screen region as the second transparency, the luminance of the second screen region can be reduced by the first luminance difference value, thereby achieving reduction of the luminance of the second screen region to be consistent with the first screen region.
In a possible design, before adding the first mask layer to the second screen area, the method may further include: acquiring display information of a second screen area; determining layer parameters of the first mask layer according to the display information of the second screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the first mask layer; after adding the first mask layer to the third screen area, the method may further include: and setting layer parameters of the first mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the first mask layer change, determining the layer parameters after the first change; and setting a first layer parameter of the first mask layer according to the first changed layer parameter. Therefore, when the layer parameters of the first mask layer change, the layer parameters of the first mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and width of the display screen, the coordinate of a first mask layer and the height and width of a mask layer; and adjusting the mask attribute of the first mask layer to be the first mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the first mask layer is adaptively adjusted, so that the first mask layer can adapt to the change of the second screen area.
In one possible design, the method may further include: when the brightness difference value between the second screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the second screen area as a fourth transparency; and adjusting the transparency of the first mask layer to be a fourth transparency. Therefore, when the brightness difference value between the first screen area and the second screen area changes, the transparency of the first mask layer of the second screen area can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, adjusting the transparency of the second mask layer to a third transparency according to a second brightness difference between the first screen area and the third screen area at the first time includes: determining a second percentage of the second brightness difference value in the initial brightness of the third screen area according to the second brightness difference value of the first screen area and the third screen area at the first moment; taking the second percentage as a third transparency; and adjusting the transparency of the mask layer to a third transparency. By taking the second brightness difference value between the first screen area and the third screen area as a second percentage of the initial brightness of the third screen area, as the third transparency, the brightness of the third screen area can be reduced by the second brightness difference value, thereby achieving the purpose of reducing the brightness of the third screen area to be consistent with the first screen area.
In one possible design, before adding the second mask layer to the third screen area, the method may further include: acquiring display information of a third screen area; determining layer parameters of a second mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the second mask layer; after adding the second mask layer to the third screen area, the method further includes: and setting layer parameters of the second mask layer.
In one possible design, the method further includes: when determining that the layer parameters of the first mask layer change, determining second changed layer parameters; and setting the layer parameters of the second mask layer according to the layer parameters after the second change. Therefore, when the layer parameters of the second mask layer change, the layer parameters of the second mask layer can be updated in time.
In one possible design, the method further includes: when the screen direction of the electronic equipment changes or the screen resolution changes, determining a second mask attribute corresponding to the changed direction or the changed resolution; the second mask attribute comprises the height and the width of the display screen, the coordinates of the second mask layer and the height and the width of the second mask layer, and the electronic equipment adjusts the mask attribute of the second mask layer into the second mask attribute. Therefore, when the screen direction of the electronic device changes or the screen resolution changes, the mask attribute of the second mask layer is adaptively adjusted, so that the second mask layer can adapt to the change of the third screen area.
In one possible design, the method may further include: when the brightness difference value of the third screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a fifth transparency; and adjusting the transparency of the second mask layer to a fifth transparency. Therefore, when the brightness difference value between the first screen area and the third screen area changes, the transparency of the second mask layer of the third screen area can be updated in time, the brightness difference between the screen areas can be reduced in time, and the display effects of different screen areas are consistent.
In one possible design, when the second screen area is closed to display, the first mask layer is deleted; and when the third screen area is closed to display, deleting the second mask layer. In this way, when any one of the second screen area and the third screen area is not displayed, the mask layer corresponding to the corresponding screen area is deleted, so that the system overhead can be saved.
In one possible design, when the screen direction of the electronic device changes or the screen resolution changes, the resolutions of the first mask layer and the second mask layer are respectively adjusted according to the changed direction or the changed resolution, so that the mask layers can adapt to the resolution change of the corresponding screen areas, and the problem that the actual display areas of the screen areas are not matched with the screen resolution is avoided.
In one possible design, when the electronic device starts a screen capturing or recording function, if the content to be captured includes a first mask layer, deleting the first mask layer from the content to be captured, and executing the screen capturing or recording function on the content to be captured with the first mask layer deleted; and if the content to be intercepted is determined to comprise the second mask layer, deleting the second mask layer from the content to be intercepted, and executing a screen intercepting or screen recording function on the content to be intercepted of which the second mask layer is deleted. Therefore, when the content screen after screen capture or screen recording is played in the electronic equipment with consistent brightness, the situation that the brightness of the area where the mask layer is located is darker and the brightness of other places is brighter can be avoided.
In one possible design, when the electronic device needs to share display content with the external display, if the content to be shared includes a first mask layer, deleting the first mask layer from the content to be shared, and sharing the content to be shared with the deleted first mask layer with the external display; and if the content to be shared comprises the second mask layer, deleting the second mask layer from the content to be shared, and sharing the content to be shared with the deleted second mask layer to the external display. Therefore, the situation that when the shared content is played by the peripheral display with the consistent screen brightness, the brightness of the area where the mask layer is located is relatively low, and the brightness of other places is relatively high can be avoided.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is described from the perspective of the electronic device (the mobile phone 100) as an execution subject. In order to implement the functions in the method provided by the embodiment of the present application, the terminal device may include a hardware structure and/or a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether any of the above functions is implemented as a hardware structure, a software module, or a combination of a hardware structure and a software module depends upon the particular application and design constraints imposed on the technical solution.
In other embodiments of the present application, an electronic device is also disclosed, as shown in fig. 13, which may include: a display screen 1301; one or more processors 1302; a memory 1303; one or more applications (not shown); and one or more computer programs 1304, which can be coupled via one or more communication buses 1305. Wherein the one or more computer programs 1304 are stored in the memory 1303 and configured to be executed by the one or more processors 1302, the one or more computer programs 1304 comprise instructions that can be used to perform the methods of the embodiments described above.
The embodiment of the present application further provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the method in the foregoing embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the method in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method of the touch screen in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding method provided above, and therefore, the beneficial effects that can be achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
As used in the above embodiments, the term "when 8230; may be interpreted to mean" if 8230; "or" after 8230; "or" in response to a determination of 8230; "or" in response to a detection of 8230; "depending on the context. Similarly, the phrase "at the time of determination of \8230," or "if (a stated condition or event) is detected" may be interpreted to mean "if it is determined 8230;" or "in response to the determination of 8230;" or "upon detection of (a stated condition or event)" or "in response to the detection of (a stated condition or event)" depending on the context.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the exemplary discussions above are not intended to be exhaustive or to limit the application to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical application, to thereby enable others skilled in the art to best utilize the application and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (33)

1. A compensation method applied to an electronic device having a display screen, wherein the display screen includes a first screen area, a second screen area, and a third screen area, and wherein the second screen area and the third screen area have brightness controlled by a same gamma parameter, the method comprising:
determining the brightness of the first screen area, the second screen area and the third screen area at a first moment respectively;
determining a first gamma parameter corresponding to the brightness of the first screen area at a first moment;
setting a second gamma parameter of the second screen region and the third screen region as the first gamma parameter;
when the third screen area needs to display content, adding a mask layer in the third screen area;
and adjusting the transparency of the mask layer to be a first transparency according to the brightness difference value of the second screen area and the third screen area at a first moment.
2. The method of claim 1, wherein the determining the brightness of the first screen region, the second screen region, and the third screen region at the first time, respectively, comprises:
and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a screen-on state and manufacturing process parameters.
3. The method of claim 2, wherein the brightness of any one of the first, second and third screen regions at a first time is determined using the following formula:
Figure FDA0003884007990000011
wherein the Lum is the screen brightness of the screen area after the total duration of the screen area being in a bright screen state from the factory time to the first time, the Lum _ init is the maximum brightness of the screen area at the time of factory leaving, t is the total time length of the screen area in a bright screen state from the time of factory leaving to the first time, and t 0 The theoretical maximum light emitting duration of the screen area is obtained, lev is the brightness of the light emitting unit with the maximum brightness at the first moment in the light emitting units included in the screen area, and Lev _ max is the brightness of the light emitting unit with the maximum brightness at the factory moment in the light emitting units included in the screen area; gamma is a parameter related to the maximum brightness, k is an OLED process parameter, and beta is a parameter related to the OLED material and the manufacturing process.
4. The method according to any one of claims 1 to 3, further comprising, after determining the brightness of the first screen region, the second screen region and the third screen region at the first time point respectively, and before determining the first gamma parameter corresponding to the brightness of the first screen region at the first time point:
and determining that the brightness of the second screen area is greater than the brightness of the first screen area and less than the brightness of the third screen area.
5. The method according to any one of claims 1 to 3, wherein the determining a first gamma parameter corresponding to the brightness of the first screen region at the first time comprises:
determining a first gamma parameter corresponding to the brightness of the first screen area at a first moment according to the gray-scale value corresponding to the brightness of the first screen area at the first moment and a first corresponding relation; the first corresponding relationship comprises a corresponding relationship between gamma parameters and gray-scale values.
6. The method according to any one of claims 1-3, wherein the adjusting the transparency of the mask layer to a first transparency according to the brightness difference of the second screen area and the third screen area at the first time comprises:
determining the percentage of the brightness difference value in the initial brightness of the third screen area according to the brightness difference value of the second screen area and the third screen area at a first moment;
taking the percentage as a first transparency;
and adjusting the transparency of the mask layer to the first transparency.
7. The method of any of claims 1-3, wherein prior to adding a mask layer to the third screen area, further comprising:
acquiring display information of a third screen area;
determining layer parameters of a mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the mask layer;
after adding a mask layer to the third screen area, the method further comprises:
and setting the layer parameters of the mask layer.
8. The method of claim 7, further comprising:
when determining that the layer parameters of the mask layer change, determining the changed layer parameters;
and setting the layer parameters of the mask layer according to the changed layer parameters.
9. The method according to any one of claims 1-3, further comprising:
when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and the width of the display screen, the coordinates of the mask layer and the height and the width of the mask layer;
and adjusting the mask attribute of the mask layer to be the first mask attribute.
10. The method according to any one of claims 1-3, further comprising:
when the brightness difference value between the second screen area and the third screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a second transparency;
and adjusting the transparency of the mask layer to the second transparency.
11. The method according to any one of claims 1-3, further comprising:
and when the third screen area is closed to display, deleting the mask layer.
12. The method according to any one of claims 1-3, further comprising:
when the screen direction of the electronic equipment changes or the screen resolution changes, the resolution of the mask layer is adjusted according to the changed direction or the changed resolution.
13. The method according to any one of claims 1-3, further comprising:
when the electronic equipment starts a screen capturing or recording function, if the content to be captured comprises a mask layer, deleting the mask layer from the content to be captured, and executing the screen capturing or recording function on the content to be captured with the mask layer deleted.
14. The method according to any one of claims 1-3, further comprising:
when the electronic equipment needs to share display content to an external display, if the content to be shared comprises a mask layer, deleting the mask layer from the content to be shared, and sharing the content to be shared with the deleted mask layer to the external display.
15. A compensation method applied to an electronic device having a display screen including a first screen region, a second screen region, and a third screen region, the method comprising:
determining the brightness of the first screen area, the second screen area and the third screen area at a first moment respectively;
when the second screen area needs to display content, adding a first mask layer in the second screen area, and adjusting the transparency of the first mask layer to a second transparency according to a first brightness difference value of the first screen area and the second screen area at a first moment;
when the third screen area needs to display content, adding a second mask layer in the third screen area, and adjusting the transparency of the second mask layer to a third transparency according to a second brightness difference value of the first screen area and the third screen area at a first moment;
wherein the determining the brightness of the first screen region, the second screen region and the third screen region at a first time, respectively, comprises:
and determining the brightness of the first screen area, the second screen area and the third screen area at a first moment according to the initial brightness of the first screen area, the second screen area and the third screen area, the total duration of a screen-on state and manufacturing process parameters.
16. The method of claim 15, wherein the brightness of any one of the first, second and third screen regions at a first time is determined using the following formula:
Figure FDA0003884007990000031
wherein the Lum is the screen brightness of the screen area after the total duration of the screen area being in a bright screen state from the factory time to the first time, the Lum _ init is the maximum brightness of the screen area at the time of factory leaving, t is the total time length of the screen area in a bright screen state from the time of factory leaving to the first time, and t 0 The theoretical maximum light emitting duration of the screen area is obtained, lev is the brightness of the light emitting unit with the maximum brightness at the first moment in the light emitting units included in the screen area, and Lev _ max is the brightness of the light emitting unit with the maximum brightness at the factory moment in the light emitting units included in the screen area; gamma is a parameter related to the maximum brightness, k is an OLED process parameter, and beta is a parameter related to the OLED material and the manufacturing process.
17. The method of claim 15 or 16, further comprising, after determining the brightness of the first screen region, the second screen region, and the third screen region, respectively, at the first time:
determining that the brightness of the second screen region is greater than the brightness of the first screen region and less than the brightness of the third screen region.
18. The method according to claim 15 or 16, wherein the adjusting the transparency of the first mask layer to a second transparency according to a first brightness difference between the first screen area and the second screen area at a first time comprises:
determining a first percentage of the first brightness difference value in the initial brightness of the second screen area according to the first brightness difference value of the first screen area and the second screen area at a first moment;
taking the first percentage as a second transparency;
and adjusting the transparency of the first mask layer to be a second transparency.
19. The method of claim 15 or 16, wherein prior to adding the first mask layer to the second screen area, further comprising:
acquiring display information of a second screen area;
determining layer parameters of the first mask layer according to the display information of the second screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the first mask layer;
after adding the first mask layer in the second screen area, the method further includes:
and setting layer parameters of the first mask layer.
20. The method of claim 19, further comprising:
when determining that the layer parameters of the first mask layer change, determining the layer parameters after the first change;
and setting the first layer parameters of the first mask layer according to the first changed layer parameters.
21. The method according to claim 15 or 16, characterized in that the method further comprises:
when the screen direction of the electronic equipment changes or the screen resolution changes, determining a first mask attribute corresponding to the changed direction or the changed resolution; the first mask attribute comprises the height and width of the display screen, the coordinate of the first mask layer and the height and width of the first mask layer;
and adjusting the mask attribute of the first mask layer to be the first mask attribute.
22. The method according to claim 15 or 16, characterized in that the method further comprises:
when the brightness difference value between the second screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the second screen area as a fourth transparency;
and adjusting the transparency of the first mask layer to the fourth transparency.
23. The method of claim 15 or 16, wherein the adjusting the transparency of the second mask layer to a third transparency according to the second brightness difference between the first screen area and the third screen area at the first time comprises:
determining a second percentage of the second brightness difference value in the initial brightness of the third screen area according to a second brightness difference value of the first screen area and the third screen area at a first moment;
taking the second percentage as a third transparency;
and adjusting the transparency of the second mask layer to be a third transparency.
24. The method of claim 15 or 16, wherein prior to adding a second mask layer to the third screen area, further comprising:
acquiring display information of a third screen area;
determining layer parameters of the second mask layer according to the display information of the third screen area; the layer parameters comprise one or more of resolution, direction, size and transparency of the second mask layer;
after adding the second mask layer to the third screen area, the method further includes:
and setting layer parameters of the second mask layer.
25. The method of claim 24, further comprising:
when determining that the layer parameters of the first mask layer change, determining second changed layer parameters;
and setting the layer parameters of the second mask layer according to the layer parameters after the second change.
26. The method according to claim 15 or 16, characterized in that the method further comprises:
when the screen direction of the electronic equipment changes or the screen resolution changes, determining a second mask attribute corresponding to the changed direction or the changed resolution; the second mask attribute comprises the height and width of the display screen, the coordinates of the second mask layer and the height and width of the second mask layer;
and adjusting the mask attribute of the second mask layer to be the second mask attribute.
27. The method according to claim 15 or 16, characterized in that the method further comprises:
when the brightness difference value between the third screen area and the first screen area is determined to be changed, determining the percentage of the changed brightness difference value in the initial brightness of the third screen area as a fifth transparency;
and adjusting the transparency of the second mask layer to the fifth transparency.
28. The method according to claim 15 or 16, characterized in that the method further comprises:
when the second screen area is closed to display, deleting the first mask layer; and/or deleting the second mask layer when the third screen area is closed to display.
29. The method according to claim 15 or 16, further comprising:
when the screen direction of the electronic equipment changes or the screen resolution changes, the resolutions of the first mask layer and the second mask layer are respectively adjusted according to the changed direction or the changed resolution.
30. The method according to claim 15 or 16, characterized in that the method further comprises:
when the electronic equipment starts a screen capturing or recording function, if the content to be captured comprises a first mask layer, deleting the first mask layer from the content to be captured, and executing the screen capturing or recording function on the content to be captured with the first mask layer deleted; and/or if the content to be intercepted comprises a second mask layer, deleting the second mask layer from the content to be intercepted, and executing a screen intercepting or screen recording function on the content to be intercepted of which the second mask layer is deleted.
31. The method according to claim 15 or 16, characterized in that the method further comprises:
when the electronic equipment needs to share display content to an external display, if the content to be shared comprises a first mask layer, deleting the first mask layer from the content to be shared, and sharing the content to be shared with the deleted first mask layer to the external display; and/or if the content to be shared is determined to comprise a second mask layer, deleting the second mask layer from the content to be shared, and sharing the content to be shared with the deleted second mask layer to the peripheral display.
32. An electronic device is characterized by comprising a display screen, wherein the display screen comprises a first screen area, a second screen area and a third screen area, and the third screen area and the second screen area have the same driving circuit structure; one or more processors; a memory; one or more programs; wherein the one or more programs are stored in the memory, the one or more programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of any of claims 1-31.
33. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 31.
CN201911144228.7A 2019-11-20 2019-11-20 Compensation method and electronic equipment Active CN112825232B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911144228.7A CN112825232B (en) 2019-11-20 2019-11-20 Compensation method and electronic equipment
PCT/CN2020/130168 WO2021098790A1 (en) 2019-11-20 2020-11-19 Compensation method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911144228.7A CN112825232B (en) 2019-11-20 2019-11-20 Compensation method and electronic equipment

Publications (2)

Publication Number Publication Date
CN112825232A CN112825232A (en) 2021-05-21
CN112825232B true CN112825232B (en) 2023-01-06

Family

ID=75906375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911144228.7A Active CN112825232B (en) 2019-11-20 2019-11-20 Compensation method and electronic equipment

Country Status (2)

Country Link
CN (1) CN112825232B (en)
WO (1) WO2021098790A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778273B (en) * 2021-07-29 2022-12-23 荣耀终端有限公司 Light spot display method, electronic device, and computer-readable storage medium
CN114694618B (en) * 2022-03-03 2023-06-27 武汉华星光电半导体显示技术有限公司 Brightness regulating method and device for display panel
CN114446217B (en) * 2022-03-09 2023-12-22 京东方科技集团股份有限公司 Display compensation method, compensation device, display device and storage medium
CN114783009B (en) * 2022-04-29 2025-04-01 云谷(固安)科技有限公司 Method, display panel, device, processing equipment and terminal for adjusting fingerprint brightness
CN115086585B (en) * 2022-04-29 2024-10-22 广州维梦科技有限公司 Screen recording method capable of adapting to screen direction, intelligent terminal and storage medium
WO2023240624A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Brightness adjustment method, apparatus and storage medium
CN117130511B (en) * 2023-02-24 2024-09-20 荣耀终端有限公司 Brightness control method and related equipment
CN118692414A (en) * 2023-03-22 2024-09-24 华为技术有限公司 Brightness adjustment system, method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104078028A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Screen brightness adjusting method and electronic equipment
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN109471631A (en) * 2018-11-21 2019-03-15 北京京东尚科信息技术有限公司 The generation method and device of masking-out material
CN109976450A (en) * 2019-03-15 2019-07-05 Oppo广东移动通信有限公司 Screen calibration method, device, electronic device and storage medium
CN110119295A (en) * 2019-04-16 2019-08-13 华为技术有限公司 A kind of display control method and relevant apparatus

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070118371A (en) * 2006-06-12 2007-12-17 삼성전자주식회사 Display device and control method
KR101333680B1 (en) * 2007-04-12 2013-12-02 삼성전자주식회사 Display apparatus and method of adjusting brightness for the same
CN101937644B (en) * 2009-06-30 2015-07-29 奇晶光电股份有限公司 Image compensation module, organic light emitting diode display panel and image compensation method
KR102248841B1 (en) * 2014-05-21 2021-05-06 삼성전자주식회사 Display apparatus, electronic device comprising thereof and operating method of thereof
TWI539433B (en) * 2014-08-13 2016-06-21 友達光電股份有限公司 Curved display device and gamma correction method thereof
US10019925B2 (en) * 2015-08-06 2018-07-10 Mediatek Inc. Electronic device capable of displaying and performing color compensation and color compensation method
US10878771B2 (en) * 2016-07-13 2020-12-29 Motorola Mobility Llc Deformable electronic device and methods and systems for display remediation to compensate performance degradation
KR102593457B1 (en) * 2016-10-25 2023-10-25 엘지디스플레이 주식회사 Display Device and Method for Driving the same
CN108230406B (en) * 2018-01-02 2022-05-31 联想(北京)有限公司 Data processing method and electronic equipment
CN109862172B (en) * 2018-11-30 2021-03-09 维沃移动通信有限公司 Screen parameter adjusting method and terminal
CN109859689B (en) * 2019-04-09 2020-07-31 Oppo广东移动通信有限公司 Screen brightness adjustment method and related products

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104078028A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Screen brightness adjusting method and electronic equipment
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN109471631A (en) * 2018-11-21 2019-03-15 北京京东尚科信息技术有限公司 The generation method and device of masking-out material
CN109976450A (en) * 2019-03-15 2019-07-05 Oppo广东移动通信有限公司 Screen calibration method, device, electronic device and storage medium
CN110119295A (en) * 2019-04-16 2019-08-13 华为技术有限公司 A kind of display control method and relevant apparatus

Also Published As

Publication number Publication date
CN112825232A (en) 2021-05-21
WO2021098790A1 (en) 2021-05-27

Similar Documents

Publication Publication Date Title
CN112825232B (en) Compensation method and electronic equipment
CN114816210B (en) A full-screen display method and device for a mobile terminal
JP7574512B2 (en) Foldable screen display method and electronic device
US20230419570A1 (en) Image Processing Method and Electronic Device
WO2020000448A1 (en) Flexible screen display method and terminal
WO2020093988A1 (en) Image processing method and electronic device
CN113722030B (en) Display method, electronic equipment and computer storage medium
WO2022161119A1 (en) Display method and electronic device
CN113986162B (en) Layer composition method, device and computer readable storage medium
CN112017615A (en) Ambient light brightness calibration method for electronic equipment and electronic equipment
WO2022057512A1 (en) Split-screen method and apparatus, and electronic device
CN113837920B (en) Image rendering method and electronic device
WO2022095744A1 (en) Vr display control method, electronic device, and computer readable storage medium
EP4266173A1 (en) Application display method and apparatus, chip system, medium and program product
CN113961157A (en) Display interaction system, display method and equipment
WO2023103951A1 (en) Display method for foldable screen and related apparatus
WO2021057472A1 (en) Display control method and electronic device
CN114756184B (en) Collaborative display method, terminal device and computer readable storage medium
CN117389496B (en) Folding screen display method, electronic equipment and computer readable storage medium
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN116055627B (en) Screen-off control method, electronic equipment and storage medium
CN116055623B (en) A power consumption control method, electronic device, and storage medium
CN115480849A (en) User interface layout method and related equipment
CN116700655B (en) Interface display method and electronic device
CN117692693B (en) Multi-screen display method, device, program product 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