Gamma Adjustment Method, Device, Equipment, and Storage Medium

By using different step sizes to adjust the register value and fit the gamma curve in the gamma adjustment of the OLED display panel, the problem of too long adjustment time of binding points is solved, and the rapid and accurate adjustment of brightness and color coordinates is achieved, and the overall adjustment efficiency is improved.

CN116052593BActive Publication Date: 2025-08-05HEFEI VISIONOX TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310101140.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-19
Publication Date
2025-08-05
Estimated Expiration
2043-01-19

AI Technical Summary

Technical Problem

During the gamma adjustment process of existing OLED display panels, the adjustment time of each binding point is too long, resulting in the overall adjustment time being too long and the efficiency is inefficient.

Method used

Use different step sizes to adjust the register value of the binding point, first adjust the brightness to the preset range with a larger first step size, and then adjust the color coordinate to the preset range with a smaller second step size, and combine the fitted gamma curve to ensure adjustment accuracy.

Benefits of technology

By optimizing the fitting of the adjustment step length and gamma curve, the gamma adjustment time is shortened, the adjustment efficiency is improved, the number of adjustments is reduced, and the brightness and color coordinates of the display panel are in line with the target value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116052593B_ABST
    Figure CN116052593B_ABST
Patent Text Reader

Abstract

The present application discloses a gamma adjustment method, apparatus, device and storage medium. The gamma adjustment method includes: obtaining the target brightness value and target color coordinate value corresponding to the display panel at the binding point; adjusting the current register value corresponding to the binding point according to the first step length to obtain a first target register value, and the difference between the brightness acquisition value of the display panel at the first target register value and the target brightness value is within a first preset range; adjusting the first target register value according to the second step length to obtain a second target register value, and the difference between the color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a second preset range, and the second step length is smaller than the first step length. According to the embodiment of the present application, it is beneficial to shorten the gamma adjustment time as a whole, thereby improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a gamma adjustment method, apparatus, device and storage medium. Background Art

[0002] Organic Light Emitting Diode (OLED) display panels have a series of advantages such as self-luminescence, fast response speed, low power consumption, and wide viewing angle, and have gradually become the mainstream in the display field.

[0003] There are many production processes for OLED display panels. One of the most important steps in debugging the final display effect is gamma adjustment of each binding point. Its purpose is to make the image displayed by the display panel more consistent with the human eye's perception of brightness changes.

[0004] However, in the current gamma adjustment process, the adjustment time for each binding point is too long, resulting in the problem that the overall adjustment time is too long. Summary of the Invention

[0005] The embodiments of the present application provide a gamma adjustment method, apparatus, device, and storage medium, which are beneficial for shortening the gamma adjustment time overall, thereby improving efficiency.

[0006] In a first aspect, an embodiment of the present application provides a gamma adjustment method, which is applied to a display panel. For any one of the multiple binding points of the display panel, the method includes: obtaining the target brightness value and target color coordinate value corresponding to the display panel at the binding point; adjusting the current register value corresponding to the binding point according to the first step length to obtain a first target register value, and the difference between the brightness acquisition value of the display panel at the first target register value and the target brightness value is within a first preset range; adjusting the first target register value according to the second step length to obtain a second target register value, and the difference between the color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a second preset range, and the second step length is smaller than the first step length.

[0007] In a possible implementation of the first aspect, after the step of adjusting the first target register value according to the second step size to obtain the second target register value, the method further includes:

[0008] Fitting a gamma curve according to each binding point and the brightness collection value of the display panel at the second target register value corresponding to each binding point;

[0009] If the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the second target register value is adjusted until the difference between the gamma value of the gamma curve fitted based on the adjusted second target register value and the target gamma value is within the third preset range.

[0010] In a possible implementation of the first aspect, before the step of adjusting the current register value corresponding to the binding point according to the first step to obtain the first target register value, the method further includes:

[0011] Obtain a register value corresponding to a first binding point and a register value corresponding to a second binding point adjacent to the binding point, wherein the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point;

[0012] Determine the first step length according to the register value corresponding to the first binding point and the register value corresponding to the second binding point;

[0013] A second step length is determined according to a register value corresponding to the first binding point and a register value corresponding to the second binding point.

[0014] In a possible implementation of the first aspect, the step of determining the first step length according to the register value corresponding to the first binding point and the register value corresponding to the second binding point specifically includes:

[0015] Determine a first reference step length according to an average of a register value corresponding to the first binding point and a register value corresponding to the second binding point;

[0016] The first step length is determined according to the ratio of the first reference step length to the cumulative number of adjustments corresponding to the binding point; wherein the cumulative number of adjustments is the accumulation of the number of adjustments corresponding to the direction approaching the target brightness value.

[0017] In a possible implementation of the first aspect, the step of determining the second step size according to the register value corresponding to the first binding point and the register value corresponding to the second binding point specifically includes:

[0018] determining a second reference step length according to a difference between a register value corresponding to the second binding point and a register value corresponding to the first binding point;

[0019] Determine the second step length according to the product of the second reference step length and a preset coefficient, where the preset coefficient is less than 1 and greater than 0;

[0020] Preferably, the preset coefficient is equal to 0.618.

[0021] In a possible implementation of the first aspect, the step of obtaining a target brightness value corresponding to the display panel at the binding point specifically includes:

[0022] Determine the target brightness value according to the following formula:

[0023] Lth=(x / MaxGray) gamma *(MaxGrayLv-MinGrayLv)+MinGrayLv;

[0024] Where Lth represents the target brightness value, x represents the grayscale value of the binding point, MaxGray represents the maximum grayscale of the display panel, gamma represents the target gamma value, MaxGrayLv represents the brightness value of the highest grayscale under white balance, and MinGrayLv represents the brightness value of the lowest grayscale under white balance.

[0025] In a possible implementation of the first aspect, before the step of adjusting the second target register value if the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the method further includes:

[0026] The gamma value of the fitted gamma curve is determined according to the following formula:

[0027]

[0028] Among them, γ ni Indicates the gamma value of the fitted gamma curve, n indicates the number of binding points, MaxGray indicates the highest grayscale of the display panel, MaxGrayLv indicates the brightness value of the highest grayscale under white balance, x i Indicates the grayscale value of the i-th binding point, y i Indicates the brightness collection value under the second target register value corresponding to the i-th binding point.

[0029] Based on the same inventive concept, in a second aspect, an embodiment of the present application provides a gamma adjustment device, which is applied to a display panel. For any one of a plurality of binding points of the display panel, the device includes:

[0030] A data acquisition module is used to obtain the target brightness value and target color coordinate value corresponding to the display panel at the binding point;

[0031] A first adjustment module is configured to adjust a current register value corresponding to the binding point according to the first step length to obtain a first target register value, wherein a difference between a brightness collection value of the display panel at the first target register value and the target brightness value is within a preset range;

[0032] The second adjustment module is used to adjust the first target register value according to the second step size to obtain a second target register value, and the difference between the color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a second preset range.

[0033] Based on the same inventive concept, in a third aspect, an embodiment of the present application provides an electronic device, including:

[0034] A processor and a memory storing computer program instructions, wherein when the processor executes the computer program instructions, the gamma adjustment method as described in any one of the embodiments of the first aspect is implemented.

[0035] Based on the same inventive concept, in a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the gamma adjustment method as described in any one of the embodiments in the first aspect is implemented.

[0036] The gamma debugging method, apparatus, device and storage medium provided in the embodiments of the present application can perform gamma debugging on any binding point of the display panel. First, the target brightness value and target color coordinate value corresponding to the binding point are obtained, and the current register value corresponding to the binding point is adjusted with a first step length to obtain a first target register value, so that the difference between the brightness acquisition value of the display panel and the target brightness value meets the preset error range. Then, the first target register value is adjusted with a second step length smaller than the first step length to obtain a second target register value, so that the difference between the color coordinate acquisition value of the display panel and the target color coordinate value also meets the preset error range. In the process of adjusting the brightness and color coordinates, different step sizes are used, and the first step size when adjusting the brightness is larger, so that the actual display brightness of the display panel can be quickly adjusted to a reasonable range. After the actual display brightness of the display panel is adjusted to a reasonable range, the difference between the actual color coordinates of the display panel and the target color coordinates is relatively small. Therefore, the second step size when adjusting the color coordinates is smaller, so that the actual color coordinates of the display panel can be quickly adjusted to a reasonable range. In this way, for each binding point, the number of adjustments can be reduced, and the number of adjustments can be reduced overall, which is beneficial to shorten the gamma adjustment time as a whole, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Other features, objects and advantages of the present application will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings, in which the same or similar reference numerals represent the same or similar features and the accompanying drawings are not drawn to scale.

[0038] Figure 1 A schematic diagram showing a flow chart of a gamma adjustment method provided by an embodiment of the present application;

[0039] Figure 2 A schematic diagram showing a flow chart of a gamma adjustment method provided by another embodiment of the present application;

[0040] Figure 3 A schematic diagram showing a gamma curve in a gamma adjustment method provided by an embodiment of the present application;

[0041] Figure 4A schematic diagram showing a flow chart of a gamma adjustment method provided in yet another embodiment of the present application;

[0042] Figure 5 A schematic diagram showing a flow chart of a gamma adjustment method provided in yet another embodiment of the present application;

[0043] Figure 6 A schematic diagram showing a flow chart of a gamma adjustment method provided in yet another embodiment of the present application;

[0044] Figure 7 A schematic structural diagram of a gamma adjustment device provided by an embodiment of the present application is shown;

[0045] Figure 8 A schematic structural diagram of a gamma adjustment device provided in another embodiment of the present application is shown;

[0046] Figure 9 A schematic structural diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0047] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0048] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0049] It will be apparent to those skilled in the art that various modifications and variations can be made in this application without departing from the spirit or scope of this application. Therefore, this application is intended to cover modifications and variations of this application that fall within the scope of the corresponding claims (technical solutions claimed for protection) and their equivalents. It should be noted that the embodiments provided in the examples of this application can be combined with each other without contradiction.

[0050] Embodiments of the present application provide a gamma adjustment method, apparatus, device, and storage medium. The following describes various embodiments of the gamma adjustment method, apparatus, device, and storage medium in conjunction with the accompanying drawings.

[0051] The following first introduces the gamma adjustment method provided in the embodiment of the present application.

[0052] Figure 1 A flow chart illustrating a gamma adjustment method provided by an embodiment of the present application is provided. The gamma adjustment method is applied to a display panel. During the gamma adjustment process of the display panel, multiple binding points can be set. The gamma adjustment method provided by an embodiment of the present application can be used for the adjustment process of each binding point. For any of the multiple binding points of the display panel, the method may include steps S110 to S130.

[0053] S110, obtaining a target brightness value and a target color coordinate value corresponding to the display panel at the binding point;

[0054] S120, adjusting the current register value corresponding to the binding point according to the first step to obtain a first target register value, wherein the difference between the brightness collection value of the display panel at the first target register value and the target brightness value is within a preset range;

[0055] S130, adjusting the first target register value according to the second step length to obtain a second target register value, the difference between the color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a second preset range, and the second step length is smaller than the first step length.

[0056] The specific implementation of each of the above steps will be described in detail below.

[0057] The gamma debugging method provided in the embodiment of the present application can perform gamma debugging on any binding point of the display panel. First, the target brightness value and target color coordinate value corresponding to the binding point are obtained, and the current register value corresponding to the binding point is adjusted with a first step length to obtain a first target register value so that the difference between the brightness acquisition value of the display panel and the target brightness value meets the preset error range. Then, the first target register value is adjusted with a second step length smaller than the first step length to obtain a second target register value so that the difference between the color coordinate acquisition value of the display panel and the target color coordinate value also meets the preset error range. In the process of adjusting the brightness and color coordinates, different step sizes are used, and the first step length when adjusting the brightness is larger, so that the actual display brightness of the display panel can be quickly adjusted to a reasonable range. After the actual display brightness of the display panel is adjusted to a reasonable range, the difference between the actual color coordinates of the display panel and the target color coordinates is relatively small. Therefore, the second step length when adjusting the color coordinates is smaller, so that the actual color coordinates of the display panel can be quickly adjusted to a reasonable range. In this way, the number of adjustments for each binding point can be reduced, and the number of adjustments can be reduced overall, which is conducive to shortening the gamma adjustment time overall, thereby improving efficiency.

[0058] The specific implementation methods of the above steps are introduced below.

[0059] First, let me introduce the S110.

[0060] In S110, one binding point may correspond to one grayscale value. The number of binding points and the grayscale value of each binding point may be determined based on the grayscale range of the display panel. For example, if the highest grayscale of the display panel is 255, multiple grayscales between 0 and 255 may be selected as binding points.

[0061] The target color coordinate values may include a target value of the color coordinate x and a target value of the color coordinate y.

[0062] The display panel may include sub-pixels emitting different colors, for example, a red sub-pixel R emitting red light, a green sub-pixel G emitting green light, and a blue sub-pixel B emitting blue light. The target brightness value may include a target brightness value corresponding to a sub-pixel emitting any color at a binding point, and the target color coordinate value may include a target color coordinate value corresponding to a sub-pixel emitting any color at a binding point.

[0063] As an example, in S110 , the target brightness value and target color coordinate value corresponding to the binding point of the display panel may be obtained according to user requirements.

[0064] As another example, in S110, the step of obtaining the target brightness value corresponding to the display panel at the binding point may specifically include: determining the target brightness value corresponding to the display panel at the binding point according to the following formula (1):

[0065] Lth=(x / MaxGray) gamma *(MaxGrayLv-MinGrayLv)+MinGrayLv (1)

[0066] Where Lth represents the target brightness value, x represents the grayscale value of the binding point, MaxGray represents the maximum grayscale of the display panel, gamma represents the target gamma value, MaxGrayLv represents the brightness value of the highest grayscale under white balance, and MinGrayLv represents the brightness value of the lowest grayscale under white balance.

[0067] The target gamma value gamma can be 2.2. In addition, the target gamma value gamma can also be other values, such as in the range of 2.0-2.4, which is not limited here. Taking the target gamma value gamma as 2.2 as an example, substituting the highest grayscale 255 into the above conversion formula can be obtained:

[0068] Lth=(x / 255) 2.2 *(MaxGrayLv-MinGrayLv)+MinGrayLv;

[0069] According to the above conversion formula, the grayscale value of any binding point can be substituted into the above formula (1) to obtain the target brightness value corresponding to any binding point.

[0070] It can be understood that, taking the target brightness value corresponding to the red sub-pixel R as an example, MaxGrayLv in the above formula (1) represents the brightness value of the red sub-pixel R at the highest grayscale under white balance, and MinGrayLv represents the brightness value of the red sub-pixel R at the lowest grayscale under white balance. The same applies to the green sub-pixel G and the blue sub-pixel B.

[0071] It is understandable that before using the above formula (1), that is, before S110, the gamma adjustment method provided in the embodiment of the present application may also include: adjusting the white balance of the display panel to determine the brightness value of the highest grayscale under white balance and the brightness value of the lowest grayscale under white balance.

[0072] Specifically, before adjusting the white balance, parameters of the optical instrument used and configuration parameters related to gamma adjustment may be set first.

[0073] The parameters of the optical instrument may include the acquisition time of the optical instrument, the distance from the display panel, the acquisition range, etc. The acquisition range may include acquiring the brightness of the white screen, or decomposing the acquired brightness of the white screen into the brightness of the red sub-pixel R, the green sub-pixel G, and the blue sub-pixel B.

[0074] Configuration parameters related to gamma adjustment may include, for example, the target gamma value and its allowable error range, the target value of the color coordinate x and its allowable error range, the target value of the color coordinate y and its allowable error range, the brightness of the highest grayscale, the brightness of the lowest grayscale, etc.

[0075] After the above parameters are configured, they can be sent to the controller for gamma adjustment of the display panel.

[0076] When adjusting the white balance, the target brightness values of the highest grayscale (for example, a 255 grayscale white screen W255) and the lowest grayscale (for example, a 0 grayscale white screen W0) can be determined based on the configuration parameters of the optical instrument and the configuration parameters related to the gamma adjustment, as well as the brightness value and the current values of the color coordinates x and y of the image generated by the lighting machine (PG) to illuminate the display panel collected by the optical instrument.

[0077] After white balance adjustment, the target brightness value of the highest grayscale white screen is determined. Further, based on the brightness ratio of the red sub-pixel R, the green sub-pixel G, and the blue sub-pixel B, the brightness value of the red sub-pixel R at the highest grayscale under white balance, the brightness value of the green sub-pixel G at the highest grayscale under white balance, and the brightness value of the blue sub-pixel B at the highest grayscale under white balance can be determined.

[0078] Similarly, after white balance adjustment, the target brightness value of the lowest grayscale white screen is determined. Further, based on the brightness ratio of the red sub-pixel R, the green sub-pixel G, and the blue sub-pixel B, the brightness value of the red sub-pixel R at the lowest grayscale under white balance, the brightness value of the green sub-pixel G at the lowest grayscale under white balance, and the brightness value of the blue sub-pixel B at the lowest grayscale under white balance can be determined.

[0079] After determining the target brightness values corresponding to the highest grayscale and the lowest grayscale of the sub-pixels of each luminous color, the target brightness value corresponding to any binding point can be determined based on the above formula (1).

[0080] Next, let’s introduce S120.

[0081] For example, the current register value is J, and the first step length is step1. In S120, the current register value corresponding to the binding point is adjusted according to the first step length, which can be specifically the current register value J plus or minus the first step length step1.

[0082] The first target register value can be obtained by adjusting the current register value one or more times according to the first step. After each adjustment, the current register value can be updated using the adjusted register value, that is, the adjusted register value is used as the new current register value. This allows only the register value obtained after the last adjustment to be stored during the adjustment process. Furthermore, when performing the first adjustment, the current register value can be the initial register value. For example, the initial register value corresponding to each binding point can be set based on experience.

[0083] In S120 , the brightness acquisition value may be considered as the actual display brightness value of the display panel under the first target register value.

[0084] If the difference between the acquired brightness value of the display panel at the first target register value and the target brightness value is within a first preset range, the actual display brightness of the display panel at the binding point can be considered to have been adjusted to within a reasonable range. The specific value of the first preset range can be determined based on actual needs and is not limited here. It is understood that the smaller the first preset range, the higher the adjustment accuracy.

[0085] In some embodiments, before S120 , the first step length and the second step length required in S130 may be determined first.

[0086] For details, please refer to Figure 2 Before S120, the gamma adjustment method provided in the embodiment of the present application may further include S210 to S230.

[0087] S210, obtaining a register value corresponding to a first binding point and a register value corresponding to a second binding point adjacent to the binding point, wherein the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point;

[0088] S220, determining a first step length according to a register value corresponding to the first binding point and a register value corresponding to the second binding point;

[0089] S230 : Determine a second step length according to the register value corresponding to the first binding point and the register value corresponding to the second binding point.

[0090] In this embodiment, the display panel includes multiple binding points. For the binding point currently undergoing gamma adjustment, the first step length and the second step length are determined according to the register values corresponding to the first binding point and the second binding point adjacent to the binding point, respectively, and the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point. Since the first binding point and the second binding point are adjacent to the binding point and located on both sides of the binding point, compared with arbitrarily setting the first step length and the second step length, determining the first step length and the second step length according to the register values corresponding to the two binding points adjacent to and located on both sides of the binding point can make the result of adjustment based on the first step length and the second step length determined in the embodiment of the present application closer to the target, and is therefore more conducive to reducing the number of adjustments.

[0091] In S210, in order to more intuitively understand the relationship between the binding point currently performing gamma adjustment, the first binding point, and the second binding point, please refer to Figure 3 , Figure 3 The horizontal axis represents grayscale, and the vertical axis represents brightness. Grayscale values correspond to register values. For example, if the current gamma adjustment is at binding point D, the first binding point could be A, and the second binding point could be C. The register value corresponding to binding point A could be x1, and the register value corresponding to binding point C could be x2.

[0092] Illustratively, the gamma adjustment method provided in the embodiment of the present application may further include: determining second target register values corresponding to the plurality of binding points in sequence according to the direction of grayscale values from large to small.

[0093] Specifically, the second target register values corresponding to the plurality of binding points may be determined in sequence according to the above steps S110 to S120.

[0094] For example, 10 binding points are set, and the grayscale values corresponding to the 10 binding points are 0, 16, 32, 64, 96, 128, 164, 196, 232, and 255, respectively. The second target register value corresponding to the binding point with a grayscale value of 0 is usually preset, so the gamma adjustment can be performed on the binding point with a grayscale value of 255 to determine the second target register value corresponding to the binding point with a grayscale value of 255; then the gamma adjustment can be performed on the binding point with a grayscale value of 232 to determine the second target register value corresponding to the binding point with a grayscale value of 232; then the gamma adjustment can be performed on the binding point with a grayscale value of 196 to determine the second target register value corresponding to the binding point with a grayscale value of 196; and so on, and finally the gamma adjustment can be performed on the binding point with a grayscale value of 16 to determine the second target register value corresponding to the binding point with a grayscale value of 16.

