CN115206234A - Display panel compensation data coding method, display module and storage medium - Google Patents
Display panel compensation data coding method, display module and storage medium Download PDFInfo
- Publication number
- CN115206234A CN115206234A CN202210854346.2A CN202210854346A CN115206234A CN 115206234 A CN115206234 A CN 115206234A CN 202210854346 A CN202210854346 A CN 202210854346A CN 115206234 A CN115206234 A CN 115206234A
- Authority
- CN
- China
- Prior art keywords
- value
- compensation
- coding
- preset
- quantization
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
- G09G3/3208—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0233—Improving the luminance or brightness uniformity across the screen
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The application discloses a display panel compensation data coding method, a display module and a storage medium, wherein the coding method comprises the following steps: acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data; calculating a fluctuation reference value of each pixel according to the original compensation value; calculating a compensation fluctuation value according to the fluctuation reference value; dividing each compensation fluctuation value by a quantization parameter to obtain a compensation quantization value of each pixel; and coding the compensation quantization value by using a preset coding model to obtain the coding result. By the technical scheme, the compensation data can be compressed and stored, and the problem that the data storage capacity is rapidly increased under the condition that the large pixel block is the basic block is solved.
Description
Technical Field
The application relates to the technical field of panel display, in particular to a display panel compensation data coding method, a display module and a storage medium.
Background
Due to the limitation of crystallization process, LTPS TFTs fabricated on large-area glass substrates, TFTs at different positions often have non-uniformity in electrical parameters such as threshold voltage, mobility, etc., which are converted into current difference and brightness difference of OLED display devices and perceived by human eyes, i.e., mura phenomenon. The Mur phenomenon originally means uneven brightness and darkness and then extends to any color difference on the panel that is recognizable to human eyes. The external compensation system for the AMOLED production process is used for carrying out display compensation on a display screen with poor Mura through an advanced sub-pixel level optical imaging technology and a software algorithm so as to eliminate Mura stripes (i.e. Demura, which is equivalent to beautifying the display screen), so that the display quality of the display screen meets the requirement of the shipment specification of a panel factory, and the yield of the display screen in mass production is improved.
In the process of designing and implementing the present application, the inventors found that when a region containing fewer pixels is used as a basic block for performing compensation data compression, although the compression method is simple, the data loss is large, and when the internal variance of 2 × 4 is large, a large amount of data loss is caused. When data compression is performed using a region containing a large number of pixels as a basic block, the amount of data increases rapidly, and a large amount of memory space is consumed.
Disclosure of Invention
In view of the above technical problems, the present application provides a method for encoding compensation data of a display panel, a display module, and a storage medium, so as to alleviate the problem of data storage amount.
The application provides a method for encoding compensation data of a display panel, which specifically comprises the following steps:
acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data;
calculating a fluctuation reference value of each pixel according to the original compensation value;
calculating a compensation fluctuation value according to the fluctuation reference value;
dividing each compensation fluctuation value by a quantization parameter to obtain a compensation quantization value of each pixel;
and encoding the compensation quantization value by using a preset encoding model to obtain the encoding result.
Optionally, the step of obtaining an original compensation value of each pixel in the target pixel block in the display image of the preset display data includes:
dividing the display panel into a plurality of pixel blocks according to the preset number of rows and columns.
Optionally, the step of obtaining an original compensation value of each pixel in the target pixel block in a display image of preset display data includes:
acquiring a display value of each pixel in the target pixel block;
identifying the pixel to be compensated according to a preset identification algorithm according to the display value;
and calculating the original compensation value according to a preset compensation algorithm according to the pixel to be compensated and the preset display data.
Optionally, the chrominance values comprise luminance values and/or chrominance values; and/or the preset display data comprises a gray scale picture or an RGBW picture.
Optionally, the fluctuation reference value includes a compensation average value or a compensation median value.
Optionally, the step of calculating a compensation average value of each pixel according to the original compensation value comprises:
and dividing the sum of all the original compensation values in the target pixel block by the product of the row number and the column number of the target pixel block, and taking the result as the compensation average value.
Optionally, the step of calculating a compensation fluctuation value according to the fluctuation reference value includes:
and respectively calculating the difference between the original compensation value and the fluctuation reference value of each pixel in the target pixel block as the compensation fluctuation value.
Optionally, the step of dividing each compensation fluctuation value by the quantization parameter to obtain a compensation quantization value for each pixel comprises:
selecting the quantization parameter in a parameter table according to a preset rule;
and dividing each compensation fluctuation value by the quotient rounding of the quantization parameter to be used as the compensation quantization value.
Optionally, the preset coding model is selected from run-length coding or zero-length coding; the step of encoding the compensated quantization value by using the preset encoding model to obtain the encoding result comprises:
respectively using the run-length codes and the zero-length codes to carry out coding so as to respectively obtain run-length coding results and zero-length coding results;
comparing the binary data quantity of the run-length coding result and the zero-length coding result;
and selecting the coding model corresponding to the coding result with the minimum binary data quantity as the preset coding model.
Optionally, the step of encoding the compensated quantization value by using the preset encoding model to obtain the encoding result is followed by at least one of:
coding and storing the fluctuation reference value according to a first number of bits; storing the quantization parameter according to a second number of bit codes; the preset coding model is coded and stored according to a third number of bits; and coding and storing the coding result to obtain coding result storage data of a fourth number of bits.
Optionally, the step of selecting the quantization parameter in the parameter table according to a preset rule includes:
s41: selecting the minimum parameter in the parameter table to encode the target pixel block;
s42: calculating the sum of the first number, the second number, the third number and the fourth number as a contrast value;
s43: and judging whether the comparison value is greater than the preset number or not. If yes, the step S44 is carried out, otherwise, the step S45 is carried out;
s44: when the contrast value is greater than the preset number, excluding the minimum parameter from the parameter table, and returning to the step S41;
s45: and taking the minimum parameter as the preset parameter.
On the other hand, the application also provides a display module, and specifically, the display module comprises a processor and a memory connected with the processor;
the memory having stored thereon a computer program;
the processor is used for executing the computer program read from the memory to realize the coding method.
On the other hand, the present application also provides a storage medium, in particular, the storage medium stores a computer program, and the computer program realizes the encoding method as described above when being executed by a processor.
As described above, the encoding method of the present application includes the steps of: acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data; calculating a fluctuation reference value of each pixel according to the original compensation value; calculating a compensation fluctuation value according to the fluctuation reference value; dividing each compensation fluctuation value by the quantization parameter to obtain a compensation quantization value of each pixel; and encoding the compensation quantization value by using the preset encoding model to obtain the encoding result. By the technical scheme, the compression storage of the compensation data can be realized, and the problem that the data storage capacity is rapidly increased under the condition that a large pixel block is a basic block is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive step.
Fig. 1 is a flowchart of an encoding method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for selecting quantization parameters according to an embodiment of the present disclosure.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The present application first provides a method for encoding compensation data of a display panel, and fig. 1 is a flowchart of an encoding method according to an embodiment of the present application.
Referring to fig. 1, the encoding method includes:
and S10, acquiring an original compensation value of each pixel in the target pixel block in a display image of preset display data.
In order to stabilize the display effect, a compensation mode needs to be adopted, and there are two modes of internal compensation and external compensation.
The external compensation may be classified into an optical extraction type and an electrical extraction type according to a data extraction method. The optical extraction type is to extract the brightness signal by an optical CCD photographing method after the back plate is lightened, and the electrical extraction type is to extract the electrical signals of the TFT and the OLED by an induction circuit of a driving chip.
And S20, calculating a fluctuation reference value of each pixel according to the original compensation value.
After the compensation data is acquired, the compensation data is to be stored in a readable storage unit for the display assembly to perform compensation work while in operation.
Illustratively, in the compensation mode of the AMOLED Demura, generated compensation data is effectively compressed for storage; storing the compressed data in Flash; when the Demura function is started, data are extracted from the Flash to an SRAM inside a Driver IC, and the data are decompressed inside the IC to obtain complete compensation data.
Optionally, in the encoding method provided in the embodiment of the present application, when the compensation data is compressed, the characteristic quantization is performed by using the compensation average value as a fluctuation reference value. In another embodiment, the feature quantization may be performed using the median of the compensation data as a fluctuation reference.
And S30, calculating a compensation fluctuation value according to the fluctuation reference value.
For example, the difference between the compensation value and the fluctuation reference value for each pixel may be calculated as the compensation fluctuation value.
And S40, dividing each compensation fluctuation value by the quantization parameter to obtain a compensation quantization value of each pixel.
The quantization parameter may be appropriately selected according to the degree of compression required.
And S50, encoding the compensation quantization value by using a preset encoding model to obtain an encoding result.
For example, after obtaining the corresponding compensation quantization values for a plurality of pixels sequentially arranged in the target pixel block, zero-pass coding or run-length coding may be selected for coding all the compensation quantization values according to the coded data amount. When the display component works, the same coding model is used for decoding and compensating the compressed compensation quantization value.
Optionally, in the display image of the preset display data, the step of obtaining the original compensation value of each pixel in the target pixel block includes:
dividing the display panel into a plurality of pixel blocks according to the preset number of rows and columns.
For each pixel block, the coding storage can be performed as an independent target pixel block.
Optionally, in the display image of the preset display data, the step of obtaining the original compensation value of each pixel in the target pixel block includes:
acquiring a display value of each pixel in a target pixel block; identifying the pixel to be compensated according to a preset identification algorithm according to the display value; and calculating an original compensation value according to a preset compensation algorithm according to the pixel to be compensated and preset display data.
Optionally, the chrominance values comprise luminance values and/or chrominance values; and/or the preset display data comprises a gray scale picture or an RGBW picture.
Exemplary, general procedure for De-Mura:
a drive IC lights up a panel (TV/mobile/Tablet) and displays several pictures (usually gray scale or RGB).
b. The above-mentioned picture is photographed using a high-resolution and high-precision CCD camera.
c. And analyzing pixel color distribution characteristics according to camera acquisition data, and identifying Mura according to a related algorithm.
d. And generating the Demura data according to the mura data and a corresponding Demura compensation algorithm.
e. Burning the Demura data into a Flash ROM, re-shooting the compensated picture, and confirming that the Mura is eliminated.
Illustratively, the AMOLED Demura includes the following detailed steps:
1. drawing: lightening the AMOLED screen body, importing different pictures, collecting pictures by using a CCD camera on compensation equipment, and automatically identifying the arrangement relation of sub-pixels;
the picture to be detected after lighting the panel is generally different according to the requirements of different panel factories, and there are usually RGB images with 32, 64, 96, 160, 192, 224 gray levels, which are 18 images in total.
Some panel factories' Demura only compensates Luminance difference, does not compensate color difference, and this kind of luminence Demura generally only needs to detect the grey scale picture, and because the Mura that presents when different grey scales is different, generally can detect the Mura of high low grey scale in addition, and last Demura data is average, and different panel factories of concrete setting can select according to own actual demand certainly. Some panel factories implement a relatively comprehensive Color Demura, i.e., not only to compensate for the brightness but also for the chrominance differences. Some of the detection pictures of the color Demura adopt gray scale pictures, some adopt RGBW pictures, and different panel factories select different pictures according to the technology and the requirements.
2. The collected pictures are imported into a high-performance PC (Demura tool software is installed on the PC).
3. Original data are extracted by using Demura tool software on a PC, a Mura area is calculated, and Mura boundary detection is performed to generate compensation data.
4. When the Demura function is started, extracting complete compensation data, overlapping the compensation data with original display data sent by an application end, generating new data, transmitting the new data to Panel for display, and confirming the Demura compensation effect.
Optionally, the fluctuation reference value includes a compensation average value or a compensation median value.
The mean or median of the compensation values for all pixels within the target block can reflect the chrominance level of the target block of pixels relatively accurately.
Optionally, the step of calculating a compensated average value of each pixel from the original compensation values comprises:
and dividing the sum of all original compensation values in the target pixel block by the product of the row number and the column number of the target pixel block, and taking the result as the compensation average value.
Illustratively, the original compensation values for eight pixels within a 2 × 4 block of pixels are: 32. 31, 32, 31, 32, 34, the compensated average for this pixel block is: (32 +31+32+ 34) ÷ 8=32. The calculation can be referred to in pixel blocks of other specifications.
Optionally, the step of calculating the compensation fluctuation value according to the fluctuation reference value includes:
the difference between the original compensation value and the fluctuation reference value of each pixel in the target pixel block is calculated as a compensation fluctuation value, respectively.
Illustratively, the original compensation values of eight pixels within a pixel block of one object are: 32. 31, 32, 31, 32, 34, the compensation average value of the pixel block is 32, and the compensation fluctuation values are 0, -1,0, -1,0, 2, respectively.
Optionally, the step of dividing each compensation fluctuation value by the quantization parameter to obtain a compensation quantization value for each pixel comprises:
selecting a quantization parameter from a parameter table according to a preset rule; and dividing each compensation fluctuation value by the quotient of the quantization parameter to be rounded respectively to be used as a compensation quantization value.
Illustratively, the quantization parameter may be selected from 0,2,4,8, etc. as the quantization parameter in consideration of the number of stored bits, so that all the encoded values fall within the range of-4, -3, -2, -1,0,1,2,3,4 after division of each compensation fluctuation value by the quotient rounding of the quantization parameter. Illustratively, when the quantization parameter is selected to be 2, the quantization results of the compensation fluctuation values of 0, -1,0, -1,0, 2 are respectively: 0. 0, 1. Alternatively, multiple quantization may be selected, the data with relatively low fluctuation is quantized to 0, and the data with relatively high fluctuation is reserved for quantization storage.
Optionally, the preset coding model is selected from run-length coding or zero-length coding; the step of encoding the compensated quantization value by using a preset encoding model to obtain an encoding result comprises:
respectively coding by using a stroke code and a zero stroke code to respectively obtain a stroke coding result and a zero stroke coding result; comparing the binary data quantity of the run-length coding result and the zero-length coding result; and selecting the coding model corresponding to the coding result with the minimum binary data quantity as a preset coding model.
Illustratively, based on the respective encoding characteristics of run-length encoding and zero-length encoding, when several abnormally large compensation fluctuation values exist in the data, and other values are small and flat, only a large value can be reserved, and at this time, the zero-length encoding can be adopted to achieve the purpose of reducing the data amount of the encoding result. When the compensation fluctuation value data are relatively smooth and centralized, the stroke coding can be adopted to achieve the purpose of reducing the data quantity of the coding result. Alternatively, when the data fluctuation is large and some high frequency regions occur, quantization of the low frequency data to 0 may be selected. In another embodiment, the errors of the two encoding methods may be compared, and the encoding method with the smaller error may be selected for encoding.
Optionally, in the selection of the coding model, the reconstructed values of the compensation values may also be obtained by decoding the encoded values in the reverse direction, and then compared with the original compensation data, and at this time, the coding mode with the smaller error may be selected as the coding mode of the current target pixel block.
Optionally, the step of encoding the compensated quantization value by using a preset encoding model to obtain an encoding result is followed by:
and encoding and storing the fluctuation reference value according to the first number of bits.
Illustratively, when the compensation average value is 32, the fluctuation reference value of the target pixel block may be stored in data segments of 6 bits.
Optionally, the step of encoding the compensated quantization value by using a preset encoding model to obtain an encoding result is followed by:
and storing the quantization parameter according to a second number of bit codes.
Illustratively, the quantization parameter may represent 4 values in a selection range of 0,2,4, and 8 according to a data segment of 2 bits.
Optionally, the step of encoding the compensated quantization value by using a preset encoding model to obtain an encoding result is followed by:
and coding and storing the preset coding model according to a third number of bits.
Illustratively, the preset coding model may represent the run-length coding or the zero-length coding according to a data segment of 1 bit.
Optionally, the step of encoding the compensated quantization value by using a preset encoding model to obtain an encoding result is followed by:
and coding and storing the coding result to obtain coding result storage data of a fourth number of bits.
Illustratively, the encoding result may be stored according to a remaining space obtained by subtracting the space occupied by the above-mentioned several data segments from the total storage space allocated to the target pixel block.
Fig. 2 is a flowchart illustrating a method for selecting quantization parameters according to an embodiment of the present disclosure.
Referring to fig. 2, optionally, the step of selecting a quantization parameter from the parameter table according to a preset rule includes:
s41: selecting the minimum parameter in the parameter table to encode the target pixel block;
s42: calculating the sum of the first number, the second number, the third number and the fourth number as a contrast value;
s43: and judging whether the contrast value is greater than a preset number. If yes, the step S44 is carried out, otherwise, the step S45 is carried out;
s44: when the contrast value is greater than the preset number, excluding the minimum parameter from the parameter table, and returning to the step S41;
s45: and taking the minimum parameter as a preset parameter.
Multiple quantization can be selected, data with relatively low fluctuation is quantized to 0, and data with relatively high fluctuation is reserved for quantization storage. Illustratively, when the amount of the stored data after the first quantization is larger than 64 bits, a larger quantization parameter is selected for the second quantization, so that the compensation data after the compression coding of the target pixel block can be stored in a limited 64-bit storage space.
On the other hand, this application still provides a display module assembly. Specifically, the display module comprises a processor and a memory connected with the processor; the memory has a computer program stored thereon; the processor is used for executing the computer program read from the memory to realize the coding method.
Illustratively, the size of the original compensation data is 4 × 8 × 8 for a total of 256 bits per pixel, 8 bits per block of 4 × 8 pixels of a display module. When the allocated compensation data storage space is 64 bits, the encoded data needs to be compressed to within 64 bits. The original compensation value for each pixel within the target pixel block is shown in table 1.
32 | 32 | 32 | 32 | 32 | 32 | 33 | 33 |
32 | 32 | 32 | 32 | 32 | 32 | 32 | 33 |
32 | 33 | 32 | 32 | 31 | 32 | 32 | 34 |
33 | 33 | 32 | 32 | 31 | 32 | 34 | 34 |
TABLE 1red32 target Pixel Block Compensation values
From the raw compensation values of table 1, a compensation average of 32 can be calculated. The fluctuation value data of Table 2 is obtained by uniformly subtracting 32 from each pixel value in the target pixel block.
0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 0 | -1 | 0 | 0 | 2 |
1 | 1 | 0 | 0 | -1 | 0 | 2 | 2 |
Table 2 table 1 uniform subtraction of compensated mean values from data
The quantization parameter set Qt = {0,2,4,8,16, 32, 64, 128} is set so that the selected quantization parameter is stored with a storage space of 3 bits. The fluctuation value of each pixel is divided by the selected quantization parameter value, and the quotient is rounded and retained so that all quantized data is in the integer range between-4 and 4. Illustratively, if rounded up, the quantized data set is in the range of { -3, -2, -1,0,1,2,3,4 }; if rounded down, the quantized data sets are in the range { -4, -3, -2, -1,0,1,2,3} and thus all can be encoded with 3 bits for expression. The fluctuation value data in table 2 is quantized to obtain the quantization results in table 3.
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
Table 3 quantification of Table 2 results (moving 2 bits to round)
For the quantization result, run-length coding and zero-length coding can be adopted for compression, and when the data fluctuation is large, namely a high-frequency area appears, the low-frequency data is quantized to be 0.
When the data has a plurality of abnormally large values and other numerical values are small and flat, the larger numerical value can be reserved and zero-pass coding is adopted; run length coding may be used when the data is relatively flat and concentrated.
And obtaining a reconstructed value after decoding, comparing the reconstructed value with an original value, and selecting a coding model with a smaller error as a coding model of the current target pixel block. After the coding model is selected, the coding model can be expressed by a storage field of 1 bit.
Run-length coding and zero-run coding are performed according to the quantization results of table 3, and the coding results are shown in table 4.
Table 4 run length coding and zero run length coding of table 2 and table 3 data
Illustratively, assuming that the target pixel block is to be stored in a 64-bit storage space, since the original error compensation data is around 32, the error compensation average value can be calculated first, and the error compensation average value can be expressed by 5-bit or 6-bit storage. The quantization parameter uses 2bit to store and express four optional parameters of 0,2,4 and 8. 1bit is used for storing and expressing the coding mode of selected run length coding or zero run length coding. The remaining 55 bits are used for encoding and storing the final quantization value.
Please refer to table 4 again, when the quantized data is stored according to the run-length coding method, the result obtained after quantization by selecting the quantization parameter 2 has 4 quantization lines, the effective quantization value of each line is represented by 3 bits, and the number value of each line is represented by 5 bits, so that the quantization result can be expressed only by (3 bits +5 bits) × 4, that is, 32 bits. When the quantized data is stored according to a zero-pass coding mode, the result obtained after quantization is carried out by selecting the quantization parameter 2 has 3 quantization lines, the quantization effective numerical value of each line is represented by 3 bits, the numerical value of the number 0 before the effective numerical value of each line is represented by 5 bits, and the quantization result can be expressed only by (3 bits +5 bits) multiplied by 3 or 24 bits. Therefore, in the above embodiment, a larger compression ratio can be achieved by using zero-pass encoding, and all stored data only needs 32bit storage space of 8+ 24bit. In another embodiment, the errors of the two encoding methods may be compared, and the encoding method with the smaller error may be selected for encoding.
Optionally, when the quantization value encoding data exceeds 55 bits, the quantization parameter is selected to be increased, and the coding is performed again until the final quantization value of the target pixel block can be expressed by using 55 bits for storage. In another embodiment, the error compensation average value may not be stored, and the average target display value of the image displayed by the current target pixel block is used as the error compensation average value in the compensation.
When the display module works, the stored compressed encoding data is read from the 64bit space, and reverse decompression is carried out. Illustratively, the quantization results in table 4 above are restored using the quantization encoded data and the encoding mode specified by the storage field. Then, according to the quantization result in table 4, the quantization data corresponding to each pixel in table 3 is deduced inversely. And then, the product of the quantization data corresponding to each pixel and the quantization parameter specified by the storage field is used, and the stored error compensation average value is added, so that the original compensation value approximate to the original compensation value in the table 1 can be reconstructed, and the display module can perform chromaticity compensation on each pixel by using the reconstructed original compensation value in the work of the target pixel block. In another embodiment, the display module obtains an average target chroma value of the real-time display image after obtaining a product of the quantization data corresponding to each pixel and the quantization parameter specified by the storage field, and performs chroma compensation on the target pixel block based on the target chroma value.
On the other hand, the present application also provides a storage medium, in particular, a storage medium storing a computer program, which when executed by a processor implements the encoding method as described above.
Illustratively, for a pixel area where the input is 4 × 8 size original, there are 32 original data, 8 bits per data. Firstly, calculating the mean value of 32 data as avg, subtracting the mean value from the original data as blockDiff (4 × 8), and if the original data is relatively flat (called as low-frequency data, that is, the variation between data is relatively small), then the blockDiff data is concentrated in the range of about 0, as shown in the above chart, the mean value of the original data is 32, and the data obtained after subtracting 32 from the original data is between [ -1,2 ].
If run-length coding is used at this time, i.e. we count from left to right, from top to bottom, there are 60 s, which are marked as [0,6] (count 1); 2 1, noted as [1,2] (count 2); by analogy, assuming values between [ -4,4], the number can be represented by 3 bits, the number is maximum 32, and can be represented by 5 bits, and we can use 8 bits for each count. With the run-length encoding in the above chart, there are 15 counts, and then a total of 15 x 8 bits is required, and the raw data is 4 x 8 =256bits, and then substantially one-half compression is achieved. Assuming that quarter compression is desired, a quantization factor of 2 may be selected, the blockDiff value is divided by 2 and rounded to obtain the result of quantization 2 in run length coding, and there are only 4 count lines after the quantization 2 step, so that 4 × 8=32bit may be used for compression.
If zero-pass coding is selected, when data fluctuation is large, data with large difference between the data and the mean value fluctuation, such as edge information of an image, belonging to high-frequency information, is kept as much as possible, but the data fluctuation can be large to embody the information, and the information needs to be kept at this time. And data which are closer to the mean value are discarded in a quantitative mode. The zero-pass coding is mainly used to count the number of 0, when the quantization factor is large in the high-frequency region, the number of 0 is more, and then the value other than 0 is the high-frequency information that needs to be retained, and the selection of the quantization factor is the same as the pass coding, which can refer to the above embodiment.
The encoding method may be selected according to the final compression amount or the error size, and for example, the encoding method with the smallest data amount after compression may be selected, or the encoding method with the smallest encoding error may be selected. After the coding is finished, 8 bits are used for storing the average value at this time, 2 or 3 bits are used for representing the quantization factor, 5 bits or 6 bits are used for storing the expression average value avg, and 1bit is used for expressing the selected coding mode, so that the higher compression ratio is realized.
In the above embodiment, when decoding, the corresponding value needs to be multiplied by 2, and then the average value is added, and the original data can be recovered according to the inverse mode of the coding mode. If the data jitter is large, then the quantization factor needs to be larger to push the data to, for example, one-half or one-quarter.
As described above, the encoding method of the present application includes the steps of: acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data; calculating a fluctuation reference value of each pixel according to the original compensation value; calculating a compensation fluctuation value according to the fluctuation reference value; dividing each compensation fluctuation value by the quantization parameter to obtain a compensation quantization value of each pixel; and coding the compensation quantization value by using a preset coding model to obtain a coding result. By the technical scheme, the compensation data can be compressed and stored, and the problem that the data storage capacity is rapidly increased under the condition that the large pixel block is the basic block is solved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, a reference to an element identified by the phrase "comprising one of 82308230a of 82303030, or an element defined by the phrase" comprising another identical element does not exclude the presence of the same element in a process, method, article, or apparatus comprising the element, and elements having the same designation may or may not have the same meaning in different embodiments of the application, the particular meaning being determined by its interpretation in the particular embodiment or by further reference to the context of the particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in the specific implementation, but these should be within the protection scope of the present application.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the embodiments of the XX method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the XX method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (13)
1. A method for encoding compensation data of a display panel, the method comprising:
acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data;
calculating a fluctuation reference value of each pixel according to the original compensation value;
calculating a compensation fluctuation value according to the fluctuation reference value;
dividing each compensation fluctuation value by a quantization parameter to obtain a compensation quantization value of each pixel;
and coding the compensation quantization value by using a preset coding model to obtain the coding result.
2. The encoding method according to claim 1, wherein the step of obtaining the original compensation value for each pixel in the target block of pixels in the display image of the preset display data comprises:
dividing the display panel into a plurality of pixel blocks according to the preset number of rows and columns.
3. The encoding method according to claim 1, wherein the step of obtaining the original compensation value for each pixel within the target block of pixels in the display image of the preset display data comprises:
acquiring a display value of each pixel in the target pixel block;
identifying the pixel to be compensated according to a preset identification algorithm according to the display value;
and calculating the original compensation value according to a preset compensation algorithm according to the pixel to be compensated and the preset display data.
4. The encoding method according to claim 3, wherein the luminance value includes a luminance value and/or a chrominance value; and/or the preset display data comprises a gray scale picture or an RGBW picture.
5. The encoding method of claim 1, wherein the fluctuation reference value includes a compensated average value or a compensated median value.
6. The encoding method of claim 5, wherein the step of calculating a compensated average value for each pixel from the original compensation values comprises:
dividing the sum of all the original compensation values in the target pixel block by the product of the number of rows and the number of columns of the target pixel block, and taking the result as the compensation average value.
7. The encoding method according to claim 1, wherein the step of calculating a compensation fluctuation value based on the fluctuation reference value comprises:
and respectively calculating the difference between the original compensation value and the fluctuation reference value of each pixel in the target pixel block as the compensation fluctuation value.
8. The encoding method according to any one of claims 1 to 7, wherein the step of dividing each compensation fluctuation value by the quantization parameter to obtain a compensated quantization value for each pixel comprises:
selecting the quantization parameter in a parameter table according to a preset rule;
and dividing each compensation fluctuation value by the quotient of the quantization parameter to be rounded respectively to be used as the compensation quantization value.
9. The encoding method of claim 8, wherein the predetermined coding model is selected from run-length coding or zero-length coding; the step of encoding the compensated quantization value by using the preset encoding model to obtain the encoding result comprises:
respectively using the run-length codes and the zero-length codes to carry out coding so as to respectively obtain run-length coding results and zero-length coding results;
comparing the binary data quantity of the run-length coding result and the zero-length coding result;
and selecting the coding model corresponding to the coding result with the minimum binary data quantity as the preset coding model.
10. The encoding method according to claim 9, wherein the step of encoding the compensated quantization value using the preset encoding model to obtain the encoding result is followed by at least one of:
coding and storing the fluctuation reference value according to a first number of bits; storing the quantization parameter according to a second number of bit codes; the preset coding model is coded and stored according to a third number of bits; and coding and storing the coding result to obtain coding result storage data of a fourth number of bits.
11. The encoding method of claim 10, wherein the step of selecting the quantization parameter in a parameter table according to a predetermined rule comprises:
s41: selecting the minimum parameter in the parameter table to encode the target pixel block;
s42: calculating the sum of the first number, the second number, the third number and the fourth number as a contrast value;
s43: and judging whether the comparison value is greater than the preset number. If yes, the step S44 is carried out, otherwise, the step S45 is carried out;
s44: when the contrast value is greater than the preset number, excluding the minimum parameter from the parameter table, and returning to the step S41;
s45: and taking the minimum parameter as the preset parameter.
12. A display module is characterized by comprising a processor and a memory connected with the processor;
the memory having stored thereon a computer program;
the processor is configured to execute the computer program read from the memory to implement the encoding method according to any one of claims 1 to 11.
13. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, implements the encoding method according to any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210854346.2A CN115206234A (en) | 2022-07-14 | 2022-07-14 | Display panel compensation data coding method, display module and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210854346.2A CN115206234A (en) | 2022-07-14 | 2022-07-14 | Display panel compensation data coding method, display module and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115206234A true CN115206234A (en) | 2022-10-18 |
Family
ID=83582493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210854346.2A Pending CN115206234A (en) | 2022-07-14 | 2022-07-14 | Display panel compensation data coding method, display module and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115206234A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115691390A (en) * | 2022-11-02 | 2023-02-03 | 上海傲显科技有限公司 | Display panel compensation method and device and display device |
CN116132688A (en) * | 2023-01-17 | 2023-05-16 | 格兰菲智能科技有限公司 | Pixel compensation data encoding method, decoding method, device and computer equipment |
CN116631319A (en) * | 2023-05-29 | 2023-08-22 | 上海傲显科技有限公司 | Screen display compensation method, intelligent terminal and storage medium |
-
2022
- 2022-07-14 CN CN202210854346.2A patent/CN115206234A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115691390A (en) * | 2022-11-02 | 2023-02-03 | 上海傲显科技有限公司 | Display panel compensation method and device and display device |
CN115691390B (en) * | 2022-11-02 | 2023-09-26 | 上海傲显科技有限公司 | Display panel compensation method and device and display device |
CN116132688A (en) * | 2023-01-17 | 2023-05-16 | 格兰菲智能科技有限公司 | Pixel compensation data encoding method, decoding method, device and computer equipment |
CN116132688B (en) * | 2023-01-17 | 2024-04-12 | 格兰菲智能科技有限公司 | Pixel compensation data encoding method, decoding method, device and computer equipment |
CN116631319A (en) * | 2023-05-29 | 2023-08-22 | 上海傲显科技有限公司 | Screen display compensation method, intelligent terminal and storage medium |
CN116631319B (en) * | 2023-05-29 | 2024-05-14 | 上海傲显科技有限公司 | Screen display compensation method, intelligent terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7246542B2 (en) | Apparatus and method for improving perceptual luminance nonlinearity-based image data exchange between different display features | |
CN115206234A (en) | Display panel compensation data coding method, display module and storage medium | |
US9177393B2 (en) | Mixed mode for frame buffer compression | |
CN104917534B (en) | Compression, the method and apparatus of decompression data information, the method and apparatus and display device of compensation driving | |
KR101448493B1 (en) | Image processing methods and apparatus using localized gamut definitions | |
US9460527B2 (en) | Pattern mode for frame buffer compression | |
US20180315215A1 (en) | Compressing and uncompressing method for high bit-depth medical gray scale images | |
JP4440308B2 (en) | Rate control method and system in image compression | |
CN109479151B (en) | Pixel processing with color components | |
JP2022550565A (en) | IMAGE PROCESSING METHOD, IMAGE PROCESSING APPARATUS, ELECTRONIC DEVICE, AND COMPUTER PROGRAM | |
MX2013008756A (en) | Color conversion based on an hvs model. | |
US6614942B1 (en) | Constant bitrate algorithm for block based image compression | |
TWI506965B (en) | A coding apparatus, a decoding apparatus, a coding / decoding system, a coding method, and a decoding method | |
CN114120915A (en) | Data compression method and device and data decompression method and device | |
CN111385437B (en) | Image device and burn-in prevention method | |
US9319691B2 (en) | Image coding device and image coding method | |
US10390019B2 (en) | Method and device for encoding a multidimensional digital signal, in particular an image signal, and corresponding method and device for decoding | |
CN110300303B (en) | Encoding device, display device, method for controlling encoding device, and computer-readable recording medium | |
CN110999300A (en) | Single channel inverse mapping for image/video processing | |
US9571844B2 (en) | Image processor | |
CN115278251A (en) | Encoding method based on motion prediction encoding, display module and storage medium | |
CN116993597A (en) | Image correction method, device and computer readable storage medium | |
KR20210021892A (en) | Method and apparatus for processing image data | |
CN115661274A (en) | Image processing method, image processing device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |