Brightness compensation method and device, display equipment, storage medium, chip and product

By responding to brightness setting instructions and using the brightness mapping table to perform pixel-level brightness compensation, the problem of uneven brightness of the display screen is solved, and the display quality and mass production yield are improved.

CN120164402APending Publication Date: 2025-06-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510487163.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

During the production process, the display screen will have uneven display brightness (Mura) due to material and process reasons, which will affect the display quality and mass production yield.

Method used

A brightness compensation method is provided, in which pixel brightness values ​​are determined using a brightness mapping table in response to a brightness setting instruction, and pixel-level brightness compensation is performed on the display screen based on the brightness compensation information of the target DBV.

Benefits of technology

It improves the brightness uniformity and display quality of the display screen, and enhances the mass production yield of the display screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120164402A_ABST
    Figure CN120164402A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a brightness compensation method and device, display equipment, a storage medium, a chip and a product, and belongs to the technical field of image processing. Under the condition that a first DBV indicated by the brightness setting instruction does not belong to the target DBV, a first pixel brightness value corresponding to the first DBV is determined based on the first DBV and a brightness mapping table, the target DBV is the DBV with the determined brightness compensation information, and the first pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to be the first DBV and the gray-scale value is the maximum gray-scale value; for any pixel point in the current display picture, a second pixel brightness value is determined based on the first pixel brightness value and the first pixel value of the pixel point, and the second pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to be the first DBV and the gray-scale value is the first gray-scale value of the pixel point; and performing brightness compensation on the pixel point based on the second pixel brightness value and brightness compensation information corresponding to the target DBV.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of image processing, and in particular, to a brightness compensation method, apparatus, display device, storage medium, chip and product. Background Art

[0002] During the production process of the display screen, due to reasons such as materials and processes, the phenomenon of uneven display brightness (Mura) will occur. In order to improve the visual discomfort caused by this uneven display brightness, display screen manufacturers usually compensate the brightness of the displayed image based on the Demura algorithm to improve Mura, thereby improving the brightness uniformity, enabling the display quality of the display screen to meet the shipping requirements, and further improving the mass production yield of the display screen. Summary of the Invention

[0003] The embodiments of the present application provide a brightness compensation method, apparatus, display device, storage medium, chip and product. The technical solutions are as follows:

[0004] On the one hand, the embodiments of the present application provide a brightness compensation method, and the method includes:

[0005] In response to a brightness setting instruction, when the first display brightness value DBV indicated by the brightness setting instruction does not belong to the target DBV, based on the first DBV and the brightness mapping table, determine the first pixel brightness value corresponding to the first DBV. The target DBV is the DBV for which brightness compensation information has been determined, and the brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value. The first pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to the first DBV and the gray scale value is the maximum gray scale value supported by the display device;

[0006] For any pixel point in the current display screen, based on the first pixel brightness value and the first pixel value of the pixel point, determine the second pixel brightness value. The second pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to the first DBV and the gray scale value is the first gray scale value of the pixel point;

[0007] Based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV, perform brightness compensation on the pixel point.

[0008] On the other hand, the embodiments of the present application provide a brightness compensation apparatus, and the apparatus includes:

[0009] A first determination module, configured to respond to a brightness setting instruction, and when the first display brightness value DBV indicated by the brightness setting instruction does not belong to the target DBV, determine, based on the first DBV and a brightness mapping table, a first pixel brightness value corresponding to the first DBV, where the target DBV is a DBV for which brightness compensation information has been determined, the brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value, and the first pixel brightness value is the brightness value of a pixel when the DBV of the display device is set to the first DBV and the grayscale value is the maximum grayscale value supported by the display device;

[0010] A second determination module, configured to, for any pixel in the current display screen, determine a second pixel brightness value based on the first pixel brightness value and the first pixel value of the pixel, where the second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel;

[0011] A compensation module, configured to perform brightness compensation on the pixel based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV.

[0012] On the other hand, an embodiment of the present application provides a display device, including a processor and a memory, where at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the brightness compensation method as described in the above aspect.

[0013] On the other hand, an embodiment of the present application provides a chip, including a programmable logic circuit and / or program instructions, and when the chip runs on a display device, the chip is used to implement the brightness compensation method as described in the above aspect.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, storing at least one computer instruction, where the at least one computer instruction is used to be executed by a processor to implement the brightness compensation method as described in the above aspect.

[0015] On the other hand, an embodiment of the present application provides a computer program product, including computer instructions, where the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the brightness compensation method as described in the above aspect.

[0016] In the embodiments of the present application, a brightness mapping table is set for the display device in advance. The brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value. The DBV is used to represent the theoretical display brightness set for the display device, and the pixel brightness value is used to represent the actual display brightness of the current display screen. Therefore, when setting the first DBV of the display device, based on the first DBV, the brightness mapping table, and the first pixel value of the pixel points of the current display screen, the second pixel brightness value reflecting the actual brightness value of the current display screen can be determined. Thus, based on the second pixel brightness value of the current display screen and the brightness compensation information corresponding to the determined target DBV, the current display screen can be accurately brightness-compensated, thereby improving the image quality of the current display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a schematic diagram of the implementation environment of the brightness compensation method shown in an exemplary embodiment of the present application;

[0018] Figure 2 is a flowchart of the brightness compensation method shown in an exemplary embodiment of the present application;

[0019] Figure 3 is a flowchart of the brightness compensation method shown in an exemplary embodiment of the present application;

[0020] Figure 4 is a flowchart of the brightness compensation method shown in an exemplary embodiment of the present application;

[0021] Figure 5 is a flowchart of the brightness compensation method shown in an exemplary embodiment of the present application;

[0022] Figure 6 is a block diagram of the structure of the brightness compensation device shown in an exemplary embodiment of the present application;

[0023] Figure 7 is a block diagram of the structure of the display device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0024] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0025] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0026] It should be noted that the information involved in this application (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the display images involved in this application are obtained under full authorization.

[0027] The brightness compensation method provided by the embodiments of this application is applied to a display device. During the display process of the display device, according to the method provided by the embodiments of this application, the current display screen of the display device is brightness-compensated, thereby improving the uniformity of the current display screen. Among them, the display device can be any device including a display screen, and the display screen can be an Organic Light-Emitting Diode (OLED) screen; for example, the display device can be a monitor, a mobile phone, a tablet computer, a laptop computer, or a wearable device, etc.

[0028] The brightness compensation method provided by the embodiments of this application can be applied to any of the following scenarios:

[0029] Application scenario 1: Before the display device leaves the factory, it is necessary to test the display quality of the display device to determine whether the display quality of the display device meets the shipping specification requirements; when the display quality of the display device meets the shipping specification requirements, the display device is shipped out; and during the process of testing the display quality of the display device, the current display screen of the display device can be brightness-compensated according to the brightness compensation method provided by the embodiments of this application, so that the display brightness of the current display screen is more uniform, to meet the shipping specification requirements, thereby improving the mass production yield of the display device.

[0030] Application scenario 2: After the display device leaves the factory, during the process of the user using the display device, the display device brightness-compensates the current display screen of the display device according to the brightness compensation method provided by the embodiments of this application, so that the display brightness of the current display screen is more uniform, to provide the display effect of the display device.

[0031] The trigger mechanism for brightness compensation in the embodiments of this application is that when the display device receives a brightness setting instruction, it brightness-compensates the current display screen of the display device according to the brightness compensation method provided by the embodiments of this application. In a possible implementation manner, the user manually triggers the brightness setting instruction, please refer to Figure 1, a display device brightness display bar, through which a user can drag to trigger a brightness setting instruction for the display device; for example, the user drags the brightness display bar to the left to trigger a brightness setting instruction for reducing the first display brightness value (Display Brightness Value, DBV) of the display device; for another example, the user drags the brightness display bar to the right to trigger a brightness setting instruction for increasing the first DBV of the display device.

[0032] In another possible implementation, the display device automatically adjusts the DBV of the display device based on the ambient light brightness; correspondingly, when the ambient light brightness of the display device decreases, the display device triggers a brightness setting instruction for reducing the first DBV of the display device; when the ambient light brightness of the display device increases, the display device triggers a brightness setting instruction for increasing the first DBV of the display device.

[0033] Please refer to Figure 2 , which shows a flowchart of a brightness compensation method provided by an exemplary embodiment of the present application. The method may include the following steps:

[0034] Step 201: In response to a brightness setting instruction, when the first display brightness value DBV indicated by the brightness setting instruction does not belong to the target DBV, the display device determines the first pixel brightness value corresponding to the first DBV based on the first DBV and a brightness mapping table. The target DBV is the DBV for which brightness compensation information has been determined, the brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value, and the first pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to the first DBV and the grayscale value is the maximum grayscale value supported by the display device.

[0035] Before the display device leaves the factory, the display device determines the brightness compensation information corresponding to at least one target DBV and stores the brightness compensation information corresponding to at least one target DBV in the display device; therefore, when receiving a brightness setting instruction, first determine whether the first DBV indicated by the brightness setting instruction belongs to the target DBV; when the first DBV indicated by the brightness setting instruction belongs to the target DBV, directly perform brightness compensation on the current display screen of the display device based on the stored brightness compensation information corresponding to the target DBV; when the first DBV indicated by the brightness setting instruction does not belong to the target DBV, perform brightness compensation on the current display screen of the display device according to the method provided in the embodiments of the present application.

[0036] The brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value. For the DBV and the pixel brightness value in any correspondence in the brightness mapping table, the pixel brightness value refers to the brightness value of the pixel when the DBV of the display device is set to the DBV in the correspondence and the grayscale value is the maximum grayscale value supported by the display device. Therefore, the first pixel brightness value determined by the display device based on the first DBV and the brightness mapping table is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the maximum grayscale value supported by the display device.

[0037] Step 202: For any pixel in the current display screen, determine a second pixel brightness value based on the first pixel brightness value and the first pixel value of the pixel. The second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel.

[0038] Since the first pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the maximum grayscale value supported by the display device. And the first grayscale value of any pixel of the display device is not necessarily the maximum grayscale value. Therefore, it is necessary to convert the first pixel brightness value to the second pixel brightness value when the grayscale value is the first grayscale value of the pixel based on the first pixel value of the pixel. The second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel.

[0039] Step 203: The display device performs brightness compensation on the pixel based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV.

[0040] Since the display device has stored the brightness compensation information corresponding to the target DBV. Therefore, the display device can determine the brightness compensation information corresponding to the first DBV with the help of the brightness compensation information corresponding to the target DBV based on the second pixel brightness value, and then perform brightness compensation on the pixel based on the brightness compensation information corresponding to the first DBV. Since performing brightness compensation on the current display screen at the pixel level can improve the accuracy of brightness compensation.

[0041] In an embodiment of the present application, a brightness mapping table is set for the display device in advance. The brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value. The DBV is used to represent the theoretical display brightness set for the display device, and the pixel brightness value is used to represent the actual display brightness of the current display screen. Therefore, when setting the first DBV of the display device, based on the first DBV, the brightness mapping table, and the first pixel value of the pixel points of the current display screen, the second pixel brightness value reflecting the actual brightness value of the current display screen can be determined. Thus, based on the second pixel brightness value of the current display screen and the brightness compensation information corresponding to the determined target DBV, the current display screen can be accurately brightness-compensated, thereby improving the image quality of the current display screen.

[0042] Please refer to Figure 3 , which shows a flowchart of a brightness compensation method provided by an exemplary embodiment of the present application. The method may include the following steps:

[0043] Step 301: In response to a brightness setting instruction, when the first display brightness value DBV indicated by the brightness setting instruction does not belong to the target DBV, the display device determines, based on the first DBV, the DBV range to which the first DBV belongs and the pixel brightness value range corresponding to the DBV range from the brightness mapping table.

[0044] The brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value; and for the DBV and the pixel brightness value in any correspondence in the brightness mapping table, the pixel brightness value refers to the brightness value of the pixel point when the DBV of the display device is set to the DBV in the correspondence and the gray scale value is the maximum gray scale value supported by the display device.

[0045] In a possible implementation manner, the display device searches for the first DBV from the brightness mapping table based on the first DBV; when the first DBV is found in the brightness mapping table, the pixel brightness value corresponding to the first DBV is determined from the brightness mapping table, and the pixel brightness value corresponding to the first DBV is determined as the first pixel brightness value; when the first DBV is not found in the brightness mapping table, the DBV range to which the first DBV belongs is determined from the brightness mapping table based on the first DBV, and based on the minimum DBV and the maximum DBV in the DBV range, the minimum pixel brightness value corresponding to the minimum DBV and the maximum pixel brightness value corresponding to the maximum DBV are determined from the brightness mapping table, and the minimum pixel brightness value and the maximum pixel brightness value are combined to form the pixel brightness value range corresponding to the DBV range.

[0046] Among them, the pixel value of a pixel point includes sub-pixel values of multiple color channels; for example, the pixel value of a pixel point includes sub-pixel values of the Red (R) channel, the Green (G) channel, and the Blue (B) channel; therefore, the brightness mapping table includes brightness sub-mapping tables of multiple color channels, and the brightness sub-mapping table of any color channel is used to store the correspondence between the DBV and the pixel brightness value of that color channel. For example, the brightness mapping table includes the brightness sub-mapping table LUT R of the R channel, the brightness sub-mapping table LUT G of the G channel, and the brightness sub-mapping table LUT B of the B channel.

[0047] The DBV range includes the first DBV range corresponding to the R channel, the second DBV range corresponding to the G channel, and the third DBV range corresponding to the B channel, and the pixel brightness value range includes the first pixel brightness value range corresponding to the first DBV range, the second pixel brightness value range corresponding to the second DBV range, and the third pixel brightness value range corresponding to the third DBV range. Correspondingly, the steps for the display device to determine the DBV range to which the first DBV belongs and the pixel brightness value range corresponding to the DBV range from the brightness mapping table based on the first DBV can be:

[0048] For the R color channel, the display device determines the first DBV range to which the first DBV belongs and the first actual brightness range corresponding to the first DBV range from the brightness sub-mapping table of the R channel based on the first DBV; for example, the first DBV range to which the DBV belongs is [I R0 , I R1 , that is, I R0 << DBV << I R1 , and the first actual brightness range is [O R0 , O R1 .

[0049] For the G color channel, the display device determines the second DBV range to which the first DBV belongs and the second actual brightness range corresponding to the second DBV range from the brightness sub-mapping table of the G channel based on the first DBV; for example, the second DBV range to which the DBV belongs is [I G0 , I G1 , that is, I G0 << DBV << I G1 , and the second actual brightness range is [O G0 , O G1 .

[0050] For the B color channel, the display device determines, based on the first DBV, the third DBV range to which the first DBV belongs and the third actual brightness range corresponding to the third DBV range from the brightness sub-mapping table of the B channel; for example, the third DBV range to which the DBV belongs is [I B0 , I B1 , that is, I B0 << DBV << I B1 , and the third actual brightness range is [O B0 , O B1 .

[0051] Before this step, the display device needs to generate a brightness mapping table; among them, the process of the display device generating the brightness mapping table can be implemented through the following steps 3011-3013, including:

[0052] Step 3011: The display device determines multiple sampled DBVs from the DBV ranges supported by the display device.

[0053] The display device determines the DBV accuracy of the display device, determines the DBV range supported by the display device based on the DBV accuracy, and determines multiple sampled DBVs from the DBV ranges supported by the display device. For example, the DBV accuracy supported by the display device is m bits (bit), and m is an integer greater than 1; for example, m can be 8, 9, or 10, etc. Then the DBV range supported by the display device is [0, 2 m - 1], and multiple sampled DBVs are determined from [0, 2 m - 1].

[0054] Step 3012: The display device respectively determines that the DBV of the display device is the sampled DBV, and the brightness value of the pixel point when the gray scale value of the display device is the maximum gray scale value.

[0055] For any sampled DBV, the display device sets the DBV of the display device to the sampled DBV, and then measures the brightness value of the pixel point when the gray scale value of the display device is the maximum gray scale value through an optical instrument, and the pixel brightness value corresponding to the sampled DBV can be obtained; since there are multiple sampled DBVs, the display device will determine the pixel brightness values respectively corresponding to the multiple sampled DBVs.

[0056] Before this step, the display device needs to determine the maximum gray scale value supported by the display device, and the process can be: the display device determines the pixel accuracy of the display device, and determines the maximum gray scale value supported by the display device based on the pixel accuracy; for example, the pixel accuracy supported by the display device is n bit, then the maximum gray scale value supported by the display device is 2 n - 1, n is an integer greater than 1; for example, n can be 8, 9, or 10, etc.

[0057] Since the pixel value of a pixel point includes sub-pixel values of multiple color channels; therefore, the step of the display device measuring the brightness value of the pixel point when the gray scale value of the display device is the maximum gray scale value through an optical instrument can be: for the R channel, the display device measures the pixel brightness value of the R channel when the gray scale value of the display device is the maximum gray scale value through the optical instrument; for the G channel, the display device measures the pixel brightness value of the G channel when the gray scale value of the display device is the maximum gray scale value through the optical instrument; for the B channel, the display device measures the pixel brightness value of the B channel when the gray scale value of the display device is the maximum gray scale value through the optical instrument.

[0058] Step 3013: The display device establishes a brightness mapping table between the DBV and the pixel brightness value based on the sampled DBV and the pixel brightness value.

[0059] For the R channel, the display device establishes a brightness sub-mapping table of the R channel based on the sampled DBV and the pixel brightness value of the R channel measured based on the sampled DBV; for the G channel, the display device establishes a brightness sub-mapping table of the G channel based on the sampled DBV and the pixel brightness value of the G channel measured based on the sampled DBV; for the B channel, the display device establishes a brightness sub-mapping table of the B channel based on the sampled DBV and the pixel brightness value of the B channel measured based on the sampled DBV.

[0060] Before the display device leaves the factory, the display device determines the brightness compensation information corresponding to at least one target DBV and stores the brightness compensation information corresponding to at least one target DBV in the display device; therefore, when receiving a brightness setting instruction, first determine whether the first DBV indicated by the brightness setting instruction belongs to the target DBV; when the first DBV indicated by the brightness setting instruction belongs to the target DBV, directly perform brightness compensation on the current display screen of the display device based on the stored brightness compensation information corresponding to the target DBV; when the first DBV indicated by the brightness setting instruction does not belong to the target DBV, only perform brightness compensation on the current display screen of the display device according to the method provided in the embodiments of the present application.

[0061] When the first DBV indicated by the brightness setting instruction belongs to the target DBV, the display device performs brightness compensation on the current display screen of the display device based on the brightness compensation information of the target DBV. Among them, the brightness compensation information of the target DBV includes a gray scale mapping table between the gray scale value and the compensation value; correspondingly, the step of the display device performing brightness compensation on the current display screen of the display device based on the brightness compensation information of the target DBV can be: for any pixel point of the current display screen, the display device obtains the compensation value corresponding to the first gray scale value of the pixel point from the corresponding relationship between the gray scale value and the compensation value, and performs brightness compensation on the pixel point based on the compensation value.

[0062] In the case where the first gray level value of the pixel point does not exist in the gray level mapping table, the display device determines the gray level value range to which the gray level value belongs and the corresponding compensation value range based on the first gray level value of the pixel point, and linearly interpolates the compensation value of the gray level value based on the gray level value range and the compensation value range to obtain the compensation value corresponding to the gray level value, and then performs brightness compensation on the pixel point based on the compensation value corresponding to the gray level value.

[0063] For example, please refer to Figure 4 , in response to the brightness setting instruction, the display device determines whether the first DBV indicated by the brightness setting instruction belongs to the target DBV; in the case where the first DBV belongs to the target DBV, based on the brightness compensation information corresponding to the target DBV, determines the compensation value of the pixel point, accumulates the compensation value to the pixel point to obtain the second pixel value of the pixel point, and outputs the second pixel value of the pixel point to implement brightness compensation for the pixel point; in the case where the first DBV does not belong to the target DBV, the display device determines the first pixel brightness value of the pixel point based on the gray level mapping table through step 302.

[0064] Step 302: The display device determines the first pixel brightness value based on the first DBV, the DBV range, and the pixel brightness value range.

[0065] In a possible implementation manner, the display device interpolates using the minimum DBV of the DBV range and the minimum pixel brightness value of the pixel brightness value range as references to determine the first pixel brightness value; correspondingly, this step may be: the display device linearly interpolates the minimum pixel brightness value of the pixel brightness value range based on the first DBV, the minimum DBV of the DBV range, and the gamma coefficient of the display device to obtain the first pixel brightness value.

[0066] For example, the display device linearly interpolates the minimum pixel brightness value of the pixel brightness value range based on the first DBV, the minimum DBV of the DBV range, and the gamma coefficient of the display device through the following formula one to obtain the first pixel brightness value:

[0067] Formula one: Lv = (DBV / I0) C × O0

[0068] where, Lv represents the first pixel brightness value, DBV is the first DBV, I0 represents the minimum DBV of the DBV range, C represents the gamma coefficient of the display device, and O0 represents the minimum pixel brightness value of the pixel brightness value range.

[0069] In the embodiments of the present application, when determining the first pixel brightness value, the display device linearly interpolates the minimum pixel brightness value of the pixel brightness range, thereby improving the determination efficiency of the first pixel brightness value.

[0070] In another possible implementation, the display device determines the first pixel brightness value by interpolating using the maximum DBV within the DBV range and the maximum pixel brightness value within the pixel brightness value range as references; correspondingly, this step may be: The display device performs linear interpolation on the maximum pixel brightness value within the pixel brightness value range based on the first DBV, the maximum DBV within the DBV range, and the gamma coefficient of the display device to obtain the first pixel brightness value.

[0071] For example, the display device performs linear interpolation on the maximum pixel brightness value within the pixel brightness value range based on the first DBV, the maximum DBV within the DBV range, and the gamma coefficient of the display device, and obtains the first pixel brightness value through the following formula (2):

[0072] Formula (2): Lv = (DBV / I1) C × O1

[0073] wherein, Lv represents the first pixel brightness value, DBV is the first DBV, I1 represents the maximum DBV within the DBV range, C represents the gamma coefficient of the display device, and O1 represents the maximum pixel brightness value within the pixel brightness value range.

[0074] The DBV range includes a first DBV range corresponding to the R channel, a second DBV range corresponding to the G channel, and a third DBV range corresponding to the B channel; the pixel brightness value range includes a first pixel brightness value range corresponding to the first DBV range, a second pixel brightness value range corresponding to the second DBV range, and a third pixel brightness value range corresponding to the third DBV range; correspondingly, the first pixel brightness value includes a first brightness value corresponding to the R channel, a first brightness value corresponding to the G channel, and a first brightness value corresponding to the B channel. Therefore, the step of the display device performing linear interpolation on the minimum pixel brightness value within the pixel brightness value range based on the first DBV, the minimum DBV within the DBV range, and the gamma coefficient of the display device to obtain the first pixel brightness value may be implemented through the following steps 3021 - 3024, including:

[0075] Step 3021: For the R channel, the display device performs linear interpolation on the minimum pixel brightness value within the first pixel brightness value range based on the first DBV, the minimum DBV within the first DBV range, and the gamma coefficient of the display device to obtain the first brightness value corresponding to the R channel.

[0076] For example, the display device performs linear interpolation on the minimum pixel brightness value within the first pixel brightness value range based on the first DBV, the minimum DBV within the first DBV range, and the gamma coefficient of the display device, and obtains the first brightness value corresponding to the R channel through the following formula (3);

[0077] Formula (3): Lv R = (DBV / IR0 ) C ×P R0

[0078] Among them, Lv R represents the first luminance value corresponding to the R channel, DBV is the first DBV, and I R0 represents the minimum DBV of the first DBV range, C represents the gamma coefficient of the display device, and O R0 represents the minimum pixel luminance value of the actual first pixel luminance value range.

[0079] The display device can also perform linear interpolation on the maximum pixel luminance value of the first pixel luminance value range based on the first DBV, the maximum DBV of the first DBV range, and the gamma coefficient of the display device to obtain the first luminance value corresponding to the R channel; for example, the display device performs linear interpolation on the maximum pixel luminance value of the first pixel luminance value range based on the first DBV, the maximum DBV of the first DBV range, and the gamma coefficient of the display device through the following formula four to obtain the first luminance value corresponding to the R channel;

[0080] Formula four: Lv R =(DBV / I 11 ) C ×O R1

[0081] Among them, Lv R represents the first luminance value corresponding to the R channel, DBV is the first DBV, and I R1 represents the maximum DBV of the first DBV range, C represents the gamma coefficient of the display device, and O R1 represents the maximum pixel luminance value of the actual first pixel luminance value range.

[0082] Step 3022: For the G channel, the display device performs linear interpolation on the minimum pixel luminance value of the second pixel luminance value range based on the first DBV, the minimum DBV of the second DBV range, and the gamma coefficient of the display device to obtain the first luminance value corresponding to the G channel.

[0083] For example, the display device performs linear interpolation on the minimum pixel luminance value of the second pixel luminance value range based on the first DBV, the minimum DBV of the second DBV range, and the gamma coefficient of the display device through the following formula five to obtain the first luminance value corresponding to the G channel;

[0084] Formula five: Lv G =(DBV / I G0 ) C ×O G0

[0085] Among them, Lv Grepresents the first luminance value corresponding to the G channel, DBV is the first DBV, I G0 represents the minimum DBV of the second DBV range, C represents the gamma coefficient of the display device, O G0 represents the minimum pixel luminance value of the second pixel luminance value range.

[0086] The display device can also perform linear interpolation on the maximum pixel luminance value of the second pixel luminance value range based on the first DBV, the maximum DBV of the second DBV range, and the gamma coefficient of the display device to obtain the first luminance value corresponding to the G channel; for example, the display device performs linear interpolation on the maximum pixel luminance value of the second pixel luminance value range based on the first DBV, the maximum DBV of the second DBV range, and the gamma coefficient of the display device through the following formula six to obtain the first luminance value corresponding to the G channel;

[0087] Formula six: Lv G =(DBV / I G1 ) C ×O G1

[0088] where, Lv R represents the first luminance value corresponding to the R channel, DBV is the first DBV, I G1 represents the maximum DBV of the second DBV range, C represents the gamma coefficient of the display device, O G1 represents the maximum pixel luminance value of the second pixel luminance value range.

[0089] Step 3023: For the B channel, the display device performs linear interpolation on the minimum pixel luminance value of the third pixel luminance value range based on the first DBV, the minimum DBV of the third DBV range, and the gamma coefficient of the display device to obtain the first luminance value corresponding to the B channel.

[0090] For example, the display device performs linear interpolation on the minimum pixel luminance value of the third pixel luminance value range based on the first DBV, the minimum DBV of the third DBV range, and the gamma coefficient of the display device through the following formula seven to obtain the first luminance value corresponding to the B channel;

[0091] Formula seven: Lv B =(DBV / I B0 ) C ×O B0

[0092] where, Lv B represents the first luminance value corresponding to the B channel, DBV is the first DBV, I B0 represents the minimum DBV of the third DBV range, C represents the gamma coefficient of the display device, O B0Represents the minimum pixel brightness value of the third pixel brightness value range.

[0093] The display device can also perform linear interpolation on the maximum pixel brightness value of the third pixel brightness value range based on the first DBV, the maximum DBV of the third DBV range, and the gamma coefficient of the display device to obtain the first brightness value corresponding to the B channel; for example, the display device performs linear interpolation on the maximum pixel brightness value of the third pixel brightness value range based on the first DBV, the maximum DBV of the third DBV range, and the gamma coefficient of the display device through the following formula eight to obtain the first brightness value corresponding to the B channel;

[0094] Formula eight: Lv B =(DBV / I B1 ) C ×O B1

[0095] Where, Lv B represents the first brightness value corresponding to the B channel, DBV is the first DBV, I B1 represents the maximum DBV of the third DBV range, C represents the gamma coefficient of the display device, and O B1 represents the maximum pixel brightness value of the third pixel brightness value range.

[0096] Step 3024: The display device determines the first pixel brightness value based on the first brightness value corresponding to the R channel, the first brightness value corresponding to the G channel, and the first brightness value corresponding to the B channel.

[0097] The display device forms the first pixel brightness value by combining the first brightness value corresponding to the R channel, the first brightness value corresponding to the G channel, and the first brightness value corresponding to the B channel.

[0098] In the embodiment of the present application, the display device determines the first pixel brightness value based on the first brightness value of the R channel, the first brightness value of the G channel, and the first brightness value of the B channel, so as to realize determining the actual display brightness (the first pixel brightness value) of the pixel point based on the pixel brightness value at the channel level, and improve the accuracy of the determined actual display brightness.

[0099] Step 303: The display device determines the second pixel brightness value of the display device based on the first pixel brightness value and the first pixel value of the pixel point.

[0100] Since the first pixel brightness value is the brightness value of a pixel when the DBV of the display device is set to the first DBV and the grayscale value is the maximum grayscale value supported by the display device. And the first grayscale value of any pixel of the display device is not necessarily the maximum grayscale value; therefore, it is necessary to convert the first pixel brightness value to the second pixel brightness value when the grayscale value is the first grayscale value of the pixel based on the first pixel value of the pixel. The second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel. Correspondingly, this step can be implemented through the following steps 3031 - 3033, including:

[0101] Step 3031: The display device determines the pixel precision of the display device.

[0102] For example, the pixel precision of the display device is nbit, where n is an integer greater than 1; for example, n can be 8, 9, or 10, etc.

[0103] Step 3032: The display device determines the maximum grayscale value supported by the display device based on the pixel precision.

[0104] For example, if the pixel precision supported by the display device is nbit, then the maximum grayscale value supported by the display device is 2 n - 1.

[0105] Step 3033: The display device determines the second pixel brightness value of the display device based on the first pixel value, the maximum grayscale value, and the first pixel brightness value of the pixel.

[0106] The display device determines the first brightness ratio of the pixel based on the first pixel value, the maximum grayscale value, and the gamma coefficient of the display device; and determines the second pixel brightness value based on the first brightness ratio and the first pixel brightness value.

[0107] For example, the display device determines the second pixel brightness value of the display device through the following Formula Nine based on the first pixel value, the maximum grayscale value, and the first pixel brightness value:

[0108] Formula Nine: Lv′ = (RGB / (2 n - 1)) C × Lv

[0109] where Lv′ represents the second pixel brightness value, RGB represents the first pixel value of the pixel, 2 n - 1 represents the maximum grayscale value, C represents the gamma coefficient of the display device, (RGB / (2 n - 1)) C represents the first brightness ratio of the pixel, and Lv represents the first pixel brightness value.

[0110] The first pixel value of the pixel includes the first sub-pixel value of the R channel, the first sub-pixel value of the G channel, and the first sub-pixel value of the B channel; the first pixel brightness value includes the first brightness value of the R channel, the first brightness value of the G channel, and the first brightness value of the B channel; the second pixel brightness value includes the second brightness value of the R channel, the second brightness value of the G channel, and the second brightness value of the B channel; correspondingly, the steps for the display device to determine the second pixel brightness value of the display device based on the first pixel value, the maximum gray level value, and the first pixel brightness value of the pixel can be implemented through the following steps 30331-30334, including:

[0111] Step 30331: For the R channel, the display device determines the second brightness value of the R channel based on the first sub-pixel value of the R channel of the pixel, the maximum gray level value, and the first brightness value of the R channel.

[0112] For example, the display device determines the second brightness value of the R channel based on the first sub-pixel value of the R channel of the pixel, the maximum gray level value, and the first brightness value of the R channel through the following formula ten:

[0113] Formula ten: Lv′ R =(R / (2 n -1)) C ×Lv R

[0114] Wherein, Lv′ R represents the second brightness value of the R channel, R represents the first sub-pixel value of the R channel of the pixel, 2 n -1 represents the maximum gray level value, C represents the gamma coefficient of the display device, and Lv R represents the first brightness value of the R channel.

[0115] Step 30332: For the R channel, the display device determines the second brightness value of the G channel based on the first sub-pixel value of the G channel of the pixel, the maximum gray level value, and the first brightness value of the G channel.

[0116] For example, the display device determines the second brightness value of the G channel based on the first sub-pixel value of the G channel of the pixel, the maximum gray level value, and the first brightness value of the G channel through the following formula eleven:

[0117] Formula eleven: Lv′ G =(G / (2 n -1)) C ×Lv G

[0118] Wherein, Lv′ G represents the second brightness value of the G channel, G represents the first sub-pixel value of the G channel of the pixel, 2 n-1 represents the maximum grayscale value, C represents the gamma coefficient of the display device, and Lv G represents the first luminance value of the G channel.

[0119] Step 30333: For the B channel, the display device determines the second luminance value of the B channel based on the first sub-pixel value of the B channel of the pixel, the maximum grayscale value, and the first luminance value of the B channel.

[0120] For example, the display device determines the second luminance value of the B channel through the following Formula XII based on the first sub-pixel value of the B channel of the pixel, the maximum grayscale value, and the first luminance value of the B channel:

[0121] Formula XII: Lv′ B = (B / (2 n - 1)) C × Lv B

[0122] where Lv′ B represents the second luminance value of the B channel, B represents the first sub-pixel value of the B channel of the pixel, 2 n - 1 represents the maximum grayscale value, C represents the gamma coefficient of the display device, and Lv B represents the first luminance value of the B channel.

[0123] Step 30334: The display device determines the second pixel luminance value based on the second luminance value of the R channel, the second luminance value of the G channel, and the second luminance value of the B channel.

[0124] The display device forms the second pixel luminance value by combining the second luminance value of the R channel, the second luminance value of the G channel, and the second luminance value of the B channel.

[0125] For example, please continue to refer to Figure 4 , and the display device determines the second pixel luminance value of the pixel at the DBV based on the first actual luminance value.

[0126] In the embodiment of the present application, the display device converts the first pixel luminance value into the second pixel luminance value of the first DBV based on the first pixel value of the pixel, thereby improving the accuracy of the determined second pixel luminance value.

[0127] Step 304: The display device determines the first compensation value based on the second pixel luminance value and the luminance compensation information corresponding to the target DBV. The first compensation value is a value that sets the DBV of the display device to the target DBV and compensates the luminance of the pixel in the luminance domain.

[0128] The luminance compensation information corresponding to the target DBV includes a grayscale mapping table between the grayscale value and the compensation value; correspondingly, please refer to Figure 5, this step can be implemented through the following steps 3041 - 3043, including:

[0129] Step 3041: The display device determines the first gray level value of the pixel based on the second pixel brightness value and the third pixel brightness value. The third pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the target DBV and the gray level value is the maximum gray level value.

[0130] The display device determines the ratio of the second pixel brightness value to the third pixel brightness value to obtain the second brightness ratio; based on the second brightness ratio and the gamma coefficient of the display device, it determines the gray level ratio of the pixel. The gray level ratio is the ratio of the first gray level value of the pixel to the maximum gray level value; based on the gray level ratio and the maximum gray level value, it determines the first gray level value of the pixel. For example, the display device determines the first gray level value of the pixel through the following Formula XIII:

[0131] Formula XIII:

[0132] Among them, Gray′ represents the first gray level value of the pixel, Lv′ represents the second pixel brightness value, I′ represents the third pixel brightness value, Lv′ / I′ represents the second brightness ratio, represents the gray level ratio, 2 n -1 represents the maximum gray level value.

[0133] The second pixel brightness value includes the second brightness value of the R channel, the second brightness value of the G channel, and the second brightness value of the B channel; the third pixel brightness value includes the third brightness value of the R channel, the third brightness value of the G channel, and the third brightness value of the B channel; the first gray level value of the pixel includes the first gray level value of the R channel, the first gray level value of the G channel, and the first gray level value of the B channel of the pixel; correspondingly, step 3041 can be implemented through the following steps 30411 - 30414, including:

[0134] Step 30411: For the R channel, the display device determines the ratio of the second brightness value of the R channel to the third brightness value of the R channel to obtain the second brightness ratio of the R channel; based on the second brightness ratio of the R channel and the gamma coefficient of the display device, it determines the gray level ratio of the R channel of the pixel. The gray level ratio of the R channel is the ratio of the gray level value of the R channel of the pixel to the maximum gray level value; based on the gray level ratio of the R channel and the maximum gray level value, it determines the first gray level value of the R channel of the pixel.

[0135] For example, the display device determines the first gray level value of the R channel of the pixel through the following Formula XIV:

[0136] Formula XIV:

[0137] Among them, Gray′ RRepresents the first gray-scale value of the R channel of the pixel point, Lv′ R Represents the second luminance value of the R channel, I′ R Represents the third luminance value of the R channel, C represents the gamma coefficient of the display device, Represents the gray-scale proportion of the R channel, 2 n -1 represents the maximum gray-scale value.

[0138] Step 30412: For the G channel, the display device determines the ratio of the second luminance value of the G channel to the third luminance value of the G channel to obtain the second luminance proportion of the G channel; based on the second luminance proportion of the G channel and the gamma coefficient of the display device, determines the gray-scale proportion of the G channel of the pixel point, and the gray-scale proportion of the G channel is the ratio of the gray-scale value of the G channel of the pixel point to the maximum gray-scale value; based on the gray-scale proportion of the G channel and the maximum gray-scale value, determines the first gray-scale value of the G channel of the pixel point.

[0139] For example, the display device determines the first gray-scale value of the G channel of the pixel point through the following formula fifteen:

[0140] Formula fifteen:

[0141] Among them, Gray′ G Represents the first gray-scale value of the G channel of the pixel point, Lv′ G Represents the second luminance value of the G channel, I′ G Represents the third luminance value of the G channel, C represents the gamma coefficient of the display device, Represents the gray-scale proportion of the G channel, 2 n -1 represents the maximum gray-scale value.

[0142] Step 30413: For the B channel, the display device determines the ratio of the second luminance value of the B channel to the third luminance value of the B channel to obtain the second luminance proportion of the B channel; based on the second luminance proportion of the B channel and the gamma coefficient of the display device, determines the gray-scale proportion of the B channel of the pixel point, and the gray-scale proportion of the B channel is the ratio of the gray-scale value of the B channel of the pixel point to the maximum gray-scale value; based on the gray-scale proportion of the B channel and the maximum gray-scale value, determines the first gray-scale value of the B channel of the pixel point.

[0143] For example, the display device determines the gray-scale value of the B channel of the pixel point through the following formula sixteen:

[0144] Formula sixteen:

[0145] Among them, Gray′ B Represents the gray-scale value of the B channel of the pixel point, Lv′ G Represents the second luminance value of the B channel, I′ BThe third luminance value of the B channel is represented by A, and the gamma coefficient of the display device is represented by C. The grayscale proportion of the B channel is represented by B, and 2 n -1 represents the maximum grayscale value.

[0146] Step 30414: The display device determines the first grayscale value of the pixel based on the grayscale values of the R channel, G channel, and B channel of the pixel.

[0147] The display device forms the first grayscale value of the pixel by combining the grayscale values of the R channel, G channel, and B channel of the pixel.

[0148] Step 3042: The display device determines the third compensation value based on the first grayscale value of the pixel and the grayscale mapping table. The third compensation value is the value for setting the DBV of the display device to the target DBV and performing luminance compensation on the pixel in the grayscale domain.

[0149] The step can be implemented through the following steps 30421 - 30423, including

[0150] Step 30421: The display device determines the grayscale value range to which the first grayscale value belongs and the corresponding compensation value range from the grayscale mapping table based on the first grayscale value of the pixel.

[0151] The display device searches for the first grayscale value from the grayscale mapping table based on the first grayscale value of the pixel. When the first grayscale value is found in the grayscale mapping table, the corresponding compensation value is determined as the third compensation value; when the first grayscale value is not found in the grayscale mapping table, the grayscale value range to which the first grayscale value belongs is determined from the grayscale mapping table, and the minimum compensation value and the maximum compensation value are determined based on the minimum grayscale value and the maximum grayscale value of the grayscale value range, and the minimum compensation value and the maximum compensation value are combined to form the compensation value range.

[0152] The first grayscale value of the pixel includes the first grayscale value of the R channel, the first grayscale value of the G channel, and the first grayscale value of the B channel of the pixel; the grayscale mapping table includes the grayscale sub - mapping table of the R channel, the grayscale sub - mapping table of the G channel, and the grayscale sub - mapping table of the B channel. The grayscale value range includes the first grayscale value range of the R channel, the second grayscale value range of the G channel, and the third grayscale value range of the B channel, and the compensation value range includes the first compensation value range corresponding to the first grayscale value range, the second compensation value range corresponding to the second grayscale value range, and the third compensation value range corresponding to the third grayscale value range. Correspondingly, step 30421 can be:

[0153] For the R channel of a pixel, the display device determines, based on the first gray level value of the R channel of the pixel, the first gray level value range to which the first gray level value of the R channel belongs and the first compensation value range corresponding to the first gray level value range from the gray level sub-mapping table of the R channel. For example, the first gray level value range is That is The first compensation value range is

[0154] For the G channel of a pixel, the display device determines, based on the first gray level value of the G channel of the pixel, the second gray level value range to which the first gray level value of the G channel belongs and the second compensation value range corresponding to the second gray level value range from the gray level sub-mapping table of the G channel. For example, the second gray level value range is That is The second compensation value range is

[0155] For the B channel of a pixel, the display device determines, based on the first gray level value of the B channel of the pixel, the third gray level value range to which the first gray level value of the B channel belongs and the third compensation value range corresponding to the third gray level value range from the gray level sub-mapping table of the B channel. For example, the third gray level value range is That is The third compensation value range is

[0156] Step 30422: The display device determines a compensation value increment based on the first gray level value of the pixel, the minimum gray level value of the gray level value range, the maximum gray level value of the gray level value range, the minimum compensation value of the compensation value range, and the maximum compensation value.

[0157] The first gray level value of the pixel includes the first gray level value of the R channel, the first gray level value of the G channel, and the first gray level value of the B channel of the pixel. The gray level value range includes the first gray level value range of the R channel, the second gray level value range of the G channel, and the third gray level value range of the B channel. The compensation value range includes the first compensation value range corresponding to the first gray level value range, the second compensation value range corresponding to the second gray level value range, and the third compensation value range corresponding to the third gray level value range. The compensation value increment includes the compensation value increment of the R channel, the compensation value increment of the G channel, and the compensation value increment of the B channel. Accordingly, step 30422 may be:

[0158] For the R channel of a pixel, the display device determines the compensation value increment of the R channel based on the first gray level value of the R channel of the pixel, the minimum gray level value of the first gray level value range, the maximum gray level of the first gray level value range, the minimum compensation value of the first compensation value range, and the maximum compensation value.

[0159] For the G channel of a pixel, the display device determines an increment value of the compensation value for the G channel based on the first gray level value of the G channel of the pixel, the minimum gray level value of the second gray level value range, the maximum gray level of the second gray level value range, the minimum compensation value of the second compensation value range, and the maximum compensation value.

[0160] For the B channel of a pixel, the display device determines an increment value of the compensation value for the B channel based on the first gray level value of the B channel of the pixel, the minimum gray level value of the third gray level value range, the maximum gray level of the third gray level value range, the minimum compensation value of the third compensation value range, and the maximum compensation value.

[0161] Step 30423: The display device determines a third compensation value based on the increment value of the compensation value and the minimum compensation value.

[0162] The display device determines the sum of the increment value of the compensation value and the minimum compensation value to obtain the third compensation value.

[0163] In a possible implementation, steps 30422-30423 can be implemented by the following formula XVII:

[0164] Formula XVII:

[0165] where offset1′ represents the third compensation value, Gray′ represents the first gray level value of the pixel, represents the minimum gray level value of the gray level value range, represents the maximum gray level of the gray level value range, represents the maximum compensation value of the compensation value range, represents the minimum compensation value of the compensation value range.

[0166] The third compensation value includes the third compensation value of the R channel, the third compensation value of the G channel, and the third compensation value of the B channel of the pixel; correspondingly, for the R channel of the pixel, steps 30422-30423 can be implemented by the following formula XVIII:

[0167] Formula XVIII:

[0168] where offset′ r represents the third compensation value of the R channel, Gray′ R represents the first gray level value of the R channel of the pixel, represents the minimum gray level value of the first gray level value range, represents the maximum gray level of the first gray level value range, represents the maximum compensation value of the first compensation value range, represents the minimum compensation value of the first compensation value range.

[0169] For the G channel of the pixel, steps 30422 - 30423 can be implemented by the following Formula XIX:

[0170] Formula XIX:

[0171] where offset′ g represents the third compensation value of the G channel, Gray′ G represents the first grayscale value of the G channel of this pixel, represents the minimum grayscale value of the second grayscale value range, represents the maximum grayscale value of the second grayscale value range, represents the maximum compensation value of the second compensation value range, represents the minimum compensation value of the second compensation value range.

[0172] For the B channel of the pixel, steps 30422 - 30423 can be implemented by the following Formula XX:

[0173] Formula XX:

[0174] where offset′ b represents the third compensation value of the B channel, Gray′ B represents the first grayscale value of the B channel of this pixel, represents the minimum grayscale value of the third grayscale value range, represents the maximum grayscale value of the third grayscale value range, represents the maximum compensation value of the third compensation value range, represents the minimum compensation value of the third compensation value range.

[0175] Step 3043: The display device determines the first compensation value based on the third compensation value.

[0176] The third compensation value is the compensation value in the grayscale domain. The display device needs to convert the compensation value in the grayscale domain into the first compensation value in the luminance domain. Correspondingly, this step can be: The display device determines the maximum luminance value in the grayscale domain based on the first grayscale value of the pixel, the third compensation value, the gamma coefficient of the display device, the maximum grayscale value, and the third pixel luminance value; determines the actual luminance value in the grayscale domain based on the first grayscale value of the pixel, the gamma coefficient of the display device, the maximum grayscale value, and the third pixel luminance value; and determines the first compensation value based on the maximum luminance value and the actual luminance value.

[0177] For example, the display device determines the first compensation value through the following Formula XXI:

[0178] Formula XXI:

[0179] Among them, offset2′ represents the first compensation value, Gray′ represents the first grayscale value of this pixel point, offset1′ represents the third compensation value, 2 n -1 represents the maximum grayscale value, C represents the gamma coefficient of the display device, I′ represents the third pixel brightness value, represents the maximum brightness value of the grayscale domain, represents the actual brightness value of the grayscale domain.

[0180] The third compensation value includes the third compensation value of the R channel, the third compensation value of the G channel, and the third compensation value of the B channel. The first grayscale value of the pixel point includes the first grayscale value of the R channel, the first grayscale value of the G channel, and the first grayscale value of the B channel of the pixel point. The third pixel brightness value includes the third brightness value of the R channel, the third brightness value of the G channel, and the third brightness value of the B channel. The maximum brightness value includes the maximum brightness value of the R channel, the maximum brightness value of the G channel, and the maximum brightness value of the B channel. The actual brightness value includes the actual brightness value of the R channel, the actual brightness value of the G channel, and the actual brightness value of the B channel; correspondingly, step 3043 can be:

[0181] For the R channel of the pixel point, the display device determines the maximum brightness value of the R channel in the grayscale domain based on the first grayscale value of the R channel of the pixel point, the third compensation value of the R channel, the gamma coefficient of the display device, the maximum grayscale value, and the third brightness value of the R channel; based on the first grayscale value of the R channel of the pixel point, the gamma coefficient of the display device, the maximum grayscale value, and the third brightness value of the R channel, determines the actual brightness value of the R channel in the grayscale domain; based on the maximum brightness value of the R channel and the actual brightness value of the R channel, determines the first compensation value of the R channel.

[0182] For example, the display device can determine the first compensation value of the R channel through the following formula twenty-two:

[0183] Formula twenty-two:

[0184] Among them, offset′ R represents the first compensation value of the R channel, Gray′ R represents the first grayscale value of the R channel of this pixel point, offset′ r represents the third compensation value of the R channel, 2 n -1 represents the maximum grayscale value, C represents the gamma coefficient of the display device, I′ R represents the third brightness value of the R channel, represents the maximum brightness value of the R channel in the grayscale domain, represents the actual brightness value of the R channel in the grayscale domain.

[0185] For the G channel of a pixel, the display device determines the maximum brightness value of the G channel in the gray scale domain based on the first gray scale value of the G channel of the pixel, the third compensation value of the G channel, the gamma coefficient of the display device, the maximum gray scale value, and the third brightness value of the G channel; determines the actual brightness value of the G channel in the gray scale domain based on the first gray scale value of the G channel of the pixel, the gamma coefficient of the display device, the maximum gray scale value, and the third brightness value of the G channel; and determines the first compensation value of the G channel based on the maximum brightness value and the actual brightness value of the G channel.

[0186] For example, the display device can determine the first compensation value of the G channel through the following formula (23):

[0187] Formula (23):

[0188] where offset′ G represents the first compensation value of the G channel, Gray′ G represents the first gray scale value of the G channel of the pixel, offset′ g represents the third compensation value of the G channel, 2 n -1 represents the maximum gray scale value, C represents the gamma coefficient of the display device, I′ G represents the third brightness value of the G channel, represents the maximum brightness value of the G channel in the gray scale domain, represents the actual brightness value of the G channel in the gray scale domain.

[0189] For the B channel of a pixel, the display device determines the maximum brightness value of the B channel in the gray scale domain based on the first gray scale value of the B channel of the pixel, the third compensation value of the B channel, the gamma coefficient of the display device, the maximum gray scale value, and the third brightness value of the B channel; determines the actual brightness value of the B channel in the gray scale domain based on the first gray scale value of the B channel of the pixel, the gamma coefficient of the display device, the maximum gray scale value, and the third brightness value of the B channel; and determines the first compensation value of the B channel based on the maximum brightness value and the actual brightness value of the B channel.

[0190] For example, the display device can determine the first compensation value of the B channel through the following formula (24):

[0191] Formula (24):

[0192] where offset′ B represents the first compensation value of the B channel, Gray′ B represents the first gray scale value of the B channel of the pixel, offset′ b represents the third compensation value of the B channel, 2 n-1 represents the maximum gray scale value, C represents the gamma coefficient of the display device, and I′ B represents the third luminance value of the B channel, represents the maximum luminance value of the B channel in the gray scale domain, represents the actual luminance value of the B channel in the gray scale domain.

[0193] Step 305: The display device converts the first compensation value into a second compensation value based on the first pixel luminance value, the second pixel luminance value, and the first pixel value of the pixel. The second compensation value is the value for setting the DBV of the display device to the first DBV and performing luminance compensation on the pixel in the gray scale domain.

[0194] The first compensation value is the compensation value in the luminance domain, and the display device needs to convert the compensation value in the luminance domain into the second compensation value in the gray scale domain. Correspondingly, this step may be: The display device determines the second pixel value of the pixel based on the first compensation value, the first pixel luminance value, the second pixel luminance value, the gamma coefficient of the display device, and the maximum gray scale value; determines the difference between the second pixel value of the pixel and the first pixel value of the pixel to obtain the second compensation value.

[0195] For example, the display device can determine the second compensation value through the following formula twenty-five:

[0196] Formula twenty-five:

[0197] where offset represents the second compensation value, Lv′ represents the second pixel luminance value, offset2′ represents the first compensation value, Lv represents the first pixel luminance value, and 2 n -1 represents the maximum gray scale value, represents the second pixel value, and RGB represents the first pixel value.

[0198] The first compensation value includes the first compensation value of the R channel, the first compensation value of the G channel, and the first compensation value of the B channel. The first pixel luminance value includes the first luminance value of the R channel, the first luminance value of the G channel, and the first luminance value of the B channel. The second pixel luminance value includes the second luminance value of the R channel, the second luminance value of the G channel, and the second luminance value of the B channel. The second pixel value of the pixel includes the second sub-pixel value of the R channel, the second sub-pixel value of the G channel, and the second sub-pixel value of the B channel of the pixel. The first pixel value of the pixel includes the first sub-pixel value of the R channel, the first sub-pixel value of the G channel, and the first sub-pixel value of the B channel of the pixel. The second compensation value includes the second compensation value of the R channel, the second compensation value of the G channel, and the second compensation value of the B channel. Correspondingly, step 305 may be:

[0199] For the R channel of a pixel, the display device determines the second sub-pixel value of the R channel of the pixel based on the first compensation value of the R channel, the first luminance value of the R channel, the second luminance value of the R channel, the gamma coefficient of the display device, and the maximum gray level value; determines the difference between the second sub-pixel value of the R channel of the pixel and the first sub-pixel value of the R channel of the pixel to obtain the second compensation value of the R channel.

[0200] For example, the display device can determine the second compensation value of the R channel through the following formula (26):

[0201] Formula (26):

[0202] where offset R represents the second compensation value of the R channel, Lv′ R represents the second luminance value of the R channel, offset′ R represents the first compensation value of the R channel, Lv R represents the first luminance value of the R channel, 2 n -1 represents the maximum gray level value, represents the second sub-pixel value of the R channel, and R represents the first sub-pixel value of the R channel.

[0203] For the G channel of a pixel, the display device determines the second sub-pixel value of the G channel of the pixel based on the first compensation value of the G channel, the first luminance value of the G channel, the second luminance value of the G channel, the gamma coefficient of the display device, and the maximum gray level value; determines the difference between the second sub-pixel value of the G channel of the pixel and the first sub-pixel value of the G channel of the pixel to obtain the second compensation value of the G channel.

[0204] For example, the display device can determine the second compensation value of the G channel through the following formula (27):

[0205] Formula (27):

[0206] where offset G represents the second compensation value of the G channel, Lv′ G represents the second luminance value of the G channel, offset′ G represents the first compensation value of the G channel, Lv G represents the first luminance value of the G channel, 2 n -1 represents the maximum gray level value, represents the second sub-pixel value of the G channel, and G represents the first sub-pixel value of the G channel.

[0207] For the B channel of a pixel, the display device determines the second sub-pixel value of the B channel of the pixel based on the first compensation value of the B channel, the first luminance value of the B channel, the second luminance value of the B channel, the gamma coefficient of the display device, and the maximum gray level value; determines the difference between the second sub-pixel value of the B channel of the pixel and the first sub-pixel value of the B channel of the pixel to obtain the second compensation value of the B channel.

[0208] For example, the display device can determine the second compensation value of the B channel through the following formula (28):

[0209] Formula (28):

[0210] where offset B represents the second compensation value of the B channel, Lv′ B represents the second luminance value of the B channel, offset′ B represents the first compensation value of the B channel, Lv B represents the first luminance value of the B channel, 2 n -1 represents the maximum gray level value, represents the second sub-pixel value of the B channel, and B represents the first sub-pixel value of the B channel.

[0211] The display device determines the sum of the second compensation values, marks the first DBV as the target DBV, and determines the first gray level value and the second compensation value of the pixel as the luminance compensation information corresponding to the target DBV, so as to directly perform luminance compensation on the pixel based on the luminance compensation information subsequently to improve the efficiency of luminance compensation.

[0212] Step 306: The display device performs luminance compensation on the first pixel value of the pixel based on the second compensation value.

[0213] The display device determines the sum of the first pixel value and the second compensation value of the pixel to obtain the second pixel value of the pixel; performs luminance compensation on the first pixel value of the pixel based on the second pixel value of the pixel. By way of example, the steps for the display device to perform luminance compensation on the first pixel value of the pixel based on the second pixel value of the pixel can be: The display device outputs the second pixel value of the pixel. Since the second pixel value of the pixel is greater than the first pixel value of the pixel, therefore, the display device can output the second pixel value of the pixel to achieve the effect of luminance compensation for the pixel.

[0214] The second compensation value includes the second compensation value of the R channel, the second compensation value of the G channel, and the second compensation value of the B channel. The first pixel value includes the first sub-pixel value of the R channel, the first sub-pixel value of the G channel, and the first sub-pixel value of the B channel. The second pixel value includes the second sub-pixel value of the R channel, the second sub-pixel value of the G channel, and the second sub-pixel value of the B channel. Correspondingly, step 306 may be as follows:

[0215] For the R channel of the pixel, the display device determines the sum of the first sub-pixel value and the second compensation value of the R channel of the pixel to obtain the second sub-pixel value of the R channel of the pixel. For the G channel of the pixel, the display device determines the sum of the first sub-pixel value and the second compensation value of the G channel of the pixel to obtain the second sub-pixel value of the G channel of the pixel. For the B channel of the pixel, the display device determines the sum of the first sub-pixel value and the second compensation value of the B channel of the pixel to obtain the second sub-pixel value of the B channel of the pixel. Based on the second sub-pixel value of the R channel, the second sub-pixel value of the G channel, and the second sub-pixel value of the B channel, brightness compensation is performed on the first pixel value of the pixel.

[0216] For example, the second sub-pixel value of the R channel, the second sub-pixel value of the G channel, and the second sub-pixel value of the B channel are as shown in Equation 29 below:

[0217] Equation 29: output R =R + offset R

[0218] output G =G + offset G

[0219] output B =B + offset B

[0220] Where output R represents the second sub-pixel value of the R channel, R represents the first sub-pixel value of the R channel, and offset R represents the second compensation value of the R channel; output G represents the second sub-pixel value of the G channel, G represents the first sub-pixel value of the G channel, and offset G represents the second compensation value of the G channel; output B represents the second sub-pixel value of the B channel, B represents the first sub-pixel value of the B channel, and offset B represents the second compensation value of the B channel.

[0221] For example, please continue to refer to Figure 4, the display device calculates a luminance domain compensation value based on the second pixel luminance value to obtain a first compensation value, and then based on a second compensation value obtained by converting the first compensation value into a gray scale domain, accumulates the second compensation value in the gray scale domain to the pixel point, and outputs a second pixel value after compensation for the pixel point.

[0222] In an embodiment of the present application, a luminance mapping table is set for the display device in advance. The luminance mapping table is used to store the correspondence between the DBV and the pixel luminance value. The DBV is used to represent the theoretical display luminance set for the display device, and the pixel luminance value is used to represent the actual display luminance of the current display screen. Therefore, when setting the first DBV of the display device, based on the first DBV, the luminance mapping table, and the first pixel value of the pixel point of the current display screen, a second pixel luminance value reflecting the actual luminance value of the current display screen can be determined. Thus, based on the second pixel luminance value of the current display screen and the luminance compensation information corresponding to the determined target DBV, the luminance of the current display screen can be accurately compensated, thereby improving the image quality of the current display screen.

[0223] Please refer to Figure 6 , which shows a structural block diagram of a luminance compensation device provided by an exemplary embodiment of the present application. The device includes:

[0224] A first determination module 601, configured to, in response to a luminance setting instruction, when the first display device luminance value DBV indicated by the luminance setting instruction does not belong to the target DBV, determine a first pixel luminance value corresponding to the first DBV based on the first DBV and the luminance mapping table. The target DBV is the DBV for which luminance compensation information has been determined. The luminance mapping table is used to store the correspondence between the DBV and the pixel luminance value. The first pixel luminance value is the luminance value of the pixel point when the DBV of the display device is set to the first DBV and the gray scale value is the maximum gray scale value supported by the display device;

[0225] A second determination module 602, configured to, for any pixel point in the current display screen, determine a second pixel luminance value based on the first pixel luminance value and the first pixel value of the pixel point. The second pixel luminance value is the luminance value of the pixel point when the DBV of the display device is set to the first DBV and the gray scale value is the first gray scale value of the pixel point;

[0226] A compensation module 603, configured to perform luminance compensation on the pixel point based on the second pixel luminance value and the luminance compensation information corresponding to the target DBV.

[0227] In a possible implementation, the first determination module 601 is configured to determine, based on the first DBV, the DBV range to which the first DBV belongs and the pixel brightness value range corresponding to the DBV range from the brightness mapping table; and determine the first pixel brightness value based on the first DBV, the DBV range, and the pixel brightness value range.

[0228] In another possible implementation, the first determination module 601 is configured to perform linear interpolation on the minimum pixel brightness value of the pixel brightness value range based on the first DBV, the minimum DBV of the DBV range, and the gamma coefficient of the display device to obtain the first pixel brightness value.

[0229] In another possible implementation, the device further includes:

[0230] A third determination module, configured to determine a plurality of sampled DBVs from the DBV ranges supported by the display device;

[0231] A fourth determination module, configured to respectively determine the brightness values of pixel points when the DBV of the display device is the sampled DBV and the grayscale value of the display device is the maximum grayscale value;

[0232] A building module, configured to build a brightness mapping table between the DBV and the pixel brightness value based on the sampled DBV and the pixel brightness value.

[0233] In another possible implementation, the second determination module 602 is configured to determine the pixel precision of the display device; determine the maximum grayscale value supported by the display device based on the pixel precision; and determine the second pixel brightness value of the display device based on the first pixel value of the pixel point, the maximum grayscale value, and the first pixel brightness value.

[0234] In another possible implementation, the second determination module 602 is configured to determine the first brightness ratio of the pixel point based on the first pixel value of the pixel point, the maximum grayscale value, and the gamma coefficient of the display device; and determine the second pixel brightness value based on the first brightness ratio and the first pixel brightness value.

[0235] In another possible implementation, the compensation module 603 is configured to determine a first compensation value based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV. The first compensation value is a value for setting the DBV of the display device to the target DBV and performing brightness compensation on the pixel point in the brightness domain. Based on the first pixel brightness value, the second pixel brightness value, and the first pixel value of the pixel point, the first compensation value is converted into a second compensation value. The second compensation value is a value for setting the DBV of the display device to the first DBV and performing brightness compensation on the pixel point in the grayscale domain. Based on the second compensation value, brightness compensation is performed on the first pixel value of the pixel point.

[0236] In another possible implementation, the brightness compensation information corresponding to the target DBV includes a grayscale mapping table between grayscale values and compensation values.

[0237] The compensation module 603 is configured to determine a first grayscale value of the pixel point based on the second pixel brightness value and a third pixel brightness value. The third pixel brightness value is the brightness value of the pixel point when the DBV of the display device is set to the target DBV and the grayscale value is the maximum grayscale value. Based on the first grayscale value of the pixel point and the grayscale mapping table, a third compensation value is determined. The third compensation value is a value for setting the DBV of the display device to the target DBV and performing brightness compensation on the pixel point in the grayscale domain. Based on the third compensation value, the first compensation value is determined.

[0238] In another possible implementation, the compensation module 603 is configured to determine a ratio of the second pixel brightness value to the third pixel brightness value to obtain a second brightness ratio. Based on the second brightness ratio and the gamma coefficient of the display device, a grayscale ratio of the pixel point is determined. The grayscale ratio is the ratio of the first grayscale value of the pixel point to the maximum grayscale value. Based on the grayscale ratio and the maximum grayscale value, the first grayscale value of the pixel point is determined.

[0239] In another possible implementation, the compensation module 603 is configured to determine, based on the first grayscale value of the pixel point, a grayscale value range to which the first grayscale value belongs and a corresponding compensation value range in the grayscale mapping table. Based on the first grayscale value of the pixel point, the minimum grayscale value of the grayscale value range, the maximum grayscale value of the grayscale value range, the minimum compensation value of the compensation value range, and the maximum compensation value, a compensation value increment is determined. Based on the compensation value increment and the minimum compensation value, the third compensation value is determined.

[0240] In another possible implementation, the compensation module 603 is configured to determine the maximum brightness value of the gray level domain based on the first gray level value of the pixel point, the third compensation value, the gamma coefficient of the display device, the maximum gray level value, and the third pixel brightness value; determine the actual brightness value of the gray level domain based on the first gray level value of the pixel point, the gamma coefficient of the display device, the maximum gray level value, and the third pixel brightness value; and determine the first compensation value based on the maximum brightness value and the actual brightness value.

[0241] In another possible implementation, the compensation module 603 is configured to determine the second pixel value of the pixel point based on the first compensation value, the first pixel brightness value, the second pixel brightness value, the gamma coefficient of the display device, and the maximum gray level value; and determine the difference between the second pixel value of the pixel point and the first pixel value of the pixel point to obtain the second compensation value.

[0242] In another possible implementation, the compensation module 603 is configured to determine the sum of the first pixel value of the pixel point and the second compensation value to obtain the second pixel value of the pixel point; and perform brightness compensation on the first pixel value of the pixel point based on the second pixel value of the pixel point.

[0243] In the embodiments of the present application, a brightness mapping table is set for the display device in advance. The brightness mapping table is used to store the correspondence between the DBV and the pixel brightness value. The DBV is used to reflect the theoretical display brightness set for the display device, and the pixel brightness value is used to reflect the actual display brightness of the current display screen. Therefore, when setting the first DBV of the display device, based on the first DBV, the brightness mapping table, and the first pixel value of the pixel points of the current display screen, the second pixel brightness value reflecting the actual brightness value of the current display screen can be determined. Thus, based on the second pixel brightness value of the current display screen and the brightness compensation information corresponding to the determined target DBV, the current display screen can be accurately brightness-compensated, thereby improving the image quality of the current display screen.

[0244] It should be noted that when the brightness compensation device provided in the above embodiments performs brightness compensation, only the division of the above functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the display device is divided into different functional modules to complete all or part of the functions described above. In addition, the brightness compensation device provided in the above embodiments and the embodiments of the brightness compensation method belong to the same concept. The specific implementation process is detailed in the method embodiments and will not be repeated here.

[0245] See Figure 7 , Figure 7It is a schematic structural diagram of a display device 700 provided by an exemplary embodiment of the present application. The display device 700 may further include one or more of the following components: a processor 710, a memory 720, and a display screen 730.

[0246] The processor 710 connects various parts within the entire display device 700 using various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and by calling data stored in the memory 720, it performs various functions of the display device 700 and processes data. Optionally, the processor 710 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 710 may integrate one or several combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 730; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above modem may not be integrated into the processor 710 and may be implemented separately through a computer program product.

[0247] The memory 720 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 720 includes a non-transitory computer-readable storage medium. The memory 720 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the display device 700 (such as audio data, phone book), etc.

[0248] The display screen 730 is a display component for displaying a user interface. Optionally, the display screen 730 is a display screen with touch function. Through the touch function, the user can perform touch operations on the display screen 730 with any suitable object such as a finger or a stylus.

[0249] The display screen 730 is usually arranged on the front panel of the display device 700. The display screen 730 can be designed as a full-screen, curved-screen, irregular-shaped screen, double-sided screen or foldable screen. The display screen 730 can also be designed as a combination of a full-screen and a curved-screen, a combination of an irregular-shaped screen and a curved-screen, etc. This embodiment does not limit this.

[0250] In addition, those skilled in the art can understand that the structure of the display device 700 shown in the above drawings does not constitute a limitation on the display device 700. The display device 700 may include more or fewer components than shown in the drawings, or combine certain components, or have different component arrangements. For example, the display device 700 also includes components such as a WiFi module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply, etc., which will not be elaborated here.

[0251] An embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the brightness compensation method as described in the above embodiment.

[0252] On the other hand, an embodiment of the present application provides a computer program product, and the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the brightness compensation method as described in the above embodiment.

[0253] On the other hand, an embodiment of the present application provides a chip, and the chip includes programmable logic circuits and / or program instructions. When the chip runs on a display device, the chip is used to implement the brightness compensation method as described in the above embodiment.

[0254] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0255] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A brightness compensation method, characterized in that: The method comprises: In response to a brightness setting instruction, when a first display brightness value DBV indicated by the brightness setting instruction does not belong to a target DBV, determining a first pixel brightness value corresponding to the first DBV based on the first DBV and a brightness mapping table, wherein the target DBV is a DBV for which brightness compensation information has been determined, and the brightness mapping table is used to store a correspondence between DBVs and pixel brightness values, wherein the first pixel brightness value is a brightness value of a pixel point when the DBV of a display device is set to the first DBV and the grayscale value is a maximum grayscale value supported by the display device; For any pixel in the current display image, determine a second pixel brightness value based on the first pixel brightness value and the first pixel value of the pixel, where the second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel; Brightness compensation is performed on the pixel point based on the second pixel brightness value and brightness compensation information corresponding to the target DBV.

2. The method according to claim 1, characterized in that: The determining, based on the first DBV and a brightness mapping table, a first pixel brightness value corresponding to the first DBV includes: Based on the first DBV, determining from the brightness mapping table a DBV range to which the first DBV belongs and a pixel brightness value range corresponding to the DBV range; The first pixel brightness value is determined based on the first DBV, the DBV range, and the pixel brightness value range.

3. The method according to claim 2, characterized in that The determining the first pixel brightness value based on the first DBV, the DBV range, and the pixel brightness value range includes: Based on the first DBV, the minimum DBV of the DBV range, and the gamma coefficient of the display device, linear interpolation is performed on the minimum pixel brightness value of the pixel brightness value range to obtain the first pixel brightness value.

4. The method according to claim 2, characterized in that: The method further comprises: Determine a plurality of sample DBVs from a range of DBVs supported by the display device; Respectively determine that the DBV of the display device is the sampled DBV, and the grayscale value of the display device is the brightness value of the pixel point with the maximum grayscale value; Based on the sampled DBV and the pixel brightness value, a brightness mapping table between DBV and pixel brightness value is established.

5. The method according to claim 1, characterized in that The determining the second pixel brightness value based on the first pixel brightness value and the first pixel value of the pixel point includes: Determining the pixel accuracy of the display device; Based on the pixel accuracy, determining a maximum grayscale value supported by the display device; A second pixel brightness value of the display device is determined based on the first pixel value of the pixel point, the maximum grayscale value, and the first pixel brightness value.

6. The method according to claim 5, characterized in that The determining, based on the first pixel value of the pixel point, the maximum grayscale value, and the first pixel brightness value, a second pixel brightness value of the display device includes: Determining a first brightness ratio of the pixel point based on the first pixel value of the pixel point, the maximum grayscale value, and a gamma coefficient of the display device; The second pixel brightness value is determined based on the first brightness ratio and the first pixel brightness value.

7. The method according to any one of claims 1 to 6, characterized in that: The performing brightness compensation on the pixel point based on the brightness value of the second pixel and the brightness compensation information corresponding to the target DBV includes: Determine a first compensation value based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV, wherein the first compensation value is a value for setting the DBV of the display device to the target DBV and performing brightness compensation on the pixel in a brightness domain; Based on the first pixel brightness value, the second pixel brightness value and the first pixel value of the pixel point, converting the first compensation value into a second compensation value, wherein the second compensation value is a value obtained by setting the DBV of the display device to the first DBV and performing brightness compensation on the pixel point in a grayscale domain; Based on the second compensation value, brightness compensation is performed on the first pixel value of the pixel point.

8. The method according to claim 7, characterized in that The brightness compensation information corresponding to the target DBV includes a grayscale mapping table between grayscale values ​​and compensation values; The determining the first compensation value based on the second pixel brightness value and the brightness compensation information corresponding to the target DBV includes: Determine a first grayscale value of the pixel based on the second pixel brightness value and the third pixel brightness value, wherein the third pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the target DBV and the grayscale value is the maximum grayscale value; Determine a third compensation value based on the first grayscale value of the pixel and the grayscale mapping table, wherein the third compensation value is a value for setting the DBV of the display device to the target DBV and performing brightness compensation on the pixel in the grayscale domain; Based on the third compensation value, the first compensation value is determined.

9. The method according to claim 8, characterized in that The determining the first grayscale value of the pixel point based on the second pixel brightness value and the third pixel brightness value includes: Determine a ratio of the second pixel brightness value to the third pixel brightness value to obtain a second brightness ratio; Determine the grayscale ratio of the pixel based on the second brightness ratio and the gamma coefficient of the display device, where the grayscale ratio is a ratio of the first grayscale value of the pixel to the maximum grayscale value; Based on the grayscale proportion and the maximum grayscale value, a first grayscale value of the pixel is determined.

10. The method according to claim 8, characterized in that The determining the third compensation value based on the first grayscale value of the pixel and the grayscale mapping table includes: Based on the first grayscale value of the pixel, determining from the grayscale mapping table a grayscale value range to which the first grayscale value belongs and a compensation value range corresponding to the grayscale value range; Determining a compensation value increment based on the first grayscale value of the pixel, the minimum grayscale value of the grayscale value range, the maximum grayscale value of the grayscale value range, the minimum compensation value and the maximum compensation value of the compensation value range; The third compensation value is determined based on the compensation value increment and the minimum compensation value.

11. The method according to claim 8, characterized in that The determining the first compensation value based on the third compensation value includes: Determining a maximum brightness value of the grayscale domain based on the first grayscale value of the pixel, the third compensation value, the gamma coefficient of the display device, the maximum grayscale value and the third pixel brightness value; Determining an actual brightness value of the grayscale domain based on the first grayscale value of the pixel, the gamma coefficient of the display device, the maximum grayscale value, and the third pixel brightness value; The first compensation value is determined based on the maximum brightness value and the actual brightness value.

12. The method according to claim 7, characterized in that The converting the first compensation value into a second compensation value based on the first pixel brightness value, the second pixel brightness value and the first pixel value of the pixel point comprises: Determining a second pixel value of the pixel point based on the first compensation value, the first pixel brightness value, the second pixel brightness value, the gamma coefficient of the display device, and the maximum grayscale value; A difference between a second pixel value of the pixel point and a first pixel value of the pixel point is determined to obtain the second compensation value.

13. The method according to claim 7, characterized in that The performing brightness compensation on the first pixel value of the pixel point based on the second compensation value includes: Determine the sum of the first pixel value and the second compensation value of the pixel point to obtain the second pixel value of the pixel point; Based on the second pixel value of the pixel point, brightness compensation is performed on the first pixel value of the pixel point.

14. A brightness compensation device, characterized in that: The device comprises: A first determination module, configured to respond to a brightness setting instruction, and when a first display brightness value DBV indicated by the brightness setting instruction does not belong to a target DBV, determine a first pixel brightness value corresponding to the first DBV based on the first DBV and a brightness mapping table, wherein the target DBV is a DBV for which brightness compensation information has been determined, and the brightness mapping table is used to store a correspondence between DBVs and pixel brightness values, wherein the first pixel brightness value is a brightness value of a pixel point when the DBV of a display device is set to the first DBV and the grayscale value is a maximum grayscale value supported by the display device; a second determining module, configured to determine, for any pixel in the current display image, a second pixel brightness value based on the first pixel brightness value and the first pixel value of the pixel, wherein the second pixel brightness value is the brightness value of the pixel when the DBV of the display device is set to the first DBV and the grayscale value is the first grayscale value of the pixel; A compensation module is used to perform brightness compensation on the pixel point based on the brightness value of the second pixel and the brightness compensation information corresponding to the target DBV.

15. A display device, characterized in that: The display device comprises a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the brightness compensation method according to any one of claims 1 to 13.

16. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions. When the chip runs on a display device, the chip is used to implement the brightness compensation method according to any one of claims 1 to 13.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the brightness compensation method according to any one of claims 1 to 13.

18. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the brightness compensation method as described in any one of claims 1 to 13.

Citation Information

Cited By

  • Screen brightness compensation method and device, electronic equipment and readable storage medium

    CN121075263A

  • Screen brightness compensation method and device, electronic equipment and readable storage medium

    CN121075263B