[0095] In S210, for example, if the grayscale value of the binding point currently undergoing gamma adjustment is 255, the grayscale value of the first binding point may be 232. Since the gamma adjustment has not yet been performed on the first binding point, the second target register value corresponding to the first binding point is not known. Here, the register value corresponding to the first binding point may be the initial register value corresponding to the first binding point. As described above, the initial register value corresponding to each binding point may be set based on experience. In addition, since the actual highest grayscale of the display panel is 255, the second binding point may be considered a virtual binding point. The register value corresponding to the second binding point may be set based on the correspondence between the grayscale value and the register value. For example, when the larger the grayscale value, the larger the corresponding register value, the register value corresponding to the second binding point may be greater than the initial register value corresponding to the binding point grayscale value of 255.

[0096] For another example, if the grayscale value of the binding point currently undergoing gamma adjustment is 232, the grayscale value of the first binding point can be 196, and the grayscale value of the second binding point can be 255. Similarly, since gamma adjustment has not yet been performed on the first binding point, the second target register value corresponding to the first binding point is not known. Here, the register value corresponding to the first binding point can be the initial register value corresponding to the first binding point. However, since gamma adjustment has already been performed on the second binding point, the second target register value corresponding to the second binding point is known. Here, the register value corresponding to the second binding point can be the second target register value corresponding to the second binding point.

[0097] In some embodiments, as Figure 4 As shown, S220 may specifically include S221 and S222.

[0098] S221, determining a first reference step length according to an average of a register value corresponding to the first binding point and a register value corresponding to the second binding point;

[0099] S222, determining a first step length according to a ratio of the first reference step length to the cumulative number of adjustments corresponding to the binding point; wherein the cumulative number of adjustments is the accumulation of the number of adjustments corresponding to the direction approaching the target brightness value.

[0100] In this embodiment of the present application, the first step length can be the ratio of the first reference step length to the cumulative number of adjustments corresponding to the binding point. In other words, as the cumulative number of adjustments increases, the first step length gradually decreases. Because each adjustment in the cumulative number of adjustments is toward the target brightness value, gradually decreasing the first step length can bring the adjustment result closer to the target, thereby further reducing the number of adjustments.

[0101] In S221 , for example, the register value corresponding to the first binding point is d1 , the register value corresponding to the second binding point is d2 , and the first reference step is , then step01 = (d1 + d2) / 2.

[0102] In S222 , for example, if the cumulative number of adjustments is p and the first step length is step1 , then step1 = step01 / p.

[0103] Furthermore, in S120 , for example, the current register value is J, and the first preset range is (−w, w), where w>0.

[0104] For example, if the display brightness of the display panel is greater than w at the current register value J, and the current register value J is first adjusted, p = 1 and step 1 = (d1 + d2) / 2, then the current register value J can be added to step 1 to obtain the register value after the first adjustment, J + (d1 + d2) / 2. The relationship between the display brightness of the display panel and the target brightness at the register value after the first adjustment, J + (d1 + d2) / 2, is then determined. For example, if the difference between the display brightness of the display panel and the target brightness is wn, and wn > w, then the display brightness of the display panel is further away from the target brightness, and it can be determined that the adjustment direction is incorrect.

[0105] Therefore, when adjusting the current register value for the second time, the first step can be subtracted from the current register value. As described above, the adjusted register value can be used as the new current register value, so the first adjusted register value J + (d1 + d2) / 2 can be used as the new current register value. Therefore, during the second adjustment, the current register value is J + (d1 + d2) / 2. However, the first adjustment was in the wrong direction. For the second adjustment, the initial current register value J should be subtracted from step 1. That is, the first adjusted register value J + (d1 + d2) / 2 minus twice (d1 + d2) / 2, resulting in the second adjusted register value J + (d1 + d2) / 2 - 2 * (d1 + d2) / 2, or J - (d1 + d2) / 2. The second adjusted register value J - (d1 + d2) / 2 can be used as the new current register value.

[0106] It can be understood that the second adjustment is performed in a direction close to the target brightness value, that is, the direction of the second adjustment is correct, so the second adjustment is actually the first adjustment in the correct direction.

[0107] Then, the relationship between the display brightness value of the display panel and the target brightness value under the register value J-(d1+d2) / 2 after the second adjustment is determined. For example, if the difference between the display brightness value of the display panel and the target brightness value still does not meet the first preset range, continue to adjust.

[0108] Next, perform the third adjustment, the second adjustment in the correct direction. Here, p = 2, the current register value is J-(d1+d2) / 2, the first step length, step1 = step01 / p = (d1+d2) / 4, and the register value after the third adjustment is J-(d1+d2) / 2-(d1+d2) / 4. The register value after the third adjustment, J-(d1+d2) / 2-(d1+d2) / 4, can be used as the new current register value.

[0109] Then, the relationship between the display brightness value of the display panel and the target brightness value at the register value J-(d1+d2) / 2-(d1+d2) / 4 after the third adjustment is determined. If the difference between the display brightness value of the display panel and the target brightness value still falls within the first preset range, the register value J-(d1+d2) / 2-(d1+d2) / 4 after the third adjustment is the first target register value. In other words, the register value J-(d1+d2) / 2-(d1+d2) / 4 after the second adjustment in the correct adjustment direction is the first target register value. If the difference between the display brightness value of the display panel and the target brightness value still does not fall within the first preset range, the adjustment continues in the above manner.

[0110] In some embodiments, as Figure 5 As shown, S230 may specifically include S231 and S232.

[0111] S231, determining a second reference step length according to a difference between a register value corresponding to the second binding point and a register value corresponding to the first binding point;

