Gamma correction method, display device, storage medium, and program product
By using a two-step parameter determination and switching mechanism to dynamically obtain gamma correction parameters, the problem of low processing efficiency and insufficient real-time performance of gamma correction systems in high-resolution and high-refresh-rate display scenarios is solved, achieving efficient and immediate gamma correction effects.
Patent Information
- Application Number
- CN202610653606.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Filing Date
- 2026-05-12
- Publication Date
- 2026-07-07
AI Technical Summary
Existing gamma correction systems suffer from low processing efficiency and insufficient real-time performance in high-resolution, high-refresh-rate display scenarios due to the contradiction between limited reference parameters and the need for continuous brightness adjustment, making it difficult to meet the requirements for accurate correction and instant response.
A two-step parameter determination and switching mechanism is adopted to dynamically determine two pre-stored reference brightnesses adjacent to the target display brightness, obtain their corresponding gamma lookup table and gamma reference voltage, and directly determine the complete gamma correction parameter set of the target display brightness through calculation, avoiding real-time calculation on a pixel-by-pixel basis and completing parameter generation in advance.
While ensuring calibration accuracy, it significantly reduces real-time processing latency and computational complexity, meeting the requirements of instant response and high energy efficiency in high-resolution and high-refresh-rate scenarios, and achieving a balance between calibration accuracy and processing efficiency.
Smart Images

Figure CN122347933A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image display technology, and in particular to a gamma correction method, display device, storage medium, and program product. Background Technology
[0002] With the rapid development of display technology, high dynamic range and accurate color reproduction have become core competitive advantages for high-end display devices. Gamma correction, as a crucial step in ensuring the accurate conversion of image signals from the digital domain to analog light output, directly determines the final quality of the displayed image and the visual experience. Especially in applications where users frequently or finely adjust display brightness, achieving continuous, stable, and accurate gamma correction across the entire brightness range is the technological foundation for maintaining color consistency and avoiding visual discomfort.
[0003] In existing gamma correction systems, to balance storage efficiency and hardware feasibility, the system typically pre-stores only a limited number of reference correction parameters corresponding to a few discrete brightness levels. When the actual required brightness falls within these preset brightness points, the system must rely on a series of complex real-time calculations to derive the required driving parameters. This derivation process, in principle, involves frequent access, transformation, and synthesis operations on multiple reference parameter sets, and its computational complexity and processing latency increase dramatically with the increase in display resolution and refresh rate. This leads to a fundamental contradiction: on the one hand, the parameter derivation process itself, necessary for achieving accurate display, becomes a bottleneck restricting the system's real-time response capability, energy efficiency, and stable operation in high-performance scenarios due to its inherent computational burden and latency characteristics. There is an irreconcilable tension between pursuing correction accuracy and ensuring processing efficiency and immediate response.
[0004] Therefore, how to overcome the problems of low processing efficiency and insufficient real-time performance caused by the contradiction between limited reference parameters and the need for continuous brightness adjustment in gamma correction, so as to meet the dual stringent requirements of accurate correction and instant response in high-resolution and high-refresh-rate display scenarios, has become a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0005] The main objective of this application is to provide a gamma correction method, display device, storage medium, and program product, aiming to solve the technical problems of low processing efficiency and insufficient real-time performance caused by the contradiction between limited reference parameters and the need for continuous brightness adjustment in gamma correction.
[0006] To achieve the above objectives, this application provides a gamma correction method, which is applied to a display device, and the method includes the following steps: Upon detecting a target display brightness adjustment command, a target reference display brightness corresponding to the target display brightness is determined. The target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness. The target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, wherein the first target reference display brightness is less than the target display brightness, and the second target reference display brightness is greater than the target display brightness. Obtain the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness from the gamma correction parameter storage area of the display device, and determine the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness. When the current display brightness of the display device is adjusted to the target display brightness, gamma correction is performed based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness.
[0007] In addition, to achieve the above objectives, this application also provides a display device, the display device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the gamma correction method as described above.
[0008] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement the steps of the gamma correction method as described above.
[0009] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the gamma correction method described above.
[0010] This application provides a gamma correction method, a display device, a storage medium, and a program product, relating to the field of image display technology. The method, applied to a display device, includes: upon detecting a target display brightness adjustment command, determining a target reference display brightness corresponding to the target display brightness, wherein the target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness, and the target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, wherein the first target reference display brightness is less than the target display brightness, and the second target reference display brightness is greater than the target display brightness; obtaining a gamma lookup table and a gamma reference voltage corresponding to the target reference display brightness from a gamma correction parameter storage area of the display device, and determining a gamma lookup table and a gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage; and performing gamma correction based on the gamma lookup table and gamma reference voltage when the current display brightness of the display device is adjusted to the target display brightness.
[0011] This application's embodiments effectively solve the aforementioned technical problems through an innovative two-step parameter determination and switching mechanism. Specifically, when the system detects a target display brightness adjustment command, it first dynamically determines two pre-stored reference brightnesses adjacent to the target display brightness (i.e., the first and second target reference display brightnesses), and directly retrieves the pre-calibrated complete gamma correction parameters (including a gamma lookup table and gamma reference voltage) corresponding to these two reference brightnesses from the storage area. Subsequently, based on these two known and accurate reference parameter sets, the complete gamma correction parameter set corresponding to the target display brightness is directly determined through calculation. This process avoids complex, gray-level-by-grayscale real-time voltage calculations and interpolation derivations for each pixel during brightness switching, instead advancing and compressing the calculation to a one-time parameter set generation stage. After the display brightness switching is completed, the system can use the pre-calculated complete parameter set, which precisely matches the target brightness, for gamma correction.
[0012] The embodiments of this application fundamentally transform the heavy burden of real-time computing into a one-time, highly efficient parameter preparation, thereby ensuring correction accuracy under arbitrary brightness while significantly reducing real-time processing latency and computational complexity. This enables the system to meet the dual requirements of instant response and high energy efficiency in high-resolution, high-refresh-rate scenarios, achieving a balance between correction accuracy and processing efficiency. Attached Figure Description
[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0014] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a flowchart illustrating the first embodiment of the gamma correction method of this application. Figure 2 This is a flowchart illustrating the second embodiment of the gamma correction method of this application. Figure 3 This is a flowchart illustrating the third embodiment of the gamma correction method of this application. Figure 4 This is a schematic diagram of a traditional gamma correction process; Figure 5 A schematic diagram of the gamma correction process provided in a specific embodiment of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the gamma correction method in the embodiments of this application.
[0016] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0018] The solution provided in this application embodiment is a gamma correction method applied to a display device, comprising: upon detecting a target display brightness adjustment command, determining a target reference display brightness corresponding to the target display brightness, wherein the target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness, the target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, and the first target reference display brightness is less than the target display brightness, and the second target reference display brightness is greater than the target display brightness; obtaining a gamma lookup table and a gamma reference voltage corresponding to the target reference display brightness from the gamma correction parameter storage area of the display device, and determining a gamma lookup table and a gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and the gamma reference voltage corresponding to the target display brightness; and performing gamma correction based on the gamma lookup table and the gamma reference voltage corresponding to the target display brightness when the current display brightness of the display device is adjusted to the target display brightness.
[0019] This application's embodiments effectively solve the aforementioned technical problems through an innovative two-step parameter determination and switching mechanism. Specifically, when the system detects a target display brightness adjustment command, it first dynamically determines two pre-stored reference brightnesses adjacent to the target display brightness (i.e., the first and second target reference display brightnesses), and directly retrieves the pre-calibrated complete gamma correction parameters (including a gamma lookup table and gamma reference voltage) corresponding to these two reference brightnesses from the storage area. Subsequently, based on these two known and accurate reference parameter sets, the complete gamma correction parameter set corresponding to the target display brightness is directly determined through calculation. This process avoids complex, gray-level-by-grayscale real-time voltage calculations and interpolation derivations for each pixel during brightness switching, instead advancing and compressing the calculation to a one-time parameter set generation stage. After the display brightness switching is completed, the system can use the pre-calculated complete parameter set, which precisely matches the target brightness, for gamma correction.
[0020] The embodiments of this application fundamentally transform the heavy burden of real-time computing into a one-time, highly efficient parameter preparation, thereby ensuring correction accuracy under arbitrary brightness while significantly reducing real-time processing latency and computational complexity. This enables the system to meet the dual requirements of instant response and high energy efficiency in high-resolution, high-refresh-rate scenarios, achieving a balance between correction accuracy and processing efficiency.
[0021] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0022] This application proposes a gamma correction method according to a first embodiment.
[0023] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the gamma correction method of this application.
[0024] In this embodiment, the gamma correction method is applied to a display device, including steps S100~S300: Step S100: When a target display brightness adjustment command is detected, a target reference display brightness corresponding to the target display brightness is determined. The target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness. The target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, wherein the first target reference display brightness is less than the target display brightness and the second target reference display brightness is greater than the target display brightness. Those skilled in the art will recognize that a display device refers to an electronic device with image display capabilities, including but not limited to liquid crystal displays, organic light-emitting diode displays, and quantum dot displays. Its core components typically include a display panel and a display driver IC (DDIC). The display driver IC is responsible for receiving image data from the main control chip and converting it into precise analog voltage signals using techniques such as gamma correction to drive each pixel of the display panel to achieve predetermined brightness and color.
[0025] It should be noted that in this embodiment, display brightness refers to the overall brightness of the output image of the display device, usually expressed in nits or a dimensionless Display Brightness Value (DBV). Its actual physical performance is determined by the driving voltage applied to each pixel of the display panel. Current display brightness refers to the display brightness value currently being used by the display device before executing this display brightness adjustment command. Target display brightness refers to the new display brightness value expected by the user through input operations (such as sliding the brightness bar) or automatic system strategies (such as ambient light adaptation). Reference display brightness refers to a specific discrete display brightness level pre-stored in the display device's gamma correction parameter storage area, containing complete gamma correction parameters (i.e., a gamma lookup table and gamma reference voltage). Target reference display brightness refers to the two reference display brightness levels selected from all pre-stored reference display brightness levels that are closest to the current target display brightness (usually one higher and one lower), used as a benchmark for calculating the target brightness correction parameters.
[0026] It should also be noted that, in this embodiment, the target display brightness adjustment command refers to a control signal or event issued by the operating system, driver layer, or user interface of the display device, requesting that the display brightness be adjusted from the current value to a new target value. The triggering source of this command can be manual adjustment by the user, application requests, feedback from the ambient light sensor, or a power-saving strategy preset by the system, etc.
[0027] In this embodiment, upon detecting a target display brightness adjustment command, the system first determines the target reference display brightness corresponding to the target display brightness. The core of this step lies in establishing a bridge between the target brightness and the pre-stored parameter system. Specifically, the system compares the target display brightness with all pre-stored reference display brightnesses in the gamma correction parameter storage area, selecting two closest brightness points: one is the maximum reference display brightness less than the target brightness (i.e., the first target reference display brightness), and the other is the minimum reference display brightness greater than the target brightness (i.e., the second target reference display brightness). This "one low, one high" dual-anchor point selection strategy provides a stable framework for subsequent interpolation or calculation based on two known precise parameter sets, ensuring that regardless of the target brightness's location, the optimal reference benchmark immediately adjacent to it can be obtained.
[0028] This embodiment introduces a dynamic target reference display brightness determination mechanism, anchoring any user-specified target brightness value to a finite set of pre-stored discrete parameter points, thus achieving intelligent mapping from continuous brightness space to discrete parameter space. This avoids the complex real-time derivation or coarse approximation forced upon traditional solutions due to the lack of directly corresponding parameters for target brightness, laying the first logical foundation for efficiently and accurately obtaining target brightness correction parameters.
[0029] Step S200: Obtain the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness from the gamma correction parameter storage area of the display device, and determine the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness. As those skilled in the art will know, gamma correction is a signal processing technique used to compensate for the nonlinear electro-optic conversion characteristics of display devices (i.e., the relationship between input voltage and output brightness is not a simple linear one, but usually follows a power law). Its core purpose is to apply a nonlinear transfer function that is opposite to the panel characteristics in advance, so that the final image has a linear grayscale transition in human eye perception, thereby ensuring color accuracy and visual comfort.
[0030] Gamma correction parameters are a set of configuration data used to perform gamma correction operations. In the gamma correction architecture, its core includes a gamma look-up table (Gamma LUT) and a gamma reference voltage.
[0031] The gamma lookup table is a pre-defined digital mapping table that stores the non-linear correspondence between input digital pixel values (or grayscale values) and intermediate driving codes (DAC codes). For each possible input grayscale (e.g., 0 to 255), a corresponding output code value is defined in the lookup table. The mapping curve of this table is precisely calibrated according to the ideal gamma characteristics of the display panel at a specific brightness (e.g., Gamma 2.2). Its function is to realize the non-linear transformation of digital signals to compensate for the comprehensive non-linearity of subsequent digital-to-analog conversion and electro-optical conversion stages.
[0032] The gamma reference voltage is a set of key reference voltages used to define the range of analog output voltages of the digital-to-analog converter (DAC) in a data driver. It typically includes VgmaH (Gamma Reference Voltage High) and VgmaL (Gamma Reference Voltage Low). These voltage values together determine the highest and lowest analog drive voltages the DAC can produce. The absolute value of the gamma reference voltage directly affects the voltage intensity ultimately applied to the liquid crystal cell or OLED (Organic Light-Emitting Diode) pixel, thus determining the maximum and minimum display brightness at that brightness level. When display brightness varies, the required gamma reference voltage value is adjusted accordingly to maintain the accuracy and spacing of the grayscale voltages.
[0033] It should be noted that, in this embodiment, the gamma correction parameter storage area refers to the physical storage space in the display device (usually located inside the display driver chip or in associated non-volatile memory) used to persistently store multiple sets of gamma correction parameters. Each set of parameters is strictly bound to a specific reference display brightness (e.g., minimum display brightness, nominal display brightness, maximum display brightness, etc.), together forming the basic parameter library after the device is factory calibrated. These parameters are fixed after precise optical measurement and calibration, ensuring that the display device can achieve optimal color and gamma performance at each discrete reference display brightness point.
[0034] This embodiment determines the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness through a preset calculation or interpolation algorithm, based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness. Specifically, the system first reads a complete set of gamma correction parameters (including complete gamma lookup tables LUT1 and LUT2, and their respective reference voltages V_ref1 and V_ref2) corresponding to the first and second target reference display brightness from the storage area. Subsequently, the two sets of reference parameters are synthesized and calculated according to the relative position of the target display brightness between the first and second target reference display brightness (e.g., through linear weight α = (T - L) / (H - L), where T is the target display brightness, L is the first reference display brightness, and H is the second reference display brightness). For the gamma reference voltage, V_ref1 and V_ref2 can be interpolated based on the weight α to obtain a new reference voltage V_ref_T corresponding to the target display brightness. For the gamma lookup table, the DAC code corresponding to each gray level in LUT1 and LUT2 can be determined first. Then, based on the reference voltages V_ref1 and V_ref2, the output voltage corresponding to each gray level under the first and second target reference display brightness can be determined. Then, weighted interpolation is used to obtain the output voltage corresponding to each gray level under the target display brightness. Finally, combined with the reference voltage V_ref_T corresponding to the target display brightness, the DAC code corresponding to each gray level under the target display brightness is obtained, and a new gamma lookup table LUT_T corresponding to the target display brightness is generated. This synthesis process is completed in one step at the parameter level, generating a complete and directly loadable set of gamma correction parameters that directly corresponds to the target display brightness T.
[0035] This embodiment achieves precise parameter generation from a finite number of discrete calibration points to any continuous brightness point by accurately retrieving complete parameters from adjacent reference brightness levels from a pre-stored library and performing calculations based on these parameters. The core advantage of this method lies in its prepositioning and simplification of the complex voltage-based interpolation operations required in traditional schemes for each pixel and grayscale into a one-time batch calculation at the complete parameter set level. This completely avoids the huge computational overhead and latency of pixel-by-pixel voltage derivation, reducing computational complexity from a high dimension directly related to image resolution and grayscale number to a low dimension only related to the parameter table size, providing a key technical guarantee for real-time, high-precision brightness switching.
[0036] Step S300: When the current display brightness of the display device is adjusted to the target display brightness, gamma correction is performed based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness.
[0037] In this embodiment, when the current display brightness of the display device is adjusted to the target display brightness, gamma correction is performed based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness. Specifically, after the display brightness adjustment operation is completed, the display brightness control module of the display driver chip sets the current display brightness to the target display brightness. At the same time, the gamma lookup table (LUT_T) pre-calculated in step S200 and precisely matched to the target display brightness is loaded into the lookup table register, and the corresponding gamma reference voltage (V_ref_T) is configured to the reference voltage input terminal of the digital-to-analog converter. Subsequently, with the current display brightness remaining unchanged, for each frame of input image data, the system maps the input grayscale value of each pixel to the corresponding DAC code through the lookup table LUT_T. The DAC then converts the code value into a precise analog voltage based on the gamma reference voltage V_ref_T, ultimately driving the display panel to produce light output that conforms to the ideal gamma characteristics at the target brightness.
[0038] This embodiment directly applies a pre-calculated set of correction parameters perfectly matched to the target display brightness to the drive circuit, ensuring that the display system operates in optimal correction mode the instant the display brightness switch is completed. This eliminates problems such as color distortion, grayscale jumps, or uneven brightness caused by parameter mismatch in traditional methods, achieving a smooth and stable transition in image quality during display brightness switching. More importantly, since all the heavy calculations are completed after the display brightness switching command is triggered but before the actual display brightness changes, there is no additional real-time computation burden during the display phase. System resources can be fully focused on image driving, thus meeting the stringent requirements for extremely low latency and ultra-high energy efficiency in high refresh rate and high dynamic range display scenarios.
[0039] This embodiment effectively solves the aforementioned technical problems through an innovative two-step parameter determination and switching mechanism. Specifically, when the system detects a target display brightness adjustment command, it first dynamically determines two pre-stored reference brightnesses adjacent to the target display brightness (i.e., the first and second target reference display brightnesses), and directly retrieves the pre-calibrated complete gamma correction parameters (including a gamma lookup table and gamma reference voltage) corresponding to these two reference brightnesses from the storage area. Subsequently, based on these two known and accurate reference parameter sets, the complete gamma correction parameter set corresponding to the target display brightness is directly determined through calculation. This process avoids complex, gray-level-by-grayscale real-time voltage calculations and interpolation derivations for each pixel during brightness switching, instead advancing and compressing the calculation to a one-time parameter set generation stage. After the display brightness switching is completed, the system can use the pre-calculated complete parameter set, which precisely matches the target brightness, for gamma correction.
[0040] This embodiment fundamentally transforms the heavy burden of real-time computation into a one-time, highly efficient parameter preparation, thereby ensuring correction accuracy under arbitrary brightness while significantly reducing real-time processing latency and computational complexity. This enables the system to meet the dual requirements of instant response and high energy efficiency in high-resolution, high-refresh-rate scenarios, achieving a balance between correction accuracy and processing efficiency.
[0041] Based on the above embodiments, this application proposes a second embodiment of the gamma correction method.
[0042] In the second embodiment of this application, the same or similar content as in the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0043] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the gamma correction method of this application.
[0044] In this embodiment, the step S200 above, which determines the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, may include steps S210~S220: Step S210: Calculate the gamma reference voltage corresponding to the target display brightness based on the gamma reference voltage corresponding to the target display brightness; It should be noted that, in this embodiment, the calculation process of the gamma reference voltage is a further specification and clarification of the synthesis calculation described in the first embodiment. The system first obtains the first gamma reference voltage (denoted as V_refL) corresponding to the first target reference display brightness and the second gamma reference voltage (denoted as V_refH) corresponding to the second target reference display brightness from the gamma correction parameter storage area. Considering that the variation of the gamma reference voltage (usually including VgmaH and VgmaL) with brightness may be approximately linear or follow a specific modelable curve, this embodiment performs interpolation calculations on V_refL and V_refH based on the relative positional relationship between the target display brightness (T) and the first reference display brightness (L) and the second reference display brightness (H).
[0045] Specifically, the system first calculates the normalized weight α of the target display brightness relative to the brightness of two reference displays, which can be expressed as: α = (T - L) / (H - L). Then, the weight α is applied linearly to each component of V_refL and V_refH (such as VgmaH and VgmaL) to calculate the target gamma reference voltage V_refT corresponding to the target display brightness. The calculation formula can be expressed as: V_refT = (1 - α) * V_refL + α * V_refH. This calculation method is based on a reasonable physical assumption: between two adjacent, precisely calibrated brightness points, the change in driving voltage required to achieve a specific brightness is smooth and approximately linear. By first determining the voltage reference, a stable voltage scale is provided for the subsequent accurate determination of the intermediate driving code (DAC code) corresponding to each grayscale level.
[0046] This embodiment establishes the voltage reference for the entire gamma correction parameter generation by prioritizing and independently calculating the target gamma reference voltage. This step is logically prioritized because the ultimate goal of the gamma lookup table is to map the correct DAC code under a specific reference voltage. Determining V_refT first is equivalent to determining the "coordinate axis" of the DAC output analog voltage, ensuring that subsequent calculations of the DAC code based on voltage have a clear and consistent physical reference, guaranteeing the cohesion and accuracy of the entire parameter set. This avoids the complexity of repeatedly performing joint iterative calculations of voltage and code values in traditional methods.
[0047] Step S220: Based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, and the gamma reference voltage corresponding to the target display brightness, determine the gamma lookup table corresponding to the target display brightness.
[0048] It should be noted that, in this embodiment, the process of determining the gamma lookup table corresponding to the target display brightness is a refined process that combines table lookup, voltage calculation and interpolation, and code value inverse calculation. The specific process is as follows: For each grayscale value G (e.g., from 0 to 255) in the input grayscale space, the system performs the following sub-steps: 1. Look up the table: Look up the DAC code corresponding to the gray level G in the gamma lookup table LUT_L corresponding to the brightness of the first target reference display and the gamma lookup table LUT_H corresponding to the brightness of the second target reference display, and denot it as Code_L(G) and Code_H(G) respectively.
[0049] 2. Voltage Conversion: Using the first reference voltage V_refL and the second reference voltage V_refH obtained in step S210, Code_L(G) and Code_H(G) are converted into the analog driving voltage that the grayscale G should theoretically output under the first and second reference brightness conditions, respectively. Assuming that the conversion characteristics of the digital-to-analog converter (DAC) are linear, the voltage calculation formulas are: Voltage_L(G) = f(Code_L(G), V_refL); Voltage_H(G) = f(Code_H(G), V_refH). Here, the function f represents the linear mapping relationship from DAC code to analog voltage under a given reference voltage.
[0050] 3. Voltage Interpolation: Based on the weight α of the target display brightness T between L and H, linear interpolation is performed on the calculated Voltage_L(G) and Voltage_H(G) to obtain the target simulated driving voltage Voltage_T(G) that should be output for the grayscale G under the target display brightness T. The calculation formula is: Voltage_T(G) = (1 - α) * Voltage_L(G) + α * Voltage_H(G). This step achieves a smooth transition of grayscale driving characteristics in the voltage domain. Its physical significance lies in simulating the trajectory of the driving voltage required for the same grayscale under different overall brightness of the display panel.
[0051] 4. Code Value Inverse Calculation: Finally, based on the target gamma reference voltage V_refT calculated in step S210 and the linear conversion characteristics of the DAC, the target driving voltage Voltage_T(G) is inversely calculated into the corresponding target DAC code Code_T(G). That is, Code_T(G) = f - ¹(Voltage_T(G), V_refT), where f - ¹ is the inverse function of voltage to code value.
[0052] By iterating through all gray levels G and repeating the above process, a complete new gamma lookup table LUT_T, which corresponds one-to-one with the target display brightness T, can be generated, where LUT_T(G) = Code_T(G).
[0053] This embodiment decomposes and clearly defines the "voltage domain interpolation" path for generating the target lookup table (i.e., the gamma lookup table corresponding to the reference display brightness) from the reference lookup table (i.e., the gamma lookup table corresponding to the reference display brightness). Its core principle lies in the fact that the change in the ideal driving voltage corresponding to the same grayscale level between adjacent, calibrated brightness points is continuous and predictable. By interpolating two reference voltage points in the voltage domain and then calculating the DAC code based on the target voltage reference, this method fundamentally ensures the physical correctness and smoothness of the generated driving curve (i.e., the gamma curve). Compared to direct interpolation in the digital code value domain, this "voltage domain interpolation-inverse calculation" method can more accurately reflect the nonlinear changes in the electro-optical characteristics of the display panel, especially when the reference voltage also changes with brightness. It can effectively avoid the grayscale accuracy loss or color deviation that may be caused by direct code value interpolation. Meanwhile, although the method involves multiple sub-steps, it is easy to achieve through parallel processing or dedicated hardware acceleration because it performs batch and independent calculations on all gray levels and has a unified calculation mode. Thus, while obtaining high-precision results, the calculation can still be completed in a one-time preprocessing before brightness switching, without affecting real-time display performance.
[0054] This embodiment, as a refinement and deepening of the first embodiment, explicitly breaks down the step of "determining the target gamma correction parameters" into two sub-steps: "first calculating the target reference voltage, and then calculating the target lookup table based on voltage interpolation." This provides a concrete, robust, and physically meaningful method for parameter synthesis. Step S210 establishes the voltage reference, while step S220 achieves accurate transition and reconstruction of grayscale driving characteristics in the voltage domain. This step-by-step, physical quantity-based calculation method is not only logically clear, easy to implement and verify, but more importantly, it ensures that the generated target parameter set highly matches the actual physical behavior of the display panel in terms of electrical characteristics. This allows for optimal gamma correction under any target brightness, while perfectly inheriting the core advantages of the first embodiment: pre-processing and batch processing of cumbersome calculations.
[0055] In one feasible implementation, step S220 above may include steps S221 to S223: Step S221: Based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, calculate the output voltage corresponding to each binding point in the gamma lookup table under the target reference display brightness. It should be noted that, in this embodiment, "binding points" refer to specific input grayscale positions that constitute the mapping relationship of the gamma lookup table (LUT). Since a complete gamma lookup table may contain a large number of grayscale levels (e.g., 256 or 1024), to optimize computational efficiency, key grayscale levels are typically selected as representative points for calculation; these key points are called binding points. For example, representative grayscale values such as 0, 64, 128, 192, and 255 can be selected as binding points. The selection principle for binding points is that they can effectively characterize the overall shape and trend of the gamma curve; by processing these key points, a complete gamma lookup table can be reconstructed with high accuracy.
[0056] Specifically, the system performs the following operations for the first and second target reference display brightness: For each bound point grayscale value (e.g., G_bind), it retrieves the mapped DAC code (e.g., Code_L(G_bind) and Code_H(G_bind)) from the gamma lookup table corresponding to that reference brightness. Then, using the gamma reference voltage (V_refL or V_refH) corresponding to that reference brightness, it converts the DAC code into the corresponding analog output voltage through the linear conversion model of the digital-to-analog converter (DAC). The conversion formula can be expressed as: Voltage_ref(G_bind) = V_offset + (Code_ref(G_bind) / Max_Code) * (V_ref - V_offset), where V_offset is the basic voltage offset of the DAC output, Max_Code is the maximum code value range of the DAC, and V_ref is the corresponding gamma reference voltage value. By traversing all bound points, the output voltage sequence corresponding to each bound point under the first and second reference brightness can be obtained respectively.
[0057] This embodiment simplifies the computationally intensive calculations required for all grayscale levels (e.g., 256) by introducing the concept of bound points, reducing them to calculations for a few key representative points (e.g., 30 bound points). The core of this optimization strategy lies in the fact that the gamma correction curve is typically a smooth, continuous, and monotonic function within a specific range, and its overall shape can be determined with high precision by the positions and values of several key points. Therefore, processing key bound points instead of all grayscale levels significantly reduces the computational load, while maintaining the accuracy of generating a complete lookup table through subsequent interpolation and reconstruction steps. This point-to-surface processing method is particularly important in resource-constrained embedded display driver environments, enabling the rapid generation of high-quality parameter integration before brightness switching.
[0058] Step S222: Interpolate the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness using the output voltage corresponding to each binding point in the gamma lookup table under the target reference display brightness. The core of this step is to interpolate the output voltage calculated for each identical binding point grayscale under two reference brightness levels in the voltage domain, so as to obtain the ideal output voltage of that binding point under the target brightness.
[0059] Specifically, for each binding point G_bind, the system has obtained its output voltage Voltage_L(G_bind) at the first reference display brightness and its output voltage Voltage_H(G_bind) at the second reference display brightness. Based on the weight α between L and H of the target display brightness T (calculated using the same formula as before), the two output voltages of the binding point are linearly interpolated to calculate the target output voltage Voltage_T(G_bind) of the binding point at the target display brightness T. The calculation formula is: Voltage_T(G_bind) = (1 - α) * Voltage_L(G_bind) + α * Voltage_H(G_bind). This operation is performed independently for each binding point.
[0060] The key technical role of this step lies in its ability to achieve a transition in driving characteristics within a physically defined voltage domain. The target output voltage at each binding point represents the precise analog voltage required to drive that specific grayscale at the target display brightness. By interpolating between two calibrated, physically correct voltage points, the physical rationality and accuracy of the generated target voltage point sequence are ensured. This sequence accurately reflects the trend of panel characteristics changing with brightness, providing reliable voltage reference data for the final reconstruction of the high-precision lookup table.
[0061] Step S223: Based on the gamma reference voltage corresponding to the target display brightness and the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness, determine the gamma lookup table corresponding to the target display brightness.
[0062] After obtaining the target output voltage Voltage_T(G_bind) and the target gamma reference voltage V_refT for all binding points at the target display brightness, this step aims to reconstruct a complete gamma lookup table covering all gray levels.
[0063] The specific process includes two stages: Binding point code value inverse calculation: For each binding point G_bind, using the target gamma reference voltage V_refT and the linear model of the DAC, the target output voltage Voltage_T(G_bind) is inversely calculated into the corresponding target DAC code Code_T(G_bind). The calculation is the reverse process of voltage conversion in step S221.
[0064] Full-table interpolation reconstruction: The system now possesses a set of key mapping pairs: (G_bind, Code_T(G_bind)). Based on these known, sparse mapping points, DAC code values corresponding to all integer grayscale inputs from 0 to the maximum grayscale (e.g., 255) are generated using interpolation algorithms (such as linear interpolation, spline interpolation, etc.), thus constructing a complete target gamma lookup table LUT_T. For example, for any unbound grayscale G, its DAC code value can be obtained through interpolation using its two adjacent bound points (G_bind1, Code_T(G_bind1)) and (G_bind2, Code_T(G_bind2)).
[0065] This embodiment ultimately completes the intelligent reconstruction from key binding point data to a complete parameter set through step S223. The reverse calculation of binding point code values ensures that the driving accuracy of key gray levels strictly matches the target voltage reference. Full-table interpolation reconstruction utilizes the smoothing characteristics of the gamma curve to infer the mapping relationship of all gray levels with extremely high computational efficiency. This combined strategy of "precise calculation of key points + full-table interpolation reconstruction" achieves an excellent balance between computational accuracy and efficiency. It avoids the heavy burden of complex voltage domain calculations for each gray level in traditional methods and overcomes the physical distortion that may be caused by simple and crude code value domain interpolation. It is a highly optimized implementation scheme for application scenarios with limited resources but requiring high-precision display driving. The entire process (S221-S223) is completed in one go after the brightness switching command is triggered and before the actual brightness change, without affecting real-time display performance at all.
[0066] Based on the above embodiments, this application proposes a third embodiment of the gamma correction method.
[0067] In the third embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0068] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating the third embodiment of the gamma correction method of this application.
[0069] In this embodiment, step S100 may include steps S110 to S120: Step S110: When a target display brightness adjustment command is detected, it is detected whether the target display brightness is a reference display brightness stored in a preset reference display brightness table, wherein the reference display brightness table stores multiple reference display brightnesses; It should be noted that, in this embodiment, the reference display brightness table is a predefined data structure stored in the non-volatile memory of the display device (such as flash memory in the display driver chip or system memory). This table records in an orderly manner all discrete brightness level values for which complete correction parameters (gamma lookup table and gamma reference voltage) are pre-stored in the gamma correction parameter storage area. These reference display brightness values are typically key brightness points that have undergone rigorous optical calibration at the factory, such as the lowest display brightness, multiple intermediate display brightness values, nominal display brightness, and highest display brightness. They are representative and uniformly distributed throughout the entire dynamic range of the display brightness of the display device.
[0070] This step is the primary decision point in the display brightness adjustment process. Once the system detects the target display brightness adjustment command and parses the target display brightness value (T), it immediately performs a precise search or matching judgment in a preset reference display brightness table. The purpose is to quickly identify whether the target display brightness of this adjustment request is exactly equal to a pre-stored reference display brightness parameter. This detection process can be completed using an efficient numerical comparison algorithm (such as binary search, since the reference brightness table is usually an ordered array), ensuring extremely fast decision-making speed with almost no additional delay.
[0071] This embodiment achieves intelligent routing of display brightness adjustment commands by setting up a fast detection mechanism based on a preset reference display brightness table. Its core function is to construct an efficient decision tree entry point: if the target display brightness directly matches the pre-stored reference point, it means the system can directly call the calibrated optimal parameters without any computational overhead—this is the most efficient path. This step adds an important optimization layer to the entire method, ensuring that in many practical application scenarios (such as when users select the system's preset "power-saving mode brightness" or "reading mode brightness," these display brightness values are likely the preset reference display brightness), the system can respond with optimal performance (zero computational latency, highest accuracy), thereby significantly improving the immediacy and energy efficiency of common adjustment operations.
[0072] Step S120: If the target display brightness is not a reference display brightness stored in the reference display brightness table, determine the target reference display brightness corresponding to the target display brightness from the reference display brightness table.
[0073] This step is triggered after step S110 determines that the target display brightness (T) does not belong to any pre-stored reference display brightness. It is a prerequisite and key step for performing the core innovation of this application (calculating the target gamma correction parameter based on the adjacent reference display brightness parameter).
[0074] Specifically, the system performs a lookup operation based on an ordered reference display brightness table to determine the "position" of the target display brightness value T within the table. The goal of the lookup is to find two reference display brightness values: one is the largest among all reference display brightness values less than T, and the other is the smallest among all reference display brightness values greater than T. In an ordered array, this can be accomplished through an efficient search (such as a modified binary search, which not only checks for existence but also returns the position where it should be inserted or its adjacent element). The two found reference display brightness values are designated as the first target reference display brightness (L) and the second target reference display brightness (H), respectively. L and H are the two "anchor points" closest to the target display brightness T in the pre-stored parameter system, and their corresponding pre-stored gamma correction parameters will serve as the accurate benchmark for subsequent calculations.
[0075] Steps S120 and S110 in this embodiment together constitute a complete and efficient display brightness positioning and decision-making subsystem. Step S110 serves as a fast path check, and step S120 serves as a precise anchor point positioning. This design pattern belongs to the "fast path-slow path" optimization in software engineering, ensuring that the system can respond with the fastest logical branch in most cases. By dynamically determining L and H from an ordered list, this method achieves adaptive processing capability for any input display brightness value (whether a preset value or a user-defined value). It provides a precise and physically meaningful parameter calculation benchmark for subsequent steps (S200), which is a key logical link that ensures that the method of this application can achieve high-precision correction in the continuous display brightness space, while avoiding the infeasibility of pre-storing massive parameters for every possible display brightness. The entire positioning process has low computational load and strong determinism, fully meeting the processing capabilities required for real-time brightness adjustment.
[0076] This embodiment enhances the robustness, efficiency, and practicality of the method by concretizing step S100 in the first embodiment into a refined "detection-decision-location" process (S110-S120). Step S110 provides a fast matching path, optimizing the processing efficiency for preset display brightness points and achieving zero-latency optimal correction. Step S120 provides a universal, efficient, and accurate anchor point positioning scheme for any non-preset display brightness value, ensuring the reliable triggering of the core calculation process of this application. These two steps together constitute an intelligent, layered display brightness adjustment front-end processing mechanism, enabling the entire gamma correction method to flexibly and efficiently handle various display brightness adjustment scenarios. While ensuring the final correction accuracy, it further optimizes the overall response performance and resource utilization of the system.
[0077] It is worth mentioning that, in this embodiment, when the target display brightness is detected to be different from the reference display brightness stored in the reference display brightness table, the closest reference display brightness to the target display brightness is first determined from the multiple reference display brightnesses stored in the reference display brightness table. Only when the display brightness difference between the target display brightness and the closest reference display brightness is greater than a preset difference is the step of determining the target reference display brightness from the reference display brightness table executed. In this way, only when the display brightness adjustment exceeds a certain level is a new gamma correction parameter calculated and a new gamma correction performed on the current display content accordingly. This significantly reduces the amount of calculation in the intermediate part of the display brightness adjustment process. That is, in display devices such as smartphones that allow stepless adjustment of display brightness, when the user drags the display brightness bar to change the current display brightness, a complete gamma correction parameter calculation and gamma correction is not performed for each display brightness level during a single complete drag. Instead, a complete gamma correction parameter calculation and gamma correction is performed only when the change in display brightness is perceptible to the human eye. Otherwise, it is ignored to reduce power consumption.
[0078] Furthermore, it is understandable that the human eye is more able to perceive subtle changes in display brightness when the external lighting environment is low, while the perception of changes in display brightness is less sensitive when the external lighting environment is high. Therefore, the size of this preset difference depends on the current lighting environment, and the brighter the current lighting environment, the larger the preset difference.
[0079] In one feasible implementation, after step S110 described above, the gamma correction method may further include step S130: Step S130: When the target display brightness is detected to be the reference display brightness stored in the reference display brightness table, the gamma lookup table and gamma reference voltage corresponding to the target display brightness are obtained from the gamma correction parameter storage area of the display device, and the step of performing gamma correction based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness is executed when the current display brightness of the display device is adjusted to the target display brightness.
[0080] It should be noted that this embodiment defines the optimized processing path executed by the system when the detection result of step S110 is "yes" (i.e., the target display brightness T exactly matches an item in the reference display brightness table). This path is the most efficient execution scheme of the method in this application when processing the preset display brightness point.
[0081] Specifically, once the target display brightness T is confirmed to be equal to a certain reference display brightness R (R ∈ Reference Display Brightness Table), the system will skip all steps of generating a new parameter set based on interpolation or calculation (i.e., the core calculation process in the first and second embodiments). Instead, the system directly accesses the gamma correction parameter storage area through an index (which is usually stored in association with the display brightness value R in the reference display brightness table, or can be directly deduced from the position of the display brightness value R in the table), and directly reads the original gamma lookup table (LUT_R) and gamma reference voltage (V_refR) that are pre-bound to the reference display brightness R and have been factory-calibrated. Subsequently, while the backlight control module or driving voltage domain of the display device adjusts the current display brightness to the target display brightness T (i.e., R), the system directly loads this read parameter set (LUT_R, V_refR) into the corresponding lookup table register and reference voltage setting register of the display driver chip, thereby immediately completing gamma correction based on this set of preset optimal parameters.
[0082] This implementation introduces step S130, which, together with step S110, constitutes a complete rapid decision-making and execution branch. The technical effects and advantages of this branch are significant: Zero computational overhead and ultra-fast response: Since any real-time calculation or interpolation process is completely avoided, the latency of this path theoretically depends only on the memory read speed and register configuration time, realizing near-instantaneous brightness switching and parameter application, which is crucial for interactive scenarios that require extremely high response speed.
[0083] Ensuring optimal accuracy: The parameters used directly are the optimal solutions obtained by precise optical measurement and calibration at the factory for this specific brightness point. Theoretically, their correction accuracy is higher than any intermediate parameters generated by calculation, ensuring that the image quality displayed at this preset brightness point reaches the best level specified by the device.
[0084] Reduced system power consumption: By avoiding the activation and computation of computing units, the energy consumption of brightness adjustment operation itself is significantly reduced, which helps to improve the battery life of mobile devices.
[0085] Simplified control logic: Provides a clear and simple "shortcut" to the entire gamma correction process, making the control flow easier to implement, debug, and maintain.
[0086] The existence of step S130 ensures that the gamma correction method of this application does not force parameter calculation for all brightness adjustments, but rather forms an intelligent, conditional dual-mode processing mechanism: for preset reference brightness, it follows the fast and optimal path of "direct reading-application"; for arbitrary brightness that is not preset, it follows the general high-precision path of "dynamic calculation-application". This design fully balances efficiency and flexibility, maximizing performance in common operating scenarios while covering continuous and accurate correction across the entire brightness range, demonstrating the superiority and practicality of this method in engineering implementation.
[0087] In one feasible implementation, the reference display brightness table includes a fixed reference display brightness table and a dynamic reference display brightness table. The fixed reference display brightness table stores at least two fixed reference display brightness values, and the at least two fixed reference display brightness values include the minimum display brightness and the maximum display brightness of the display device. The dynamic reference display brightness table is used to dynamically store dynamic reference display brightness values, and the dynamic reference display brightness values are different from the fixed reference display brightness values. The gamma correction parameter storage area includes a fixed storage area and a dynamic storage area. The fixed storage area is used to store the gamma lookup table and gamma reference voltage corresponding to the fixed reference display brightness. The dynamic storage area is used to dynamically store the gamma lookup table and gamma reference voltage corresponding to the dynamic reference display brightness. It should be noted that this implementation method features a refined design of the system's storage architecture, dividing storage resources into fixed and dynamic parts to address different data characteristics and management needs.
[0088] Fixed reference display luminance meter and fixed storage area: These two constitute the foundation of the system, an immutable core calibration database.
[0089] The fixed reference display brightness table must include at least the boundary points of the device's entire dynamic range of display brightness, namely the minimum display brightness (e.g., the minimum display brightness required to ensure the panel can be driven normally) and the maximum display brightness (e.g., the peak display brightness of the panel within a safe range). These two display brightness points are the outermost reference anchor points that must be relied upon when interpolating any arbitrary target display brightness, and therefore must be permanently and reliably stored. The table may also include other key factory-preset display brightness points (such as standard mode display brightness and energy-saving mode display brightness).
[0090] A corresponding fixed storage area stores the optimal gamma correction parameters for these fixed reference displays, precisely factory-calibrated. This data is read-only or protected, ensuring the system has a reliable, high-quality calibration benchmark under all circumstances.
[0091] Dynamic reference display brightness meter and dynamic storage area: These two constitute the system's intelligent, scalable, self-learning cache.
[0092] The dynamic reference display brightness table is used to record commonly used display brightness values that the system newly learns during user operation, which are not preset (i.e., dynamic reference display brightness).
[0093] The dynamic storage area stores high-quality gamma correction parameters that are calculated and verified by the system, corresponding to the brightness of these dynamic reference displays. This area is readable and writable, and its contents are dynamically updated as user habits change.
[0094] This architecture separates basic assurance data from incremental optimization data, ensuring the baseline reliability and integrity of system functions (always having minimum and maximum display brightness as calculation benchmarks) while providing flexible and managed space for adaptive learning.
[0095] The step of determining the target reference display brightness corresponding to the target display brightness from the reference display brightness table in step S120 above may include step S121: Step S121: Determine the target reference display brightness corresponding to the target display brightness from the multiple fixed reference display brightness stored in the fixed reference display brightness table; Since the gamma correction parameters corresponding to the dynamic reference display brightness are obtained by interpolation based on the gamma correction parameters corresponding to the fixed reference display brightness, they inherently have a certain error. Therefore, when interpolating to determine the gamma correction parameters corresponding to the target display brightness, the dynamic reference display brightness should be avoided as the target reference display brightness as much as possible to avoid introducing a larger error after interpolation. Therefore, when determining the target reference display brightness corresponding to the target display brightness, the search should only be performed on the fixed reference display brightness stored in the fixed reference display brightness.
[0096] Following step S200 above, the gamma correction method may further include steps S400 to S500: Step S400: Determine the number of dynamic reference display brightness stored in the dynamic reference display brightness table, and if the number of dynamic reference display brightness is equal to a preset number, delete one dynamic reference display brightness from the dynamic reference display brightness table, and delete the gamma lookup table and gamma reference voltage corresponding to the target dynamic reference display brightness from the dynamic storage area, wherein the target dynamic reference display brightness is the dynamic reference display brightness deleted from the dynamic reference display brightness table this time; It should be noted that this step implements a capacity management and replacement strategy for dynamic storage space. Because the physical space of the dynamic storage area is limited (e.g., the capacity of non-volatile memory in embedded devices is typically limited), newly learned brightness parameters cannot be stored indefinitely. Therefore, the system presets a maximum number (preset quantity) to limit the number of entries that can be stored simultaneously in the dynamic reference display brightness table.
[0097] Before storing a new learning result (target display brightness T and its parameters), the system first checks the current number of entries in the dynamic reference display brightness table. If the current number of entries has reached the preset maximum, it means the dynamic storage area is full and new data cannot be directly stored. In this case, the system must perform a deletion operation to free up space. The selection of the object to be deleted (target dynamic reference display brightness) needs to be based on a certain replacement algorithm. Common algorithms may include: Least Recently Used (LRU) algorithm: Removes the dynamic reference luminance and its parameters that have not been selected by the user for the longest time.
[0098] First-In-First-Out (FIFO) algorithm: Deletes the earliest stored dynamic reference brightness and its parameters. Or other strategies based on access frequency, brightness value distribution, etc.
[0099] The deletion operation is bidirectional: it removes the entry for the display brightness value from the dynamic reference display brightness table and also deletes the entire set of gamma correction parameters associated with it from the dynamic storage area, ensuring data consistency. This step is crucial for ensuring the sustainable and stable operation of the dynamic learning function under limited resources.
[0100] Step S500: Store the target display brightness as a new dynamic reference display brightness in the dynamic reference display brightness table, and store the gamma lookup table and gamma reference voltage corresponding to the target display brightness in the dynamic storage area.
[0101] After completing step S400 (if necessary) to ensure sufficient storage space, this step performs the actual storage operation. It adds (or inserts) the generated target display brightness T as a new dynamic reference display brightness record into the dynamic reference display brightness table. Simultaneously, the high-precision parameter set (LUT_T, V_refT) calculated in step S200 is written to the dynamic storage area and indexed with the newly stored display brightness value T.
[0102] This implementation constructs a complete dynamic learning and cache management mechanism through steps S400 and S500. Its core principle lies in treating the dynamic storage area as a managed intelligent cache to store frequently accessed data based on user usage patterns (specific display brightness levels used frequently). The capacity check and replacement strategy in step S400 resolves storage conflicts under limited physical resources, ensuring cache effectiveness and preventing storage overflow or performance degradation due to unlimited growth. When the cache is full, the system can "forget" relatively unimportant old data according to a strategy, freeing up space for new data that is more likely to be used frequently. The execution of step S500 completes the solidification of new knowledge.
[0103] It should be noted that this implementation introduces an enhanced mechanism for adaptive learning and storage, which is an extension of the one-time parameter calculation process of the aforementioned embodiments. After executing step S200 and successfully generating a high-precision gamma correction parameter set (LUT_T, V_refT) for the target display brightness T, the system not only immediately uses the parameter set for gamma correction, but also considers solidifying and storing these newly generated results for future reuse.
[0104] This step is the specific execution action of the adaptive learning mechanism, which includes two parallel storage operations: 1. Brightness Value Storage: The target display brightness value T used in this calculation is added (or updated) as a new entry to the preset dynamic reference display brightness table. This expands the coverage of the reference brightness table, making it no longer limited to a few fixed points preset by the factory. To maintain the order of the table for efficient subsequent lookups (such as binary search), the system maintains the table's sorting structure when inserting a new display brightness value T.
[0105] 2. Parameter Set Storage: The target gamma lookup table LUT_T and target gamma reference voltage V_refT generated in this calculation are treated as a complete new gamma correction parameter set and written into the reserved writable storage space in the gamma correction parameter storage area (such as the programmable area in non-volatile memory). A clear index or binding relationship is established with the newly stored target display brightness value T. This means that the high-quality parameters generated for this target display brightness T are permanently (or at least until the device is reset).
[0106] This implementation introduces steps S400 and S500, endowing the gamma correction method with progressive self-learning and performance optimization capabilities. Its core principle and mechanism are as follows: whenever a user adjusts the display brightness to a new, non-preset value, the system not only completes the correction instantly and with high quality, but also saves the "experience" of this "successful adjustment" (i.e., the display brightness value and the optimal parameter pair). When the user adjusts to the same display brightness value again, the system will detect this stored display brightness point in step S110, thereby triggering the fast path in step S130—directly reading and using the previously calculated and stored optimal parameters, completely skipping all calculation steps.
[0107] This mechanism has brought about significant technical effects and system advantages: Achieving incremental performance optimization: As user habits accumulate, the system gradually establishes fast, zero-latency access paths for the most frequently used display brightness values. The display brightness values that users use frequently will be "learned" and solidified upon their first use, and the subsequent user experience will be continuously optimized, resulting in the system becoming faster and more energy-efficient with continued use.
[0108] It enhances the intelligence level of resource utilization: It intelligently utilizes limited non-volatile storage resources, dynamically allocating storage space to the display brightness points actually used by users, rather than statically pre-storing a large number of display brightness parameters that may not be used, thus realizing on-demand allocation and efficient utilization of storage resources.
[0109] Ensuring consistent user experience: For a user's preferred display brightness, the system can always provide a consistent correction effect based on the same set of high-precision parameters, avoiding potential image quality fluctuations caused by minor numerical deviations that may occur due to multiple calculations (although theoretically negligible, this mechanism eliminates this possibility).
[0110] Reduce long-term computing load: In the long run, users’ repeated access to the display brightness will be largely shifted from the computation-intensive path (S200) to the storage access path (S130), which significantly reduces the average computing load of the processor and helps improve the overall energy efficiency of the system and extend the device’s battery life. In summary, steps S400 and S500 of this embodiment upgrade the gamma correction method of this application from a static "computation-application" model to an intelligent system with dynamic learning, memory, and optimization capabilities. It not only solves the problem of real-time high-precision correction under arbitrary display brightness, but also enables the system to self-optimize by accumulating user behavior data, gradually transforming general scenarios into optimal scenarios. This achieves a leap from one-time performance improvement to long-term adaptive performance gain, greatly enhancing the practicality and user stickiness of the method.
[0111] To facilitate understanding of the technical solution of this application, a specific embodiment is provided: like Figure 4 As shown, traditional gamma correction requires voltage conversion for each input grayscale level. The number of conversion circuits needs to match the number of gamma lines involved in the calculation, resulting in a relatively large hardware area.
[0112] To address this, this specific embodiment proposes a voltage domain-based Gamma correction algorithm. When the VgmaH / L reference (i.e., gamma reference voltage) corresponding to bright / dark scenes are different, the various Gamma values (i.e., the gamma lookup table corresponding to the reference display brightness) involved in the calculation are first mixed into a new Gamma LUT (i.e., the gamma lookup table corresponding to the target display brightness). When the image grayscale is input, there is no need to perform voltage domain conversion. It is only necessary to output the result normally according to the new LUT, which greatly reduces the computational complexity.
[0113] like Figure 5 As shown, the specific process of this specific embodiment is as follows: 1. Based on the input DBV, retrieve the LUT used for Gamma interpolation from the display chip storage device.
[0114] That is, when a target display brightness adjustment command is detected, the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness are obtained from the gamma correction parameter storage area of the display device.
[0115] 2. Based on the DgmaH / L settings of each Gamma LUT, convert the data of each group of LUTs into voltage data.
[0116] 3. Perform interpolation calculations on the voltage data of each group of Gamma.
[0117] That is, based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, the output voltage corresponding to each binding point in the gamma lookup table under the target reference display brightness is calculated.
[0118] 4. Interpolate the DgmaH / L values corresponding to each group of Gamma.
[0119] That is, the gamma reference voltage corresponding to the target display brightness is calculated based on the gamma reference voltage corresponding to the target reference display brightness.
[0120] 5. Convert the interpolated voltage data into LUT data.
[0121] That is, based on the gamma reference voltage corresponding to the target display brightness, and the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness, the gamma lookup table corresponding to the target display brightness is determined.
[0122] 6. Based on the input grayscale and the above LUT, output the target voltage.
[0123] That is, gamma correction is performed based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness.
[0124] It should be noted that the above embodiments, implementation methods and specific embodiments are only used to help understand this application and do not constitute a limitation on the gamma correction method in this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0125] In addition, please refer to Figure 6 , Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the gamma correction method in the embodiments of this application.
[0126] This application also provides a display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the gamma correction method in the above embodiments.
[0127] The following is for reference. Figure 6 It shows a schematic diagram of a display device suitable for implementing the embodiments of this application. Figure 6 The display device shown is merely an example and should not impose any limitation on the functionality and scope of the embodiments of this application.
[0128] like Figure 6As shown, the display device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the display device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays, speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tape, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the display device to exchange data via wireless or wired communication with other devices. Although the diagram shows display devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0129] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0130] The display device provided in this application, employing the gamma correction method described in the above embodiments, can solve the technical problem of low processing efficiency and insufficient real-time performance caused by the contradiction between limited reference parameters and the requirement for continuous brightness adjustment in gamma correction. Compared with the prior art, the beneficial effects of the display device provided in this application are the same as those of the gamma correction method provided in the above embodiments, and other technical features of the display device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0131] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0132] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the above claims.
[0133] In addition, this application also provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to perform the steps of the gamma correction method in the above embodiments.
[0134] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (Radio Frequency), etc., or any suitable combination thereof.
[0135] The aforementioned computer-readable storage medium may be included in the display device or may exist independently without being assembled into the display device.
[0136] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a display device equipped with a first camera module, cause the display device to: upon detecting a target display brightness adjustment command, determine a target reference display brightness corresponding to the target display brightness, wherein the target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness, the target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, and the first target reference display brightness is less than the target display brightness, and the second target reference display brightness is greater than the target display brightness; obtain a gamma lookup table and a gamma reference voltage corresponding to the target reference display brightness from the gamma correction parameter storage area of the display device, and determine the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness; and perform gamma correction based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness when the current display brightness of the display device is adjusted to the target display brightness.
[0137] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0139] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0140] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for performing the steps of the above-described gamma correction method. This solves the technical problem of low processing efficiency and insufficient real-time performance caused by the contradiction between limited reference parameters and the requirement for continuous brightness adjustment in gamma correction. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the gamma correction method provided in the above embodiments, and will not be repeated here.
[0141] Furthermore, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the gamma correction method described in the above embodiments.
[0142] The computer program product provided in this application can solve the technical problem of low processing efficiency and insufficient real-time performance caused by the contradiction between limited reference parameters and the need for continuous brightness adjustment in gamma correction. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the gamma correction method provided in the above embodiments, and will not be repeated here.
[0143] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A gamma correction method, characterized by, The method is applied to a display device, and the method includes: Upon detecting a target display brightness adjustment command, a target reference display brightness corresponding to the target display brightness is determined. The target display brightness adjustment command is used to adjust the current display brightness of the display device to the target display brightness. The target reference display brightness includes at least a first target reference display brightness and a second target reference display brightness, wherein the first target reference display brightness is less than the target display brightness, and the second target reference display brightness is greater than the target display brightness. Obtain the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness from the gamma correction parameter storage area of the display device, and determine the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness. When the current display brightness of the display device is adjusted to the target display brightness, gamma correction is performed based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness.
2. The gamma correction method as described in claim 1, characterized in that, The step of determining the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness includes: The gamma reference voltage corresponding to the target display brightness is calculated based on the gamma reference voltage corresponding to the target display brightness. Based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, and the gamma reference voltage corresponding to the target display brightness, the gamma lookup table corresponding to the target display brightness is determined.
3. The gamma correction method as described in claim 2, characterized in that, The step of determining the gamma lookup table corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, and the gamma reference voltage corresponding to the target display brightness, includes: Based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, the output voltage corresponding to each binding point in the gamma lookup table under the target reference display brightness is calculated; By interpolating the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness, the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness is obtained. Based on the gamma reference voltage corresponding to the target display brightness, and the output voltage corresponding to each binding point in the gamma lookup table under the target display brightness, the gamma lookup table corresponding to the target display brightness is determined.
4. The gamma correction method as described in claim 1, characterized in that, The step of determining the target reference display brightness corresponding to the target display brightness when a target display brightness adjustment command is detected includes: When a target display brightness adjustment command is detected, it is checked whether the target display brightness is a reference display brightness stored in a preset reference display brightness table, wherein the reference display brightness table stores multiple reference display brightnesses; If the target display brightness is detected to be different from the reference display brightness stored in the reference display brightness table, the target reference display brightness corresponding to the target display brightness is determined from the reference display brightness table.
5. The gamma correction method as described in claim 4, characterized in that, After the step of detecting whether the target display brightness is the reference display brightness stored in the preset reference display brightness table, the method further includes: When the target display brightness is detected to be the reference display brightness stored in the reference display brightness table, the gamma lookup table and gamma reference voltage corresponding to the target display brightness are obtained from the gamma correction parameter storage area of the display device, and the step of performing gamma correction based on the gamma lookup table and gamma reference voltage corresponding to the target display brightness is executed when the current display brightness of the display device is adjusted to the target display brightness.
6. The gamma correction method as described in claim 5, characterized in that, The reference display brightness table includes a fixed reference display brightness table and a dynamic reference display brightness table. The fixed reference display brightness table stores at least two fixed reference display brightness values, and the at least two fixed reference display brightness values include the minimum display brightness and the maximum display brightness of the display device. The dynamic reference display brightness table is used to dynamically store dynamic reference display brightness values, and the dynamic reference display brightness values are different from the fixed reference display brightness values. The gamma correction parameter storage area includes a fixed storage area and a dynamic storage area. The fixed storage area is used to store the gamma lookup table and gamma reference voltage corresponding to the fixed reference display brightness. The dynamic storage area is used to dynamically store the gamma lookup table and gamma reference voltage corresponding to the dynamic reference display brightness. The step of determining the target reference display brightness corresponding to the target display brightness from the reference display brightness table includes: The target reference display brightness corresponding to the target display brightness is determined from the multiple fixed reference display brightnesses stored in the fixed reference display brightness table; After the step of determining the gamma lookup table and gamma reference voltage corresponding to the target display brightness based on the gamma lookup table and gamma reference voltage corresponding to the target reference display brightness, the method further includes: The target display brightness is stored as a new dynamic reference display brightness in the dynamic reference display brightness table, and the gamma lookup table and gamma reference voltage corresponding to the target display brightness are stored in the dynamic storage area.
7. The gamma correction method as described in claim 6, characterized in that, Before the steps of storing the target display brightness as a new dynamic reference display brightness in the dynamic reference display brightness table, and storing the gamma lookup table and gamma reference voltage corresponding to the target display brightness in the dynamic storage area, the method further includes: The number of dynamic reference display brightness stored in the dynamic reference display brightness table is determined. If the number of dynamic reference display brightness is equal to a preset number, a dynamic reference display brightness is deleted from the dynamic reference display brightness table. The gamma lookup table and gamma reference voltage corresponding to the target dynamic reference display brightness are also deleted from the dynamic storage area. The target dynamic reference display brightness is the dynamic reference display brightness deleted from the dynamic reference display brightness table this time.
8. A display device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the gamma correction method as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the gamma correction method as described in any one of claims 1 to 7.
10. A program product, characterized in that, The program product is a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the gamma correction method as described in any one of claims 1 to 7.