Disclosure of Invention
In view of the technical defects in the prior art, an object of the present invention is to provide a method and a system for reducing the IR-drop effect of an AMOLED panel, and according to an aspect of the present invention, a method for reducing the IR-drop effect of an AMOLED panel is provided, which is used to improve the brightness uniformity of a display panel, and includes the following steps:
a. judging different compensation modes of each image based on the average gray-scale value of R, G, B of each image in the last frame of input image, wherein the compensation modes comprise a monochrome compensation mode, a gray compensation mode and a color mixing compensation mode;
b. at least the scaling coefficient P _ pix determined based on the input pixel value of each picture in the input picture of the previous frame and the segment compensation difference value offset _ v determined with reference to the nth segment of the W picture are used for the segment picture compensation of the monochrome compensation mode, the gray compensation mode, and the color mixture compensation mode in the current frame picture.
Preferably, before the step a, the following steps are included:
i: equally dividing the AMOLED panel into N sections, wherein the near end of a chip is taken as a1 st section;
ii: determining a current value of each segment picture, wherein the current value is marked as I ═ I _ R255, I _ G255, I _ B255 and I _ W255;
iii: and calculating the actual gray-scale value corresponding to each section of brightness by taking the display brightness of the section 1 displayed by the AMOLED panel as the target brightness, and taking the actual gray-scale value as the average gray-scale value of R, G, B of each section of image.
Preferably, the average gray scale value of R, G, B for each image is determined by the following formula:
wherein g is a gamma parameter, L1 is a luminance value of the 1 st segment, L _ num is a luminance value of the num segment, and num [ { M1, num ≠ 1}, and the data is an average gray level value.
Preferably, in the step a, the determination condition of the monochrome compensation mode satisfies any one of the following conditions:
in the RGB sub-pixels, only 1 sub-pixel has a gray scale value larger than 0, and the other two gray scale values are smaller than 0;
in the RGB sub-pixels, the difference is made between the gray-scale value of the largest sub-pixel and the rest two gray-scale values, and the difference values are all larger than a threshold th _ diff 1; or
Of the RGB sub-pixels, the largest sub-pixel gray-scale value is greater than th _ top1, and the gray-scale values of the remaining two gray-scale values are less than threshold th _ low 1.
Preferably, in the step a, the determination condition of the gray compensation mode satisfies that the difference value obtained by subtracting the maximum value and the minimum value of the RGB sub-pixels is less than the threshold th _ diff 2.
Preferably, in the step a, the determination conditions of the color mixture compensation mode are as follows: when neither the determination condition for the monochrome compensation mode nor the determination condition for the gray compensation mode is satisfied.
Preferably, the step b comprises the steps of:
b 1: determining a scaling coefficient P _ pix based on input pixel values of each segment of the previous frame of input images;
b 2: determining the N section of the W picture as each section compensation difference value offset _ v determined by reference;
b 3: compensating each image section which is judged to be in a monochrome compensation mode in the current frame image;
b 4: compensating each image section which is judged as a gray compensation mode in the current frame image;
b 5: and compensating each image section which is judged as the color mixture compensation mode in the current frame image.
Preferably, in the step b1, the scaling factor P _ pix is determined by the following formula:
wherein, the data is an input pixel value, i.e. an average gray-scale value, g is a gamma parameter, and the P _ pix at least comprises an average gray-scale value of R, G, B.
Preferably, in the step b2, the segment compensation difference offset _ v is determined by:
taking the actual gray-scale value G _ Loc of the Nth section of the W picture as a reference, calculating the difference value between the gray-scale value of each section of image and the G _ Loc, and taking the difference value as the compensation difference value corresponding to each section of image, wherein,
the actual gray-scale value G _ Loc of the nth segment of the W picture is a segment with the minimum actual gray-scale value in R, G, B, W images, and the compensation difference is expressed as:
preferably, in the step b3, a final compensation value is determined by the scale factor P _ pix of each segment picture and the compensation difference value offset _ v corresponding to each segment picture.
Preferably, in the step b4, the method comprises the following steps:
b 41: multiplying the 255-gray-scale current of the RGB monochrome picture by a proportionality coefficient P _ pix and then summing to determine a picture current I _ in;
b 42: calculating the ratio I _ ratio of the picture current I _ in to the sum I _ sum of currents of 255 gray scales of the RGB monochrome picture;
b 43: the final compensation value is determined by the compensation difference offset _ v and I _ ratio.
Preferably, the step b5 includes the following steps:
b 51: for 3 trend lines of I _ R255, I _ G255, I _ B255 to I _ sum, a plurality of current values I _ mid, mid being 1,2, … are selected, corresponding to compensation values offset _ mid _ pix:
offset _ mid _ pix is k _ mid × offset _ v (pix,: where k _ mid is a compensation value proportional coefficient of the mid-point current value, and in offset _ v (pix,: pix is 1,2, 3, which represents each segment compensation value of the RGB monochrome 255;
b 52: fitting 3 trend curves of I _ R255, I _ G255, I _ B255 to I _ sum by the current value Imid and the compensation value offset _ mid _ pix;
b 53: obtaining a maximum value val _ max of RGB in the picture to obtain a corresponding current I _ val _ max, and further obtaining a current I _ sum1 when the RGB values are all val _ max;
b54 trend curves from I _ val _ max to I _ sum1 are determined by the trend curves from I _ pix255 to I _ sum1 and the scaling factor P _ pix.
According to another aspect of the invention, a system for reducing the IR-drop influence of the AMOLED panel is further provided, which employs the method for reducing the IR-drop influence of the AMOLED panel, and includes a statistical averaging module, a color type determination module, a processing module, and a compensation value calculation module.
Preferably, the statistical averaging module performs statistical averaging on the current frame image to obtain a group of RGB values representing the image trend of the current frame, and outputs the RGB values to the memory to store the image trend for IR-drop compensation of the next frame.
Preferably, the color type determination module accesses a trend value of a previous frame of image, determines that the trend value is monochrome, mixed color or gray, and outputs a determination result to the processing module.
Preferably, the processing module includes a monochrome processing module, a gray processing module and a color mixing processing module, the current reference value and the compensation reference value are accessed, the color type judgment result is determined by the selector, and the compensation value of the selected processing section is output.
Preferably, the compensation value calculating module accesses the paragraph compensation value output by the processing module, obtains the compensation value of the whole panel by a linear difference method, and in order to ensure the compensation precision, the binary bit width of the compensation value is consistent with the bit width of gamma conversion.
The invention provides a method for reducing the IR-drop influence of an AMOLED panel, which comprises the steps of measuring the brightness and the current of R, G, B, W picture gray scale 255 to obtain an actual gray scale value corresponding to the brightness, calculating the difference value between a R, G, B, W picture and a G _ Loc by referring to the actual gray scale value G _ Loc of the Nth section of a W picture, wherein the difference value is a compensation value corresponding to each section, performing statistical average on an input image for the next frame, taking 1 group of obtained average gray scale values related to R, G, B as the display trend of the image, accessing the trend of the previous frame of the image, calculating parameters, performing color judgment on the image color according to the R, G, B value and judgment conditions, fitting the change curve of each color mode by using different curves, and realizing compensation; the invention also provides a system for reducing the influence of the IR-drop of the AMOLED panel, which comprises a statistical averaging module, a color type judging module, a processing module and a compensation value calculating module, wherein the method and the system realize the self-adaptive compensation of the image by dividing the image into different processing modes to perform the fitting of a multi-section curve, reduce the influence of the IR-drop on the panel, improve the brightness uniformity of the display panel, and ensure that the sum of the brightness of R, G, B is close to the brightness of a white picture with a corresponding numerical value. The invention has the advantages of simple structure, convenient use, strong practicability, powerful functions and extremely high commercial value.
Detailed Description
In order to better and clearly show the technical scheme of the invention, the invention is further described with reference to the attached drawings.
Fig. 1 shows a specific flowchart of a method for reducing an IR-drop effect of an AMOLED panel according to an embodiment of the present invention, and specifically includes the following steps:
first, step S101 is proceeded to, and different compensation modes of each image are determined based on the average gray-scale value R, G, B of each image in the previous frame of input image, and the compensation modes include a monochrome compensation mode, a gray compensation mode, and a color mixture compensation mode.
Further, before proceeding to step S101, the average gray scale value of R, G, B for each image is determined as follows:
i: equally dividing the AMOLED panel into N segments, wherein the near end of the chip is a1 st segment, specifically referring to an exemplary diagram of dividing the panel with a resolution of 2160 × 1080 shown in fig. 6, 2160 rows of the panel are evenly divided into 65 segments, and the near end of the chip is a1 st segment, 33 rows of each segment, and 48 rows of the 65 segment;
ii: determining a current value of each frame, where the current value is marked as I ═ I _ R255, I _ G255, I _ B255, I _ W255], that is, measuring current at a gray level 255 of R, G, B, W, selecting M1 luminance segments among N luminance segments uniformly, measuring current values at gray levels 255 of each frame, I1 st segment, …, num, …, N-th segment, {1, …, num, …, N } ═ { M1}, R, G, B, W, which can be expressed as I ═ I _ R255, I _ G255, I _ B255, I _ W255 ];
iii: the display brightness of the 1 st segment displayed by the AMOLED panel is taken as the target brightness, and the actual gray-scale value corresponding to each segment of brightness is calculated and taken as the average gray-scale value of R, G, B of each segment of image.
Further, the average gray scale value of R, G, B for each image is determined by the following formula:
wherein g is a gamma parameter, L1 is a luminance value of the 1 st segment, L _ num is a luminance value of the num segment, and num [ { M1, num ≠ 1}, and the data is an average gray level value. And performing statistical averaging on the display image to obtain 1 group of average gray-scale values, wherein the obtained average gray-scale values are regarded as the display trend of the image, and the vision is more sensitive to the IR-drop of a smooth transition or a static picture, so that the display trend of the current frame is used for the IR-drop compensation of the next frame.
Further, the determination condition of the monochrome compensation mode satisfies any one of the following:
in the RGB sub-pixels, only 1 sub-pixel has a gray scale value larger than 0, and the other two gray scale values are smaller than 0;
in the RGB sub-pixels, the difference is made between the gray-scale value of the largest sub-pixel and the rest two gray-scale values, and the difference values are all larger than a threshold th _ diff 1; or
Of the RGB sub-pixels, the largest sub-pixel gray-scale value is greater than th _ top1, and the gray-scale values of the remaining two gray-scale values are less than threshold th _ low 1.
Here, because of the randomness of the panel display image, the average value is R, G, B by summing and averaging the previous frame image, i.e. the whole image is converted into a picture formed by the average value, and R, G, B sub-pixels are used for the whole image.
Further, the gray compensation mode, i.e. the determination condition that the RGB values are similar, satisfies that the difference value obtained by subtracting the maximum value and the minimum value of the RGB sub-pixels is less than the threshold th _ diff 2.
Further, the determination conditions of the color mixture compensation mode are: when neither the determination condition for the monochrome compensation mode nor the determination condition for the gray compensation mode is satisfied.
Finally, proceeding to step S102, at least using the scaling factor P _ pix determined based on the input pixel value of each image in the previous frame of input image and the compensation difference value offset _ v of each segment determined by using the nth segment of the W picture as a reference for image compensation of each segment in the monochrome compensation mode, the gray compensation mode and the color mixture compensation mode in the current frame of image, it is understood by those skilled in the art that the present application provides a method for reducing the IR-drop effect of the AMOLED panel, by measuring the brightness and current of the R, G, B, W picture gray scale 255 to obtain the actual gray scale value corresponding to the brightness, referring to the actual gray scale value G _ Loc of the nth segment of the W picture, calculating the difference value between the R, G, B, W picture and the G _ Loc, i.e. the compensation value corresponding to each segment, statistically averaging the input image for the next frame, and considering 1 set of average gray scale values about R, G, B as the display trend of the image, accessing the image trend of the previous frame, calculating parameters, judging the color of the image according to the R, G, B value and the judgment condition, and fitting the change curve of each color mode by using different curves to realize compensation. The present invention will be described in further detail with respect to step S102 in the following detailed description, which is not repeated herein.
Fig. 2 is a schematic flowchart illustrating a specific process of using at least a scaling coefficient P _ pix determined based on an input pixel value of each image in an input image of a previous frame and a segment compensation difference value offset _ v determined by referring to an nth segment of a W picture for each segment image compensation of a monochrome compensation mode, a gray compensation mode and a color mixture compensation mode in a current frame image according to a first embodiment of the present invention, and it is understood by those skilled in the art that fig. 2 is a sub-step of step S102 in fig. 1, and specifically includes the following steps:
firstly, step S1021 is entered, a scaling factor P _ pix is determined based on the input pixel value of each image in the previous frame of input image, and further, a current value is calculated according to the average pixel value, the current and the brightness are in a linear relationship, so that a scaling factor P _ pix smaller than 1 is obtained by a gamma formula of the average gray level value, and the scaling factor P _ pix is determined by the following formula:
wherein, the data is an input pixel value, i.e. an average gray-scale value, g is a gamma parameter, and the P _ pix at least comprises an average gray-scale value of R, G, B.
Then, the process proceeds to step S1022, and the segment compensation difference value offset _ v determined by referring to the nth segment of the W picture is determined, and further, the segment compensation difference value offset _ v is determined as follows:
taking the actual gray-scale value G _ Loc of the Nth section of the W picture as a reference, calculating a difference value between the gray-scale value of each section of image and the G _ Loc, and taking the difference value as a compensation difference value corresponding to each section of image, wherein the actual gray-scale value G _ Loc of the Nth section of the W picture is R, G, B, W the section with the minimum actual gray-scale value in each image, and the compensation difference value is expressed as:
the technical personnel in the field understand, the chip connects in the one end of panel, in the current transmission process of chip near-end to chip distal end, line resistance can add up, then the display luminance from chip near-end to distal end is a degressive curve, the distal end luminance is the lowest promptly, the reason that chip near-end luminance descends fast is, first section to the influence that the N section's electric current all need receive line resistance, the electric current is bigger, the voltage drop is bigger, luminance descends fast, and at the chip distal end, only the electric current of present section to the N section receives line resistance influence, the electric current diminishes, the voltage drop diminishes, thereby luminance descends the region gently.
Similarly, the total current of the W255 picture is much larger than the current of each monochromatic picture, and the influence of the resistance is the largest, so that I _ W255 is less than I _ sum, the influence of the potential difference on the nth section of the white picture is the largest, the lowest brightness is obtained, the brightness of the RGBW pure color picture is reduced to be the same as that of the nth section of the W picture by taking the lowest brightness as a target, and the brightness consistency is realized. Taking the proximal and distal ends as an example: the gray scale value of each image is WRGB from top to bottom:
and taking the far end '225' of the white picture chip as a target to obtain compensation values of each picture:
therefore, the brightness uniformity of each picture is improved, and I _ sum is I _ W255, the reason for targeting the far end of the white picture is that the white picture is influenced the most by IR-drop, and compared with improving the brightness of the picture, the improvement of the brightness leads to the increase of the IR-drop influence, and the accuracy of reducing the brightness of the picture is better.
Then, the process proceeds to step S1023, each segment picture determined as the monochrome compensation mode in the current frame picture is compensated, and a final compensation value is determined by the scaling factor P _ pix of each segment picture and the compensation difference value offset _ v corresponding to each segment picture, that is, a compensation value is obtained by multiplying the corresponding line of P _ pix and the corresponding compensation value offset _ v.
In a monochrome picture, for example, if data _ R is 200 and g is a gamma coefficient, typically 2.2, then P200 is 0.59; then offset _ out is offset _ v (2): 0.59.
Then, step S1024 is performed to compensate each segment of image determined as the gray compensation mode in the current frame image, and those skilled in the art will understand that step S1024 will be described in further detail in the following detailed description of the present invention, which will not be described herein.
Finally, step S1025 is performed to compensate each image segment determined as the color mixture compensation mode in the current frame image, and those skilled in the art will understand that step S1025 will be further described in detail in the following detailed description of the present invention, which will not be repeated herein.
Fig. 3 is a schematic diagram illustrating a specific flowchart of compensating for each image segment determined as a gray compensation mode in a current frame image according to a second embodiment of the present invention, and those skilled in the art understand that fig. 3 is a sub-step of step S1024 in fig. 2, and specifically includes the following steps:
first, step S10241 is performed, and the current of the RGB monochrome picture 255 grayscale is multiplied by the scaling factor P _ pix and summed to determine the picture current I _ in, i.e., I _ in _ P _ R _ I _ R255+ P _ G _ I _ G255+ P _ B _ I _ B255.
Then, the process proceeds to step S10242, and a ratio I _ ratio of the screen current I _ in to a sum I _ sum of currents of gray scales of the RGB monochrome screen 255, i.e., I _ sum — I _ R255+ I _ G255+ I _ B255, I _ ratio — I _ in/I _ sum is calculated.
Finally, step S10243 is proceeded to determine a final compensation value according to the compensation difference value offset _ v and I _ ratio, i.e. a picture compensation value is obtained by multiplying the W picture compensation value offset _ v and I _ ratio.
Fig. 4 is a schematic diagram illustrating a specific flowchart of compensating each image segment determined as a color mixture compensation mode in a current frame image according to a second embodiment of the present invention, and it will be understood by those skilled in the art that fig. 4 is a sub-step of step S1025 in fig. 2, and the color mixture is a transition interval from a single color to a white color, so that a color mixture compensation value is also in the transition interval from a single color compensation value to a white color compensation value, and specifically, the method includes the following steps:
first, the process proceeds to step S10251, where a plurality of current values I _ mid, mid being 1,2, and …, corresponding to offset value offset _ mid _ pix, are selected from 3 trend lines of I _ R255, I _ G255, I _ B255 to I _ sum:
offset _ mid _ pix is k _ mid × offset _ v (pix,: where k _ mid is a compensation value proportional coefficient of the mid-point current value, and in offset _ v (pix,: pix is 1,2, 3, which indicates each segment of compensation values of the RGB monochrome 255.
Then, it proceeds to step S10252, and 3 trend curves of I _ R255, I _ G255, I _ B255 to I _ sum are fitted by the current value Imid and the compensation value offset _ mid _ pix.
Then, the process proceeds to step S10253, where the maximum value val _ max of RGB in the screen is obtained, the corresponding current I _ val _ max is obtained, and the current I _ sum1 when RGB is all val _ max is further obtained.
Finally, proceeding to step S10254, the trend curves of I _ val _ max to I _ sum1 are determined by the trend curves of I _ pix255 to I _ sum1 and the scaling factor P _ pix.
Those skilled in the art understand that, taking the R sub-pixel as an example, in the same paragraph, the compensation value of the R sub-pixel is the largest in the case of an R monochrome picture (255,0,0), and the compensation value is the smallest in the case of a white picture, and with the R sub-pixel as the main color, the transition of the pixel from monochrome to white: (255,100,100), (255, 150), (255,200,200), (255 ) the compensation value should be decreased, so that on the same pixel point, there is a transition curve with R, G, B as the main color, and the curve changes more complicated, but can be estimated by current.
In the trend curve, based on the 1 st segment of the chip, a plurality of intermediate current values I _ mid are selected, wherein I _ mid is P _ R _ I _ Rdata1+ P _ G _ I _ Gdata2+ P _ B _ I _ Bdata3, data1> data2 and data1> data3 are input into the R sub-pixel curve, corresponding numerical pictures (data1, data2 and data3) are input, compensation values of each segment are modified, brightness uniformity is improved, after the brightness uniformity improvement is completed, compensation values of offset _ mid _ pix are obtained through I _ R + I _ G + I _ B _ mif, wherein the currents are test values, I _ mix and I _ mid have differences due to the influence values of Ir _ drop, corresponding coefficients k _ mid is offset _ mid _ x/offset _ v (I _ mid, 1 st segment of the chip), and the difference values can be calculated through the test I _ mid.
Whereas when the dominant color is <255, e.g., (200, 100), the compensation curve should be from (200,0,0) to (200,200,200) compensation values, with the middle I _ mix still being derived by the coefficients.
Fig. 5 is a schematic block diagram illustrating a system for reducing the IR-drop effect of an AMOLED panel according to another embodiment of the present invention, and those skilled in the art will understand that the present invention provides a system for reducing the IR-drop effect of an AMOLED panel, which employs the method for reducing the IR-drop effect of an AMOLED panel, and includes a statistical averaging module 1, a color type determining module 2, a processing module 3, and a compensation value calculating module 4.
Further, the statistical averaging module 1 performs statistical averaging on the current frame image to obtain a group of RGB values representing the image trend of the current frame, and outputs the RGB values to the memory to store the image trend for the IR-drop compensation of the next frame.
Further, the color type determining module 2 accesses the trend value of the previous frame of image, determines that the trend value is monochrome, color mixture or gray, and outputs the determination result to the processing module 3.
Further, the processing module 3 includes a monochrome processing module 32, a gray processing module 33, and a color mixing processing module 34, and accesses the current reference value and the compensation reference value, determines the processing mode through the selector 31 according to the color type determination result, and outputs the compensation value of the selected processing segment.
Further, the compensation value calculating module 4 accesses the paragraph compensation value output by the processing module 3, obtains the compensation value of the whole panel by a linear difference method, and in order to ensure the compensation precision, the binary bit width of the compensation value is consistent with the bit width of gamma conversion.
It should be noted that the specific implementation of each of the above device embodiments is the same as the specific implementation of the corresponding method embodiment, and is not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some embodiments, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Furthermore, those of skill in the art will understand that although some embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention.