CN109889846B - Method and device for compressing and decompressing Demura table data and coding and decoding system - Google Patents

Method and device for compressing and decompressing Demura table data and coding and decoding system Download PDF

Info

Publication number
CN109889846B
CN109889846B CN201910039872.1A CN201910039872A CN109889846B CN 109889846 B CN109889846 B CN 109889846B CN 201910039872 A CN201910039872 A CN 201910039872A CN 109889846 B CN109889846 B CN 109889846B
Authority
CN
China
Prior art keywords
table data
demura table
data
compensation
demura
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.)
Active
Application number
CN201910039872.1A
Other languages
Chinese (zh)
Other versions
CN109889846A (en
Inventor
梅林海
郑增强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Jingce Electronic Group Co Ltd
Wuhan Jingli Electronic Technology Co Ltd
Original Assignee
Wuhan Jingce Electronic Group Co Ltd
Wuhan Jingli Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Jingce Electronic Group Co Ltd, Wuhan Jingli Electronic Technology Co Ltd filed Critical Wuhan Jingce Electronic Group Co Ltd
Priority to CN201910039872.1A priority Critical patent/CN109889846B/en
Publication of CN109889846A publication Critical patent/CN109889846A/en
Application granted granted Critical
Publication of CN109889846B publication Critical patent/CN109889846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a method, a device and a coding and decoding system for compressing and decompressing De-Mura table data, wherein the compression method comprises the following steps: after LCD images in different states are collected, generating an algorithm based on preset demura table data and the LCD images in different states to generate first original demura table data; compressing the first original demura table data in a down-sampling mode to obtain down-sampled demura table data; and finally, compressing the downsampled Demura table data by adopting a three-channel interlaced jpeg coding method to obtain compressed Demura table code stream data. The invention realizes the technical effects of improving the compression ratio and reducing the cost of the decompression circuit.

Description

Method and device for compressing and decompressing Demura table data and coding and decoding system
Technical Field
The invention relates to the technical field of LCD/OLED Demura and data compression, in particular to a method and a device for compressing and decompressing Demura table data and a coding and decoding system.
Background
In order to stabilize the display effect of the LCD/OLED display and eliminate the Mura phenomenon, a compensation mode, namely De-Mura, needs to be adopted. LCD stands for Liquid Crystal Display (Liquid Crystal Display), OLED stands for Organic Light-Emitting Diode (Organic Light-Emitting Diode), Mura phenomenon refers to the phenomenon that the Display brightness is not uniform, causing various traces, De-Mura stands for Mura elimination technology.
In the prior art, the general procedure for De-Mura includes the following steps:
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.
For the compression of the Demura data, a huffman coding compression mode is usually adopted, the gray scales of the read-in Demura image data are analyzed, the occurrence frequency of each gray scale is counted, and then the huffman tree is constructed by taking the frequency after the gray scales of the current Demura image data are sequenced as the weight; then carrying out binary Huffman coding on the constructed Huffman tree; and finally, replacing the corresponding gray-scale value in the original Demura image data with a Huffman coding value.
In the process of implementing the invention, the applicant of the invention finds that at least the following technical problems exist in the prior art:
the compression is carried out by adopting a Huffman coding mode, the compression rate is not high enough, and the cost of a decompression circuit is higher when the compression is realized on hardware.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for compressing and decompressing Demura table data, and an encoding and decoding system, so as to solve or at least partially solve the technical problem of a low compression rate in the prior art.
In order to solve the above technical problem, a first aspect of the present invention provides a method for compressing Demura table data, including:
collecting LCD images in different states;
generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states;
compressing the first original Demura table data in a down-sampling mode to obtain down-sampled Demura table data;
and compressing the downsampled Demura table data by adopting a three-channel interleaved jpeg coding method to obtain compressed Demura table code stream data.
In one embodiment, after acquiring the LCD images in different states, the method further comprises:
searching an area needing mura compensation on the LCD according to the LCD image and a preset mura classification rule, and generating a compensation area mask image;
and carrying out run-length coding on the compensation area mask graph to obtain a compressed run-length coding code stream of the compensation area mask graph.
In one embodiment, the method further comprises:
and according to the compensation area mask diagram, extracting data of an area needing mura compensation in the original Demura table data, and forming second original Demura table data of the compensation area.
In one embodiment, the compressing the first original Demura table data in a down-sampling manner to obtain down-sampled Demura table data includes:
dividing the first original Demura table data into 3 channels of images with preset resolution;
respectively carrying out smoothing treatment on three images of 3 channels;
1/8 samples were taken simultaneously in both the vertical and horizontal directions of the three images after smoothing to obtain downsampled Demura table data.
Based on the same inventive concept, a second aspect of the present invention provides a method for decompressing Demura table data, comprising:
decoding the compressed Demura table code stream data by adopting a three-channel interlaced jpeg decoding method to obtain decompressed down-sampled Demura table data, wherein the compressed Demura table code stream data is obtained by compressing the down-sampled Demura table data by adopting a three-channel interlaced jpeg encoding method, and the down-sampled Demura table data is obtained by compressing the first original Demura table data by adopting a preset Demura table data generation algorithm and LCD images in different states and by adopting a down-sampling mode;
performing up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data;
and decoding the compressed compensation region mask image run-length coding code stream by adopting a run-length decoding method to obtain a decompressed compensation region mask image, wherein the compressed compensation region mask image run-length coding code stream searches for a region on an LCD (liquid crystal display) needing mura compensation through an LCD (liquid crystal display) image and a preset mura classification rule, and after the compensation region mask image is generated, the compensation region mask image is run-length coded to obtain the compensation region mask image.
Based on the same inventive concept, a third aspect of the present invention provides an apparatus for compressing Demura table data, comprising:
the acquisition module is used for acquiring LCD images in different states;
the generating module is used for generating first original Demura table data based on a preset Demura table data generating algorithm and LCD images in different states;
the first compression module is used for compressing the first original Demura table data in a down-sampling mode to obtain down-sampled Demura table data;
and the second compression module is used for compressing the downsampled Demura table data by adopting a three-channel interlaced jpeg coding method to obtain the compressed Demura table data.
Based on the same inventive concept, a fourth aspect of the present invention provides an apparatus for decompressing Demura table data, comprising:
the first decoding module is used for decoding the compressed Demura table code stream data by adopting a three-channel interweaved jpeg decoding method to obtain decompressed downsampled Demura table data, wherein the compressed Demura table code stream data is obtained by compressing the downsampled Demura table data by adopting a three-channel interweaved jpeg encoding method, the downsampled Demura table data is obtained by generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states, and the first original Demura table data is obtained by compressing the first original Demura table data in a downsampling mode;
the up-sampling module is used for performing up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data;
and the second decoding module is used for decoding the compressed run-length coding code stream of the compensation region mask map by adopting a run-length decoding method to obtain a decompressed compensation region mask map, searching a region on the LCD which needs to be subjected to mura compensation through the LCD image and a preset mura classification rule of the compressed run-length coding code stream of the compensation region mask map, generating the compensation region mask map, and then performing run-length coding on the compensation region mask map to obtain the compensation region mask map.
Based on the same inventive concept, a fifth aspect of the present invention provides a Demura table data encoding and decoding system, including the apparatus for compressing Demura table data described in the third aspect, the apparatus for decompressing Demura table data described in the fourth aspect, a De-Mura module, a ROM, a RAM, and a cache memory.
In one embodiment, the De-Mura module is specifically configured to:
and replacing data at a corresponding position in the upsampled Demura table data by second original Demura table data of the compensation area according to the decompressed compensation area mask image to obtain new Demura table data, wherein the second original Demura table data of the compensation area is formed by extracting data of an area which needs to be subjected to mura compensation in the original Demura table data according to the compensation area mask image.
In an embodiment, the ROM is configured to store compressed Demura table code stream data, a compressed run-length encoded code stream of a compensation region mask map, and second original Demura table data of a compensation region, the RAM is configured to read the compressed Demura table code stream data, the compressed run-length encoded code stream of the compensation region mask map, and the second original Demura table data of the compensation region after the T-CON board is powered on, and the cache memory is configured to cache the decompressed Demura table code stream data, the decompressed run-length encoded code stream of the compensation region mask map, and the second original Demura table data of the compensation region.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the invention discloses a method for compressing Demura table data, which comprises the steps of firstly collecting LCD images in different states, and then generating first original Demura table data based on a preset Demura table data generation algorithm and the LCD images in different states; then, compressing the first original Demura table data in a down-sampling mode to obtain down-sampled Demura table data; and then, compressing the downsampled Demura table data by adopting a three-channel interleaved jpeg coding method to obtain compressed Demura table code stream data.
Compared with the existing method in which the compression is carried out in the Huffman coding mode, the method firstly adopts the down-sampling mode to carry out primary compression, and then adopts the jpeg algorithm to carry out secondary lossless compression on the data of the down-sampled Demura table, so that the compression rate can be greatly improved under the condition of keeping enough data accuracy. The technical problem of low compression ratio in the prior art is solved.
Furthermore, the invention can recover the original compensation of the limited pixels of any area through the original Demura table data of the compensation area, thereby making up the precision loss problem caused by down sampling and further ensuring the precision of the data.
In the coding and decoding system provided by the invention, the Demura table data in the compression device of the Demura table data has strong spatial correlation (similar to an image), the second compression module compresses the downsampled Demura table data by adopting a three-channel interlaced JPEG encoding method, and the JPEG-LS compression algorithm has good and stable compression ratio on the De-Mura table data, and the compression ratio is stable between 12 and 13 percent.
In the practical application process, the requirement of the T-con IC on the RAM space can be effectively reduced, and the occupation proportion of the RAM on the T-con IC is large. (the space size of the RAM can be reduced to 15% -20%), the JPEG-LS decompression IP Core based on the three-channel time-interleaved pipeline architecture has the advantages of small occupied logic gate number and high decompression speed, and therefore the problem of high decompression circuit cost caused by a Huffman coding mode is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for compressing data in a Demura table according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for decompressing Demura table data according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for compressing Demura table data according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a structure of a device for decompressing Demura table data according to an embodiment of the present invention;
FIG. 5 is a block diagram of a Demura table data encoding and decoding system according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method for implementing the compression apparatus of FIG. 5;
FIG. 7 is a flowchart of a method for implementing the decompression apparatus and the De-Mura module in FIG. 5.
Detailed Description
The embodiment of the invention provides a method and a device for compressing and decompressing Demura table data and an encoding and decoding system, which are used for solving the technical problem of low compression ratio in the prior art.
In order to achieve the technical effects, the general idea of the invention is as follows:
the invention adopts a down-sampling mode to carry out primary compression, and then adopts a jpeg algorithm to carry out secondary lossless compression on the data of the down-sampled Demura table, thereby greatly improving the compression ratio under the condition of keeping enough data precision and solving the technical problem of lower compression ratio in the prior art.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The present embodiment provides a method for compressing data in a Demura table, please refer to fig. 1, which includes:
step S101 is first executed: LCD images in different states are collected.
Specifically, the LCD image is an image displayed on an LCD display screen, the LCD having a different resolution, for example, the LCD is 4K resolution 2160 × 3840.
Then, step S102 is executed: generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states, wherein the scale of the first original Demura table data can be 3 x 2160 x 3840 x 10bit
Specifically, the Demura table data generation algorithm is preset to be a known algorithm, and different manufacturers have corresponding Demura table data generation algorithms, which are not described in detail herein.
Step S103 is performed next: and compressing the first original Demura table data by adopting a down-sampling mode to obtain the down-sampled Demura table data.
Specifically, the number of sampling points is decreased, and for an N × M image, if the down-sampling coefficient is k, every k points are taken for each row and column in the original image to form an image. The first raw Demura table data may be compressed in a downsampling manner, for example, by performing a convolution operation with a gaussian filter. The downsampled Demura table data was 271 × 481 × 3 × 10 bit.
In one embodiment, the compressing the first original Demura table data in a down-sampling manner to obtain down-sampled Demura table data includes:
dividing the first original Demura table data into 3 channels of images with preset resolution;
respectively carrying out smoothing treatment on three images of 3 channels;
1/8 samples were taken simultaneously in both the vertical and horizontal directions of the three images after smoothing to obtain downsampled Demura table data.
Specifically, the first original Demura table data is divided into 3 channels of images with the resolution of 2160 × 3840 × 10bit according to the dimension of the third dimension, and then the three images are smoothed, specifically, an image gaussian filter, an average filter or other image smoothing methods can be adopted. 1/8 samples were then taken simultaneously for the first and second dimensions, i.e., both vertical and horizontal, of the three images after smoothing, resulting in downsampled Demura table data with a scale of 3 x 271 x 481 x 10 bit.
And step S104 is executed again: and compressing the downsampled Demura table data by adopting a three-channel interleaved jpeg coding method to obtain compressed Demura table code stream data.
Specifically, the jpeg encoding method is an international standard for lossless/near-lossless encoding of still images, can support lossless and near-lossless image compression, does not use discrete cosine transform, does not use arithmetic coding, and uses quantization only limitedly in a near-lossless compression mode. Since the 8x8 data are more correlated in the subsequent DCT and quantization, the extracted low frequency energy is more concentrated and the compression ratio is higher. For example, the data size of the compressed Demura table stream data may be calculated according to a set compression rate (e.g., 12%, 12.5%, 13%, etc.), and the data size may be 15276 × 32bit, for example, 12.5%.
In one embodiment, after acquiring the LCD images in different states, the method further comprises:
searching an area needing mura compensation on the LCD according to the LCD image and a preset mura classification rule, and generating a compensation area mask image;
and carrying out run-length coding on the compensation area mask graph to obtain a compressed run-length coding code stream of the compensation area mask graph.
Specifically, the preset mura classification rule may be preset, wherein the generated compensation region mask map is a mask map that needs to be accurately compensated. Run Length Coding (RLC), which is a statistical Coding, can be used for lossless compression Coding, and the compression principle is as follows: successive symbols having the same value are replaced by a symbol value or string length (successive symbols constitute a continuous "run"), making the symbol length less than the length of the original data. And only when the codes of the data in each row or each column are changed, the codes and the repeated number of the same codes are recorded once, so that the data compression is realized. In a specific implementation, the variable length data × 12bit may be used for encoding.
In one embodiment, the method further comprises:
and according to the compensation area mask diagram, extracting data of an area needing mura compensation in the original Demura table data, and forming second original Demura table data of the compensation area.
In a specific implementation process, after the compressed Demura table code stream data, the compressed compensation area mask map run-length coding code stream and the second original Demura table data of the compensation area are obtained respectively, the three groups of data can be assembled and written into a FLASH chip of a T-con board through a configuration cable. The T-con board is a Timing Controller display time sequence control circuit.
Based on the same inventive concept, the application also provides a decompression method of Demura table data, which is detailed in embodiment two.
Example two
Referring to fig. 3, the present embodiment provides a method for decompressing Demura table data, including:
s201: decoding the compressed Demura table code stream data by adopting a three-channel interlaced jpeg decoding method to obtain decompressed down-sampled Demura table data, wherein the compressed Demura table code stream data is obtained by compressing the down-sampled Demura table data by adopting a three-channel interlaced jpeg encoding method, and the down-sampled Demura table data is obtained by compressing the first original Demura table data by adopting a preset Demura table data generation algorithm and LCD images in different states and by adopting a down-sampling mode;
s202: performing up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data;
s203: and decoding the compressed compensation region mask image run-length coding code stream by adopting a run-length decoding method to obtain a decompressed compensation region mask image, wherein the compressed compensation region mask image run-length coding code stream searches for a region on an LCD (liquid crystal display) needing mura compensation through an LCD (liquid crystal display) image and a preset mura classification rule, and after the compensation region mask image is generated, the compensation region mask image is run-length coded to obtain the compensation region mask image.
Specifically, since the detailed description of the compression method of Demura table data has been given in the first embodiment, the method of Demura table data in this embodiment is a decompression method corresponding to the implementation of the compression method in the first embodiment, for example, the triple-channel interleaved jpeg decoding method corresponds to the triple-channel interleaved jpeg encoding method in the first embodiment or is the inverse of the triple-channel interleaved jpeg encoding method, and the upsampling method corresponds to the downsampling method in the first embodiment.
The up-sampling may be achieved by: the image is decompressed by up-sampling the first and second dimensions by a factor of 8 simultaneously in both the vertical and horizontal directions (using a linear interpolation method, or an interpolation method using the same). The upsampled Demura table data was 2160 × 3840 × 3 × 10 bits.
Based on the same inventive concept, the application also provides a device corresponding to the compression method of the Demura table data in the first embodiment, which is detailed in the third embodiment.
EXAMPLE III
The present embodiment provides a compression apparatus for Demura table data, please refer to fig. 3, the compression apparatus includes:
the acquisition module 301 is used for acquiring LCD images in different states;
a generating module 302, configured to generate first original Demura table data based on a preset Demura table data generating algorithm and LCD images in different states;
a first compression module 303, configured to compress the first original Demura table data in a downsampling manner to obtain downsampled Demura table data;
and the second compression module 304 is used for compressing the downsampled Demura table data by adopting a three-channel interleaved jpeg encoding method to obtain compressed Demura table code stream data.
In one embodiment, the compression apparatus further comprises a compensation region mask image compression module for, after acquiring the LCD images in different states:
searching an area needing mura compensation on the LCD according to the LCD image and a preset mura classification rule, and generating a compensation area mask image;
and carrying out run-length coding on the compensation area mask graph to obtain a compressed run-length coding code stream of the compensation area mask graph.
In one embodiment, the second original Demura table data composition module of the compensation area is configured to:
and according to the compensation area mask diagram, extracting data of an area needing mura compensation in the original Demura table data, and forming second original Demura table data of the compensation area.
In one embodiment, the first compression module is specifically configured to:
dividing the first original Demura table data into 3 channels of images with preset resolution;
respectively carrying out smoothing treatment on three images of 3 channels;
1/8 samples were taken simultaneously in both the vertical and horizontal directions of the three images after smoothing to obtain downsampled Demura table data.
Since the apparatus described in the third embodiment of the present invention is an apparatus used for implementing the method for compressing Demura table data in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and deformation of the apparatus based on the method described in the first embodiment of the present invention, and thus the details are not described herein again. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the application also provides a device corresponding to the decompression method of the Demura table data in the first embodiment, which is detailed in the fourth embodiment.
Example four
This embodiment provides a decompression apparatus for Demura table data, please refer to fig. 4, the decompression apparatus includes:
the first decoding module 401 is configured to decode the compressed Demura table code stream data by using a triple-channel interleaved jpeg decoding method to obtain decompressed downsampled Demura table data, where the compressed Demura table code stream data is obtained by compressing the downsampled Demura table data by using a triple-channel interleaved jpeg encoding method, and the downsampled Demura table data is obtained by generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states and compressing the first original Demura table data by using a downsampling method;
and an up-sampling module 402, configured to perform up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data.
The second decoding module 403 is configured to decode the compressed run-length encoded code stream of the compensation region mask map by using a run-length decoding method to obtain a decompressed compensation region mask map, where the compressed run-length encoded code stream of the compensation region mask map searches for a region on the LCD that needs to be subjected to mura compensation through an LCD image and a preset mura classification rule, and after the compensation region mask map is generated, run-length encoding is performed on the compensation region mask map to obtain the compensation region mask map.
Since the apparatus described in the fourth embodiment of the present invention is an apparatus used for implementing the method for decompressing Demura table data in the second embodiment of the present invention, a person skilled in the art can understand the specific structure and deformation of the apparatus based on the method described in the second embodiment of the present invention, and thus the details are not described herein again. All the devices adopted by the method of the second embodiment of the invention belong to the protection scope of the invention.
Based on the same inventive concept, the application also provides a Demura table data coding and decoding system, which is detailed in the fifth embodiment.
EXAMPLE five
Referring to fig. 5, the present embodiment provides a Demura table data codec system, including a Demura table data compression apparatus according to the third embodiment, a Demura table data decompression apparatus according to the fourth embodiment, a De-Mura module, a ROM, a RAM, and a cache memory.
Specifically, the compressing device of the Demura table data is Demura table data lossless compression encoding software, the decompressing device of the Demura table data may be an IP CORE implemented based on an FPGA or an ASIC, and the internal performance CORE IP CORE refers to a logic block or a data block for a product Application Specific Integrated Circuit (ASIC) or an editable logic device (PLD).
In one embodiment, the De-Mura module is specifically configured to:
and replacing data at a corresponding position in the upsampled Demura table data by second original Demura table data of the compensation area according to the decompressed compensation area mask image to obtain new Demura table data, wherein the second original Demura table data of the compensation area is formed by extracting data of an area which needs to be subjected to mura compensation in the original Demura table data according to the compensation area mask image.
Specifically, the De-Mura module is a compensation module, and is configured to recover original compensation of a limited number of pixels in any area on the LCD, so as to compensate for a precision loss problem caused by down-sampling.
In an embodiment, the ROM is configured to store compressed Demura table code stream data, a compressed run-length encoded code stream of a compensation region mask map, and second original Demura table data of a compensation region, the RAM is configured to read the compressed Demura table code stream data, the compressed run-length encoded code stream of the compensation region mask map, and the second original Demura table data of the compensation region after the T-CON board is powered on, and the cache memory is configured to cache the decompressed Demura table code stream data, the decompressed run-length encoded code stream of the compensation region mask map, and the second original Demura table data of the compensation region.
In a specific implementation process, the functions of each component of the codec system are described as follows:
the data lossless compression coding software of the Demura table, namely a compression device of the Demura table data, firstly adopts a down-sampling mode to carry out primary compression, then adopts a JPEG-LS compression method to carry out secondary compression, and then outputs the compressed Demura table code stream data. Video-in represents the input Video signal source and Video-out represents the output Video stream.
And the Flash ROM (read only memory) is positioned on the T-CON board and is used for storing the Demura gauge compressed data (comprising compressed Demura table code stream data, compressed compensation region mask map run-length coding code stream and second original Demura table data of the compensation region). The T-CON IC will read the De-Mura pressure compressed data in the Flash ROM into the internal RAM after the T-CON board is powered on.
And the compressed data RAM (random access memory) is used for caching the compressed Demura table code stream data, the compressed compensation region mask map run-length coding code stream and the second original Demura table data of the compensation region after the T-CON board is powered on. Wherein the three sets of data may be stored by RAM1, RAM2, and RAM3, respectively.
The decompression device for decompressing IP Core, i.e. Demura table data, adopts a JPEG-LS decompression method based on a time interleaving pipeline architecture and the architecture thereof. Each De-Mura table data comprises data of three channels, and the decompression IP Core uses a JPEG-LS decompression method of a three-channel time interleaving pipeline structure, and JPEG-LS decoding is firstly carried out, and then up-sampling is carried out.
RAM Buffer: and the small-block on-chip RAM is used for caching the De-Mura table data obtained by decompression.
De-Mura IP: IP Core for implementing Mura compensation.
Fig. 6 is a flowchart of an implementation method of the compression apparatus in fig. 5; FIG. 7 is a flowchart of a method for implementing the decompression apparatus and the De-Mura module in FIG. 5.
Specifically, the process of compressing the Demura table data by using the compression device mainly comprises the steps of Demura table data compression, compensation area mask image compression and acquisition of original Demura table data of a compensation area.
The compression process of the data compression of the Demura table mainly comprises the following steps:
1. images of the LCD in different states are captured by the camera, assuming a 4K resolution 2160 × 3840.
2. The original Demura table data was generated by the Demura table data generation algorithm, scale 3 x 2160 x 3840 x 10 bit.
3. 1/8 down-sampling is carried out on the vertical and horizontal directions of 3 channels of the original Demura table data generated in the step 2, and the down-sampling method comprises the following steps: a. the original Demura table data was divided into 3 channels of images with a resolution of 2160 x 3840 x 10bit according to the dimension of the third dimension and then smoothed. b. 1/8 samples are simultaneously carried out on the first dimension and the second dimension, namely the vertical direction and the horizontal direction, of the three images after smoothing, and downsampled Demura table data are obtained, wherein the data size is as follows: 3 × 271 × 481 × 10 bit.
4. And coding the data of the three-channel downsampled Demura table by using a three-channel interweaving jpeg coding method. And obtaining code stream data, and completing data compression of the Demura table.
The accurate compensation region mask image compression process comprises the following steps:
1. according to the LCD image and the preset mura classification rule, the area needing to be subjected to the precise mura compensation on the LCD is found out, and a compensation area mask graph is generated and obtained, wherein the size of the mask graph is 2160 × 3840 × 1 bit.
2. And carrying out run-length coding on the compensation area mask graph to obtain a run-length coding code stream of the compensation area mask graph. The compensation area mask map compression process is completed.
The process of acquiring the original Demura table data of the precise compensation area comprises the following steps:
1. and according to the compensation area mask diagram, extracting the data of the area which needs to be subjected to accurate mura compensation in the original Demura table data to form the original Demura table data of the compensation area.
Similarly, fig. 7 shows an implementation process of the Demura table data decompression by the decompression device and the De-Mura module, which is not described in detail herein.
Generally, the main innovation points of the Demura table data coding and decoding system provided by the invention comprise:
1. the data of the Demura table is down-sampled first, and then compressed by a JPEG-LS compression algorithm, so that the compression rate is improved.
2. The JPEG-LS decompression method of the three-channel time-interleaved pipeline architecture is applied to the T-con IC, so that real-time decompression of the data of the Demura table is realized.
The method has the following advantages or beneficial technical effects:
the Demura table data have strong spatial correlation (similar to images), and the JPEG-LS compression algorithm has good and stable compression rate for the Demura table data, and the compression rate is usually stable between 12% and 13%.
2. The space requirement of the T-con IC on the RAM, which occupies a great proportion on the T-con IC, can be effectively reduced. (the space size of the RAM can be reduced to 15% -20%)
3. The JPEG-LS decompression IP Core based on the three-channel time-interleaved pipeline architecture has the advantages of small occupied logic gate number and high decompression speed.
The system provided by the embodiment of the present invention is a system formed based on the devices described in the third and fourth embodiments, so that based on the related devices described in the foregoing embodiments, a person skilled in the art can understand the specific structure and the modifications of the system, and thus details are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (9)

1. A method for compressing data of a Demura table, comprising:
collecting LCD images in different states;
generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states;
compressing the first original Demura table data by adopting a down-sampling mode to obtain down-sampled Demura table data;
compressing the downsampled Demura table data by adopting a three-channel interleaved jpeg coding method to obtain compressed Demura table data;
after acquiring the LCD images in different states, the method further comprises:
searching an area needing mura compensation on the LCD according to the LCD image and a preset mura classification rule, and generating a compensation area mask image;
and carrying out run-length coding on the compensation area mask graph to obtain a compressed run-length coding code stream of the compensation area mask graph.
2. The method of claim 1, wherein the method further comprises:
and according to the compensation area mask diagram, extracting data of an area needing mura compensation in the original Demura table data, and forming second original Demura table data of the compensation area.
3. The method of claim 1, compressing the first original Demura table data in a downsampling manner to obtain downsampled Demura table data, comprising:
dividing the first original Demura table data into 3 channels of images with preset resolution;
respectively carrying out smoothing treatment on three images of 3 channels;
1/8 samples were taken simultaneously in both the vertical and horizontal directions of the three images after smoothing to obtain downsampled Demura table data.
4. A method for decompressing Demura table data is characterized by comprising the following steps:
decoding the compressed Demura table code stream data by adopting a three-channel interlaced jpeg decoding method to obtain decompressed down-sampled Demura table data, wherein the compressed Demura table code stream data is obtained by compressing the down-sampled Demura table data by adopting a three-channel interlaced jpeg encoding method, and the down-sampled Demura table data is obtained by compressing the first original Demura table data by adopting a preset Demura table data generation algorithm and LCD images in different states and by adopting a down-sampling mode;
performing up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data;
and decoding the compressed compensation region mask image run-length coding code stream by adopting a run-length decoding method to obtain a decompressed compensation region mask image, wherein the compressed compensation region mask image run-length coding code stream searches for a region on an LCD (liquid crystal display) needing mura compensation through an LCD (liquid crystal display) image and a preset mura classification rule, and after the compensation region mask image is generated, the compensation region mask image is run-length coded to obtain the compensation region mask image.
5. An apparatus for compressing data of a Demura table, comprising:
the acquisition module is used for acquiring LCD images in different states;
the generating module is used for generating first original Demura table data based on a preset Demura table data generating algorithm and LCD images in different states;
the first compression module is used for compressing the first original Demura table data in a down-sampling mode to obtain down-sampled Demura table data;
the second compression module is used for compressing the downsampled Demura table data by adopting a three-channel interweaved jpeg coding method to obtain the compressed Demura table data;
the compression device further comprises a compensation module for, after acquiring the LCD images in different states:
searching an area needing mura compensation on the LCD according to the LCD image and a preset mura classification rule, and generating a compensation area mask image;
and carrying out run-length coding on the compensation area mask graph to obtain a compressed run-length coding code stream of the compensation area mask graph.
6. An apparatus for decompressing Demura table data, comprising:
the first decoding module is used for decoding the compressed Demura table code stream data by adopting a three-channel interweaved jpeg decoding method to obtain decompressed downsampled Demura table data, wherein the compressed Demura table code stream data is obtained by compressing the downsampled Demura table data by adopting a three-channel interweaved jpeg encoding method, the downsampled Demura table data is obtained by generating first original Demura table data based on a preset Demura table data generation algorithm and LCD images in different states, and the first original Demura table data is obtained by compressing the first original Demura table data in a downsampling mode;
the up-sampling module is used for performing up-sampling processing on the down-sampled Demura table data to obtain up-sampled Demura table data;
and the second decoding module is used for decoding the compressed run-length coding code stream of the compensation region mask map by adopting a run-length decoding method to obtain a decompressed compensation region mask map, searching a region on the LCD which needs to be subjected to mura compensation through the LCD image and a preset mura classification rule of the compressed run-length coding code stream of the compensation region mask map, generating the compensation region mask map, and then performing run-length coding on the compensation region mask map to obtain the compensation region mask map.
7. A Demura table data coding and decoding system, comprising the Demura table data compressing apparatus of claim 5, the Demura table data decompressing apparatus of claim 6, a De-Mura module, a ROM, a RAM, and a cache memory.
8. The system of claim 7, wherein the De-Mura module is specifically configured to:
and replacing data at a corresponding position in the upsampled Demura table data by second original Demura table data of the compensation area according to the decompressed compensation area mask image to obtain new Demura table data, wherein the second original Demura table data of the compensation area is formed by extracting data of an area which needs to be subjected to mura compensation in the original Demura table data according to the compensation area mask image.
9. The system of claim 7, wherein the ROM is configured to store compressed Demura table code stream data, compressed compensation region mask run code stream data, and second original Demura table data for the compensation region, the RAM is configured to read the compressed Demura table code stream data, the compressed compensation region mask run code stream data, and the second original Demura table data for the compensation region after the T-CON board is powered on, and the cache memory is configured to cache the decompressed Demura table code stream data, the decompressed compensation region mask run code stream data, and the second original Demura table data for the compensation region.
CN201910039872.1A 2019-01-16 2019-01-16 Method and device for compressing and decompressing Demura table data and coding and decoding system Active CN109889846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910039872.1A CN109889846B (en) 2019-01-16 2019-01-16 Method and device for compressing and decompressing Demura table data and coding and decoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910039872.1A CN109889846B (en) 2019-01-16 2019-01-16 Method and device for compressing and decompressing Demura table data and coding and decoding system

Publications (2)

Publication Number Publication Date
CN109889846A CN109889846A (en) 2019-06-14
CN109889846B true CN109889846B (en) 2021-04-16

Family

ID=66926145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910039872.1A Active CN109889846B (en) 2019-01-16 2019-01-16 Method and device for compressing and decompressing Demura table data and coding and decoding system

Country Status (1)

Country Link
CN (1) CN109889846B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114467133A (en) * 2020-03-11 2022-05-10 深圳云英谷科技有限公司 Method and system for compressing and decompressing compensation data for compensating brightness unevenness of display
CN111223438B (en) * 2020-03-11 2022-11-04 Tcl华星光电技术有限公司 Compression method and device of pixel compensation table
CN111326124B (en) * 2020-04-03 2021-07-23 Tcl华星光电技术有限公司 Display device driving method and display device
US11257449B2 (en) 2020-04-03 2022-02-22 Tcl China Star Optoelectronics Technology Co., Ltd. Display device driving method, display device
CN112037781B (en) * 2020-08-07 2024-01-19 北京百度网讯科技有限公司 Voice data acquisition method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761933A (en) * 2013-12-30 2014-04-30 深圳市华星光电技术有限公司 System and method for repairing bad display area of liquid crystal display panel
CN108196793A (en) * 2017-12-29 2018-06-22 武汉华星光电半导体显示技术有限公司 The data compression method and decompression method of DeMura tables
CN108259911A (en) * 2018-03-29 2018-07-06 苏州佳智彩光电科技有限公司 A kind of OLED screen Demura lossless date-compress, decompression method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120075354A1 (en) * 2010-09-29 2012-03-29 Sharp Laboratories Of America, Inc. Capture time reduction for correction of display non-uniformities

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761933A (en) * 2013-12-30 2014-04-30 深圳市华星光电技术有限公司 System and method for repairing bad display area of liquid crystal display panel
CN108196793A (en) * 2017-12-29 2018-06-22 武汉华星光电半导体显示技术有限公司 The data compression method and decompression method of DeMura tables
CN108259911A (en) * 2018-03-29 2018-07-06 苏州佳智彩光电科技有限公司 A kind of OLED screen Demura lossless date-compress, decompression method

Also Published As

Publication number Publication date
CN109889846A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109889846B (en) Method and device for compressing and decompressing Demura table data and coding and decoding system
US8265402B2 (en) 2 dimensional signal encoding/decoding method and device
CN106254877B (en) Video processing system, method, device and storage medium for processing video data frame
WO2009053780A2 (en) Frame buffer compression for video processing devices
CN101494788B (en) Method and apparatus for compressing and decompressing video image
CN101653004A (en) Decoder for selectively decoding predetermined data units from a coded bit stream
US8908985B2 (en) Image processing including encoding information concerning the maximum number of significant digits having largest absolute value of coefficient data in groups
DE112014000643T5 (en) Image data encoding for access to raster and macroblock
US11818397B2 (en) Sparse matrix representation using a boundary of non-zero coefficients
US10803791B2 (en) Burrows-wheeler based stress profile compression
EP2787738B1 (en) Tile-based compression for graphic applications
CN102271251B (en) Lossless image compression method
Kabir et al. Edge-based transformation and entropy coding for lossless image compression
JP2011234363A (en) Image processing system and method
US8045824B2 (en) Wavelet transformation-based image encoder, decoder and method for generating thumbnail image
US9819969B2 (en) Generalization of methods and systems for image compression while encoding at least one extra bit
KR102250088B1 (en) Method and Apparatus for decoding video stream
CN108830909A (en) Promote the image preprocessing system and method for period texture image compression ratio
KR100798386B1 (en) Method of compressing and decompressing image and equipment thereof
CN106296754B (en) Show data compression method and display data processing system
CN107172425B (en) Thumbnail generation method and device and terminal equipment
US9384410B2 (en) Method and system for image compression while encoding at least one extra bit
CN111479116A (en) Data compression method and device for equal bit precision prediction, mapping and segmented coding
CN114554225B (en) Image encoding method, apparatus, device and computer readable medium
US11854235B1 (en) Lossless integer compression scheme

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
GR01 Patent grant
GR01 Patent grant