Brightness compensation method, display device and computer program product
By acquiring the unfolded screen size and brightness level in a retractable screen display device and applying a target brightness compensation value for brightness adjustment, the problem of abnormally bright screens caused by brightness variations is solved, achieving more efficient brightness management and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BOE TECHNOLOGY GROUP CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-07-31
AI Technical Summary
In the prior art, display devices with retractable screens suffer from abnormally bright screens due to brightness changes during screen unfolding and retraction, which increases ineffective power consumption, accelerates pixel aging, and results in inconsistent user experience.
By obtaining the current unfolded size of the screen, determining the initial brightness level, and applying the target brightness compensation value under specific conditions, brightness compensation is performed on all pixels within the visible screen area. Targeted brightness adjustment is achieved by utilizing a pre-built brightness compensation mapping table and brightness adjustment mechanism.
It effectively reduces the ineffective power consumption of display devices, extends the lifespan of the screen, reduces the risk of pixel aging, and improves the consistency of user viewing experience and visual effects.
Smart Images

Figure CN122493778A_ABST
Abstract
Description
Technical Field
[0001] This disclosure generally relates to the field of display device technology, and more particularly to a brightness compensation method, display device, and computer program product. Background Technology
[0002] For display devices containing retractable screens such as sliding screens and rollable screens, the effective display area of the retractable screen dynamically changes with the extension and retraction of the display device. To reduce overall power consumption, existing technologies typically only display content on the exposed screen area extending from the retracting mechanism, while the remaining screen area within the retracting mechanism remains off. When the entire retractable screen uses only the exposed screen area as the effective display area, the screen brightness increases as the effective display area decreases. This leads to abnormally high brightness during the dynamic switching of the exposed screen area, increasing not only unnecessary power consumption but also accelerating pixel aging in the exposed screen area, thus raising the risk of burn-in for the retractable screen. Summary of the Invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a brightness compensation method, display device and computer program product. By introducing a mechanism that determines the initial brightness level based on the current unfolded size of the screen and determines and applies the target brightness compensation value under specific conditions, targeted intelligent brightness compensation for the currently visible screen area is achieved. This not only helps to reduce the ineffective power consumption of the display device, extend the life of the screen and reduce the risk of pixel aging, but also improves the user viewing experience and ensures a comfortable and consistent visual effect under different screen unfolded sizes, effectively improving the display stability and lifespan of the display device.
[0004] In a first aspect, this application provides a brightness compensation method applied to a display device containing a retractable screen, the display device having a receiving mechanism for accommodating the retractable screen. The method includes: The current unfolded size of the screen is obtained, and an initial brightness level is determined based on the current unfolded size of the screen; the current unfolded size of the screen is used to characterize the ratio of the visible screen area extending from the inside of the receiving mechanism to the full area of the retractable screen; If the current unfolded size of the screen is less than a first preset ratio and the initial brightness level exceeds a preset brightness level, then a target brightness compensation value that matches the current unfolded size of the screen and the initial brightness level is determined, and brightness compensation is performed on all pixels in the visible screen area according to the target brightness compensation value.
[0005] In conjunction with the first aspect, in one possible implementation, determining the initial brightness level based on the current unfolded size of the screen includes: Determine the difference between the second preset ratio and the current unfolded size of the screen. Multiply the difference by a first preset constant to obtain an exponent value. Then, perform an exponentiation operation with the preset constant as the base and the exponent value as the exponent. Multiply the result by the second preset constant to obtain the initial brightness level. The second preset ratio is greater than the first preset ratio; or... Obtain the original luminance component value of the Y channel in the luminance-color difference YUV image of the visible screen area, adjust the brightness of the original luminance component value according to the current unfolded size of the screen, and determine the adjusted Y channel luminance value as the initial luminance level.
[0006] In conjunction with the first aspect, in one possible implementation, determining a target brightness compensation value that matches the current unfolded size of the screen and the initial brightness level includes: The candidate brightness compensation value corresponding to the current unfolded size of the screen and the initial brightness level is found in a pre-built brightness compensation mapping table; the brightness compensation mapping table stores the preset brightness compensation values for different combinations of screen unfolded size and screen brightness level. The target brightness compensation value is determined based on the found candidate brightness compensation values.
[0007] In conjunction with the first aspect, in one possible implementation, determining the target brightness compensation value based on the found candidate brightness compensation values includes: When there are multiple candidate brightness compensation values, a brightness compensation offset is determined based on the multiple candidate brightness compensation values; The target brightness compensation value is obtained by proportionally converting the brightness compensation offset, the initial brightness level, and the brightness level range to which the initial brightness level belongs in the brightness compensation mapping table.
[0008] In conjunction with the first aspect, in one possible implementation, the step of performing brightness compensation on all pixels within the visible screen area based on the target brightness compensation value includes: Obtain the current motor motion state of the display device; If the current motor motion state indicates that the retractable screen is in the unfolding process, then the target brightness level after brightness compensation is determined based on the difference between the initial brightness level and the target brightness compensation value; If the current motor motion state indicates that the retractable screen is in the retraction process, then the target brightness level after brightness compensation is determined according to the sum of the initial brightness level and the target brightness compensation value; The target brightness level is the brightness level of all pixels within the visible screen area after brightness compensation.
[0009] In conjunction with the first aspect, in one possible implementation, determining the target brightness level after brightness compensation based on the difference between the initial brightness level and the target brightness compensation value includes: When the position sensor detects that the motor rotates n revolutions, the initial brightness level is reduced by m brightness level units, and the brightness display of the visible screen area is updated according to the updated brightness level. Repeat the above steps until the total reduction in brightness level equals the target brightness compensation value, to obtain the target brightness level after brightness compensation; where n and m are both positive integers greater than 0.
[0010] In conjunction with the first aspect, in one possible implementation, the method further includes: Based on the distance the retractable screen will slide and the distance the screen moves with each rotation of the motor, determine the total number of rotations required for the motor to complete this screen brightness compensation. The total number of adjustments required to complete this brightness compensation is determined based on the target brightness compensation value and parameter m, and parameter n is determined based on the total number of rotations and the total number of adjustments.
[0011] In conjunction with the first aspect, in one possible implementation, obtaining the current unfolded size of the display device's screen includes: Obtain the current number of rotations of the motor inside the display device; Based on a preset mapping relationship between the number of motor rotations and the unfolded screen size, the current unfolded screen size corresponding to the current number of rotations is determined.
[0012] Secondly, this application also provides a display device, including a retractable screen, a housing mechanism, and a control unit. The retractable screen is housed within the housing mechanism, which is a cavity structure provided inside the display device for accommodating the retractable screen. The control unit is configured to perform the brightness compensation method described in the first aspect above.
[0013] Thirdly, this application also provides a program product, including a computer program that, when executed by a processor, implements the brightness compensation method described in the first aspect.
[0014] This application provides a brightness compensation method, a display device, and a computer program product. The brightness compensation method achieves targeted intelligent brightness compensation for the currently visible screen area by introducing a mechanism that includes the current unfolded size of the screen, determining an initial brightness level based on that size, and determining and applying a target brightness compensation value under specific conditions. Unlike existing technologies that passively accept increased brightness, this embodiment, through precise conditional judgment and targeted brightness compensation, can actively identify and intervene in the brightness output of the currently visible screen area. This effectively avoids the problem of abnormally bright screens during retraction, not only helping to reduce the ineffective power consumption of the display device, extend the screen's lifespan, and reduce the risk of pixel aging, but also improving the user viewing experience. It ensures a comfortable and consistent visual effect under different screen unfolded sizes, while achieving more intelligent and efficient brightness management, effectively improving the display stability and lifespan of the display device. Attached Figure Description
[0015] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram illustrating the relationship between an organic light-emitting diode display screen and a housing mechanism in the prior art. Figure 2 This is one of the flowcharts illustrating a brightness compensation method in one embodiment; Figure 3 This is a schematic diagram showing the relationship between brightness variation and display area in one embodiment; Figure 4 This is a second schematic flowchart of a brightness compensation method in one embodiment; Figure 5 This is the third flowchart of a brightness compensation method in one embodiment; Figure 6 This is the fourth flowchart of a brightness compensation method in one embodiment; Figure 7 This is the fifth flowchart of a brightness compensation method in one embodiment; Figure 8 This is the sixth flowchart of a brightness compensation method in one embodiment; Figure 9 This is the seventh flowchart of a brightness compensation method in one embodiment; Figure 10 This is the eighth flowchart of a brightness compensation method in one embodiment; Figure 11 This is the ninth flowchart of a brightness compensation method in one embodiment. Detailed Implementation
[0016] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0017] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The present application will now be described in detail with reference to the accompanying drawings and embodiments. Furthermore, the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The terms "first" and "second," etc., in the specification and claims of the embodiments of this application are used to distinguish different objects, not to describe a specific order of objects.
[0018] For display devices containing retractable screens such as sliding screens and rollable screens, the effective display area of the retractable screen dynamically changes with the extension and retraction of the display device. When the retractable screen in the display device is an Organic Light-Emitting Diode (OLED) display, refer to... Figure 1 The diagram showing the relationship between the OLED display and the containment mechanism is shown in [the original text]. Figure 1 In the diagram, the black area represents the containment mechanism, and the white area represents the visible screen area that extends out of the containment mechanism and can display screen content.
[0019] To reduce overall power consumption, screen driving is typically only applied to the display area extending from the housing mechanism, while the display area inside the housing mechanism remains off. Figure 1 When the current display size of the central screen is 100%, it means that the entire screen is used for displaying the image. When the current display size of the screen (the current unfolded size of the screen is used to represent the ratio of the visible screen area extending from inside the containment facility to the complete area of the retractable screen) is 50%, the remaining 50% of the screen area is hidden inside the containment facility and is in an off state. When the current display size of the screen is 10%, the remaining 90% of the screen area is hidden inside the containment facility and is in an off state.
[0020] pass Figure 1 It is known that when only a portion of the displayable screen area is used as the effective display area, the screen brightness will passively increase as the effective display area shrinks. This can lead to abnormally bright screens during dynamic switching of the display area, which not only increases power consumption but also accelerates pixel aging in the display area and increases the risk of screen burn-in.
[0021] To address the aforementioned technical problems, this application provides a brightness compensation method, a display device, and a computer program product. The subject executing the brightness compensation method can be a display device containing a retractable screen, and the display device has a receiving mechanism for accommodating the retractable screen. The display device includes, but is not limited to, rollable screen mobile phones, sliding screen mobile phones, foldable screen terminals, rollable displays, and retractable vehicle central control screens, among other devices. This application does not limit the specific form of the display device.
[0022] The following description uses the control unit inside a display device containing a retractable screen as an example to illustrate the brightness compensation method.
[0023] To facilitate understanding of the brightness compensation method provided in the embodiments of this application, the following detailed description of the brightness compensation method will be provided through several example embodiments. It is understood that these example embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0024] Reference Figure 2 This is a flowchart illustrating the brightness compensation method provided in an embodiment of this application, as shown below. Figure 2 As shown, the brightness compensation method includes the following steps 101 and 102.
[0025] Step 101: Obtain the current unfolded size of the screen and determine the initial brightness level based on the current unfolded size of the screen.
[0026] The currently unfolded screen size represents the ratio of the visible screen area extending from inside the containment mechanism to the total area of the retractable screen. Furthermore, this currently unfolded screen size quantifies the relative size of the currently visible screen area of the retractable screen.
[0027] The initial brightness level is the screen brightness level determined based on the current unfolded size of the screen before brightness compensation. It serves as a benchmark for brightness adjustment of the currently visible screen area, and its setting and adjustment directly determine and affect the overall display brightness of the current screen area.
[0028] Specifically, the control unit inside the display device obtains the current unfolded size of the screen, which can be manually input by the user through the user interface of the display device. Alternatively, the current unfolded size can be obtained by detecting a fixed position using mechanical contact sensors. For example, inside the housing mechanism of the display device, multiple mechanical contact sensors are set at different positions along the screen unfolding direction. Each mechanical contact sensor corresponds to a preset screen unfolding position, and each screen unfolding position represents a different ratio of the visible screen area to the maximum display area. When the retractable screen unfolds outward, the screen body sequentially touches the corresponding mechanical contact sensor. The touched mechanical contact sensor generates a trigger signal and transmits it to the control unit. The control unit determines the corresponding target screen unfolding position based on the sensor position that received the trigger signal, thereby obtaining the current unfolded size of the screen that matches the target screen unfolding position. This embodiment does not limit the specific method of obtaining the current unfolded size of the screen.
[0029] When the control unit obtains the current unfolded size of the display device's screen, it can determine the initial brightness level corresponding to the current unfolded size by looking up a pre-built mapping relationship between the screen's unfolded size and its brightness level. Alternatively, it can pre-set a simple linear or non-linear function, using the current unfolded size as input, to directly calculate an initial brightness level; the smaller the unfolded size, the higher the initial brightness level may be set.
[0030] It's worth noting that, compared to other solutions, the control unit can also determine the initial brightness level of the currently visible screen by looking up a register, without adding any additional hardware. For example, when the display device has a register for storing DBV values, the current DBV value can be preset by writing to the register. Subsequent requests to obtain the current DBV value simply require querying the register, without measurement. In this way, regardless of the percentage of the visible screen area extending from the retractable mechanism relative to the total area of the retractable screen, the obtained current DBV value remains constant, such as 3510, 4120, or 4096. Therefore, the actual screen brightness corresponding to the current DBV value will either increase as the visible screen area decreases or decrease as the visible screen area increases. In other words, the smaller (or larger) the unfolded screen size, the higher (or lower) the initial brightness level may be set.
[0031] Step 102: If the current unfolded size of the screen is less than the first preset ratio and the initial brightness level exceeds the preset brightness level, then determine the target brightness compensation value that matches the current unfolded size of the screen and the initial brightness level, and perform brightness compensation on all pixels in the visible screen area according to the target brightness compensation value.
[0032] The first preset ratio is used to determine whether the current unfolded size of the retractable screen has reached the threshold requiring brightness compensation, and its value range can be 60%-50%. It should be noted that when the unfolded size of the retractable screen is large enough, such as when the current unfolded size is 80% or 90%, the brightness change of the currently visible screen area is small, and no compensation is required.
[0033] The preset brightness level is a pre-defined threshold value used to determine whether the brightness of the visible area of the current screen is too high, close to, or has reached a level that could lead to excessive brightness, excessive power consumption, or screen burn-in risk. Its value range is 2133-1629. It should be noted that when the brightness level of the visible screen area of the retractable screen is low, such as when the initial brightness level of the visible screen area is 1600 or 1000, the actual brightness of the visible screen area is less affected by changes in the visible screen area, and no compensation is needed in this case.
[0034] For example, the initial brightness level can be the current Digital Brightness Value (DBV) or the luminance component value of the Y channel in the luminance chromaticity (YUV).
[0035] Specifically, the ratio of the current unfolded screen size S to the first preset value S Perform a size comparison, and simultaneously compare the initial brightness level (such as the current digital brightness value DBV) with the preset brightness level (such as the digital brightness threshold DBV). Perform a size comparison; if the current expanded screen size S is less than the first preset ratio S... If the current unfolded screen size meets the first preset ratio condition, then the current unfolded screen size is considered to meet the first preset ratio condition. At the same time, if the initial brightness level (such as the current digital brightness value DBV) exceeds the preset brightness level (such as the digital brightness threshold DBV), then the current unfolded screen size is considered to meet the first preset ratio condition. When S < S, it is considered that the initial brightness level meets the preset brightness level condition, and at this time it can be determined that all pixels in the visible screen area need brightness compensation; that is, when S < S And DBV > DBV At this time, brightness compensation needs to be performed on all pixels within the visible screen area.
[0036] To compensate for the brightness of pixels within the visible screen area, it is first necessary to determine a target brightness compensation value that matches the current unfolded size and initial brightness level of the screen. This can be achieved by pre-dividing the unfolded screen size into multiple size intervals and the screen brightness level into multiple brightness level intervals, and pre-setting a corresponding brightness compensation value for each combination of size interval and brightness level interval. Thus, once the current unfolded size and initial brightness level are obtained, the control unit can first determine the target size interval and target brightness level interval to which they belong, and then determine the target brightness compensation value corresponding to this target combination. Alternatively, the control unit can be pre-configured with a compensation calculation model where the target brightness compensation value is jointly determined by the current unfolded size and initial brightness level. That is, the control unit substitutes the current unfolded size and initial brightness level into the compensation calculation model to obtain the target brightness compensation value that matches the current unfolded size and initial brightness level.
[0037] Subsequently, the control unit can adjust the driving current or voltage of the backlight module of the display device according to the target brightness compensation value, thereby changing the overall brightness output of the visible screen area to achieve brightness compensation. Alternatively, the brightness values of each pixel in the visible screen area can be adjusted by subtracting or adding the target brightness compensation value from the initial brightness level. The adjusted pixel brightness values are then output to the driving circuit of the retractable screen, which drives the corresponding pixels in the visible screen area to emit light according to the adjusted pixel brightness values, thus achieving overall brightness compensation within the visible screen area.
[0038] It should be noted that the range of values for the first preset ratio can be referenced. Figure 3 The curve showing the relationship between brightness change and display area is derived from... Figure 3 It can be seen that when the display area is in the range of 60% to 100%, the change in brightness is less than the preset perception threshold, and the human eye cannot perceive the difference in brightness. Therefore, there is no need to perform brightness compensation in this range. Only when the display area is less than 60% and the change in brightness increases significantly, is it necessary to start the compensation process. Therefore, the value range of the first preset ratio is set to 60%-50%.
[0039] The brightness compensation method provided in this application embodiment achieves targeted intelligent brightness compensation for the currently visible screen area by introducing a mechanism that includes the current unfolded size of the screen, determining an initial brightness level based on the current unfolded size, and determining and applying a target brightness compensation value under specific conditions. Unlike the passive acceptance of increased brightness in existing technologies, this embodiment, through precise condition judgment and targeted brightness compensation, can actively identify and intervene in the brightness output of the currently visible screen area, effectively avoiding the problem of abnormally bright screens during retraction. This not only helps reduce the ineffective power consumption of the display device, extend the screen's lifespan, and reduce the risk of pixel aging, but also improves the user's viewing experience, ensuring a comfortable and consistent visual effect under different screen unfolded sizes. Simultaneously, it achieves more intelligent and efficient brightness management, effectively improving the display stability and lifespan of the display device.
[0040] Based on the above Figure 2 In one example embodiment of the method shown, step 101 determines the initial brightness level based on the current unfolded size of the screen. The determination process in this embodiment can be implemented through the following steps.
[0041] Determine the difference between the second preset ratio and the current unfolded size of the screen. Multiply the difference by the first preset constant to obtain the exponent value. Then, perform an exponential operation with the preset constant as the base and the exponent value as the exponent. Multiply the result by the second preset constant to obtain the initial brightness level. The second preset ratio is greater than the first preset ratio. Alternatively, obtain the original brightness component value of the Y channel in the brightness color difference YUV image of the visible screen area, adjust the brightness of the original brightness component value according to the current unfolded size of the screen, and determine the adjusted Y channel brightness value as the initial brightness level.
[0042] The second preset ratio is a percentage greater than the first preset ratio. For example, when the first preset ratio is 60%, the second preset ratio is 100%.
[0043] In a YUV image, the Y channel represents the luminance component, which can intuitively reflect the brightness of the YUV image.
[0044] Specifically, when the control unit obtains the current unfolded size of the display device's screen, it can calculate the initial brightness level corresponding to the current unfolded size of the screen using equation (1).
[0045] Lv = q × e^(x × (hS)(1) In formula (1), S represents the current unfolded size of the display device screen, which is the percentage of the visible screen area extending from the inside of the display device's housing mechanism to the maximum display area of the entire retractable screen, such as 50% or 30%; e represents the base of the preset constant, which is the base of the natural logarithm; h is the second preset ratio, such as h=100%; x represents the first preset constant, and q represents the second preset constant. Both q and x are related to the brightness of the current visible screen area and the characteristics of the screen itself; Lv represents the brightness of the center of the display area, which is the initial brightness level corresponding to the current unfolded size S of the screen.
[0046] Alternatively, the control unit can convert the red, green, and blue RGB image currently displayed on the screen into a luminance-color difference YUV image, extract the original luminance component value of the Y channel in the YUV image, and then, based on the current unfolded size of the screen, call the preset luminance compensation rule or mapping relationship to determine the luminance adjustment coefficient or luminance adjustment amount. Subsequently, using the luminance adjustment coefficient or luminance adjustment amount, the original luminance component value is scaled or offset to make the luminance of the Y channel match the current unfolded size of the screen; the luminance value of the Y channel obtained after adjustment is the initial luminance level.
[0047] The brightness compensation method provided in this application significantly improves the accuracy and adaptability of brightness compensation by offering two different initial brightness level determination mechanisms. The first mechanism introduces non-linear exponential calculations to more precisely simulate the human eye's perception of brightness changes under different screen unfolding sizes, avoiding brightness setting deviations that may arise from simple linear relationships. This non-linear adjustment ensures that the initial brightness level setting is more in line with visual comfort requirements when the screen is partially unfolded. The second mechanism directly utilizes the actual brightness information of the displayed content in the visible screen area and adjusts it in conjunction with the screen unfolding size, ensuring that the initial brightness level considers not only the physical state of the screen but also the visual characteristics of the displayed content. Both mechanisms enable more precise and intelligent determination of the initial brightness level, providing a more solid and accurate benchmark for subsequent brightness compensation, thus making the entire brightness compensation process more effective and ultimately improving the user's visual experience.
[0048] Based on the above Figure 2 In one example embodiment of the method shown, step 102 determines a target brightness compensation value that matches the current unfolded screen size and initial brightness level. The determination process in this embodiment can be achieved through… Figure 4 Steps 201 and 202 shown are implemented.
[0049] Step 201: Find the candidate brightness compensation value corresponding to the current unfolded size and initial brightness level of the screen in the pre-built brightness compensation mapping table; the brightness compensation mapping table includes preset brightness compensation values for different unfolded screen sizes and screen brightness levels.
[0050] Step 202: Determine the target brightness compensation value based on the found candidate brightness compensation values.
[0051] Specifically, the control unit can pre-build a mapping relationship between screen unfolded size, screen brightness level, and screen brightness compensation value, and present it in tabular form, thus obtaining and storing the brightness compensation mapping table. In this way, when the current unfolded screen size and initial brightness level are obtained, the brightness compensation mapping table can be looked up using the current unfolded screen size and initial brightness level as indexes, and the found screen brightness compensation value can be determined as the candidate brightness compensation value.
[0052] If only one candidate brightness compensation value is obtained after searching the brightness compensation mapping table, that candidate brightness compensation value can be directly determined as the target brightness compensation value. If multiple candidate brightness compensation values are obtained, the final target brightness compensation value can be calculated according to a preset strategy (e.g., taking the average or weighted average).
[0053] For example, when the screen brightness level is DBV, the target brightness compensation value can be determined using the brightness compensation mapping table shown in Table 1.
[0054] Table 1
[0055] The number 2133 in column 2 of Table 1 is derived from the Digital Luminance Threshold (DBV). The maximum value within the range (e.g., 2133-1629); 4095 in column 2 of Table 1 represents the maximum brightness level of the collapsible screen; 60%, 50%, 40%, 30%, 20%, and 10% in row 2 of Table 1 represent six different screen unfolding sizes; 2133, 2717, 3413, and 4095 in column 2 of Table 1 represent four different DBVs. Thus, if the current screen unfolding size S is 30% and the current DBV is 2714, then by consulting Table 1, we know that S=30% falls in column D of Table 1, and the current DBV=2714 falls in row 3 of Table 1. The screen brightness compensation value in row 3 and column D is only 71; therefore, 71 is both a candidate brightness compensation value and a target brightness compensation value.
[0056] Since Table 1 itself is based on experimental and simulation calibration and reflects the actual brightness compensation requirements, and as can be seen from Table 1, under the same DBV, the smaller the screen unfolded size, the larger the brightness compensation value (e.g., when DBV=4095, S=60%→brightness compensation value is 67, S=10%→brightness compensation value is 314); and under the same screen unfolded size, the larger the DBV, the larger the brightness compensation value (e.g., when S=30%, DBV=4095→brightness compensation value is 187, DBV=2133→brightness compensation value is 36); this monotonic relationship ensures that the brightness compensation value changes smoothly between adjacent sampling points. Therefore, when at least two candidate brightness compensation values are found, the target brightness compensation value that matches the current screen unfolded size and initial brightness level can be determined by the interval threshold locking method, step-by-step linear interpolation method, bilinear interpolation method, polynomial fitting method, or distance-weighted average method.
[0057] It should be noted that when the screen brightness level is represented by the brightness component of the Y channel, the target brightness compensation value can be determined by the brightness compensation mapping table shown in Table 2.
[0058] Table 2
[0059] Table 2 itself is derived from experimental and simulation calibration and reflects the actual brightness compensation requirements, so it can naturally be used in the process of determining the target brightness compensation value. Specifically, for each frame of RGB image in the visible screen area, a brightness color space conversion is first performed to obtain the brightness color difference YUV image of each frame of RGB image. Then, the original brightness component value of the Y channel in the brightness color difference YUV image is obtained. The brightness of the original brightness component value is adjusted according to the current unfolded size of the screen to obtain the adjusted Y channel brightness value (Y). At this time, it is also possible to adjust the brightness of the Y channel when the current unfolded size S is less than the first preset ratio S. Furthermore, the adjusted Y-channel brightness value Y is greater than the preset Y-channel brightness threshold Y. (that is, S < S) And Y > Y In the case of [the screen size S], at least one candidate brightness compensation value is determined by looking up the brightness compensation mapping table shown in Table 2, using the current expanded screen size S and the adjusted Y channel brightness value Y as indexes. Then, the target brightness compensation value is determined based on this candidate value. That is, this scheme requires brightness compensation for each frame of the RGB image in the visible screen area, but does not require changing the DBV value. The specific process for determining the target brightness compensation value can be referred to the aforementioned process for determining the target brightness compensation value using Table 1. It will not be repeated here.
[0060] The brightness compensation method provided in this application introduces a pre-built brightness compensation mapping table. After obtaining the current unfolded size and initial brightness level of the screen, complex real-time calculations are no longer required. Instead, these two parameters are used as indexes to quickly search the brightness compensation mapping table. Through this search mechanism, the candidate brightness compensation value that best matches the current state can be quickly obtained, and the final target brightness compensation value can be determined based on this. This ensures that the best brightness compensation effect can be obtained under different unfolded sizes and initial brightness levels of the retractable screen. This not only reduces the computational burden of the system but also makes the brightness compensation process smoother and more accurate, thereby improving the user's visual experience when using a retractable screen display device.
[0061] Based on the above Figure 4 In one example embodiment of the method shown, step 202 determines the target brightness compensation value based on the found candidate brightness compensation values. The determination process in this embodiment can be achieved through… Figure 5 Steps 301 and 302 shown are implemented.
[0062] Step 301: When there are multiple candidate brightness compensation values, determine the brightness compensation offset based on the multiple candidate brightness compensation values.
[0063] Step 302: Perform proportional conversion on the brightness compensation offset, the initial brightness level, and the brightness level range to which the initial brightness level belongs in the brightness compensation mapping table to obtain the target brightness compensation value.
[0064] Specifically, the control unit uses the current unfolded screen size and initial brightness level as indexes to look up the brightness compensation mapping table. If the current unfolded screen size is between two adjacent unfolded screen sizes in the brightness compensation mapping table, and / or the initial brightness level is between two adjacent screen brightness levels in the brightness compensation mapping table, then at least two brightness compensation values can be found, and both of the found brightness compensation values are candidate brightness compensation values.
[0065] Considering that the interpolation method calculates the continuously changing target brightness compensation value by using the brightness compensation value corresponding to the size of adjacent screens and / or the brightness compensation value corresponding to the brightness level of adjacent screens, it can balance compensation accuracy and response speed without significantly increasing computational overhead, making it the preferred implementation method for determining the target brightness compensation value in this embodiment. Therefore, the control unit can determine the target brightness compensation value using the interpolation method when at least two candidate brightness compensation values are found. That is, the control unit can calculate the compensation offset for at least two candidate brightness compensation values to obtain at least one brightness compensation offset; then, it can perform a proportional conversion on the at least one brightness compensation offset, the initial brightness level, and the brightness level range to which the initial brightness level belongs in the brightness compensation mapping table to obtain the target brightness compensation value.
[0066] For example, when the current expanded screen size S = 25% and the current DBV = 3000, by looking up Table 1, we know that the current expanded screen size S belongs to the area between columns D and E, and the current DBV belongs to the area between rows 2 and 3. Therefore, we find four candidate brightness compensation values: 135, 180, 71, and 93. We then calculate the compensation offset for these four candidate brightness compensation values, that is, we interpolate 135 and 180 to obtain a brightness compensation offset r1, where r1 = (135 + 180) / (135 + 180). 0) / 2=157.5; Simultaneously, interpolate 71 and 93 to obtain another brightness compensation offset r2, r2=71+93) / 2=82; Then, perform column-wise proportional conversion on the brightness compensation offset r1 (157.5), brightness compensation offset r2 (82), current DBV (3000), and the brightness level interval (2714 and 3413) to which the current DBV belongs in Table 1 to obtain the target brightness compensation value C, C=157.5-[(3413-3000)] (157.5-82) / (3413-2714)]=112.
[0067] The brightness compensation method provided in this application, by introducing the determination of brightness compensation offset and the fine processing based on proportional conversion, enables the target brightness compensation value to more accurately match the current initial brightness level, thereby achieving a smoother and more accurate brightness compensation effect, significantly improving the visual consistency and user experience of the display device under different screen unfolding sizes and brightness conditions.
[0068] Based on the above Figure 2 In one example embodiment of the method shown, step 102 involves performing brightness compensation on all pixels within the visible screen area based on the target brightness compensation value. The specific process of this step can be described in this embodiment through… Figure 6 Steps 401 to 403 shown are implemented.
[0069] Step 401: Obtain the current motor motion status of the display device.
[0070] Step 402: If the current motor motion state indicates that the retractable screen is in the unfolding process, then determine the target brightness level after brightness compensation based on the difference between the initial brightness level and the target brightness compensation value.
[0071] Step 403: If the current motor motion state indicates that the retractable screen is in the retraction process, then determine the target brightness level after brightness compensation based on the sum of the initial brightness level and the target brightness compensation value.
[0072] The target brightness level is the brightness level of all pixels within the visible screen area after brightness compensation.
[0073] Specifically, the control unit can determine the forward or reverse direction of the motor by reading the driver status register of the drive motor, thereby inferring the current motor motion state of the display device; alternatively, it can use a rotary encoder or Hall sensor mounted on the motor shaft to detect the motor's rotation direction and speed, thus determining the current motor motion state of the display device, including the unfolded or retracted state of the retractable screen. This current motor motion state allows for real-time monitoring of whether the retractable screen is unfolding or retracting.
[0074] At this point, when the control unit determines that the current motor movement indicates the retractable screen is in the unfolding process, meaning the retractable screen is about to unfold, it can be inferred that the retractable screen will brighten. At this time, the initial brightness level can be added to the target brightness compensation value to obtain the target brightness level after brightness compensation. For example, if the current DBV is 3000 and the target brightness compensation value C is 112, the target brightness level after brightness compensation is the DBV value nDBV after brightness compensation, where nDBV = 3000 + 112 = 3112. This 3112 is the DBV value that needs to be set for the visible screen area after brightness compensation, and the DBV value can be changed subsequently in the corresponding register.
[0075] Conversely, when the control unit determines that the current motor movement indicates the retractable screen is in the retraction process, meaning the retractable screen is about to be rolled up, it indicates that the retractable screen will brighten. At this point, the initial brightness level can be subtracted from the target brightness compensation value to obtain the target brightness level after brightness compensation. For example, if the current DBV is 3000 and the target brightness compensation value C is 112, the target brightness level after brightness compensation is the DBV value nDBV, where nDBV = 3000 - 112 = 2888. This 2888 is the DBV value that needs to be set for the visible screen area after brightness compensation, and the DBV value can be changed subsequently in the corresponding register.
[0076] It should be noted that changes in the visible screen area will cause changes in the brightness level. For example, if the initial DBV is set to 2000, the corresponding screen brightness is 500 nits. However, without brightness compensation, the DBV does not change, but the actual screen brightness becomes 550 nits. After brightness compensation, the actual screen brightness will be adjusted back from 550 nits to 500 nits.
[0077] The brightness compensation method provided in this application can dynamically adjust the direction of brightness compensation based on the current motor movement state of the retractable screen, i.e., whether the screen is unfolding or retracting. When the screen is unfolded, the brightness is reduced to avoid excessive brightness due to the increased screen area, effectively preventing overall excessive brightness caused by the increased screen area and ensuring smooth brightness changes that conform to human visual habits. When the screen is retracted, the brightness is increased to avoid excessive brightness due to the reduced screen area, effectively preventing insufficient brightness in the remaining visible area caused by the reduced screen area, thereby maintaining good visual clarity. This adaptive brightness compensation mechanism based on the dynamic state of the screen effectively solves the problem of uneven brightness changes and poor visual experience during screen movement, significantly improving the visual comfort and overall experience of users when using retractable screen display devices.
[0078] Based on the above Figure 6 In one example embodiment of the method, step 402 determines the target brightness level after brightness compensation based on the difference between the initial brightness level and the target brightness compensation value. The specific process in this embodiment can be achieved through… Figure 7 Steps 501 and 502 shown are implemented.
[0079] Step 501: When the position sensor detects that the motor rotates n revolutions, the initial brightness level is reduced by m brightness level units, and the brightness display of the visible screen area is updated according to the updated brightness level.
[0080] Step 502: Repeat step 501 until the total reduction in brightness level is equal to the target brightness compensation value, and obtain the target brightness level after brightness compensation; where n and m are both positive integers greater than 0.
[0081] The position sensor is used to monitor the rotation status of the motor in real time, thereby indirectly reflecting the unfolding or retraction progress of the retractable screen. For example, the position sensor can be a rotary encoder, which provides accurate position information by detecting the rotation angle or number of revolutions of the motor shaft; or it can be a Hall sensor, which determines the motor rotation by detecting changes in the magnetic field; or it can be a magnetic encoder, which can also provide position information by detecting the number of revolutions of the motor shaft.
[0082] Both n and m are positive integers greater than 0, ensuring that motor rotation and brightness level adjustment have actual, operable step sizes, avoiding meaningless cases of zero or negative values. For example, the parameter m can take the value of 1, 2, 5, or other smaller positive integers.
[0083] Specifically, the detection unit adjusts the brightness level once every n rotations of the motor, detected by the position sensor. This mechanism ensures that brightness compensation is synchronized with the physical movement of the screen, rather than being completed all at once. Furthermore, each time the condition of n rotations of the motor is met, the brightness level of the currently visible screen area is decreased by a preset m brightness level units. Here, the brightness level of the currently visible screen area can be the initial brightness level, or the initial brightness level minus C × m brightness level units, where C is the cumulative number of brightness level adjustments. The initial value of C is 1, and it gradually increases with the number of n rotations detected; that is, when one n rotation is detected, C=1, when two n rotations are detected, C=2, and so on, up to m brightness level units. The parameter m is also a preset positive integer, which determines the magnitude of each brightness adjustment.
[0084] After each brightness level adjustment, the display device's control unit immediately applies the new brightness level to all pixels in the visible screen area, thereby changing the screen's actual display brightness. This is typically achieved by adjusting the backlight brightness of the display panel or the grayscale value of the pixels.
[0085] The step-by-step brightness reduction process in step 501 is repeated until the total reduction in brightness levels equals the target brightness compensation value, that is, until the cumulative reduction of C×m brightness level units equals the target brightness compensation value. This ensures that the final brightness compensation effect is consistent with the calculated target brightness compensation value, while also achieving a smooth transition.
[0086] It should be noted that a smooth brightness transition is achieved by breaking down the brightness compensation process into a series of small-amplitude brightness level adjustments synchronized with the motor movement. When the retractable screen is unfolding, the control unit continuously monitors the motor's rotation. Once the position sensor detects that the motor has rotated a preset number of n revolutions, the control unit triggers a brightness level adjustment operation, reducing the current initial brightness level by m brightness level units. Subsequently, the display device immediately adjusts the brightness of the visible screen area based on this updated brightness level. This process is not completed all at once but iteratively. The control unit repeats step 501 while accumulating the sum of each brightness level reduction. When this accumulated sum of brightness level reductions precisely reaches the predetermined target brightness compensation value, the entire brightness compensation process is complete, and the resulting brightness level is the target brightness level after compensation.
[0087] The brightness compensation method provided in this application embodiment uses a progressive brightness adjustment mechanism based on motor rotation steps. During the unfolding process of the retractable screen, brightness compensation is no longer completed instantaneously, but is achieved through a gradual adjustment with small steps synchronized with the motor rotation. This staged and smooth brightness adjustment method not only effectively avoids sudden changes in screen brightness in a short period of time, significantly improving the user's visual comfort during the unfolding or retraction of the screen, but also ensures that the user's perception of screen brightness changes is naturally synchronized with the physical unfolding process, thereby obtaining a smoother and more pleasant display experience. It effectively avoids sudden changes in screen brightness that may occur during the unfolding process, keeping the brightness change synchronized with the physical unfolding process of the screen, thus providing the user with a more natural and comfortable visual experience.
[0088] Based on the above Figure 7 In one example embodiment of the method described above, considering that the method of reducing brightness by m brightness levels per n revolutions of the motor for brightness compensation may lack precision and smoothness due to the unclear value of parameter n, making it difficult to ensure that the compensation effect accurately matches the actual unfolded state of the screen, thus affecting the user's visual experience, this embodiment can address this issue by... Figure 8 Steps 601 and 602 shown determine the parameter n.
[0089] Step 601: Based on the distance the retractable screen will slide and the distance the screen moves with each rotation of the motor, determine the total number of rotations required for the motor to complete this screen brightness compensation.
[0090] Step 602: Determine the total number of adjustments required to complete this brightness compensation based on the target brightness compensation value and parameter m, and determine parameter n based on the total number of rotations and the total number of adjustments.
[0091] Specifically, to establish a quantitative relationship between the physical movement of the screen and the operation of the motor, and to provide a basis for subsequent calculations of brightness compensation parameters, the unfolding or retraction process of the screen can be mapped to the specific number of rotations of the motor. This ensures that the rhythm of brightness compensation is consistent with the actual movement of the screen. Therefore, the control unit of the display device can obtain the distance the screen moves per rotation of the motor through mechanical design parameters or experimental calibration. Combined with the sliding distance of the screen from its current position to the target position, a simple mathematical calculation (e.g., the sliding distance divided by the distance the screen moves per rotation) can be used to determine the total number of rotations required for the motor to complete this screen brightness compensation.
[0092] Subsequently, to ensure smooth and accurate brightness compensation throughout the entire screen unfolding or retracting process, the total brightness compensation requirement (i.e., the target brightness compensation value) can be evenly or reasonably distributed across each stage of screen movement to avoid sudden brightness changes and improve visual comfort. Specifically, the control unit can divide the target brightness compensation value by the total number of rotations; the quotient obtained is the total number of adjustments required to complete this brightness compensation. The quotient obtained by dividing the total number of rotations by the total number of adjustments is then determined as the parameter n. Alternatively, the control unit can pre-store a lookup table, which presets or calculates the optimal parameter n based on different combinations of total rotations, target brightness compensation values, and parameter m, ensuring the smoothness of the brightness compensation process and visual comfort.
[0093] The brightness compensation method provided in this application dynamically determines the step frequency of brightness adjustment based on the actual sliding distance of the retractable screen, the rotation characteristics of the motor, and the total amount of brightness compensation required. This adaptive adjustment mechanism enables the brightness compensation process to be highly synchronized with the physical unfolding or retracting movement of the screen, effectively solving the problem of brightness flickering or untimely compensation caused by the mismatch between brightness compensation and screen movement. It ensures that during the unfolding or retracting process, the gradual adjustment of the brightness level can smoothly and accurately follow the physical position change of the screen, which not only improves the visual comfort of the user during the unfolding or retracting process and avoids abrupt brightness changes, but also improves the accuracy and response speed of brightness compensation, thereby greatly improving the overall user comfort of the display device.
[0094] Based on the above Figure 2 In one example embodiment of the method, step 101 involves obtaining the current unfolded size of the display device's screen. The determination process in this embodiment can be achieved through... Figure 9 Steps 701 and 702 shown are implemented.
[0095] Step 701: Obtain the current number of rotations of the motor inside the display device.
[0096] Step 702: Determine the current unfolded screen size corresponding to the current number of rotations based on the preset mapping relationship between the number of motor rotations and the unfolded screen size.
[0097] Specifically, the control unit obtains the current number of rotations of the motor within the display device. The purpose is to indirectly acquire information about the screen's unfolding by monitoring the motion of the motor that drives the retractable screen. Considering that the number of rotations is a quantitative indicator of the motor's motion and is directly related to the screen's retractable displacement, an encoder (such as a photoelectric encoder or magnetic encoder) can be installed on the motor to detect the current number of rotations and transmit the rotation angle or number of rotations to the control unit. Alternatively, a Hall effect sensor or limit switch can be used to trigger a signal when the motor rotates to a specific position, and the current number of rotations can be indirectly calculated by counting these trigger signals.
[0098] In this way, when the retractable screen of the display device extends or retracts, the motor that drives the screen will rotate, and the control unit can obtain the current number of rotations of the motor by monitoring the magnetic encoder on the motor in real time.
[0099] Since the mechanical connection between the motor and the screen is fixed, there is a definite physical correspondence between the number of motor rotations and the actual unfolded length of the screen. In other words, there is a fixed mechanical transmission relationship between the number of motor rotations and the screen's telescopic displacement. To convert this physical correspondence into a usable unfolded screen size, a preset mapping relationship between the number of motor rotations and the unfolded screen size can be established and stored in advance. This preset mapping relationship can be a mapping table or a mathematical model. Thus, when the control unit obtains the current number of rotations, it can apply the current number of motor rotations to this preset mapping relationship, thereby accurately calculating or querying the current unfolded screen size corresponding to the current number of rotations. This avoids complex optical or image recognition measurements of the unfolded screen state, significantly improving the efficiency and accuracy of obtaining the unfolded screen size, and providing reliable basic data for subsequent brightness compensation.
[0100] For example, if a magnetic encoder is pre-installed on the motor within the display device, the control unit can monitor the number of motor rotations recorded by the magnetic encoder. This allows the control unit to obtain the current number of motor rotations when the retractable screen extends beyond the visible screen area from the receiving structure. That is, if the magnetic encoder records the current number of motor rotations as b, and the distance the motor moves the screen by a mm per rotation, the retractable screen has moved a total distance a from the visible screen area of the receiving structure. bmm; combined with the movement distance of cmm when the retractable screen is fully displayed, we can calculate the current unfolded screen size S corresponding to the current number of rotations b, where S=a b / c.
[0101] The brightness compensation method provided in this application embodiment can indirectly and accurately obtain the current unfolded size of the screen by utilizing the preset mapping relationship between the number of rotations of the motor in the display device and the unfolded size of the screen. This avoids the use of complex direct measurement sensors, reduces system cost and design complexity, and improves the accuracy and reliability of obtaining the unfolded size of the screen. This makes subsequent brightness compensation based on the current unfolded size of the screen more accurate, thereby improving the user's visual experience in different screen unfolded states.
[0102] For example, when the initial brightness level is the current DBV value, it can be referred to Figure 10 The flowchart of the brightness compensation method shown is in... Figure 10 In the middle, when the current unfolded screen size S is less than the first preset ratio S And the current DBV value is greater than the preset DBV threshold. When (i.e., S < S) And DBV > DBV When the screen is unfolded, the target brightness compensation value C is obtained by looking up the brightness compensation mapping table shown in Table 1 based on the current unfolded size S and the previous DBV value. Then, based on the current motor movement state, if the retractable screen is to be rolled up, the target brightness compensation value C is subtracted from the current DBV value to obtain the compensated DBV value nDBV; or, if the retractable screen is to be unfolded based on the current motor movement state, the current DBV value is added to the target brightness compensation value C to obtain the compensated DBV value nDBV. The visible screen area is then updated based on the compensated DBV value nDBV. If the current unfolded size S is greater than or equal to the first preset ratio S... And / or the current DBV value is less than or equal to the preset DBV threshold DBV. When (i.e., S≥S) and / or DBV≤DBV The process ends when [the process ends]. The specific procedures involved can be found in the aforementioned embodiments. They will not be repeated here.
[0103] When the initial luminance level is the luminance component value of the Y channel in the luminance-color difference YUV image, it can be referenced. Figure 11 The flowchart of the brightness compensation method shown is in... Figure 11 In this process, the original luminance component value of the Y channel in the luminance-color difference YUV image of the visible screen area is obtained, and the luminance of the original luminance component value is adjusted according to the current unfolded size of the screen to obtain the adjusted Y channel luminance value (Y). If the current unfolded size S of the screen is less than the first preset ratio S And / or the adjusted Y channel brightness value Y is greater than the preset Y channel brightness threshold Y. When (i.e., S < S) And Y > Y When the screen is unfolded, the target brightness compensation value y can be obtained by looking up the brightness compensation mapping table shown in Table 2 based on the current unfolded size S and the adjusted Y-channel brightness value Y. Alternatively, if the current motor motion state determines that the retractable screen is to be rolled up, the adjusted Y-channel brightness value Y can be subtracted from the target brightness compensation value y to obtain the compensated brightness value nY; or, if the current motor motion state determines that the retractable screen is to be unfolded, the adjusted Y-channel brightness value Y can be added to the target brightness compensation value y to obtain the compensated brightness value nY. Then, the compensated brightness value nY is merged with the original color difference component values of the UV channels in the brightness color difference YUV image of the visible screen area to generate the final YUV image. Finally, the visible screen area is updated based on the final YUV image. If the current unfolded size S of the screen is greater than or equal to the first preset ratio S... And / or the adjusted Y channel brightness value Y is less than or equal to the preset Y channel brightness threshold Y. When (i.e., S≥S) and / or Y≤Y The process ends when ( ).
[0104] It should be noted that although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the steps depicted in the flowchart can be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0105] In one embodiment, this application also provides a display device, which includes a retractable screen, a housing mechanism, and a control unit. The retractable screen is housed within the housing mechanism, which is a cavity structure provided inside the display device for accommodating the retractable screen. The control unit is configured to execute the brightness compensation method described in the foregoing embodiments. The specific compensation process involved can be referred to in the foregoing embodiments, and will not be repeated here.
[0106] On the other hand, this application also provides a computer-readable storage medium, which may be included in the computer device described in the above embodiments, or may exist independently and not assembled into the computer device. The aforementioned computer-readable storage medium stores one or more programs that, when used by one or more processors, execute the methods described in this application. For example, it may execute... Figure 2 The steps of the method shown are as follows.
[0107] It should be noted that the computer-readable storage medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0109] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be located in a processor. The names of these units or modules do not, in certain circumstances, constitute a limitation on the unit or module itself.
[0110] This application provides a computer program product including instructions that, when executed, cause the method described in this application to be performed. For example, it can execute... Figure 2 The steps of the method shown are as follows.
[0111] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0112] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A brightness compensation method, characterized in that, A method applicable to a display device containing a retractable screen, the display device having a receiving mechanism for accommodating the retractable screen; the method includes: The current unfolded size of the screen is obtained, and an initial brightness level is determined based on the current unfolded size of the screen; the current unfolded size of the screen is used to characterize the ratio of the visible screen area extending from the inside of the housing mechanism to the full area of the retractable screen; If the current unfolded size of the screen is less than a first preset ratio and the initial brightness level exceeds a preset brightness level, then a target brightness compensation value that matches the current unfolded size of the screen and the initial brightness level is determined, and brightness compensation is performed on all pixels in the visible screen area according to the target brightness compensation value.
2. The method according to claim 1, characterized in that, The process of determining the initial brightness level based on the current unfolded size of the screen includes: Determine the difference between the second preset ratio and the current unfolded size of the screen. Multiply the difference by a first preset constant to obtain an exponent value. Then, perform an exponentiation operation with the preset constant as the base and the exponent value as the exponent. Multiply the result by the second preset constant to obtain the initial brightness level. The second preset ratio is greater than the first preset ratio; or... Obtain the original luminance component value of the Y channel in the luminance-color difference YUV image of the visible screen area, adjust the brightness of the original luminance component value according to the current unfolded size of the screen, and determine the adjusted Y channel luminance value as the initial luminance level.
3. The method according to claim 1, characterized in that, Determining a target brightness compensation value that matches the current unfolded size of the screen and the initial brightness level includes: The candidate brightness compensation value corresponding to the current unfolded size of the screen and the initial brightness level is found in a pre-built brightness compensation mapping table; the brightness compensation mapping table stores the preset brightness compensation values for different combinations of screen unfolded size and screen brightness level. The target brightness compensation value is determined based on the found candidate brightness compensation values.
4. The method according to claim 3, characterized in that, Determining the target brightness compensation value based on the found candidate brightness compensation values includes: When there are multiple candidate brightness compensation values, a brightness compensation offset is determined based on the multiple candidate brightness compensation values; The target brightness compensation value is obtained by proportionally converting the brightness compensation offset, the initial brightness level, and the brightness level range to which the initial brightness level belongs in the brightness compensation mapping table.
5. The method according to claim 1, characterized in that, The step of performing brightness compensation on all pixels within the visible screen area based on the target brightness compensation value includes: Obtain the current motor motion state of the display device; If the current motor motion state indicates that the retractable screen is in the unfolding process, then the target brightness level after brightness compensation is determined based on the difference between the initial brightness level and the target brightness compensation value; If the current motor motion state indicates that the retractable screen is in the retraction process, then the target brightness level after brightness compensation is determined according to the sum of the initial brightness level and the target brightness compensation value; The target brightness level is the brightness level of all pixels within the visible screen area after brightness compensation.
6. The method according to claim 5, characterized in that, Determining the target brightness level after brightness compensation based on the difference between the initial brightness level and the target brightness compensation value includes: When the position sensor detects that the motor rotates n revolutions, the initial brightness level is reduced by m brightness level units, and the brightness display of the visible screen area is updated according to the updated brightness level. Repeat the above steps until the total reduction in brightness level equals the target brightness compensation value, to obtain the target brightness level after brightness compensation; where n and m are both positive integers greater than 0.
7. The method according to claim 6, characterized in that, The method further includes: Based on the distance the retractable screen will slide and the distance the screen moves with each rotation of the motor, determine the total number of rotations required for the motor to complete this screen brightness compensation. The total number of adjustments required to complete this brightness compensation is determined based on the target brightness compensation value and parameter m, and parameter n is determined based on the total number of rotations and the total number of adjustments.
8. The method according to claim 1, characterized in that, The step of obtaining the current unfolded size of the display device screen includes: Obtain the current number of rotations of the motor inside the display device; Based on a preset mapping relationship between the number of motor rotations and the unfolded screen size, the current unfolded screen size corresponding to the current number of rotations is determined.
9. A display device, characterized in that, The device includes a retractable screen, a housing mechanism, and a control unit. The retractable screen is housed within the housing mechanism, which is a cavity structure provided inside the display device for accommodating the retractable screen. The control unit is configured to perform the brightness compensation method according to any one of claims 1 to 8.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the brightness compensation method according to any one of claims 1 to 8.