Data compression method, device and equipment, medium and product

By calculating and encoding the differential data of the brightness compensation value of the display panel, and using the Huffman coding algorithm for compression, the problem of excessive memory occupancy of brightness compensation data of OLED display products is solved, and the brightness uniformity and storage efficiency of the display panel are improved.

CN119314430APending Publication Date: 2025-01-14JIANGSU HUIXIAN DISPLAY TECHNOLOGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411747913.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

When the existing OLED display products are compensated for brightness, the encoded and compressed data occupy too much memory of the control chip, resulting in insufficient storage space.

Method used

By obtaining the brightness compensation value of the display panel, calculating the average and difference values ​​of the brightness compensation value of the sub-pixels, the differential data is encoded and compressed using the Huffman encoding algorithm to reduce the entropy value of the compressed data, thereby reducing the storage space requirement.

Benefits of technology

It effectively reduces the memory occupancy of compressed data, reduces the dispersion of sub-pixel brightness compensation values, and improves the brightness uniformity and storage efficiency of the display panel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119314430A_ABST
    Figure CN119314430A_ABST
Patent Text Reader

Abstract

The invention discloses a data compression method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a brightness compensation value of a display panel, and the brightness compensation value comprises a compensation value of the brightness of a sub-pixel of the display panel at a target gray scale; calculating an average value of the compensation values of the brightness of the sub-pixels; respectively calculating a difference value between the brightness compensation value of each sub-pixel and the average value to obtain difference data; and performing coding compression on the differential data and the average value to obtain compressed data. According to the embodiment of the invention, the memory occupied by the compressed data of the display panel can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of display technology, and in particular, relates to a data compression method, device, equipment, medium and product. Background Art

[0002] Organic Light Emitting Diode (OLED) and flat display devices based on technologies such as Light Emitting Diode (LED) have been widely used in various consumer electronic products such as mobile phones, televisions, laptops, desktop computers, etc. due to their advantages of high image quality, power saving, thin body and wide application range, becoming the mainstream of display devices. However, the display performance of current OLED display products needs to be improved. Summary of the invention

[0003] The embodiments of the present application provide a data compression method, device, equipment, medium and product, which can reduce the memory occupied by compressed data of a display panel and save the storage space of a control chip of the display panel.

[0004] In a first aspect, an embodiment of the present application provides a data compression method, comprising:

[0005] Acquire a brightness compensation value of the display panel, where the brightness compensation value includes a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale;

[0006] Calculating an average value of the compensation values ​​of the brightness of the sub-pixels;

[0007] Calculate the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data;

[0008] The differential data and the average value are encoded and compressed to obtain compressed data.

[0009] According to any of the aforementioned embodiments of the first aspect of the present application, the display panel brightness compensation value includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of brightness of M sub-pixels;

[0010] Calculating the average value of the compensation value of the brightness of the sub-pixel, including:

[0011] Calculating the average values ​​of the compensation values ​​of the brightness of the M sub-pixels in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​respectively, to obtain N average values, wherein each group of brightness compensation values ​​corresponds to one average value;

[0012] The difference between the brightness compensation value of each sub-pixel and the average value is calculated to obtain differential data, including:

[0013] The difference between the compensation value of the brightness of each sub-pixel in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​is calculated respectively to obtain differential data.

[0014] According to any of the aforementioned implementations of the first aspect of the present application, before obtaining the brightness compensation value of the display panel, the method further includes:

[0015] Acquire the display brightness of the display panel, where the display brightness includes a first display brightness of a sub-pixel of the display panel at a target grayscale;

[0016] Determining a target grayscale value corresponding to a first display brightness of the sub-pixel based on a corresponding relationship among display brightness, a reference brightness value, and grayscale data;

[0017] Based on the target grayscale value and the reference grayscale data, a compensation value of the brightness of the sub-pixel is determined.

[0018] According to any of the aforementioned implementations of the first aspect of the present application, determining a target grayscale value corresponding to a first display brightness of a sub-pixel based on a correspondence between display brightness, a reference brightness value, and grayscale data includes:

[0019] The target grayscale value corresponding to the first display brightness of the sub-pixel is determined based on the following expression:

[0020]

[0021] x n is the target grayscale value, Lv Gray is the first display brightness, Lv 255 is the reference grayscale data.

[0022] According to any of the aforementioned implementations of the first aspect of the present application, encoding and compressing the differential data and the average value to obtain compressed data includes:

[0023] The differential data and the average value are encoded and compressed using the Huffman coding algorithm to obtain compressed data.

[0024] According to any of the aforementioned implementations of the first aspect of the present application, after encoding and compressing the differential data and the average value to obtain compressed data, the method further includes:

[0025] Decoding the compressed data according to a preset decoding algorithm to obtain differential data and average value;

[0026] Determining a brightness compensation value of the display panel based on the differential data and the average value;

[0027] The brightness of the display panel is compensated based on the brightness compensation value of the display panel to display the picture to be displayed.

[0028] In a second aspect, an embodiment of the present application provides a data compression device, including:

[0029] According to any of the aforementioned implementations of the second aspect of the present application, an embodiment of the present application provides a data compression device, including:

[0030] An acquisition module, used to acquire a brightness compensation value of the display panel, the brightness compensation value including a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale;

[0031] A calculation module, used for calculating an average value of the compensation value of the brightness of the sub-pixels;

[0032] The calculation module is further used to calculate the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data;

[0033] The compression module is used to encode and compress the differential data and the average value to obtain compressed data.

[0034] According to any of the aforementioned implementations of the second aspect of the present application, the display panel brightness compensation value includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of brightness of M sub-pixels;

[0035] Computing module, specifically used for:

[0036] Calculating the average values ​​of the compensation values ​​of the brightness of the M sub-pixels in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​respectively, to obtain N average values, wherein each group of brightness compensation values ​​corresponds to one average value;

[0037] The difference between the compensation value of the brightness of each sub-pixel in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​is calculated respectively to obtain differential data.

[0038] According to any of the aforementioned implementations of the second aspect of the present application, the acquisition module is further used to:

[0039] Acquire the display brightness of the display panel, where the display brightness includes a first display brightness of a sub-pixel of the display panel at a target grayscale;

[0040] Determining a target grayscale value corresponding to a first display brightness of the sub-pixel based on a corresponding relationship among display brightness, a reference brightness value, and grayscale data;

[0041] Based on the target grayscale value and the reference grayscale data, a compensation value of the brightness of the sub-pixel is determined.

[0042] According to any of the aforementioned implementations of the second aspect of the present application, determining a target grayscale value corresponding to a first display brightness of a sub-pixel based on a correspondence between display brightness, a reference brightness value, and grayscale data includes:

[0043] The target grayscale value corresponding to the first display brightness of the sub-pixel is determined based on the following expression:

[0044]

[0045] x n is the target grayscale value, Lv Gray is the first display brightness, Lv 255 is the reference grayscale data.

[0046] According to any of the aforementioned implementations of the second aspect of the present application, the compression module is specifically used for:

[0047] The differential data and the average value are encoded and compressed using the Huffman coding algorithm to obtain compressed data.

[0048] According to any of the foregoing implementations of the second aspect of the present application, the device further includes a decoding module, which is used to:

[0049] Decoding the compressed data according to a preset decoding algorithm to obtain differential data and average value;

[0050] Determining a brightness compensation value of the display panel based on the differential data and the average value;

[0051] The brightness of the display panel is compensated based on the brightness compensation value of the display panel to display the picture to be displayed.

[0052] In a third aspect, an embodiment of the present application provides a display device, the device comprising:

[0053] a processor and a memory storing computer program instructions;

[0054] When the processor executes the computer program instructions, it is used to perform the data compression method of the first aspect mentioned above.