[0112] S232: Determine a second step length according to the product of the second reference step length and a preset coefficient, where the preset coefficient is less than 1 and greater than 0.

[0113] In an embodiment of the present application, the second reference step size is the difference between the register value corresponding to the second binding point and the register value corresponding to the first binding point, and the second step size can be the product of the second reference step size and the preset coefficient. In this way, it can be ensured that the second step size is smaller than the first step size.

[0114] The inventors have found that using the golden section method during the color coordinate adjustment process can quickly bring the adjustment result close to the color coordinate target value. Therefore, in some examples, the preset coefficient can be equal to 0.618.

[0115] For example, if the register value corresponding to the second binding point is d2, the register value corresponding to the first binding point is d1, and the second reference step size is stpe02, then stpe02 = d2 - d1. The second step size stpe2 may be equal to 0.618*(d2 - d1).

[0116] In S130, the first target register value may be added to or subtracted from the second step size step2. For example, if the first target register value is added to the second step size step2, the actual color coordinate value of the display panel can be closer to the target color coordinate value. In this case, the correct adjustment direction is determined to be adding the second step size. Otherwise, the correct adjustment direction is subtracting the second step size.

[0117] Multiple adjustments can be made based on the second step length, and during the multiple adjustments, the value of the second step length can remain unchanged.

[0118] If the difference between the acquired color coordinate value of the display panel at the second target register value and the target color coordinate value is within a second preset range, the actual color coordinates of the display panel at the binding point can be considered to have been adjusted to within a reasonable range. The specific value of the second preset range can be determined based on actual needs and is not limited here. It is understood that the smaller the second preset range, the higher the adjustment accuracy.

[0119] The inventors also discovered that in the related art, after gamma adjustment is performed on each binding point, the overall adjustment result is not checked, resulting in the actual adjustment result possibly not conforming to the target gamma curve.

[0120] In some embodiments, as Figure 6 As shown, after S130, the gamma adjustment method provided in the embodiment of the present application may further include S610 to S620.

[0121] S610, fitting a gamma curve according to each binding point and a brightness collection value of the display panel at the second target register value corresponding to each binding point;

[0122] S620: If the difference between the gamma value of the fitted gamma curve and the target gamma value is not within a third preset range, adjust the second target register value until the difference between the gamma value of the gamma curve fitted based on the adjusted second target register value and the target gamma value is within the third preset range.

[0123] In this embodiment of the present application, once the brightness and color coordinates of all binding points are within a reasonable range, a gamma curve is fitted to determine whether the gamma value of the fitted gamma curve is within the error range. If not, adjustments are continued until the gamma value of the fitted gamma curve is within the error range after adjustment. This ensures that the brightness, color coordinates, and actual gamma value are all within the error range during the gamma adjustment process, ensuring the accuracy of the register values and preventing individual bad pixels.

[0124] After S130 , when the brightness and color coordinates of all binding points in all binding point sets are adjusted to within the error range, the second target register values may be saved in the set.

[0125] Assume there are n binding points, the binding point set is X = {x_1, x_2, …, x_(n-1), x_n}, and the adjusted binding point brightness set is Y = {y_1, y, …, y_(n-1), y_n}. The brightness in the binding point brightness set can be understood as the actual display brightness of each binding point at its second target register value.

[0126] In S610, according to the gamma curve formula Fit the gamma curve.

[0127] In order to facilitate fitting, the above formula variables are modified to obtain the following formula:

[0128]

[0129] A gamma curve is fitted using set X and set Y. The corresponding gamma value can then be obtained based on the fitted gamma curve.

[0130] In some embodiments, before S620, the gamma adjustment method provided by the embodiment of the present application may further include determining the gamma value of the fitted gamma curve according to the following formula:

[0131]

[0132] Among them, γ ni Indicates the gamma value of the fitted gamma curve, n indicates the number of binding points, MaxGray indicates the highest grayscale of the display panel, MaxGrayLv indicates the brightness value of the highest grayscale under white balance, x i Indicates the grayscale value of the i-th binding point, y i Indicates the brightness collection value under the second target register value corresponding to the i-th binding point.

[0133] The best fitting curve requires that the weighted sum of squares of the errors with the Y set be minimized, that is, the following formula is minimized:

[0134]

[0135] Since (x i ,y i ) is a known quantity, so it is converted to finding the minimum value of Q(γ). The minimum value can be solved using the derivative, which is the following formula:

[0136]

[0137] The optimal gamma value of the fitted gamma curve is γ ni . That is:

[0138]

[0139] In S620, if the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the second target register value may be adjusted according to the above S120 to S130, and the second target register value is used as the new current register value.

[0140] Based on the same inventive concept, the present application also provides a gamma adjustment device for use in a display panel. Figure 7 As shown, the gamma adjustment device 700 may include a data acquisition module 701 , a first adjustment module 702 and a second adjustment module 703 .

[0141] For any one of the multiple binding points of the display panel;

[0142] The data acquisition module 701 is used to obtain the target brightness value and target color coordinate value corresponding to the display panel at the binding point;

[0143] A first adjustment module 702 is configured to adjust the current register value corresponding to the binding point according to the first step length to obtain a first target register value, wherein the difference between the brightness collection value of the display panel at the first target register value and the target brightness value is within a preset range;

[0144] The second adjustment module 703 is configured to adjust the first target register value according to a second step size to obtain a second target register value, and the difference between the color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a second preset range.

