[go: up one dir, main page]

CN115206234A - Display panel compensation data coding method, display module and storage medium - Google Patents

Display panel compensation data coding method, display module and storage medium Download PDF

Info

Publication number
CN115206234A
CN115206234A CN202210854346.2A CN202210854346A CN115206234A CN 115206234 A CN115206234 A CN 115206234A CN 202210854346 A CN202210854346 A CN 202210854346A CN 115206234 A CN115206234 A CN 115206234A
Authority
CN
China
Prior art keywords
value
compensation
preset
encoding
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210854346.2A
Other languages
Chinese (zh)
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.)
Shanghai Aoxian Technology Co ltd
Original Assignee
Shanghai Aoxian 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 Shanghai Aoxian Technology Co ltd filed Critical Shanghai Aoxian Technology Co ltd
Priority to CN202210854346.2A priority Critical patent/CN115206234A/en
Publication of CN115206234A publication Critical patent/CN115206234A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0233Improving the luminance or brightness uniformity across the screen
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a display panel compensation data coding method, a display module and a storage medium, wherein the coding method comprises the following steps: acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data; calculating a fluctuation reference value of each pixel according to the original compensation value; calculating a compensation fluctuation value according to the fluctuation reference value; dividing each compensation fluctuation value by a quantization parameter to obtain a compensation quantization value of each pixel; and coding the compensation quantization value by using a preset coding model to obtain the coding result. By the technical scheme, the compensation data can be compressed and stored, and the problem that the data storage capacity is rapidly increased under the condition that the large pixel block is the basic block is solved.

Description

显示面板补偿数据的编码方法、显示模组及存储介质Coding method for compensation data of display panel, display module and storage medium

技术领域technical field

本申请涉及面板显示技术领域,具体涉及显示面板补偿数据的编码方法、显示模组及存储介质。The present application relates to the technical field of panel display, and in particular, to an encoding method for compensation data of a display panel, a display module and a storage medium.

背景技术Background technique

由于晶化工艺的局限性,在大面积玻璃基板上制作的LTPS TFT,不同位置的TFT常常在诸如阈值电压、迁移率等电学参数上具有非均匀性,这种非均匀性会转化为OLED显示器件的电流差异和亮度差异,并被人眼所感知,即Mura现象。Mur现象原意指亮暗不均,后扩展至面板上任何人眼可识别的颜色差异。针对AMOLED生产工艺的外部补偿系统是将存在Mura不良的显示屏通过先进的子像素级光学成像技术和软件算法进行显示补偿,以消除Mura纹(即Demura,相当于给显示屏做美颜),使得显示屏的显示质量达到面板厂出货规格要求,提高显示屏量产的良率。Due to the limitations of the crystallization process, LTPS TFTs fabricated on large-area glass substrates often have non-uniformity in electrical parameters such as threshold voltage, mobility and other TFTs at different positions, and this non-uniformity will translate into OLED displays. The current difference and brightness difference of the device are perceived by the human eye, that is, the Mura phenomenon. The Mur phenomenon originally meant uneven light and dark, and then extended to any color difference on the panel that the human eye can recognize. The external compensation system for the AMOLED production process is to compensate the display screen with poor Mura through advanced sub-pixel-level optical imaging technology and software algorithm to eliminate the Mura pattern (ie Demura, which is equivalent to beautifying the display screen), The display quality of the display screen can meet the shipping specifications of the panel factory, and the yield rate of the mass production of the display screen can be improved.

在构思及实现本申请过程中,发明人发现将含有较少像素的区域作为基本区块使用进行补偿数据压缩的时候,虽然压缩方式简单,但是会导致数据丢失比较大,当2*4的内部方差比较大时,会造成大量的数据丢失。使用含有较多像素的区域作为基本区块进行数据压缩的时候,会造成数据量急速增长,消耗大量的存储空间。In the process of conceiving and implementing this application, the inventor found that when using an area with fewer pixels as a basic block for compensation data compression, although the compression method is simple, it will result in relatively large data loss. When the variance is relatively large, it will cause a lot of data loss. When an area containing more pixels is used as a basic block for data compression, the amount of data will increase rapidly and a large amount of storage space will be consumed.

发明内容SUMMARY OF THE INVENTION

针对上述技术问题,本申请提供一种显示面板补偿数据的编码方法、显示模组及存储介质,以缓解存储数据量的问题。In view of the above technical problems, the present application provides an encoding method for compensation data of a display panel, a display module and a storage medium, so as to alleviate the problem of the amount of stored data.

本申请提供一种显示面板补偿数据的编码方法,具体地,所述编码方法包括:The present application provides an encoding method for compensation data of a display panel. Specifically, the encoding method includes:

在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值;In the display image of the preset display data, obtain the original compensation value of each pixel in the target pixel block;

根据所述原始补偿值计算每个像素的波动基准值;Calculate the fluctuation reference value of each pixel according to the original compensation value;

根据所述波动基准值计算补偿波动值;Calculate the compensation fluctuation value according to the fluctuation reference value;

将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值;Divide each compensation fluctuation value by the quantization parameter to obtain the compensation quantization value for each pixel;

使用预设编码模型对所述补偿量化值进行编码,以获取所述编码结果。The compensated quantization value is encoded using a preset encoding model to obtain the encoding result.

可选地,所述在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值的步骤之前包括:Optionally, in the display image of the preset display data, before the step of acquiring the original compensation value of each pixel in the target pixel block, the step includes:

按照预设的行列数划分显示面板为多个像素块。The display panel is divided into a plurality of pixel blocks according to a preset number of rows and columns.

可选地,所述在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值的步骤包括:Optionally, in the display image of the preset display data, the step of obtaining the original compensation value of each pixel in the target pixel block includes:

获取所述目标像素块内每个像素的显度值;Obtain the saliency value of each pixel in the target pixel block;

根据所述显度值,按照预设识别算法识别待补偿像素;According to the explicitness value, the pixel to be compensated is identified according to a preset identification algorithm;

根据所述待补偿像素和所述预设显示数据,按照预设补偿算法计算所述原始补偿值。According to the pixel to be compensated and the preset display data, the original compensation value is calculated according to a preset compensation algorithm.

可选地,所述显度值包括亮度值和/或色度值;和/或,所述预设显示数据包括灰阶画面或RGBW画面。Optionally, the explicitness value includes a luminance value and/or a chrominance value; and/or the preset display data includes a grayscale picture or an RGBW picture.

可选地,所述波动基准值包括补偿平均值或补偿中值。Optionally, the fluctuation reference value includes a compensated average value or a compensated median value.

可选地,所述根据所述原始补偿值计算每个像素的补偿平均值的步骤包括:Optionally, the step of calculating the average compensation value of each pixel according to the original compensation value includes:

将所述目标像素块内所有所述原始补偿值的和除以所述目标像素块行数和列数的积,以所得结果为所述补偿平均值。The sum of all the original compensation values in the target pixel block is divided by the product of the number of rows and columns of the target pixel block, and the result obtained is the compensation average value.

可选地,所述根据所述波动基准值计算补偿波动值的步骤包括:Optionally, the step of calculating the compensation fluctuation value according to the fluctuation reference value includes:

分别计算所述目标像素块内每个像素的原始补偿值与所述波动基准值的差作为所述补偿波动值。The difference between the original compensation value of each pixel in the target pixel block and the fluctuation reference value is calculated separately as the compensation fluctuation value.