[0055] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the data compression method of the first aspect described above is implemented.

[0056] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the data compression method of the first aspect when processed by a processor.

[0057] The data compression method, device, equipment, medium and product provided in the embodiments of the present application obtain the brightness compensation value of the display panel, calculate the average value of the brightness compensation value of the sub-pixels of the display panel, and obtain differential data based on the difference between the compensation value of the brightness of the sub-pixels and the average value. The differential data can reduce the discreteness of the compensation value of the brightness of the sub-pixels. By compressing the differential data and the average value to obtain compressed data, the compression entropy value of the compressed data can be reduced, and the memory occupied by the compressed data can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0059] Figure 1 A flowchart of a data compression method provided for some embodiments of the present application.

[0060] Figure 2 A flowchart of another data compression method provided for some embodiments of the present application.

[0061] Figure 3 A flowchart of another data compression method provided for some embodiments of the present application.

[0062] Figure 4 A flowchart of another data compression method provided for some embodiments of the present application.

[0063] Figure 5 A schematic diagram of a data compression device provided in some embodiments of the present application.

[0064] Figure 6 A schematic diagram of the hardware structure of a display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0066] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0067] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:

[0068] Organic Light Emitting Display (OLED) is widely used in user devices. When the user device displays the image to be displayed, there may be a problem of uneven display brightness (mura). The above problem is often solved by performing brightness compensation (demura) on the display panel, and the brightness of the sub-pixels of the display panel is compensated by compensation data.

[0069] At present, the brightness compensation of the display panel is mainly achieved by encoding and compressing the compensation data and storing it in the control chip of the display panel. However, when the compensation data is losslessly compressed, there is a problem that the compressed compensation data occupies too much memory of the control chip.

[0070] Based on this, the embodiments of the present application provide a data compression method, device, equipment, medium and product, which can solve the above problems.

[0071] In some embodiments, Figure 1 As shown, the embodiment of the present application provides a data compression method, comprising the following steps S110-S140:

[0072] S110: Acquire a brightness compensation value of the display panel, where the brightness compensation value includes a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale.

[0073] A brightness compensation value of the display panel can be obtained, where the brightness compensation value can be grayscale data, and the brightness compensation value can be determined based on the difference between the grayscale data corresponding to the display brightness and the reference grayscale data. The brightness compensation value includes a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale, where the compensation value of the brightness of a sub-pixel may be different at different grayscales.

[0074] S120: Calculate an average value of the compensation values ​​of the brightness of the sub-pixels.

[0075] An average value of the compensation values ​​of the brightness of the sub-pixels may be calculated, for example, an average value of the compensation values ​​of the brightness of all sub-pixels of the display panel may be calculated to obtain an average value.

[0076] In some examples, the display panel may be partitioned, and the average value of the compensation value of the brightness of the sub-pixels in each display partition may be calculated respectively to obtain the average value corresponding to each display partition.

[0077] S130: Calculate the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data.

[0078] When the average value of the compensation values ​​of the brightness of all sub-pixels of the display panel is calculated, the difference between the compensation value of the brightness of each sub-pixel and the average value may be calculated to obtain differential data.

[0079] When the compensation values ​​of the brightness of the sub-pixels in different display partitions of the display panel are calculated, the difference between the compensation value of the brightness of the sub-pixels in each display partition and the average value corresponding to the display partition can be calculated to obtain differential data.

[0080] S140: Encode and compress the differential data and the average value to obtain compressed data.

[0081] The differential data and the average value may be encoded and compressed using an entropy coding algorithm to obtain compressed data. In some examples, the entropy coding algorithm includes any one of a Shannon coding algorithm, a Huffman coding algorithm, and an arithmetic coding algorithm.

