A brightness compensation method and device of a display panel and electronic equipment
By using lookup tables and grayscale compensation value adjustments, the compatibility issues between VDF and POLC functions were resolved, achieving brightness uniformity and image quality of the display panel at different refresh rates.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TCL CHINA STAR OPTOELECTRONICS TECHNOLOGY CO LTD
- Filing Date
- 2025-05-20
- Publication Date
- 2026-06-19
AI Technical Summary
In the existing technology, the variable refresh rate flicker-free (VDF) function and the polarity inversion compensation (POLC) function are not well compatible, resulting in uneven brightness of the display panel when switching between different refresh rates, and causing flickering and horizontal crosstalk problems.
By using a first lookup table to determine the target source drive circuit of the target sub-pixel, and combining it with a second or third lookup table to accurately determine the polarity of the target sub-pixel, the grayscale compensation value is adjusted to avoid polarity flipping and misalignment, thereby achieving brightness compensation.
It improves the brightness uniformity of the display panel at different refresh rates, reduces brightness anomalies caused by polarity reversal, and ensures picture quality.
Smart Images

Figure CN120340430B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display technology, and in particular to a brightness compensation method, apparatus, and electronic device for a display panel. Background Technology
[0002] Liquid Crystal Display (LCD) panels can address flicker issues caused by Variable Refresh Rate (VRR) using Variable Refresh Rate De-flicker (VDF) technology. This involves individually setting compensation values for different leakage current conditions of sub-pixels with different polarities. For horizontal crosstalk, LCDs can employ Polarity Reversal Compensation (POLC) technology to reverse the polarity of signals output from adjacent source driver circuits. This prevents the voltage of upper and lower rows of sub-pixels from affecting the common electrode voltage, thus fundamentally preventing crosstalk. However, currently, VDF and POLC functions are not yet fully compatible. Summary of the Invention
[0003] This invention provides a brightness compensation method, apparatus, and electronic device for a display panel, enabling good compatibility between VDF and POLC functions.
[0004] In a first aspect, embodiments of the present invention provide a brightness compensation method for a display panel, the display panel including a plurality of source driving circuits; each source driving circuit is connected to a plurality of data lines for driving sub-pixels connected to the plurality of data lines; the method includes: when a polarity inversion compensation function is enabled, determining a target source driving circuit for driving a target sub-pixel according to a first lookup table; the first lookup table includes a mapping relationship between the plurality of source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes the sub-pixels connected to the plurality of data lines connected to the source driving circuit; determining the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table; wherein, the second lookup table includes the polarity of the sub-pixel in the driving boundary region. The mapping relationship between sub-pixels of a domain and their corresponding pixel polarities; the third lookup table includes the mapping relationship between sub-pixels in non-driving boundary regions and their corresponding pixel polarities; the driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold; when the sub-pixels within the driving range corresponding to the target source driving circuit need to have their polarities flipped, the grayscale compensation value corresponding to the target pixel polarity is adjusted to obtain a first target grayscale compensation value, and brightness compensation is performed on the target sub-pixels.
[0005] In some embodiments, the driving boundary information includes the minimum column coordinate of the sub-pixel connected to the first data line within the driving range corresponding to the source driving circuit; determining the target source driving circuit for driving the target sub-pixel according to the first lookup table includes: obtaining the target column coordinate of the target sub-pixel; using the target column coordinate as a lookup index to search the first lookup table for a column coordinate that is the same as the target column coordinate; if the first lookup table contains a column coordinate that is the same as the target column coordinate, determining the source driving circuit corresponding to the column coordinate that is the same as the target column coordinate as the target source driving circuit; if the first lookup table does not contain a column coordinate that is the same as the target column coordinate, obtaining a reference column coordinate in the first lookup table; determining the source driving circuit corresponding to the reference column coordinate as the target source driving circuit, wherein the reference column coordinate is the column coordinate in the first lookup table with the smallest difference from the target column coordinate and less than the target column coordinate.
[0006] In some embodiments, the driving boundary information includes the minimum column coordinates of the sub-pixels connected by the first data line within the driving range corresponding to the source driving circuit; the method further includes: determining the position type of the target sub-pixel according to the first lookup table; the position type includes being in the driving boundary region or in the non-driving boundary region; determining the first boundary column coordinates and the second boundary column coordinates of the driving range of the target source driving circuit corresponding to the target sub-pixel according to the first lookup table; the first boundary column coordinates are less than the second boundary column coordinates; if the absolute value of the first difference between the first boundary column coordinates and the target column coordinates of the target sub-pixel is less than or equal to a preset threshold, or the absolute value of the second difference between the second boundary column coordinates and the target column coordinates is less than or equal to the preset threshold, then the position type of the target sub-pixel is determined to be in the driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the second lookup table; if the absolute value of the first difference is greater than the preset threshold and the absolute value of the second difference is greater than the preset threshold, then the position type of the target sub-pixel is determined to be in the non-driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the third lookup table.
[0007] In some embodiments, determining the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table includes: obtaining the target row coordinates and target column coordinates of the target sub-pixel, and determining the target pixel polarity according to the target row coordinates, the target column coordinates, the number of the first row of the second lookup table, and the number of the first column of the second lookup table; or, obtaining the target row coordinates and target column coordinates of the target sub-pixel, and determining the target pixel polarity according to the target row coordinates, the target column coordinates, the number of the second row of the third lookup table, and the number of the second column of the third lookup table.
[0008] In some embodiments, determining the target pixel polarity based on the target row coordinates, the target column coordinates, the number of first rows in the second lookup table, and the number of first columns in the second lookup table includes: determining a first row lookup index based on the target row coordinates and the number of first rows; determining a first column lookup index based on the target column coordinates and the number of first columns; and obtaining the target pixel polarity from the second lookup table based on the first row lookup index and the first column lookup index.
[0009] In some embodiments, determining the target pixel polarity based on the target row coordinates, the target column coordinates, the second row number of the third lookup table, and the second column number of the third lookup table includes: determining a second row lookup index based on the target row coordinates and the second row number; determining a second column lookup index based on the target column coordinates and the second column number; and obtaining the target pixel polarity from the third lookup table based on the second row lookup index and the second column lookup index.
[0010] In some embodiments, adjusting the grayscale compensation value corresponding to the polarity of the target pixel to obtain a first target grayscale compensation value and performing brightness compensation on the target sub-pixel includes: obtaining a first original grayscale compensation value corresponding to the positive polarity and a second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel before polarity reversal; if the polarity of the target pixel is negative, determining the first original grayscale compensation value as the first target grayscale compensation value; if the polarity of the target pixel is positive, determining the second original grayscale compensation value as the first target grayscale compensation value.
[0011] In some embodiments, the method further includes: when it is determined that the sub-pixel driven by the target source driving circuit does not need polarity inversion, obtaining a first original grayscale compensation value corresponding to the positive polarity and a second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel; determining a second target grayscale compensation value of the target sub-pixel based on the first original grayscale compensation value and the second original grayscale compensation value, and performing brightness compensation on the target sub-pixel; wherein, if the target pixel polarity of the target sub-pixel is positive, the first original grayscale compensation value is determined to be the second target grayscale compensation value; if the target pixel polarity of the target sub-pixel is negative, the second original grayscale compensation value is determined to be the second target grayscale compensation value.
[0012] In some embodiments, the step of performing brightness compensation on the target sub-pixel includes: acquiring initial display data of the target sub-pixel; compensating the initial display data according to the first target grayscale compensation value or the second target grayscale compensation value to obtain target display data; and driving the target sub-pixel according to the target display data to perform brightness compensation on the target sub-pixel.
[0013] Secondly, embodiments of the present invention also provide a brightness compensation device for a display panel, the display panel including a plurality of source driving circuits; each source driving circuit is connected to a plurality of data lines for driving sub-pixels connected to the plurality of data lines; the brightness compensation device includes: a first determining unit, used to determine a target source driving circuit for driving a target sub-pixel according to a first lookup table when the polarity flip compensation function is enabled; the first lookup table includes a mapping relationship between the plurality of source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; a second determining unit, used to determine the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table; wherein, the second lookup table includes a mapping relationship between sub-pixels located in the driving boundary information and their corresponding pixel polarities; the third lookup table includes a mapping relationship between sub-pixels located in non-driving boundary areas and their corresponding pixel polarities; and an adjusting unit, used to adjust the grayscale compensation value corresponding to the target pixel polarity when the sub-pixel within the driving range corresponding to the target source driving circuit needs polarity flipping, to obtain a first target grayscale compensation value, and to perform brightness compensation on the target sub-pixel.
[0014] Thirdly, embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the brightness compensation method for the display panel described in any of the above claims.
[0015] The present invention provides a brightness compensation method, apparatus, and electronic device for a display panel. By using a first lookup table to determine the target source driving circuit of a target sub-pixel, it can then determine whether the target source driving circuit requires polarity inversion. Since the first lookup table contains mapping relationships between multiple source driving circuits and driving boundary information, it can accurately locate the source driving circuit corresponding to the target sub-pixel, thereby accurately determining whether the target sub-pixel is in a polarity inversion region. This reduces false detections in traditional polarity inversion determination methods that are limited to source driving circuits requiring the same data lines. Furthermore, a second or third lookup table is used to determine the target pixel polarity of the target sub-pixel. Since the second lookup table contains the correspondence between sub-pixels in the driving boundary region and their pixel polarities, and the third lookup table contains the correspondence between sub-pixels in the non-driving boundary region and their pixel polarities, the second or third lookup table is selected based on the actual coordinates of the target sub-pixel. This allows for a more accurate determination of the target pixel polarity of the target sub-pixel. In addition, when the target sub-pixel needs to be polarized, the grayscale compensation value corresponding to the polarity of the target pixel is adjusted to avoid the problem of abnormal screen brightness caused by the misalignment of positive and negative polarity compensation due to the polarity flip of the sub-pixel, which leads to different brightness in different positions of the final displayed screen. Attached Figure Description
[0016] The present invention will be further described below with reference to the accompanying drawings. It should be noted that the accompanying drawings described below are only for explaining some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a structural block diagram of a liquid crystal display panel provided in an embodiment of the present invention.
[0018] Figure 2 This is a schematic diagram illustrating the connection relationship between the chip-on-film (COF), data lines, and sub-pixels provided in an embodiment of the present invention. Figure 1 .
[0019] Figure 3 This is a schematic diagram illustrating the connection relationships between COF, data lines, and sub-pixels provided in an embodiment of the present invention. Figure 2 .
[0020] Figure 4 This is a schematic diagram illustrating how the positive and negative polarities in the VDF function may compensate for misalignment after the pixel polarity of the sub-pixel is flipped by the POLC function provided in the embodiments of the present invention.
[0021] Figure 5 This is a flowchart illustrating the brightness compensation method for a display panel provided in an embodiment of the present invention.
[0022] Figure 6 This is a schematic diagram provided by an embodiment of the present invention for explaining the determination of the target source drive circuit when there is no column coordinate in the first lookup table that is the same as the target column coordinate of the target sub-pixel.
[0023] Figure 7 This is a schematic diagram provided for distinguishing between driving boundary regions and non-driving boundary regions in an embodiment of the present invention.
[0024] Figure 8 This is a schematic diagram of the second lookup table provided in an embodiment of the present invention.
[0025] Figure 9 This is a schematic diagram of a brightness compensation device for a display panel provided in an embodiment of the present invention.
[0026] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0028] The terms "first," "second," etc., used in this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other steps or modules inherent to these processes, methods, products, or apparatuses.
[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0030] This invention provides a brightness compensation method for a display panel, which includes, but is not limited to, the following embodiments and combinations thereof.
[0031] In some embodiments, the brightness compensation method is applied to, for example... Figure 1 The display panel shown is described. The display panel 100 may include a main structure 101 and a driving circuit 102. The main structure 101 may include sub-pixels 1011 arranged in an array along a first direction (such as the X direction) and a second direction (such as the Y direction). The driving circuit 102 may include multiple source drivers 1021 and multiple data lines 1022 connected to each source driver 1021. Each source driver may be directly packaged in a flexible circuit board (Film) to form a COF. Each COF may be fixed to the aforementioned main structure 101. Each source driver 1021 may drive the sub-pixels 1011 connected to the multiple data lines 1022, wherein each data line 1022 connects to one or more columns of sub-pixels 1011.
[0032] like Figure 2 and Figure 3As shown, it exemplarily illustrates the connection relationship between COF, data lines, and sub-pixels. Assuming... Figure 2 The display panel 100 shown includes COFs 1 and 2. The display panel 100 also includes data lines 1, 2, and 3, and sub-pixels 959, 960, and 961. Figure 2 In the diagram, data line 1 and data line 2 are connected to COF1. Data line 1 is connected to the 958th column sub-pixel, and data line 2 is connected to the 959th column sub-pixel. Data line 3 is connected to COF2, and data line 3 is connected to the 961st column sub-pixel. Figure 2 An example is shown where each data line connects to a sub-pixel that is in the same column.
[0033] Assumption Figure 3 The display panel 100 shown includes COFs 3 and 4. The display panel 100 also includes data lines 4 and 5, and includes sub-pixels at columns 959, 960, and 961. Figure 3 In the diagram, data line 4 is connected to COF3, and data line 4 is also connected to a portion of the 959th and 960th column sub-pixels. Data line 5 is connected to COF4, and data line 5 is also connected to a portion of the 960th and 961st column sub-pixels. That is, Figure 3 An example is shown where the sub-pixels connected by each data line are distributed in two adjacent columns.
[0034] It should be noted that in practical applications, the connection relationships of COF, data lines, and subpixels in a display panel can all be as follows: Figure 2 As shown; or all as shown Figure 3 As shown; or partly as shown Figure 2 The connection relationship shown, another part as Figure 3 The connection relationships are shown. The specific design can be tailored to actual needs.
[0035] In practical applications, when the display panel with the above structure operates in VRR mode, the refresh rate needs to be dynamically adjusted by changing the length of the vertical blanking period (v-blanking). Specifically, at high refresh rates, the v-blanking length is shorter, and correspondingly, the response time of the leakage current in the sub-pixels (circuits) is also shorter. In this case, the brightness of the original image can be maintained. At low refresh rates, the v-blanking length is longer, and the response time of the leakage current in the sub-pixels is also longer. In this case, the brightness of the image gradually decreases, and the original brightness cannot be maintained. Under these circumstances, when the display panel quickly switches between different refresh rates, the difference in brightness of the displayed image will cause noticeable flicker to be observed by the human eye. Therefore, to solve the above flicker problem, grayscale compensation can be performed on the original image, allowing the sub-pixels to charge more during the charging time to offset the leakage current effect, thus maintaining the brightness of the displayed image at low refresh rates. However, since the leakage current of the positive and negative sub-pixels is different, separate grayscale compensation values need to be set for the positive and negative sub-pixels. The aforementioned technology to address the flicker issue caused by VRR can be simply referred to as VDF technology. In practical applications, parasitic capacitance exists between the common electrode and data lines of the display panel. When the voltage of the data lines changes rapidly, it interferes with the voltage of the common electrode (Vcom) through coupling via parasitic capacitance, resulting in horizontal crosstalk (H crosstalk). Analysis of the H crosstalk principle shows that the degree of crosstalk is related to the voltage jumps between the data lines of two consecutive rows of sub-pixels. The greater the difference between the data voltages of the two rows of sub-pixels, the more severe the H crosstalk. For example, at the top and bottom edges of a gray-background, white-framed image, the H crosstalk is more severe due to the large voltage difference between the data lines of the two rows of sub-pixels. To solve the H crosstalk problem, a POLC function can be implemented on the display panel. The POLC function works as follows: it flips the horizontal polarity of the COF outputs of adjacent sub-pixels on the display panel, changing it from +-+- to -+-+, thus avoiding the influence of the voltage of the data lines of the two rows of sub-pixels on the voltage (Vcom) of the common electrode, thereby preventing horizontal crosstalk from occurring.
[0036] In some use cases (such as high-precision display control, dynamic image optimization, and low-power design), it is necessary to use both the VDF and POLC functions of the display panel simultaneously. When these two functions are used together, the POLC function flips the pixel polarity of subpixels, which may cause a misalignment in the positive and negative polarity compensation of the VDF function, resulting in a reduced VRR flicker compensation effect or even image distortion. For example, as... Figure 4 As shown. In Figure 4 In the example, assuming the pixel polarity of a sub-pixel is not flipped, the grayscale compensation values corresponding to the positive and negative polarities are X1 and X2, respectively. After the pixel polarity of a sub-pixel is flipped, the polarity compensation changes to X2 for positive polarity (+) and X1 for negative polarity (-), resulting in compensation misalignment. To avoid this misalignment, the grayscale compensation values for the positive and negative polarities corresponding to the polarity-flipped region need to be redistributed so that the grayscale compensation values correspond to the correct polarity. However, the current compatibility method only supports display panels where each COF connects to the same data line. For display panels where each COF connects to different data lines, the current compatibility method cannot accurately determine whether the target sub-pixel is in the polarity-flipped region, and the pixel polarity of the target sub-pixel is easily misjudged.
[0037] To address the aforementioned problems, embodiments of the present invention provide a brightness compensation method for a display panel, such as... Figure 5 As shown, the brightness compensation method may include, but is not limited to, the following steps and combinations thereof.
[0038] S51, when the polarity inversion compensation function is enabled, the target source driving circuit for driving the target sub-pixel is determined according to the first lookup table; the first lookup table includes the mapping relationship between multiple source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes the sub-pixel connected by multiple data lines connected to the source driving circuit.
[0039] It should be noted that, as described above, Polarity Inversion Compensation (POLC) is a function of the display panel. Therefore, in some display scenarios (such as static image display scenarios, low refresh rate display scenarios, etc.), the POLC function can be disabled. In other display scenarios (such as the aforementioned high-precision display control, dynamic image optimization, and low-power design scenarios), the POLC function can be enabled. The embodiments of this invention describe some operations when the POLC function is enabled.
[0040] Here, the first lookup table can pre-define the mapping relationship between each of the multiple source driver circuits and its corresponding drive boundary information. The drive boundary information can be used to indicate the drive boundary of the drive range of the source driver circuit, or it can be used to characterize the drive range of the source driver circuit. The understanding of drive boundary information, drive range, and drive boundary can be achieved through the aforementioned... Figure 3 The connection relationships between COF, data lines, and subpixels are illustrated below. Figure 3In this example, assuming display panel 100 includes COF3 and COF4, and display panel 100 contains a total of 1920 columns of subpixels. In this case, data line 4 is the last data line connected to COF3; data line 5 is the first data line connected to COF4, that is, the first data line arranged in the first direction within the driving range. When dividing the driving range of COF3 and COF4, since data line 5 also connects to a portion of the 960th column of subpixels, the 960th column of subpixels can be considered as the first column of subpixels in the driving range of COF4, corresponding to the smallest column coordinate of the subpixel connected to the first data line in the driving range corresponding to the source driving circuit. The 959th column of subpixels is the last column of subpixels in the driving range of COF3. Based on this, the driving range of COF3 can exemplarily include 1 to 959 columns of subpixels. The driving range of COF4 can exemplarily include 960 to 1920 columns of subpixels. In this partitioning method, the column coordinate 960 of the 960th sub-pixel can be used as an example to represent the driving boundary information corresponding to COF4, indicating the starting position or starting boundary of the sub-pixel driven by COF4, and also characterizing the driving range of COF4. In this example, the column coordinate 1 of the first column of sub-pixels (first column of sub-pixels) within the driving range of COF3 can be used as an example to represent the driving boundary information corresponding to COF3, indicating the starting position of the sub-pixel driven by COF3, and also characterizing the driving range of COF3. It is understood that the terminating boundary of the sub-pixel driven by COF4 can be the 1920th sub-pixel; the terminating boundary of the sub-pixel driven by COF3 can be the 959th sub-pixel.
[0041] In some embodiments, the first lookup table may be stored in a register of the source driver circuit, and the first lookup table may include a mapping relationship between multiple source driver circuits and corresponding drive boundary information. As an example, the drive boundary information may include the minimum column coordinates of the sub-pixels connected by the first data line within the drive range corresponding to the source driver circuit. The understanding of the minimum column coordinates is as described above. Figure 3 The boundary drive information corresponding to COF4 in the shown display panel can be 960. It should be noted that the size of the first lookup table can be determined by the number of COFs contained in the display panel. For example, when the display panel contains 24 COFs, the size of the first lookup table can be represented as 1*24, where 1 represents 1 row and 24 represents 24 columns.
[0042] The brightness compensation method provided in this embodiment of the invention can solve the boundary positioning problem when the data lines connected to each COF in the display panel are different by setting a first lookup table. It can accurately find the source driving circuit corresponding to the target sub-pixel, and then determine whether the target sub-pixel is in the pixel polarity inversion region.
[0043] Based on this, in the embodiments of the invention, given a known first lookup table, the target source driving circuit for driving the target sub-pixel can be determined according to the first lookup table. Specifically, the driving boundary information includes the minimum column coordinate of the sub-pixel connected to the first data line within the driving range corresponding to the source driving circuit. Determining the target source driving circuit for driving the target sub-pixel according to the first lookup table may include: obtaining the target column coordinate of the target sub-pixel; using the target column coordinate as a lookup index to search the first lookup table for a column coordinate identical to the target column coordinate; if a column coordinate identical to the target column coordinate exists in the first lookup table, determining the source driving circuit corresponding to the column coordinate identical to the target column coordinate as the target source driving circuit; if a column coordinate identical to the target column coordinate does not exist in the first lookup table, obtaining a reference column coordinate in the first lookup table; determining the source driving circuit corresponding to the reference column coordinate as the target source driving circuit, wherein the reference column coordinate is the column coordinate in the first lookup table with the smallest difference from the target column coordinate and less than the target column coordinate.
[0044] It should be noted that the meaning of the minimum column coordinate has been explained in detail above and will not be repeated here. When determining the target source driving circuit of the target sub-pixel according to the first lookup table, there are two cases: First, if there is a column coordinate in the first lookup table that is the same as the target column coordinate of the target sub-pixel, then the source driving circuit corresponding to the column coordinate that is the same as the target column coordinate of the target sub-pixel is determined to be the target source driving circuit.
[0045] For example, such as Figure 3 As shown, assuming the display panel 100 includes COF3 and COF4, and the display panel 100 contains a total of 1920 columns of sub-pixels, and the driving boundary information corresponding to COF3 and COF4 can be 1 and 960 respectively. In this case, assuming the target column coordinate of the target sub-pixel is 960, and the first lookup table happens to contain column coordinate 960, therefore, the COF4 corresponding to the 960th column sub-pixel is the target source driving circuit.
[0046] In the second case, if there is no column coordinate in the first lookup table that is the same as the target column coordinate of the target sub-pixel, then it is necessary to obtain the reference column coordinate in the first lookup table and determine the source drive circuit corresponding to this reference column coordinate as the target source drive circuit.
[0047] For example, such as Figure 6As shown, assume that display panel 100 includes COF5, COF6, and COF7, and that display panel 100 contains a total of 1920 columns of sub-pixels, and that the driving boundary information corresponding to COF5, COF6, and COF7 are 1, 640, and 1500, respectively. Now, suppose the target column coordinate of the target sub-pixel is 700, but it is not in the first lookup table. In this case, it is necessary to obtain the column coordinate 640 in the first lookup table that has the smallest difference from 700 and is less than 700, as the reference column coordinate, and then use the COF6 corresponding to 640 as the target source driving circuit.
[0048] S52, determine the target pixel polarity of the target sub-pixel according to the second lookup table or the third lookup table; wherein, the second lookup table includes the mapping relationship between sub-pixels in the driving boundary region and their corresponding pixel polarities; the third lookup table includes the mapping relationship between sub-pixels in the non-driving boundary region and their corresponding pixel polarities.
[0049] The driving boundary region may include sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region may include sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold.
[0050] It should be noted that in obtaining the target pixel polarity of a target sub-pixel, it can be first determined whether the target sub-pixel is in a driving boundary region or a non-driving boundary region. If the target sub-pixel is in a driving boundary region, the second lookup table is used to obtain the target pixel polarity; if the target sub-pixel is in a non-driving boundary region, the third lookup table is used to obtain the target pixel polarity. Thus, the location type of the target sub-pixel is first determined, and then the selection of the second or third lookup table to obtain the target pixel polarity is determined based on the location type. Here, the second and third lookup tables can be different. Specifically, the second lookup table can include a preset mapping relationship between sub-pixels in driving boundary regions and their corresponding pixel polarities; the third lookup table can include a preset mapping relationship between sub-pixels in non-driving boundary regions and their corresponding pixel polarities. These two lookup tables, through partitioned management, can solve problems such as signal integrity, voltage maintenance, and electric field uniformity, while balancing display effect and circuit design complexity.
[0051] For the aforementioned understanding of the driving boundary region and the non-driving boundary region, for example, as follows: Figure 7As shown, assuming the driving range corresponding to COF8 includes 1 to 320 columns of sub-pixels, the position type of sub-pixels whose absolute value of the difference between the column coordinate and 1 (the sub-pixel located at the starting boundary of the driving range) is less than or equal to a preset threshold (e.g., 4) or whose absolute value of the difference between the column coordinate and 320 (the sub-pixel located at the ending boundary of the driving range) is less than or equal to a preset threshold (e.g., 4) can be considered to be in the driving boundary region. That is, the driving boundary region can include sub-pixels whose absolute value of the difference between the column coordinate and the column coordinate of the boundary sub-pixel included in the driving range of the source driving circuit is less than or equal to a preset threshold. The boundary sub-pixel can be the aforementioned sub-pixel located at the starting boundary of the driving range or the sub-pixel located at the ending boundary of the driving range. The position type of a sub-pixel whose absolute value of the difference between its column coordinate and 1 is greater than a preset threshold (e.g., 4) or whose absolute value of the difference between its column coordinate and 320 is greater than a preset threshold (e.g., 4) within the driving range of columns 1 to 320 can be considered to be in a non-driving boundary region. That is, the non-driving boundary region can include sub-pixels whose absolute value of the difference between its column coordinate and the column coordinate of the boundary sub-pixel included in the driving range of the source driving circuit is greater than the preset threshold.
[0052] Based on this, in some embodiments, the driving boundary information may include the minimum column coordinate of the sub-pixel connected by the first data line within the driving range corresponding to the source driving circuit; the method may further include the following steps: determining the position type of the target sub-pixel according to the first lookup table; the position type includes being in the driving boundary region or in the non-driving boundary region; determining the first boundary column coordinate and the second boundary column coordinate of the driving range of the target source driving circuit corresponding to the target sub-pixel according to the first lookup table; the first boundary column coordinate is less than the second boundary column coordinate; if the absolute value of the first difference between the first boundary column coordinate and the target column coordinate of the target sub-pixel is less than or equal to a preset threshold, or the absolute value of the second difference between the second boundary column coordinate and the target column coordinate is less than or equal to the preset threshold, then the position type of the target sub-pixel is determined to be in the driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the second lookup table; if the absolute value of the first difference is greater than the preset threshold and the absolute value of the second difference is greater than the preset threshold, then the position type of the target sub-pixel is determined to be in the non-driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the third lookup table.
[0053] It should be noted that the above description refers to the process of determining whether to use a second or third lookup table to determine the target pixel polarity of a target sub-pixel based on a first lookup table. In this process, the first and second boundary column coordinates of the driving range corresponding to the target source driving circuit of the target sub-pixel can be determined first using the first lookup table. Then, the relationship between the absolute value of the difference between the target column coordinates of the target sub-pixel and the first and second boundary column coordinates and a preset threshold is determined. Finally, based on this relationship, it is determined whether to use the second or third lookup table.
[0054] For example, such as Figure 3 As shown, assuming the display panel 100 contains COF3 and COF4, and the display panel 100 contains a total of 1920 columns of sub-pixels, the first lookup table is 1*2, and the driving boundary information corresponding to COF3 and COF4 is 1 and 960 respectively. Now, assuming the target source driving circuit corresponding to the target sub-pixel is COF3, the target column coordinate of the target sub-pixel is 700, and the preset threshold is 4. In this case, according to the aforementioned determination process, the first boundary column coordinate is 1, and the second boundary column coordinate is 959. The absolute value of the first difference is 699, and the absolute value of the second difference is 259. At this point, both the first and second differences are greater than 4, meaning the absolute value of both the first and second differences is greater than the preset threshold. Therefore, the target sub-pixel is in a non-driving boundary area, and the third lookup table should be selected to determine the target pixel polarity of the target sub-pixel. If the target column coordinate of the target sub-pixel is 598, then the absolute value of the first difference is 597, and the absolute value of the second difference is 1. At this time, the second difference is less than 4, and the first difference is greater than 4. That is, the absolute value of the first difference is greater than the preset threshold and the absolute value of the second difference is less than the preset threshold. At this time, the target sub-pixel is in the driving boundary region, and the second lookup table should be selected to determine the polarity of the target pixel.
[0055] In some embodiments, after selecting a second lookup table or a third lookup table, determining the target pixel polarity of the target sub-pixel based on the second lookup table or the third lookup table may include the following two cases.
[0056] First, obtain the target row coordinates and target column coordinates of the target sub-pixel. Then, determine the polarity of the target pixel based on the target row coordinates, the target column coordinates, the number of the first row in the second lookup table, and the number of the first column in the second lookup table. For example, the first row lookup index can be determined based on the target row coordinates and the number of the first row; then, the first column lookup index can be determined based on the target column coordinates and the number of the first column; finally, the polarity of the target pixel can be obtained from the second lookup table based on the first row lookup index and the first column lookup index.
[0057] Second, obtain the target row coordinates and target column coordinates of the target sub-pixel, and determine the polarity of the target pixel based on the target row coordinates, the target column coordinates, the second row number of the third lookup table, and the second column number of the third lookup table. For example, the second row lookup index can be determined based on the target row coordinates and the second row number, then the second column lookup index can be determined based on the target column coordinates and the second column number, and finally the target pixel polarity can be obtained from the third lookup table based on the second row lookup index and the second column lookup index.
[0058] Specifically, when selecting the second lookup table to determine the target pixel polarity of the target sub-pixel, the first row lookup index and the first column lookup index can be calculated according to the target row coordinates corresponding to the target sub-pixel and the first row number of the second lookup table, as well as the target column coordinates and the first column number of the target sub-pixel, according to the following formula.
[0059] m = mod((j-1), p)+1 (1).
[0060] n = mod((i-1), q) + 1 (2).
[0061] Where m is the search index for the first row; n is the search index for the first column; j is the target row coordinate; i is the target column coordinate; p is the number of the first row; and q is the number of the first column.
[0062] For example, such as Figure 8 The second lookup table shown, exemplarily, allows 0 to represent positive polarity and 1 to represent negative polarity. Assume the display panel 100 includes, for example... Figure 3 The COF3 and COF4 shown are displayed, and the display panel 100 contains a total of 4 rows and 1920 columns of sub-pixels. At this time, the first lookup table is 1*2, and the driving boundary information corresponding to COF3 and COF4 is 1 and 960 respectively. In this case, it is assumed that the target column coordinate of the target sub-pixel is 960 and the target row coordinate is 4. Then, according to the aforementioned steps, the first row lookup index is determined based on the target row coordinate (e.g., 4) and the first row number of the second lookup table (e.g., 4), and the first column lookup index is determined based on the target column coordinate (e.g., 960) and the first column number of the second lookup table (e.g., 12). The first row lookup index is calculated as 4 according to the above formula (1); the first column lookup index is calculated as 12 according to the above formula (2). Then, the pixel polarity of the 4th row and 12th column is found in the second lookup table based on the first row lookup index (e.g., 4) and the first column lookup index (e.g., 12), which is the negative polarity represented by the target pixel polarity of 1.
[0063] It should be noted that the steps for determining the target pixel polarity of a target sub-pixel using the third lookup table are similar to those for determining the target pixel polarity of a target sub-pixel using the second lookup table, except that the contents of the third lookup table and the second lookup table are different, which will not be elaborated here.
[0064] S53, when the sub-pixel within the driving range corresponding to the target source driving circuit needs to be polarized, adjust the grayscale compensation value corresponding to the polarity of the target pixel to obtain the first target grayscale compensation value, and perform brightness compensation on the target sub-pixel.
[0065] It should be noted that, according to the aforementioned POLC function, when a subpixel is in the polarity inversion region, in order to avoid compensation misalignment, the grayscale compensation values corresponding to the positive and negative polarities of the polarity inversion region need to be redistributed so that the grayscale compensation values can correspond to the correct polarity.
[0066] Based on this, in one optional implementation, a first original grayscale compensation value corresponding to the positive polarity and a second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel can be obtained first before polarity reversal; if the polarity of the target pixel is negative, the first original grayscale compensation value is determined to be the first target grayscale compensation value; if the polarity of the target pixel is positive, the second original grayscale compensation value is determined to be the first target grayscale compensation value.
[0067] Thus, when a sub-pixel within the driving range of the target source driving circuit corresponding to the target sub-pixel needs polarity flipping, the first original grayscale compensation value corresponding to the positive polarity and the second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel before polarity flipping are first obtained. Then, these two grayscale compensation values are swapped to map the compensation to the correct polarity. Specifically, if the target pixel polarity of the target sub-pixel is negative, the original first original grayscale compensation value corresponding to the positive polarity is used as the first target grayscale compensation value; if the target pixel polarity of the target sub-pixel is positive, the original second original grayscale compensation value corresponding to the negative polarity is used as the first target grayscale compensation value.
[0068] For example, such as Figure 4As shown, assuming the first original grayscale compensation value corresponding to the positive polarity before flipping is X1 = 40; and the second original grayscale compensation value corresponding to the negative polarity before flipping is X2 = 28, if the target sub-pixel is in the polarity flipping region, then if the target pixel polarity of the target sub-pixel is negative, the first original grayscale compensation value corresponding to the original positive polarity will be used as the first target grayscale compensation value, that is, X1 = 40 will be used as the first target grayscale compensation value; if the target pixel polarity of the target sub-pixel is positive, then the second original grayscale compensation value corresponding to the original negative polarity will be used as the first target grayscale compensation value, that is, X2 = 28 will be used as the first target grayscale compensation value.
[0069] In other embodiments, if it is determined that the sub-pixel driven by the target source driving circuit does not require polarity flipping, a first original grayscale compensation value corresponding to the positive polarity and a second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel can be obtained. A second target grayscale compensation value for the target sub-pixel is determined based on the first original grayscale compensation value and the second original grayscale compensation value, and brightness compensation is performed on the target sub-pixel. Specifically, if the target pixel polarity of the target sub-pixel is positive, the first original grayscale compensation value is determined to be the second target grayscale compensation value; if the target pixel polarity of the target sub-pixel is negative, the second original grayscale compensation value is determined to be the second target grayscale compensation value.
[0070] Thus, if the target source driving circuit driving the sub-pixel corresponding to the target sub-pixel does not require polarity inversion, and if the target pixel polarity of the target sub-pixel is positive, then the first original grayscale compensation value corresponding to the positive polarity of the target sub-pixel can be used as the second target grayscale compensation value; if the target pixel polarity of the target sub-pixel is negative, then the second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel can be used as the second target grayscale compensation value. For example, as... Figure 4 As shown, assuming the first original grayscale compensation value corresponding to the positive polarity before flipping is X1 = 40; and the second original grayscale compensation value corresponding to the negative polarity before flipping is X2 = 28, if the target sub-pixel is not in the polarity flipping region, then if the target pixel polarity of the target sub-pixel is negative, the original second original grayscale compensation value corresponding to the negative polarity will be used as the second target grayscale compensation value, that is, X2 = 28 will be used as the second target grayscale compensation value; if the target pixel polarity of the target sub-pixel is positive, then the original first original grayscale compensation value corresponding to the positive polarity will be used as the second target grayscale compensation value, that is, X1 = 40 will be used as the first target grayscale compensation value.
[0071] It should be noted that whether sub-pixels within the driving range corresponding to the COF included in the display panel need polarity inversion is planned during the display panel design stage. Before determining whether sub-pixels within the driving range corresponding to the target source driving circuit of the target sub-pixel need polarity inversion, the aforementioned driving circuit 102 already stores the correspondence between COF and the identifier that can indicate whether the COF needs polarity inversion. In subsequent use, after knowing the target source driving circuit corresponding to the target sub-pixel, it is possible to determine whether the target sub-pixel needs polarity inversion based on the aforementioned correspondence.
[0072] In some embodiments, when performing brightness compensation on the target sub-pixel, the initial display data of the target sub-pixel can be obtained first, and then the initial display data can be compensated according to the first target grayscale compensation value or the second target grayscale compensation value to obtain target display data. Finally, the target sub-pixel can be driven according to the target display data to perform brightness compensation on the target sub-pixel.
[0073] It should be noted that the target sub-pixel can be one of the red (R), green (G), and blue (B) sub-pixels. Correspondingly, the initial display data can refer to the initial grayscale value of one of the red (R), green (G), and blue (B) sub-pixels before brightness compensation. The statement that the initial display data is compensated based on the first target grayscale compensation value or the second target grayscale compensation value to obtain the target display data can refer to accumulating the first target grayscale compensation value or the second target grayscale compensation value with the initial grayscale value, obtaining the accumulated grayscale value as the target display data. The target sub-pixel is then determined based on the accumulated grayscale value to perform brightness compensation on the target sub-pixel.
[0074] The brightness compensation method for a display panel provided in this invention uses a first lookup table to determine the target source driving circuit of a target sub-pixel, and then determines whether the target source driving circuit needs polarity inversion. Since the first lookup table contains mapping relationships between multiple source driving circuits and driving boundary information, it can accurately locate the source driving circuit corresponding to the target sub-pixel, and thus accurately determine whether the target sub-pixel is in a polarity inversion region. This reduces false detections in traditional polarity inversion judgment methods that are limited to source driving circuits requiring the same data lines. Furthermore, a second lookup table or a third lookup table is used to determine the target pixel polarity of the target sub-pixel. Since the second lookup table contains the correspondence between sub-pixels in the driving boundary region and pixel polarities, and the third lookup table contains the correspondence between sub-pixels in the non-driving boundary region and pixel polarities, the second or third lookup table is selected based on the actual coordinates of the target sub-pixel. This allows for a more accurate determination of the target pixel polarity of the target sub-pixel. In addition, when the polarity of the target sub-pixel is flipped, the grayscale compensation value corresponding to the polarity of the target pixel is adjusted to avoid the problem of inconsistent brightness in different positions of the final displayed image caused by the opposite positive and negative polarity compensation values due to the polarity flip of the sub-pixel.
[0075] In some embodiments, the present invention also provides a brightness compensation device for a display panel, wherein the display panel may include a plurality of source driving circuits; each of the source driving circuits is connected to a plurality of data lines for driving the sub-pixels connected to the plurality of data lines; such as Figure 9 As shown, the brightness compensation device may include a first determining unit 901, a second determining unit 902, and an adjusting unit 903.
[0076] The first determining unit 901 is used to determine the target source driving circuit for driving the target sub-pixel according to a first lookup table when the polarity flip compensation function is enabled; the first lookup table includes a mapping relationship between multiple source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes the sub-pixel connected by multiple data lines connected to the source driving circuit.
[0077] The second determining unit 902 is configured to determine the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table; wherein, the second lookup table includes a mapping relationship between sub-pixels in the driving boundary region and their corresponding pixel polarities; the third lookup table includes a mapping relationship between sub-pixels in the non-driving boundary region and their corresponding pixel polarities; the driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold.
[0078] The adjustment unit 903 is used to adjust the grayscale compensation value corresponding to the polarity of the target pixel when the sub-pixel within the driving range corresponding to the target source driving circuit needs to be polarized, to obtain a first target grayscale compensation value, and to perform brightness compensation on the target sub-pixel.
[0079] The first determining unit 901, the second determining unit 902, and the adjusting unit 903 can be used to execute steps S51-S53 in the aforementioned method embodiments. For detailed implementation processes and related content of these functional units, please refer to the description of the corresponding method steps above, which will not be elaborated here.
[0080] It should be noted that the brightness compensation device provided in the above embodiments is only illustrated by the division of the above-described program modules. In practical applications, the above processing steps can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. Furthermore, the brightness compensation device provided in the above embodiments and... Figure 5 The brightness compensation method embodiments shown belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0081] To implement the method of the embodiments of the present invention, such as Figure 10As shown, this embodiment of the invention also provides an electronic device 1000, which may include: a memory 1001 for storing a computer program; and a processor 1002 for executing the computer program to implement the method described in any of the above-mentioned embodiments. For example, the processor 1002 may be used to: determine a target source driving circuit for driving a target sub-pixel according to a first lookup table when the polarity inversion compensation function is enabled; the first lookup table includes a mapping relationship between multiple source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes sub-pixels connected by multiple data lines connected to the source driving circuit; and determine the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table; wherein, the second lookup table includes a mapping relationship between sub-pixels in the driving boundary region and their corresponding pixel polarities; and the third lookup table includes sub-pixels in the non-driving boundary region. The mapping relationship between sub-pixels of a region and their corresponding pixel polarities; the driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold; when the sub-pixels within the driving range corresponding to the target source driving circuit need to have their polarities flipped, the grayscale compensation value corresponding to the polarity of the target pixel is adjusted to obtain a first target grayscale compensation value, and brightness compensation is performed on the target sub-pixels. The processor 1002 can also implement any of the steps in the methods described above, which will not be repeated here.
[0082] It should be noted that the electronic devices and brightness compensation method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0083] Of course, in practical applications, such as Figure 10 As shown, the electronic device 1000 may further include at least one network interface 1003. Various components in the electronic device 1000 are coupled together via a bus system 1004. It is understood that the bus system 1004 is used to implement communication between these components. In addition to a data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 10Various buses are labeled as bus system 1004. The number of processors 1002 can be at least one. Network interface 1003 is used for wired or wireless communication between electronic device 1000 and other devices. Memory 1001 in this embodiment is used to store various types of data to support the operation of electronic device 1000. The methods disclosed in the above embodiments of this invention can be applied to processor 1002, or implemented by processor 1002. Processor 1002 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by integrated logic circuits in the hardware of processor 1002 or by instructions in software form. Processor 1002 can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1002 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of this invention can be directly manifested as the combined execution of hardware and software modules in a microcontroller. The software modules can reside in a storage medium, specifically memory 1001. The processor 1002 reads information from memory 1001 and, in conjunction with its hardware, completes the steps of the aforementioned method. In an exemplary embodiment, the electronic device 1000 can be implemented using one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute any step of the aforementioned brightness compensation method.
[0084] Specifically, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon, such as a memory 1001 storing the computer program, which can be executed by a processor 1002 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0085] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0086] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0087] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0088] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0089] The brightness compensation method, device, and electronic device for the display panel provided in the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for brightness compensation of a variable refresh rate display panel, the method comprising: The display panel includes multiple source drive circuits; Each of the aforementioned source driving circuits is connected to multiple data lines for driving the sub-pixels connected to the multiple data lines; the method includes: When the polarity flip compensation function is enabled, the target source driving circuit for driving the target sub-pixel is determined according to the first lookup table; the first lookup table includes the mapping relationship between multiple source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes the sub-pixel connected by multiple data lines connected to the source driving circuit. The target pixel polarity of the target sub-pixel is determined according to a second lookup table or a third lookup table; wherein, the second lookup table includes a mapping relationship between sub-pixels in the driving boundary region and their corresponding pixel polarities; the third lookup table includes a mapping relationship between sub-pixels in the non-driving boundary region and their corresponding pixel polarities; the driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold; When a sub-pixel within the driving range corresponding to the target source driving circuit needs to be polarized, the grayscale compensation value corresponding to the polarity of the target pixel is adjusted to obtain the first target grayscale compensation value, and the brightness compensation of the target sub-pixel is performed. The driving boundary information includes the minimum column coordinates of the sub-pixel connected to the first data line within the driving range corresponding to the source driving circuit; the method further includes: The position type of the target sub-pixel is determined according to the first lookup table; the position type includes being in the driving boundary region or being in the non-driving boundary region. The first boundary column coordinates and the second boundary column coordinates of the driving range of the target source driving circuit corresponding to the target sub-pixel are determined according to the first lookup table; the first boundary column coordinates are less than the second boundary column coordinates. If the absolute value of the first difference between the first boundary column coordinate and the target column coordinate of the target sub-pixel is less than or equal to the preset threshold, or the absolute value of the second difference between the second boundary column coordinate and the target column coordinate is less than or equal to the preset threshold, then the position type of the target sub-pixel is determined to be in the driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the second lookup table. If the absolute value of the first difference is greater than the preset threshold and the absolute value of the second difference is greater than the preset threshold, then the position type of the target sub-pixel is determined to be in the non-driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the third lookup table.
2. The method of claim 1, wherein, The driving boundary information includes the minimum column coordinates of the sub-pixel connected to the first data line within the driving range corresponding to the source driving circuit; determining the target source driving circuit for driving the target sub-pixel according to the first lookup table includes: Obtain the target column coordinates of the target sub-pixel; Use the target column coordinate as the lookup index to search whether the first lookup table has a column coordinate that is the same as the target column coordinate; If the first lookup table contains a column coordinate that is the same as the target column coordinate, the source drive circuit corresponding to the column coordinate that is the same as the target column coordinate is determined to be the target source drive circuit; If there is no column coordinate in the first lookup table that is the same as the target column coordinate, a reference column coordinate is obtained in the first lookup table; the source drive circuit corresponding to the reference column coordinate is determined to be the target source drive circuit, wherein the reference column coordinate is the column coordinate in the first lookup table that has the smallest difference from the target column coordinate and is less than the target column coordinate.
3. The method according to claim 1, characterized in that, Determining the target pixel polarity of the target sub-pixel according to the second lookup table or the third lookup table includes: Obtain the target row coordinates and target column coordinates of the target sub-pixel, and determine the polarity of the target pixel based on the target row coordinates, the target column coordinates, the number of the first row of the second lookup table, and the number of the first column of the second lookup table; Alternatively, the target row coordinates and target column coordinates of the target sub-pixel can be obtained, and the polarity of the target pixel can be determined based on the target row coordinates, the target column coordinates, the second row number of the third lookup table, and the second column number of the third lookup table.
4. The method according to claim 3, characterized in that, Determining the target pixel polarity based on the target row coordinates, the target column coordinates, the number of the first row in the second lookup table, and the number of the first column in the second lookup table includes: determining a first row lookup index based on the target row coordinates and the number of the first row; determining a first column lookup index based on the target column coordinates and the number of the first column; and obtaining the target pixel polarity from the second lookup table based on the first row lookup index and the first column lookup index. Determining the target pixel polarity based on the target row coordinates, the target column coordinates, the second row number of the third lookup table, and the second column number of the third lookup table includes: determining a second row lookup index based on the target row coordinates and the second row number; determining a second column lookup index based on the target column coordinates and the second column number; and obtaining the target pixel polarity from the third lookup table based on the second row lookup index and the second column lookup index.
5. The method of claim 1, wherein, The step of adjusting the grayscale compensation value corresponding to the polarity of the target pixel to obtain a first target grayscale compensation value and performing brightness compensation on the target sub-pixel includes: Obtain the first original grayscale compensation value corresponding to the positive polarity and the second original grayscale compensation value corresponding to the negative polarity of the target sub-pixel before polarity reversal; If the polarity of the target pixel is negative, the first original grayscale compensation value is determined to be the first target grayscale compensation value; If the target pixel polarity is positive, the second original grayscale compensation value is determined to be the first target grayscale compensation value.
6. The method of claim 1, wherein, The method further includes: If it is determined that the sub-pixel driven by the target source driving circuit does not need to flip its polarity, the first original grayscale compensation value corresponding to the positive polarity of the target sub-pixel and the second original grayscale compensation value corresponding to the negative polarity are obtained. The second target grayscale compensation value of the target sub-pixel is determined based on the first original grayscale compensation value and the second original grayscale compensation value, and brightness compensation is performed on the target sub-pixel; wherein, if the target pixel polarity of the target sub-pixel is positive, the first original grayscale compensation value is determined to be the second target grayscale compensation value; if the target pixel polarity of the target sub-pixel is negative, the second original grayscale compensation value is determined to be the second target grayscale compensation value.
7. The method according to claim 6, characterized in that, The step of performing brightness compensation on the target sub-pixel includes: Obtain the initial display data of the target sub-pixel; The initial display data is compensated based on the first target grayscale compensation value or the second target grayscale compensation value to obtain the target display data; The target sub-pixel is driven according to the target display data to perform brightness compensation on the target sub-pixel.
8. A brightness compensation device for a variable refresh rate display panel for implementing the brightness compensation method of a variable refresh rate display panel as described in any one of claims 1 to 7, characterized in that, The display panel includes multiple source drive circuits; Each of the aforementioned source drive circuits is connected to multiple data lines for driving the sub-pixels connected to the multiple data lines; The brightness compensation device includes: The first determining unit is configured to determine, when the polarity flip compensation function is enabled, the target source driving circuit for driving the target sub-pixel according to a first lookup table; the first lookup table includes a mapping relationship between multiple source driving circuits and corresponding driving boundary information; the driving boundary information characterizes the driving range of the source driving circuit; the driving range includes the sub-pixel connected by multiple data lines connected to the source driving circuit. The second determining unit is configured to determine the target pixel polarity of the target sub-pixel according to a second lookup table or a third lookup table; wherein, the second lookup table includes a mapping relationship between sub-pixels in the driving boundary region and their corresponding pixel polarities; the third lookup table includes a mapping relationship between sub-pixels in the non-driving boundary region and their corresponding pixel polarities; the driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is less than or equal to a preset threshold; the non-driving boundary region includes sub-pixels whose absolute value of the difference between the column coordinates within the driving range of the source driving circuit and the column coordinates of the boundary sub-pixels included in the driving range is greater than the preset threshold; The adjustment unit is used to adjust the grayscale compensation value corresponding to the polarity of the target pixel when the sub-pixel within the driving range corresponding to the target source driving circuit needs to be polarized, to obtain the first target grayscale compensation value, and to perform brightness compensation on the target sub-pixel. The driving boundary information includes the minimum column coordinates of the sub-pixel connected to the first data line within the driving range corresponding to the source driving circuit; the device is further used for: The position type of the target sub-pixel is determined according to the first lookup table; the position type includes being in the driving boundary region or being in the non-driving boundary region. The first boundary column coordinates and the second boundary column coordinates of the driving range of the target source driving circuit corresponding to the target sub-pixel are determined according to the first lookup table; the first boundary column coordinates are less than the second boundary column coordinates. If the absolute value of the first difference between the first boundary column coordinate and the target column coordinate of the target sub-pixel is less than or equal to the preset threshold, or the absolute value of the second difference between the second boundary column coordinate and the target column coordinate is less than or equal to the preset threshold, then the position type of the target sub-pixel is determined to be in the driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the second lookup table. If the absolute value of the first difference is greater than the preset threshold and the absolute value of the second difference is greater than the preset threshold, then the position type of the target sub-pixel is determined to be in the non-driving boundary region, and the target pixel polarity of the target sub-pixel is determined according to the third lookup table.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the brightness compensation method for the display panel according to any one of claims 1 to 7.