可选地,所述将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值的步骤包括:Optionally, the step of dividing each compensation fluctuation value by the quantization parameter to obtain the compensation quantization value of each pixel includes:

按照预设规则在参数表中选取所述量化参数;Select the quantization parameter in the parameter table according to the preset rule;

分别以所述每个补偿波动值除以所述量化参数的商取整,作为所述补偿量化值。The quotient of dividing each compensation fluctuation value by the quantization parameter is rounded to be the compensation quantization value.

可选地,所述预设编码模型选自行程编码或零程编码;所述使用所述预设编码模型对所述补偿量化值进行编码,以获取所述编码结果的步骤包括:Optionally, the preset encoding model is selected from run-length encoding or zero-pass encoding; the step of using the preset encoding model to encode the compensation quantization value to obtain the encoding result includes:

分别使用所述行程编码和所述零程编码进行编码,以分别获取行程编码结果和零程编码结果;encoding using the run-length encoding and the zero-pass encoding respectively, to obtain the run-length encoding result and the zero-pass encoding result, respectively;

比较所述行程编码结果和所述零程编码结果的二进制数据量;comparing the binary data amount of the run-length encoding result and the zero-pass encoding result;

选择所述二进制数据量最小的编码结果所对应的编码模型为所述预设编码模型。The encoding model corresponding to the encoding result with the smallest amount of binary data is selected as the preset encoding model.

可选地,所述使用所述预设编码模型对所述补偿量化值进行编码,以获取所述编码结果的步骤之后包括以下至少一项:Optionally, the step of encoding the compensation quantization value by using the preset encoding model to obtain the encoding result includes at least one of the following:

将所述波动基准值按照第一数量比特位进行编码存储;将所述量化参数按照第二数量比特位编码存储;将所述预设编码模型按照第三数量比特位编码存储;将所述编码结果编码存储获得第四数量比特位的编码结果存储数据。encoding and storing the fluctuation reference value according to the first number of bits; encoding and storing the quantization parameter according to the second number of bits; encoding and storing the preset encoding model according to the third number of bits; encoding the encoding The result encoding and storage obtains the encoding result storage data of the fourth number of bits.

可选地,所述按照预设规则在参数表中选取所述量化参数的步骤包括:Optionally, the step of selecting the quantization parameter in the parameter table according to a preset rule includes:

S41:选择所述参数表中的最小参数对所述目标像素块进行编码;S41: Select the minimum parameter in the parameter table to encode the target pixel block;

S42:计算所述第一数量、第二数量、第三数量和第四数量的和作为对比值;S42: Calculate the sum of the first quantity, the second quantity, the third quantity and the fourth quantity as a comparison value;

S43:判断所述对比值是否大于所述预设数量。是则进入步骤S44,否则进入步骤S45;S43: Determine whether the comparison value is greater than the preset number. If yes, go to step S44, otherwise go to step S45;

S44:在所述对比值大于预设数量时,从所述参数表中排除所述最小参数,返回步骤S41;S44: when the comparison value is greater than the preset number, exclude the minimum parameter from the parameter table, and return to step S41;

S45:以所述最小参数为所述预设参数。S45: Use the minimum parameter as the preset parameter.

另一方面,本申请还提供一种显示模组,具体地,所述显示模组包括处理器和与所述处理器连接的存储器;On the other hand, the present application also provides a display module, specifically, the display module includes a processor and a memory connected to the processor;

所述存储器上存储有计算机程序;A computer program is stored on the memory;

所述处理器用于执行从所述存储器上读取的所述计算机程序,以实现如上述的编码方法。The processor is configured to execute the computer program read from the memory, so as to implement the encoding method as described above.

另一方面,本申请还提供一种存储介质,具体地,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的编码方法。On the other hand, the present application further provides a storage medium, in particular, a computer program is stored on the storage medium, and the computer program implements the above encoding method when executed by a processor.

如上所述,本申请的编码方法,所述编码方法包括步骤:在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值;根据所述原始补偿值计算每个像素的波动基准值;根据所述波动基准值计算补偿波动值;将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值;使用所述预设编码模型对所述补偿量化值进行编码,以获取所述编码结果。通过上述技术方案,可以实现补偿数据的压缩存储,解决在大像素块为基本区块的情况下的数据存储量急速增加的问题。As described above, the encoding method of the present application includes the steps of: in a display image of preset display data, acquiring the original compensation value of each pixel in the target pixel block; calculating each pixel according to the original compensation value Calculate the compensated fluctuation value according to the fluctuation benchmark value; divide each compensated fluctuation value by the quantization parameter to obtain the compensated quantized value of each pixel; use the preset coding model to calculate the compensated quantized value Encoding is performed to obtain the encoding result. Through the above technical solution, the compressed storage of the compensation data can be realized, and the problem of the rapid increase of the data storage amount when the large pixel block is the basic block can be solved.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. In order to illustrate the technical solutions of the embodiments of the present application more clearly, the accompanying drawings required for the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, without creative efforts On the premise, other drawings can also be obtained according to these drawings.

图1为本申请一实施例的编码方法流程图。FIG. 1 is a flowchart of an encoding method according to an embodiment of the present application.

图2为本申请一实施例的选择量化参数流程图。FIG. 2 is a flowchart of selecting a quantization parameter according to an embodiment of the present application.

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments. Specific embodiments of the present application have been shown by the above-mentioned drawings, and will be described in more detail hereinafter. These drawings and written descriptions are not intended to limit the scope of the concepts of the present application in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.

本申请首先提供一种显示面板补偿数据的编码方法,图1为本申请一实施例的编码方法流程图。The present application first provides a method for encoding compensation data of a display panel. FIG. 1 is a flowchart of an encoding method according to an embodiment of the present application.

请参考图1,编码方法包括:Please refer to Figure 1, the encoding method includes:

S10:在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值。S10: In the display image of the preset display data, obtain the original compensation value of each pixel in the target pixel block.

为了使显示效果稳定,需要采取补偿方式,有内部补偿和外部补偿两种方式。In order to make the display effect stable, a compensation method needs to be adopted. There are two methods: internal compensation and external compensation.

外部补偿根据数据抽取方法的不同又可以分为光学抽取式和电学抽取式。光学抽取式是指将背板点亮后通过光学CCD照相的方法将亮度信号抽取出来,电学抽取式是指通过驱动芯片的感应电路将TFT和OLED的电学信号抽取出来。External compensation can be divided into optical extraction and electrical extraction according to different data extraction methods. The optical extraction type means that the brightness signal is extracted by the method of taking an optical CCD after the backplane is lit. The electrical extraction type means that the electrical signals of the TFT and OLED are extracted through the induction circuit of the driving chip.

S20:根据原始补偿值计算每个像素的波动基准值。S20: Calculate the fluctuation reference value of each pixel according to the original compensation value.

在获取补偿数据之后,要将补偿数据存储在可读存储单元中,以供显示组件在工作时执行补偿工作。After the compensation data is acquired, the compensation data is to be stored in a readable storage unit for the display component to perform compensation work during operation.

示例性地,在AMOLED Demura的补偿方式中,将生成的补偿数据进行有效的压缩,以便于存储;将压缩过的数据保存在Flash中;当Demura功能开启时,从Flash提取数据到Driver IC内部SRAM中,IC内部将数据解压得到完整的补偿数据。Exemplarily, in the compensation mode of AMOLED Demura, the generated compensation data is effectively compressed to facilitate storage; the compressed data is stored in the Flash; when the Demura function is enabled, the data is extracted from the Flash to the driver IC. In the SRAM, the IC decompresses the data to obtain complete compensation data.

可选地,在本申请实施例提供的编码方法中,在对补偿数据进行压缩时,以补偿平均值为波动基准值进行特征量化。在其他实施方式中,也可以以补偿数据的中值为波动基准进行特征量化。Optionally, in the encoding method provided by the embodiment of the present application, when compressing the compensation data, feature quantization is performed using the compensation average value as the fluctuation reference value. In other embodiments, feature quantification may also be performed with the median value of the compensation data as the fluctuation reference.

S30:根据波动基准值计算补偿波动值。S30: Calculate the compensation fluctuation value according to the fluctuation reference value.

示例性地,可以计算每个像素的补偿值与波动基准值的差作为补偿波动值。Exemplarily, the difference between the compensation value of each pixel and the fluctuation reference value may be calculated as the compensation fluctuation value.

S40:将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值。S40: Divide each compensation fluctuation value by the quantization parameter to obtain the compensation quantization value of each pixel.

量化参数可以根据需要压缩的程度进行适当选用。The quantization parameters can be appropriately selected according to the degree of compression required.

S50:使用预设编码模型对补偿量化值进行编码,以获取编码结果。S50: Use a preset encoding model to encode the compensation quantization value to obtain an encoding result.

示例性地,对于目标像素块中有序排列的多个像素,获取对应的补偿量化值之后可以根据编码后的数据量,选用零程编码或行程编码进行全部补偿量化值的编码。在显示组件工作时,再使用相同的编码模型对压缩的补偿量化值进行解码补偿。Exemplarily, for a plurality of pixels arranged in order in the target pixel block, after obtaining the corresponding compensation quantization values, zero-pass encoding or run-length encoding may be used to encode all the compensation quantization values according to the amount of encoded data. When the display component works, the same encoding model is used to decode and compensate the compressed compensated quantized value.

可选地,在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值的步骤之前包括:Optionally, in the display image of the preset display data, before the step of acquiring the original compensation value of each pixel in the target pixel block includes:

按照预设的行列数划分显示面板为多个像素块。The display panel is divided into a plurality of pixel blocks according to a preset number of rows and columns.

对于每个像素块,可以分别作为一个独立的目标像素块进行编码存储。For each pixel block, it can be encoded and stored as an independent target pixel block.

可选地,在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值的步骤包括:Optionally, in the display image of the preset display data, the step of acquiring the original compensation value of each pixel in the target pixel block includes:

获取目标像素块内每个像素的显度值;根据显度值,按照预设识别算法识别待补偿像素;根据待补偿像素和预设显示数据,按照预设补偿算法计算原始补偿值。Obtain the saliency value of each pixel in the target pixel block; identify the pixel to be compensated according to the preset recognition algorithm according to the saliency value; calculate the original compensation value according to the preset compensation algorithm according to the pixel to be compensated and the preset display data.

可选地,显度值包括亮度值和/或色度值;和/或,预设显示数据包括灰阶画面或RGBW画面。Optionally, the apparent value includes a luminance value and/or a chrominance value; and/or, the preset display data includes a grayscale picture or an RGBW picture.

示例性地,De-Mura的一般步骤:Exemplarily, the general steps of De-Mura:

a.Drive IC点亮面板(TV/mobile/Tablet),并显示数个画面(一般是灰阶或者RGB)。a. Drive IC lights up the panel (TV/mobile/Tablet) and displays several pictures (usually grayscale or RGB).

b.使用高分辨率和高精度的CCD照相机拍摄上述画面。b. Use a high-resolution and high-precision CCD camera to take the above picture.

c.根据相机采集数据分析pixel颜色分布特征,并根据相关算法识别出Mura。c. Analyze the pixel color distribution characteristics according to the data collected by the camera, and identify Mura according to the relevant algorithm.

d.根据mura数据及相应的Demura补偿算法产生Demura数据。d. Generate Demura data according to the mura data and the corresponding Demura compensation algorithm.

e.将Demura数据烧录到Flash ROM中,重新拍摄补偿后画面,确认Mura已消除。e. Burn the Demura data into the Flash ROM, re-shoot the compensated screen, and confirm that the Mura has been eliminated.

示例性地,AMOLED Demura包括如下详细步骤:Exemplarily, AMOLED demura includes the following detailed steps:

1.采图:将AMOLED屏体点亮,导入不同画面,利用补偿设备上的CCD相机采图,并自动识别子像素排列关系;1. Take pictures: Light up the AMOLED screen, import different pictures, use the CCD camera on the compensation device to take pictures, and automatically identify the sub-pixel arrangement relationship;

点亮面板后需要被检测的画面根据不同面板厂的要求,一般是不同的,常见的有32、64、96、160、192、224灰阶的RGB图像,共18张图。The images that need to be detected after lighting the panel are generally different according to the requirements of different panel manufacturers. Commonly there are 32, 64, 96, 160, 192, 224 grayscale RGB images, a total of 18 images.

有些面板厂的Demura只对亮度差异进行补偿,不对色彩差异进行补偿,这种Luminance Demura一般只需要检测灰阶画面,而且由于不同灰阶时呈现的Mura不同,一般会检测高中低灰阶的Mura,最后Demura数据平均,当然具体的设定不同面板厂会根据自己的实际需求进行选择。有些面板厂进行的是比较全面的Color Demura,即不仅对亮度同时对色度差异也进行补偿。此类型的color Demura的检测画面,有些采用灰阶画面,有些采用RGBW画面,不同面板厂根据技术和需求选择不同。The Demura of some panel manufacturers only compensates the difference in brightness, but not the difference in color. This kind of Luminance Demura generally only needs to detect grayscale images, and because the Mura presented in different grayscales is different, it generally detects the Mura of high, medium and low grayscales. , and finally the Demura data is averaged. Of course, the specific settings of different panel manufacturers will be selected according to their actual needs. Some panel makers carry out a more comprehensive Color Demura, that is, not only the brightness but also the chromaticity difference is compensated. The detection images of this type of color Demura, some use grayscale images, some use RGBW images, different panel manufacturers choose different according to technology and needs.

2.采集的图片导入一台高性能PC(PC机上已经安装Demura工具软件)。2. Import the collected pictures into a high-performance PC (the Demura tool software has been installed on the PC).

3.利用PC上的Demura工具软件提取原始数据、计算Mura的区域、Mura边界侦测并生成补偿数据。3. Use the Demura tool software on the PC to extract the original data, calculate the area of Mura, detect the boundary of Mura and generate compensation data.

4.当Demura功能开启时,提取完整的补偿数据,并将补偿数据与应用端送来的原始显示数据叠加,生成新的数据传送到Panel进行显示,确认Demura补偿效果。4. When the Demura function is turned on, extract the complete compensation data, superimpose the compensation data with the original display data sent by the application, generate new data and transmit it to the Panel for display to confirm the Demura compensation effect.

可选地,波动基准值包括补偿平均值或补偿中值。Optionally, the fluctuation reference value includes a compensated mean value or a compensated median value.

目标像素块内所有像素的补偿值的均值或中值都能够相对准确地反映目标像素块的色度水平。The mean or median value of the compensation values of all the pixels in the target pixel block can relatively accurately reflect the chrominance level of the target pixel block.

