Compression method and decompression method for compensation table of OLED display device
AssigneeShenzhen China Star Optoelectronics Semiconductor Display Technology Co., Ltd.
InventorsYufan Deng, Mingjong Jou
Life of this patent
Estimating the term…
Abstract
The invention provides a compression method and decompression method for compensation table of OLED display device, by performing encoding on the data with equal value successively arranged in the compensation table to compress the data amount of the compensation table, and by adjusting the default threshold to control the condition of starting a stroke encoding to prevent increasing redundancy and data expansion caused by encoding; as such, the compensation table is compressed, the system storage space occupied by the compensation table is reduced and the time of transmitting and burning data on production line is shortened.
Claims9
A method for compressing a compensation table of an organic light-emitting diode (OLED) display device, comprising the steps of:
- Step S1:
- obtaining a compensation table of an OLED display device, which is loaded with compensation data for pixels of the OLED display device, to provide a compensation table to be compressed, the compression table to be compressed comprising the compensation data for the pixels of the OLED display device as a plurality of data to be compressed that are arranged sequentially;
- and
- Step S2:
- reading sequentially the data to be compressed in the compensation table to be compressed, when the number of read data to be compressed with equal value exceeding or equal to a default threshold, performing encoding on the data to be compressed, generating corresponding compressed data, and writing the compressed data into a compressed file;
- otherwise, writing the read data to be compressed directly into the compressed file;
- wherein Step 2 comprises:
- Step S21:
- letting i=1, N as default threshold;
- Step S22:
- reading sequentially the i-th to (i+N−1)-th data to be compressed, and determining whether the i-th to (i+N−1)-th data to be compressed being equal;
- if so, setting j=0 and proceeding to Step S23;
- otherwise, proceeding to Step S27;
- Step S23:
- continuing reading the (i+N+j)-th data to be compressed;
- Step S24:
- determining whether the (i+N+j)-th data to be compressed equal to the i-th data to be compressed;
- if so, setting j=j+1, and returning to Step S23;
- otherwise, proceeding to Step S25;
- Step S25:
- performing encoding on the read data to be compressed with equal value to obtain a compressed data, the compressed data comprising:
- a marker byte, a stroke length, and a stroke code, wherein the marker byte indicating that data being default value of the compressed data, the stroke length being the number of the read data to be compressed with equal value, and the stroke code being the value of the data to be compressed with equal value;
- Step S26:
- writing the compressed data into a compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N+j, and returning to step S22;
- otherwise, terminating;
- and
- Step S27:
- writing the i-th to (i+N−1)-th data to be compressed into the compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N, and returning to step S22;
- otherwise, terminating.
A method for processing a compensation table of an organic light-emitting diode (OLED) display device, comprising a compression process that comprises the following steps:
- Step S1:
- obtaining a compensation table of an OLED display device, which is loaded with compensation data for pixels of the OLED display device, to provide a compensation table to be compressed, the compression table to be compressed comprising the compensation data for the pixels of the OLED display device as a plurality of data to be compressed that are arranged sequentially;
- and
- Step S2:
- reading sequentially the data to be compressed in the compensation table to be compressed, when the number of read data to be compressed with equal value exceeding or equal to a default threshold, performing encoding on the data to be compressed, generating corresponding compressed data, and writing the compressed data into a compressed file;
- otherwise, writing the read data to be compressed directly into the compressed file;
- wherein Step 2 comprises:
- Step S21:
- letting i=1, N as default threshold;
- Step S22:
- reading sequentially the i-th to (i+N−1)-th data to be compressed, and determining whether the i-th to (i+N−1)-th data to be compressed being equal;
- if so, setting j=0 and proceeding to Step S23;
- otherwise, proceeding to Step S27;
- Step S23:
- continuing reading the (i+N+j)-th data to be compressed;
- Step S24:
- determining whether the (i+N+j)-th data to be compressed equal to the i-th data to be compressed;
- if so, setting j=j+1, and returning to Step S23;
- otherwise, proceeding to Step S25;
- Step S25:
- performing encoding on the read data to be compressed with equal value to obtain a compressed data, the compressed data comprising:
- a marker byte, a stroke length, and a stroke code, wherein the marker byte indicating that data being default value of the compressed data, the stroke length being the number of the read data to be compressed with equal value, and the stroke code being the value of the data to be compressed with equal value;
- Step S26:
- writing the compressed data into a compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N+j, and returning to step S22;
- otherwise, terminating;
- and
- Step S27:
- writing the i-th to (i+N−1)-th data to be compressed into the compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N, and returning to step S22;
- otherwise, terminating;
- and
- a decompression process comprises the following steps:
- Step S1′:
- obtaining the compressed file as a compressed filed to be decompressed, wherein the compressed file comprises a plurality of data to be decompressed arranged sequentially, the data to be decompressed comprising:
- a plurality of compressed data and a plurality of non-compressed data;
- the compressed data comprising:
- a marker byte, a stroke length, and a stroke code;
- Step S2′:
- reading sequentially the data to be decompressed in the compressed file to be decompressed, when a compressed data being read, decompressing the compressed data to obtain a plurality of decompressed data with equal value, and writing the plurality of decompressed data into a compensation table;
- when a non-compressed data being read, writing the non-compressed data directly into the compensation table;
- the value of the decompressed equal to the stroke code and the number of the decompressed data equal to the stroke length;
- when a marker byte being read in Step S2′, determining the currently read data to be decompressed being a compressed data;
- other determining the currently read data to be decompressed being a non-compressed data.
A method for compressing a compensation table of an organic light-emitting diode (OLED) display device, comprising the steps of:
- Step S1:
- obtaining a compensation table of an OLED display device, which is loaded with compensation data for pixels of the OLED display device, to provide a compensation table to be compressed, the compression table to be compressed comprising the compensation data for the pixels of the OLED display device as a plurality of data to be compressed that are arranged sequentially;
- and
- Step S2:
- reading sequentially the data to be compressed in the compensation table to be compressed, when the number of read data to be compressed with equal value exceeding or equal to a default threshold, performing encoding on the data to be compressed, generating corresponding compressed data, and writing the compressed data into a compressed file;
- otherwise, writing the read data to be compressed directly into the compressed file;
- wherein Step S2 comprises:
- Step S21:
- letting i=1, N as default threshold;
- Step S22:
- reading sequentially the i-th to (i+N−1)-th data to be compressed, and determining whether the i-th to (i+N−1)-th data to be compressed being equal;
- if so, setting j=0 and proceeding to Step S23;
- otherwise, proceeding to Step S27;
- Step S23:
- continuing reading the (i+N+j)-th data to be compressed;
- Step S24:
- determining whether the (i+N+j)-th data to be compressed equal to the i-th data to be compressed;
- if so, setting j=j+1, and returning to Step S23;
- otherwise, proceeding to Step S25;
- Step S25:
- performing encoding on the read data to be compressed with equal value to obtain a compressed data, the compressed data comprising:
- a marker byte, a stroke length, and a stroke code, wherein the marker byte indicating that data being default value of the compressed data, the stroke length being the number of the read data to be compressed with equal value, and the stroke code being the value of the data to be compressed with equal value;
- Step S26:
- writing the compressed data into a compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N+j, and returning to step S22;
- otherwise, terminating;
- and
- Step S27:
- writing the i-th to (i+N−1)-th data to be compressed into the compressed file, and determining whether finishing reading all the data to be compressed;
- if not, setting i=i+N, and returning to step S22;
- otherwise, terminating;
- wherein the default threshold is greater than or equal to 4;
- wherein the method further comprises a step before Step S1:
- obtaining a compensation table of OLED display device, and pre-processing the compensation table of OLED display device to generate a compensation table to be compressed;
- wherein the compensation table to be compressed and the compensation table of OLED display device are of a same size;
- the first data to be compressed in the compensation table to be compressed and the first compensation data in the compensation table of OLED display device are of a same value, and the M-th data to be compressed in the compensation table to be compressed has a value equals to the difference between value of the M-th compensation data and value of the (M−1)-th compensation data in the compensation table of OLED display device, and M is a positive integer greater than 1.
Dependencies are inferred from the claim text.