[0082] The embodiment of the present application obtains the brightness compensation value of the display panel, obtains differential data based on the compensation value of the brightness of the sub-pixel and the average value of the compensation value, and the discreteness of the compensation value of the brightness of the sub-pixel can be reduced through the differential data. By compressing the differential data and the average value to obtain compressed data, the compression entropy value of the compressed data can be reduced, and the memory occupied by the compressed data can be reduced.

[0083] In order to further reduce the discreteness of the compensation value of the brightness of the sub-pixel, the display panel can be partitioned, and the compensation values ​​of the brightness of the sub-pixels in different display partitions are set as a group to obtain N groups of brightness compensation values, each group of brightness compensation values ​​includes the compensation values ​​of the brightness of M sub-pixels, and the difference between the compensation values ​​of the brightness of the M sub-pixels in each group of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​is calculated to obtain differential data. By encoding and compressing the differential data, the memory occupied by the compressed data can be further reduced. As shown below, Figure 2 As shown, the embodiment of the present application provides another data compression method, comprising the following steps:

[0084] The display panel brightness compensation value includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of brightness of M sub-pixels;

[0085] Calculating the average value of the compensation value of the brightness of the sub-pixel, including:

[0086] S210: Calculate average values ​​of brightness compensation values ​​of M sub-pixels in each group of brightness compensation values ​​in N groups of brightness compensation values ​​respectively to obtain N average values, wherein each group of brightness compensation values ​​corresponds to one average value.

[0087] When the brightness compensation value includes N groups of brightness compensation values, and each group of brightness compensation values ​​includes compensation values ​​of the brightness of M sub-pixels, the average value of the compensation values ​​of the M sub-pixels in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​can be calculated respectively to obtain the average value corresponding to each group of brightness compensation values.

[0088] Here, as shown in Table 1 below, the brightness compensation value of the display panel can be displayed in a tabular form based on the table shown in Table 1 below. It should be noted that a number in Table 1 corresponds to a compensation value of the brightness of a sub-pixel, and the compensation value of the brightness of the sub-pixel in Table 1 is only an exemplary compensation value.

[0089] Table 1

[0090]

[0091]

[0092] The brightness compensation values ​​in Table 1 may be grouped, each group representing a display partition, and the average value of the brightness compensation values ​​of the sub-pixels in each group may be calculated to obtain the average value displayed in a tabular form as shown in Table 2.

[0093] Table 2

[0094]

[0095] The difference between the brightness compensation value of each sub-pixel and the average value is calculated to obtain differential data, including:

[0096] S220: respectively calculating the difference between the compensation value of the brightness of each sub-pixel of each group of brightness compensation values ​​in the N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​to obtain differential data.

[0097] Here, the difference between the compensation value of the brightness of each sub-pixel of each group of brightness compensation values ​​in N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​can be calculated respectively. Taking the above Tables 1 and 2 as examples, for example, the difference between "-1" in the first row and first column of Table 1 and the average value "-1" corresponding to the group of brightness compensation values ​​is calculated to obtain differential data "0", and so on, to obtain differential data as shown in Table 3.

[0098] Table 3

[0099]

[0100] In the embodiment of the present application, when the brightness compensation value of the display panel includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of the brightness of M sub-pixels, respectively calculates the average value of the compensation values ​​of the brightness of M sub-pixels in each group of brightness compensation values, and obtains differential data based on the difference between the compensation value of the brightness of each sub-pixel in each group of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values. This further reduces the discreteness of the compensation value of the brightness of the sub-pixel and reduces the data redundancy of the brightness compensation value, so that the compressed data obtained by encoding and compressing the differential data occupies less memory. When the compressed data is stored in the control chip of the display panel, the storage space occupied by the compressed data on the control chip can be reduced.

[0101] Generally, the brightness compensation value of the display panel is grayscale data, and the brightness compensation value of the display panel can be obtained based on the following method.

[0102] In some embodiments, Figure 3 As shown, before obtaining the brightness compensation value of the display panel, the method further includes the following steps S310-S330:

[0103] S310: Acquire display brightness of the display panel, where the display brightness includes a first display brightness of a sub-pixel of the display panel at a target grayscale.

[0104] The first display brightness of the sub-pixel in the display panel at the target gray scale may be captured by a camera device, such as a charge coupled device camera (CCD) device.

[0105] In some examples, the display brightness of the display panel may be preprocessed, for example, the first display brightness of the sub-pixel at the target grayscale may be denoised based on wavelet transform to obtain the processed display brightness of the display panel, wherein the processed display brightness of the display panel includes the processed first display brightness of the sub-pixel at the target grayscale of the display panel. The specific process of removing noise from the display brightness using wavelet transform may refer to the prior art and will not be elaborated in detail here.

[0106] S320: Determine a target grayscale value corresponding to the first display brightness of the sub-pixel based on the corresponding relationship among the display brightness, the reference grayscale value, and the grayscale data.

[0107] Here, in some embodiments, the target grayscale value corresponding to the first display brightness of the sub-pixel may be determined based on the following expression:

[0108]

[0109] x n is the target grayscale value, Lv Gray is the first display brightness, Lv 255 is the reference brightness value.

[0110] Here, Lv 255 It is the brightness value of the sub-pixel corresponding to the grayscale of 255.

[0111] S330: Determine a compensation value of the brightness of the sub-pixel based on the target grayscale value and the reference grayscale data.

[0112] The difference between the target grayscale value and the reference grayscale data can be calculated to determine the compensation value of the brightness of the sub-pixel, and the above-mentioned reference grayscale data is the average value of the target grayscale values ​​of the sub-pixels in the target area of ​​the display panel. For example, the central area of ​​the display panel containing 20% ​​or 30% of the number of sub-pixels in the display panel is taken as the target area, and the average value of the target grayscale values ​​of the sub-pixels in the target area is calculated to obtain the reference grayscale data.

[0113] The embodiment of the present application obtains the display brightness of the display panel, determines the target grayscale value corresponding to the first display brightness of the sub-pixel based on the correspondence between the display brightness, the reference grayscale value and the grayscale data, and determines the compensation value of the brightness of the sub-pixel by calculating the difference between the target grayscale value and the reference grayscale data. This can improve the accuracy of the compensation value of the brightness of the sub-pixel, so that when the display panel is compensated based on the above compensation value, the display brightness of the display panel is uniform.

[0114] In some embodiments, encoding and compressing the differential data and the average value to obtain compressed data includes:

[0115] The differential data and the average value are encoded and compressed using the Huffman coding algorithm to obtain compressed data.

[0116] The Huffman coding algorithm can be used to perform binary coding on the differential data and the average value to obtain compressed data. At the same time, a corresponding relationship table of the differential data, the average value and the binary coding can be constructed.

[0117] The embodiment of the present application uses the Huffman coding algorithm to encode and compress the differential data and the average value to obtain compressed data, which can achieve lossless compression of the differential data and the average value, and at the same time reduce the time loss of encoding and compressing the differential data and the average value, thereby improving compression efficiency.

[0118] During the display process of the display panel, the compressed data is decoded and restored to obtain the brightness compensation value of the display panel, so as to improve the uniformity of the display brightness of the display panel.

[0119] In some embodiments, such as Figure 4 As shown, after encoding and compressing the differential data and the average value to obtain compressed data, the method further includes:

[0120] S410: Decode the compressed data according to a preset decoding algorithm to obtain differential data and an average value.

[0121] Here, based on a pre-constructed correspondence table of differential data, average value, and binary code, the differential data and the average value may be obtained by reading the correspondence table and decoding the binary code.

[0122] In some examples, the differential data, average value and binary coded correspondence table of the target grayscale may be selected, and the differential data and average value of the target grayscale may be obtained by performing an operation on the compressed data based on the correspondence table of the target grayscale.

