CN117275429A - Gamma voltage control method and device for display equipment, display equipment and storage medium - Google Patents
Gamma voltage control method and device for display equipment, display equipment and storage medium Download PDFInfo
- Publication number
- CN117275429A CN117275429A CN202311345359.8A CN202311345359A CN117275429A CN 117275429 A CN117275429 A CN 117275429A CN 202311345359 A CN202311345359 A CN 202311345359A CN 117275429 A CN117275429 A CN 117275429A
- Authority
- CN
- China
- Prior art keywords
- gamma voltage
- data
- correction unit
- voltage data
- display device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0673—Adjustment of display parameters for control of gamma adjustment, e.g. selecting another gamma curve
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
Description
技术领域Technical field
本申请显示设备技术领域,尤其涉及一种显示设备伽玛电压控制方法、装置、显示设备及存储介质。This application is in the technical field of display equipment, and in particular relates to a gamma voltage control method, device, display equipment and storage medium for a display equipment.
背景技术Background technique
伽玛电压用于控制显示器子像素的显示灰阶,不同的伽马电压与公共电极电压之间的电压差使液晶分子发生不同程度的旋转,进而产生光线透过率的差异,从而实现对灰阶的显示。而不同型号显示组件(如显示屏)批量生产时,由于物料、工艺等的差异,往往会存在伽玛电压差异。通常伽玛电压会预存在GammaIC(伽玛矫正电路单元)中,在GammaIC和显示组件自行组合的非标准显示设备生产场景下,同批次显示设备中所采用的显示组件型号可能会存在有差异,故有较大可能性导致伽玛电压与显示组件不匹配,最终引起显示组件显示画面是出现显示缺陷的问题。Gamma voltage is used to control the display gray scale of the display sub-pixel. The voltage difference between different gamma voltages and the common electrode voltage causes the liquid crystal molecules to rotate to varying degrees, thereby producing differences in light transmittance, thereby achieving gray scale control. display. When different types of display components (such as display screens) are mass-produced, there are often differences in gamma voltage due to differences in materials, processes, etc. Usually the gamma voltage is pre-stored in the GammaIC (gamma correction circuit unit). In the production scenario of non-standard display equipment where GammaIC and display components are combined by themselves, the display component models used in the same batch of display equipment may be different. , so it is very likely that the gamma voltage will not match the display component, which will eventually cause display defects in the display screen of the display component.
发明内容Contents of the invention
本申请的主要目的在于提供一种显示设备伽玛电压控制方法、装置、显示设备及存储介质,旨在非标准显示设备生产场景下,容易出现伽玛电压与显示组件不匹配,导致显示组件显示画面出现缺陷的技术问题。The main purpose of this application is to provide a display device gamma voltage control method, device, display device and storage medium. It is intended that in a non-standard display device production scenario, it is easy for the gamma voltage to mismatch with the display component, resulting in the display component displaying Technical issues that cause screen defects.
为实现上述目的,本申请提供一种显示设备伽玛电压控制方法,所述显示设备包括显示组件和伽玛电压矫正单元,所述显示设备伽玛电压控制方法包括:In order to achieve the above object, the present application provides a gamma voltage control method of a display device. The display device includes a display component and a gamma voltage correction unit. The gamma voltage control method of a display device includes:
获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;Obtaining first gamma voltage data adapted to the display component that is prestored in the display component;
将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;converting the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit;
在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。When the target gamma voltage data does not exist in the gamma voltage correction unit, the target gamma voltage data is written into the gamma voltage correction unit, so that the gamma voltage correction unit is based on The target gamma voltage data outputs a gamma voltage to the display component.
可选地,所述将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据的步骤包括:Optionally, the step of converting the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit includes:
通过所述显示组件的第一数据映射关系,生成所述第一伽玛电压数据表征的第一伽玛电压,其中,所述第一数据映射关系表征所述显示组件中第一伽玛电压数据与伽玛电压之间的关系;The first gamma voltage represented by the first gamma voltage data is generated through the first data mapping relationship of the display component, wherein the first data mapping relationship represents the first gamma voltage data in the display component Relationship with gamma voltage;
通过所述伽玛电压矫正单元的第二数据映射关系,将所述第一伽玛电压映射为所述目标伽玛电压数据,其中,所述第二数据映射关系表征所述伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系。The first gamma voltage is mapped to the target gamma voltage data through a second data mapping relationship of the gamma voltage correction unit, wherein the second data mapping relationship represents the gamma voltage correction unit The relationship between the second gamma voltage data and the gamma voltage.
可选地,在所述将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤之前,所述方法包括:Optionally, before the step of writing the target gamma voltage data into the gamma voltage correction unit, the method includes:
根据所述伽玛电压矫正单元的单元类型,判断所述伽玛电压矫正单元中是否预存第二伽玛电压数据;Determine whether the second gamma voltage data is pre-stored in the gamma voltage correction unit according to the unit type of the gamma voltage correction unit;
若所述伽玛电压矫正单元中未预存所述第二伽玛电压数据,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit;
若所述伽玛电压矫正单元中预存所述第二伽玛电压数据,则判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同;If the second gamma voltage data is prestored in the gamma voltage correction unit, determine whether the second gamma voltage data and the target gamma voltage data are the same;
若所述第二伽玛电压数据和所述目标伽玛电压数据不相同,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据。If the second gamma voltage data and the target gamma voltage data are not the same, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit.
可选地,在所述判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同的步骤之后,所述方法包括:Optionally, after the step of determining whether the second gamma voltage data and the target gamma voltage data are the same, the method includes:
若所述第二伽玛电压数据和所述目标伽玛电压数据相同,则控制所述伽玛电压矫正单元,基于所述第二伽玛电压数据向所述显示组件输出伽玛电压。If the second gamma voltage data is the same as the target gamma voltage data, the gamma voltage correction unit is controlled to output a gamma voltage to the display component based on the second gamma voltage data.
可选地,所述将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤包括:Optionally, the step of writing the target gamma voltage data into the gamma voltage correction unit includes:
在所述伽玛电压矫正单元中未预存所述第二伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, write the target gamma voltage data into the gamma voltage correction unit;
在所述伽玛电压矫正单元中预存所述第二伽玛电压数据,且所述第二伽玛电压数据与所述目标伽玛电压数据不相同的情况下,擦除所述第二伽玛电压数据后,将所述目标伽玛电压数据写入所述伽玛电压矫正单元。When the second gamma voltage data is prestored in the gamma voltage correction unit and the second gamma voltage data is different from the target gamma voltage data, the second gamma voltage data is erased. After the voltage data is obtained, the target gamma voltage data is written into the gamma voltage correction unit.
可选地,所述显示组件中还储存有所述第一伽玛电压数据的预存校验码以及与所述预存校验码对应的校验算法,所述获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据的步骤包括:Optionally, the display component also stores a pre-stored check code of the first gamma voltage data and a check algorithm corresponding to the pre-stored check code, and the obtaining of the pre-stored and The step of displaying the first gamma voltage data adapted by the component includes:
从所述显示组件中预设存储区读取数据;Read data from the preset storage area in the display component;
基于所述校验算法对读取到的数据进行计算,得到计算结果;Calculate the read data based on the verification algorithm to obtain the calculation results;
若所述计算结果与所述预存校验码相同,则将所述读取到的数据作为所述第一伽玛电压数据。If the calculation result is the same as the pre-stored check code, the read data is used as the first gamma voltage data.
可选地,所述显示设备还包括控制组件,所述第一伽玛电压数据通过所述控制组件与所述显示组件之间的通信协议传输,所述通信协议为I2C协议、SPI协议、串口协议或私有协议。Optionally, the display device further includes a control component, and the first gamma voltage data is transmitted through a communication protocol between the control component and the display component. The communication protocol is an I2C protocol, an SPI protocol, a serial port protocol or private protocol.
此外,为实现上述目的,本申请还提供一种显示设备伽玛电压控制装置,所述显示设备包括显示组件和伽玛电压矫正单元,所述显示设备伽玛电压控制装置包括:In addition, to achieve the above object, the present application also provides a display device gamma voltage control device, the display device includes a display component and a gamma voltage correction unit, the display device gamma voltage control device includes:
获取模块,用于获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;An acquisition module, configured to acquire the first gamma voltage data pre-stored in the display component and adapted to the display component;
转换模块,用于将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;A conversion module configured to convert the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit;
写入模块,用于在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。a writing module, configured to write the target gamma voltage data into the gamma voltage correction unit when the target gamma voltage data does not exist in the gamma voltage correction unit, so that the The gamma voltage correction unit outputs a gamma voltage to the display component based on the target gamma voltage data.
此外,为实现上述目的,本申请还提供一种显示设备,所述显示设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的显示设备伽玛电压控制程序,所述显示设备伽玛电压控制程序被所述处理器执行时实现上述的显示设备伽玛电压控制方法的步骤。In addition, to achieve the above object, the present application also provides a display device, which includes: a memory, a processor, and a display device gamma voltage control program stored on the memory and executable on the processor. When the display device gamma voltage control program is executed by the processor, the steps of the above display device gamma voltage control method are implemented.
此外,为实现上述目的,本申请还提供一种存储介质,所述可储介质上存储有显示设备伽玛电压控制程序,所述显示设备伽玛电压控制程序被处理器执行时实现如上述的显示设备伽玛电压控制方法的步骤。In addition, in order to achieve the above object, the present application also provides a storage medium. A display device gamma voltage control program is stored on the storage medium. When the display device gamma voltage control program is executed by a processor, the above-mentioned steps are implemented. Display device gamma voltage control method steps.
本申请实施例提出的一种显示设备伽玛电压控制方法、装置、显示设备及存储介质。在本申请中,显示设备包括显示组件和伽玛电压矫正单元,且显示设备中的控制组件将获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。也即本申请实施例中,首先会获取显示组件中的与显示组件适配的第一伽玛电压数据,再将该第一伽玛电压数据进行转换得到与伽玛电压矫正单元匹配的目标伽玛电压数据,其次通过伽玛电压矫正单元对目标伽玛电压数据进行解析得到正确的伽玛电压,最后再将目标伽玛电压数据写入至伽玛电压矫正单元,使得伽玛电压矫正单元,可通过目标伽玛电压数据向显示组件输出正确的伽玛电压。可以理解的是,由于伽玛电压矫正单元向显示组件输出的伽玛电压最终是通过显示组件自身携带的第一伽玛电压数据确定的,可保证在使用不同显示组件进行组装得到显示设备时,伽玛电压矫正单元输出的伽玛电压始终与显示组件是相适配的,从而提升显示组件画面输出的稳定性,减少出现显示缺陷的可能。The embodiments of this application propose a gamma voltage control method, device, display device and storage medium for a display device. In this application, the display device includes a display component and a gamma voltage correction unit, and the control component in the display device will obtain the first gamma voltage data that is prestored in the display component and adapted to the display component; The first gamma voltage data is converted into target gamma voltage data matching the gamma voltage correction unit; when the target gamma voltage data does not exist in the gamma voltage correction unit, the Target gamma voltage data is written into the gamma voltage correction unit, so that the gamma voltage correction unit outputs a gamma voltage to the display component based on the target gamma voltage data. That is to say, in the embodiment of the present application, first the first gamma voltage data in the display component that is adapted to the display component is obtained, and then the first gamma voltage data is converted to obtain the target gamma that matches the gamma voltage correction unit. gamma voltage data, and then use the gamma voltage correction unit to analyze the target gamma voltage data to obtain the correct gamma voltage. Finally, the target gamma voltage data is written to the gamma voltage correction unit, so that the gamma voltage correction unit, The correct gamma voltage can be output to the display component through the target gamma voltage data. It can be understood that since the gamma voltage output by the gamma voltage correction unit to the display component is ultimately determined by the first gamma voltage data carried by the display component itself, it can be ensured that when different display components are used for assembly to obtain a display device, The gamma voltage output by the gamma voltage correction unit is always compatible with the display component, thereby improving the stability of the display component's picture output and reducing the possibility of display defects.
附图说明Description of the drawings
图1是本申请实施例方案涉及的硬件运行环境的显示设备结构示意图;Figure 1 is a schematic structural diagram of a display device of the hardware operating environment involved in the embodiment of the present application;
图2为本申请显示设备伽玛电压控制方法的第一实施例的流程示意图;Figure 2 is a schematic flow chart of the first embodiment of the gamma voltage control method of the display device of the present application;
图3为本申请显示设备伽玛电压控制方法中主芯片SoC、伽玛电压矫正单元以及控制组件的交互示意图;Figure 3 is a schematic diagram of the interaction between the main chip SoC, the gamma voltage correction unit and the control components in the gamma voltage control method of the display device of the present application;
图4为本申请显示设备伽玛电压控制方法中第二实施例的流程示意图;Figure 4 is a schematic flow chart of the second embodiment of the gamma voltage control method of the display device of the present application;
图5为本申请显示设备伽玛电压控制方法中显示设备伽玛电压装置结构示意图。FIG. 5 is a schematic structural diagram of a gamma voltage device of a display device in the gamma voltage control method of the display device of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的显示设备结构示意图。As shown in Figure 1, Figure 1 is a schematic structural diagram of a display device of the hardware operating environment involved in the embodiment of the present application.
本申请实施例的显示设备可以是电视机,可以是显示器,也可以是智能手机、PC、平板电脑、便携计算机等电子终端设备。The display device in the embodiment of the present application may be a television, a monitor, or an electronic terminal device such as a smartphone, PC, tablet computer, or portable computer.
如图1所示,该显示设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in Figure 1, the display device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize connection communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). The optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
可选地,显示设备还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。本领域技术人员可以理解,图1中示出的显示设备结构并不构成对显示设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Optionally, the display device may also include a camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio circuit, WiFi module, etc. The terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here. Those skilled in the art can understand that the structure of the display device shown in FIG. 1 does not constitute a limitation on the display device, and may include more or fewer components than shown, or combine certain components, or arrange different components.
本领域技术人员可以理解,图1中示出的显示设备结构并不构成对显示设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the display device shown in FIG. 1 does not constitute a limitation on the display device, and may include more or fewer components than shown, or combine certain components, or arrange different components.
此外,如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及显示设备伽玛电压控制程序。In addition, as shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a display device gamma voltage control program.
在图1所示的显示设备中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的显示设备伽玛电压控制程序,所述显示设备包括显示组件和伽玛电压矫正单元,并执行以下操作:In the display device shown in Figure 1, the network interface 1004 is mainly used to connect to the backend server and communicate with the backend server; the user interface 1003 is mainly used to connect to the client (user) and communicate with the client; and the processing The processor 1001 can be used to call the gamma voltage control program of the display device stored in the memory 1005. The display device includes a display component and a gamma voltage correction unit, and perform the following operations:
获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;Obtaining first gamma voltage data adapted to the display component that is prestored in the display component;
将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;converting the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit;
在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。When the target gamma voltage data does not exist in the gamma voltage correction unit, the target gamma voltage data is written into the gamma voltage correction unit, so that the gamma voltage correction unit is based on The target gamma voltage data outputs a gamma voltage to the display component.
在一可行实施方式中,处理器1001可以调用存储器1005中存储的显示设备伽玛电压控制程序,还执行以下操作:In a possible implementation, the processor 1001 can call the display device gamma voltage control program stored in the memory 1005, and also perform the following operations:
所述将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据的步骤包括:The step of converting the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit includes:
通过所述显示组件的第一数据映射关系,生成所述第一伽玛电压数据表征的第一伽玛电压,其中,所述第一数据映射关系表征所述显示组件中第一伽玛电压数据与伽玛电压之间的关系;The first gamma voltage represented by the first gamma voltage data is generated through the first data mapping relationship of the display component, wherein the first data mapping relationship represents the first gamma voltage data in the display component Relationship with gamma voltage;
通过所述伽玛电压矫正单元的第二数据映射关系,将所述第一伽玛电压映射为所述目标伽玛电压数据,其中,所述第二数据映射关系表征所述伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系。The first gamma voltage is mapped to the target gamma voltage data through a second data mapping relationship of the gamma voltage correction unit, wherein the second data mapping relationship represents the gamma voltage correction unit The relationship between the second gamma voltage data and the gamma voltage.
在一可行实施方式中,处理器1001可以调用存储器1005中存储的显示设备伽玛电压控制程序,还执行以下操作:In a possible implementation, the processor 1001 can call the display device gamma voltage control program stored in the memory 1005, and also perform the following operations:
在所述将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤之前,所述方法包括:Before the step of writing the target gamma voltage data into the gamma voltage correction unit, the method includes:
根据所述伽玛电压矫正单元的单元类型,判断所述伽玛电压矫正单元中是否预存第二伽玛电压数据;Determine whether the second gamma voltage data is pre-stored in the gamma voltage correction unit according to the unit type of the gamma voltage correction unit;
若所述伽玛电压矫正单元中未预存所述第二伽玛电压数据,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit;
若所述伽玛电压矫正单元中预存所述第二伽玛电压数据,则判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同;If the second gamma voltage data is prestored in the gamma voltage correction unit, determine whether the second gamma voltage data and the target gamma voltage data are the same;
若所述第二伽玛电压数据和所述目标伽玛电压数据不相同,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据。If the second gamma voltage data and the target gamma voltage data are not the same, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit.
在一可行实施方式中,处理器1001可以调用存储器1005中存储的显示设备伽玛电压控制程序,还执行以下操作:In a possible implementation, the processor 1001 can call the display device gamma voltage control program stored in the memory 1005, and also perform the following operations:
在所述判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同的步骤之后,所述方法包括:After the step of determining whether the second gamma voltage data and the target gamma voltage data are the same, the method includes:
若所述第二伽玛电压数据和所述目标伽玛电压数据相同,则控制所述伽玛电压矫正单元,基于所述第二伽玛电压数据向所述显示组件输出伽玛电压。If the second gamma voltage data is the same as the target gamma voltage data, the gamma voltage correction unit is controlled to output a gamma voltage to the display component based on the second gamma voltage data.
在一可行实施方式中,处理器1001可以调用存储器1005中存储的显示设备伽玛电压控制程序,还执行以下操作:In a possible implementation, the processor 1001 can call the display device gamma voltage control program stored in the memory 1005, and also perform the following operations:
所述将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤包括:The step of writing the target gamma voltage data into the gamma voltage correction unit includes:
在所述伽玛电压矫正单元中未预存所述第二伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, write the target gamma voltage data into the gamma voltage correction unit;
在所述伽玛电压矫正单元中预存所述第二伽玛电压数据,且所述第二伽玛电压数据与所述目标伽玛电压数据不相同的情况下,擦除所述第二伽玛电压数据后,将所述目标伽玛电压数据写入所述伽玛电压矫正单元。When the second gamma voltage data is prestored in the gamma voltage correction unit and the second gamma voltage data is different from the target gamma voltage data, the second gamma voltage data is erased. After the voltage data is obtained, the target gamma voltage data is written into the gamma voltage correction unit.
在一可行实施方式中,处理器1001可以调用存储器1005中存储的显示设备伽玛电压控制程序,还执行以下操作:In a possible implementation, the processor 1001 can call the display device gamma voltage control program stored in the memory 1005, and also perform the following operations:
所述显示组件中还储存有所述第一伽玛电压数据的预存校验码以及与所述预存校验码对应的校验算法,所述获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据的步骤包括:The display component also stores a pre-stored check code of the first gamma voltage data and a check algorithm corresponding to the pre-stored check code. The acquisition of the pre-stored check code in the display component is consistent with the display component. The steps for adapting the first gamma voltage data include:
从所述显示组件中预设存储区读取数据;Read data from the preset storage area in the display component;
基于所述校验算法对读取到的数据进行计算,得到计算结果;Calculate the read data based on the verification algorithm to obtain the calculation results;
若所述计算结果与所述预存校验码相同,则将所述读取到的数据作为所述第一伽玛电压数据。If the calculation result is the same as the pre-stored check code, the read data is used as the first gamma voltage data.
在一可行实施方式中,所述显示设备还包括控制组件,所述第一伽玛电压数据通过所述控制组件与所述显示组件之间的通信协议传输,所述通信协议为I2C协议、SPI协议、串口协议或私有协议。In a feasible implementation, the display device further includes a control component, and the first gamma voltage data is transmitted through a communication protocol between the control component and the display component. The communication protocol is an I2C protocol, SPI protocol, serial port protocol or proprietary protocol.
需要说明的是,为清楚的说明本申请方案的内容。现对传统的显示组件的生产场景进行说明。It should be noted that this is to clearly explain the content of this application plan. The production scenario of traditional display components is now explained.
在传统生产场景下,显示组件的生产厂商生产的显示组件会带有Tcon板(TimingController,定时控制器,为点液晶面版所需要的PCB板(Printed Circuit Board,电路板)),其中,在Tcon板上会带有GammaIC。因此,对于显示组件的生产厂商,生产显示组件时在对应GammaIC预存适配的伽玛电压即可。但是在GammaIC和显示组件自行组合的非标准显示设备生产场景下。显示组件与GammaIC为分开生产情况下,例如,显示设备厂家适配TconLess的配屏,其中,TconLess是指Tcon板或GammaIC被集成到显示设备的SoC(System-on-a-Chip,主芯片)上的情况。通常情况下显示设备厂家生产显示设备时,显示设备的显示组件可能来源于不同的显示组件厂家,而显示设备的SoC则由显示设备厂家自主研发,因此,很容易出现伽玛电压与显示组件不匹配的情况,导致终端显示设备厂商调校显示画面自动白平衡时无法通过,造成显示画面存在缺陷。故针对上述问题,本申请提出显示设备伽玛电压控制方法,由显示设备自行根据不同显示组件设置不同的伽玛电压,从而实现伽玛电压与显示组件适配的目标,保证显示组件可正常显示画面。In traditional production scenarios, the display components produced by the display component manufacturer will have a Tcon board (TimingController, timing controller, PCB board (Printed Circuit Board, circuit board) required for the LCD panel). Among them, There will be GammaIC on the Tcon board. Therefore, for manufacturers of display components, they only need to pre-store the adapted gamma voltage in the corresponding GammaIC when producing display components. But in the non-standard display device production scenario where GammaIC and display components are combined by themselves. When the display component and GammaIC are produced separately, for example, the display device manufacturer adapts the screen configuration of TconLess, where TconLess refers to the SoC (System-on-a-Chip, main chip) where the Tcon board or GammaIC is integrated into the display device. situation. Normally when a display device manufacturer produces a display device, the display components of the display device may come from different display component manufacturers, while the SoC of the display device is independently developed by the display device manufacturer. Therefore, it is easy for the gamma voltage to be inconsistent with the display component. The matching situation causes the terminal display equipment manufacturer to fail to adjust the automatic white balance of the display screen, resulting in defects in the display screen. Therefore, in response to the above problems, this application proposes a gamma voltage control method for display devices. The display device sets different gamma voltages according to different display components, thereby achieving the goal of adapting the gamma voltage to the display components and ensuring that the display components can display normally. picture.
参照图2,本申请显示设备伽玛电压控制方法的第一实施例,所述显示设备包括显示组件和伽玛电压矫正单元,所述显示设备伽玛电压控制方法包括:Referring to Figure 2, there is a first embodiment of a gamma voltage control method for a display device of the present application. The display device includes a display component and a gamma voltage correction unit. The gamma voltage control method for a display device includes:
步骤S10,获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;Step S10: Obtain the first gamma voltage data pre-stored in the display component and adapted to the display component;
需要说明的是,在本实施例中显示设备包括显示组件和伽玛电压矫正单元。此外,显示设备还包括有控制组件,控制组件可以是SoC,而在控制组件上可集成伽玛电压矫正单元。参照图3,为本申请中主芯片SoC、伽玛电压矫正单元以及控制组件的交互示意图。而上述显示设备伽玛电压控制方法的实施主体可以是显示设备,也可以是显示设备中的控制组件。为便于清楚的对本方案进行说明,以控制组件为例进行说明。It should be noted that in this embodiment, the display device includes a display component and a gamma voltage correction unit. In addition, the display device also includes a control component, which may be an SoC, and a gamma voltage correction unit may be integrated on the control component. Refer to Figure 3, which is a schematic diagram of the interaction between the main chip SoC, the gamma voltage correction unit and the control components in this application. The implementation subject of the above gamma voltage control method for a display device may be a display device or a control component in the display device. In order to explain this solution clearly, the control component is taken as an example.
示例性的,控制组件在上电启动后会与显示组件通信,并从显示组件上获取预存的第一伽玛电压数据。通常情况下与显示组件适配的伽玛电压有相应显示组件厂家适配得到,且伽玛电压的相关数据会由显示组件厂家储存在显示组件的flash存储器中。例如,参照图3,主芯片SoC(控制组件)会通过约定的协议从显示组件中的flash存储器获读取到伽玛电压的相关数据,也即上述第一伽玛电压数据。For example, the control component communicates with the display component after being powered on and obtains the pre-stored first gamma voltage data from the display component. Usually, the gamma voltage adapted to the display component is adapted by the corresponding display component manufacturer, and the relevant data of the gamma voltage will be stored in the flash memory of the display component by the display component manufacturer. For example, referring to Figure 3, the main chip SoC (control component) will read the relevant data of the gamma voltage from the flash memory in the display component through an agreed protocol, that is, the above-mentioned first gamma voltage data.
在一可行的实施方式中,所述显示设备还包括控制组件,所述第一伽玛电压数据通过所述控制组件与所述显示组件之间的通信协议传输,所述通信协议为I2C协议、SPI协议、串口协议或私有协议。In a feasible implementation, the display device further includes a control component, and the first gamma voltage data is transmitted through a communication protocol between the control component and the display component. The communication protocol is an I2C protocol, SPI protocol, serial port protocol or private protocol.
示例性的,上述控制组件可以是显示设备的主控片SoC,第一伽玛电压数据可通过控制组件与显示组件之间的通信协议进行传输,而控制组件与所述显示组件之间的通信协议可以是约定的协议,例如,I2C(Inter-Integrated Circuit,总线)协议、SPI(SerialPeripheral Interface串行外设接口,)协议、串口协议或者其他私有协议等。For example, the above-mentioned control component may be the main control chip SoC of the display device, the first gamma voltage data may be transmitted through a communication protocol between the control component and the display component, and the communication between the control component and the display component The protocol may be an agreed protocol, such as I2C (Inter-Integrated Circuit, bus) protocol, SPI (SerialPeripheral Interface) protocol, serial port protocol or other private protocols.
步骤S20,将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;Step S20, convert the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit;
需要说明的是,伽玛电压矫正单元会存储伽玛电压的相关数据,但是相关数据通常为伽玛电压的数字信号数据,其中,伽玛电压具体的电压值为模拟信号,因此,伽玛电压的相关数据与伽玛电压之间存在有数模映射关系。而该映射关系,对于不同的伽玛电压矫正单元可能会不同。因此,为保证伽玛电压矫正单元最终输出的伽玛电压是准确的。可通过不同的数模映射关系,对从显示组件中获取到第一伽玛电压数据进行转换,得到与伽玛电压矫正单元匹配的目标伽玛电压数据。It should be noted that the gamma voltage correction unit will store relevant data of the gamma voltage, but the relevant data is usually the digital signal data of the gamma voltage. Among them, the specific voltage value of the gamma voltage is an analog signal. Therefore, the gamma voltage There is a digital-to-analog mapping relationship between the relevant data and the gamma voltage. The mapping relationship may be different for different gamma voltage correction units. Therefore, to ensure that the gamma voltage finally output by the gamma voltage correction unit is accurate. The first gamma voltage data obtained from the display component can be converted through different digital-to-analog mapping relationships to obtain target gamma voltage data that matches the gamma voltage correction unit.
在一可行的实施方式中,所述将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据的步骤包括:In a feasible implementation, the step of converting the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit includes:
步骤S210,通过所述显示组件的第一数据映射关系,生成所述第一伽玛电压数据表征的第一伽玛电压,其中,所述第一数据映射关系表征所述显示组件中第一伽玛电压数据与伽玛电压之间的关系;Step S210: Generate a first gamma voltage represented by the first gamma voltage data through the first data mapping relationship of the display component, wherein the first data mapping relationship represents the first gamma voltage in the display component. The relationship between ma voltage data and gamma voltage;
步骤S220,通过所述伽玛电压矫正单元的第二数据映射关系,将所述第一伽玛电压映射为所述目标伽玛电压数据,其中,所述第二数据映射关系表征所述伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系。Step S220: Map the first gamma voltage to the target gamma voltage data through the second data mapping relationship of the gamma voltage correction unit, where the second data mapping relationship represents the gamma voltage data. The relationship between the second gamma voltage data and the gamma voltage in the voltage correction unit.
需要说明的是,显示组件的生产厂家和显示设备的生产厂家之间,通常不会对伽玛电压矫正单元做统一,而在实际应用中,这两者之间也难以做统一。但是显示组件的生产厂家可以将向显示组件中储存的第一伽玛电压数据与伽玛电压之间的关系进行告知,例如,将第一伽玛电压数据与伽玛电压之间的关系,也即第一数据映射关系,储存在所述显示设备中,其中,第一数据映射关系可以是计算公式,将第一伽玛电压数据输入至该计算公式中,即可得到伽玛电压,第一数据映射关系也可以是映射表,通过映射表从确定与第一伽玛电压数据对应的伽玛电压。故通过第一数据映射关系可生成第一伽玛电压数据表征的第一伽玛电压。同样的,第二数据映射关系可表征伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系,伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系也可以是计算公式,也可以是映射表。故通过第二数据映射关系可将第一伽玛电压映射转换为与伽玛电压矫正单元适配的目标伽玛电压数据。It should be noted that manufacturers of display components and manufacturers of display equipment usually do not unify the gamma voltage correction units, and in practical applications, it is difficult to unify the two. However, the manufacturer of the display component can inform the relationship between the first gamma voltage data and the gamma voltage stored in the display component, for example, the relationship between the first gamma voltage data and the gamma voltage, or That is, the first data mapping relationship is stored in the display device. The first data mapping relationship can be a calculation formula. By inputting the first gamma voltage data into the calculation formula, the gamma voltage can be obtained. The first The data mapping relationship may also be a mapping table, through which the gamma voltage corresponding to the first gamma voltage data is determined. Therefore, the first gamma voltage represented by the first gamma voltage data can be generated through the first data mapping relationship. Similarly, the second data mapping relationship can represent the relationship between the second gamma voltage data and the gamma voltage in the gamma voltage correction unit, and the relationship between the second gamma voltage data and the gamma voltage in the gamma voltage correction unit. Relationships can also be calculation formulas or mapping tables. Therefore, the first gamma voltage mapping can be converted into target gamma voltage data adapted to the gamma voltage correction unit through the second data mapping relationship.
步骤S30,在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。Step S30: If the target gamma voltage data does not exist in the gamma voltage correction unit, write the target gamma voltage data into the gamma voltage correction unit so that the gamma voltage The correction unit outputs a gamma voltage to the display component based on the target gamma voltage data.
示例性的,在伽玛电压矫正单元中不存在目标伽玛电压数据的情况下。控制组件将会把对目标伽玛电压数据写入至伽玛电压矫正单元中,使得伽玛电压矫正单元可基于目标伽玛电压数据向显示组件输出伽玛电压,从而保证伽玛电压矫正单元向显示组件输出的伽玛电压与显示组件是相匹配的。例如,参照图3,主芯片SoC会向伽玛电压矫正单元写入目标伽玛电压数据,而伽玛电压矫正单元有将基于目标伽玛电压数据向显示组件数据伽玛电压。For example, the target gamma voltage data does not exist in the gamma voltage correction unit. The control component will write the target gamma voltage data into the gamma voltage correction unit, so that the gamma voltage correction unit can output the gamma voltage to the display component based on the target gamma voltage data, thereby ensuring that the gamma voltage correction unit The gamma voltage output by the display component matches the display component. For example, referring to Figure 3, the main chip SoC will write the target gamma voltage data to the gamma voltage correction unit, and the gamma voltage correction unit will write the gamma voltage to the display component based on the target gamma voltage data.
在一可行的实施方式中,所述在将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤之前,所述方法包括:In a feasible implementation, before writing the target gamma voltage data into the gamma voltage correction unit, the method includes:
步骤S310,根据所述伽玛电压矫正单元的单元类型,判断所述伽玛电压矫正单元中是否预存第二伽玛电压数据;Step S310, determine whether the second gamma voltage data is pre-stored in the gamma voltage correction unit according to the unit type of the gamma voltage correction unit;
步骤S320,若所述伽玛电压矫正单元中未预存所述第二伽玛电压数据,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据;Step S320, if the second gamma voltage data is not pre-stored in the gamma voltage correction unit, determine that the target gamma voltage data does not exist in the gamma voltage correction unit;
步骤S330,若所述伽玛电压矫正单元中预存所述第二伽玛电压数据,则判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同;Step S330, if the second gamma voltage data is pre-stored in the gamma voltage correction unit, determine whether the second gamma voltage data and the target gamma voltage data are the same;
步骤S340,若所述第二伽玛电压数据和所述目标伽玛电压数据不相同,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据。Step S340: If the second gamma voltage data and the target gamma voltage data are not the same, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit.
示例性的,在将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤之前,会判断伽玛电压矫正单元中是否存在目标伽玛电压数据。首先根据伽玛电压矫正单元的单元类型判断,该伽玛电压矫正单元中是否存会预存伽玛数据(即第二伽玛电压数据)。例如,基于该伽玛电压矫正单元的单元类型,从单元类型与预存情况之间的映射表查找该伽玛电压矫正单元中是否存会预存伽玛电压数据,若根据单元类型确定,不存在有预存伽玛电压数据(即第二伽玛电压),则可直接判定该伽玛电压矫正单元中不存在所述目标伽玛电压数据。反之,若确定该伽玛电压矫正单元预存有第二伽玛电压数据,则进一步从伽玛电压矫正单元中读取第二伽玛电压数据,如图3所示,主芯片SoC将从伽玛电压矫正单元读取第二伽玛电压数据。并判断读取到的第二伽玛电压数据和所述目标伽玛电压数据是否相同。若不相同,同样判定该伽玛电压矫正单元中不存在所述目标伽玛电压数据。For example, before writing the target gamma voltage data into the gamma voltage correction unit, it is determined whether the target gamma voltage data exists in the gamma voltage correction unit. First, it is determined according to the unit type of the gamma voltage correction unit whether there is pre-stored gamma data (ie, second gamma voltage data) in the gamma voltage correction unit. For example, based on the unit type of the gamma voltage correction unit, search from the mapping table between the unit type and the pre-stored condition whether there is pre-stored gamma voltage data in the gamma voltage correction unit. If it is determined according to the unit type, there is no pre-stored gamma voltage data. If the gamma voltage data (ie, the second gamma voltage) is pre-stored, it can be directly determined that the target gamma voltage data does not exist in the gamma voltage correction unit. On the contrary, if it is determined that the second gamma voltage data is pre-stored in the gamma voltage correction unit, the second gamma voltage data will be further read from the gamma voltage correction unit. As shown in Figure 3, the main chip SoC will read the second gamma voltage data from the gamma voltage correction unit. The voltage correction unit reads the second gamma voltage data. And determine whether the read second gamma voltage data and the target gamma voltage data are the same. If not, it is also determined that the target gamma voltage data does not exist in the gamma voltage correction unit.
在一可行的实施方式中,在所述判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同的步骤之后,所述方法包括:In a feasible implementation, after the step of determining whether the second gamma voltage data and the target gamma voltage data are the same, the method includes:
步骤S40,若所述第二伽玛电压数据和所述目标伽玛电压数据相同,则控制所述伽玛电压矫正单元,基于所述第二伽玛电压数据向所述显示组件输出伽玛电压。Step S40: If the second gamma voltage data is the same as the target gamma voltage data, control the gamma voltage correction unit to output a gamma voltage to the display component based on the second gamma voltage data. .
示例性的,若第二伽玛电压数据和目标伽玛电压数据相同,则无需再向伽玛电压矫正单元中写入目标伽玛电压数据。可直接控制伽玛电压矫正单元,基于自身预存的第二伽玛电压数据向显示组件输出伽玛电压。此时,输出的伽玛电压同样是与显示组件向适配的。For example, if the second gamma voltage data and the target gamma voltage data are the same, there is no need to write the target gamma voltage data into the gamma voltage correction unit. The gamma voltage correction unit can be directly controlled to output the gamma voltage to the display component based on its own pre-stored second gamma voltage data. At this time, the output gamma voltage is also adapted to the display component.
在一可行的实施方式中,所述将所述目标伽玛电压数据写入所述伽玛电压矫正单元的步骤包括:In a feasible implementation, the step of writing the target gamma voltage data into the gamma voltage correction unit includes:
步骤S301,在所述伽玛电压矫正单元中未预存所述第二伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元;Step S301: If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, write the target gamma voltage data into the gamma voltage correction unit;
步骤S302,在所述伽玛电压矫正单元中预存所述第二伽玛电压数据,且所述第二伽玛电压数据与所述目标伽玛电压数据不相同的情况下,擦除所述第二伽玛电压数据后,将所述目标伽玛电压数据写入所述伽玛电压矫正单元。Step S302: When the second gamma voltage data is prestored in the gamma voltage correction unit and the second gamma voltage data is different from the target gamma voltage data, erase the first gamma voltage data. After obtaining the gamma voltage data, the target gamma voltage data is written into the gamma voltage correction unit.
示例性的,在将目标伽玛电压数据写入所述伽玛电压矫正单元时,可分为多种情况,例如,伽玛电压矫正单元中未预存所述第二伽玛电压数据的情况,此时,可直接将目标伽玛电压数据写入所述伽玛电压矫正单元。但是对于伽玛电压矫正单元中预存所述第二伽玛电压数据,且所述第二伽玛电压数据与所述目标伽玛电压数据不相同的情况,则需要先将伽玛电压矫正单元中的第二伽玛电压数据擦除,再将目标伽玛电压写入至该伽玛电压矫正单元。Exemplarily, when the target gamma voltage data is written into the gamma voltage correction unit, it can be divided into various situations, for example, the situation where the second gamma voltage data is not pre-stored in the gamma voltage correction unit, At this time, the target gamma voltage data can be directly written into the gamma voltage correction unit. However, if the second gamma voltage data is pre-stored in the gamma voltage correction unit, and the second gamma voltage data is different from the target gamma voltage data, it is necessary to first store the second gamma voltage data in the gamma voltage correction unit. The second gamma voltage data is erased, and then the target gamma voltage is written into the gamma voltage correction unit.
在本实施例中,显示设备包括显示组件和伽玛电压矫正单元,且显示设备中的控制组件将获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。也即本申请实施例中,首先控制组件会获取显示组件中的与显示组件适配的第一伽玛电压数据,再将该第一伽玛电压数据进行转换得到与伽玛电压矫正单元匹配的目标伽玛电压数据,其次通过伽玛电压矫正单元对目标伽玛电压数据进行解析得到正确的伽玛电压,最后再将目标伽玛电压数据写入至伽玛电压矫正单元,使得伽玛电压矫正单元,可通过目标伽玛电压数据向显示组件输出正确的伽玛电压。可以理解的是,由于伽玛电压矫正单元向显示组件输出的伽玛电压最终是通过显示组件自身携带的第一伽玛电压数据确定的,可保证在使用不同显示组件进行组装得到显示设备时,伽玛电压矫正单元输出的伽玛电压始终与显示组件是相适配的,从而提升显示组件画面输出的稳定性,减少出现显示缺陷的可能。In this embodiment, the display device includes a display component and a gamma voltage correction unit, and the control component in the display device will obtain the first gamma voltage data prestored in the display component that is adapted to the display component; The first gamma voltage data is converted into target gamma voltage data matching the gamma voltage correction unit; when the target gamma voltage data does not exist in the gamma voltage correction unit, the The target gamma voltage data is written into the gamma voltage correction unit, so that the gamma voltage correction unit outputs a gamma voltage to the display component based on the target gamma voltage data. That is to say, in the embodiment of the present application, the control component first obtains the first gamma voltage data in the display component that is adapted to the display component, and then converts the first gamma voltage data to obtain the gamma voltage correction unit matching the first gamma voltage data. Target gamma voltage data, secondly, the target gamma voltage data is analyzed through the gamma voltage correction unit to obtain the correct gamma voltage, and finally the target gamma voltage data is written to the gamma voltage correction unit, so that the gamma voltage is corrected The unit can output the correct gamma voltage to the display component through the target gamma voltage data. It can be understood that since the gamma voltage output by the gamma voltage correction unit to the display component is ultimately determined by the first gamma voltage data carried by the display component itself, it can be ensured that when different display components are used for assembly to obtain a display device, The gamma voltage output by the gamma voltage correction unit is always compatible with the display component, thereby improving the stability of the display component's picture output and reducing the possibility of display defects.
参照图4,基于本申请第一实施例提出,本申请的第二实施例,在本实施例中与上述实施相同部分可参照上述内容,此处不再赘述。所述显示组件中还储存有所述第一伽玛电压数据的预存校验码以及与所述预存校验码对应的校验算法,所述获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据的步骤包括:Referring to FIG. 4 , a second embodiment of the present application is proposed based on the first embodiment of the present application. In this embodiment, the same parts as the above implementation can be referred to the above content, and will not be described again here. The display component also stores a pre-stored check code of the first gamma voltage data and a check algorithm corresponding to the pre-stored check code. The acquisition of the pre-stored check code in the display component is consistent with the display component. The steps for adapting the first gamma voltage data include:
步骤A10,从所述显示组件中预设存储区读取数据;Step A10, read data from the preset storage area in the display component;
步骤A20,基于所述校验算法对读取到的数据进行计算,得到计算结果;Step A20: Calculate the read data based on the verification algorithm to obtain calculation results;
步骤A30,若所述计算结果与所述预存校验码相同,则将所述读取到的数据作为所述第一伽玛电压数据。Step A30: If the calculation result is the same as the pre-stored check code, use the read data as the first gamma voltage data.
需要说明的是,从而显示组件中获取的第一伽玛电压数据是,伽玛电压矫正单元输出伽玛电压的依据,因此,需确保获取到的第一伽玛电压数据的准确性。It should be noted that the first gamma voltage data obtained from the display component is the basis for the gamma voltage correction unit to output the gamma voltage. Therefore, the accuracy of the obtained first gamma voltage data needs to be ensured.
示例性的,显示组件中还将存储第一伽玛电压数据的预存校验码,以及以该预存校验码对应的校验算法,也即上述预存校验码是通过校验算法对第一伽玛电压数据进行计算的结果。显示组件厂家在向显示组件中写入第一伽玛电压数据时,可将通过校验算法对第一伽玛电压数据进行计算的结果一同写入。控制组件从显示组件中预设存储区读取数据后,可通过上述校验算法对读取得到数据进行计算,得到计算结果。再将计算结果与预存校验码比对,若两者是相同的,则将读取到的数据作为第一伽玛电压数据。反之,若两者不相同,则可表示读取到的数据可能存在错误,并输出错误提示。从而避免对错误的数据进行转化解析输出至显示组件,造成伽玛电压与显示组件不适配的情况出现。此外,还需要说明的是,上述校验算法可以是CRC(Cyclic Redundancy Check,循环冗余校验)、md5(MessageDigest Algorithm,消息摘要算法第五版)、hash128(128位哈希算法)等算法。Exemplarily, the display component will also store a pre-stored check code of the first gamma voltage data, and a check algorithm corresponding to the pre-stored check code, that is, the above-mentioned pre-stored check code is a verification algorithm for the first The result of calculation using gamma voltage data. When the display component manufacturer writes the first gamma voltage data into the display component, the display component manufacturer can also write the result of calculating the first gamma voltage data through the verification algorithm. After the control component reads the data from the preset storage area in the display component, it can calculate the read data through the above-mentioned verification algorithm to obtain the calculation result. The calculation result is then compared with the pre-stored check code. If the two are the same, the read data is used as the first gamma voltage data. On the contrary, if the two are not the same, it means that there may be errors in the read data, and an error message will be output. This avoids converting, analyzing and outputting erroneous data to the display component, causing the gamma voltage to not match the display component. In addition, it should be noted that the above verification algorithm can be CRC (Cyclic Redundancy Check, cyclic redundancy check), md5 (MessageDigest Algorithm, message digest algorithm fifth edition), hash128 (128-bit hash algorithm) and other algorithms .
请参阅图5,此外,本申请实施例还提供一种显示设备伽玛电压控制装置100,所述显示设备包括显示组件和伽玛电压矫正单元,所述显示设备伽玛电压控制装置100包括:Please refer to Figure 5. In addition, the embodiment of the present application also provides a display device gamma voltage control device 100. The display device includes a display component and a gamma voltage correction unit. The display device gamma voltage control device 100 includes:
获取模块10,用于获取所述显示组件中预存的与所述显示组件适配的第一伽玛电压数据;The acquisition module 10 is used to acquire the first gamma voltage data pre-stored in the display component and adapted to the display component;
转换模块20,用于将所述第一伽玛电压数据转换为与所述伽玛电压矫正单元匹配的目标伽玛电压数据;Conversion module 20, configured to convert the first gamma voltage data into target gamma voltage data matching the gamma voltage correction unit;
写入模块30,用于在所述伽玛电压矫正单元中不存在所述目标伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元,以使所述伽玛电压矫正单元基于所述目标伽玛电压数据向所述显示组件输出伽玛电压。The writing module 30 is configured to write the target gamma voltage data into the gamma voltage correction unit when the target gamma voltage data does not exist in the gamma voltage correction unit, so that the target gamma voltage data is The gamma voltage correction unit outputs a gamma voltage to the display component based on the target gamma voltage data.
可选地,所述转换模块20还用于:Optionally, the conversion module 20 is also used to:
通过所述显示组件的第一数据映射关系,生成所述第一伽玛电压数据表征的第一伽玛电压,其中,所述第一数据映射关系表征所述显示组件中第一伽玛电压数据与伽玛电压之间的关系;The first gamma voltage represented by the first gamma voltage data is generated through the first data mapping relationship of the display component, wherein the first data mapping relationship represents the first gamma voltage data in the display component Relationship with gamma voltage;
通过所述伽玛电压矫正单元的第二数据映射关系,将所述第一伽玛电压映射为所述目标伽玛电压数据,其中,所述第二数据映射关系表征所述伽玛电压矫正单元中第二伽玛电压数据与伽玛电压之间的关系。The first gamma voltage is mapped to the target gamma voltage data through a second data mapping relationship of the gamma voltage correction unit, wherein the second data mapping relationship represents the gamma voltage correction unit The relationship between the second gamma voltage data and the gamma voltage.
可选地,所述显示设备伽玛电压控制装置100还包括判断模块40,所述判断模块40还用于:Optionally, the display device gamma voltage control device 100 also includes a judgment module 40, and the judgment module 40 is also used to:
根据所述伽玛电压矫正单元的单元类型,判断所述伽玛电压矫正单元中是否预存第二伽玛电压数据;Determine whether the second gamma voltage data is pre-stored in the gamma voltage correction unit according to the unit type of the gamma voltage correction unit;
若所述伽玛电压矫正单元中未预存所述第二伽玛电压数据,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit;
若所述伽玛电压矫正单元中预存所述第二伽玛电压数据,则判断所述第二伽玛电压数据和所述目标伽玛电压数据是否相同;If the second gamma voltage data is prestored in the gamma voltage correction unit, determine whether the second gamma voltage data and the target gamma voltage data are the same;
若所述第二伽玛电压数据和所述目标伽玛电压数据不相同,则判定所述伽玛电压矫正单元中不存在所述目标伽玛电压数据。If the second gamma voltage data and the target gamma voltage data are not the same, it is determined that the target gamma voltage data does not exist in the gamma voltage correction unit.
可选地,所述判断模块40还用于:Optionally, the judgment module 40 is also used to:
若所述第二伽玛电压数据和所述目标伽玛电压数据相同,则控制所述伽玛电压矫正单元,基于所述第二伽玛电压数据向所述显示组件输出伽玛电压。If the second gamma voltage data is the same as the target gamma voltage data, the gamma voltage correction unit is controlled to output a gamma voltage to the display component based on the second gamma voltage data.
可选地,所述写入模块30还用于:Optionally, the writing module 30 is also used to:
在所述伽玛电压矫正单元中未预存所述第二伽玛电压数据的情况下,将所述目标伽玛电压数据写入所述伽玛电压矫正单元;If the second gamma voltage data is not pre-stored in the gamma voltage correction unit, write the target gamma voltage data into the gamma voltage correction unit;
在所述伽玛电压矫正单元中预存所述第二伽玛电压数据,且所述第二伽玛电压数据与所述目标伽玛电压数据不相同的情况下,擦除所述第二伽玛电压数据后,将所述目标伽玛电压数据写入所述伽玛电压矫正单元。When the second gamma voltage data is prestored in the gamma voltage correction unit and the second gamma voltage data is different from the target gamma voltage data, the second gamma voltage data is erased. After the voltage data is obtained, the target gamma voltage data is written into the gamma voltage correction unit.
可选地,所述显示组件中还储存有所述第一伽玛电压数据的预存校验码以及与所述预存校验码对应的校验算法,所述显示设备伽玛电压控制装置100还包括校验模块50,所述校验模块50还用于:Optionally, the display component also stores a pre-stored check code of the first gamma voltage data and a check algorithm corresponding to the pre-stored check code, and the display device gamma voltage control device 100 also stores It includes a verification module 50, which is also used to:
从所述显示组件中预设存储区读取数据;Read data from the preset storage area in the display component;
基于所述校验算法对读取到的数据进行计算,得到计算结果;Calculate the read data based on the verification algorithm to obtain the calculation results;
若所述计算结果与所述预存校验码相同,则将所述读取到的数据作为所述第一伽玛电压数据。If the calculation result is the same as the pre-stored check code, the read data is used as the first gamma voltage data.
可选地,所述显示设备还包括控制组件,所述第一伽玛电压数据通过所述控制组件与所述显示组件之间的通信协议传输,所述通信协议为I2C协议、SPI协议、串口协议或私有协议。Optionally, the display device further includes a control component, and the first gamma voltage data is transmitted through a communication protocol between the control component and the display component. The communication protocol is an I2C protocol, an SPI protocol, a serial port protocol or private protocol.
本申请提供的显示设备伽玛电压控制装置,采用上述实施例中的显示设备伽玛电压控制方法,旨在解决非标准显示设备生产场景下,容易出现伽玛电压与显示组件不匹配,导致显示组件显示画面出现缺陷的技术问题。与现有技术相比,本申请实施例提供的显示设备伽玛电压控制装置的有益效果与上述实施例提供的显示设备伽玛电压控制方法的有益效果相同,且该显示设备伽玛电压控制装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The display device gamma voltage control device provided by this application adopts the display device gamma voltage control method in the above embodiment, aiming to solve the problem that in the production scenario of non-standard display equipment, the gamma voltage and the display component are prone to mismatch, resulting in display A technical problem with defects in the component display. Compared with the prior art, the beneficial effects of the display device gamma voltage control device provided by the embodiments of the present application are the same as the beneficial effects of the display device gamma voltage control method provided by the above embodiments, and the display device gamma voltage control device Other technical features are the same as those disclosed in the above embodiments and will not be described again.
此外,为实现上述目的,本申请还提供一种显示设备,所述显示设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的显示设备伽玛电压控制程序,所述显示设备伽玛电压控制程序被所述处理器执行时实现如上述的显示设备伽玛电压控制方法的步骤。In addition, to achieve the above object, the present application also provides a display device, which includes: a memory, a processor, and a display device gamma voltage control program stored on the memory and executable on the processor. When the display device gamma voltage control program is executed by the processor, the steps of the above display device gamma voltage control method are implemented.
本申请显示设备的具体实施方式与上述显示设备伽玛电压控制方法各实施例基本相同,在此不再赘述。The specific implementation of the display device of the present application is basically the same as the above embodiments of the gamma voltage control method of the display device, and will not be described again here.
此外,为实现上述目的,本申请还提供一种存储介质,所述存储介质上存储有显示设备伽玛电压控制程序,所述显示设备伽玛电压控制程序被处理器执行时实现如上述的显示设备伽玛电压控制方法的步骤。In addition, in order to achieve the above object, the present application also provides a storage medium, a display device gamma voltage control program is stored on the storage medium, and when the display device gamma voltage control program is executed by the processor, the above display is realized. Steps of device gamma voltage control method.
本申请存储介质具体实施方式与上述显示设备伽玛电压控制方法各实施例基本相同,在此不再赘述。The specific implementation of the storage medium of the present application is basically the same as the above embodiments of the gamma voltage control method of the display device, and will not be described again here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the terms "include", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or system that includes a list of elements not only includes those elements, but It also includes other elements not expressly listed or that are inherent to the process, method, article or system. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,电视机,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM) as mentioned above. , magnetic disk, optical disk), including several instructions to cause a terminal device (which can be a mobile phone, computer, television, or network device, etc.) to execute the methods described in various embodiments of this application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of the present application may be directly or indirectly used in other related technical fields. , are all equally included in the patent protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311345359.8A CN117275429A (en) | 2023-10-16 | 2023-10-16 | Gamma voltage control method and device for display equipment, display equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311345359.8A CN117275429A (en) | 2023-10-16 | 2023-10-16 | Gamma voltage control method and device for display equipment, display equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117275429A true CN117275429A (en) | 2023-12-22 |
Family
ID=89206183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311345359.8A Pending CN117275429A (en) | 2023-10-16 | 2023-10-16 | Gamma voltage control method and device for display equipment, display equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117275429A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201364723Y (en) * | 2009-03-12 | 2009-12-16 | 青岛海信电器股份有限公司 | Gamma caching circuit adapting to various LCDs and television adopting same |
| CN103996391A (en) * | 2014-04-18 | 2014-08-20 | 京东方科技集团股份有限公司 | Gamma correction circuit and display device |
| US20150356946A1 (en) * | 2014-06-05 | 2015-12-10 | Mstar Semiconductor, Inc. | Gamma correction circuit and gamma correction method |
| CN105304003A (en) * | 2014-06-30 | 2016-02-03 | 晨星半导体股份有限公司 | Gamma correction circuit and gamma correction method |
| CN112950657A (en) * | 2021-03-29 | 2021-06-11 | 合肥京东方显示技术有限公司 | Gamma value correction method, gamma value correction device, electronic device, and readable storage medium |
-
2023
- 2023-10-16 CN CN202311345359.8A patent/CN117275429A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201364723Y (en) * | 2009-03-12 | 2009-12-16 | 青岛海信电器股份有限公司 | Gamma caching circuit adapting to various LCDs and television adopting same |
| CN103996391A (en) * | 2014-04-18 | 2014-08-20 | 京东方科技集团股份有限公司 | Gamma correction circuit and display device |
| US20150356946A1 (en) * | 2014-06-05 | 2015-12-10 | Mstar Semiconductor, Inc. | Gamma correction circuit and gamma correction method |
| CN105304003A (en) * | 2014-06-30 | 2016-02-03 | 晨星半导体股份有限公司 | Gamma correction circuit and gamma correction method |
| CN112950657A (en) * | 2021-03-29 | 2021-06-11 | 合肥京东方显示技术有限公司 | Gamma value correction method, gamma value correction device, electronic device, and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105783900B (en) | A kind of calibration method and device of sensing data | |
| CN104517588B (en) | Display electronic device and backlight adjusting method thereof | |
| CN110212863B (en) | Method, device, electronic equipment and storage medium for calibrating crystal oscillator | |
| US20190204801A1 (en) | Controller and Control Management System | |
| TW201344393A (en) | Electronic device, communication device, time correction system and correction method | |
| JP2018163423A (en) | Construction management system, construction management method, noise measurement method, portable terminal and program | |
| CN114928355B (en) | Voltage compensation method, device and equipment based on crystal oscillator and storage medium | |
| WO2025148852A1 (en) | Screen brightness adjustment method and apparatus, and device | |
| JP7201031B2 (en) | ELECTRONIC DEVICE, PROGRAM, GRAPH IMAGE GENERATION SYSTEM AND IMAGE GENERATION METHOD | |
| CN117275429A (en) | Gamma voltage control method and device for display equipment, display equipment and storage medium | |
| CN117316082A (en) | Display control method, device, equipment, medium and product | |
| TW202131303A (en) | Luminance calibration system and method of mobile device display for medical images | |
| CN114816310B (en) | Display data processing method, device, electronic device and storage medium | |
| JP6965013B2 (en) | Measurement data processor and measurement system | |
| US20220300495A1 (en) | Control system, control method, and control program | |
| CN114637794A (en) | Report data processing method, device, equipment, storage medium and product | |
| US11126292B2 (en) | Electronic apparatus with touch panel and method for updating touch panel | |
| CN110851313A (en) | Sensor debugging method, intelligent terminal, storage medium and electronic equipment | |
| TW202309537A (en) | Testing method of electronic products, electronic device, and storage medium | |
| CN114967813B (en) | Reference voltage calibration method, device and storage medium | |
| US20240411773A1 (en) | Data management system, non-transitory computer readable medium storing program, and data management method | |
| CN113347324B (en) | Image processing method and device, electronic equipment and storage medium | |
| CN106028377A (en) | Terminal physical address detection method and device | |
| CN119580608A (en) | Display screen parameter updating method, device, system, electronic device and storage medium | |
| CN118245124A (en) | Method and device for configuring firmware online and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |