Screen display control apparatus, method, device, and storage medium
By detecting and adjusting the grayscale values of adjacent sub-pixels of the same color in the OLED display panel and calculating the target compensation coefficient, the color shift problem under low brightness is solved, and the display effect is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ESWIN COMPUTING TECH CO LTD
- Filing Date
- 2024-11-25
- Publication Date
- 2026-07-24
AI Technical Summary
In OLED display panels, under low brightness or low grayscale conditions, the large difference in grayscale values between adjacent sub-pixels can lead to color shift, affecting image display quality.
By detecting the grayscale values of adjacent sub-pixels of the same color, the target compensation coefficient is calculated, and the grayscale values are adjusted to reduce color cast. The specific steps include obtaining grayscale values, determining the compensation coefficient weights and reference grayscale values, and dynamically adjusting grayscale values to improve color cast.
It effectively reduces color cast in images, improving display quality and user experience.
Smart Images

Figure CN119600910B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to a screen display control device, method, apparatus, and storage medium. Background Technology
[0002] In the field of display technology, display devices display images based on the light emitted by sub-pixels on the display device. The brightness of the light emitted by a sub-pixel is determined based on its corresponding grayscale value. In OLED (Organic Light-Emitting Diode) display panels, a special pixel structure is typically used, such as RGBG (Red, Green, Blue, Green). The grayscale value of each sub-pixel is calculated using the SPR (Sub-Pixel Rendering) algorithm. Under low brightness or low grayscale conditions, even slight adjustments to brightness can lead to noticeable color changes, potentially resulting in color shift. Therefore, a screen display control method is urgently needed to improve this color shift issue. Summary of the Invention
[0003] This application provides a screen display control device, method, apparatus, and storage medium to reduce the degree of color shift in images. The technical solution is as follows:
[0004] On one hand, a screen display control device is provided for use in a display device, the device including a processing module configured to:
[0005] The image data is inspected, and the same color sub-pixels in any two adjacent pixels are recorded as the first sub-pixel and the second sub-pixel.
[0006] Obtain a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel;
[0007] The target compensation coefficient is determined based on the first grayscale value and the second grayscale value;
[0008] The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0009] In one possible implementation, when determining the target compensation coefficient based on the first grayscale value and the second grayscale value, the processing module is configured to: determine the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value; and determine the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0010] In one possible implementation, when determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value, the processing module is configured to: determine the difference between the first grayscale value and the second grayscale value, the difference being positively correlated with the target weight; determine a reference grayscale value based on the first grayscale value and the second grayscale value, the reference grayscale value being negatively correlated with the target weight; and determine the target weight based on the difference and the reference grayscale value.
[0011] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
[0012] In one possible implementation, the first sub-pixel and the second sub-pixel are either blue sub-pixels or red sub-pixels.
[0013] In one possible implementation, the reference compensation coefficient is determined based on the degree of color shift of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color shift.
[0014] In one possible implementation, the screen display control device is a display driver chip.
[0015] On the other hand, a screen display control method is also provided, the method comprising:
[0016] The image data is inspected, and the same color sub-pixels in any two adjacent pixels are recorded as the first sub-pixel and the second sub-pixel.
[0017] Obtain a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel;
[0018] The target compensation coefficient is determined based on the first grayscale value and the second grayscale value;
[0019] The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0020] In one possible implementation, determining the target compensation coefficient based on the first grayscale value and the second grayscale value includes: determining a target weight for a reference compensation coefficient based on the first grayscale value and the second grayscale value; and determining the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0021] In one possible implementation, determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value includes: determining the difference between the first grayscale value and the second grayscale value, wherein the difference is positively correlated with the target weight; determining a reference grayscale value based on the first grayscale value and the second grayscale value, wherein the reference grayscale value is negatively correlated with the target weight; and determining the target weight based on the difference and the reference grayscale value.
[0022] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
[0023] In one possible implementation, both the first sub-pixel and the second sub-pixel are either blue or red sub-pixels.
[0024] In one possible implementation, the reference compensation coefficient is determined based on the degree of color shift of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color shift.
[0025] On the other hand, an electronic device is also provided, which includes any of the screen display control devices described above.
[0026] On the other hand, a computer-readable storage medium is also provided, wherein at least one computer program is stored in the computer-readable storage medium, the at least one computer program being loaded and executed by the processor of an electronic device to enable the electronic device to implement any of the screen display control methods described above.
[0027] On the other hand, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the screen display control methods described above.
[0028] The technical solution provided in this application has at least the following beneficial effects:
[0029] The technical solution provided in this application addresses the issue of color shift in an image caused by the grayscale values of sub-pixels of the same color in adjacent pixels. By compensating for the grayscale values of sub-pixels of the same color in any two adjacent pixels, the degree of color shift in the displayed image is reduced. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the implementation environment of a screen display control method provided in an embodiment of this application;
[0032] Figure 2 This is a flowchart of a screen display control method provided in an embodiment of this application;
[0033] Figure 3 This is a schematic diagram of a target compensation coefficient model provided in an embodiment of this application;
[0034] Figure 4 This is a schematic diagram of the structure of a screen display control device provided in an embodiment of this application;
[0035] Figure 5 This is a schematic diagram of the structure of a processing module provided in an embodiment of this application;
[0036] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0038] It should be noted that the terms "first," "second," etc. (if applicable) used in the specification of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0039] In the field of display technology, display devices achieve image display by emitting light from sub-pixels. The brightness of the light emitted by a sub-pixel is determined by its corresponding grayscale value; the higher the grayscale value, the brighter the light emitted by the sub-pixel, and vice versa. To control the brightness of each sub-pixel, display devices use the SPR algorithm to calculate the grayscale value of each sub-pixel. In low brightness or low grayscale conditions, even subtle brightness adjustments can lead to noticeable color changes, potentially resulting in color cast. For example, during screen image display testing, when the grayscale value difference between adjacent sub-pixels of the same color is large, and these grayscale values are relatively small (also known as low grayscale), the displayed image will exhibit color cast. Color cast affects image display quality and reduces the user's viewing experience.
[0040] This application provides a screen display control method to reduce the degree of color shift in an image, thereby improving the image's color distortion and display quality. Please refer to... Figure 1 This diagram illustrates an implementation environment for the screen display control method provided in this embodiment. The implementation environment may include an electronic device 101 and a display screen 102, which are connected via wired or wireless means. Optionally, the display screen 102 may be a screen mounted on the electronic device 101, in which case the display screen 102 is part of the electronic device 101.
[0041] This application does not limit the type of electronic device 101. For example, electronic device 101 can be a terminal. Optionally, the terminal can be any electronic product that can interact with the user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting device, such as PC (Personal Computer), mobile phone, smartphone, PDA (Personal Digital Assistant), wearable device, PPC (Pocket PC), tablet computer, smart car system, smart TV, smart speaker, etc.
[0042] This application does not limit the type of display screen 102. For example, display screen 102 can be an LED (Light Emitting Diode) screen or an LCD (Liquid Crystal Display) screen, etc.
[0043] Those skilled in the art should understand that the above-described electronic device 101 is merely an example, and other existing or future computer devices and display screens that are applicable to this application should also be included within the scope of protection of this application, and are hereby incorporated by reference.
[0044] See Figure 2 , Figure 2 This is a flowchart illustrating a screen display control method provided in an embodiment of this application. The method is described using an electronic device connected to a display screen as an example. For instance, the electronic device could be... Figure 1 The electronic device 101 shown may have a screen that is Figure 1 The display screen 102 shown is as follows. Figure 2 As shown, the screen display control method includes, but is not limited to, the following steps 201-204.
[0045] Step 201: Detect the image data and record the same-color sub-pixels among any two adjacent pixels as the first sub-pixel and the second sub-pixel.
[0046] The image data refers to the data of the image to be displayed, which is the image that will be shown on the display screen. Detection of the image data is also known as subpixel detection. A subpixel is a unit that makes up a complete pixel on the screen. The screen uses multiple subpixels to combine into a complete pixel to achieve richer color display. For example, a pixel may be composed of three subpixels: red, green, and blue, or it may be composed of red, green, blue, and green subpixels.
[0047] In this embodiment, the first sub-pixel and the second sub-pixel refer to two adjacent sub-pixels on the screen that emit the same color light. Two sub-pixels emitting the same color light are called same-color sub-pixels. When any two adjacent pixels are detected, the same-color sub-pixels are denoted as the first sub-pixel and the second sub-pixel. Adjacency can be left-right or top-bottom. For example, if the first sub-pixel and the second sub-pixel are both red sub-pixels, and the sub-pixels on the screen are arranged as red sub-pixels, green sub-pixels, blue sub-pixels, green sub-pixels, red sub-pixels, etc., then the first red sub-pixel and the second red sub-pixel are the first sub-pixel and the second sub-pixel. In one possible implementation, the first sub-pixel and the second sub-pixel are both blue sub-pixels or green sub-pixels.
[0048] Step 202: Obtain the first grayscale value and the second grayscale value. The first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel.
[0049] In an image, grayscale value refers to the brightness or color depth of a pixel. In a black and white image, grayscale value typically represents different brightness levels from black to white. In a color image, each color channel (e.g., red, green, blue) also has a corresponding grayscale value. The first grayscale value is the grayscale value of the first sub-pixel of the screen, and the second grayscale value is the grayscale value of the second sub-pixel of the screen.
[0050] This application does not limit the method of obtaining grayscale values. For example, it can be that among the multiple grayscale values corresponding to the image to be displayed, two grayscale values corresponding to the same color sub-pixels in any two adjacent pixels are determined, namely the first grayscale value and the second grayscale value.
[0051] In display panels, a pixel structure such as RGBG (Red, Green, Blue, Green) may be used to balance the lifespan of subpixels. In the RGBG structure, each pixel consists of red, green, blue, and an additional green subpixel. Using two green subpixels instead of one green subpixel reduces the area of a single green subpixel, thus matching the lifespan of the green subpixels with that of the red and blue subpixels.
[0052] The SPR algorithm, under the RGBG structure, renders each sub-pixel to ensure that the image can be displayed correctly on the RGBG pixel structure. This application does not limit the rendering process; for example, the rendering process may involve a color-borrowing process, which uses the light from adjacent sub-pixels of the same color to compensate for the light emitted by the current sub-pixel. Specifically, the SPR algorithm calculates for red and blue sub-pixels.
[0053] Step 203: Determine the target compensation coefficient based on the first grayscale value and the second grayscale value.
[0054] In one possible implementation, the process of determining the target compensation coefficient based on the first grayscale value and the second grayscale value includes: determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value; and determining the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0055] The reference compensation coefficient can be a preset value used to adjust the grayscale value difference between adjacent sub-pixels of the same color, thereby improving color cast. For example, the reference compensation coefficient can be freely set by the user based on experimental data and image analysis, aiming to reduce color cast while maintaining the overall brightness and color balance of the image.
[0056] In this embodiment, the influence of the reference compensation coefficient can be dynamically adjusted based on the difference between the first grayscale value and the second grayscale value, i.e., its weight can be determined. If the difference between the first grayscale value and the second grayscale value is large, it indicates that two adjacent sub-pixels of the same color have a significant difference in brightness or color depth, requiring greater compensation to adjust the difference between the grayscale values. If the two grayscale values are similar, it indicates that the brightness of two adjacent sub-pixels of the same color is relatively close, requiring less compensation. Thus, by dynamically adjusting the weight of the reference compensation coefficient and calculating the target compensation coefficient based on the weight and the preset reference compensation coefficient, more refined and accurate image rendering and display optimization can be achieved.
[0057] In one possible implementation, the process of determining the target weight of the reference compensation coefficient based on a first grayscale value and a second grayscale value includes: determining the difference between the first grayscale value and the second grayscale value, wherein the difference is positively correlated with the target weight; determining a reference grayscale value based on the first grayscale value and the second grayscale value, wherein the reference grayscale value is negatively correlated with the target weight; and determining the target weight based on the difference and the reference grayscale value.
[0058] The difference between the first grayscale value and the second grayscale value can be represented by the ratio between them. For example, the larger grayscale value between the first and second grayscale values is called `max`, and the smaller grayscale value is called `min`. The difference is `min / max`. A smaller `min / max` ratio indicates a larger difference between the first and second grayscale values, while a larger `min / max` ratio indicates a smaller difference. If the `min / max` ratio is 1, it indicates that there is no difference between the first and second grayscale values.
[0059] In this embodiment, the reference grayscale value is determined jointly by the first grayscale value and the second grayscale value. The reference grayscale value is the larger grayscale value (i.e., max) between the first and second grayscale values. The larger grayscale value can indicate the grayscale status of the two grayscale values. For example, if the larger grayscale value is a low grayscale, then the smaller grayscale value is also a low grayscale. This embodiment does not define the range of low grayscale; for example, a grayscale value less than 30 is considered a low grayscale.
[0060] Positive correlation indicates that an increase in the difference leads to an increase in the target weight, thus increasing the impact of the reference compensation coefficient on the final compensation result. Negative correlation indicates that an increase in the reference grayscale value leads to a decrease in the target weight, thus weakening the impact of the reference compensation coefficient on the final compensation result. To address the issues of color casts being prone to occur at low grayscale levels, and color casts being prone to occur when adjacent sub-pixels of the same color have similar grayscale values, the principle is that the lower the grayscale, the greater the color cast, and the greater the compensation should be; the greater the difference, the greater the color cast, and the greater the compensation should be.
[0061] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on a reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and a grayscale value threshold of the display screen. For example, the process of determining the target weight based on the difference and the reference grayscale value includes determining the first sub-weight based on the difference according to the following formula: A = 1 - min / max, where A indicates the first sub-weight, max indicates the reference grayscale value, min indicates another grayscale value, the other grayscale value is a grayscale value other than the reference grayscale value among the first and second grayscale values, and min / max indicates the difference. The second sub-weight is determined based on the reference grayscale value according to the following formula: B = 1 - max / C, where B indicates the second sub-weight, and C indicates the grayscale value threshold of the screen.
[0062] The first sub-weight is determined based on the difference, which is the ratio between the first and second grayscale values, i.e., min / max. min / max essentially represents the relative magnitude of the difference, i.e., the degree of difference between the two grayscale values. When the difference increases (i.e., min is smaller than max), the value of 1-min / max will increase, meaning the first sub-weight A will also increase. In other words, when the difference between two grayscale values is large, a larger compensation is needed to adjust the difference; therefore, the first sub-weight will be set higher.
[0063] The second sub-weight is determined based on the reference grayscale value using the formula B = 1 - max / C, where B represents the second sub-weight, max represents the reference grayscale value, and C represents the screen's grayscale threshold. When the reference grayscale value max approaches the screen's grayscale threshold C, the value of 1 - max / C decreases, and the second sub-weight B also decreases. This is because when the reference grayscale value is high (close to the screen's grayscale threshold), the overall brightness is already high, and little compensation is needed; therefore, the second sub-weight is set lower. Different screens have different grayscale thresholds, which are the maximum grayscale values the screen can provide. For example, the screen's grayscale threshold can be 255, 511, or 1023, etc.
[0064] In one possible implementation, the reference compensation coefficient is greater than 0 and less than 2. The reference compensation coefficient is a preset value used to guide how to adjust the grayscale value difference between adjacent sub-pixels of the same color. This aims to maintain the overall brightness and color balance of the image while reducing color cast in specific situations. Setting the reference compensation coefficient within the range of greater than 0 and less than 2 ensures that the compensation process is both effective and avoids over-compensation. Specifically, a reference compensation coefficient between 0 and 1 indicates an adjustment to decrease the grayscale value, while a reference compensation coefficient between 1 and 2 indicates an adjustment to increase the grayscale value. A reference compensation coefficient of 1 indicates that no grayscale value compensation is performed.
[0065] In one possible implementation, the reference compensation coefficient is determined based on the degree of color cast on the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color cast. For example, the difference between the value of the reference compensation coefficient and 1 is positively correlated with the degree of color cast. This positive correlation between the difference between the value of the reference compensation coefficient and 1 and the degree of color cast can mean that the absolute value of the difference between the value of the reference compensation coefficient and 1 is positively correlated with the degree of color cast. Alternatively, when the value of the reference compensation coefficient is between 0 and 1, the difference between the value of the reference compensation coefficient and 1 can be 1 - the value of the reference compensation coefficient; when the value of the reference compensation coefficient is between 1 and 2, the difference between the value of the reference compensation coefficient and 1 can be the value of the reference compensation coefficient - 1.
[0066] Furthermore, the magnitude of the difference is positively correlated with the degree of color cast, meaning that the more severe the color cast, the greater the difference between the reference compensation coefficient and 1, i.e., the higher the degree of compensation. This positive correlation ensures that when the screen has a significant color cast, the reference compensation coefficient can provide sufficient compensation to adjust the grayscale values, thereby reducing the color cast. Conversely, when the screen has a mild color cast, the difference between the reference compensation coefficient and 1 is small, i.e., the degree of compensation is low, to avoid overcompensation that could lead to image distortion.
[0067] For example, taking the first and second sub-pixels as red sub-pixels, if the screen's color shift is reddish, a reference compensation coefficient needs to be set between 0 and 1 to reduce the grayscale value of the red sub-pixels, thereby reducing the degree of reddish color shift. Furthermore, the higher the degree of reddish shift, the smaller the reference compensation coefficient, meaning the greater the influence of the reference compensation coefficient on the grayscale value. If the screen's color shift is bluish or greenish, a reference compensation coefficient needs to be set between 1 and 2 to increase the grayscale value of the red sub-pixels, thereby reducing the degree of color shift. Again, the higher the degree of color shift, the larger the reference compensation coefficient, making the reference compensation coefficient have a greater influence on the grayscale value. In addition, in this embodiment, blue and red sub-pixels can be processed simultaneously, i.e., adjusted using the same reference compensation coefficient.
[0068] For example, in order to facilitate understanding, Figure 3 Taking the target compensation coefficient model diagram as an example, the x-axis represents the maximum grayscale value (max) of the two sub-pixels in the input data, with a value range of (0, 1023), meaning the grayscale threshold is 1023. The y-axis represents the ratio of the grayscale values of the two sub-pixels, min / max, with a value range of (0, 1). The z-axis represents the target compensation coefficient, with the value on the z-axis being the set value of REG (register), which is the adjustable reference compensation coefficient, ranging from (0, 2). When the maximum value (max) is 1023 or the maximum value (min / max) is 1, the coordinate in the z-axis direction is 1, meaning the target compensation coefficient is 1, and no compensation is performed.
[0069] Therefore, three fixed points are defined: a(0, 1, 1), b(1023, 0, 1), and c(1023, 1, 1), all with a z-axis coordinate of 1. Using the point corresponding to REG (i.e., point d), with coordinates (0, 0, REG), linear interpolation is performed between this point and the fixed points along the x and y axes to obtain the surface (the surface enclosed by a, b, c, and d). The z-axis coordinates of the points on this surface are the target compensation coefficients. Figure 3 It is evident that the larger the input grayscale value or the smaller the difference in grayscale values between two sub-pixels, the less the target compensation coefficient is affected by the REG value, and the closer it is to 1 (i.e., no compensation). Conversely, the smaller the input grayscale value or the greater the difference in grayscale values between two sub-pixels, the greater the impact of the REG value on the target compensation coefficient.
[0070] based on Figure 3 The diagram illustrates a target compensation coefficient model, which can determine the target compensation coefficient based on the first and second grayscale values. First, linear interpolation is performed between REG and the y-axis, i.e., the difference determines the first sub-weight, which is (1-min / max). The corresponding weight for the bias not being compensated (i.e., the target compensation coefficient is 1) is min / max. Therefore, the preliminary compensation coefficient considering only the ratio under the influence of REG can be obtained using the following formula 1.
[0071]
[0072] Where gain1 is the initial compensation coefficient, (1-min / max) / 1 is the weight of REG, and (min / max) / 1 is the weight of 1 (no compensation). REG is the reference compensation coefficient, REG*(1-min / max) / 1 is the influence of the reference compensation coefficient on the initial compensation coefficient, and (min / max)*1 / 1 is the influence of 1 (no compensation) on the initial compensation coefficient.
[0073] Considering the influence of grayscale value on REG based on the preliminary compensation coefficient, the target compensation coefficient can be obtained from Formula 1 using Formula 2 as follows.
[0074]
[0075] Where gain2 is the target compensation coefficient, gain1 is the initial compensation coefficient, (1023-max) / 1023 is 1-max / C, which is the influence of the grayscale value on REG, and max / 1023 is the weight of 1 (no compensation). In addition, the calculation order of formulas 2 and 3 can be reversed, that is, the influence of the reference grayscale value on REG is considered first, and then the influence of the ratio on REG is considered.
[0076] Step 204: Adjust the first grayscale value and the second grayscale value according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
[0077] The target compensation coefficient is determined based on the screen's color shift and the difference between the first and second grayscale values. This application does not limit the method of adjusting the first and second grayscale values; for example, it can be adjusted using the following formula 3.
[0078] o_data=data_adj*gain2 (Formula 3)
[0079] Where data_adj is the first grayscale value or the second grayscale value, gain2 is the target compensation coefficient, and o_data is the adjusted first grayscale value or the adjusted second grayscale value.
[0080] The display screen is driven to display images according to the adjusted first grayscale value and the adjusted second grayscale value. In this embodiment, the display process may include converting the grayscale value into a voltage or current corresponding to the image displayed on the screen, so as to generate corresponding colors and brightness on the screen.
[0081] In summary, the screen display control method provided in this application addresses the issue of color shift in images caused by a large difference in grayscale values between any two adjacent pixels of the same color and both having relatively small grayscale values. By compensating for the grayscale values of these adjacent pixels, the degree of color shift in the displayed image is reduced. Furthermore, because the different influences of the difference and the reference grayscale value on the reference compensation coefficient are considered when determining the target compensation coefficient, the target compensation coefficient more closely reflects the actual display situation. Consequently, the grayscale values adjusted based on the determined target compensation coefficient are more accurate, improving the display effect of the image displayed based on the adjusted grayscale values.
[0082] See Figure 4 , Figure 4 This is a schematic diagram of a screen display control device provided in an embodiment of this application. The screen display control device is applied to a display device, such as... Figure 4As shown, the device includes a processing module 401, which is configured to: detect image data and record the same-color sub-pixels among any two adjacent pixels as the first sub-pixel and the second sub-pixel; obtain a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel and the second grayscale value is the grayscale value of the second sub-pixel; determine a target compensation coefficient based on the first grayscale value and the second grayscale value; adjust the first grayscale value and the second grayscale value according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to control the screen to display the image to be displayed according to the adjusted first grayscale value and the adjusted second grayscale value.
[0083] In one possible implementation, when determining the target compensation coefficient based on the first grayscale value and the second grayscale value, the processing module 401 is configured to: determine the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value; and determine the target compensation coefficient according to the target weight and the reference compensation coefficient.
[0084] In one possible implementation, when determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value, the processing module 401 is configured to: determine the difference between the first grayscale value and the second grayscale value, the difference being positively correlated with the target weight; determine a reference grayscale value based on the first grayscale value and the second grayscale value, the reference grayscale value being negatively correlated with the target weight; and determine the target weight based on the difference and the reference grayscale value.
[0085] In one possible implementation, the target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on a reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and a grayscale value threshold of the display screen. For example, the first sub-weight is determined based on the difference according to the following formula: A = 1 - min / max, where A indicates the first sub-weight, max indicates the reference grayscale value, min indicates another grayscale value, which is the grayscale value other than the reference grayscale value between the first and second grayscale values, and min / max indicates the difference; the second sub-weight is determined based on the reference grayscale value according to the following formula: B = 1 - max / C, where B indicates the second sub-weight, and C indicates the grayscale value threshold of the screen.
[0086] In one possible implementation, both the first sub-pixel and the second sub-pixel are either blue or red sub-pixels.
[0087] In one possible implementation, the value of the reference compensation coefficient is greater than 0 and less than 2.
[0088] In one possible implementation, the reference compensation coefficient is determined based on the degree of color shift of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color shift.
[0089] For ease of understanding, Figure 5 Taking the schematic diagram of the processing module shown as an example, the screen display control device provided in the embodiments of this application will be illustrated. Figure 5 As shown, the processing module 401 includes a sub-pixel detection module, a sub-pixel rendering module, and a low-grayscale compensation module. The sub-pixel detection module detects sub-pixels of the same color between any two adjacent pixels in the input data, where the input data represents the grayscale values corresponding to multiple sub-pixels. For example, it detects the grayscale values (i.e., the first grayscale value and the second grayscale value) of sub-pixels of the same color between any two left and right adjacent pixels, determines the magnitude of the first and second grayscale values, and marks the smaller grayscale value as min and the larger grayscale value as max. The low-grayscale compensation module receives the ratio min / max, the maximum value max, the peripheral register REG, and some preset parameters (e.g., grayscale value thresholds) from the sub-pixel detection module. Based on the input ratio min / max, the maximum value max, and the preset parameters, it determines the target compensation coefficient to compensate for the first and second grayscale values of the image.
[0090] The subpixel rendering module processes image data, such as performing overall grayscale value processing based on the current screen's overall brightness. The compensation process involves adjusting the data (first and second grayscale values) processed by the subpixel rendering module using a target compensation coefficient, outputting data (i.e., the adjusted first and second grayscale values) to complete the display.
[0091] It should be noted that the above Figure 4 The screen display control device provided in the embodiments is illustrated only by the division of the above-mentioned functional modules. In actual operation, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments.
[0092] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device includes a display screen 601 and a screen display control device 602. The screen display control device 602 is used to perform the above-described... Figure 2 The method embodiment provides a screen display control method. Of course, the electronic device may also have wired or wireless network interfaces, keyboards, and input / output interfaces for input and output. The electronic device may also include other components for implementing device functions, which will not be elaborated here.
[0093] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by the processor of an electronic device to enable the electronic device to implement any of the screen display control methods described above.
[0094] In one possible implementation, the aforementioned computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc. Alternatively, the computer-readable storage medium can be a non-transitory computer-readable storage medium.
[0095] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the screen display control methods described above.
[0096] It should be noted that the electronic device in this application may also be referred to as a display device. Furthermore, all information, data (including but not limited to image data), and signals involved in this application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the grayscale values involved in this application were obtained under fully authorized conditions.
[0097] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0098] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A screen display control device, characterized in that, Applied to a display device, the apparatus includes a processing module configured to: The image data is inspected, and the same color sub-pixels in any two adjacent pixels are recorded as the first sub-pixel and the second sub-pixel. Obtain a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel; The target weight of the reference compensation coefficient is determined based on the first grayscale value and the second grayscale value, and the target weight is positively correlated with the difference between the first grayscale value and the second grayscale value. The target compensation coefficient is determined based on the target weight and the reference compensation coefficient; The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
2. The apparatus according to claim 1, characterized in that, When determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value, the processing module is configured as follows: Determine the difference between the first grayscale value and the second grayscale value; A reference gray level value is determined based on the first gray level value and the second gray level value, and the reference gray level value is negatively correlated with the target weight. The target weight is determined based on the gap and the reference grayscale value.
3. The apparatus according to claim 2, characterized in that, The target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
4. The apparatus according to any one of claims 1-3, characterized in that, Both the first sub-pixel and the second sub-pixel are either blue or red sub-pixels.
5. The apparatus according to any one of claims 1-3, characterized in that, The reference compensation coefficient is determined based on the degree of color shift of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color shift.
6. A screen display control method, characterized in that, The method includes: The image data is inspected, and the same color sub-pixels in any two adjacent pixels are recorded as the first sub-pixel and the second sub-pixel. Obtain a first grayscale value and a second grayscale value, wherein the first grayscale value is the grayscale value of the first sub-pixel, and the second grayscale value is the grayscale value of the second sub-pixel; The target weight of the reference compensation coefficient is determined based on the first grayscale value and the second grayscale value, and the target weight is positively correlated with the difference between the first grayscale value and the second grayscale value. The target compensation coefficient is determined based on the target weight and the reference compensation coefficient; The first grayscale value and the second grayscale value are adjusted according to the target compensation coefficient to obtain the adjusted first grayscale value and the adjusted second grayscale value, so as to drive the display screen to display according to the adjusted first grayscale value and the adjusted second grayscale value.
7. The method according to claim 6, characterized in that, The step of determining the target weight of the reference compensation coefficient based on the first grayscale value and the second grayscale value includes: Determine the difference between the first grayscale value and the second grayscale value; A reference gray level value is determined based on the first gray level value and the second gray level value, and the reference gray level value is negatively correlated with the target weight. The target weight is determined based on the gap and the reference grayscale value.
8. The method according to claim 7, characterized in that, The target weight includes a first sub-weight and a second sub-weight; the first sub-weight is determined based on the reference grayscale value and the difference between the first grayscale value and the second grayscale value; the second sub-weight is determined based on the reference grayscale value and the grayscale value threshold of the display screen.
9. The method according to any one of claims 6-8, characterized in that, Both the first sub-pixel and the second sub-pixel are either blue or red sub-pixels.
10. The method according to any one of claims 6-8, characterized in that, The reference compensation coefficient is determined based on the degree of color shift of the screen, and the value of the reference compensation coefficient is positively correlated with the degree of color shift.
11. An electronic device, characterized in that, The electronic device includes a screen display control device as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by the processor of the electronic device to enable the electronic device to implement the screen display control method as described in any one of claims 6 to 10.