可选地,根据原始补偿值计算每个像素的补偿平均值的步骤包括:Optionally, the step of calculating the average compensation value of each pixel according to the original compensation value includes:

将目标像素块内所有原始补偿值的和除以目标像素块行数和列数的积,以所得结果为补偿平均值。Divide the sum of all original compensation values in the target pixel block by the product of the number of rows and columns of the target pixel block, and take the result as the compensation average.

示例性地,在一个2×4的像素块内的八个像素的原始补偿值分别为:32、31、32、32、32、31、32、34,那么这个像素块的补偿平均值为:(32+31+32+32+32+31+32+34)÷8=32。在其他规格的像素块内可以参照计算。Exemplarily, the original compensation values of eight pixels in a 2×4 pixel block are: 32, 31, 32, 32, 32, 31, 32, and 34, respectively, then the average compensation value of this pixel block is: (32+31+32+32+32+31+32+34)÷8=32. In other specifications of the pixel block can refer to the calculation.

可选地,根据波动基准值计算补偿波动值的步骤包括:Optionally, the step of calculating the compensation fluctuation value according to the fluctuation reference value includes:

分别计算目标像素块内每个像素的原始补偿值与波动基准值的差作为补偿波动值。Calculate the difference between the original compensation value of each pixel in the target pixel block and the fluctuation reference value as the compensation fluctuation value.

示例性地,在一个目标的像素块内的八个像素的原始补偿值分别为:32、31、32、32、32、31、32、34,这个像素块的补偿平均值为32,则补偿波动值分别为0、-1、0、0、0、-1、0、2。Exemplarily, the original compensation values of eight pixels in a pixel block of a target are: 32, 31, 32, 32, 32, 31, 32, 34, and the compensation average value of this pixel block is 32, then the compensation The volatility values are 0, -1, 0, 0, 0, -1, 0, 2, respectively.

可选地,将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值的步骤包括:Optionally, the step of dividing each compensation fluctuation value by the quantization parameter to obtain the compensation quantization value of each pixel includes:

按照预设规则在参数表中选取量化参数;分别以每个补偿波动值除以量化参数的商取整,作为补偿量化值。The quantization parameter is selected from the parameter table according to the preset rule; the quotient of each compensation fluctuation value divided by the quantization parameter is rounded to the whole, as the compensation quantization value.

示例性地,考虑到存储位数,量化参数可以选自0、2、4、8等作为量化参数,以使每个补偿波动值除以量化参数的商取整后,所有的编码值都落在-4、-3、-2、-1、0、1、2、3、4的范围内。示例性地,当选择量化参数为2,补偿波动值分别为0、-1、0、0、0、-1、0、2的量化结果分别为:0、0、0、0、0、0、0、1。可选地,可以选择多次量化,将相对低波动的数据量化为0,保留相对高波动的数据进行量化存储。Exemplarily, considering the number of storage bits, the quantization parameter can be selected from 0, 2, 4, 8, etc. as the quantization parameter, so that after each compensation fluctuation value is divided by the quotient of the quantization parameter and rounded, all the coded values fall within the range. in the range -4, -3, -2, -1, 0, 1, 2, 3, 4. Exemplarily, when the quantization parameter is selected as 2, the quantization results with the compensation fluctuation values of 0, -1, 0, 0, 0, -1, 0, and 2 are respectively: 0, 0, 0, 0, 0, 0 , 0, 1. Optionally, multiple times of quantization can be selected, data with relatively low volatility is quantized to 0, and data with relatively high volatility is reserved for quantitative storage.

可选地,预设编码模型选自行程编码或零程编码;使用预设编码模型对补偿量化值进行编码,以获取编码结果的步骤包括:Optionally, the preset coding model is selected from run-length coding or zero-pass coding; the step of using the preset coding model to encode the compensation quantization value to obtain the coding result includes:

分别使用行程编码和零程编码进行编码,以分别获取行程编码结果和零程编码结果;比较行程编码结果和零程编码结果的二进制数据量;选择二进制数据量最小的编码结果所对应的编码模型为预设编码模型。Use run-length encoding and zero-pass encoding respectively for encoding to obtain run-length encoding results and zero-pass encoding results respectively; compare the binary data amounts of the run-length encoding results and zero-pass encoding results; select the encoding model corresponding to the encoding result with the smallest amount of binary data is the default encoding model.

示例性地,基于行程编码和零程编码各自的编码特性,当数据中存在几个异常大的补偿波动值时,而其他数值都比较小且平整,可以仅保留较大的数值,此时采用零程编码可以达到减少编码结果数据量的目的。当补偿波动值数据比较平缓且集中时,可以采用行程编码以达到减少编码结果数据量的目的。可选地,当数据波动较大,出现一些高频区域时,可以选择将低频数据量化为0。在其他实施例中,也可以比较两种编码方式的误差,选择误差小的编码方式进行编码。Exemplarily, based on the respective coding characteristics of run-length coding and zero-run coding, when there are several abnormally large compensation fluctuation values in the data, while other values are relatively small and flat, only larger values can be retained, and at this time, the Zero-pass encoding can achieve the purpose of reducing the amount of data in the encoding result. When the compensation fluctuation value data is relatively flat and concentrated, run-length coding can be used to reduce the data amount of the coding result. Optionally, when the data fluctuates greatly and some high-frequency areas appear, you can choose to quantify the low-frequency data as 0. In other embodiments, the errors of the two encoding modes may also be compared, and the encoding mode with the smaller error may be selected for encoding.

可选地,在编码模型的选择上,也可以分别编码后反向解码得到补偿值的重构值,再与原始补偿数据进行比较,此时可以选择误差较小的编码方式作为一个当前目标像素块的编码方式。Optionally, in the selection of the encoding model, the reconstructed value of the compensation value can be obtained by reverse decoding after encoding, and then compared with the original compensation data. At this time, the encoding method with a smaller error can be selected as a current target pixel. How the block is encoded.

可选地,使用预设编码模型对补偿量化值进行编码,以获取编码结果的步骤之后包括:Optionally, the step of encoding the compensation quantization value using a preset encoding model to obtain an encoding result includes:

将波动基准值按照第一数量比特位进行编码存储。The fluctuation reference value is encoded and stored according to the first number of bits.

示例性地,在补偿平均值为32时,可以按照6bit的数据段对目标像素块的波动基准值进行存储。Exemplarily, when the compensation average value is 32, the fluctuation reference value of the target pixel block may be stored according to a 6-bit data segment.

可选地,使用预设编码模型对补偿量化值进行编码,以获取编码结果的步骤之后包括:Optionally, the step of encoding the compensation quantization value using a preset encoding model to obtain an encoding result includes:

将量化参数按照第二数量比特位编码存储。The quantization parameter is stored encoded according to the second number of bits.

示例性地,量化参数可以按照2bit的数据段分别代表0、2、4、8选择范围内的4个数值。Exemplarily, the quantization parameter may represent 4 values within the selection range of 0, 2, 4, and 8, respectively, according to a 2-bit data segment.

可选地,使用预设编码模型对补偿量化值进行编码,以获取编码结果的步骤之后包括:Optionally, the step of encoding the compensation quantization value using a preset encoding model to obtain an encoding result includes:

将预设编码模型按照第三数量比特位编码存储。The preset encoding model is encoded and stored according to the third number of bits.

示例性地,预设编码模型可以按照1bit的数据段分别代表行程编码或零程编码这两种编码模型。Exemplarily, the preset encoding model may represent two encoding models of run-length encoding or zero-pass encoding, respectively, according to a 1-bit data segment.

可选地,使用预设编码模型对补偿量化值进行编码,以获取编码结果的步骤之后包括:Optionally, the step of encoding the compensation quantization value using a preset encoding model to obtain an encoding result includes:

将编码结果编码存储获得第四数量比特位的编码结果存储数据。The encoding result is encoded and stored to obtain encoding result storage data of the fourth number of bits.

示例性地,编码结果可以按照分配给目标像素块的总存储空间减去上述几个数据段所占用空间后的剩余空间对编码结果进行存储。Exemplarily, the encoding result may be stored according to the remaining space after subtracting the space occupied by the above-mentioned several data segments from the total storage space allocated to the target pixel block.

图2为本申请一实施例的选择量化参数流程图。FIG. 2 is a flowchart of selecting a quantization parameter according to an embodiment of the present application.

请参考图2,可选地,按照预设规则在参数表中选取量化参数的步骤包括:Please refer to Fig. 2, optionally, the step of selecting quantization parameters in the parameter table according to preset rules includes:

S41:选择参数表中的最小参数对目标像素块进行编码;S41: Select the minimum parameter in the parameter table to encode the target pixel block;

S42:计算第一数量、第二数量、第三数量和第四数量的和作为对比值;S42: Calculate the sum of the first quantity, the second quantity, the third quantity and the fourth quantity as a comparison value;

S43:判断对比值是否大于预设数量。是则进入步骤S44,否则进入步骤S45;S43: Determine whether the contrast value is greater than the preset number. If yes, go to step S44, otherwise go to step S45;

S44:在对比值大于预设数量时,从参数表中排除最小参数,返回步骤S41;S44: when the comparison value is greater than the preset number, exclude the minimum parameter from the parameter table, and return to step S41;

S45:以最小参数为预设参数。S45: Take the minimum parameter as the preset parameter.

可以选择多次量化,将相对低波动的数据量化为0,保留相对高波动的数据进行量化存储。示例性地,当第一次量化后的存储数据量大于64bit时,选择更大的量化参数进行第二次量化,以在限定的64bit存储空间内能够存储目标像素块压缩编码后的补偿数据。You can choose to quantify multiple times, quantify data with relatively low volatility to 0, and retain data with relatively high volatility for quantitative storage. Exemplarily, when the amount of stored data after the first quantization is greater than 64 bits, a larger quantization parameter is selected for the second quantization, so that the compression-encoded compensation data of the target pixel block can be stored in the limited 64-bit storage space.

另一方面,本申请还提供一种显示模组。具体地,显示模组包括处理器和与处理器连接的存储器;存储器上存储有计算机程序;处理器用于执行从存储器上读取的计算机程序,以实现如上述的编码方法。On the other hand, the present application also provides a display module. Specifically, the display module includes a processor and a memory connected to the processor; a computer program is stored on the memory; the processor is used for executing the computer program read from the memory, so as to implement the above encoding method.

示例性地,在一个显示模组的4×8像素块内,每个像素8bit,原始补偿数据的大小是4×8×8共计256bit。当分配的补偿数据存储空间为64bit时,需要将编码数据压缩至64bit以内。目标像素块内每个像素的原始补偿值如表1所示。Exemplarily, in a 4×8 pixel block of a display module, each pixel is 8 bits, and the size of the original compensation data is 4×8×8, a total of 256 bits. When the allocated compensation data storage space is 64 bits, the encoded data needs to be compressed within 64 bits. The original compensation value of each pixel in the target pixel block is shown in Table 1.

3232 3232 3232 3232 3232 3232 3333 3333 3232 3232 3232 3232 3232 3232 3232 3333 3232 3333 3232 3232 3131 3232 3232 3434 3333 3333 3232 3232 3131 3232 3434 3434

表1red32目标像素块补偿值Table 1red32 target pixel block compensation value

由表1的原始补偿值可以计算出补偿平均值为32。将目标像素块内的每个像素值统一减去32,可得表2波动值数据。From the original compensation value in Table 1, the average compensation value can be calculated as 32. The fluctuation value data in Table 2 can be obtained by uniformly subtracting 32 from each pixel value in the target pixel block.

00 00 00 00 00 00 11 11 00 00 00 00 00 00 00 11 00 11 00 00 -1-1 00 00 22 11 11 00 00 -1-1 00 22 22

表2表1数据统一减去补偿平均值Table 2 Table 1 data uniform minus compensation average

设置量化参数集合Qt={0,2,4,8,16,32,64,128},以便用3bit的存储空间来存储所选择的量化参数。将每一个像素的波动值除以选择的量化参数值,取商取整保留,以使所有的量化数据都在-4至4之间的整数范围内。示例性地,如果向上取整,则量化数据集合在{-3,-2,-1,0,1,2,3,4}范围内;如果向下取整,则量化数据集合在{-4,-3,-2,-1,0,1,2,3}范围内,从而均可以采用3bit进行编码表达。对表2的波动值数据进行量化,可以得到表3的量化结果。Set the quantization parameter set Qt={0, 2, 4, 8, 16, 32, 64, 128}, so that the selected quantization parameter is stored in a 3-bit storage space. The fluctuation value of each pixel is divided by the chosen quantization parameter value, and the quotient is rounded and reserved so that all quantized data are in the integer range between -4 and 4. Exemplarily, if rounded up, the quantified data set is in the range of {-3,-2,-1,0,1,2,3,4}; if rounded down, the quantified data set is in {-3,-2,-1,0,1,2,3,4} 4, -3, -2, -1,0, 1,2,3} range, so that 3bit can be used for encoding and expression. By quantifying the fluctuation value data in Table 2, the quantification results in Table 3 can be obtained.

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 11 11

表3对表2结果做量化(移动2位取整)Table 3 quantizes the results of Table 2 (move 2 bits to round)

对于量化结果,可以采用行程编码与零程编码进行压缩,当数据波动较大时,即出现高频区域,将低频数据量化为0。For the quantization results, run-length coding and zero-pass coding can be used for compression. When the data fluctuates greatly, a high-frequency region appears, and the low-frequency data is quantized to 0.

当数据出现几个异常大的值,其他数值比较小且平整时,可以保留较大的数值,采用零程编码;当数据比较平缓且集中时,可以采用行程编码。When there are several abnormally large values in the data, and other values are relatively small and flat, larger values can be reserved and zero-pass encoding is used; when the data is relatively flat and concentrated, run-length encoding can be used.

解码后得到重构值,与原始值做比较,选择误差较小的编码模型作为一个当前目标像素块的编码模型。选定编码模型以后,可以用1bit的存储字段来表达。After decoding, the reconstructed value is obtained, compared with the original value, and the encoding model with smaller error is selected as the encoding model of the current target pixel block. After the encoding model is selected, it can be expressed with a 1-bit storage field.

根据表3的量化结果,进行行程编码和零程编码,编码结果如表4所示。According to the quantization results in Table 3, run-length encoding and zero-pass encoding are performed, and the encoding results are shown in Table 4.

Figure BDA0003746740010000091
Figure BDA0003746740010000091

Figure BDA0003746740010000101
Figure BDA0003746740010000101

表4对表2和表3数据进行行程编码和零程编码Table 4 performs run-length coding and zero-run coding on the data in Table 2 and Table 3

示例性地,假设上述目标像素块将存储在64bit的存储空间,由于原始误差补偿数据在32左右附近,那么可以先计算其误差补偿平均值,用5bit或6bit存储表达。量化参数用2bit存储表达0、2、4、8四个可选参数。用1bit存储表达选用的行程编码或零程编码的编码模式。剩余的55bit,用于编码存储最终量化值。Exemplarily, it is assumed that the above-mentioned target pixel block will be stored in a 64-bit storage space. Since the original error compensation data is around 32, the average value of its error compensation can be calculated first and expressed in 5-bit or 6-bit storage. The quantization parameter is stored in 2 bits to express four optional parameters of 0, 2, 4, and 8. Use 1bit to store the encoding mode of the selected run-length encoding or zero-pass encoding. The remaining 55 bits are used to encode and store the final quantized value.

请继续参考表4,在按照行程编码方式存储量化数据时,选择量化参数2进行量化后的结果有4个量化行,每行的量化有效数值用3bit表示,每行的个数值用5bit表示,则只需(3bit+5bit)×4即32bit即可表达上述量化结果。在按照零程编码方式存储量化数据时,选择量化参数2进行量化后的结果有3个量化行,每行的量化有效数值用3bit表示,每行的有效数字前0的个数数值用5bit表示,则只需(3bit+5bit)×3即24bit即可表达上述量化结果。因此,在上述实施例中,使用零程编码能够实现更大的压缩比例,所有存储数据仅需要8+24bit共32bit存储空间。在其他实施例中,也可以比较两种编码方式的误差,选择误差小的编码方式进行编码。Please continue to refer to Table 4. When the quantized data is stored according to the run-length encoding method, the result after quantization by selecting quantization parameter 2 has 4 quantization lines. The quantized effective value of each line is represented by 3 bits, and the number of values in each line is represented by 5 bits. Then, only (3bit+5bit)×4, that is, 32bit, can express the above quantization result. When the quantized data is stored according to the zero-pass encoding method, the result after quantization by selecting quantization parameter 2 has 3 quantization lines, the quantized effective value of each line is represented by 3 bits, and the number of 0s before the significant digits of each line is represented by 5 bits. , then only (3bit+5bit)×3, that is, 24bit, can express the above quantization result. Therefore, in the above embodiment, the use of zero-pass encoding can achieve a larger compression ratio, and all stored data only needs a total of 32 bits of storage space of 8+24 bits. In other embodiments, the errors of the two encoding modes may also be compared, and the encoding mode with the smaller error may be selected for encoding.

可选地,当量化值编码数据超过55bit时,选择提高量化参数,重新编码,直到目标像素块的最终量化值能够使用55bit存储表达。在另一实施例中,也可以不存储误差补偿平均值,在补偿时使用当前目标像素块所显示图像的平均目标显度值作为误差补偿平均值。Optionally, when the quantized value encoded data exceeds 55 bits, choose to increase the quantization parameter, and re-encode until the final quantized value of the target pixel block can be expressed using 55 bits for storage. In another embodiment, the average value of error compensation may not be stored, and the average target luminance value of the image displayed by the current target pixel block may be used as the average value of error compensation during compensation.

在显示模组工作时,从上述64bit空间内读取存储的压缩编码数据,进行反向解压缩。示例性地,使用量化编码数据和存储字段指定的编码模式还原上述表4中的量化结果。然后根据表4中的量化结果,反推表3中的每个像素对应的量化数据。再使用每个像素对应的量化数据与存储字段指定的量化参数的乘积,加上存储的误差补偿平均值,就可以重构近似与表1的原始补偿值,从而显示模组可以在目标像素块的工作中使用重构的原始补偿值对每一个像素进行色度补偿。在另一实施例中,显示模组在获取每个像素对应的量化数据与存储字段指定的量化参数的乘积后,获取实时显示图像的平均目标色度值,以目标色度值为基础,对目标像素块进行色度补偿。When the display module is working, the compressed and encoded data stored in the above 64bit space is read and decompressed in reverse. Exemplarily, the quantization results in Table 4 above are restored using the quantized encoded data and the encoding mode specified by the storage field. Then, according to the quantization results in Table 4, the quantization data corresponding to each pixel in Table 3 is inferred. Then, using the product of the quantization data corresponding to each pixel and the quantization parameter specified by the storage field, plus the stored error compensation average value, the original compensation value approximated to Table 1 can be reconstructed, so that the display module can be used in the target pixel block. In our work, we use the reconstructed original compensation value to perform chrominance compensation for each pixel. In another embodiment, after obtaining the product of the quantization data corresponding to each pixel and the quantization parameter specified by the storage field, the display module obtains the average target chromaticity value of the real-time display image, and is based on the target chromaticity value. The target pixel block performs chroma compensation.

另一方面,本申请还提供一种存储介质,具体地,存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述的编码方法。On the other hand, the present application also provides a storage medium, in particular, a computer program is stored on the storage medium, and the computer program implements the above encoding method when executed by a processor.

示例性地,对于输入是原始的4*8大小的像素区,共32个原始数据,每个数据8bit。先计算出32个数据的均值记为avg,原始数据减去均值记为blockDiff(4*8个),假设原始数据比较平整(称为低频数据,即数据间变化比较小)时,那么blockDiff数据集中在0左右范围内,如上述图表所示,原始数据的均值为32,原始数据减去32后,得到的数据在[-1,2]之间。Exemplarily, for the original pixel area of 4*8 size, there are 32 original data in total, and each data is 8 bits. First calculate the mean value of 32 data and record it as avg, and subtract the mean value from the original data and record it as blockDiff (4*8). Assuming that the original data is relatively flat (called low-frequency data, that is, the change between data is relatively small), then blockDiff data It is concentrated in the range around 0. As shown in the above chart, the mean of the original data is 32. After subtracting 32 from the original data, the obtained data is between [-1, 2].

如果这个时候使用行程编码,即我们从左到右,从上到下来数,有6个0,记为[0,6](计数1);2个1,记为[1,2](计数2);依次类推,假设数值在[-4,4]之间,那么数字可以用3bit来表示,个数最大是32个,可以用5bit表示,计每个计数,我们都可以使用8bit来表示。如上述图表中的行程编码,有15个计数,那么一共需要15*8bit,原始数据是4*8*8=256bit,那么基本实现了二分之一压缩。这个时候假设想实现四分之一压缩,那么可以选择量化因子2,将blockDiff值除以2并取整,得到行程编码下的量化2的结果,那么量化2步骤后仅有4个计数行,此时就可以使用4*8=32bit来压缩。If run-length coding is used at this time, that is, we count from left to right, top to bottom, there are 6 0s, recorded as [0,6] (count 1); 2 1s, recorded as [1,2] (count 2); And so on, assuming the value is between [-4, 4], then the number can be represented by 3bit, the maximum number is 32, which can be represented by 5bit, for each count, we can use 8bit to represent . For example, the run-length encoding in the above chart has 15 counts, so a total of 15*8bits are required, and the original data is 4*8*8=256bits, so half of the compression is basically realized. At this time, if you want to achieve quarter compression, you can choose the quantization factor 2, divide the blockDiff value by 2 and round it up to get the result of quantization 2 under run-length coding, then there are only 4 count lines after the quantization 2 step, At this point, 4*8=32bit can be used for compression.