[0123] S420: Determine a brightness compensation value of the display panel based on the differential data and the average value.

[0124] The sum of the differential data and the average value may be calculated to obtain a brightness compensation value of the display panel, where the brightness compensation value includes a compensation value of the brightness of the sub-pixel at the target grayscale.

[0125] S430: Performing brightness compensation on the display panel based on the brightness compensation value of the display panel to display the picture to be displayed.

[0126] The display panel may be subjected to brightness compensation based on the compensation value of the brightness of the sub-pixel at the target gray scale to display the picture to be displayed.

[0127] The embodiment of the present application decodes compressed data to obtain differential data and an average value, determines a brightness compensation value based on the differential data and the average value, and performs brightness compensation on the display panel using the brightness compensation value of the display panel, thereby enabling the display panel to have uniform brightness when displaying the image to be displayed, thereby improving the display effect.

[0128] Based on the same inventive concept, an embodiment of the present application also provides a data compression device.

[0129] In some embodiments, Figure 5 As shown, the embodiment of the present application provides a data compression device, including:

[0130] An acquisition module 501 is used to acquire a brightness compensation value of a display panel, where the brightness compensation value includes a compensation value of a brightness of a sub-pixel of the display panel at a target grayscale;

[0131] A calculation module 502, used to calculate an average value of the compensation value of the brightness of the sub-pixel;

[0132] The calculation module 502 is further used to calculate the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data;

[0133] The compression module 503 is used to encode and compress the differential data and the average value to obtain compressed data.

[0134] In some embodiments, the display panel brightness compensation value includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of brightness of M sub-pixels;

[0135] Computing module, specifically used for:

[0136] Calculating the average values ​​of the compensation values ​​of the brightness of the M sub-pixels in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​respectively, to obtain N average values, wherein each group of brightness compensation values ​​corresponds to one average value;

[0137] The difference between the compensation value of the brightness of each sub-pixel in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​is calculated respectively to obtain differential data.

[0138] In some embodiments, the acquisition module is further configured to:

[0139] Acquire the display brightness of the display panel, where the display brightness includes a first display brightness of a sub-pixel of the display panel at a target grayscale;

[0140] Determining a target grayscale value corresponding to a first display brightness of the sub-pixel based on a corresponding relationship among display brightness, a reference brightness value, and grayscale data;

[0141] Based on the target grayscale value and the reference grayscale data, a compensation value of the brightness of the sub-pixel is determined.

[0142] In some embodiments, determining a target grayscale value corresponding to a first display brightness of a sub-pixel based on a correspondence between display brightness, a reference brightness value, and grayscale data includes:

[0143] The target grayscale value corresponding to the first display brightness of the sub-pixel is determined based on the following expression:

[0144]

[0145] x n is the target grayscale value, Lv Gray is the first display brightness, Lv 255 is the reference grayscale data.

[0146] In some embodiments, the compression module is specifically configured to:

[0147] The differential data and the average value are encoded and compressed using the Huffman coding algorithm to obtain compressed data.

[0148] In some embodiments, the apparatus further comprises a decoding module, configured to:

[0149] Decoding the compressed data according to a preset decoding algorithm to obtain differential data and average value;

[0150] Determining a brightness compensation value of the display panel based on the differential data and the average value;

[0151] The brightness of the display panel is compensated based on the brightness compensation value of the display panel to display the picture to be displayed.

[0152] The device of the above embodiment is used to implement the corresponding data compression method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0153] Figure 6 A schematic diagram of the hardware structure of a display device provided in an embodiment of the application.

[0154] The display device 600 may include a processor 601 and a memory 602 storing computer program instructions.

[0155] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0156] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.

[0157] In certain embodiments, memory 602 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.

[0158] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.

[0159] The processor 601 implements any one of the data compression methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0160] In one example, the display device may further include a communication interface 603 and a bus 604. Figure 6 The processor 601, the memory 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.

[0161] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0162] Bus 604 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0163] The display device of the above embodiment is used to implement the corresponding data compression method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0164] In addition, in combination with the data compression method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data compression methods in the above embodiment is implemented.

[0165] In addition, in combination with the data compression method in the above embodiment, the embodiment of the present application can provide a computer program product to implement. When the computer program product instructions are executed by the processor of the display device, any one of the data compression methods in the above embodiment is implemented.

[0166] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0167] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0168] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or devices based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0169] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (device) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0170] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.

Claims

1. A data compression method, characterized in that: include: Acquire a brightness compensation value of the display panel, wherein the brightness compensation value includes a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale; Calculating an average value of the compensation values ​​of the brightness of the sub-pixels; Calculating the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data; The differential data and the average value are encoded and compressed to obtain compressed data.

2. The data compression method according to claim 1, characterized in that: The display panel brightness compensation value includes N groups of brightness compensation values, wherein each group of brightness compensation values ​​includes compensation values ​​of brightness of M sub-pixels; The calculating the average value of the compensation value of the brightness of the sub-pixel comprises: Calculating the average values ​​of the compensation values ​​of the brightness of the M sub-pixels in each group of brightness compensation values ​​in the N groups of brightness compensation values ​​respectively, to obtain N average values, wherein each group of brightness compensation values ​​corresponds to one average value; The step of respectively calculating the difference between the brightness compensation value of each sub-pixel and the average value to obtain differential data includes: The difference between the compensation value of the brightness of each sub-pixel in each group of brightness compensation values ​​in N groups of brightness compensation values ​​and the average value corresponding to each group of brightness compensation values ​​is calculated respectively to obtain the differential data.

3. The data compression method according to claim 1, characterized in that: Before obtaining the brightness compensation value of the display panel, the method further includes: Acquire a display brightness of the display panel, where the display brightness includes a first display brightness of a sub-pixel of the display panel at a target grayscale; Determining a target grayscale value corresponding to the first display brightness of the sub-pixel based on a corresponding relationship among display brightness, a reference brightness value, and grayscale data; Based on the target grayscale value and the reference grayscale data, a compensation value of the brightness of the sub-pixel is determined.

4. The data compression method according to claim 3, characterized in that: The determining, based on the correspondence between the display brightness, the reference brightness value and the grayscale data, a target grayscale value corresponding to the first display brightness of the sub-pixel comprises: Based on the following expression, a target grayscale value corresponding to the first display brightness of the sub-pixel is determined: x n is the target grayscale value, Lv Gray is the first display brightness, Lv 255 is the reference grayscale data.

5. The data compression method according to claim 1, characterized in that: The step of encoding and compressing the differential data and the average value to obtain compressed data includes: The differential data and the average value are coded and compressed using a Huffman coding algorithm to obtain the compressed data.

6. The data compression method according to claim 1, characterized in that: After encoding and compressing the differential data and the average value to obtain compressed data, the method further includes: Decoding the compressed data according to a preset decoding algorithm to obtain the differential data and the average value; Determining a brightness compensation value of the display panel based on the differential data and the average value; The display panel is subjected to brightness compensation based on the brightness compensation value of the display panel to display a picture to be displayed.

7. A data compression device, characterized in that: include: An acquisition module, used to acquire a brightness compensation value of the display panel, wherein the brightness compensation value includes a compensation value of the brightness of a sub-pixel of the display panel at a target grayscale; A calculation module, used for calculating an average value of the compensation value of the brightness of the sub-pixel; The calculation module is further used to calculate the difference between the compensation value of the brightness of each sub-pixel and the average value to obtain differential data; The compression module is used to encode and compress the differential data and the average value to obtain compressed data.

8. A display device, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the data compression method according to any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data compression method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is processed by a processor, the data compression method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Data processing method and device, computer equipment and storage medium

    CN119993049A

  • Data processing method and device, computer device, and storage medium

    CN119993049B