Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow of the storage means of the luminance compensation numerical value of the display panel that the embodiment of the present invention provides, wherein, described display panel, for being embodied as the display panel of picture based on backlight, include but not limited to liquid crystal display (LiquidCrystalDisplay, LCD).Details are as follows for realization flow shown in Fig. 1:
In step S101, from the pixel adjacent with specified pixel, the luminance compensation numerical value luminance compensation numerical value of each pixel in display panel except described specified pixel being adjacent pixel successively carries out difference operation, with the first difference that each pixel of acquisition except described specified pixel is corresponding, and by the first corresponding for each pixel outside the luminance compensation numerical value of specified pixel and specified pixel Difference Storage in one first storage unit.
Backlight due to display panel can be placed within the some of display panel or certain several region usually; therefore; arrange in uniform test pattern in brightness; the brightness of each pixel is decided by the distance of this pixel and backlight; exactly because also this reason, in display panel, the brightness of neighbor changes normally gradual change and not mutated; similarly, the luminance compensation numerical value change of neighbor is also gradual change and not mutated.For the These characteristics of display panel, in the present embodiment, the pixel obtained in display panel is adjacent the difference of the luminance compensation numerical value of pixel first one by one.
In the present embodiment, described difference operation, can be understood as the difference computing of the luminance compensation numerical value of two pixels, that is, the difference that calculates of difference operation is for showing the difference between two luminance compensation numerical value.Described difference takes the mode obtained one by one, with the luminance compensation numerical value of specified pixel for benchmark, gets the difference that each pixel except specified pixel is corresponding successively one by one.
As one embodiment of the present of invention, the first difference can be obtained by one of them neighbor of pixel and this pixel is carried out single comparison, and as shown in Figure 2, step S101 is specially:
In step s 201, the first luminance compensation numerical value of current pixel is obtained.
In step S202, obtain the second luminance compensation numerical value of the neighbor of described current pixel, described neighbor can be the pixel of adjacent left-hand, adjacent right side, adjacent top or adjacent below, in other words can for be in the previous pixel of same a line or a rear pixel with current pixel, also can for be in the previous pixel of same row or a rear pixel with current pixel.
In step S203, difference operation is carried out to described first luminance compensation numerical value and described second luminance compensation numerical value, to obtain the first difference corresponding to described current pixel.
In the present embodiment, as a kind of disposal route of routine, when described neighbor is the pixel of adjacent left-hand, when specified pixel is the pixel of first row on the left of display panel, so can according to from left to right, order from top to bottom carries out difference operation to the pixel outside specified pixel in display panel successively, and specified pixel is without the need to carrying out difference operation; When described neighbor is the pixel of adjacent right side, when specified pixel is the pixel of first row on the right side of display panel, so can according to from right to left, order from top to bottom carries out difference operation to the pixel outside specified pixel in display panel successively, and specified pixel is without the need to carrying out mathematic interpolation; When the pixel that described neighbor is adjacent upside, specified pixel is the pixel of display panel the first row, so can according to from top to bottom, order from left to right carries out difference operation to the pixel outside specified pixel in display panel successively, and specified pixel is without the need to carrying out mathematic interpolation; When the pixel that described neighbor is adjacent downside, specified pixel is the pixel of display panel last column, so can according to from bottom to up, order from left to right carries out difference operation to the pixel outside specified pixel in display panel successively, and specified pixel is without the need to carrying out mathematic interpolation.
As another embodiment of the present invention, the first difference can be obtained by multiple pixels adjacent with this pixel for pixel being compared, and as shown in Figure 3, step S101 is specially:
In step S301, obtain the first luminance compensation numerical value of current pixel.
In step s 302, obtain and the luminance compensation numerical value of M neighbor of more described current pixel, described M be greater than 1 integer.
Such as, have 8 neighbors around current pixel, then can to get in these 8 neighbors multiple carries out the first difference operation to current pixel.
In step S303, according to comparative result, difference operation is carried out, to obtain the first difference corresponding to described current pixel to the luminance compensation numerical value of wherein one or more pixels of described first luminance compensation numerical value and a described M neighbor.
Such as, described M equals 3, then these three neighbors can be respectively the upper left side neighbor of the left side neighbor of described current pixel, the top neighbor of described current pixel and described current pixel, then compare the luminance compensation difference of these three neighbors, and result based on the comparison, determine that the first difference that current pixel is corresponding is as follows:
If the luminance compensation numerical value of described upper left side neighbor is maximum, then luminance compensation numerical value minimum in described first luminance compensation numerical value and described comparative result is carried out difference operation;
If the luminance compensation numerical value of described upper left side neighbor is minimum, then luminance compensation numerical value maximum in described first luminance compensation numerical value and described comparative result is carried out difference operation;
If the luminance compensation numerical value of described upper left side neighbor non-minimum is also not maximum, then according to preset algorithm, the luminance compensation numerical value of described first luminance compensation numerical value and a described M neighbor is carried out difference operation, to obtain the first difference corresponding to described current pixel.Wherein, described preset algorithm is not used in restriction the present invention at this, and as a kind of specific implementation, preset algorithm can make following agreement:
First difference=the first luminance compensation numerical value-(the luminance compensation numerical value of the luminance compensation numerical value-upper left side neighbor of the luminance compensation numerical value+top neighbor of left side neighbor).
Below a kind of specific implementation of Fig. 3 embodiment is only listed, similarly, this M neighbor also can comprise the lower right neighbor of the right side neighbor of described current pixel, the below neighbor of described current pixel and described current pixel, and the first difference defining method of current pixel can follow the computing thinking identical with above-mentioned specific implementation, is not used in restriction the present invention at this.
Obviously, as one preferably embodiment, in conjunction with the embodiment of Fig. 2 and Fig. 3 of the present invention, specified pixel can be a pixel in the upper left corner of display panel, the upper right corner, the lower left corner or the lower right corner, take specified pixel as the pixel (i.e. the pixel of the first row first row) in the display panel upper left corner be example, except this pixel, for the pixel of display panel first row, can adopt method shown in Fig. 2, the pixel being adjacent top respectively carries out difference operation; For the pixel of display panel the first row, can adopt the method shown in Fig. 2, the pixel being adjacent left side respectively carries out difference operation; And for remaining non-the first row and the pixel of non-first row, method shown in Fig. 3 can be adopted, calculate the difference of itself and neighbor.Thus, in fact in last storing process, only need the luminance compensation numerical value of a storage specified pixel, the luminance compensation numerical value of rest of pixels all can with the luminance compensation numerical value of this specified pixel for benchmark, reckoning draws, further reduces storage space expense to a certain extent thus.
In step s 102, the appearance probability of described first difference of different numerical value is calculated.
After calculating the first difference corresponding to each pixel in display panel except specified pixel, all first differences calculated are added up, to calculate the appearance probability of the first difference of different numerical value.
In step s 103, to occur described in described first storage unit that multiple described first difference that probability is not less than default probability replaces with multiple second difference respectively, and the corresponding relation of the first difference and the second difference is stored in one second storage unit, the bit number of described second difference is less than the bit number of described first difference, and described multiple second difference is all not identical.
Luminance compensation numerical value change due to neighbor in display panel is gradual change and not mutated, therefore, the probability that the difference of the luminance compensation numerical value calculated between neighbor is numerically identical is larger, such as, between every from left to right two neighbors of same a line, the difference of luminance compensation numerical value is 00000001, based on this, in the present embodiment, to occurring the first difference that probability is high, replaced with the second difference that bit number is less, and possessed relation one to one between the first difference of different numerical value and the second difference.
Wherein, described multiple second difference is all not identical, comprises following two kinds of situations:
1, time the bit number of described multiple second difference identical (the such as bit number of all second differences is all 2 bits or is all 3 bits), described multiple second difference does not repeat each other;
2, the bit number of described multiple second difference is different, (n is greater than or equal to 2 at least to comprise the second difference of the second difference of n-bit and n+1 bit, such as wherein the bit number of a part of second difference is 2 bits, the bit number of all the other the second differences is 3 bits) time, second difference of described n-bit does not repeat each other, second difference of described n+1 bit does not repeat each other, and the numerical value of the front n-bit of the second difference of the second difference of described n-bit and described n+1 bit does not repeat each other.
As a realization example of the present embodiment, suppose to count in S102 the first difference be 00000000 and 00000001 appearance probability be respectively 30% and 20%, all higher than default probability, then above-mentioned two the first differences are replaced with 11 and 01 of 2 bits respectively to represent, and the appearance probability that the first difference counted in S102 is 11111111,00000010 and 11111110 is respectively 15%, 13% and 12%, also all higher than default probability, then above-mentioned three the first differences are replaced with 101,100 and 001 of 3 bits respectively and represent.Thus, the corresponding relation of the first difference and the second difference can be as shown in table 1:
Table 1
| First difference | Second difference |
| 00000000 | 11 |
| 00000001 | 01 |
| 11111111 | 101 |
| 00000010 | 100 |
| 11111110 | 001 |
In the present embodiment, the corresponding relation of the first difference and the second difference is also needed also to store, in order to reduce to the luminance compensation numerical value of pixel in display panel, realize luminance compensation, as can be seen from Table 1, occur that the first difference that probability is the highest is replaced in order to 2 bits or 3 Bit datas by 8 Bit datas, this saves storage space undoubtedly to a great extent, reduces the manufacturing cost of integrated circuit.
And for specified pixel, the luminance compensation numerical value of this pixel is the benchmark that other pixels carry out the reduction of luminance compensation numerical value, therefore, need the luminance compensation numerical value of this part pixel to store in the lump, finally can realize the reduction that other pixel intensity compensate numerical value.
In the present embodiment, according to the luminance compensation that the data stored are carried out in various degree to each pixel.Particularly, when reading bit number and being less than the difference data of 8 bits, show that this difference data is described second difference, then by the corresponding relation of the first difference of prestoring and the second difference, the first difference that this difference data is corresponding can be found.Such as, sequentially the difference data stored is resolved, when the difference data being resolved to display panel the first row secondary series pixel is 11, then can inquire the first difference corresponding to this difference data from table 1 is 00000000, so according to 00000000 and the luminance compensation numerical value of neighbor of this pixel, the luminance compensation numerical value of this pixel namely can be restored.
As one embodiment of the present of invention, in order to restore the luminance compensation numerical value of each pixel in follow-up luminance compensation numerical value reduction process more efficiently, the difference data that substituted for new difference can be distinguished with the difference data not replacing new difference, as shown in Figure 4, after step s 102, the method also comprises:
Step S104, to occur described in described first storage unit that described first difference of probability lower than described default probability replaces with the 3rd difference, described 3rd difference presets marker bit generation by adding described first difference, and described default marker bit is all not identical with described multiple second difference.
When reducing to luminance compensation numerical value, have the difference of default marker bit if read, then representing this difference is the difference not replacing with new difference, then direct this default marker bit is removed after read original difference data.Wherein, to the setting of default marker bit, bit number can be adopted to be less than 8 bits, but the numerical value all not identical with the second difference.Such as, based on the second difference occurred in Table 1, default marker bit can be set to 0001, so when reducing to luminance compensation numerical value, once read with the difference data of 0001 beginning, then direct marker bit 0001 to be removed, read the bit after 0001, thus restore the first difference of current pixel.
Wherein, described default marker bit is not identical with described multiple second difference comprises following several situation:
1, the bit number of described multiple second difference identical (the such as bit number of all second differences is all 2 bits or is all 3 bits), and the bit number of described default marker bit identical with the bit number of described second difference time, described default marker bit and described multiple second difference all do not repeat;
2, the bit number of described multiple second difference is different, (n is greater than or equal to 2 at least to comprise the second difference of the second difference of n-bit and n+1 bit, such as wherein the bit number of a part of second difference is 2 bits, the bit number of all the other the second differences is 3 bits), and the bit number of described default marker bit is when being n+1 bit, second difference of described default marker bit and described multiple n+1 bit does not all repeat, and the numerical value of the second difference of described n-bit and the front n-bit of described default marker bit does not all repeat;
3, the bit number of described multiple second difference is different, (n is greater than or equal to 2 at least to comprise the second difference of the second difference of n-bit and n+1 bit, such as wherein the bit number of a part of second difference is 2 bits, the bit number of all the other the second differences is 3 bits), and the bit number of described default marker bit is when being greater than n+1 bit, the numerical value of the second difference of described n-bit and the front n-bit of described default marker bit does not all repeat, and the numerical value of the second difference of described n+1 bit and the front n+1 bit of described default marker bit does not all repeat.
The embodiment of the present invention make use of the feature of pixel intensity change in display panel, carry out compression to the data for carrying out luminance compensation to store, decrease the expense of luminance compensation data to storage space, thus decrease integrated circuit dimensions, effectively reduce the manufacturing cost of integrated circuit.
Fig. 5 shows the structured flowchart of the memory storage of the luminance compensation numerical value of the display panel that the embodiment of the present invention provides, this device can be positioned among display panel, for running the storage means of the luminance compensation numerical value of the display panel described in Fig. 1 to Fig. 4 embodiment of the present invention.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 5, this device comprises:
Difference operation unit 51, from the pixel adjacent with specified pixel, the luminance compensation numerical value luminance compensation numerical value of each pixel in display panel except described specified pixel being adjacent pixel successively carries out difference operation, with the first difference that each pixel of acquisition except described specified pixel is corresponding, and by the first corresponding for each pixel outside the luminance compensation numerical value of specified pixel and specified pixel Difference Storage in one first storage unit.
Computing unit 52, calculates the appearance probability of described first difference of different numerical value.
First replacement unit 53, to occur described in described first storage unit that multiple described first difference that probability is not less than default probability replaces with multiple second difference respectively, and the corresponding relation of the first difference and the second difference is stored in one second storage unit, the bit number of described second difference is less than the bit number of described first difference, and described multiple second difference is all not identical.
Alternatively, described difference operation unit 51 comprises:
First obtains subelement, obtains the first luminance compensation numerical value of current pixel.
Second obtains subelement, obtains the second luminance compensation numerical value of the neighbor of described current pixel, and described neighbor is the pixel of adjacent left-hand, adjacent right side, adjacent top or adjacent below.
First operator unit, carries out difference operation to described first luminance compensation numerical value and described second luminance compensation numerical value, to obtain the first difference corresponding to described current pixel.
Alternatively, described difference operation unit 51 comprises:
3rd obtains subelement, obtains the first luminance compensation numerical value of current pixel.
4th obtain subelement, obtain and the luminance compensation numerical value of M neighbor of more described current pixel, described M be greater than 1 integer.
Second operator unit, according to comparative result, carries out difference operation, to obtain the first difference corresponding to described current pixel to the luminance compensation numerical value of wherein one or more pixels of described first luminance compensation numerical value and a described M neighbor.
Alternatively, a described M neighbor comprises the upper left side neighbor of the left side neighbor of described current pixel, the top neighbor of described current pixel and described current pixel,
Then described second operator unit specifically for:
If the luminance compensation numerical value of described upper left side neighbor is maximum, then luminance compensation numerical value minimum in described first luminance compensation numerical value and described comparative result is carried out difference operation;
If the luminance compensation numerical value of described upper left side neighbor is minimum, then luminance compensation numerical value maximum in described first luminance compensation numerical value and described comparative result is carried out difference operation;
If the luminance compensation numerical value of described upper left side neighbor non-minimum is also not maximum, then according to preset algorithm, the luminance compensation numerical value of described first luminance compensation numerical value and a described M neighbor is carried out difference operation, to obtain the first difference corresponding to described current pixel.
Alternatively, described specified pixel is the pixel in the display panel upper left corner, the upper right corner, the lower left corner or the lower right corner.
Alternatively, described specified pixel is the pixel of display panel first row, last row, the first row or last column.
Alternatively, described device also comprises:
Second replacement unit, to occur described in described first storage unit that described first difference of probability lower than described default probability replaces with the 3rd difference, described 3rd difference presets marker bit generation by adding described first difference, and described default marker bit is all not identical with described multiple second difference.
The embodiment of the present invention make use of the feature of pixel intensity change in display panel, carries out compression and stores, thus decrease the expense of luminance compensation data to storage space, effectively reduce the manufacturing cost of integrated circuit to the data for carrying out luminance compensation.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.