[go: up one dir, main page]

CN108847201B - Brightness processing method and device, computer equipment and readable storage medium - Google Patents

Brightness processing method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN108847201B
CN108847201B CN201810752151.0A CN201810752151A CN108847201B CN 108847201 B CN108847201 B CN 108847201B CN 201810752151 A CN201810752151 A CN 201810752151A CN 108847201 B CN108847201 B CN 108847201B
Authority
CN
China
Prior art keywords
brightness
value
gain
static
attenuation
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.)
Expired - Fee Related
Application number
CN201810752151.0A
Other languages
Chinese (zh)
Other versions
CN108847201A (en
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.)
BOE Technology Group Co Ltd
Hefei Xinsheng Optoelectronics Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Hefei Xinsheng Optoelectronics 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 BOE Technology Group Co Ltd, Hefei Xinsheng Optoelectronics Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201810752151.0A priority Critical patent/CN108847201B/en
Publication of CN108847201A publication Critical patent/CN108847201A/en
Application granted granted Critical
Publication of CN108847201B publication Critical patent/CN108847201B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

本发明实施例公开了一种亮度处理方法、装置、计算机设备及可读存储介质。该亮度处理方法包括:根据静态画面的初始APL值获取静态画面的初始亮度增益(Gain)值;根据静态画面的初始Gain值、静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;通过Gain值衰减速率对静态画面进行亮度衰减处理,并获取静态画面完成衰减后的稳定亮度值。本发明实施例解决了现有技术中的亮度衰减方式,由于针对不同初始状态的静态画面采用单一形式的亮度衰减方式,从而导致衰减后得到的稳定亮度可能并不适应当前应用场景,以及容易产生残像和出现色偏的问题。

Figure 201810752151

Embodiments of the present invention disclose a brightness processing method, an apparatus, a computer device, and a readable storage medium. The brightness processing method includes: acquiring an initial brightness gain (Gain) value of the static image according to the initial APL value of the static image; Value attenuation rate; perform brightness attenuation processing on the static image through the Gain value attenuation rate, and obtain the stable brightness value of the static image after the attenuation is completed. The embodiment of the present invention solves the brightness attenuation method in the prior art. Since a single form of brightness attenuation method is adopted for static images of different initial states, the stable brightness obtained after attenuation may not be suitable for the current application scene, and it is easy to generate Afterimages and color cast problems.

Figure 201810752151

Description

一种亮度处理方法、装置、计算机设备及可读存储介质A brightness processing method, apparatus, computer equipment and readable storage medium

技术领域technical field

本申请涉及但不限于显示技术领域,尤指一种亮度处理方法、装置、计算机设备及可读存储介质。The present application relates to, but is not limited to, the field of display technology, and in particular, to a brightness processing method, apparatus, computer equipment, and readable storage medium.

背景技术Background technique

随着显示技术的发展,用户对显示器的智能性功能要求越来越高,例如,长时间点亮高亮度状态下的静态画面,容易造成TFT老化、产生残像,从而影响显示器的显示效果,因此,要求显示器可以自行对静态画面进行亮度衰减处理。With the development of display technology, users have higher and higher requirements for the intelligent functions of the display. For example, lighting a static image in a high-brightness state for a long time will easily cause TFT aging and afterimage, thus affecting the display effect of the display. Therefore, , it is required that the display can perform brightness attenuation processing on the static picture by itself.

目前进行亮度衰减处理的一般方式可以为:对当前静态画面的每一个子像素的亮度进行衰减,可以对每一个子像素的亮度乘以一个小于1的比例系数,该衰减方式实现起来比较简单,但是存在以下缺陷:第一,不同初始亮度的静态画面,采用相同的数衰减比例,对于初始亮度较低的静态画面,衰减稳定后得到的稳定亮度过低,影响用户的观看效果;第二,不同初始亮度的静态画面,采用相同的数衰减时间,对于初始亮度较高的静态画面,衰减过程中屏幕容易产生残像;第三,对于不同颜色静态画面,当画面平均亮度(AveragePixel Level,简称为:APL)值不同时,采用不同的亮度衰减比例,这样会造成不同APL值衰减后的稳定亮度不同,从而产生色偏。显然地,现有技术中的亮度衰减方式,针对不同初始状态的静态画面采用单一形式的亮度衰减方式,导致衰减后得到的稳定亮度可能并不适应当前应用场景,并且容易产生残像和出现色偏。At present, the general method of brightness attenuation processing can be as follows: Attenuate the brightness of each sub-pixel of the current static image, and multiply the brightness of each sub-pixel by a proportional coefficient less than 1. This attenuation method is relatively simple to implement. However, there are the following defects: First, the static images with different initial brightness use the same numerical attenuation ratio. For static images with low initial brightness, the stable brightness obtained after the attenuation is stabilized is too low, which affects the user's viewing effect; second, For static images with different initial brightness, the same decay time is used. For static images with higher initial brightness, the screen is prone to afterimages during the decay process. Third, for static images with different colors, when the average brightness of the image (AveragePixel Level, referred to as : APL) values are different, different brightness attenuation ratios are used, which will cause different stable brightness after attenuation of different APL values, resulting in color shift. Obviously, the brightness attenuation method in the prior art adopts a single form of brightness attenuation method for static images in different initial states, resulting in the stable brightness obtained after attenuation may not be suitable for the current application scene, and prone to afterimages and color shifts. .

发明内容SUMMARY OF THE INVENTION

为了解决上述技术问题,本发明实施例提供了一种亮度处理方法、装置、计算机设备及可读存储介质,以解决现有技术中的亮度衰减方式,由于针对不同初始状态的静态画面采用单一形式的亮度衰减方式,从而导致衰减后得到的稳定亮度可能并不适应当前应用场景,以及容易产生残像和出现色偏的问题。In order to solve the above-mentioned technical problems, the embodiments of the present invention provide a brightness processing method, apparatus, computer equipment and readable storage medium to solve the brightness attenuation method in the prior art, since a single form is used for static pictures of different initial states Therefore, the stable brightness obtained after attenuation may not be suitable for the current application scene, and it is prone to after-image and color cast problems.

本发明实施例提供一种亮度处理方法,包括:An embodiment of the present invention provides a brightness processing method, including:

根据静态画面的初始画面平均亮度APL值获取所述静态画面的初始亮度增益Gain值;Obtain the initial brightness gain Gain value of the static picture according to the average brightness APL value of the initial picture of the static picture;

根据所述静态画面的初始Gain值、所述静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;According to the initial Gain value of the static picture, the stable Gain value after the static picture completes the attenuation, and the preset attenuation time, obtain the gain value attenuation rate;

通过所述Gain值衰减速率对所述静态画面进行亮度衰减处理,并获取所述静态画面完成衰减后的稳定亮度值。Perform brightness attenuation processing on the static image according to the Gain value attenuation rate, and obtain a stable brightness value of the static image after the attenuation is completed.

可选地,如上所述的亮度处理方法中,所述静态画面的Gain值衰减速率为:Optionally, in the brightness processing method as described above, the decay rate of the Gain value of the static picture is:

V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ;

其中,所述Gain0为所述初始Gain值,所述tmax为预置衰减时间,所述Gainmin为所述静态画面的Gain最小值,所述q为预设的衰减比例,所述Gainmin*(1-q)为完成衰减后的稳定Gain值。Wherein, the Gain 0 is the initial Gain value, the t max is the preset attenuation time, the Gain min is the minimum gain of the static image, the q is the preset attenuation ratio, and the Gain min *(1-q) is the stable Gain value after the decay is completed.

可选地,如上所述的亮度处理方法中,还包括:Optionally, in the above-mentioned brightness processing method, it also includes:

根据所述静态画面完成衰减后的稳定亮度值对所述衰减比例进行调整。The attenuation ratio is adjusted according to the stable brightness value of the static image after the attenuation is completed.

可选地,如上所述的亮度处理方法中,所述获取所述静态画面的Gain值衰减速率之后,所述方法还包括:Optionally, in the brightness processing method as described above, after acquiring the decay rate of the Gain value of the static image, the method further includes:

根据所述初始Gain值、所述Gain值衰减速率和已衰减时间,获取所述静态画面在衰减过程中的当前Gain值;Obtain the current Gain value of the static image during the decay process according to the initial Gain value, the decay rate of the Gain value and the decayed time;

根据所述当前Gain值得到所述静态画面在衰减过程中的当前亮度值;Obtain the current brightness value of the static image in the decay process according to the current Gain value;

所述获取所述静态画面完成衰减后的稳定亮度值,包括:The obtaining of the stable brightness value of the static image after the attenuation is completed includes:

当所述已衰减时间到达所述预置衰减时间时,计算所述稳定亮度值为:When the decayed time reaches the preset decay time, calculate the stable brightness value as:

L'=L*(Gain0-V_gain*tmax);其中,所述L表示红绿蓝子像素增加白色子像素(RGB-RGBW)之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, the L represents the brightness of the red, green and blue sub-pixels after adding the white sub-pixels (RGB-RGBW);

当所述已衰减时间未到达所述预置衰减时间时,根据所述当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as a stable luminance value.

可选地,如上所述的亮度处理方法中,还包括:Optionally, in the above-mentioned brightness processing method, it also includes:

根据显示画面的初始画面平均亮度APL值确定所述显示画面的静态判断时间;Determine the static judgment time of the display picture according to the average brightness APL value of the initial picture of the display picture;

在所述静态判断时间内,根据所述显示画面每一帧的画面亮度进行静态判断。During the static judgment time, static judgment is performed according to the picture brightness of each frame of the display picture.

可选地,如上所述的亮度处理方法中,所述根据显示画面的初始APL值确定所述显示画面的静态判断时间,包括:Optionally, in the brightness processing method as described above, the determining the static judgment time of the display image according to the initial APL value of the display image includes:

当所述初始APL值为0到0.05时,所述静态判断时间为:When the initial APL value is 0 to 0.05, the static judgment time is:

T=-1000*APL0+60;T=-1000*APL 0 +60;

当所述初始APL值为0.05到0.5时,所述静态判断时间为:When the initial APL value is 0.05 to 0.5, the static judgment time is:

T=111*APL0+4.45;T=111*APL 0 +4.45;

当所述初始APL值为0.5到1时,所述静态判断时间为:When the initial APL value is 0.5 to 1, the static judgment time is:

T=100*APL0+110;T=100*APL 0 +110;

其中,所述T为所述静态判断时间,所述APL0为初始APL值。Wherein, the T is the static judgment time, and the APL 0 is the initial APL value.

本发明实施例还提供一种亮度处理装置,包括:An embodiment of the present invention also provides a brightness processing device, including:

获取模块,用于根据静态画面的初始画面平均亮度APL值获取所述静态画面的初始亮度增益Gain值;an acquisition module, configured to acquire the initial brightness gain Gain value of the static picture according to the average brightness APL value of the initial picture of the static picture;

速率计算模块,用于根据所述静态画面的初始Gain值、所述静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;a rate calculation module, configured to obtain the gain value decay rate according to the initial Gain value of the static image, the stable Gain value after the static image has been attenuated, and a preset decay time;

亮度衰减模块,用于通过所述Gain值衰减速率对所述静态画面进行亮度衰减处理;A brightness attenuation module, configured to perform brightness attenuation processing on the static image by using the Gain value attenuation rate;

亮度获取模块,用于获取所述静态画面完成衰减后的稳定亮度值。A brightness acquisition module, configured to acquire the stable brightness value of the static image after the attenuation is completed.

可选地,如上所述的亮度处理装置中,所述速率计算模块计算出所述Gain值衰减速率为:Optionally, in the brightness processing device as described above, the rate calculation module calculates the decay rate of the Gain value as:

V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ;

其中,所述Gain0为所述初始Gain值,所述tmax为预置衰减时间,所述Gainmin为所述静态画面的Gain最小值,所述q为预设的衰减比例,所述Gainmin*(1-q)为完成衰减后的稳定Gain值。Wherein, the Gain 0 is the initial Gain value, the t max is the preset attenuation time, the Gain min is the minimum gain of the static image, the q is the preset attenuation ratio, and the Gain min *(1-q) is the stable Gain value after the decay is completed.

可选地,如上所述的亮度处理装置中,还包括:Optionally, in the above-mentioned brightness processing device, it also includes:

调整模块,用于根据所述静态画面完成衰减后的稳定亮度值对所述衰减比例进行调整。An adjustment module, configured to adjust the attenuation ratio according to the stable brightness value after the static image has been attenuated.

可选地,如上所述的亮度处理装置中,还包括:Optionally, in the above-mentioned brightness processing device, it also includes:

中间值计算模块,用于根据所述初始Gain值、所述Gain值衰减速率和已衰减时间,获取所述静态画面在衰减过程中的当前Gain值;an intermediate value calculation module, configured to obtain the current Gain value of the static image during the decay process according to the initial Gain value, the decay rate of the Gain value and the decayed time;

所述中间值计算模块,还用于根据所述当前Gain值得到所述静态画面在衰减过程中的当前亮度值;The intermediate value calculation module is further configured to obtain the current brightness value of the static image in the decay process according to the current Gain value;

所述亮度获取模块获取所述静态画面完成衰减后的稳定亮度值,包括:The brightness obtaining module obtains the stable brightness value of the static image after the attenuation is completed, including:

当所述已衰减时间到达所述预置衰减时间时,计算所述稳定亮度值为:When the decayed time reaches the preset decay time, calculate the stable brightness value as:

L'=L*(Gain0-V_gain*tmax);其中,所述L表示红绿蓝子像素增加白色子像素(RGB-RGBW)之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, the L represents the brightness of the red, green and blue sub-pixels after adding the white sub-pixels (RGB-RGBW);

当所述已衰减时间未到达所述预置衰减时间时,根据所述当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as a stable luminance value.

可选地,如上所述的亮度处理装置中,还包括:Optionally, in the above-mentioned brightness processing device, it also includes:

时间确定模块,用于根据显示画面的初始画面平均亮度APL值确定所述显示画面的静态判断时间;a time determination module, configured to determine the static judgment time of the display image according to the average brightness APL value of the initial image of the display image;

静态判断模块,用于在所述静态判断时间内,根据所述显示画面每一帧的画面亮度进行静态判断。The static judgment module is configured to perform static judgment according to the picture brightness of each frame of the displayed picture within the static judgment time.

本发明实施例还提供一种计算机设备,包括:存储器和处理器;An embodiment of the present invention also provides a computer device, including: a memory and a processor;

所述存储器,用于保存可执行指令;the memory for storing executable instructions;

所述处理器,用于在执行所述存储器保存的所述可执行指令时实现如上述任一项所述的亮度处理方法。The processor is configured to implement the brightness processing method according to any one of the above when executing the executable instructions stored in the memory.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有可执行指令,所述可执行指令被处理器执行时实现如上述任一项所述的亮度处理方法。An embodiment of the present invention further provides a computer-readable storage medium, where executable instructions are stored in the computer-readable storage medium, and when the executable instructions are executed by a processor, the brightness processing method according to any one of the foregoing is implemented.

本发明实施例提供的亮度处理方法、装置、计算机设备及可读存储介质,根据静态画面的初始APL值获取该静态画面的初始Gain值,并根据该初始Gain值、静态画面完成衰减后的Gain值和预置衰减时间,计算出Gain值衰减速率,从而采用该Gain值衰减速率对静态画面进行亮度衰减处理,完成衰减后获取合适的稳定亮度值;本发明实施例提供的亮度处理方法,对于不同颜色和初始效果的静态画面,处理过程中采用与之匹配的Gain值衰减速率进行亮度衰减,完成衰减后得到适应性较高的稳定亮度值,另外,对于不同颜色的静态画面,基于初始APL值计算出的Gain值衰减速率进行亮度衰减,避免衰减后产生色偏的现象;解决了现有技术中的亮度衰减方式,由于针对不同初始状态的静态画面采用单一形式的亮度衰减方式,从而导致衰减后得到的稳定亮度的适应性较差,以及容易产生残像和出现色偏的问题。In the brightness processing method, device, computer equipment, and readable storage medium provided by the embodiments of the present invention, the initial Gain value of the static picture is obtained according to the initial APL value of the static picture, and the attenuated Gain value after the static picture is completed according to the initial Gain value and the static picture is obtained. value and preset decay time, calculate the decay rate of the Gain value, and then use the gain value decay rate to perform luminance decay processing on the static image, and obtain a suitable stable luminance value after the decay is completed; the luminance processing method provided by the embodiment of the present invention, for For static pictures with different colors and initial effects, the brightness attenuation is performed at the matching Gain value attenuation rate during the processing. After the attenuation is completed, a stable brightness value with high adaptability is obtained. In addition, for static pictures of different colors, based on the initial APL The gain value attenuation rate calculated from the calculated value is used for brightness attenuation to avoid the phenomenon of color shift after attenuation; the brightness attenuation method in the prior art is solved. The stable brightness obtained after attenuation has poor adaptability, and is prone to after-image and color cast problems.

附图说明Description of drawings

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solutions of the present invention, and constitute a part of the specification. They are used to explain the technical solutions of the present invention together with the embodiments of the present application, and do not limit the technical solutions of the present invention.

图1为本发明实施例提供的一种亮度处理方法的流程图;FIG. 1 is a flowchart of a brightness processing method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种亮度处理方法的流程图;2 is a flowchart of another brightness processing method provided by an embodiment of the present invention;

图3为本发明实施例提供的又一种亮度处理方法的流程图;3 is a flowchart of another brightness processing method provided by an embodiment of the present invention;

图4为本发明实施例提供的亮度处理方法中一种APL值与静态判断时间的关系曲线图;4 is a graph showing the relationship between an APL value and a static judgment time in a brightness processing method provided by an embodiment of the present invention;

图5为本发明实施例提供的再一种亮度处理方法的流程图;FIG. 5 is a flowchart of still another brightness processing method provided by an embodiment of the present invention;

图6为采用本发明实施例提供的亮度处理方法进行亮度衰减后的效果图;FIG. 6 is an effect diagram after brightness attenuation is performed by using the brightness processing method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种亮度处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a luminance processing apparatus according to an embodiment of the present invention;

图8为本发明实施例提供的另一种亮度处理装置的结构示意图;FIG. 8 is a schematic structural diagram of another luminance processing apparatus provided by an embodiment of the present invention;

图9为本发明实施例提供的又一种亮度处理装置的结构示意图;FIG. 9 is a schematic structural diagram of another luminance processing apparatus provided by an embodiment of the present invention;

图10为本发明实施例提供的一种计算机设备的结构示意图。FIG. 10 is a schematic structural diagram of a computer device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, the embodiments in the present application and the features in the embodiments may be arbitrarily combined with each other if there is no conflict.

本发明提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The present invention provides the following specific embodiments that can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图1为本发明实施例提供的一种亮度处理方法的流程图。本发明实施例提供的亮度处理方法可以包括如下步骤:FIG. 1 is a flowchart of a brightness processing method according to an embodiment of the present invention. The brightness processing method provided by the embodiment of the present invention may include the following steps:

S110,根据静态画面的初始APL值获取该静态画面的初始亮度增益(Gain)值。S110: Acquire an initial luminance gain (Gain) value of the static image according to the initial APL value of the static image.

本发明实施例提供的亮度处理方法,用于对显示器显示的静态画面进行亮度衰减处理的方法。也就是说,本发明实施例的应用场景为:显示器目前显示的画面为静态画面时,对该静态画面进行亮度衰减处理,若显示器的显示屏长时间显示高亮度静态画面,容易造成TFT老化,并且产生残像,影响显示器的显示效果,因此,在显示器的显示过程中,可以针对长时间显示的静态画面进行亮度衰减处理,以降低显示屏的显示亮度,从而起到保护显示屏显示性能、延迟显示屏使用寿命的作用。The brightness processing method provided by the embodiment of the present invention is a method for performing brightness attenuation processing on a static image displayed by a display. That is to say, the application scenario of the embodiment of the present invention is: when the picture currently displayed by the display is a static picture, the brightness attenuation processing is performed on the static picture. In addition, afterimages are generated, which affects the display effect of the display. Therefore, during the display process of the display, the brightness attenuation processing can be performed on the static images displayed for a long time to reduce the display brightness of the display, thus protecting the display performance and delay of the display. The role of display life.

在本发明实施例中,可以通过对显示过程中前后几帧画面中子像素的判断,确定当前显示的画面是否为静态画面,在判断出当前显示的画面为静态画面后,已知该静态画面的初始APL值,可以根据该初始APL值获取静态画面的初始Gain值。本发明实施例中获取初始Gain值的实现方式如下所述,静态画面的初始APL值的计算方式为:In the embodiment of the present invention, it can be determined whether the currently displayed picture is a static picture by judging the sub-pixels in the pictures before and after the display process. After judging that the currently displayed picture is a static picture, the static picture is known. The initial APL value of , and the initial Gain value of the static picture can be obtained according to the initial APL value. The implementation manner of obtaining the initial Gain value in the embodiment of the present invention is as follows, and the calculation method of the initial APL value of the static picture is:

APL0=Sum/Max;APL 0 =Sum/Max;

其中,APL0为初始APL值,Sum为显示屏全屏显示时一帧画面的亮度总和,Max为一帧画面的亮度峰值;Among them, APL 0 is the initial APL value, Sum is the total brightness of a frame when the display screen is displayed in full screen, and Max is the peak brightness of a frame;

Sum=Sum_tmp=(Lr_Sum+Lg_Sum)+(Lb_Sum+Lw_Sum);Sum=Sum_tmp=(Lr_Sum+Lg_Sum)+(Lb_Sum+Lw_Sum);

其中,Sum_tmp为当前亮度总值,Lr_Sum为红色子像素亮度总值,Lg_Sum为绿色子像素亮度总值,Lb_Sum为蓝色子像素亮度总值,Lw_Sum为白色子像素亮度总值;Among them, Sum_tmp is the total value of the current brightness, Lr_Sum is the total value of the brightness of the red sub-pixel, Lg_Sum is the total value of the brightness of the green sub-pixel, Lb_Sum is the total value of the brightness of the blue sub-pixel, and Lw_Sum is the total value of the brightness of the white sub-pixel;

Max=3840*2*2160*1048575。Max=3840*2*2160*1048575.

需要说明的是,上述只是Max值的一种示意性表示,Max有其它值的可能情况,但是Max值是确定的,表示最大画面的亮度总值,画面的亮度随显示的画面不一样其亮度值不一样,但不会超过Max。It should be noted that the above is only a schematic representation of the Max value. There are other possible values for Max, but the Max value is determined and represents the total brightness of the maximum screen. The brightness of the screen varies with the displayed screen. The values are not the same, but will not exceed Max.

通过上述公式可以得到静态画面的初始APL值,对于某一静态画面来说,初始APL值与初始Gain值为一一对应的关系,可以直接根据该初始APL值确定静态画面的初始Gain值,例如采用高动态范围图像(High-Dynamic Range,简称为:HDR)算法中Gain值计算方式,以下设定:The initial APL value of the static picture can be obtained through the above formula. For a certain static picture, there is a one-to-one correspondence between the initial APL value and the initial Gain value, and the initial Gain value of the static picture can be determined directly according to the initial APL value, for example The Gain value calculation method in the High-Dynamic Range (High-Dynamic Range, referred to as: HDR) algorithm is adopted, and the following settings are used:

i=(Sum/Max)*255=APL*255;其中,由于普通画面的每个像素具有0~255的灰阶范围,因此设定i=APL*255进行Gain0的计算。i=(Sum/Max)*255=APL*255; wherein, since each pixel of a normal picture has a gray scale range of 0 to 255, i=APL*255 is set to perform the calculation of Gain 0 .

另外,针对不同类型画面,对初始Gain值进行计算的结果,例如包括:In addition, for different types of pictures, the results of calculating the initial Gain value, for example, include:

1)、单色画面10%以下区域:Gain0=256;1), the area below 10% of the monochrome screen: Gain 0 = 256;

2)、单色画面10%~25%的区域:Gain0=-4.462*i+312.9;2), the area of 10% to 25% of the monochrome screen: Gain 0 =-4.462*i+312.9;

3)、单色画面25%~100%的区域:Gain0=0.009999*i^2-2.709*i+246.9;3) The area of 25% to 100% of the monochrome screen: Gain 0 =0.009999*i^2-2.709*i+246.9;

4)、混色画面区域内,电流较高,全屏目标亮度下降为80尼特(nit),Gain0=0.1673*i+85.33。4) In the color mixing screen area, the current is relatively high, the full-screen target brightness drops to 80 nits (nit), and Gain 0 =0.1673*i+85.33.

根据上述计算方式,可以得到静态画面的初始Gain值,即进行亮度衰减前的Gain值。According to the above calculation method, the initial Gain value of the static image, that is, the Gain value before luminance attenuation can be obtained.

S120,根据静态画面的初始Gain值、该静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;S120, according to the initial Gain value of the static picture, the stable Gain value after the static picture is attenuated, and the preset decay time, obtain the gain value decay rate;

S130,通过Gain值衰减速率对静态画面进行亮度衰减处理,并获取静态画面完成衰减后的稳定亮度值。S130 , perform brightness attenuation processing on the static image according to the Gain value attenuation rate, and obtain a stable brightness value of the static image after the attenuation is completed.

在本发明实施例中,对静态画面的亮度衰减,可以通过对Gain值的衰减来实现,例如可以设定静态画面完成衰减后的稳定Gain值,该稳定Gain值可以采用一个关系式定义,另外,衰减时间是预先设置的(本发明实施例中的衰减时间例如设定为256秒),因此,可以计算出该静态画面在衰减过程中的Gain值衰减速率,该Gain值衰减速率即为静态画面进行衰减的标准。随后,可以以已经确定的Gain值衰减速率对该静态画面执行亮度衰减处理,即在预置衰减时间内,以每秒确定的速率进行衰减,直到到达预置衰减时间,完成衰减,此时,可以获取到完成衰减后静态画面的稳定亮度值,即本发明实施例执行亮度衰减的最终效果。In the embodiment of the present invention, the attenuation of the brightness of the static image can be achieved by the attenuation of the Gain value. For example, a stable Gain value after the static image has been attenuated can be set, and the stable Gain value can be defined by a relational formula. , the decay time is preset (for example, the decay time in the embodiment of the present invention is set to 256 seconds), therefore, the decay rate of the Gain value of the static image during the decay process can be calculated, and the decay rate of the Gain value is the static The standard for image attenuation. Subsequently, the brightness attenuation process can be performed on the static image at the determined decay rate of the Gain value, that is, the attenuation is performed at a rate determined per second within the preset decay time, until the preset decay time is reached, and the decay is completed. At this time, The stable brightness value of the static image after the attenuation can be obtained, that is, the final effect of brightness attenuation performed by the embodiment of the present invention.

在本发明实施例中,设定稳定Gain值的方式可以为:依据HDR算法,255灰阶下混色画面全屏显示时,设定为Gain的最小值,记为Gainmin(该Gainmin可以由设计人员认为设定,且Gainmin小于Gain0),将固定灰阶下全屏显示的亮度衰减的比例定为q,从而可以得到稳定Gain值为:Gainmin*(1-q)。根据上述初始Gain值(Gain0)、完成衰减后稳定的Gain值(即Gainmin*(1-q)),以及预置衰减时间,则可以计算出Gain值衰减速率。另外,还可以定义静态画面一帧的初始亮度为:L*Gain0,其中,L表示红绿蓝三色子像素(Red、Green,Blue,简称为:RGB)增加白色子像素(White)(即RGB-RGBW)之后的亮度,并设定L'为静态画面完成衰减后的稳定亮度值,L'=L*Gainmin*(1-q),L为当前(即未进行亮度衰减前)画面的亮度值。In the embodiment of the present invention, the method of setting the stable Gain value may be: according to the HDR algorithm, when the full-screen display of the mixed color picture under 255 grayscale is set as the minimum value of Gain, which is recorded as Gain min (this Gain min can be designed by The staff thinks that it is set, and Gain min is less than Gain 0 ), and the ratio of the brightness attenuation of the full-screen display under a fixed grayscale is set as q, so that the stable Gain value can be obtained: Gain min *(1-q). According to the above-mentioned initial Gain value (Gain 0 ), the stable Gain value after the decay is completed (ie Gain min *(1-q)), and the preset decay time, the decay rate of the Gain value can be calculated. In addition, the initial brightness of a frame of a static image can also be defined as: L*Gain 0 , where L represents the red, green, and blue sub-pixels (Red, Green, Blue, abbreviated as: RGB) plus a white sub-pixel (White) ( That is, the brightness after RGB-RGBW), and set L' as the stable brightness value after the static image is attenuated, L'=L*Gain min *(1-q), L is the current (that is, before the brightness attenuation is not performed) The brightness value of the screen.

现有技术中的亮度衰减方式,仅依据静态画面的亮度作为衰减的初始条件,采用乘以小于1的比例系数对静态画面的每一个子像素进行亮度衰减的方式,由于采用相同的衰减比例,以及相同的衰减时间进行处理,会导致初始画面低亮度的情况下,最终稳定的亮度过低影响观看效果,初始画面高亮度的情况下,最终稳定的亮度过高容易出现残像;另外,对于不同颜色静态画面,当画面的APL值变化时,采用不同衰减比例进行亮度衰减后最终稳定的亮度不一致,从而会产生色偏。In the brightness attenuation method in the prior art, the brightness of the static image is only used as the initial condition of attenuation, and the brightness attenuation of each sub-pixel of the static image is multiplied by a proportional coefficient less than 1. Since the same attenuation ratio is used, and processing with the same decay time, it will cause the final stable brightness to be too low to affect the viewing effect when the initial image is low-brightness. In a static color picture, when the APL value of the picture changes, the final stable brightness after brightness attenuation with different attenuation ratios is inconsistent, resulting in color cast.

相比之下,本发明实施例根据静态画面的初始APL值获取对应的初始Gain值,并设定完成衰减后的稳定Gain值,并且根据计算出的Gain值衰减速率对静态画面进行衰减处理,以衰减后稳定的亮度增益为亮度衰减的最终结果,从而得到静态画面完成衰减后的稳定亮度值。在该过程中,获取初始Gain值的方式基于HDR算法中APL值与Gain值的对应方式,不同颜色和初始效果的画面,初始APL值对应的初始Gain值不同,因此,本发明实施例提供的亮度处理方法,对于不同类型的静态画面(例如为不同颜色和初始效果的静态画面),处理过程中采用与之匹配的Gain值衰减速率进行亮度衰减,可以以更适应当前静态画面的方式进行亮度衰减,并且完成衰减后得到适应性较高的稳定亮度值。In contrast, the embodiment of the present invention obtains the corresponding initial Gain value according to the initial APL value of the static picture, sets the stable Gain value after the attenuation is completed, and performs attenuation processing on the static picture according to the calculated gain value attenuation rate, Taking the stable brightness gain after attenuation as the final result of brightness attenuation, the stable brightness value of the static image after attenuation is obtained. In this process, the method of obtaining the initial Gain value is based on the correspondence between the APL value and the Gain value in the HDR algorithm. For pictures with different colors and initial effects, the initial Gain value corresponding to the initial APL value is different. Therefore, the embodiments of the present invention provide Brightness processing method, for different types of static pictures (such as static pictures with different colors and initial effects), the brightness attenuation is performed at the matching Gain value attenuation rate during the processing process, which can be more suitable for the current static picture. Attenuation, and after the attenuation is completed, a stable brightness value with higher adaptability is obtained.

本发明实施例提供的亮度处理方法,根据静态画面的初始APL值获取该静态画面的初始Gain值,并根据该初始Gain值、静态画面完成衰减后的Gain值和预置衰减时间,计算出Gain值衰减速率,从而采用该Gain值衰减速率对静态画面进行亮度衰减处理,完成衰减后获取合适的稳定亮度值;本发明实施例提供的亮度处理方法,对于不同类型的静态画面(例如为不同颜色和初始效果的静态画面),处理过程中采用与之匹配的Gain值衰减速率进行亮度衰减,完成衰减后得到适应性较高的稳定亮度值,另外,对于不同颜色的静态画面,基于初始APL值计算出的Gain值衰减速率进行亮度衰减,避免衰减后产生色偏的现象;解决了现有技术中的亮度衰减方式,由于针对不同初始状态的静态画面采用单一形式的亮度衰减方式,从而导致衰减后得到的稳定亮度的适应性较差,以及容易产生残像和出现色偏的问题。In the brightness processing method provided by the embodiment of the present invention, the initial Gain value of the static picture is obtained according to the initial APL value of the static picture, and the Gain value is calculated according to the initial Gain value, the Gain value after the static picture has been attenuated, and the preset decay time. value attenuation rate, so that the static image is subjected to brightness attenuation processing using the Gain value attenuation rate, and an appropriate stable brightness value is obtained after the attenuation is completed; the brightness processing method provided by the embodiment of the present invention can be and the static image of the initial effect), the brightness attenuation is performed at the matching Gain value attenuation rate during the processing, and a stable brightness value with high adaptability is obtained after the attenuation is completed. In addition, for static images of different colors, based on the initial APL value The calculated Gain value attenuation rate is used for brightness attenuation to avoid the phenomenon of color shift after attenuation; it solves the brightness attenuation method in the prior art, because a single form of brightness attenuation method is used for static images in different initial states, resulting in attenuation. The resulting stable brightness has poor adaptability, and is prone to afterimage and color cast problems.

可选地,在本发明实施例中,根据上述完成衰减后的稳定Gain值的表达公式可知,静态画面的Gain值衰减速率为:Optionally, in the embodiment of the present invention, according to the expression formula of the stable Gain value after the attenuation is completed, it can be known that the attenuation rate of the Gain value of the static picture is:

V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ;

其中,Gain0为初始Gain值,tmax为预置衰减时间,Gainmin为静态画面的Gain最小值,q为预设的衰减比例,Gainmin*(1-q)为完成衰减后的稳定Gain值。Among them, Gain 0 is the initial Gain value, t max is the preset attenuation time, Gain min is the minimum gain of the static image, q is the preset attenuation ratio, Gain min *(1-q) is the stable Gain after the attenuation is completed value.

在本发明实施例中,基于普通画面中每个像素具有0~255的灰阶范围,例如可以设定预置衰减时间tmax为256秒(s),已知初始Gain值、稳定Gain值和衰减时间,可以得到Gain值衰减速率。在亮度衰减过程中,以V_gain进行衰减处理,当衰减时间到达256s时,结束衰减。In this embodiment of the present invention, based on the gray scale range of 0 to 255 for each pixel in a common picture, for example, the preset decay time t max may be set to 256 seconds (s), the initial Gain value, the stable Gain value and Decay time, you can get the decay rate of Gain value. In the process of brightness attenuation, V_gain is used for attenuation processing. When the attenuation time reaches 256s, the attenuation is ended.

可选地,本发明实施例提供的方法还可以包括:Optionally, the method provided in the embodiment of the present invention may further include:

根据静态画面完成衰减后的稳定亮度值对衰减比例进行调整。Adjust the attenuation ratio according to the stable brightness value after the static image is attenuated.

在本发明实施例中,衰减比例q例如可以预先设置为定值0.5,如果衰减比例过大或者最终得到的稳定亮度值过低,可以对q衰减比例进行调整,以得到适应性更高的稳定亮度值。In this embodiment of the present invention, the attenuation ratio q may be preset to a fixed value of 0.5, for example. If the attenuation ratio is too large or the final stable brightness value is too low, the q attenuation ratio can be adjusted to obtain a more adaptive stability Brightness value.

可选地,图2为本发明实施例提供的另一种亮度处理方法的流程图。在图1所示实施例的基础上,本发明实施例提供的方法在S120之后,还可以包括:Optionally, FIG. 2 is a flowchart of another brightness processing method provided by an embodiment of the present invention. On the basis of the embodiment shown in FIG. 1 , after S120, the method provided by the embodiment of the present invention may further include:

S121,根据初始Gain值、Gain值衰减速率和已衰减时间,获取静态画面在衰减过程中的当前Gain值;S121, obtain the current Gain value of the static image during the decay process according to the initial Gain value, the decay rate of the Gain value, and the decayed time;

S122,根据当前Gain值得到静态画面在衰减过程中的当前亮度值。S122, obtaining the current brightness value of the static image in the decay process according to the current Gain value.

在本发明实施例中,静态画面在衰减过程中的当前Gain值是指,在衰减过程中(即在预置衰减时间之内的某个时间点)的Gain值,即从初始Gain值开始衰减,当前Gain值为衰减过程中Gain值的中间量,相应地,可以得到该当前Gain值对应的当前亮度值。本发明实施例中的当前Gain值为:Gaint=Gain0-V_gain*t,Gaint表示静态画面在已衰减时间t的Gain值,当前亮度值为:Lt=L*Gaint=L*(Gain0-V_gain*t),Lt表示静态画面在已衰减时间t的亮度值。In this embodiment of the present invention, the current Gain value of the static image during the decay process refers to the Gain value during the decay process (that is, at a certain time point within the preset decay time), that is, the decay starts from the initial Gain value , the current Gain value is the middle amount of the Gain value in the decay process, and correspondingly, the current brightness value corresponding to the current Gain value can be obtained. The current Gain value in the embodiment of the present invention is: Gain t =Gain 0 -V_gain*t, Gain t represents the Gain value of the static image at the decay time t, and the current luminance value is: L t =L*Gain t =L* (Gain 0 -V_gain*t), L t represents the luminance value of the static picture at the decayed time t.

在发明实施例中,获取静态画面完成衰减后的稳定亮度值的实现方式可以包括:In the embodiment of the invention, the implementation manner of obtaining the stable brightness value of the static image after the attenuation is completed may include:

当已衰减时间到达预置衰减时间时,计算稳定亮度值为:When the decay time reaches the preset decay time, the calculated stable brightness value is:

L'=L*(Gain0-V_gain*tmax);其中,L为RGB-RGBW之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, L is the brightness after RGB-RGBW;

当已衰减时间未到达预置衰减时间时,根据当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as the stable luminance value.

根据上述稳定亮度值的计算方式可知,若已衰减时间已经达到预置衰减时间,说明已经完成亮度衰减,此时可以根据初始Gain值,Gain值衰减速率和预置衰减时间计算得到稳定亮度值,即上述L';若已衰减时间还未达到预置衰减时间,则可以继续进行衰减处理,此时,可以根据当前亮度值Lt判断当前一帧的亮度是否与前一帧的亮度相同,当亮度相同时,表示显示画面仍为静态画面,进行通过V_gain进行亮度衰减,当亮度不同时,表示显示画面发生变化,则以新输入的亮度作为稳定亮度值。According to the above calculation method of the stable brightness value, if the decay time has reached the preset decay time, it means that the brightness decay has been completed. At this time, the stable brightness value can be calculated according to the initial Gain value, the decay rate of the Gain value and the preset decay time. That is, the above L ' ; if the decay time has not reached the preset decay time, the decay process can be continued. When the brightness is the same, it means that the displayed image is still a static image, and the brightness is attenuated through V_gain. When the brightness is different, it means that the displayed image has changed, and the newly input brightness is used as the stable brightness value.

可选地,图3为本发明实施例提供的又一种亮度处理方法的流程图。在上述实施例的基础上,本发明实施例提供的方法在S110之前,还可以包括:Optionally, FIG. 3 is a flowchart of still another brightness processing method provided by an embodiment of the present invention. On the basis of the foregoing embodiment, before S110, the method provided in this embodiment of the present invention may further include:

S100,根据显示画面的初始APL值确定显示画面的静态判断时间;S100, determining the static judgment time of the display screen according to the initial APL value of the display screen;

S101,在静态判断时间内,根据显示画面每一帧的画面亮度进行静态判断。S101, within the static judgment time, perform static judgment according to the picture brightness of each frame of the display picture.

在本发明实施例中,对静态画面进行亮度衰减处理前,首先要判断显示器显示的画面是否为静态画面,现有技术中执行静态画面判断的时间通常是固定的,即所有类型的静态画面具有相同的静态判断时间。然而,在高灰阶的小窗口状态下,画面的亮度很高,长时间维持高亮度状态下,容易产生残像,所以在亮度衰减的过程中,对于亮度较高的静态画面,可以通过缩短显示画面的静态判断时间,以避免显示屏出现残像的现象。在实际应用中,可以依据静态画面的初始APL值的大小来设定静态判断时间的长短,随后,根据已确定的静态判断时间,在该实际内根据显示画面的每一帧的画面亮度进行静态判断,例如可以将当前一帧画面的亮度总和与前一帧画面的亮度总和进行对比,在进行多次循环对比后,达到静态判断时间时,每一帧的画面亮度总和均相等,则认为当前显示的画面为静态画面。图3所示实施例以在上述图1所示流程的基础上为例予以示出。In the embodiment of the present invention, before performing brightness attenuation processing on a static image, it is first necessary to determine whether the image displayed by the display is a static image. The same static judgment time. However, in the small window state with high gray scale, the brightness of the picture is very high. When the high brightness state is maintained for a long time, it is easy to produce afterimages. Therefore, during the process of brightness attenuation, for static pictures with high brightness, you can shorten the display by shortening the display. The static judgment time of the screen to avoid the phenomenon of afterimages on the display. In practical applications, the length of the static judgment time can be set according to the size of the initial APL value of the static picture, and then, according to the determined static judgment time, the static judgment is performed according to the picture brightness of each frame of the displayed picture within the actual situation. Judgment, for example, the total brightness of the current frame can be compared with the total brightness of the previous frame. After multiple cyclic comparisons, when the static judgment time is reached, the sum of the brightness of each frame is equal, then it is considered that the current The displayed screen is a static screen. The embodiment shown in FIG. 3 is illustrated based on the above-mentioned process shown in FIG. 1 as an example.

在本发明实施例的一种实现方式中,根据显示画面的初始APL值确定该显示画面的静态判断时间的实现方式,可以包括:In an implementation manner of the embodiment of the present invention, the implementation manner of determining the static judgment time of the display screen according to the initial APL value of the display screen may include:

当初始APL值在[0,0.05]时,T=-1000*APL0+60;When the initial APL value is in [0, 0.05], T=-1000*APL 0 +60;

当初始APL值在(0.05,0.5]时,T=111*APL0+4.45;When the initial APL value is at (0.05, 0.5], T=111*APL 0 +4.45;

当初始APL值在(0.5,1]时,T=100*APL0+110。When the initial APL value is at (0.5, 1], T=100*APL 0 +110.

需要说明的是,10%窗口,255灰阶下单色画面的APL值为0.05;100%窗口,255灰阶下单色画面的APL值为0.5;本发明实施例针对不同APL值的显示画面,静态判断时间采用分段式线性处理,减轻高灰阶下小窗口的静态画面产生残像效果。如图4所示,为本发明实施例提供的亮度处理方法中一种APL值与静态判断时间的关系曲线图。It should be noted that the APL value of a monochrome image in a 10% window and a grayscale of 255 is 0.05; the APL value of a monochrome image in a 100% window and a grayscale of 255 is 0.5; the embodiment of the present invention is directed to display images with different APL values , The static judgment time adopts segmented linear processing to reduce the afterimage effect of the static picture of the small window under high gray scale. As shown in FIG. 4 , it is a graph showing a relationship between an APL value and a static judgment time in the brightness processing method provided by the embodiment of the present invention.

本发明实施例通过显示画面的初始APL值限定进行静态判断的时间,有利于缩短对静态画面进行亮度衰减的整体时间,可以有效避免因显示屏长时间显示高亮度画面,造成显示的TFT老化,产生残像的现象。In the embodiment of the present invention, the time for static judgment is limited by the initial APL value of the displayed image, which is beneficial to shorten the overall time for brightness attenuation of the static image, and can effectively avoid the aging of the displayed TFT caused by the display screen displaying a high-brightness image for a long time. The phenomenon of afterimages.

图5为本发明实施例提供的再一种亮度处理方法的流程图,图5通过实施示例说明本发明实施例提供的亮度处理方法的流程,图5所示流程可以包括如下步骤:FIG. 5 is a flowchart of still another brightness processing method provided by an embodiment of the present invention. FIG. 5 illustrates the flowchart of the brightness processing method provided by an embodiment of the present invention by way of an implementation example. The flowchart shown in FIG. 5 may include the following steps:

S201,获取显示画面中前一帧的亮度总和,表示为Sumt-1S201, obtain the brightness sum of the previous frame in the display picture, which is represented as Sum t-1 ;

S202,获取显示画面中当前帧的亮度总和,表示为SumtS202, obtain the brightness sum of the current frame in the display screen, which is represented as Sum t ;

其中,每一帧的亮度总和为Sum;以Sumt表示当前帧的亮度总和,Sumt-1表示前一帧的亮度总和,Sum的计算方式与上述实施例中相同,故在此不再赘述。Wherein, the sum of the brightness of each frame is Sum; the sum of the brightness of the current frame is represented by Sum t , and the sum of the brightness of the previous frame is represented by Sum t-1 , and the calculation method of Sum is the same as in the above-mentioned embodiment, so it is not repeated here. .

S203,显示画面的当前帧依次递进为前一帧,即Nt-1=Nt,在获取Sumt的过程中,当前帧Nt依次变为前一帧,即随着时间的推进,可以不断获取当前帧Nt的亮度总和,SumtS203, the current frame of the display screen is successively advanced to the previous frame, that is, N t-1 =N t , in the process of acquiring Sum t , the current frame N t becomes the previous frame in turn, that is, as time progresses, The sum of the brightness of the current frame N t can be continuously obtained, Sum t .

S204,判断当前帧的亮度总和是否恒等于前一帧的亮度总和,即判断Sumt==Sumt-1?,当存在Sumt不等于Sumt-1的情况时,执行S205;当恒等于时,执行S207。S204, determine whether the total brightness of the current frame is always equal to the total brightness of the previous frame, that is, determine whether Sum t ==Sum t-1 ? , when there is a situation that Sum t is not equal to Sum t-1 , execute S205; when it is constant, execute S207.

也就是说,在判断时间内,只有当前帧的亮度总和一直等于前一帧的亮度总和,当前显示画面才是静态画面;若某一时刻,当前帧的亮度总和不等于前一帧的亮度总和,说明显示画面发生变化,即判断显示画面不是静态画面。That is to say, during the judgment time, only the sum of the brightness of the current frame is always equal to the sum of the brightness of the previous frame, and the currently displayed picture is a static picture; if at a certain moment, the sum of the brightness of the current frame is not equal to the sum of the brightness of the previous frame , indicating that the display screen has changed, that is, it is determined that the display screen is not a static screen.

S205,当前帧的亮度总和等于下一帧的亮度总和,即Sumt-1=SumtS205, the sum of the brightness of the current frame is equal to the sum of the brightness of the next frame, namely Sum t-1 =Sum t ;

S206,将当前帧置位为显示画面的前一帧,随后返回执行S202。S206, setting the current frame as the previous frame of the display screen, and then returning to S202.

本发实施例中,S205中Sumt-1=Sumt成立,也就是说,在S204中的某一时刻,判断恒等式不成立,且Sumt-1=Sumt时,将当前帧作为前一帧进行判断显示画面是否为静态画面。In this embodiment of the present invention, in S205, Sum t-1 =Sum t is established, that is, at a certain moment in S204, it is determined that the identity does not hold, and when Sum t-1 =Sum t , the current frame is regarded as the previous frame It is judged whether the display screen is a static screen or not.

S207,确定当前已判断的帧数是否等于待判断的帧数;S207, determining whether the number of frames currently judged is equal to the number of frames to be judged;

即判断Nt=60*T(APL0)?,在确定为是的情况下,执行S208,在确定为否的情况下,返回执行S201,即继续根据帧数判断显示画面是否为静态画面。That is, judge N t =60*T(APL 0 )? , if it is determined to be yes, execute S208 , and if it is determined to be no, return to execute S201 , that is, continue to determine whether the displayed picture is a static picture according to the number of frames.

其中,T(APL0)为APL0下静态画面的判断时间,60表示1s判断60帧,等式右边表示APL0下待判断的帧数,Nt表示当前已判断的帧数。需要说明的是,根据画面的初始APL值(APL0)确定静态画面的判断时间的方式,上述实施例中已经详细说明,故在此不再赘述。Among them, T(APL 0 ) is the judgment time of static pictures under APL 0 , 60 means 1s judges 60 frames, the right side of the equation means the number of frames to be judged under APL 0 , and N t means the number of frames currently judged. It should be noted that, the manner of determining the judgment time of the static picture according to the initial APL value (APL 0 ) of the picture has been described in detail in the above-mentioned embodiment, so it will not be repeated here.

S208,在完成上述S201到S207的判断后,可知当前显示画面为静态画面,此时,根据静态画面的APL0获取相应的Gain0S208, after completing the above-mentioned judgments from S201 to S207, it can be known that the currently displayed picture is a static picture, and at this time, the corresponding Gain 0 is obtained according to the APL 0 of the static picture;

S209,计算静态画面的Gain值衰减速率,并通过该Gain值衰减速率对静态画面进行亮度衰减;S209, calculate the gain value attenuation rate of the static image, and perform brightness attenuation on the static image through the Gain value attenuation rate;

S210,在亮度衰减过程中,计算静态画面的当前Gain值,该当前Gain值为:Gaint=Gain0-V_gain*t。S210 , in the process of luminance attenuation, calculate the current Gain value of the static image, where the current Gain value is: Gain t =Gain 0 −V_gain*t.

S211,根据当前Gain值,计算静态画面的当前亮度值,该当前亮度值为:Lt=L*Gaint=L*(Gain0-V_gain*t);S211, according to the current Gain value, calculate the current brightness value of the static picture, where the current brightness value is: L t =L*Gain t =L*(Gain 0 -V_gain*t);

S212,判断已衰减时间是否到达预置衰减时间,即判断t≥tmax?;预置衰减时间为tmax,当t≥tmax时,执行S213,当t<tmax时,执行S214。S212, judge whether the decayed time has reached the preset decay time, that is, judge whether t≥t max ? ; The preset decay time is t max , when t≥t max , execute S213, and when t<t max , execute S214.

S213,计算出静态画面完成亮度衰减后的稳定亮度值,该稳定亮度值为:L'=L*(Gain0-V_gain*tmax);S213, calculate the stable brightness value of the static image after the brightness attenuation is completed, and the stable brightness value is: L'=L*(Gain 0 -V_gain*t max );

S214,继续判断当前帧的亮度总和是否恒等于前一帧的亮度总和,即继续判断Sumt==Sumt-1?,当存在Sumt不等于Sumt-1的情况时,执行S215;当恒等于时,返回执行S209;S214, continue to judge whether the total brightness of the current frame is always equal to the total brightness of the previous frame, that is, continue to judge Sum t ==Sum t-1 ? , when there is a situation that Sum t is not equal to Sum t-1 , execute S215; when it is constant, return to execute S209;

S215,将新输入的亮度作为稳定亮度值。S215, take the newly input brightness as a stable brightness value.

也就是说,在预置衰减时间内,只要当前帧的亮度总和一直等于前一帧的亮度总和,说明当前显示画面仍为静态画面,则返回继续对静态画面进行亮度衰减;若某一时刻,当前帧的亮度总和不等于前一帧的亮度总和,说明显示画面发生变化,即判断显示画面不是静态画面,则此时将新输入的亮度作为稳定亮度值。That is to say, within the preset decay time, as long as the sum of the brightness of the current frame is always equal to the sum of the brightness of the previous frame, it means that the currently displayed picture is still a static picture, then return to continue to attenuate the brightness of the static picture; The sum of the brightness of the current frame is not equal to the sum of the brightness of the previous frame, indicating that the display image has changed, that is, it is judged that the display image is not a static image, and the newly input brightness is used as the stable brightness value at this time.

本发明实施例提供的亮度处理方法,在判断出显示器当前显示的画面为静态画面后,根据衰减后的稳定Gain值与初始Gain值的关系式,即Gain值衰减速率作为亮度衰减的依据,对当前显示的静态画面进行亮度衰减,最终得到静态画面的稳定亮度值,从而避免现有技术中,对于不同颜色的静态画面,随着静态画面APL值的变化,亮度衰减比例不同而造成的最终稳定亮度不一致,产生色偏的问题。如图6所示,为采用本发明实施例提供的亮度处理方法进行亮度衰减后的效果图,图6中示出了静态画面的RGBW中每种子像素的APL值与亮度下降比例的关系,可以看出,随着APL值的变化,RGBW的衰减比例趋势相同,且衰减比例值较为接近,在很大程度上避免了现有技术中的色偏问题。In the brightness processing method provided by the embodiment of the present invention, after judging that the picture currently displayed on the display is a static picture, according to the relationship between the stable Gain value after attenuation and the initial Gain value, that is, the attenuation rate of the Gain value, as the basis for brightness attenuation, The brightness of the currently displayed static picture is attenuated, and finally the stable brightness value of the static picture is obtained, so as to avoid the final stabilization caused by the different brightness attenuation ratios for static pictures of different colors in the prior art, as the APL value of the static picture changes. Brightness is inconsistent, causing color cast problems. As shown in FIG. 6 , which is an effect diagram after the brightness attenuation is performed by using the brightness processing method provided by the embodiment of the present invention, FIG. 6 shows the relationship between the APL value of each sub-pixel in the RGBW of the static picture and the ratio of brightness reduction, which can be It can be seen that with the change of the APL value, the attenuation ratio of RGBW has the same trend, and the attenuation ratio value is relatively close, which largely avoids the color shift problem in the prior art.

基于本发明上述各实施例提供的亮度处理方法,本发明实施例还提供一种亮度处理装置,该亮度处理装置用于执行本发明上述任一实施例提供的亮度处理方法。Based on the brightness processing methods provided by the foregoing embodiments of the present invention, an embodiment of the present invention further provides a brightness processing apparatus, which is configured to execute the brightness processing method provided by any of the above embodiments of the present invention.

如图7所示,为本发明实施例提供的一种亮度处理装置的结构示意图。本实施例提供的亮度处理装置30可以包括:获取模块31、速率计算模块32、亮度衰减模块33和亮度获取模块34。As shown in FIG. 7 , it is a schematic structural diagram of a luminance processing apparatus provided by an embodiment of the present invention. The brightness processing apparatus 30 provided in this embodiment may include: an acquisition module 31 , a rate calculation module 32 , a brightness attenuation module 33 , and a brightness acquisition module 34 .

其中,获取模块31,用于根据静态画面的初始画面平均亮度APL值获取静态画面的初始Gain值。Wherein, the obtaining module 31 is configured to obtain the initial Gain value of the static picture according to the average brightness APL value of the initial picture of the static picture.

本发明实施例提供的亮度处理装置,用于对显示器显示的静态画面进行亮度衰减处理。也就是说,本发明实施例的应用场景为:显示器目前显示的画面为静态画面时,对该静态画面进行亮度衰减处理,若显示器的显示屏长时间显示高亮度静态画面,容易造成TFT老化,并且产生残像,影响显示器的显示效果,因此,在显示器的显示过程中,可以针对长时间显示的静态画面进行亮度衰减处理,以降低显示屏的显示亮度,从而起到保护显示屏显示性能、延迟显示屏使用寿命的作用。The brightness processing apparatus provided by the embodiment of the present invention is used for performing brightness attenuation processing on a static image displayed by a display. That is to say, the application scenario of the embodiment of the present invention is: when the picture currently displayed by the display is a static picture, the brightness attenuation processing is performed on the static picture. In addition, afterimages are generated, which affects the display effect of the display. Therefore, during the display process of the display, the brightness attenuation processing can be performed on the static images displayed for a long time to reduce the display brightness of the display, thus protecting the display performance and delay of the display. The role of display life.

在本发明实施例中,可以通过对显示过程中前后几帧画面中子像素的判断,确定当前显示的画面是否为静态画面,在判断出当前显示的画面为静态画面后,已知该静态画面的初始APL值,获取模块31可以根据该初始APL值获取静态画面的初始Gain值。本发明实施例中获取模块31获取初始Gain值的实现方式在上述实施例中已经详细说明,故在此不再赘述。该初始Gain值即为进行亮度衰减前的Gain值。In the embodiment of the present invention, it can be determined whether the currently displayed picture is a static picture by judging the sub-pixels in the pictures before and after the display process. After judging that the currently displayed picture is a static picture, the static picture is known. The acquisition module 31 can acquire the initial Gain value of the static picture according to the initial APL value. In the embodiment of the present invention, the implementation manner of acquiring the initial Gain value by the acquiring module 31 has been described in detail in the above-mentioned embodiments, and thus will not be repeated here. The initial Gain value is the Gain value before brightness attenuation is performed.

速率计算模块32,用于根据静态画面的初始Gain值、静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;The rate calculation module 32 is used for obtaining the decay rate of the Gain value according to the initial Gain value of the static image, the stable Gain value after the static image is attenuated, and the preset decay time;

亮度衰减模块33,用于通过Gain值衰减速率对静态画面进行亮度衰减处理;The brightness attenuation module 33 is used to perform brightness attenuation processing on the static image through the Gain value attenuation rate;

亮度获取模块34,用于获取静态画面完成衰减后的稳定亮度值。The brightness obtaining module 34 is configured to obtain the stable brightness value of the static image after the attenuation is completed.

在本发明实施例中,对静态画面的亮度衰减,可以通过对Gain值的衰减来实现,例如可以设定静态画面完成衰减后的稳定Gain值,该稳定Gain值可以采用一个关系式定义,另外,衰减时间是预先设置的(本发明实施例中的衰减时间例如设定为256秒),因此,速率计算模块32可以计算出该静态画面在衰减过程中的Gain值衰减速率,该Gain值衰减速率即为静态画面进行衰减的标准。随后,亮度衰减模块33可以以已经确定的Gain值衰减速率对该静态画面执行亮度衰减处理,即在预置衰减时间内,以每秒确定的速率进行衰减,直到到达预置衰减时间,完成衰减,此时,亮度获取模块34可以获取到完成衰减后静态画面的稳定亮度值,即本发明实施例执行亮度衰减的最终效果。In the embodiment of the present invention, the attenuation of the brightness of the static image can be achieved by the attenuation of the Gain value. For example, a stable Gain value after the static image has been attenuated can be set, and the stable Gain value can be defined by a relational formula. , the decay time is preset (for example, the decay time in this embodiment of the present invention is set to 256 seconds), therefore, the rate calculation module 32 can calculate the decay rate of the Gain value of the static image during the decay process, and the Gain value decays The rate is the standard for attenuating static images. Subsequently, the brightness attenuation module 33 may perform brightness attenuation processing on the static image at the determined gain value attenuation rate, that is, the attenuation is performed at a rate determined per second within the preset attenuation time, until the preset attenuation time is reached, and the attenuation is completed. , at this time, the brightness acquisition module 34 can acquire the stable brightness value of the static image after the attenuation is completed, that is, the final effect of the implementation of the brightness attenuation in the embodiment of the present invention.

现有技术中的亮度衰减方式,仅依据静态画面的亮度作为衰减的初始条件,采用乘以小于1的比例系数对静态画面的每一个子像素进行亮度衰减的方式,由于采用相同的衰减比例,以及相同的衰减时间进行处理,会导致初始画面低亮度的情况下,最终稳定的亮度过低影响观看效果,初始画面高亮度的情况下,最终稳定的亮度过高容易出现残像;另外,对于不同颜色静态画面,当画面的APL值变化时,采用不同衰减比例进行亮度衰减后最终稳定的亮度不一致,从而会产生色偏。In the brightness attenuation method in the prior art, the brightness of the static image is only used as the initial condition of attenuation, and the brightness attenuation of each sub-pixel of the static image is multiplied by a proportional coefficient less than 1. Since the same attenuation ratio is used, and processing with the same decay time, it will cause the final stable brightness to be too low to affect the viewing effect when the initial image is low-brightness. In a static color picture, when the APL value of the picture changes, the final stable brightness after brightness attenuation with different attenuation ratios is inconsistent, resulting in color cast.

相比之下,本发明实施例根据静态画面的初始APL值获取对应的初始Gain值,并设定完成衰减后的稳定Gain值,并且根据计算出的Gain值衰减速率对静态画面进行衰减处理,以衰减后稳定的亮度增益为亮度衰减的最终结果,从而得到静态画面完成衰减后的稳定亮度值。在该过程中,获取初始Gain值的方式基于HDR算法中APL值与Gain值的对应方式,不同颜色和初始效果的画面,初始APL值对应的初始Gain值不同,因此,本发明实施例提供的亮度处理装置,对于不同类型的静态画面(例如为不同颜色和初始效果的静态画面),处理过程中采用与之匹配的Gain值衰减速率进行亮度衰减,可以以更适应当前静态画面的方式进行亮度衰减,并且完成衰减后得到适应性较高的稳定亮度值。In contrast, the embodiment of the present invention obtains the corresponding initial Gain value according to the initial APL value of the static picture, sets the stable Gain value after the attenuation is completed, and performs attenuation processing on the static picture according to the calculated gain value attenuation rate, Taking the stable brightness gain after attenuation as the final result of brightness attenuation, the stable brightness value of the static image after attenuation is obtained. In this process, the method of obtaining the initial Gain value is based on the correspondence between the APL value and the Gain value in the HDR algorithm. For pictures with different colors and initial effects, the initial Gain value corresponding to the initial APL value is different. Therefore, the embodiments of the present invention provide The brightness processing device, for different types of static pictures (for example, static pictures with different colors and initial effects), uses the matching Gain value attenuation rate to perform brightness attenuation in the processing process, and can perform brightness in a way more suitable for the current static picture. Attenuation, and after the attenuation is completed, a stable brightness value with higher adaptability is obtained.

本发明实施例提供的亮度处理装置,获取模块根据静态画面的初始APL值获取该静态画面的初始Gain值,并由速率计算模块根据该初始Gain值、静态画面完成衰减后的Gain值和预置衰减时间,计算出Gain值衰减速率,从而由亮度衰减模块采用该Gain值衰减速率对静态画面进行亮度衰减处理,完成衰减后亮度获取模块获取合适的稳定亮度值;本发明实施例提供的亮度处理装置,对于不同类型的静态画面(例如为不同颜色和初始效果的静态画面),处理过程中采用与之匹配的Gain值衰减速率进行亮度衰减,完成衰减后得到适应性较高的稳定亮度值,另外,对于不同颜色的静态画面,基于初始APL值计算出的Gain值衰减速率进行亮度衰减,避免衰减后产生色偏的现象;解决了现有技术中的亮度衰减方式,由于针对不同初始状态的静态画面采用单一形式的亮度衰减方式,从而导致衰减后得到的稳定亮度的适应性较差,以及容易产生残像和出现色偏的问题。In the brightness processing device provided by the embodiment of the present invention, the acquisition module acquires the initial Gain value of the static picture according to the initial APL value of the static picture, and the rate calculation module obtains the initial Gain value of the static picture according to the initial Gain value, the attenuated Gain value and the preset value of the static picture. Decay time, calculate the gain value attenuation rate, so that the brightness attenuation module uses the Gain value attenuation rate to perform brightness attenuation processing on the static image, and after the attenuation is completed, the brightness acquisition module obtains an appropriate stable brightness value; the brightness processing provided by the embodiment of the present invention The device, for different types of static pictures (for example, static pictures with different colors and initial effects), adopts the matching Gain value attenuation rate to perform brightness attenuation in the processing process, and obtains a stable brightness value with high adaptability after the attenuation is completed. In addition, for static pictures of different colors, brightness attenuation is performed based on the attenuation rate of the Gain value calculated from the initial APL value to avoid the phenomenon of color shift after attenuation; the brightness attenuation method in the prior art is solved. The static image adopts a single form of brightness attenuation, resulting in poor adaptability of the stable brightness obtained after attenuation, and prone to afterimage and color cast problems.

可选地,在本发明实施例中,速率计算模块32计算出的Gain值衰减速率为:Optionally, in this embodiment of the present invention, the decay rate of the Gain value calculated by the rate calculation module 32 is:

V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ;

其中,Gain0为初始Gain值,tmax为预置衰减时间,Gainmin为静态画面的Gain最小值,q为预设的衰减比例,Gainmin*(1-q)为完成衰减后的稳定Gain值。Among them, Gain 0 is the initial Gain value, t max is the preset attenuation time, Gain min is the minimum gain of the static image, q is the preset attenuation ratio, Gain min *(1-q) is the stable Gain after the attenuation is completed value.

在本发明实施例中,基于普通画面中每个像素具有0~255的灰阶范围,例如可以设定预置衰减时间tmax为256s,已知初始Gain值、稳定Gain值和衰减时间,可以得到Gain值衰减速率。在亮度衰减过程中,以V_gain进行衰减处理,当衰减时间到达256s时,结束衰减。In the embodiment of the present invention, based on the gray scale range of 0 to 255 for each pixel in a common picture, for example, the preset decay time t max can be set to 256s, and the initial Gain value, stable Gain value and decay time can be known. Get the decay rate of the Gain value. In the process of brightness attenuation, V_gain is used for attenuation processing. When the attenuation time reaches 256s, the attenuation is ended.

可选地,图8为本发明实施例提供的另一种亮度处理装置的结构示意图,在图7所示装置的结构基础上,本发明实施例提供的亮度处理装置,还可以包括:Optionally, FIG. 8 is a schematic structural diagram of another luminance processing apparatus provided by an embodiment of the present invention. On the basis of the structure of the apparatus shown in FIG. 7 , the luminance processing apparatus provided by the embodiment of the present invention may further include:

调整模块35,用于根据静态画面完成衰减后的稳定亮度值对衰减比例进行调整。The adjustment module 35 is configured to adjust the attenuation ratio according to the stable brightness value after the static image has been attenuated.

在本发明实施例中,速率计算模块32初始计算中的衰减比例q例如可以预先设置为定值0.5,如果衰减比例过大或者最终得到的稳定亮度值过低,可以对q衰减比例进行调整,以得到适应性更高的稳定亮度值。In the embodiment of the present invention, the attenuation ratio q in the initial calculation by the rate calculation module 32 may be preset to a fixed value of 0.5, for example, if the attenuation ratio is too large or the final stable brightness value is too low, the q attenuation ratio can be adjusted, In order to obtain a more adaptable and stable brightness value.

可选地,本发明实施例提供的亮度处理装置,还可以包括:Optionally, the brightness processing apparatus provided in the embodiment of the present invention may further include:

中间值计算模块36,用于根据初始Gain值、Gain值衰减速率和已衰减时间,获取静态画面在衰减过程中的当前Gain值;The intermediate value calculation module 36 is used to obtain the current Gain value of the static image in the decay process according to the initial Gain value, the Gain value decay rate and the decay time;

中间值计算模块36,还用于根据当前Gain值得到静态画面在衰减过程中的当前亮度值。The intermediate value calculation module 36 is further configured to obtain the current brightness value of the static image during the attenuation process according to the current Gain value.

在本发明实施例中,静态画面在衰减过程中的当前Gain值是指,在衰减过程中(即在预置衰减时间之内的某个时间点)的Gain值,即从初始Gain值开始衰减,当前Gain值为衰减过程中Gain值的中间量,相应地,可以得到该当前Gain值对应的当前亮度值。本发明实施例中的当前Gain值为:Gaint=Gain0-V_gain*t,Gaint表示静态画面在已衰减时间t的Gain值,当前亮度值为:Lt=L*Gaint=L*(Gain0-V_gain*t),Lt表示静态画面在已衰减时间t的亮度值。In this embodiment of the present invention, the current Gain value of the static image during the decay process refers to the Gain value during the decay process (that is, at a certain time point within the preset decay time), that is, the decay starts from the initial Gain value , the current Gain value is the middle amount of the Gain value in the decay process, and correspondingly, the current brightness value corresponding to the current Gain value can be obtained. The current Gain value in the embodiment of the present invention is: Gain t =Gain 0 -V_gain*t, Gain t represents the Gain value of the static image at the decay time t, and the current luminance value is: L t =L*Gain t =L* (Gain 0 -V_gain*t), L t represents the luminance value of the static picture at the decayed time t.

本发明实施例中,亮度获取模块34获取静态画面完成衰减后的稳定亮度值的实现方式,可以包括:In the embodiment of the present invention, an implementation manner for the brightness obtaining module 34 to obtain the stable brightness value of the static image after the attenuation is completed may include:

当已衰减时间到达预置衰减时间时,计算稳定亮度值为:When the decay time reaches the preset decay time, the calculated stable brightness value is:

L'=L*(Gain0-V_gain*tmax);其中,L为RGB-RGBW之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, L is the brightness after RGB-RGBW;

当已衰减时间未到达预置衰减时间时,根据当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as the stable luminance value.

根据上述稳定亮度值的计算方式可知,若已衰减时间已经达到预置衰减时间,说明已经完成亮度衰减,此时可以根据初始Gain值,Gain值衰减速率和预置衰减时间计算得到稳定亮度值,即上述L';若已衰减时间还未达到预置衰减时间,则可以继续进行衰减处理,此时,可以根据当前亮度值Lt判断当前一帧的亮度是否与前一帧的亮度相同,当亮度相同时,表示显示画面仍为静态画面,进行通过V_gain进行亮度衰减,当亮度不同时,表示显示画面发生变化,则以新输入的亮度作为稳定亮度值。According to the above calculation method of the stable brightness value, if the decay time has reached the preset decay time, it means that the brightness decay has been completed. At this time, the stable brightness value can be calculated according to the initial Gain value, the decay rate of the Gain value and the preset decay time. That is, the above L ' ; if the decay time has not reached the preset decay time, the decay process can be continued. When the brightness is the same, it means that the displayed image is still a static image, and the brightness is attenuated through V_gain. When the brightness is different, it means that the displayed image has changed, and the newly input brightness is used as the stable brightness value.

可选地,图9为本发明实施例提供的又一种亮度处理装置的结构示意图,在上述实施例的基础上,本发明实施例提供的亮度处理装置,还可以包括:Optionally, FIG. 9 is a schematic structural diagram of another luminance processing apparatus provided by an embodiment of the present invention. On the basis of the foregoing embodiment, the luminance processing apparatus provided by an embodiment of the present invention may further include:

时间确定模块37,用于根据显示画面的初始画面平均亮度APL值确定显示画面的静态判断时间;The time determination module 37 is used for determining the static judgment time of the displayed image according to the average brightness APL value of the initial image of the displayed image;

静态判断模块38,用于在静态判断时间内,根据显示画面每一帧的画面亮度进行静态判断。图9所示实施例以在图7所示装置的结构基础上为例予以示出。The static judgment module 38 is configured to perform static judgment according to the picture brightness of each frame of the displayed picture within the static judgment time. The embodiment shown in FIG. 9 is shown on the basis of the structure of the device shown in FIG. 7 as an example.

在本发明实施例中,亮度衰减模块33对静态画面进行亮度衰减处理前,首先要判断显示器显示的画面是否为静态画面,现有技术中执行静态画面判断的时间通常是固定的,即所有类型的静态画面具有相同的静态判断时间。然而,在高灰阶的小窗口状态下,画面的亮度很高,长时间维持高亮度状态下,容易产生残像,所以在亮度衰减的过程中,对于亮度较高的静态画面,可以通过缩短显示画面的静态判断时间,以避免显示屏出现残像的现象。在实际应用中,可以依据静态画面的初始APL值的大小来设定静态判断时间的长短,随后,根据已确定的静态判断时间,在该实际内根据显示画面的每一帧的画面亮度进行静态判断,例如可以将当前一帧画面的亮度总和与前一帧画面的亮度总和进行对比,在进行多次循环对比后,达到静态判断时间时,每一帧的画面亮度总和均相等,则认为当前显示的画面为静态画面。In the embodiment of the present invention, before the brightness attenuation module 33 performs brightness attenuation processing on a static image, it first determines whether the image displayed by the display is a static image. The static pictures have the same static judgment time. However, in the small window state of high gray scale, the brightness of the picture is very high. If the high brightness state is maintained for a long time, it is easy to produce afterimages. Therefore, during the process of brightness attenuation, for static pictures with high brightness, the display can be shortened by shortening the display time. The static judgment time of the screen to avoid the phenomenon of afterimages on the display. In practical applications, the length of the static judgment time can be set according to the size of the initial APL value of the static picture, and then, according to the determined static judgment time, the static judgment is carried out according to the picture brightness of each frame of the displayed picture within the actual situation. Judgment, for example, the total brightness of the current frame can be compared with the total brightness of the previous frame. After multiple cyclic comparisons, when the static judgment time is reached, the total brightness of each frame is equal, then it is considered that the current The displayed screen is a static screen.

需要说明的是,本发明实施例中时间确定模块37确定显示画面的静态判断时间的方式,即通过初始APL值确定静态判断时间的方式,以及实现的有益效果均与上述实施例相同,故在此不再赘述。It should be noted that, in the embodiment of the present invention, the method for determining the static judgment time of the display screen by the time determination module 37, that is, the method for determining the static judgment time by the initial APL value, and the beneficial effects achieved are the same as those in the above-mentioned embodiment. This will not be repeated here.

图10为本发明实施例提供的一种计算机设备的结构示意图。本发明实施例提供的计算机设备40可以包括:存储器41和处理器42。FIG. 10 is a schematic structural diagram of a computer device according to an embodiment of the present invention. The computer device 40 provided in this embodiment of the present invention may include: a memory 41 and a processor 42 .

其中,存储器41,用于保存可执行指令;Wherein, the memory 41 is used to save executable instructions;

处理器42,用于在执行存储器41保存的可执行指令时实现本发明上述任一实施例提供的亮度处理方法。The processor 42 is configured to implement the brightness processing method provided by any of the foregoing embodiments of the present invention when executing the executable instructions stored in the memory 41 .

本发明实施例提供的计算机设备40的实施方式与本发明上述实施例提供的亮度处理方法基本相同,在此不做赘述。The implementation manner of the computer device 40 provided by the embodiment of the present invention is basically the same as the brightness processing method provided by the above-mentioned embodiment of the present invention, which is not repeated here.

本发明实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有可执行指令,该可执行指令被处理器执行时可以实现本发明上述任一实施例提供的亮度处理方法。本发明实施例提供的计算机可读存储介质的实施方式与本发明上述实施例提供的亮度处理方法基本相同,在此不做赘述。Embodiments of the present invention further provide a computer-readable storage medium, where executable instructions are stored in the computer-readable storage medium, and when the executable instructions are executed by a processor, the brightness processing method provided by any of the foregoing embodiments of the present invention can be implemented. The implementation manner of the computer-readable storage medium provided by the embodiment of the present invention is basically the same as that of the brightness processing method provided by the above-mentioned embodiment of the present invention, which is not repeated here.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described contents are only the embodiments adopted to facilitate the understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art to which the present invention belongs, without departing from the spirit and scope disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the scope of the patent protection of the present invention still needs to be The scope defined by the appended claims shall prevail.

Claims (13)

1.一种亮度处理方法,其特征在于,包括:1. a brightness processing method, is characterized in that, comprises: 根据静态画面的初始画面平均亮度APL值获取所述静态画面的初始亮度增益Gain值;Obtain the initial brightness gain Gain value of the static picture according to the average brightness APL value of the initial picture of the static picture; 根据所述静态画面的初始Gain值、所述静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;According to the initial Gain value of the static picture, the stable Gain value after the static picture completes the attenuation, and the preset attenuation time, obtain the gain value attenuation rate; 通过所述Gain值衰减速率对所述静态画面进行亮度衰减处理,并获取所述静态画面完成衰减后的稳定亮度值。Perform brightness attenuation processing on the static image according to the Gain value attenuation rate, and obtain a stable brightness value of the static image after the attenuation is completed. 2.根据权利要求1所述的亮度处理方法,其特征在于,所述静态画面的Gain值衰减速率为:2. brightness processing method according to claim 1, is characterized in that, the Gain value decay rate of described static picture is: V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ; 其中,所述Gain0为所述初始Gain值,所述tmax为预置衰减时间,所述Gainmin为所述静态画面的Gain最小值,所述q为预设的衰减比例,所述Gainmin*(1-q)为完成衰减后的稳定Gain值。Wherein, the Gain 0 is the initial Gain value, the t max is the preset attenuation time, the Gain min is the minimum gain of the static image, the q is the preset attenuation ratio, and the Gain min *(1-q) is the stable Gain value after the decay is completed. 3.根据权利要求2所述的亮度处理方法,其特征在于,还包括:3. The luminance processing method according to claim 2, further comprising: 根据所述静态画面完成衰减后的稳定亮度值对所述衰减比例进行调整。The attenuation ratio is adjusted according to the stable brightness value of the static image after the attenuation is completed. 4.根据权利要求2所述的亮度处理方法,其特征在于,所述获取所述静态画面的Gain值衰减速率之后,所述方法还包括:4 . The brightness processing method according to claim 2 , wherein after acquiring the decay rate of the Gain value of the static image, the method further comprises: 5 . 根据所述初始Gain值、所述Gain值衰减速率和已衰减时间,获取所述静态画面在衰减过程中的当前Gain值;Obtain the current Gain value of the static image during the decay process according to the initial Gain value, the decay rate of the Gain value and the decayed time; 根据所述当前Gain值得到所述静态画面在衰减过程中的当前亮度值;Obtain the current brightness value of the static image in the decay process according to the current Gain value; 所述获取所述静态画面完成衰减后的稳定亮度值,包括:The obtaining of the stable brightness value of the static image after the attenuation is completed includes: 当所述已衰减时间到达所述预置衰减时间时,计算所述稳定亮度值为:When the decayed time reaches the preset decay time, calculate the stable brightness value as: L'=L*(Gain0-V_gain*tmax);其中,所述L表示红绿蓝子像素增加白色子像素(RGB-RGBW)之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, the L represents the brightness of the red, green and blue sub-pixels after adding the white sub-pixels (RGB-RGBW); 当所述已衰减时间未到达所述预置衰减时间时,根据所述当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as a stable luminance value. 5.根据权利要求1所述的亮度处理方法,其特征在于,还包括:5. The brightness processing method according to claim 1, further comprising: 根据显示画面的初始画面平均亮度APL值确定所述显示画面的静态判断时间;Determine the static judgment time of the display picture according to the average brightness APL value of the initial picture of the display picture; 在所述静态判断时间内,根据所述显示画面每一帧的画面亮度进行静态判断。During the static judgment time, static judgment is performed according to the picture brightness of each frame of the display picture. 6.根据权利要求5所述的亮度处理方法,其特征在于,所述根据显示画面的初始APL值确定所述显示画面的静态判断时间,包括:6. The brightness processing method according to claim 5, wherein the determining the static judgment time of the display screen according to the initial APL value of the display screen comprises: 当所述初始APL值为0到0.05时,所述静态判断时间为:When the initial APL value is 0 to 0.05, the static judgment time is: T=-1000*APL0+60;T=-1000*APL 0 +60; 当所述初始APL值为0.05到0.5时,所述静态判断时间为:When the initial APL value is 0.05 to 0.5, the static judgment time is: T=111*APL0+4.45;T=111*APL 0 +4.45; 当所述初始APL值为0.5到1时,所述静态判断时间为:When the initial APL value is 0.5 to 1, the static judgment time is: T=100*APL0+110;T=100*APL 0 +110; 其中,所述T为所述静态判断时间,所述APL0为初始APL值。Wherein, the T is the static judgment time, and the APL 0 is the initial APL value. 7.一种亮度处理装置,其特征在于,包括:7. A brightness processing device, comprising: 获取模块,用于根据静态画面的初始画面平均亮度APL值获取所述静态画面的初始亮度增益Gain值;an acquisition module, configured to acquire the initial brightness gain Gain value of the static picture according to the average brightness APL value of the initial picture of the static picture; 速率计算模块,用于根据所述静态画面的初始Gain值、所述静态画面完成衰减后的稳定Gain值和预置衰减时间,获取Gain值衰减速率;a rate calculation module, configured to obtain the gain value decay rate according to the initial Gain value of the static image, the stable Gain value after the static image has been attenuated, and a preset decay time; 亮度衰减模块,用于通过所述Gain值衰减速率对所述静态画面进行亮度衰减处理;A brightness attenuation module, configured to perform brightness attenuation processing on the static image by using the Gain value attenuation rate; 亮度获取模块,用于获取所述静态画面完成衰减后的稳定亮度值。A brightness acquisition module, configured to acquire the stable brightness value of the static image after the attenuation is completed. 8.根据权利要求7所述的亮度处理装置,其特征在于,所述速率计算模块计算出所述Gain值衰减速率为:8. The luminance processing device according to claim 7, wherein the rate calculation module calculates the decay rate of the Gain value as: V_gain=(Gain0-Gainmin*(1-q))/tmaxV_gain=(Gain 0 -Gain min *(1-q))/t max ; 其中,所述Gain0为所述初始Gain值,所述tmax为预置衰减时间,所述Gainmin为所述静态画面的Gain最小值,所述q为预设的衰减比例,所述Gainmin*(1-q)为完成衰减后的稳定Gain值。Wherein, the Gain 0 is the initial Gain value, the t max is the preset attenuation time, the Gain min is the minimum gain of the static image, the q is the preset attenuation ratio, and the Gain min *(1-q) is the stable Gain value after the decay is completed. 9.根据权利要求8所述的亮度处理装置,其特征在于,还包括:9. The luminance processing device according to claim 8, further comprising: 调整模块,用于根据所述静态画面完成衰减后的稳定亮度值对所述衰减比例进行调整。An adjustment module, configured to adjust the attenuation ratio according to the stable brightness value after the static image has been attenuated. 10.根据权利要求8所述的亮度处理装置,其特征在于,还包括:10. The luminance processing device according to claim 8, further comprising: 中间值计算模块,用于根据所述初始Gain值、所述Gain值衰减速率和已衰减时间,获取所述静态画面在衰减过程中的当前Gain值;an intermediate value calculation module, configured to obtain the current Gain value of the static image during the decay process according to the initial Gain value, the decay rate of the Gain value and the decayed time; 所述中间值计算模块,还用于根据所述当前Gain值得到所述静态画面在衰减过程中的当前亮度值;The intermediate value calculation module is further configured to obtain the current brightness value of the static image in the decay process according to the current Gain value; 所述亮度获取模块获取所述静态画面完成衰减后的稳定亮度值,包括:The brightness obtaining module obtains the stable brightness value of the static image after the attenuation is completed, including: 当所述已衰减时间到达所述预置衰减时间时,计算所述稳定亮度值为:When the decayed time reaches the preset decay time, calculate the stable brightness value as: L'=L*(Gain0-V_gain*tmax);其中,所述L表示红绿蓝子像素增加白色子像素(RGB-RGBW)之后的亮度;L'=L*(Gain 0 -V_gain*t max ); wherein, the L represents the brightness of the red, green and blue sub-pixels after adding the white sub-pixels (RGB-RGBW); 当所述已衰减时间未到达所述预置衰减时间时,根据所述当前亮度值确定继续进行亮度衰减处理或将新输入的亮度作为稳定亮度值。When the decayed time has not reached the preset decay time, it is determined according to the current luminance value to continue the luminance decay process or to use the newly input luminance as a stable luminance value. 11.根据权利要求7所述的亮度处理装置,其特征在于,还包括:11. The luminance processing device according to claim 7, further comprising: 时间确定模块,用于根据显示画面的初始画面平均亮度APL值确定所述显示画面的静态判断时间;a time determination module, configured to determine the static judgment time of the display image according to the average brightness APL value of the initial image of the display image; 静态判断模块,用于在所述静态判断时间内,根据所述显示画面每一帧的画面亮度进行静态判断。The static judgment module is configured to perform static judgment according to the picture brightness of each frame of the displayed picture within the static judgment time. 12.一种计算机设备,其特征在于,包括:存储器和处理器;12. A computer device, comprising: a memory and a processor; 所述存储器,用于保存可执行指令;the memory for storing executable instructions; 所述处理器,用于在执行所述存储器保存的所述可执行指令时实现如权利要求1~6中任一项所述的亮度处理方法。The processor is configured to implement the brightness processing method according to any one of claims 1 to 6 when executing the executable instructions stored in the memory. 13.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有可执行指令,所述可执行指令被处理器执行时实现如权利要求1~6中任一项所述的亮度处理方法。13. A computer-readable storage medium, wherein the computer-readable storage medium stores executable instructions, and when the executable instructions are executed by a processor, the implementation of any one of claims 1 to 6 is realized. brightness processing method.
CN201810752151.0A 2018-07-10 2018-07-10 Brightness processing method and device, computer equipment and readable storage medium Expired - Fee Related CN108847201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810752151.0A CN108847201B (en) 2018-07-10 2018-07-10 Brightness processing method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810752151.0A CN108847201B (en) 2018-07-10 2018-07-10 Brightness processing method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN108847201A CN108847201A (en) 2018-11-20
CN108847201B true CN108847201B (en) 2020-06-05

Family

ID=64196594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810752151.0A Expired - Fee Related CN108847201B (en) 2018-07-10 2018-07-10 Brightness processing method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN108847201B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020140254A1 (en) * 2019-01-04 2020-07-09 深圳市柔宇科技有限公司 Brightness compensation method, foldable display device and storage medium
CN112086072A (en) * 2019-06-14 2020-12-15 联咏科技股份有限公司 Drive device and method of operation
CN113554973B (en) 2020-04-08 2022-11-22 华为技术有限公司 Display brightness adjusting method and related device
CN115956266B (en) * 2021-07-21 2025-02-21 京东方科技集团股份有限公司 Control device, driving method thereof and display device
CN116543698B (en) * 2023-05-15 2025-10-21 合肥京东方卓印科技有限公司 Brightness attenuation control method, device, electronic device and storage medium
CN117789630A (en) * 2024-01-02 2024-03-29 京东方科技集团股份有限公司 Display screen brightness control device, method, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100551589B1 (en) * 2000-10-19 2006-02-13 엘지.필립스 엘시디 주식회사 Afterimage measurement method of liquid crystal display
CN104240678A (en) * 2013-06-17 2014-12-24 华为终端有限公司 Method, device and terminal for adjusting screen backlight brightness
CN106057861A (en) * 2016-08-08 2016-10-26 深圳市华星光电技术有限公司 OLED display apparatus and method of reducing OLED display apparatus power consumption
CN106603856A (en) * 2016-12-26 2017-04-26 努比亚技术有限公司 Screen brightness adjusting method and terminal
CN107864292A (en) * 2017-11-24 2018-03-30 福建天泉教育科技有限公司 A kind of screen luminance adjustment method and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101189455B1 (en) * 2005-12-20 2012-10-09 엘지디스플레이 주식회사 Liquid crystal display device and method for driving the same
JP4732315B2 (en) * 2006-12-05 2011-07-27 キヤノン株式会社 Image processing apparatus and method
CN101304489B (en) * 2008-06-20 2010-12-08 北京中星微电子有限公司 Automatic exposure method and apparatus
JP5924147B2 (en) * 2012-06-14 2016-05-25 ソニー株式会社 Display device, image processing device, and display method
CN105185328B (en) * 2015-09-01 2018-01-09 青岛海信电器股份有限公司 Liquid crystal display brightness control method and device and liquid crystal display
CN107103886B (en) * 2017-06-08 2019-07-12 武汉华星光电技术有限公司 A kind of dynamic backlight control display methods and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100551589B1 (en) * 2000-10-19 2006-02-13 엘지.필립스 엘시디 주식회사 Afterimage measurement method of liquid crystal display
CN104240678A (en) * 2013-06-17 2014-12-24 华为终端有限公司 Method, device and terminal for adjusting screen backlight brightness
CN106057861A (en) * 2016-08-08 2016-10-26 深圳市华星光电技术有限公司 OLED display apparatus and method of reducing OLED display apparatus power consumption
CN106603856A (en) * 2016-12-26 2017-04-26 努比亚技术有限公司 Screen brightness adjusting method and terminal
CN107864292A (en) * 2017-11-24 2018-03-30 福建天泉教育科技有限公司 A kind of screen luminance adjustment method and terminal

Also Published As

Publication number Publication date
CN108847201A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN108847201B (en) Brightness processing method and device, computer equipment and readable storage medium
CN102568386B (en) Dynamic backlight local control liquid crystal display and system
KR100843090B1 (en) Display device and method for improving image flicker
JP4078649B2 (en) Video signal processing apparatus and method
US7548357B2 (en) Image processing device, image display device, image processing method, and image processing program
CN105513019B (en) A kind of method and apparatus promoting picture quality
CN107799080B (en) A Liquid Crystal Pixel Compensation Method Based on Segmented Curve
TWI573126B (en) Image adjusting method capable of executing optimal adjustment according to envorimental variation and related display
CN108156533A (en) Smart television backlight adjusting method, smart television and storage medium
CN101101740A (en) Image processing system, display device, program and information storage medium
CN110223658B (en) Display brightness control method, device, device and display device
KR20170120128A (en) Image display apparatus and control method thereof
JP2006140995A (en) Improved adaptive contrast
KR20070122408A (en) Integrated histogram automatic adaptive contrast control
CN105916056B (en) Backlight adaptive regulation method and device
CN108364271B (en) Method and device for improving image contrast
CN111770322A (en) White balance adjustment method for pixel, display panel and computer readable storage medium
CN103380451B (en) Video display device
CN108932936B (en) Gray scale brightness adjusting method and display device
CN114927109B (en) Backlight source control method and device, display equipment and storage medium
US8390542B2 (en) Apparatus, method, and program for processing image
CN107452348B (en) Method and system for reducing noise of display picture, computer device and readable storage medium
CN104240666B (en) A kind of method for processing video frequency and device
WO2006049058A1 (en) Video signal transformation device, and video display device
CN115691396B (en) LED display screen display control method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200605

CF01 Termination of patent right due to non-payment of annual fee