如果选择零程编码,当数据波动比较大时,尽可能保留数据与均值波动差异较大的数据,如图像的边缘信息,属于高频信息,但是能够体现信息的就是数据波动较大,这个时候我们需要保留这些信息就可以了。和均值比较接近的数据,通过量化的方式舍弃掉。零程编码,主要用来统计0的个数,当高频区域,量化因子大时,0的个数就会比较多,进而非0的值,就是需要保留的高频信息,量化因子的选择同行程编码,可以参照上述实施例。If you choose zero-pass encoding, when the data fluctuation is relatively large, try to retain the data with a large difference between the data and the mean fluctuation, such as the edge information of the image, which belongs to high-frequency information, but the information that can reflect the data is the large fluctuation. At this time We need to keep this information on it. The data that are close to the mean are discarded through quantitative methods. Zero-pass coding is mainly used to count the number of 0s. When the quantization factor is large in the high-frequency region, the number of 0s will be larger, and the non-zero value is the high-frequency information that needs to be retained. The choice of quantization factor For the same-run encoding, reference may be made to the above-mentioned embodiments.

在编码方式的选择上,可以根据最终压缩量或误差大小进行选择,例如选择压缩以后数据量最少的编码方式,也可以选择编码误差最小的编码方式。编码完成以后,那么这个时候还需要用8bit存储均值,用2或者3bit来表示量化因子,用5bit或6bit存储表达均值avg,用1bit表达选择的编码方式,那么就实现了较高的压缩比。In the selection of the encoding method, the selection can be made according to the final compression amount or the size of the error. For example, the encoding method with the least amount of data after compression can be selected, or the encoding method with the smallest encoding error can be selected. After the encoding is completed, it is necessary to use 8bit to store the mean value, use 2 or 3bit to represent the quantization factor, use 5bit or 6bit to store the mean value avg, and use 1bit to express the selected encoding method, then a higher compression ratio is achieved.

上述实施例在解码的时候,需要将对应的数值乘以2,然后加上均值,按照编码方式的逆向方式,就可以恢复原数据。如果数据抖动比较大,那么就需要量化因子更大,才能将数据压到如二分之一或者四分之一。In the above embodiment, when decoding, the corresponding value needs to be multiplied by 2, and then the mean value needs to be added, and the original data can be recovered according to the reverse of the encoding method. If the data jitter is relatively large, then a larger quantization factor is required to compress the data to, for example, one-half or one-quarter.

如上,本申请的编码方法,编码方法包括步骤:在预设显示数据的显示图像中,获取目标像素块内每个像素的原始补偿值;根据原始补偿值计算每个像素的波动基准值;根据波动基准值计算补偿波动值;将每个补偿波动值除以量化参数,以获取每个像素的补偿量化值;使用预设编码模型对补偿量化值进行编码,以获取编码结果。通过上述技术方案,可以实现补偿数据的压缩存储,解决在大像素块为基本区块的情况下的数据存储量急速增加的问题。As above, the encoding method of the present application includes the steps of: in the display image of the preset display data, obtaining the original compensation value of each pixel in the target pixel block; calculating the fluctuation reference value of each pixel according to the original compensation value; Calculate the compensated fluctuation value from the fluctuation reference value; divide each compensated fluctuation value by the quantization parameter to obtain the compensated quantized value of each pixel; use the preset encoding model to encode the compensated quantized value to obtain the encoding result. Through the above technical solution, the compressed storage of the compensation data can be realized, and the problem of the rapid increase of the data storage amount when the large pixel block is the basic block can be solved.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element, and further, different implementations of the present application Components, features and elements with the same names in the examples may have the same meaning or may have different meanings, and their specific meanings need to be determined by their explanations in this specific embodiment or further combined with the context in this specific embodiment.

应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of this document. The word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining", depending on the context. Also, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context dictates otherwise.

需要说明的是,在本文中,采用了诸如S10、S20等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S20后执行S10等,但这些均应在本申请的保护范围之内。It should be noted that, in this article, step codes such as S10 and S20 are used, the purpose of which is to express the corresponding content more clearly and briefly, and does not constitute a substantial restriction on the sequence. Those skilled in the art may S20 will be executed first and then S10, etc., but these should all fall within the protection scope of this application.

在本申请提供的智能终端和计算机可读存储介质的实施例中,可以包含任一上述XX方法实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不再做赘述。The embodiments of the smart terminal and the computer-readable storage medium provided in this application may include all the technical features of any of the above-mentioned XX method embodiments, and the expansion and interpretation content of the description are basically the same as those of the above-mentioned method embodiments. To repeat.

本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。Embodiments of the present application also provide a computer program product, where the computer program product includes computer program code, when the computer program code runs on a computer, the computer can execute the methods in the various possible implementation manners above.

本申请实施例还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。An embodiment of the present application further provides a chip, including a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device with the chip installed executes the various possible implementation manners described above. Methods.

本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The technical features of the technical solutions of the present application can be combined arbitrarily. In order to simplify the description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be considered as the scope described in this application.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in the above storage medium (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, optical fiber, digital subscriber line) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, storage disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent protection of this application.

Claims (13)

1. A method for encoding compensation data of a display panel, the method comprising:
acquiring an original compensation value of each pixel in a target pixel block in a display image of preset display data;
calculating a fluctuation reference value of each pixel according to the original compensation value;
calculating a compensation fluctuation value according to the fluctuation reference value;
dividing each compensation fluctuation value by a quantization parameter to obtain a compensation quantization value of each pixel;
and coding the compensation quantization value by using a preset coding model to obtain the coding result.
2. The encoding method according to claim 1, wherein the step of obtaining the original compensation value for each pixel in the target block of pixels in the display image of the preset display data comprises:
dividing the display panel into a plurality of pixel blocks according to the preset number of rows and columns.
3. The encoding method according to claim 1, wherein the step of obtaining the original compensation value for each pixel within the target block of pixels in the display image of the preset display data comprises:
acquiring a display value of each pixel in the target pixel block;
identifying the pixel to be compensated according to a preset identification algorithm according to the display value;
and calculating the original compensation value according to a preset compensation algorithm according to the pixel to be compensated and the preset display data.
4. The encoding method according to claim 3, wherein the luminance value includes a luminance value and/or a chrominance value; and/or the preset display data comprises a gray scale picture or an RGBW picture.
5. The encoding method of claim 1, wherein the fluctuation reference value includes a compensated average value or a compensated median value.
6. The encoding method of claim 5, wherein the step of calculating a compensated average value for each pixel from the original compensation values comprises:
dividing the sum of all the original compensation values in the target pixel block by the product of the number of rows and the number of columns of the target pixel block, and taking the result as the compensation average value.
7. The encoding method according to claim 1, wherein the step of calculating a compensation fluctuation value based on the fluctuation reference value comprises:
and respectively calculating the difference between the original compensation value and the fluctuation reference value of each pixel in the target pixel block as the compensation fluctuation value.
8. The encoding method according to any one of claims 1 to 7, wherein the step of dividing each compensation fluctuation value by the quantization parameter to obtain a compensated quantization value for each pixel comprises:
selecting the quantization parameter in a parameter table according to a preset rule;
and dividing each compensation fluctuation value by the quotient of the quantization parameter to be rounded respectively to be used as the compensation quantization value.
9. The encoding method of claim 8, wherein the predetermined coding model is selected from run-length coding or zero-length coding; the step of encoding the compensated quantization value by using the preset encoding model to obtain the encoding result comprises:
respectively using the run-length codes and the zero-length codes to carry out coding so as to respectively obtain run-length coding results and zero-length coding results;
comparing the binary data quantity of the run-length coding result and the zero-length coding result;
and selecting the coding model corresponding to the coding result with the minimum binary data quantity as the preset coding model.
10. The encoding method according to claim 9, wherein the step of encoding the compensated quantization value using the preset encoding model to obtain the encoding result is followed by at least one of:
coding and storing the fluctuation reference value according to a first number of bits; storing the quantization parameter according to a second number of bit codes; the preset coding model is coded and stored according to a third number of bits; and coding and storing the coding result to obtain coding result storage data of a fourth number of bits.
11. The encoding method of claim 10, wherein the step of selecting the quantization parameter in a parameter table according to a predetermined rule comprises:
s41: selecting the minimum parameter in the parameter table to encode the target pixel block;
s42: calculating the sum of the first number, the second number, the third number and the fourth number as a contrast value;
s43: and judging whether the comparison value is greater than the preset number. If yes, the step S44 is carried out, otherwise, the step S45 is carried out;
s44: when the contrast value is greater than the preset number, excluding the minimum parameter from the parameter table, and returning to the step S41;
s45: and taking the minimum parameter as the preset parameter.
12. A display module is characterized by comprising a processor and a memory connected with the processor;
the memory having stored thereon a computer program;
the processor is configured to execute the computer program read from the memory to implement the encoding method according to any one of claims 1 to 11.
13. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, implements the encoding method according to any one of claims 1 to 11.
CN202210854346.2A 2022-07-14 2022-07-14 Display panel compensation data coding method, display module and storage medium Pending CN115206234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210854346.2A CN115206234A (en) 2022-07-14 2022-07-14 Display panel compensation data coding method, display module and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210854346.2A CN115206234A (en) 2022-07-14 2022-07-14 Display panel compensation data coding method, display module and storage medium

Publications (1)

Publication Number Publication Date
CN115206234A true CN115206234A (en) 2022-10-18

Family

ID=83582493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210854346.2A Pending CN115206234A (en) 2022-07-14 2022-07-14 Display panel compensation data coding method, display module and storage medium

Country Status (1)

Country Link
CN (1) CN115206234A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115691390A (en) * 2022-11-02 2023-02-03 上海傲显科技有限公司 Display panel compensation method and device and display device
CN116132688A (en) * 2023-01-17 2023-05-16 格兰菲智能科技有限公司 Pixel compensation data encoding method, decoding method, device and computer equipment
CN116631319A (en) * 2023-05-29 2023-08-22 上海傲显科技有限公司 Screen display compensation method, intelligent terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101919250A (en) * 2008-01-21 2010-12-15 艾利森电话股份有限公司 Pixel block processing
US20130114724A1 (en) * 2011-11-07 2013-05-09 Canon Kabushiki Kaisha Image encoding method, image encoding apparatus, and related encoding medium, image decoding method, image decoding apparatus, and related decoding medium
CN108682388A (en) * 2018-07-27 2018-10-19 京东方科技集团股份有限公司 data compression and decompression method, device and display device
CN109479136A (en) * 2016-08-04 2019-03-15 深圳市大疆创新科技有限公司 System and method for bit rate control
CN112672162A (en) * 2020-11-23 2021-04-16 西安万像电子科技有限公司 Encoding method, apparatus and storage medium
CN113949876A (en) * 2020-07-16 2022-01-18 三星电子株式会社 Image sensor module, image processing system, and image compression method
CN114120915A (en) * 2021-11-11 2022-03-01 合肥维信诺科技有限公司 Data compression method and device and data decompression method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101919250A (en) * 2008-01-21 2010-12-15 艾利森电话股份有限公司 Pixel block processing
US20130114724A1 (en) * 2011-11-07 2013-05-09 Canon Kabushiki Kaisha Image encoding method, image encoding apparatus, and related encoding medium, image decoding method, image decoding apparatus, and related decoding medium
CN109479136A (en) * 2016-08-04 2019-03-15 深圳市大疆创新科技有限公司 System and method for bit rate control
CN108682388A (en) * 2018-07-27 2018-10-19 京东方科技集团股份有限公司 data compression and decompression method, device and display device
CN113949876A (en) * 2020-07-16 2022-01-18 三星电子株式会社 Image sensor module, image processing system, and image compression method
CN112672162A (en) * 2020-11-23 2021-04-16 西安万像电子科技有限公司 Encoding method, apparatus and storage medium
CN114120915A (en) * 2021-11-11 2022-03-01 合肥维信诺科技有限公司 Data compression method and device and data decompression method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115691390A (en) * 2022-11-02 2023-02-03 上海傲显科技有限公司 Display panel compensation method and device and display device
CN115691390B (en) * 2022-11-02 2023-09-26 上海傲显科技有限公司 Display panel compensation method and device and display device
CN116132688A (en) * 2023-01-17 2023-05-16 格兰菲智能科技有限公司 Pixel compensation data encoding method, decoding method, device and computer equipment
CN116132688B (en) * 2023-01-17 2024-04-12 格兰菲智能科技有限公司 Pixel compensation data encoding method, decoding method, device and computer equipment
CN116631319A (en) * 2023-05-29 2023-08-22 上海傲显科技有限公司 Screen display compensation method, intelligent terminal and storage medium
CN116631319B (en) * 2023-05-29 2024-05-14 上海傲显科技有限公司 Screen display compensation method, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN115206234A (en) Display panel compensation data coding method, display module and storage medium
US9177393B2 (en) Mixed mode for frame buffer compression
KR101448493B1 (en) Image processing methods and apparatus using localized gamut definitions
US9830890B2 (en) Method and device for compressing and decompressing data information, drive compensation method and device, and display device
EP3264402A1 (en) Method for correcting screen asymmetry and device and system thereof
US20140219573A1 (en) Pattern mode for frame buffer compression
JP6719391B2 (en) Method and apparatus for signaling within a bitstream the picture/video format of an LDR picture and the picture/video format of a decoded HDR picture obtained from this LDR picture and an illumination picture
US20190132001A1 (en) A compressing method of a grayscale compensation table of an oled display panel
US20240249674A1 (en) Simplified rate control for an additive iterative compression system
CN114120915A (en) Data compression method and device and data decompression method and device
JP4440308B2 (en) Rate control method and system in image compression
CN114138218B (en) Content display method and content display device
US11699407B2 (en) Display device driving method and display device
CN110999300B (en) Single channel inverse mapping for image/video processing
CN116132649B (en) Gamma table generation method and display control parameter generation method
JP2008017472A (en) Compression method of ultrasonic imaging
CN115567694A (en) Video data processing method, video display method and device, electronic equipment and readable storage medium
US20150245029A1 (en) Image processing system and method
JP2014160253A (en) Display device, display-device control method, television receiver, control program, and recording medium
CN115278251A (en) Encoding method based on motion prediction encoding, display module and storage medium
Fang On performance of lossless compression for HDR image quantized in color space
KR20210021892A (en) Method and apparatus for processing image data
CN116993597A (en) Image correction method, device and computer-readable storage medium
CN117856794A (en) Self-adaptive optimization device and method under multi-compression algorithm mode
CN116153246A (en) Image gray scale value determination method, device and electronic equipment

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