Coding and decoding method of Demura compensation data and related equipment
By reordering and sub-block processing of the Demura compensation data of the AMOLED display panel, combining prediction mode and entropy encoding, the problem of low encoding and decoding efficiency of Demura compensation data in the prior art is solved, and efficient storage space utilization and brightness compensation effect are achieved .
Patent Information
- Application Number
- CN202411221921.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-02
AI Technical Summary
The prior art encoding and decoding method of Demura compensation data in AMOLED display panels has problems such as insufficient compression ratio, large calculation amount and poor practicality, which leads to a large storage space occupancy and affects the performance of the display driver chip.
Demura compensation data is generated by selecting typical grayscales, reordering and dividing it into sub-blocks, and each sub-block is encoded using prediction mode, transformation and entropy encoding to generate efficient code streams, and reconstruct compensation during the decoding process. Data, used to compensate the grayscale of the AMOLED display panel.
It significantly reduces the storage space usage of the display driver chip, eliminates the Mura defects in different brightness values and image grayscales, and realizes efficient Demura compensation data compression and decompression, saving storage space.
Smart Images

Figure CN119091806A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a method for encoding and decoding demura compensation data and related equipment. Background Art
[0002] Active-matrix organic light emitting diode (AMOLED) is a new type of active light-emitting display technology with the advantages of fast response speed, wide display color gamut, high contrast and low dynamic power consumption. The luminous brightness of AMOLED is controlled by the current of the driving thin film field effect transistor (TFT) of the pixel circuit. Due to material and process reasons, the parasitic capacitance, threshold voltage Vth and mobility of TFT are all non-uniform and have migration phenomena. In addition, the luminous efficiency of OLED will also slowly degrade. These factors will cause the brightness unevenness of the AMOLED panel display, and may even cause color cast defects, collectively referred to as the Mura phenomenon / effect. For this reason, the pixel circuit of AMOLED needs to be compensated, namely Demura. According to different principles, the compensation methods of pixel circuits are divided into internal compensation and external compensation. Among them, internal compensation refers to the use of TFT to construct a compensation sub-circuit inside the pixel circuit to compensate for the threshold voltage V th The brightness unevenness caused by the drift of TFT and OLED characteristics is good. Considering power consumption and cost, the number of TFTs in the pixel circuit is limited, and the compensation effect is limited. External compensation refers to the use of external circuits or devices to sense the physical quantity of the electrical or optical characteristics of the pixel circuit, and then make corresponding compensation. It can simultaneously compensate for the brightness unevenness caused by the drift of TFT and OLED characteristics, with good compensation effect, and is versatile and flexible. According to the different principles of external compensation, it is divided into optical extraction and electrical extraction. Among them, the electrical extraction type refers to the use of peripheral sensing circuits to extract the electrical signals of TFT and OLED, and then make corresponding compensation. Optical extraction refers to giving the same input to the AMOLED panel, using high-resolution and high-precision optical camera methods to collect brightness signals, generate corresponding compensation data, and make the display brightness after compensation tend to be consistent. In general, optical extraction compensation has the characteristics of intuitive basic principles, flexible compensation methods, and easy combination with field-programmable gate arrays (FPGAs). It is the mainstream Demura method at this stage.
[0003] External optical extraction demura must consider the actual brightness non-uniformity and degree of color cast of each pixel circuit at different grayscales and color channels, and even the overall display brightness value (DBV) of the display panel. In addition, since the generated compensation data needs to be burned into the non-volatile memory (ROM) of the display driver IC (DDIC). In order to save ROM space and reduce DDIC costs, the amount of generated compensation data must also be considered. Taking a panel with a resolution of 2560×1600 as an example, if it is necessary to store compensation values of 3 grayscales, and each compensation value is 6 bits, the compensation data of the three RGB color channels is a total of 2560×1600×3×3×6=221M bits of ROM space. AMOLED panel demura processing must efficiently compress the external compensation data and then burn the compressed binary bit stream into the ROM. To this end, a coding and decoding method suitable for demura external compensation data is needed to compromise between compensation effect, compensation data volume and real-time performance.
[0004] Some existing coding and decoding methods have a low compression ratio (i.e., the amount of compensation data after compression is still large and requires more ROM space). The downsampling technology will directly affect the compensation effect. The coding and decoding combined with Mura area classification (divided into trend type and random type) introduces additional calculation and storage of area positions. From the perspective of compression technology, they usually adopt the traditional idea of prediction + residual coding, or the three-channel interleaved coding technology JPEG LS for lossless image compression, which has its own shortcomings in compensation effect and (or) compression ratio.
[0005] There are also some demura data compression and decompression methods, which mainly rely on the constructed demura compensation data table training data set. The mura characteristics of display panels of different models and sizes are different, and the compensation data vary greatly. In addition, the deep network model is not convenient to deploy on a lightweight DDIC, and is not very practical.
[0006] There are also some demura compensation data compression methods that combine sparse representation and end-to-end deep learning. Although the compression performance is excellent, the steps include vectorization processing, sparse dictionary, and construction of compression objective function. The calculation amount is very large and the operation is complex, which is not conducive to the implementation and deployment of the DDIC decoder. Summary of the invention
[0007] The present invention provides a method for encoding and decoding demodulation compensation data and related equipment, the purpose of which is to eliminate the demodulation defects at different display brightness values and different image grayscales while saving storage space in a display driver chip.
[0008] In order to achieve the above object, the present invention provides a method for encoding and decoding Demura compensation data for an AMOLED display panel, comprising:
[0009] Step 1, by selecting a typical grayscale of the target AMOLED display panel, sequentially generating demura compensation data of different color channels in the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel;
[0010] Step 2, reordering the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and dividing each group of reordered demora compensation data to obtain multiple sub-blocks;
[0011] Step 3, taking each sub-block as a coding unit, predicting the compensation value of each pixel in each sub-block, obtaining the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block;
[0012] Step 4: for each sub-block, solve the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block to obtain the prediction residual data of each sub-block, and transform and quantize the prediction residual data to obtain the frequency domain prediction residual transformation coefficient of each sub-block;
[0013] Step 5, entropy coding is performed on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bit stream of each sub-block, and the coded bit streams of the sub-blocks are combined to obtain a coded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0014] Step 6, read the encoded bit stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decode it in the reverse process of encoding to obtain reconstructed demodulation compensation data, and the reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
[0015] Further, step 2 specifically includes:
[0016] According to the distribution of pixel positions in the AMOLED display panel, the demora compensation data of each color channel is reordered row by row from left to right and from top to bottom to obtain multiple groups of reordered demora compensation data. Each group of reordered demora compensation data has a width of 16 and a height of W×H / 16, where W and H are the width and height of the original demora compensation data respectively.
[0017] Each group of reordered Demura compensation data is divided into W×H / 256 sub-blocks.
[0018] Specifically, there are seven prediction modes, including:
[0019] The first prediction model is
[0020] dst[1]=dst[2]=dst[3]=dst[4]=I;
[0021] dst[5]=dst[6]=dst[7]=dst[8]=J;
[0022] dst[9]=dst
[10] =dst
[11] =dst
[12] =K;
[0023] st
[13] =dst
[14] =dst
[15] =dst
[16] =L;
[0024] The second prediction mode is:
[0025] dst[1]=dst[5]=dst[9]=dst
[13] =A;
[0026] dst[2]=dst[6]=dst
[10] =dst
[14] =B;
[0027] dst[3]=dst[7]=dst
[11] =dst
[15] =C;
[0028] dst[4]=dst[8]=dst
[12] =dst
[16] =D;
[0029] The third prediction mode is: dst[1,16]=A;
[0030] The fourth prediction mode is: dst[1,16]=B;
[0031] The fifth prediction mode is: dst[1,16]=C;
[0032] The sixth prediction mode is: dst[1,16]=I;
[0033] The seventh prediction mode is: dst[1,16]=J;
[0034] Where dst[·] represents the predicted value of the current sub-block, and A, B, C, D, I, J, K, and L represent the reconstructed pixel values of the upper and left sub-blocks adjacent to the current sub-block.
[0035] More specifically, step 4 includes:
[0036] For each sub-block, the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block is solved to obtain the prediction residual data of each sub-block;
[0037] Performing discrete cosine transform on the prediction residual data of each sub-block respectively to obtain frequency domain transform coefficients of each sub-block;
[0038] The frequency domain transform coefficients of each sub-block are quantized respectively to obtain the frequency domain prediction residual transform coefficients of each sub-block.
[0039] Furthermore, the prediction residual data of each sub-block is discrete cosine transformed to obtain the frequency domain transform coefficient T[u,v] of each sub-block:
[0040]
[0041] Among them, [u, v] represents the frequency components in the horizontal and vertical directions in the corresponding transform domain, X represents the prediction residual data of the sub-block, [x, y] represents the position of the prediction residual data, and s represents the number of sub-blocks.
[0042] Furthermore, the frequency domain transform coefficients of each sub-block are quantized respectively, and the frequency domain prediction residual transform coefficients Q[u,v] of each sub-block are obtained as follows:
[0043]
[0044] Among them, Q step Represents the quantization step size, u=1,2,3,4, v=1,2,3,4.
[0045] More specifically, step 6 includes:
[0046] Read the encoded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0047] Performing entropy decoding on the frequency domain prediction residual change coefficient of each sub-block to obtain the frequency domain prediction residual transform coefficient;
[0048] Dequantizing the prediction error frequency domain transform coefficients to obtain the frequency domain transform coefficients of each sub-block;
[0049] The frequency domain transform coefficients of each sub-block are subjected to inverse discrete cosine transform to obtain prediction residual data of each sub-block;
[0050] The compensation data of each sub-block is reconstructed based on each prediction residual data and the corresponding prediction mode to obtain reconstructed Demura compensation data.
[0051] The present invention also provides a Demura compensation data encoding and decoding device, which is applied to an AMOLED display panel, comprising:
[0052] A generating module, used for sequentially generating demura compensation data of different color channels in the target AMOLED display panel by selecting a typical grayscale of the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel;
[0053] A reordering module is used to reorder the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and to divide each group of reordered demora compensation data to obtain multiple sub-blocks;
[0054] A prediction module is used to predict the compensation value of each pixel in each sub-block by taking each sub-block as a coding unit, and obtain the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block;
[0055] A processing module is used to solve the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block for each sub-block, obtain the predicted residual data of each sub-block, and transform and quantize the predicted residual data to obtain the frequency domain predicted residual transformation coefficient of each sub-block;
[0056] A combination module is used to perform entropy coding on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bit stream of each sub-block, and combine the coded bit streams of the sub-blocks to obtain a coded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0057] The decoding module is used to read the encoded code stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decode it in the reverse process of encoding to obtain reconstructed demodulation compensation data. The reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
[0058] The present invention also provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method for encoding and decoding Demura compensation data is implemented.
[0059] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the encoding and decoding method of Demura compensation data is implemented.
[0060] The above scheme of the present invention has the following beneficial effects:
[0061] Compared with the prior art, the present invention first obtains and reorders the demura compensation data of different color channels to generate multiple groups of reordered demura compensation data, and divides each group of reordered demura compensation data to obtain multiple sub-blocks, which significantly reduces the area overhead of the display driver chip required for caching and saves the storage space in the display driver chip; then, the compensation data in each sub-block is encoded through pattern prediction, transformation, quantization and entropy coding, so as to achieve the purpose of compression, and the encoded code stream of each sub-block is combined to obtain the compensation data encoding corresponding to each color channel in the target AMOLED display panel; then, the encoded code stream of each group of reordered demura compensation data in the target AMOLED display panel is read and decoded according to the reverse process of encoding to obtain reconstructed demura compensation data, and the reconstructed demura compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel, thereby eliminating the Mura defects at different display brightness values and different image grayscales and saving the storage space in the display driver chip.
[0062] Other beneficial effects of the present invention will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention;
[0064] Figure 2 is a schematic diagram of a macroblock in an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of predicting pixel compensation values in an embodiment of the present invention;
[0066] Figure 4 Schematic diagram of the structure of a coding and decoding device in an embodiment of the present invention;
[0067] Figure 5 Schematic diagram of the structure of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0068] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than 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 are within the scope of protection of the present invention.
[0069] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0070] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a locking connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0071] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0072] In view of the existing problems, the present invention provides a coding and decoding method of Demura compensation data and related equipment.
[0073] like Figure 1 As shown, an embodiment of the present invention provides a method for encoding and decoding Demura compensation data for an AMOLED display panel, comprising:
[0074] Step 1, by selecting a typical grayscale of the target AMOLED display panel, sequentially generating demura compensation data of different color channels in the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel;
[0075] Step 2, reordering the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and dividing each group of reordered demora compensation data to obtain multiple sub-blocks;
[0076] Step 3, taking each sub-block as a coding unit, predicting the compensation value of each pixel in each sub-block, obtaining the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block;
[0077] Step 4: for each sub-block, solve the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block to obtain the prediction residual data of each sub-block, and transform and quantize the prediction residual data to obtain the frequency domain prediction residual transformation coefficient of each sub-block;
[0078] Step 5, entropy coding is performed on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bit stream of each sub-block, and the coded bit streams of the sub-blocks are combined to obtain a coded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0079] Step 6, read the encoded bit stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decode it in the reverse process of encoding to obtain reconstructed demodulation compensation data, and the reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
[0080] Specifically, step 1 includes:
[0081] Select and determine the typical grayscale of the AMOLED display panel, for example, [3264192], and generate compensation data of the R, G, and B color channels of the display panel in sequence as [R32 G32 B32 R64 G64 B64 R192 G192B192]; considering the random distribution and uncertainty of Mura of the AMOLED display panel, the compensation data of each color channel and grayscale corresponds to the actual pixel points of each color channel of the display panel one by one. For pixels of different RGB arrangements, the size of the pixel circuit of each channel may be different. Here, the unified size of RGB is taken as an example, that is, assuming that the size of the display panel is 1792×828; the Demura compensation data of each typical grayscale under the corresponding R, G, and B color channels is also 1792×828.
[0082] It should be noted that grayscale refers to the brightness level relationship between the darkest black to the brightest white of the display panel, and the typical grayscale refers to the most typical brightness level in the display panel, such as level 32, level 64, level 192, level 256, etc. The embodiment of the present invention takes level 32, level 64, and level 192 as typical grayscale.
[0083] Most preferably, step 2 specifically comprises:
[0084] According to the distribution of pixel positions in the AMOLED display panel, the demora compensation data of each color channel is reordered row by row from left to right and from top to bottom to obtain multiple groups of reordered demora compensation data. Each group of reordered demora compensation data has a width of 16 and a height of W×H / 16, where W and H are the width and height of the original demora compensation data respectively.
[0085] Each group of reordered Demura compensation data is divided into W×H / 256 sub-blocks.
[0086] In the embodiment of the present invention, Figure 2 As shown in the figure, the 256 reordered compensation data in each row of the 1792×828 reordered Demura compensation data are divided to obtain W×H / 256 4×4 sub-blocks, and all sub-blocks in each macroblock are reordered in a "z" shape from left to right and from top to bottom. In this way, when the compensation data is read in row order, each macroblock only needs to buffer 256 pixels instead of caching 16 rows of data, that is, 16×828 compensation data. When decoding and outputting, it is only necessary to decode the codes in the sub-blocks in sequence and restore them to 256 pixels in the row for sequential output.
[0087] Specifically, in step 3, each sub-block is used as a coding unit, and the compensation value of each pixel in each sub-block is predicted. According to the corresponding prediction mode, the prediction error sum between the actual compensation value and the prediction mode compensation value is statistically calculated, and the prediction mode with the smallest prediction error sum is selected as the coding prediction mode of the sub-block.
[0088] Most preferably, the prediction mode includes 7 optional prediction modes for independently predicting each 4×4 sub-block, which is suitable for image coding prediction modes with a large amount of details, such as Figure 3As shown in the figure, the pixels A to D above and I to L to the left of the 4×4 sub-block are coded and reconstructed pixels, which are used as prediction reference pixels in the encoding and decoding process. 1 to 16 are pixels to be predicted, which are realized using A to D, I to L values and 7 prediction modes; among them, the first prediction mode is the horizontal prediction mode, which horizontally derives the corresponding pixel values from I, J, K, and L; the second prediction mode is the vertical prediction mode: the corresponding pixel values are vertically derived from A, B, C, and D; the third to seventh prediction modes are the reference prediction modes, which derive all the corresponding pixel values at each position in the sub-block using A, B, C, I, and J in turn.
[0089] Specifically, the first prediction mode is
[0090] dst[1]=dst[2]=dst[3]=dst[4]=I;
[0091] dst[5]=dst[6]=dst[7]=dst[8]=J;
[0092] dst[9]=dst
[10] =dst
[11] =dst
[12] =K;
[0093] st
[13] =dst
[14] =dst
[15] =dst
[16] =L;
[0094] The second prediction mode is:
[0095] dst[1]=dst[5]=dst[9]=dst
[13] =A;
[0096] dst[2]=dst[6]=dst
[10] =dst
[14] =B;
[0097] dst[3]=dst[7]=dst
[11] =dst
[15] =C;
[0098] dst[4]=dst[8]=dst
[12] =dst
[16] =D;
[0099] The third prediction mode is: dst[1,16]=A;
[0100] The fourth prediction mode is: dst[1,16]=B;
[0101] The fifth prediction mode is: dst[1,16]=C;
[0102] The sixth prediction mode is: dst[1,16]=I;
[0103] The seventh prediction mode is: dst[1,16]=J;
[0104] Where dst[·] represents the predicted value of the current sub-block, and A, B, C, D, I, J, K, and L represent the reconstructed pixel values of the upper and left sub-blocks adjacent to the current sub-block.
[0105] In an embodiment of the present invention, for each sub-block, the reconstruction losses of various prediction modes are calculated and compared in turn, and the prediction mode with the smallest reconstruction loss is selected as the optimal prediction mode of the current 4×4 sub-block. The prediction modes of the 16 sub-blocks are determined in turn, and the prediction mode encoding bit stream of each sub-block can be obtained.
[0106] Most preferably, step 4 comprises:
[0107] Considering the inevitable error between the predicted value and the actual data of the sub-block, in order to reduce the coding distortion caused by the prediction error, for each sub-block, the difference between the actual compensation value corresponding to each pixel position in the sub-block and the predicted pixel compensation value is solved to obtain the prediction residual data of each sub-block;
[0108] Performing discrete cosine transform on the prediction residual data of each sub-block respectively to obtain frequency domain transform coefficients of each sub-block;
[0109] The frequency domain transform coefficients of each sub-block are quantized respectively to obtain the frequency domain prediction residual transform coefficients of each sub-block.
[0110] In the embodiment of the present invention, the discrete cosine transform converts the image from the spatial domain to the frequency domain, and separates the high-frequency and low-frequency information of the image. The high-frequency coefficients are majority, but the amplitude is relatively small. Therefore, the high-frequency information will be easily quantized to 0 during the quantization process, thereby achieving the purpose of compression.
[0111] Most preferably, the prediction residual data of each sub-block is subjected to discrete cosine transform respectively, and the frequency domain transform coefficient T[u,v] of each sub-block is obtained as follows:
[0112]
[0113] Among them, [u, v] represents the frequency components in the horizontal and vertical directions in the corresponding transform domain, X represents the prediction residual data of the sub-block, [x, y] represents the position of the prediction residual data, and s represents the number of sub-blocks.
[0114] Most preferably, the frequency domain transform coefficients of each sub-block are quantized respectively, and the frequency domain prediction residual transform coefficients Q[u,v] of each sub-block are obtained as follows:
[0115]
[0116] Among them, Q step Represents the quantization step size, u=1,2,3,4, v=1,2,3,4.
[0117] Specifically, step 5 includes:
[0118] Perform entropy coding on each sub-block based on the frequency domain prediction residual transform coefficient to obtain an entropy coding bitstream of each sub-block, the frequency domain prediction residual transform coefficient is to reconstruct the prediction residual of the sub-block: the coding bitstream of the sub-block is prediction mode coding, prediction residual coding (frequency domain prediction residual transform coefficient, quantization coefficient), etc. in sequence; the coding bitstream represents the bitstream when encoding; the coding bitstream of the sub-block includes the frequency domain prediction residual transform coefficient;
[0119] The coded code streams of the sub-blocks are spliced and combined in the order of the sub-blocks to obtain the compensation data code corresponding to each color channel in the target AMOLED display panel.
[0120] It should be noted that entropy coding is an existing lossless compression coding method. In the embodiments of the present invention, it is considered that the prediction residual data of each sub-block exhibits the following characteristics after transformation and quantization: the non-zero coefficients are mainly concentrated in the low-frequency part, while the high-frequency coefficients are mostly zero; after zig-zag scanning, the non-zero coefficient values near the DC coefficient are relatively large, while the non-zero coefficient values at the high-frequency position are mostly +1 and -1; the number of non-zero coefficients of adjacent sub-blocks is related; entropy coding uses the correlation provided by adjacent encoded symbols to select a suitable context model for the symbol to be encoded, including the selection of the table required for non-zero coefficient encoding and the update of the suffix length of the trailing coefficient, so as to achieve efficient compression.
[0121] Most preferably, step 6 comprises:
[0122] Read the encoded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0123] Performing entropy decoding on the frequency domain prediction residual change coefficient of each sub-block to obtain the frequency domain prediction residual transform coefficient;
[0124] Dequantizing the prediction error frequency domain transform coefficients to obtain the frequency domain transform coefficients of each sub-block;
[0125] The frequency domain transform coefficients of each sub-block are subjected to inverse discrete cosine transform to obtain prediction residual data of each sub-block;
[0126] The compensation data of each sub-block is reconstructed based on each prediction residual data and the corresponding prediction mode to obtain reconstructed Demura compensation data.
[0127] The decoding process of the embodiment of the present invention is the reverse process of the encoding process. Therefore, the decoding process is to read the compensation data encoding code stream in sequence according to the encoding order, and perform entropy decoding, inverse quantization and DCT inverse transform (i.e., IDCT) processing. First, the prediction residual of each 4x4 sub-block is obtained, and then the compensation data of each sub-block is reconstructed based on each prediction residual data to obtain the reconstructed Demura compensation data; then, the sub-block is reconstructed according to the attached Figure 1 The pixel rearrangement rule is used to obtain compensation data of 256 pixel positions in a row, which is used to perform grayscale compensation on each pixel position of the target AMOLED display panel.
[0128] In the embodiment of the present invention, for the demura compensation of the typical grayscale, the compensation data of the corresponding position after decoding and reconstruction of the typical grayscale demura data can be directly read; for the demura compensation of the atypical grayscale, the demura compensation and reconstruction data of the adjacent typical grayscale can be referred to, and the compensation of the corresponding pixel position of the final atypical grayscale can be obtained together; the compensation data is superimposed and displayed, and the final demura compensation is completed; the statistics of the peak signal-to-noise ratio after compression with different compression ratios before and after the reconstruction of the typical grayscale of the demura compensation are shown in Table 1 below:
[0129] Table 1
[0130] Grayscale 5:1 Compression 8:1 Compression 10:1 Compression 12:1 Compression 16:1 compression 18:1 compression 20:1 Compression R_032 52.3091 52.052 51.8105 51.5691 51.263 51.1645 51.102 G_032 52.2103 51.7218 51.191 50.8178 50.3948 50.2082 50.0835 B_032 52.3253 52.1141 51.9152 51.7135 51.4318 51.3442 51.2895 Grayscale 16:1 compression 18:1 compression 20:1 Compression 24:1 Compression 27:1 Compression 30:1 Compression 32:1 compression R_064 49.4003 49.1567 48.9648 48.6771 48.5485 48.451 48.3769 G_064 48.3991 48.1612 47.9779 47.6324 47.4634 47.3386 47.2703 B_064 49.6509 49.4008 49.2147 48.9218 48.7941 48.6955 48.6242 Grayscale 18:1 compression 20:1 Compression 24:1 Compression 28:1 compression 30:1 Compression 32:1 compression 36:1 compression R_192 47.4817 47.2553 46.4373 45.7917 45.6261 45.4753 40.3264 G_192 45.8948 45.5049 44.7491 44.2269 44.0294 43.8624 41.8871 B_192 47.535 47.3136 46.4683 45.8848 45.7409 45.5774 40.5031
[0131] As shown in Table 1, it can be seen that the encoding and decoding method provided by the present invention reconstructs typical grayscale compensation data through different compression ratios, and the peak signal-to-noise ratio gradually decreases as the compression ratio increases, but still maintains a high level; and the lower the grayscale, the higher the peak signal-to-noise ratio. The reason for this is that the relative range of the Demura compensation value of the low grayscale is small, so the compensation error is also smaller; the range of the high grayscale Demura compensation data is large, and the reconstruction error of the corresponding encoding and decoding increases, so the peak signal-to-noise ratio decreases accordingly. The embodiment of the present invention provides a Demura compensation data encoding and decoding method that can achieve different compression ratios. Combined with the actual Demura effect, the compression ratio of different grayscale and different color channels needs to be flexibly set, so that the final encoded code stream meets the storage limit requirements of the high compression ratio of the display driver chip, and has great use value.
[0132] In the embodiment of the present invention, the PSNR statistics are obtained by comparing the compensation data reconstructed by decoding with the actual uncompressed coded compensation data;
[0133] Different compression ratios are designed as follows: the code stream process of this application is clear, the distribution of each code stream is basically clear, different prediction modes, transform coefficients, and quantization coefficient combinations can obtain code streams corresponding to different coding lengths. Conversely, by fixing the compression ratio, the coding process can be optimized in each combination to achieve the fixed compression ratio test requirements.
[0134] Compared with the prior art, the embodiment of the present invention first obtains and reorders the demura compensation data of different color channels to generate multiple groups of reordered demura compensation data, and divides each group of reordered demura compensation data to obtain multiple sub-blocks, which significantly reduces the area overhead of the display driver chip required for caching and saves the storage space in the display driver chip; then, the compensation data in each sub-block is encoded through pattern prediction, transformation, quantization and entropy coding, so as to achieve the purpose of compression, and the encoded code stream of each sub-block is combined to obtain the compensation data encoding corresponding to each color channel in the target AMOLED display panel; then, the encoded code stream of each group of reordered demura compensation data in the target AMOLED display panel is read and decoded according to the reverse process of encoding to obtain reconstructed demura compensation data, and the reconstructed demura compensation data is used to perform grayscale data compensation for each pixel position of the target AMOLED display panel, thereby eliminating the Mura defects at different display brightness values and different image grayscales and saving the storage space in the display driver chip.
[0135] The embodiment of the present invention further provides a device for encoding and decoding demura compensation data, which is applied to an AMOLED display panel, such as Figure 4 As shown, the encoding and decoding device 100 includes:
[0136] A generating module 101 is used to sequentially generate demura compensation data of different color channels in the target AMOLED display panel by selecting a typical grayscale of the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel;
[0137] A reordering module 102 is used to reorder the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and to divide each group of reordered demora compensation data to obtain multiple sub-blocks;
[0138] The prediction module 103 is used to predict the compensation value of each pixel in each sub-block by taking each sub-block as a coding unit, and obtain the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block;
[0139] The processing module 104 is used to solve the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in each sub-block, obtain the prediction residual data of each sub-block, and transform and quantize the prediction residual data to obtain the frequency domain prediction residual transformation coefficient of each sub-block;
[0140] The combining module 105 is used to perform entropy coding on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bit stream of each sub-block, and combine the coded bit streams of the sub-blocks to obtain a coded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0141] The decoding module 106 is used to read the encoded code stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decode it in the reverse process of encoding to obtain reconstructed demodulation compensation data. The reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
[0142] Among them, the above-mentioned processing module 104 is specifically used to solve, for each sub-block, the difference between the actual compensation value corresponding to each pixel position in the sub-block and the predicted pixel compensation value to obtain the predicted residual data of each sub-block; perform discrete cosine transform on the predicted residual data of each sub-block to obtain the frequency domain transform coefficient of each sub-block; and perform quantization on the frequency domain transform coefficient of each sub-block to obtain the frequency domain predicted residual transform coefficient of each sub-block.
[0143] The processing module 104 includes:
[0144] A solving submodule, for solving the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the subblock for each subblock, to obtain the predicted residual data of each subblock;
[0145] The transform submodule is used to perform discrete cosine transform on the prediction residual data of each subblock to obtain a frequency domain transform coefficient of each subblock;
[0146] The quantization submodule is used to perform quantization processing on the frequency domain transform coefficients of each sub-block respectively to obtain the frequency domain prediction residual transform coefficients of each sub-block.
[0147] Among them, the above-mentioned decoding module 106 is specifically used to read the encoded code stream of each group of reordered Demura compensation data in the target AMOLED display panel; entropy decoding is performed on the frequency domain prediction residual change coefficient of each sub-block to obtain the frequency domain prediction residual transformation coefficient; inverse quantization is performed on the prediction error frequency domain transformation coefficient to obtain the frequency domain transformation coefficient of each sub-block; discrete cosine inverse transformation is performed on the frequency domain transformation coefficient of each sub-block to obtain the prediction residual data of each sub-block; based on each prediction residual data and the corresponding prediction mode, the compensation data of each sub-block is reconstructed to obtain the reconstructed Demura compensation data.
[0148] The decoding module 106 includes:
[0149] A reading submodule, used for reading the encoded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel;
[0150] An entropy decoding submodule is used to perform entropy decoding on the frequency domain prediction residual change coefficient of each sub-block to obtain the frequency domain prediction residual transformation coefficient;
[0151] The inverse quantization submodule is used to perform inverse quantization processing on the frequency domain transform coefficient of the prediction error to obtain the frequency domain transform coefficient of each sub-block;
[0152] An inverse transform submodule, used to perform an inverse discrete cosine transform on the frequency domain transform coefficients of each subblock to obtain prediction residual data of each subblock;
[0153] The reconstruction submodule is used to reconstruct the compensation data of each subblock based on each prediction residual data and the corresponding prediction mode to obtain reconstructed Demura compensation data.
[0154] The embodiment of the present invention also provides a terminal device, such as Figure 5 As shown, the terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 5 Only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements the encoding and decoding method of Demura compensation data when executing the computer program D102. Alternatively, the processor D100 implements the functions of each module / unit in the above-mentioned device embodiments when executing the computer program D102.
[0155] The terminal device D10 may be a computing device such as a desktop computer, a notebook, a PDA, a server, a server cluster, a cloud server, etc. The terminal device may include, but is not limited to, a processor D100 and a memory D101. Those skilled in the art will appreciate that Figure 5 This is only an example of the terminal device D10 and does not constitute a limitation on the terminal device D10. The terminal device D10 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0156] The processor D100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0157] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.
[0158] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0159] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0160] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for encoding and decoding Demura compensation data is implemented.
[0161] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0162] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the construction device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0163] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for encoding and decoding demura compensation data, characterized in that: For AMOLED display panels, including: Step 1, by selecting a typical grayscale of a target AMOLED display panel, sequentially generating demura compensation data for different color channels in the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel; Step 2, reordering the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and dividing each group of reordered demora compensation data to obtain multiple sub-blocks; Step 3, taking each sub-block as a coding unit, predicting the compensation value of each pixel in each sub-block, obtaining the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block; Step 4: for each sub-block, solve the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block to obtain the prediction residual data of each sub-block, and transform and quantize the prediction residual data to obtain the frequency domain prediction residual transformation coefficient of each sub-block; Step 5, performing entropy coding on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bitstream of each sub-block, and combining the coded bitstreams of the sub-blocks to obtain a coded bitstream of each group of reordered Demura compensation data in the target AMOLED display panel; Step 6, reading the encoded code stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decoding it in the reverse process of encoding to obtain reconstructed demodulation compensation data, wherein the reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
2. The method for encoding and decoding demura compensation data according to claim 1, characterized in that: The step 2 specifically includes: According to the distribution of pixel positions in the AMOLED display panel, the demora compensation data of each color channel is reordered row by row from left to right and from top to bottom to obtain multiple groups of reordered demora compensation data, each group of reordered demora compensation data has a width of 16 and a height of W×H / 16, where W and H are the width and height of the original demora compensation data, respectively; Each group of reordered Demura compensation data is divided into W×H / 256 sub-blocks.
3. The method for encoding and decoding Demura compensation data according to claim 2, characterized in that: The prediction modes include 7 types, among which: The first prediction model is dst[1]=dst[2]=dst[3]=dst[4]=I; dst[5]=dst[6]=dst[7]=dst[8]=J; dst[9]=dst[10]=dst[11]=dst[12]=K; st[13]=dst[14]=dst[15]=dst[16]=L; The second prediction mode is: dst[1]=dst[5]=dst[9]=dst[13]=A; dst[2]=dst[6]=dst[10]=dst[14]=B; dst[3]=dst[7]=dst[11]=dst[15]=C; dst[4]=dst[8]=dst[12]=dst[16]=D; The third prediction mode is: dst[1,16]=A; The fourth prediction mode is: dst[1,16]=B; The fifth prediction mode is: dst[1,16]=C; The sixth prediction mode is: dst[1,16]=I; The seventh prediction mode is: dst[1,16]=J; Where dst[·] represents the predicted value of the current sub-block, and A, B, C, D, I, J, K, and L represent the reconstructed pixel values of the upper and left sub-blocks adjacent to the current sub-block.
4. The method for encoding and decoding Demura compensation data according to claim 3, characterized in that: The step 4 comprises: For each sub-block, solving the difference between the actual compensation value and the predicted pixel compensation value corresponding to each pixel position in the sub-block to obtain prediction residual data of each sub-block; Performing discrete cosine transform on the prediction residual data of each sub-block respectively to obtain frequency domain transform coefficients of each sub-block; The frequency domain transform coefficients of each sub-block are quantized respectively to obtain the frequency domain prediction residual transform coefficients of each sub-block.
5. The method for encoding and decoding demura compensation data according to claim 4, characterized in that: The prediction residual data of each sub-block is discrete cosine transformed to obtain the frequency domain transform coefficient T[u,v] of each sub-block: Among them, [u, v] represents the frequency components in the horizontal and vertical directions in the corresponding transform domain, X represents the prediction residual data of the sub-block, [x, y] represents the position of the prediction residual data, and s represents the number of sub-blocks.
6. The method for encoding and decoding demura compensation data according to claim 5, characterized in that: The frequency domain transform coefficients of each sub-block are quantized respectively, and the frequency domain prediction residual transform coefficients Q[u,v] of each sub-block are obtained as follows: Among them, Q step Represents the quantization step size, u=1,2,3,4, v=1,2,3,4.
7. The method for encoding and decoding demura compensation data according to claim 6, characterized in that: The step 6 comprises: Reading the encoded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel; Performing entropy decoding on the frequency domain prediction residual change coefficient of each sub-block to obtain the frequency domain prediction residual transform coefficient; Performing inverse quantization processing on the prediction error frequency domain transform coefficient to obtain the frequency domain transform coefficient of each sub-block; The frequency domain transform coefficients of each sub-block are subjected to inverse discrete cosine transform to obtain prediction residual data of each sub-block; The compensation data of each sub-block is reconstructed based on each prediction residual data and the corresponding prediction mode to obtain reconstructed Demura compensation data.
8. A coding and decoding device for demura compensation data, characterized in that: Applied to AMOLED display panels, including: A generating module, configured to sequentially generate demura compensation data of different color channels in the target AMOLED display panel by selecting a typical grayscale of the target AMOLED display panel, wherein the number of demura compensation data corresponding to each color channel is equal to the number of pixels in the target AMOLED display panel; A reordering module is used to reorder the demora compensation data of each color channel to generate multiple groups of reordered demora compensation data, and to divide each group of reordered demora compensation data to obtain multiple sub-blocks; A prediction module is used to predict the compensation value of each pixel in each sub-block by taking each sub-block as a coding unit, and obtain the prediction mode corresponding to each sub-block to obtain the predicted pixel compensation value of each pixel position in each sub-block; A processing module, used for solving, for each sub-block, the difference between the actual compensation value corresponding to each pixel position in the sub-block and the predicted pixel compensation value, obtaining the predicted residual data of each sub-block, and transforming and quantizing the predicted residual data to obtain the frequency domain predicted residual transform coefficient of each sub-block; A combining module, configured to perform entropy coding on each sub-block based on the frequency domain prediction residual transform coefficient to obtain a coded bit stream of each sub-block, and combine the coded bit streams of the sub-blocks to obtain a coded bit stream of each group of reordered Demura compensation data in the target AMOLED display panel; A decoding module is used to read the encoded code stream of each group of reordered demodulation compensation data in the target AMOLED display panel and decode it in a process opposite to the encoding process to obtain reconstructed demodulation compensation data, and the reconstructed demodulation compensation data is used to perform grayscale data compensation on each pixel position of the target AMOLED display panel.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for encoding and decoding demora compensation data according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for encoding and decoding demodulation compensation data according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Pixel compensation data coding method and device, pixel compensation data decoding method and device and computer equipment
CN116132688A
Display panel, method for compensating pixel brightness of display panel, and method for compensating pixel parameters
JP2015228027A
Hierarchical prediction for pixel parameter compression
US20150348458A1
Cited By
Encoder for demura tables and decoder thereof
WO2026171336A1
