Compensation data compression method, device, decompression method and display device
By dynamically adjusting the compression prediction method of the sub-display area, the number of surrounding compensation data is adjusted according to the degree of fluctuation of the compensation data, the problem of high hardware complexity of compression algorithms in the prior art is solved, and more efficient hardware processing and better data compensation effects are achieved.
Patent Information
- Application Number
- CN202211059730.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-08-29
AI Technical Summary
In the prior art, the compression algorithm for compensation data is more complex after hardwareization, resulting in increased implementation difficulty.
By dynamically adjusting the compression prediction method of each sub-display area, the number of surrounding compensation data used is determined based on the degree of fluctuation of the compensation data, thereby reducing the complexity of the hardware circuit.
It reduces the complexity of the hardware circuit, improves processing speed, and is suitable for data compensation of high-resolution display devices.
Smart Images

Figure CN115440160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a compressing method and device for compensation data, as well as a decompressing method and a display device. Background Art
[0002] In the display process of existing display panels, there will be a phenomenon of uneven display. In order to eliminate the phenomenon of uneven display, it is usually necessary to use data compensation technology to compensate the pixels.
[0003] Since the storage space required for compensation data is relatively large, the prior art generally compresses the compensation data using a compression algorithm before storing it. However, the hardware-based compression algorithm is relatively complex, which is not conducive to the implementation of the compression algorithm. Summary of the invention
[0004] The present invention provides a compressing method and device, as well as a decompressing method and a display device for compensating data, so as to reduce the complexity of the hardware circuit for implementing the compression algorithm.
[0005] According to one aspect of the present invention, there is provided a method for compressing compensation data, comprising:
[0006] Acquire compensation data respectively corresponding to a plurality of sub-pixels in a display area of a display panel, wherein the display area includes a plurality of first sub-display areas, and one of the first sub-display areas includes the compensation data of a plurality of sub-pixels;
[0007] Determining a compression prediction mode for each of the first sub-display areas according to a fluctuation degree of the compensation data corresponding to each of the first sub-display areas, wherein when the fluctuation degrees of the compensation data corresponding to the first sub-display areas are different, the compression prediction modes for the first sub-display areas are different;
[0008] The compression prediction value corresponding to the compensation data of the sub-pixel in the first sub-display area is determined according to the compression prediction method, and the compensation data corresponding to the sub-pixel in the first sub-display area is compressed according to the compression prediction value to obtain compressed compensation data.
[0009] Optionally, determining the compression prediction mode of each first sub-display area according to the fluctuation degree of the compensation data corresponding to each first sub-display area includes:
[0010] Determining, according to the fluctuation degree of the compensation data of the first sub-display area, the number n of adjacent compensation data to be compressed used in compression prediction of each compensation data to be compressed in the first sub-display area; wherein, when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the number of adjacent compensation data used in compression prediction of the first sub-display area is different, and n is a positive integer;
[0011] The step of determining the compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to the compression prediction method includes:
[0012] Obtain n compensation data adjacent to the compensation data to be compressed, and determine the compression prediction value according to the n adjacent compensation data.
[0013] Optionally, n≤4.
[0014] Optionally, before determining the compression prediction mode of each first sub display area according to the fluctuation degree of the compensation data corresponding to each first sub display area, the method further includes:
[0015] Determine a gradient value of the compensation data of the sub-pixels in the first sub-display area, wherein the gradient value of the compensation data is a difference between adjacent compensation data; and determine a degree of fluctuation of the compensation data corresponding to the first sub-display area based on the gradient values of the compensation data of multiple sub-pixels in the first sub-display area.
[0016] Optionally, determining the fluctuation degree of the compensation data corresponding to the first sub-display area according to the gradient values of the compensation data of a plurality of sub-pixels in the first sub-display area includes:
[0017] Calculating a gradient mean value of all compensation data according to the gradient value of each compensation data in the first sub-display area;
[0018] The fluctuation degree of the compensation data of the first sub display area is determined according to the difference between the gradient mean value of the first sub display area and a preset reference value.
[0019] Optionally, compressing the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data includes:
[0020] Determining a storage address of a DC offset used when compressing the compensation data according to a fluctuation degree of the compensation data of the first sub-display area; wherein when the fluctuation degree of the compensation data is different, the storage address of the DC offset used when compressing the compensation data of the first sub-display area is determined in a different manner;
[0021] Acquire a DC offset corresponding to the compensation data to be compressed according to the storage address;
[0022] The compensation data is compressed according to the compensation data, the compression prediction value and the DC offset to obtain the compressed compensation data.
[0023] Optionally, compressing the compensation data according to the compensation data, the compression prediction value and the DC offset to obtain the compressed compensation data includes:
[0024] Calculating a residual corresponding to the compensation data to be compressed according to the compensation data, the compression prediction value and the DC offset;
[0025] Encoding the residual to obtain the compressed compensation data;
[0026] After obtaining the compression compensation data, the method further includes:
[0027] After compressing the i-th compensation data in the first sub-display area, the DC offset of the i-th compensation data is updated, and when compressing the i+j-th compensation data, the DC offset corresponding to the i-th compensation data is used, where i≥1, j≥2, and i and j are both positive integers.
[0028] Optionally, a method for decompressing compensation data is also provided, comprising:
[0029] Acquire compression compensation data respectively corresponding to a plurality of sub-pixels of a display panel, wherein a display area of the display panel includes a plurality of second sub-display areas, and one of the second sub-display areas includes compression compensation data of a plurality of sub-pixels;
[0030] determining a decompression prediction mode for each second sub-display area according to a fluctuation degree of the compression compensation data corresponding to each second sub-display area, wherein when the fluctuation degrees of the compression compensation data corresponding to the second sub-display area are different, the corresponding decompression prediction modes of the second sub-display area are different;
[0031] Decompression prediction values of compression compensation data corresponding to sub-pixels in the second sub-display area are determined according to the decompression prediction mode, and compression compensation data corresponding to sub-pixels in the second sub-display area are decompressed according to the decompression prediction values.
[0032] According to another aspect of the present invention, there is provided a compensating data compression device, comprising:
[0033] A compensation data acquisition module, used to acquire compensation data respectively corresponding to a plurality of sub-pixels in a display area of the display panel, wherein the display area includes a plurality of first sub-display areas, and one of the first sub-display areas includes the compensation data of a plurality of sub-pixels;
[0034] a compression prediction mode determining module, configured to determine a compression prediction mode of the sub-display area according to a fluctuation degree of the compensation data corresponding to the first sub-display area, wherein when the fluctuation degrees of the compensation data corresponding to the first sub-display area are different, the corresponding compression prediction modes of the first sub-display area are different;
[0035] A compression module is used to determine a compression prediction value corresponding to the compensation data of the sub-pixel in the first sub-display area according to the compression prediction method, and compress the compensation data corresponding to the sub-pixel in the first sub-display area according to the compression prediction value to obtain compressed compensation data.
[0036] According to another aspect of the present invention, a display device is provided, including a display panel and the device for compressing compensation data provided by any embodiment of the present invention.
[0037] The technical solution provided by the embodiment of the present invention obtains compensation data corresponding to multiple sub-pixels of a display panel, wherein the display panel includes multiple first sub-display areas, and determines the compression prediction method corresponding to the first sub-display area according to the fluctuation degree of the compensation data corresponding to each first sub-display area, and finally calculates the compression prediction value corresponding to the compensation data of each sub-pixel in the first sub-display area according to the determined compression prediction method, and compresses the compensation data corresponding to each sub-pixel according to the compression prediction value, thereby obtaining compressed compensation data. The technical solution provided by the embodiment of the present invention dynamically adjusts the corresponding compression prediction method according to the fluctuation degree of the compensation data in the first sub-display area, so that different compression prediction methods are used for prediction for different first sub-display areas, and then the number of surrounding data used in the compensation data compression process can be dynamically adjusted, which is conducive to reducing the dependence of the compensation data to be compressed on its surrounding compensation data, thereby reducing the complexity of the corresponding hardware circuit, improving the processing speed of the hardware circuit when processing the compression algorithm, and is more conducive to data compensation of high-resolution display devices.
[0038] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0040] Figure 1 A flowchart of a method for compressing compensation data provided by an embodiment of the present invention;
[0041] Figure 2 A flowchart of another method for compressing compensation data provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the structure of a compensating data compression device provided by an embodiment of the present invention;
[0043] Figure 4 A schematic structural diagram of a display device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] As described in the background technology, the problem of high complexity of the hardware circuit after the compression algorithm is hardwareized in the prior art, the inventors have found through research that the reason for the above problem is that the existing compensation data compression usually adopts the JPEG_LS algorithm. Compared with other algorithms, the complexity of the JPEG_LS algorithm is relatively low, and it has a higher compression rate. The existing standard process JPEG_LS compression algorithm is mainly composed of a context-based predictor and a context-based residual encoder, wherein the context-based predictor is used to perform the prediction step, wherein the standard process JPEG_LS compression algorithm needs to refer to the surrounding values to predict the current value during the prediction process, so that the standard process JPEG_LS compression algorithm needs to store more reference values, resulting in higher performance requirements for the corresponding hardware circuit, thereby increasing the complexity of the hardware circuit.
[0047] In response to the above problems, an embodiment of the present invention provides a method for compressing compensation data. During the compression process, the compression prediction method of the current value is dynamically adjusted to achieve the purpose of reducing the number of surrounding values used, thereby reducing the complexity of the hardware circuit and optimizing the compression algorithm.
[0048] Figure 1 A flowchart of a method for processing compensation data provided by an embodiment of the present invention, referring to Figure 1 The method for compressing compensation data provided by the embodiment of the present invention includes:
[0049] S110, obtaining compensation data corresponding to a plurality of sub-pixels in a display area of a display panel, wherein the display area includes a plurality of first sub-display areas, and a first sub-display area includes compensation data of a plurality of sub-pixels.
[0050] Wherein, the display panel includes a plurality of sub-pixels, and the compensation data is the compensation table data corresponding to the sub-pixels. After all sub-pixels in the display panel or part of the sub-pixels that need to be compensated are compensated by a preset De-Mura compensation algorithm, the corresponding compensation table data can be obtained. Here, the compensation data and the sub-pixels in the display panel can be in a one-to-one correspondence or a one-to-many relationship.
[0051] In this embodiment, the display panel includes a display area, the entire display area of the display panel includes a plurality of first sub-display areas, the area of the first sub-display area is smaller than the area of the display area, and each first sub-display area includes compensation data of a plurality of sub-pixels. The amount of compensation data in each first sub-display area may be the same or different.
[0052] S120, determining a compression prediction method for each first sub display area according to the fluctuation degree of the compensation data corresponding to each first sub display area, wherein when the fluctuation degree of the compensation data corresponding to the first sub display area is different, the compression prediction method of the first sub display area is different.
[0053] The compression prediction method of the first sub-display area may refer to the number of compensation data adjacent to the compensation data used when compressing and predicting the compensation data of the first sub-display area.
[0054] Specifically, after the compensation data of each sub-pixel in each first sub-display area is obtained, the fluctuation degree of the compensation data of each first sub-display area is determined based on the compensation data, thereby determining the compression prediction method of each first sub-display area according to the fluctuation degree of the compensation data.
[0055] In this embodiment, the fluctuation degree of the compensation data is a value that measures the difference between the compensation data corresponding to each sub-pixel in the first sub-display area, and can be used to represent the fluctuation amplitude of the compensation data. The greater the fluctuation degree of the compensation data in the first sub-display area, the greater the difference between the compensation data corresponding to each sub-pixel in the first sub-display area; conversely, the smaller the fluctuation degree of the compensation data in the first sub-display area, the smaller the difference between the compensation data corresponding to each sub-pixel in the first sub-display area. When the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the compression prediction mode corresponding to the first sub-display area is also different. Since the prediction of the current compensation data is performed based on the number of surrounding data corresponding to the current compensation data, when the compression prediction mode is different, the number of surrounding data used in the prediction process of the current compensation data is also different, so that the number of surrounding compensation data used in the compensation data compression process can be dynamically adjusted according to the compression prediction mode, so that the dependence of the current compensation data to be compressed on its surrounding compensation data is reduced. Since the number of surrounding compensation data used in the compression process is reduced, it is beneficial to optimize the compression algorithm, thereby reducing the complexity of the corresponding hardware circuit, improving the processing speed of the hardware circuit when processing the compression algorithm, and more conducive to data compensation of a high-resolution display device.
[0056] Exemplarily, the display area of the display panel includes a first first sub-display area, a second first sub-display area, etc. According to the compensation data in the first first sub-display area, it is determined that the fluctuation degree is small, and according to the compensation data in the second first sub-display area, it is determined that the fluctuation degree is large, etc., then the compression prediction mode of the first first sub-display area can be determined as the first compression prediction mode, and the compression prediction mode of the second first sub-display area can be determined as the second compression prediction mode. If the fluctuation degrees of the compensation data in two first sub-display areas are similar or the same, then it can be determined that the compression prediction modes of the two first sub-display areas are the same.
[0057] S130, determining a compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to a compression prediction method, and compressing the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data.
[0058] Specifically, after determining the compression prediction method of each first sub-display area, the compression prediction value corresponding to the compensation data of each sub-pixel under the compression prediction method is calculated according to the compression prediction method, and then the compensation data is encoded and compressed according to the obtained compression prediction value to obtain compressed compensation data.
[0059] The compensation data processing method provided by the embodiment of the present invention obtains compensation data corresponding to multiple sub-pixels of a display panel, wherein the display panel includes multiple first sub-display areas, and determines the compression prediction method corresponding to the first sub-display area according to the fluctuation degree of the compensation data corresponding to each first sub-display area, and finally calculates the compression prediction value corresponding to the compensation data of each sub-pixel in the first sub-display area according to the determined compression prediction method, and compresses the compensation data corresponding to each sub-pixel according to the compression prediction value, thereby obtaining compressed compensation data. The technical solution provided by the embodiment of the present invention dynamically adjusts the corresponding compression prediction method according to the fluctuation degree of the compensation data in the first sub-display area, so that different compression prediction methods are used for prediction for different first sub-display areas, and then the number of surrounding compensation data used in the compensation data compression process can be dynamically adjusted, which is conducive to reducing the dependence of the compensation data to be compressed on its surrounding compensation data, thereby reducing the complexity of the corresponding hardware circuit, improving the processing speed of the hardware circuit when processing the compression algorithm, and is more conducive to data compensation of high-resolution display devices.
[0060] Optionally, according to the fluctuation degree of the compensation data corresponding to each first sub-display area, the step of determining the compression prediction mode of each first sub-display area specifically includes:
[0061] According to the fluctuation degree of the compensation data of the first sub-display area, the number n of compensation data adjacent to the compensation data to be compressed and used in the compression prediction of each compensation data to be compressed in the first sub-display area is determined; wherein, when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the number of adjacent compensation data used in the compression prediction of the first sub-display area is different, and n is a positive integer.
[0062] The compression prediction method of the first sub-display area can be understood as a method for predicting the compression prediction value corresponding to the compensation data to be compressed. Specifically, the compression prediction method of the compensation data can refer to the number n of compensation data adjacent to the compensation data to be compressed used in the compression prediction of the compensation data to be compressed. In the prior art, it is usually necessary to use all the data around the compensation data to be compressed for prediction (four surrounding compensation data are required, including three compensation data on the top and one compensation data on the left), which will undoubtedly greatly increase the processing time of the hardware circuit and reduce the processing speed of the hardware circuit. In this embodiment, the compression prediction method is dynamically adjusted according to the fluctuation degree of the compensation data in the first sub-display area. When the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the corresponding compression prediction method of the first sub-display area is different, and the number n of compensation data adjacent to the compensation data to be compressed used in the compression prediction is also different.
[0063] Optionally, based on the above technical solution, the step of determining the compression prediction value corresponding to the compensation data of the sub-pixel in the first sub-display area according to the compression prediction method specifically includes:
[0064] Obtain n compensation data adjacent to the compensation data to be compressed, and determine the compression prediction value according to the n adjacent compensation data. The compensation data can be stored in the flash memory of the driver chip, and when obtaining the compensation data adjacent to the compensation data to be compressed, it can be directly obtained in the flash memory.
[0065] In this embodiment, the number of adjacent compensation data used in compression prediction of at least part of the first sub-display area is less than or equal to 4, that is, n≤4.
[0066] During the prediction process, the prediction vector is composed of the compensation data close to the left and top of the current compensation data to be compressed. Therefore, the compression prediction value corresponding to the current compensation data can be calculated by averaging the prediction function of the left and top compensation data.
[0067] Exemplarily, it is assumed that the compensation data of the first sub-display area includes partial data as shown in the following Table 1:
[0068] Table 1
[0069] Rc R Rd Ra Lx
[0070] If the fluctuation degree of the compensation data in a first sub-display area is small, indicating that the difference between the compensation data in the first sub-display area is small, then when compressing and predicting the compensation data Lx to be compressed, two adjacent compensation data (Ra on the left and Rb on the top) can be used for prediction; if the fluctuation degree of the compensation data in the first sub-display area is medium, indicating that the difference between the compensation data in the current first sub-display area has a certain fluctuation, then three adjacent compensation data (Ra on the left and Rb and Rd on the top) can be used for prediction; if the fluctuation degree of the compensation data in the first sub-display area is large, indicating that the difference between the compensation data in the first sub-display area is large, then four adjacent compensation data (Ra on the left and Rc, Rb and Rd on the top) can be used for prediction. In this way, the prediction method of the current compensation data to be compressed can be dynamically adjusted according to the fluctuation degree of the compensation data.
[0071] It should be noted that when the difference between the compensation data in the first sub-display area is small, it indicates that the value of the compensation data around the compensation data to be compressed is relatively stable, and when the adjacent compensation data is used for prediction, it has a higher error tolerance rate, so that the error of the calculated compression prediction value is small, and there is no risk of increased bit error rate. When the difference between the compensation data in the first sub-display area is large, it indicates that the change trend of the compensation data around the compensation data to be compressed is unstable, and when the adjacent compensation data is used for prediction, it has a lower error tolerance rate, so it is necessary to use more surrounding compensation data for calculation to reduce the error of the compression prediction value and reduce the risk of increased bit error rate.
[0072] Optionally, in this embodiment, the fluctuation degree of the compensation data corresponding to each first sub-display area may be determined in the following manner:
[0073] Determine the gradient value of each compensation data in the first sub-display area, and determine the degree of fluctuation of the compensation data corresponding to the first sub-display area according to the gradient value. Specifically, the gradient value of a certain compensation data can be determined according to the difference between the compensation data and its adjacent compensation data. Among them, the gradient value of the compensation data is the difference between the compensation data and its adjacent compensation data. Exemplarily, in a first sub-display area, the gradient value of the compensation data can be determined according to the difference between the current compensation data and the compensation data adjacent to it directly above, or according to the difference between the current compensation data and the compensation data adjacent to it directly to the left, or according to the difference between the current compensation data and the compensation data adjacent to it directly above, or according to the difference between the current compensation data and at least two of the compensation data among the multiple compensation data adjacent to it.
[0074] If the gradient value of each compensation data in a first sub-display area is relatively small, it indicates that the difference between the compensation data in the current first sub-display area is small, so it can be determined that the fluctuation degree of the compensation data in the current first sub-display area is small. If the gradient value of each compensation data in a first sub-display area is relatively large, it indicates that the difference between the compensation data in the current first sub-display area is large, so it can be determined that the fluctuation degree of the compensation data in the current first sub-display area is large.
[0075] Furthermore, in order to improve the quantization accuracy of the fluctuation degree of the compensation data, the average value of the gradient value of each compensation data in the first sub-display area can be used to determine the fluctuation degree of the compensation data in the current first sub-display area. Specifically, after the gradient value of the compensation data in the first sub-display area is calculated, the gradient value of each compensation data in the first sub-display area is summed to calculate the gradient average value of the compensation data in the current first sub-display area, and the fluctuation degree of the compensation data in the first sub-display area is determined according to the difference between the calculated gradient average value and the preset reference value. For example, if the gradient average value of the compensation data in a first sub-display area is less than the preset reference value, it can be determined that the fluctuation degree of the compensation data in the current first sub-display area is small; conversely, if the gradient average value of the compensation data in a first sub-display area is greater than or equal to the preset reference value, it can be determined that the fluctuation degree of the compensation data in the current first sub-display area is large. Then, the compression prediction method of each first sub-display area is determined according to the fluctuation degree of the compensation data in each first sub-display area.
[0076] Optionally, after determining the compression prediction value corresponding to the compensation data of the sub-pixel in the first sub-display area according to the compression prediction method, compressing the compensation data corresponding to the sub-pixel in the first sub-display area according to the compression prediction value to obtain the compressed compensation data specifically includes:
[0077] Determining the storage address of the DC offset used when compressing the compensation data according to the fluctuation degree of the compensation data of the first sub-display area; wherein when the fluctuation degree of the compensation data is different, the storage address of the corresponding DC offset of the first sub-display area is determined in different ways;
[0078] Obtain the DC offset corresponding to the current compensation data according to the storage address;
[0079] The compensation data is compressed according to the compensation data, the compression prediction value and the DC offset to obtain compressed compensation data.
[0080] When compressing the compensation data, it is necessary to obtain the residual corresponding to the compensation data, so as to encode the residual and finally obtain the output bit stream. The residual of the compensation data is determined according to the compensation data, the compression prediction value corresponding to the compensation data, and the DC offset corresponding to the compensation data. For example, the calculation formula of the residual can be e x =sign(xp x )-b x Among them, e x is the residual, x is the compensation data, p x is the compressed prediction value, b xIt is the DC offset corresponding to the compensation data. The DC offset corresponding to the compensation data is a correction value of the compression prediction value corresponding to the compensation data. The DC offset can be used to adjust the residual corresponding to the compensation data so that the residual is within a certain range, so that the residual occupies a smaller space after encoding. The DC offset will be updated after the current compensation data to be compressed is compressed, and the updated DC offset is stored in the storage address corresponding to the current compensation data to be compressed. The DC offset used when compressing each compensation data is the DC offset updated by the compensation data that has been compressed before it. The DC offset updated by which the compensation data to be compressed is used can be determined according to the fluctuation degree of the compensation data, that is, the storage address of the DC offset corresponding to the compensation data to be compressed is determined.
[0081] In this embodiment, when the fluctuation degree of the compensation data is different, the method for determining the storage address corresponding to the DC offset used when compressing the compensation data in the first sub-display area is different. When the fluctuation degree of the compensation data is large, and the fluctuation degree of the specific compensation data is the first fluctuation degree, the difference between adjacent compensation data is large, and the DC offset used when compressing the compensation data is the DC offset updated after the compensation data before the compensation data is compressed. For example, when compressing the current compensation data to be compressed, the DC offset updated after the previous compensation data of the current compensation data to be compressed can be used. Then, the method for determining the storage address of the DC offset may include: obtaining the first DC offset updated after the previous compensation data of the current compensation data to be compressed is compressed; and using the storage address of the first DC offset as the storage address of the DC offset corresponding to the current compensation data to be compressed. If the fluctuation degree of the compensation data is small, specifically the fluctuation degree of the compensation data is the second fluctuation degree, the second fluctuation degree is less than the first fluctuation degree, and the difference between adjacent compensation data is small, then the method for determining the DC offset storage address may include: obtaining the second DC offset updated after compression of the mth compensation data before the current compensation data to be compressed; using the storage address of the second DC offset as the storage address of the DC offset corresponding to the current compensation data to be compressed, where m≥1. For example, the storage address corresponding to the DC offset used when the i-th compensation data is compressed is the storage address of the DC offset updated after compression of the im-th compensation data. Exemplarily, when adjusting the residual corresponding to the compensation data, when the fluctuation degree of the compensation data is large, the DC offset of the previous compensation data of the current compensation data to be compressed can be used to adjust the residual. When the fluctuation degree of the compensation data is small, the difference between adjacent compensation data is close, so the DC offset of the mth compensation data before the current sub-pixel is used to adjust the residual, which will not have a significant impact on the compression accuracy.
[0082] Specifically, after the i-th compensation data in the first sub-display area is compressed, the DC offset of the i-th compensation data is updated, and when the i+j-th compensation data is compressed, the DC offset corresponding to the i-th compensation data is used, where i≥1, j≥2, and i and j are both positive integers. When i>1, after the i-th compensation data is compressed and the DC offset is updated, at least one compensation data before i has completed compression and updated the DC offset. For example, if the it-th compensation data before the i-th compensation data has completed compression and updated the DC offset, then the i+j-th compensation data can be compressed simultaneously with the t-th compensation data before the i+j-th compensation data (i.e., the i+jt-th compensation data), so that at least two compensation data can be compressed simultaneously, which is beneficial to improving the compression efficiency, t≥2.
[0083] Furthermore, all DC offsets are stored in the SRAM in the form of an array, and the surrounding compensation data is used for calculation when forming the array, wherein the number of DC offsets (or their corresponding storage addresses) in the array is exponentially related to the number of surrounding compensation data used.
[0084] In this embodiment, since the number of used compensation data adjacent to the to-be-compressed compensation data is related to the fluctuation degree of the compensation data, the number of used surrounding compensation data may be determined according to the fluctuation degree of the compensation data.
[0085] When the number of surrounding compensation data used in the compression of the to-be-compressed compensation data is reduced, the number of values in the corresponding DC offset array is also reduced accordingly. For example, there are 360 values in the DC offset array. When the number of surrounding compensation data used is reduced by one, since the number of DC offsets in the array is in a power exponential relationship with the number of surrounding compensation data used, the number of values in the DC offset array becomes 120, thereby reducing the number of surrounding compensation data used for compression through different prediction methods, and then reducing the number of corresponding DC offsets, so that the amount of DC offset data stored in the SRAM is reduced to one third of the original amount. In this embodiment, the compression and decompression processes are both carried out using the same method, so that the amount of DC offset data stored in the SRAM can be reduced by two thirds, which greatly reduces the cost of hardware use and does not bring about the risk of reduced compression rate and increased bit error rate.
[0086] In this embodiment, since the compression prediction method of the first sub-display area is different when the fluctuation degree of the compensation data is different, the compression prediction value corresponding to the obtained compensation data is also different. When calculating the residual, the residual can be made closer to 0, which is more conducive to the compression of the compensation data and has the maximum compression ratio, thereby reducing the storage space occupied and saving hardware resources. Among them, calculating the residual may specifically include: calculating the difference or sum between the compression prediction value of the compensation data and the DC offset to obtain a value; calculating the difference between the value and the compensation data to obtain the residual.
[0087] Figure 2 A flowchart of another method for compressing compensation data provided by an embodiment of the present invention, based on the above technical solutions, referring to Figure 2 , the compression methods of compensation data include:
[0088] S110, obtaining compensation data corresponding to a plurality of sub-pixels of the display panel, wherein the display area includes a plurality of first sub-display areas, and a first sub-display area includes compensation data of a plurality of sub-pixels.
[0089] S120, determining a compression prediction method for each first sub display area according to the fluctuation degree of the compensation data corresponding to each first sub display area, wherein when the fluctuation degree of the compensation data corresponding to the first sub display area is different, the compression prediction method of the first sub display area is different.
[0090] S130, determining a compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to a compression prediction method, and compressing the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data.
[0091] S140, storing the compression compensation data in a memory of the display panel.
[0092] In this embodiment, the compensation data corresponding to a plurality of sub-pixels of the display panel are obtained, wherein the display panel includes a plurality of first sub-display areas, and the compression prediction mode corresponding to each first sub-display area is determined according to the fluctuation degree of the compensation data corresponding to each first sub-display area, and finally the compression prediction value corresponding to the compensation data of each sub-pixel in the first sub-display area is calculated according to the determined compression prediction mode, and the compensation data corresponding to each sub-pixel is compressed according to the compression prediction value, thereby obtaining the compressed compensation data. Due to the different compression prediction modes for the compensation data, the dependence of the current compensation data on the number of surrounding adjacent compensation data is reduced, thereby reducing the number of surrounding adjacent compensation data used, so that when determining the DC offset corresponding to the compensation data, it is beneficial to reduce the number of DC offsets, thereby reducing the amount of stored data in the compression process, and saving storage space.
[0093] Optionally, in this embodiment, the compensation data may be compensation data obtained by downsampling the original compensation data, which is beneficial to improving the compression rate.
[0094] Specifically, firstly, the display image of the display panel is collected. Here, the display panel may be an LCD panel, an OLED panel, etc., wherein different display panels have different resolutions, for example, the resolution of some display panels is 2400*720.
[0095] Then, the original compensation data is obtained based on the preset De-Mura compensation algorithm. The preset De-Mura compensation algorithm may be a known algorithm. Different manufacturers have different De-Mura compensation algorithms. The specific principle can refer to the relevant description in the prior art and will not be repeated here. For example, the size of the original compensation data obtained according to the preset De-Mura compensation algorithm is 2400*720*8bit.
[0096] The original compensation data is then downsampled, for example, it can be sampled in alternate lines, and the size of the downsampled compensation data is 1200*720*8 bits.
[0097] It should be noted that although the compensation data is obtained by downsampling the original compensation data, it does not affect the Mura compensation process of each sub-pixel, and multiple sub-pixels can correspond to one compensation data at the same time. After downsampling, the compression rate can be improved.
[0098] In another embodiment provided by the present application, after compressing the compensation data and storing it in a memory, the encoded compressed data needs to be decompressed to output corresponding compensation data to achieve compensation for the display panel. The method steps of decompressing the compensation data include:
[0099] Acquire compression compensation data respectively corresponding to a plurality of sub-pixels of the display panel, wherein the display area of the display panel includes a plurality of second sub-display areas, and one second sub-display area includes compression compensation data of a plurality of sub-pixels;
[0100] Determining a decompression prediction mode for each second sub-display area according to a fluctuation degree of the compression compensation data corresponding to each second sub-display area, wherein when the fluctuation degrees of the compression compensation data corresponding to the second sub-display area are different, the corresponding decompression prediction modes of the second sub-display area are different;
[0101] The decompression prediction value of the compression compensation data corresponding to the sub-pixel in the second sub-display area is determined according to the decompression prediction mode, and the compression compensation data corresponding to the sub-pixel in the second sub-display area is decompressed according to the decompression prediction value.
[0102] It should be noted that the second sub-display area and the first sub-display area may be the same display area or different display areas.
[0103] Optionally, determining the decompression prediction mode of each second sub display area according to the fluctuation degree of the compression compensation data corresponding to each second sub display area includes:
[0104] According to the fluctuation degree of the compensation data of the second sub-display area, the number n of compensation data adjacent to the compensation data to be decompressed and used in the compression prediction of each compensation data to be decompressed in the second sub-display area is determined; wherein, when the fluctuation degree of the compensation data corresponding to the second sub-display area is different, the number of adjacent compensation data used in the decompression prediction of the second sub-display area is different.
[0105] Determining the decompression prediction value of the compression compensation data corresponding to the sub-pixel of the second sub-display area according to the decompression prediction mode includes:
[0106] Obtain n compressed compensation data adjacent to the compensation data to be decompressed, and determine a decompression prediction value according to the n adjacent compressed compensation data.
[0107] Optionally, before determining the decompression prediction mode of each second sub display area according to the fluctuation degree of the compression compensation data corresponding to each second sub display area, the method for decompressing the compensation data may further include:
[0108] Determine the gradient value of the compression compensation data of the sub-pixels in the second sub-display area; wherein the gradient value of the compression compensation data is the difference between adjacent compression compensation data;
[0109] The fluctuation degree of the compression compensation data corresponding to the second sub display area is determined according to the gradient value of the compression compensation data of the plurality of sub-pixels in the second sub display area.
[0110] Optionally, determining the fluctuation degree of the compression compensation data corresponding to the second sub display area according to the gradient value of the compression compensation data of the plurality of sub-pixels in the second sub display area may specifically include:
[0111] Calculating the gradient mean of all the compression compensation data in the second sub display area according to the gradient value of each compression compensation data in the second sub display area;
[0112] The fluctuation degree of the compression compensation data of the second sub display area is determined according to the difference between the gradient mean value of the second sub display area and a preset reference value.
[0113] Optionally, decompressing the compression compensation data corresponding to the sub-pixels in the second sub-display area according to the decompression prediction value specifically includes:
[0114] Determining a storage address of a DC offset used when compressing the compressed compensation data according to the fluctuation degree of the compressed compensation data of the second sub-display area; wherein when the fluctuation degree of the compressed compensation data is different, the storage address of the DC offset used when decompressing the compressed compensation data of the second sub-display area is determined in a different manner;
[0115] Obtaining a DC offset corresponding to the compression compensation data to be decompressed according to the storage address;
[0116] The compressed compensation data is decompressed according to the compressed compensation data, the decompression prediction value and the DC offset to obtain the decompressed compensation data.
[0117] The working principle of the decompression process is similar to that of the compression process, and the specific process can refer to the relevant description in the above embodiment, which will not be repeated here. The decompression prediction value and the compression prediction value may be different.
[0118] Corresponding to the method for compressing compensation data provided in the embodiment of the present application, the embodiment of the present application further provides a device for compressing compensation data. Figure 3 A schematic diagram of a compensating data compression device provided by an embodiment of the present invention, referring to Figure 3 , the compensating data compressing device comprises:
[0119] The compensation data acquisition module 10 is used to acquire compensation data corresponding to a plurality of sub-pixels in a display area of the display panel. The display area includes a plurality of first sub-display areas, and a first sub-display area includes compensation data of a plurality of sub-pixels.
[0120] The compression prediction mode determining module 20 is used to determine the compression prediction mode of the first sub-display area according to the fluctuation degree of the compensation data corresponding to the first sub-display area, wherein when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the corresponding compression prediction mode of the first sub-display area is different;
[0121] The compression module 30 is used to determine the compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to the compression prediction method, and compress the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data.
[0122] Among them, the compression prediction method determination module 20 can be specifically used to determine the number n of adjacent compensation data to be compressed used in the compression prediction of each compensation data to be compressed in the first sub-display area according to the fluctuation degree of the compensation data in the first sub-display area; when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the number of adjacent compensation data used in the compression prediction of the first sub-display area is different, and n is a positive integer.
[0123] Optionally, the compression module 30 may include: a compression prediction value determining unit, configured to obtain n compensation data adjacent to the compensation data to be compressed, and determine the compression prediction value according to the n adjacent compensation data.
[0124] Optionally, the compression module 30 may further include: an address determination unit, a DC offset acquisition unit and a compression unit, wherein the address determination unit is used to determine the storage address of the DC offset used when compressing the compensation data according to the fluctuation degree of the compensation data of the first sub-display area; wherein when the fluctuation degree of the compensation data is different, the storage address of the DC offset used when compressing the compensation data of the first sub-display area is determined in a different manner. The DC offset acquisition unit is used to acquire the DC offset corresponding to the compensation data to be compressed according to the storage address. The compression unit is used to compress the compensation data according to the compensation data, the compression prediction value and the DC offset to obtain compressed compensation data.
[0125] Optionally, the compression unit is specifically used to: calculate the residual corresponding to the compensation data to be compressed according to the compensation data, the compression prediction value and the DC offset; and encode the residual to obtain the compressed compensation data.
[0126] Optionally, the compensation data compression device may further include: an offset updating module, used to update the DC offset of the i-th compensation data after compressing the i-th compensation data in the first sub-display area, and use the DC offset corresponding to the i-th compensation data when compressing the i+j-th compensation data, where i≥1, j≥2, and i and j are both positive integers.
[0127] Corresponding to the decompression method of compensation data provided in the embodiment of the present application, the embodiment of the present application also provides a decompression device for compensation data, and the decompression device for compensation data may include a compression compensation data acquisition module, a decompression prediction mode determination module and a decompression module, wherein the compression compensation data acquisition module is used to acquire compression compensation data corresponding to multiple sub-pixels of the display panel, respectively, and the display area of the display panel includes multiple second sub-display areas. The decompression prediction mode determination module is used to determine the decompression prediction mode of each second sub-display area according to the degree of fluctuation of the compression compensation data corresponding to each second sub-display area, wherein when the degree of fluctuation of the compression compensation data corresponding to the second sub-display area is different, the corresponding decompression prediction mode of the second sub-display area is different. The decompression module is used to determine the decompression prediction value of the compression compensation data corresponding to the sub-pixel of the second sub-display area according to the decompression prediction mode, and decompress the compression compensation data corresponding to the sub-pixel in the second sub-display area according to the decompression prediction value.
[0128] The compensation data compression device provided in an embodiment of the present invention can be used to execute the compensation data compression method provided in any embodiment of the present invention, and the compensation data decompression device provided in an embodiment of the present invention can be used to execute the compensation data decompression method provided in any embodiment of the present invention, and has the same beneficial effects as described in any of the above embodiments.
[0129] Optionally, the embodiment of the present invention further includes a display device, including a display panel; the display device further includes: a compensating data compression device provided by the embodiment of the present invention and / or a compensating data decompression device provided by the embodiment of the present invention. Figure 4 A schematic diagram of a display device provided in an embodiment of the present invention, the display device can be Figure 4 The mobile phone shown may also be a tablet, an electronic watch, a wearable device, and all other display-related electronic products such as a car display, a camera display, a television, and a computer screen. Since the display device includes the compensating data compression device and / or decompression device provided by any embodiment of the present invention, the display panel provided by the embodiment of the present invention also has the beneficial effects described in any embodiment of the present invention.
[0130] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0131] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for compressing compensation data, characterized in that: include: Acquire compensation data respectively corresponding to a plurality of sub-pixels in a display area of a display panel, wherein the display area includes a plurality of first sub-display areas, and one of the first sub-display areas includes the compensation data of a plurality of sub-pixels; Determining a compression prediction mode for each of the first sub-display areas according to a fluctuation degree of the compensation data corresponding to each of the first sub-display areas, wherein when the fluctuation degrees of the compensation data corresponding to the first sub-display areas are different, the compression prediction modes of the first sub-display areas are different; the fluctuation degree of the compensation data is used to characterize the difference between the compensation data corresponding to each sub-pixel in the first sub-display area; Determine a compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to the compression prediction method, and compress the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data; The step of determining the compression prediction method of each first sub-display area according to the fluctuation degree of the compensation data corresponding to each first sub-display area includes: According to the fluctuation degree of the compensation data of the first sub-display area, the number n of compensation data adjacent to the compensation data to be compressed and used in compression prediction of each compensation data to be compressed in the first sub-display area is determined; wherein, when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the number of adjacent compensation data used in compression prediction of the first sub-display area is different, and n is a positive integer.
2. The method for compressing compensation data according to claim 1, characterized in that: The step of determining the compression prediction value corresponding to the compensation data of the sub-pixels in the first sub-display area according to the compression prediction method includes: Obtain n compensation data adjacent to the compensation data to be compressed, and determine the compression prediction value according to the n adjacent compensation data.
3. The method for compressing compensation data according to claim 2, characterized in that: n≤4。 4. The method for compressing compensation data according to claim 1, characterized in that: Before determining the compression prediction mode of each first sub-display area according to the fluctuation degree of the compensation data corresponding to each first sub-display area, the method further includes: Determine a gradient value of the compensation data of the sub-pixels in the first sub-display area; wherein the gradient value of the compensation data is a difference between adjacent compensation data; The fluctuation degree of the compensation data corresponding to the first sub-display area is determined according to the gradient values of the compensation data of the plurality of sub-pixels in the first sub-display area.
5. The method for compressing compensation data according to claim 4, characterized in that: The determining the fluctuation degree of the compensation data corresponding to the first sub-display area according to the gradient values of the compensation data of the plurality of sub-pixels in the first sub-display area comprises: Calculating a gradient mean value of all compensation data according to the gradient value of each compensation data in the first sub-display area; The fluctuation degree of the compensation data of the first sub display area is determined according to the difference between the gradient mean value of the first sub display area and a preset reference value.
6. The method for compressing compensation data according to any one of claims 1 to 5, characterized in that: Compressing the compensation data corresponding to the sub-pixels in the first sub-display area according to the compression prediction value to obtain compressed compensation data includes: Determining a storage address of a DC offset used when compressing the compensation data according to a fluctuation degree of the compensation data of the first sub-display area; wherein when the fluctuation degree of the compensation data is different, the storage address of the DC offset used when compressing the compensation data of the first sub-display area is determined in a different manner; Acquire a DC offset corresponding to the compensation data to be compressed according to the storage address; The compensation data is compressed according to the compensation data, the compression prediction value and the DC offset to obtain the compressed compensation data.
7. The method for compressing compensation data according to claim 6, characterized in that: The compressing the compensation data according to the compensation data, the compression prediction value and the DC offset to obtain the compressed compensation data includes: Calculating a residual corresponding to the compensation data to be compressed according to the compensation data, the compression prediction value and the DC offset; Encoding the residual to obtain the compressed compensation data; After obtaining the compression compensation data, the method further includes: After compressing the i-th compensation data in the first sub-display area, the DC offset of the i-th compensation data is updated, and when compressing the i+j-th compensation data, the DC offset corresponding to the i-th compensation data is used, where i≥1, j≥2, and i and j are both positive integers.
8. A method for decompressing compensation data, characterized in that: Acquire compression compensation data respectively corresponding to a plurality of sub-pixels of a display panel, wherein a display area of the display panel includes a plurality of second sub-display areas, and one of the second sub-display areas includes compression compensation data of a plurality of sub-pixels; Determining a decompression prediction mode for each second sub-display area according to a fluctuation degree of the compression compensation data corresponding to each second sub-display area, wherein when the fluctuation degrees of the compression compensation data corresponding to the second sub-display area are different, the corresponding decompression prediction modes of the second sub-display area are different; the fluctuation degree of the compression compensation data is used to characterize the difference between the compression compensation data corresponding to each sub-pixel in the second sub-display area; Determine a decompression prediction value of the compression compensation data corresponding to the sub-pixel in the second sub-display area according to the decompression prediction mode, and decompress the compression compensation data corresponding to the sub-pixel in the second sub-display area according to the decompression prediction value; The determining of the decompression prediction method of each second sub-display area according to the fluctuation degree of the compression compensation data corresponding to each second sub-display area includes: According to the degree of fluctuation of the compressed compensation data in the second sub-display area, the number n of compressed compensation data adjacent to the compressed compensation data to be decompressed and used in the decompression prediction of each compressed compensation data to be decompressed in the second sub-display area is determined; wherein, when the degree of fluctuation of the compressed compensation data corresponding to the second sub-display area is different, the number of adjacent compressed compensation data used in the decompression prediction of the second sub-display area is different, and n is a positive integer.
9. A compressing device for compensation data, characterized in that: include: A compensation data acquisition module, used to acquire compensation data respectively corresponding to a plurality of sub-pixels in a display area of the display panel, wherein the display area includes a plurality of first sub-display areas, and one of the first sub-display areas includes the compensation data of a plurality of sub-pixels; A compression prediction mode determination module is used to determine the compression prediction mode of the first sub-display area according to the fluctuation degree of the compensation data corresponding to the first sub-display area, wherein when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the corresponding compression prediction mode of the first sub-display area is different; wherein the fluctuation degree of the compensation data is used to characterize the difference between the compensation data corresponding to each sub-pixel in the first sub-display area; the compression prediction mode determination module is used to determine the number n of adjacent compensation data to be compressed used in compression prediction of each compensation data to be compressed in the first sub-display area according to the fluctuation degree of the compensation data in the first sub-display area; wherein when the fluctuation degree of the compensation data corresponding to the first sub-display area is different, the number of adjacent compensation data used in compression prediction of the first sub-display area is different, and n is a positive integer; A compression module is used to determine a compression prediction value corresponding to the compensation data of the sub-pixel in the first sub-display area according to the compression prediction method, and compress the compensation data corresponding to the sub-pixel in the first sub-display area according to the compression prediction value to obtain compressed compensation data.
10. A display device, characterized in that: The device comprises a display panel and the compensating data compressing device as claimed in claim 9.
Citation Information
Patent Citations
Data compression method capable of locally compensating brightness unevenness of display picture and storage device
CN112927640A
Compensation table compressing method
US20190200022A1