[0145] The gamma debugging device provided in the embodiment of the present application can perform gamma debugging on any binding point of the display panel. First, the target brightness value and target color coordinate value corresponding to the binding point are obtained, and the current register value corresponding to the binding point is adjusted with a first step length to obtain a first target register value so that the difference between the brightness acquisition value of the display panel and the target brightness value meets the preset error range. Then, the first target register value is adjusted with a second step length smaller than the first step length to obtain a second target register value so that the difference between the color coordinate acquisition value of the display panel and the target color coordinate value also meets the preset error range. In the process of adjusting the brightness and color coordinates, different step sizes are used, and the first step length when adjusting the brightness is larger, so that the actual display brightness of the display panel can be quickly adjusted to a reasonable range. After the actual display brightness of the display panel is adjusted to a reasonable range, the difference between the actual color coordinates of the display panel and the target color coordinates is relatively small. Therefore, the second step length when adjusting the color coordinates is smaller, so that the actual color coordinates of the display panel can be quickly adjusted to a reasonable range. In this way, the number of adjustments for each binding point can be reduced, and the number of adjustments can be reduced overall, which is conducive to shortening the gamma adjustment time overall, thereby improving efficiency.

[0146] In some embodiments, as Figure 8 As shown, the gamma adjustment device 700 provided in the embodiment of the present application may further include a checking module 704 .

[0147] A checking module 704 is configured to fit a gamma curve according to each binding point and the brightness collection value of the display panel at the second target register value corresponding to each binding point;

[0148] If the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the first adjustment module 702 and the second adjustment module 703 can also be used to: adjust the second target register value until the difference between the gamma value of the gamma curve fitted based on the adjusted second target register value and the target gamma value is within the third preset range.

[0149] In some embodiments, the first adjustment module 702 may also be configured to:

[0150] Obtain a register value corresponding to a first binding point and a register value corresponding to a second binding point adjacent to the binding point, wherein the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point;

[0151] Determine the first step length according to the register value corresponding to the first binding point and the register value corresponding to the second binding point;

[0152] A second step length is determined according to a register value corresponding to the first binding point and a register value corresponding to the second binding point.

[0153] In some embodiments, the first adjustment module 702 may also be configured to:

[0154] Determine a first reference step length according to an average of a register value corresponding to the first binding point and a register value corresponding to the second binding point;

[0155] The first step length is determined according to the ratio of the first reference step length to the cumulative number of adjustments corresponding to the binding point; wherein the cumulative number of adjustments is the accumulation of the number of adjustments corresponding to the direction approaching the target brightness value.

[0156] In some embodiments, the first adjustment module 702 may also be configured to:

[0157] determining a second reference step length according to a difference between a register value corresponding to the second binding point and a register value corresponding to the first binding point;

[0158] Determine the second step length according to the product of the second reference step length and a preset coefficient, where the preset coefficient is less than 1 and greater than 0;

[0159] Preferably, the preset coefficient is equal to 0.618.

[0160] In some embodiments, the data acquisition module 701 may be specifically configured to:

[0161] Determine the target brightness value according to the following formula:

[0162] Lth=(x / MaxGray) gamma *(MaxGrayLv-MinGrayLv)+MinGrayLv;

[0163] Where Lth represents the target brightness value, x represents the grayscale value of the binding point, MaxGray represents the maximum grayscale of the display panel, gamma represents the target gamma value, MaxGrayLv represents the brightness value of the highest grayscale under white balance, and MinGrayLv represents the brightness value of the lowest grayscale under white balance.

[0164] In some embodiments, the inspection module 704 may also be configured to:

[0165] The gamma value of the fitted gamma curve is determined according to the following formula:

[0166]

[0167] Among them, γ ni Indicates the gamma value of the fitted gamma curve, n indicates the number of binding points, MaxGray indicates the highest grayscale of the display panel, MaxGrayLv indicates the brightness value of the highest grayscale under white balance, x i Indicates the grayscale value of the i-th binding point, y i Indicates the brightness collection value under the second target register value corresponding to the i-th binding point.

[0168] The gamma adjustment device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM, or an kiosks, etc., which are not specifically limited in the embodiment of the present application.

[0169] The gamma adjustment device provided in the embodiment of the present application can achieve Figure 1To avoid repetition, each process in the embodiment of the gamma adjustment method will not be described again here.

[0170] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0171] The electronic device may include a processor 901 and a memory 902 storing computer program instructions.

[0172] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0173] The memory 902 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 902 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. In a specific embodiment, the memory 902 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these. Exemplarily, the memory may include a non-volatile transient memory.

[0174] The processor 901 implements any one of the gamma adjustment methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .

[0175] In one example, the electronic device may further include a communication interface 903 and a bus 910. Figure 9 As shown, the processor 901 , the memory 902 , and the communication interface 903 are connected via a bus 910 and communicate with each other.

[0176] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.

[0177] Bus 910 comprises hardware, software or both, couples the parts of electronic equipment to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus 910 can comprise one or more buses.Although the embodiment of the present invention describes and shows specific bus, the present invention considers any suitable bus or interconnection.

[0178] The electronic device can execute the gamma adjustment method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 7 The gamma adjustment method and gamma adjustment device are described.

[0179] The present application also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program can implement the gamma adjustment method described in the above embodiment and achieve the same technical effect. To avoid repetition, the above computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., and is not limited to this.

[0180] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link via a data signal carried in a carrier wave. "Computer-readable medium" can include any medium capable of storing or transmitting information. Examples of computer-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0181] According to an embodiment of the present application, the computer-readable storage medium may be a non-transitory computer-readable storage medium.

[0182] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0183] Aspects of the present application have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed via the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. This processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or the flowchart and the combination of the boxes in the block diagram and / or the flowchart can also be implemented by the dedicated hardware that performs the specified function or action, or can be implemented by the combination of dedicated hardware and computer instructions.

[0184] While the embodiments described above are not exhaustive, they do not limit the present application to the specific embodiments described. Clearly, numerous modifications and variations are possible based on the above description. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present application, thereby enabling those skilled in the art to better utilize the present application and its modifications. The present application is limited only by the claims and their full scope and equivalents.

Claims

1. A gamma adjustment method, characterized in that: Applied to a display panel, for any one of a plurality of binding points of the display panel, the method includes: Obtaining a target brightness value and a target color coordinate value of the display panel corresponding to the binding point; Adjusting the current register value corresponding to the binding point according to the first step to obtain a first target register value, wherein the difference between the brightness collection value of the display panel at the first target register value and the target brightness value is within a preset range; Adjusting the first target register value according to a second step length to obtain a second target register value, wherein a difference between a color coordinate acquisition value of the display panel at the second target register value and the target color coordinate value is within a preset range, and the second step length is smaller than the first step length; Before the step of adjusting the current register value corresponding to the binding point according to the first step to obtain the first target register value, the method further includes: Obtaining a register value corresponding to a first binding point and a register value corresponding to a second binding point adjacent to the binding point, wherein the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point; determining a first reference step length according to an average of a register value corresponding to the first binding point and a register value corresponding to the second binding point; Determining the first step length according to a ratio of the first reference step length to the cumulative number of adjustments corresponding to the binding point; wherein the cumulative number of adjustments is the accumulation of the number of adjustments corresponding to the direction approaching the target brightness value; determining a second reference step length according to a difference between a register value corresponding to the second binding point and a register value corresponding to the first binding point; The second step length is determined according to a product of the second reference step length and a preset coefficient, where the preset coefficient is less than 1 and greater than 0.

2. The method according to claim 1, characterized in that After the step of adjusting the first target register value according to the second step size to obtain a second target register value, the method further includes: fitting a gamma curve according to each of the binding points and the brightness collection value of the display panel at the second target register value corresponding to each of the binding points; If the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the second target register value is adjusted until the difference between the gamma value of the fitted gamma curve based on the adjusted second target register value and the target gamma value is within the third preset range.

3. The method according to claim 1, characterized in that The preset coefficient is equal to 0.

618.

4. The method according to claim 1, wherein The step of obtaining the target brightness value of the display panel corresponding to the binding point specifically includes: The target brightness value is determined according to the following formula: ; in, represents the target brightness value, x represents the grayscale value of the binding point, represents the highest grayscale of the display panel, represents the target gamma value, Indicates the brightness value of the highest grayscale under white balance. Indicates the brightness value of the lowest grayscale under white balance.

5. The method according to claim 2, characterized in that Before the step of adjusting the second target register value if the difference between the gamma value of the fitted gamma curve and the target gamma value is not within the third preset range, the method further includes: The gamma value of the fitted gamma curve is determined according to the following formula: , in, represents the gamma value of the fitted gamma curve, n represents the number of the binding points, represents the highest grayscale of the display panel, Indicates the brightness value of the highest grayscale under white balance. represents the grayscale value of the i-th binding point, Represents the brightness collection value under the second target register value corresponding to the i-th binding point.

6. A gamma adjustment device, characterized in that: Applied to a display panel, for any one of a plurality of binding points of the display panel, the device includes: a data acquisition module, configured to acquire a target brightness value and a target color coordinate value of the display panel corresponding to the binding point, and acquire a register value corresponding to a first binding point and a register value corresponding to a second binding point adjacent to the binding point, wherein the grayscale value of the first binding point is smaller than the grayscale value of the binding point, and the grayscale value of the second binding point is larger than the grayscale value of the binding point; A first adjustment module is configured to adjust the current register value corresponding to the binding point according to the first step length to obtain a first target register value, wherein the difference between the brightness acquisition value of the display panel at the first target register value and the target brightness value is within a first preset range; further configured to determine a first reference step length based on an average of the register value corresponding to the first binding point and the register value corresponding to the second binding point; and determine the first step length based on a ratio of the first reference step length to a cumulative number of adjustments corresponding to the binding point; wherein the cumulative number of adjustments is the cumulative number of adjustments corresponding to a direction approaching the target brightness value; The second adjustment module is used to adjust the first target register value according to the second step size to obtain a second target register value, and the difference between the color coordinate acquisition value of the display panel under the second target register value and the target color coordinate value is within a second preset range; it is also used to determine the second reference step size based on the difference between the register value corresponding to the second binding point and the register value corresponding to the first binding point; determine the second step size based on the product of the second reference step size and a preset coefficient, and the preset coefficient is less than 1 and greater than 0.

7. An electronic device, characterized in that: include: A processor and a memory storing computer program instructions, wherein the processor implements the gamma adjustment method according to any one of claims 1 to 5 when executing the computer program instructions.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the gamma adjustment method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Gamma adjusting method and device, driving chip and display device

    CN112863421A

  • Gamma voltage adjusting method and device, equipment and storage medium

    CN114898696A