Screen burning prevention method and device, electronic equipment and storage medium

By monitoring and recording the display duration of layers on the OLED screen in electronic devices and performing anti-burn-up operations based on the cumulative number of times, the screen burn problem caused by the OLED screen display due to long-term display of static images or icons is solved, and the effect of extending the screen service life and reducing losses is achieved.

CN119987522APending Publication Date: 2025-05-13PRANUS BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411840584.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Due to the material characteristics of OLED screens, long-term display of static images or static icons will lead to screen burning, affecting the service life of the screen. The existing technology has not found an effective solution.

Method used

The display duration of each first layer in the layer list is determined in the electronic device, and the screen-burning operation is performed when there is a second layer whose display duration is greater than or equal to the preset duration. This operation includes recording the cumulative number of times, determining the target pixel movement parameters based on the cumulative number of times, and rendering the layer to reduce the risk of burning the screen.

Benefits of technology

It effectively reduces screen loss, extends the service life of the screen, prevents the occurrence of screen burning, and thus improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987522A_ABST
    Figure CN119987522A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a burn-in prevention method and device, electronic equipment and a storage medium, and relates to the technical field of screen display. The method comprises the steps that according to a preset display refreshing interval, the display duration of each first graph layer in a graph layer list is determined, and the first graph layer is a graph layer which is being displayed and corresponds to an application program operated by the electronic equipment; and when at least one second image layer with the display duration greater than or equal to a first preset duration exists in the first image layers, executing an anti-burn-in operation on the electronic equipment. The embodiment of the invention can reduce the screen loss and prolong the service life of the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of screen display technology. Specifically, the present application relates to an anti-burn-in method, device, electronic device and computer-readable storage medium. Background Art

[0002] Currently, many electronic devices use organic light-emitting diode (OLED) displays as display devices. OLED uses pixel self-luminous technology. Compared with traditional liquid crystal displays (LCD), it has the advantages of being thinner, lighter, faster in response time, and higher in contrast. OLED screens are composed of organic material layers and emit light through electric current, so they can also display brighter colors.

[0003] Although OLED has many advantages, the OLED screen uses an organic polymer material that requires current to be passed through it to stimulate light emission. Due to the material characteristics of the OLED screen, the OLED screen will inevitably decay over time and age. When some pixels can no longer display the correct color, a sudden "scar" like a burn will appear, which is commonly known as screen burn-in. Screen burn-in is the aging phenomenon of some luminous particles being stimulated by current for a long time, which will affect the service life of the screen. There is still no better solution to the screen burn-in problem. Summary of the invention

[0004] The embodiments of the present application provide an anti-burn-in method, device, electronic device, computer-readable storage medium and computer program product for reducing screen loss and increasing screen service life.

[0005] According to a first aspect of an embodiment of the present application, a method for preventing screen burn-in is provided. The method is applied to an electronic device, comprising: Determining, according to a preset display refresh interval, a display duration of each first layer in the layer list, where the first layer is a layer currently being displayed corresponding to an application program running on the electronic device; When there is at least one second layer whose display duration is greater than or equal to the first preset duration in each of the first layers, an anti-burn-in operation is performed on the electronic device.

[0006] As an optional embodiment, the layer list records the layer identifier of each first layer and the corresponding creation time; The step of determining the display duration of each first layer in the layer list includes: For each of the first layers, the creation time of the first layer is determined according to the layer identifier of the first layer and the corresponding creation time, and the creation time is used as the display time of the first layer.

[0007] As an optional embodiment, the method further includes: For each second layer, record the cumulative number of times the second layer is displayed within the target time period, where the cumulative number is the number of times the display duration of the second layer is continuously greater than or equal to the first preset duration when the terminal display refresh is performed within the target time period; When there is at least one second layer whose display time is greater than or equal to the first preset time in each of the first layers, performing an anti-burn-in operation on the terminal includes: Determine the accumulated times corresponding to each of the second layers; Determine a target cumulative number of times based on the cumulative number of times respectively corresponding to each of the second layers; According to the target cumulative number, determining a target pixel movement parameter corresponding to the target cumulative number, the target pixel movement parameter including a target pixel offset and a target offset direction; Rendering each of the first layers is performed according to the target pixel offset and the target offset direction.

[0008] As an optional embodiment, determining the target pixel movement parameter corresponding to the target cumulative number of times according to the target cumulative number of times includes: Acquire a first mapping relationship, wherein the first mapping relationship includes a plurality of first cumulative times and a pixel movement parameter corresponding to each first cumulative time; According to the first mapping relationship, a target pixel movement parameter corresponding to the target cumulative number of times is determined.

[0009] As an optional embodiment, rendering each of the first layers according to the pixel offset and the offset direction includes: The first layers and the third layers are rendered according to the pixel offset and the offset direction, and the third layers are layers that are not displayed corresponding to the application program.

[0010] As an optional embodiment, it is characterized in that after rendering each of the first layers according to the pixel offset and the offset direction, it further includes: Determining a display duration of each target layer, wherein the target layer includes at least one of each first layer and each third layer; For each of the target layers, if the display duration of the target layer is greater than or equal to a second preset duration, the display brightness of each of the target layers is reduced, and the second preset duration is greater than the first preset duration.

[0011] As an optional embodiment, when there is at least one second layer whose display duration is greater than or equal to the first preset duration in each of the first layers, performing an anti-burn-in operation on the electronic device includes: Determining a target type of the application, the target type being a first type or a second type; If the application is of the first type, the anti-burn-in operation includes: determining a target movement parameter, and rendering each of the first layers according to the target movement parameter, wherein the target movement parameter includes a target pixel offset and a target offset direction; If the application is of the second type, the anti-burn-in operation includes: reducing the display brightness of each of the first layers.

[0012] According to a second aspect of an embodiment of the present application, there is provided an anti-screen burn-in device, which is applied to an electronic device, including: A determination module, which determines the display duration of each first layer in the layer list according to a preset display refresh interval, wherein the first layer is a layer being displayed corresponding to an application program running on the electronic device; The execution module performs an anti-burn-in operation on the electronic device when there is at least one second layer whose display time is greater than or equal to the first preset time in each of the first layers.

[0013] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.

[0014] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0015] According to the fifth aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device executes the steps of implementing the method provided in the first aspect.

[0016] The beneficial effects of the technical solution provided by the embodiment of the present application are: The anti-burn-in method provided in the embodiment of the present application can determine the layer corresponding to the application displayed for a long time on the screen of the electronic device by determining the display time of each first layer in the layer list and pre-setting the first preset time. Therefore, when there is an application displayed on the display screen for a long time, the anti-burn-in operation is performed on the electronic device, which can reduce screen loss and extend the service life of the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0018] Figure 1 A flowchart of an anti-screen burn-in method provided in an embodiment of the present application; Figure 2 A flowchart of an anti-screen burn-in method provided in an embodiment of the present application; Figure 3 A rendering schematic diagram provided for an embodiment of the present application; Figure 4 A rendering schematic diagram of an anti-burn-in operation provided in an embodiment of the present application; Figure 5a A schematic diagram of a screen display interface provided in an embodiment of the present application; Figure 5b A schematic diagram of another screen display interface provided in an embodiment of the present application; Figure 6 Schematic diagram of an anti-screen burn-in device provided in an embodiment of the present application Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0020] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0021] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0022] First, several terms involved in this application are introduced and explained: Organic Light-Emitting Diode (OLED), also known as organic electric laser display and organic light-emitting semiconductor. OLED is a current-type organic light-emitting device, which emits light through the injection and recombination of carriers. The luminous intensity is proportional to the injected current. Under the action of the electric field, the holes generated by the anode and the electrons generated by the cathode will move, inject into the hole transport layer and the electron transport layer respectively, and migrate to the light-emitting layer. When the two meet in the light-emitting layer, energy excitons are generated, which excite the light-emitting molecules and finally produce visible light. OLED may experience screen burn-in when displaying static images for a long time, that is, some pixels age due to long-term light emission, resulting in image retention.

[0023] Graphics compositor (Surface Flinger, SF), Surface Flinger in the Android system is a graphics compositor that is responsible for managing the display content of all windows. It receives rendering content from applications and synthesizes it into the final screen display.

[0024] Layer: After starting an activity, SF creates the corresponding layer of the activity, and the terminal renders the layer according to the image refresh rate. When the final image is displayed, all layers are synthesized into a final image in a specific order and mixing method.

[0025] The terminal display process generally includes: starting an activity of an application, creating a window for this activity, and registering the window in the Window Manager Service (WMS); the Window Manager Service requests the Surface Flinger to create a surface for this window, and the Surface Flinger creates a layer; rendering on the layer; the Surface Flinger displays the rendered layer on the screen. The screen display is displayed according to the preset screen refresh interval, and the corresponding screen refresh interval is required to render the layer. If the display content on the interface corresponds to multiple layers, the Surface Flinger will synthesize the rendered layers and display them on the interface.

[0026] The anti-burn-in method, device, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present application are intended to solve or improve at least one of the above technical problems existing in the prior art. The method provided in the embodiments of the present application can effectively reduce the screen loss of the electronic device, increase the screen life, improve the user experience, and better meet the actual application needs.

[0027] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0028] The solution provided in the embodiment of the present application is theoretically applicable to any similar electronic device with display function, which may include but is not limited to devices using OLED screen as display screen. For example, the electronic device may be a terminal, and the terminal (also referred to as user terminal or user device) may be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a wearable electronic device (such as a smart watch), a vehicle-mounted terminal, a smart home appliance (such as a smart TV), an AR / VR device, etc., but is not limited thereto.

[0029] In the following descriptions of some embodiments, the electronic device may be described as a terminal.

[0030] Figure 1 A schematic diagram of a system architecture applicable to the anti-burn-in method provided in the embodiment of the present application. It can be understood that the anti-burn-in method provided in the embodiment of the present application can be applicable to but not limited to the following Figure 1 In the application scenario shown.

[0031] like Figure 1 As shown, the system in the embodiment of the present application includes a terminal, and the type of operating system used by the terminal is not limited. Optionally, the operating system of the terminal can be an Android system. The terminal refreshes the display content on the screen according to a preset display refresh interval. Before refreshing the screen, the terminal can determine whether the execution condition of the anti-burn-in operation is met according to the display duration of each first layer in the layer list. When the execution condition is met, the probability of burn-in is reduced by performing the anti-burn-in operation on the terminal, thereby reducing screen loss and increasing the screen service life.

[0032] Figure 2 A schematic diagram of a process for preventing screen burn-in provided in an embodiment of the present application is shown. Figure 2 As shown, the method is applied to an electronic device, and the method includes steps S201 and S202.

[0033] S201. Determine the display duration of each first layer in the layer list according to a preset display refresh interval, where the first layer is a layer corresponding to an application being displayed by the electronic device.

[0034] S202: When there is at least one second layer whose display duration is greater than or equal to the first preset duration in each first layer, perform an anti-burn-in operation on the electronic device.

[0035] Among them, the electronic device can be a terminal, and the display refresh interval is the display refresh interval of the terminal screen. The refresh interval is a fixed value, which can be a preset empirical value or a test value. Optionally, the refresh interval can also be the inverse of the terminal screen refresh rate. Parameters related to the display refresh interval are pre-configured in the terminal, and the terminal refreshes the screen display content at a certain interval based on the parameters.

[0036] The layer is a layer created by the terminal for the activity after the terminal receives the start activity. After rendering on the layer, the image corresponding to the activity is displayed on the terminal screen. The application in the terminal corresponds to at least one activity. The first layer in the embodiment of the present application includes a layer created by the terminal for the activity of the application being displayed.

[0037] In an embodiment of the present application, a layer list (layer-list) records the layer identifiers of all first layers in the terminal. The layer list can be stored in a cache of the terminal. The terminal can read the layer list from the cache according to a preset display refresh interval, and obtain each first layer according to the layer list. For each first layer, the display duration of the first layer can be obtained according to the creation time of the layer.

[0038] As an optional embodiment of the present application, the layer list records the layer identifier of each first layer and the corresponding creation time; Determines the display duration of each first layer in the layer list, including: For each first layer, the creation time of the first layer is determined according to the layer identifier of the first layer and the corresponding creation time, and the creation time is used as the display time of the first layer.

[0039] In the embodiment of the present application, the display duration of the first layer is used to indicate the continuous display time of the layer on the screen. The layer is created when the application is running in the foreground, so each first layer of the application can be used to reflect the shortest continuous display duration of the application on the screen. When there is at least one second layer with a display duration greater than or equal to the first preset duration in each first layer of the application, an anti-burn-in operation is performed.

[0040] It should be noted that the applicant has found that if the OLED screen displays static icons in dynamic images for a long time, there will be a risk of screen burn-in. Therefore, the embodiment of the present application can not only monitor whether the screen displays static images for a long time, but also monitor whether the screen displays static icons for a long time by determining the display time of the first layer.

[0041] In the embodiment of the present application, by setting a layer list, it is possible to more accurately determine the display time of the layer corresponding to the application on the screen.

[0042] After determining the display duration corresponding to each first layer, the second layer in each first layer can be determined according to the display duration, wherein the second layer is the first layer whose display duration is greater than or equal to the first preset duration, and the terminal periodically reads the layer list according to the preset display refresh interval, and when there is at least one second layer in the first layer, an anti-burn-in operation is performed on the terminal.

[0043] The screen on the terminal can be an OLED screen, or it can be a display screen made of other materials that will age when stimulated by electric current, or will burn in when static graphics or static icons are displayed for a long time. When it is determined that there is a second layer, an anti-burn-in operation for the OLED screen can be performed on the terminal.

[0044] The embodiment of the present application determines the display time of each first layer in the layer list and sets the first preset time to determine the application displayed on the screen for a long time, so as to promptly perform anti-burn-in operation on the terminal when there is an application displayed on the screen for a long time, thereby solving the burn-in problem caused by the screen displaying static images or static icons for a long time and extending the life of the screen.

[0045] In the embodiment of the present application, when the terminal displays one or several applications on the screen, a corresponding layer is created for each application, and the terminal records the layer identifier and the creation time of the layer in the layer list. When the application is closed by the user or switched to the background, the application is no longer displayed on the screen, and the terminal deletes the record of the layer corresponding to the application in the layer list. It should be noted that after the application is reopened or switched to the foreground, the terminal recreates the layer for the application, and the terminal again records the layer identifier and creation time of the layer in the layer list.

[0046] The layer identifier and the corresponding creation time in the layer list include the layer identifier and the corresponding creation time of the first layer. For each first layer, the creation time of the first layer can be obtained based on the difference between the current time and the creation time of the first layer in the layer list, and the creation time is used as the display time of the first layer.

[0047] It should be understood that when the screen displays an image, due to the refresh process in the display process, the display time of the image is less than the creation time of the corresponding layer. The embodiment of the present application uses the creation time of the first layer as the display time of the first layer. It can determine whether there is an application displayed for a long time on the screen based on the creation time of the first layer, which is conducive to timely execution of anti-burn-in operations.

[0048] As an optional embodiment of the present application, the anti-screen burn-in method of the embodiment of the present application further includes: For each of the second layers, record the cumulative number of times the second layer is displayed within the target time period, where the cumulative number is the number of times the display duration of the second layer is continuously greater than or equal to the first preset duration when the terminal display is refreshed within the target time period; When there is at least one second layer whose display duration is greater than or equal to the first preset duration in each of the first layers, performing an anti-burn-in operation on the terminal includes: Determine the cumulative number of times corresponding to each second layer; Determine the target cumulative number of times based on the cumulative number of times corresponding to each second layer; According to the target cumulative number, determining the target pixel movement parameter corresponding to the target cumulative number, the target pixel movement parameter including the target pixel offset and the target offset direction; Render each first layer according to the target pixel offset and the target offset direction.

[0049] In the embodiment of the present application, the target time period may be from the time when the terminal is turned on to the current time, or from the time when the application corresponding to the second layer is started to the current time. The cumulative number of the second layer is the number of times that the display time of the second layer is continuously greater than or equal to the first preset time when the terminal performs terminal display refresh within the target time period.

[0050] For example, the terminal power-on time is 8:00:00, the display refresh interval is 1 second, the creation time of layer A is 9:00:00, the current time is 9:10:10, the first preset duration is 10 minutes, and layer A has been displayed on the screen since its creation to the current time. Then, layer A is greater than or equal to the first preset threshold for the first time at 9:10:00, and the cumulative number of times at the current time is 11.

[0051] In the embodiment of the present application, the cumulative number of the second layer is different, and the anti-burn-in operation performed on the terminal may be different. It should be understood that the application running on the terminal may be displaying more than one layer, and some terminals can support split-screen operations of different applications. Therefore, there may be more than one first layer and more than one second layer on the screen at the current moment. Since different applications may be displayed on the screen at different times, the cumulative number of each second layer may be different. Therefore, it is necessary to determine the cumulative number corresponding to each second layer, and perform the corresponding anti-burn-in operation according to the cumulative number corresponding to each second layer.

[0052] Optionally, after determining the cumulative number corresponding to each second layer, a cumulative number is selected from each cumulative number as the target cumulative number. The selection method may be to use the cumulative number with the largest value as the target cumulative number, or to randomly select a cumulative number from each cumulative number as the target cumulative number, or to use the average cumulative number of each second layer as the target cumulative number.

[0053] After determining the target cumulative number of times, the target pixel movement parameters of the target cumulative number of times are determined, wherein the pixel movement parameters include a pixel offset and an offset direction, the offset direction may be a horizontal direction and a vertical direction on a two-dimensional plane, and the pixel offset may be a pixel offset in the horizontal direction and a pixel offset in the vertical direction.

[0054] The positive direction of the offset direction can be specified, for example, the right side of the horizontal direction is specified as the positive direction of the horizontal direction, and the upper side of the vertical direction is specified as the positive direction of the vertical direction. The pixel movement parameters can be expressed by two-dimensional coordinates. For example, "1" in (1,-1) indicates that the offset direction is the right side, and "-1" indicates that the offset direction is the bottom side. The corresponding pixel offset to the right side is 1 pixel, and the corresponding pixel offset to the bottom side is 1 pixel. That is, the pixel movement parameters are described by establishing a two-dimensional coordinate system.

[0055] The pixel offset of the target pixel movement parameter is used as the target pixel offset, the offset direction of the target pixel movement parameter is used as the target offset direction, and each first layer is rendered according to the target pixel offset and the target offset direction.

[0056] It should be noted that if there is a second layer at the current moment, not only is the second layer rendered according to the target pixel offset and target offset direction, but the first layer to be displayed on the current screen is also rendered with the same target pixel offset and target offset direction, to prevent the second layer from being rendered with an offset while other layers remain rendered as they were, which would cause a fragmented image on the screen.

[0057] Usually, when rendering a layer, the coordinates of each pixel on the layer are obtained by acquiring the two-dimensional coordinate system of the screen, and the layer is rendered accordingly according to the coordinates of each pixel on the layer. When rendering a layer according to the target pixel offset and the target offset direction, the coordinates of each pixel are rendered accordingly. Figure 3 As shown, Figure 3 A rendering schematic diagram is provided for an embodiment of the present application, wherein the target pixel movement parameter is (1,1), and the rendering of the layer pixel (0,0) is moved to the layer pixel (1,1).

[0058] In the embodiment of the present application, each first layer is rendered according to the target pixel offset and the target offset direction, so that the display content corresponding to each pixel of the screen at the current moment is different from the display content corresponding to normal rendering, which effectively prevents the screen from being burned in. The target pixel offset and the target offset direction are determined according to the target cumulative number, so that different target cumulative numbers correspond to different rendering methods, and the display content corresponding to each pixel of the screen is also different, which is more conducive to preventing the screen from being burned in.

[0059] As an optional embodiment, when the screen is in a split-screen state of multiple applications, the target cumulative times of the second layers corresponding to different applications can be determined respectively, so that the first layers corresponding to different applications are rendered according to different target pixel movement parameters. For example, if the cumulative times of the second layer a of application 1 is 2, the cumulative times of the second layer b is 3, and the cumulative times of the second layer c of application 2 is 4, the target cumulative times corresponding to application 1 can be 3, and the target cumulative times corresponding to application 2 can be 4, and then the first layers of application 1 are rendered according to the target cumulative times of 3, and the first layers of application 2 are rendered according to the target cumulative times of 4. It should be noted that since the pixel offset can be set very small so that the screen interface will not affect the user's use, if the pixel offset is large, the first layers corresponding to each application can be rendered according to the same target cumulative times to prevent the screen from being too split and affecting the user's use.

[0060] As an optional embodiment of the present application, determining the target pixel movement parameter corresponding to the target cumulative number of times according to the target cumulative number of times includes: Acquire a first mapping relationship, wherein the first mapping relationship includes a plurality of first cumulative times and a pixel movement parameter corresponding to each first cumulative time; According to the first mapping relationship, a target pixel movement parameter corresponding to the target cumulative number of times is determined.

[0061] In the embodiment of the present application, the target pixel movement parameter corresponding to the target cumulative number of times may be determined according to a pre-established first mapping relationship.

[0062] The first mapping relationship records a plurality of first accumulated times and a pixel shift parameter corresponding to each first accumulated time. The pixel shift parameter may include a first pixel shift amount in a first shift direction and a second pixel shift amount in a second shift direction.

[0063] The plurality of first accumulated times include at least one first time in a first interval and at least one second time in a second interval, wherein a starting value of the second interval is a maximum value of the first interval plus 1.

[0064] Among them, one of the first pixel offset and the second pixel offset corresponding to each first cumulative number in each interval is the same, and the other pixel offset increases or decreases by a preset pixel value correspondingly with an increase in the first cumulative number.

[0065] For example, the first offset direction is rightward, the second offset direction is upward, the first interval includes the first cumulative number of times from the 1st to the 10th time, and the second interval includes the first cumulative number of times from the 11th to the 20th time. The first cumulative number may be the maximum cumulative number in each second layer.

[0066] The first pixel offset corresponding to each first cumulative number of times in the first interval is the same as the first cumulative number, that is, the first pixel offset corresponding to the first cumulative number is 1, the first pixel offset corresponding to the second cumulative number is 2, until the first pixel offset corresponding to the tenth cumulative number is 10, and the second pixel offset corresponding to the second offset direction is 0; The first pixel offset corresponding to each first cumulative number in the second interval is 10, and the second pixel offset corresponding to the second offset direction is the value corresponding to the second cumulative number minus 10, that is, the first pixel offset corresponding to the 11th cumulative number is 1, the first pixel offset corresponding to the 12th cumulative number is 2, and so on until the first pixel offset corresponding to the 20th cumulative number is 10.

[0067] When the target cumulative number continues to increase, a third interval may also be set. The first cumulative number included in the third interval may be from the 21st to the 40th time. The first pixel offset corresponding to the first offset direction corresponding to each first cumulative number in the third interval is 30 minus the value corresponding to the first cumulative number, that is, the first pixel offset corresponding to the 21st cumulative number is 9, the first pixel offset corresponding to the 12th cumulative number is 8, the first pixel offset corresponding to the 30th cumulative number is 0, the first pixel offset corresponding to the 31st cumulative number is -1, the first pixel offset corresponding to the 32nd cumulative number is -2, until the first pixel offset corresponding to the 40th cumulative number is -10, and the second pixel offset corresponding to the second offset direction is 10.

[0068] The following describes the above process from the perspective of the displayed content on the screen after rendering. Figure 4 As shown, Figure 4A rendering schematic diagram of an anti-burn-in operation provided in an embodiment of the present application. It includes rendering schematic diagrams of the first interval and the fifth interval. The solid-line frame indicates the relative position of the rendering layer corresponding to the anti-burn-in operation relative to the screen, and the dotted-line frame indicates the original position of the layer relative to the screen. It can be seen from the figure that the moving characteristics of the rendering process in the above example are that the target cumulative number of times in each interval moves along a certain direction to a preset boundary value. In the above example, the boundary value is 10, and the number of times the first interval and the second interval move in a certain direction is 10, and the number of times other intervals move in a certain direction is 20. It should be noted that after reaching the maximum number of times in the fifth interval, the sixth interval is entered. The sixth interval is based on the maximum number of renderings in the fifth interval, and moves up 20 to reach the same maximum number of renderings as the second interval. After that, the loop can be entered, that is, the rendering process of the original third interval is entered.

[0069] Therefore, for the embodiment of the present application, a first threshold may be preset, and for each second layer, after the cumulative number of times corresponding to the second layer reaches the first threshold and the anti-burn-in operation is performed, the cumulative number of times corresponding to the second layer is set to 0. Figure 4 In the example in , the first threshold may be 100.

[0070] From the above description, it can be seen that the embodiment of the present application records the pixel movement parameters corresponding to the first cumulative number of times through the first mapping relationship. According to the pixel movement parameters corresponding to the first cumulative number of times, when rendering the layer, the rendering process has regularity, so that the content displayed on the screen moves regularly, thereby not affecting the user's use and perception of the terminal. It should be noted that in the embodiment of the present application, only a smaller amount of pixels is moved each time relative to the previous rendering, and the movement process has regularity, which can present a counterclockwise or clockwise square movement as a whole, thereby not affecting the normal use of the user in terms of the anti-burn-in effect.

[0071] As an optional embodiment of the present application, rendering each of the first layers according to the pixel offset and the offset direction includes: Each first layer and each third layer are rendered according to the pixel offset and the offset direction, and the third layer is a layer that is not corresponding to the application program and is being displayed.

[0072] In an embodiment of the present application, the third layer may be a layer corresponding to a status bar or a navigation bar on the terminal. The status bar is the area on the terminal screen that displays icons such as battery level, network speed, and network signal. The navigation bar is the area on the screen that displays a return key, a home key, and a menu key.

[0073] like Figure 5a As shown, Figure 5a A schematic diagram of a screen display interface provided in an embodiment of the present application, in Figure 5aIn the figure, the display interface on the screen includes a status bar, a navigation bar, and a UI interface of an application. In the figure, there is only one UI interface of an application. At this time, the terminal corresponds to one first layer and two third layers.

[0074] like Figure 5b As shown, Figure 5b Another screen display interface diagram provided in the embodiment of the present application is shown in FIG. Figure 5b In the embodiment, the display interface on the screen includes a status bar, a navigation bar, and a UI interface of application 1 and a UI interface of application 2. At this time, the terminal corresponds to two first layers and two third layers.

[0075] It should be noted that some applications are displayed in full screen, that is, the status bar and navigation bar are no longer displayed on the screen, and the display interface of the screen of different terminals is different, and the position of the status bar and navigation bar may also be different. Figure 5a and Figure 5b Just an example illustration.

[0076] When at least one application is displayed in the terminal for a long time and there is at least one second layer, each first layer is rendered according to the pixel offset and the offset direction, and each third layer is also rendered according to the pixel offset and the offset direction, so that the content displayed on the screen can move relative to the screen as a whole, thereby effectively protecting the entire screen.

[0077] As an optional embodiment of the present application, after rendering each of the first layers according to the pixel offset and the offset direction, the method further includes: Determining a display duration of each target layer, the target layer comprising at least one of each first layer and each third layer; For each of the target layers, if the display duration of the target layer is greater than or equal to a second preset duration, the display brightness of each target layer is reduced, and the second preset duration is greater than the first preset duration.

[0078] In an embodiment of the present application, the creation time of the third layer is also recorded in the layer list. The target layer is the first layer or the third layer, and the second preset duration is greater than the first preset duration. If the target layer includes the first layer, when the display duration of the target layer is greater than or equal to the second preset duration, the anti-burn-in operation of the terminal also includes reducing the display brightness of each first layer. It should be understood that when the target layer only includes the first layer, when the applications displayed on the screen are constantly switched and the third layer is always displayed, considering that the user is constantly switching applications, there may be a demand for the display content corresponding to the third layer, so the brightness of the third layer will not be reduced.

[0079] If the target layer includes a third layer, when the display duration of the target layer is greater than or equal to the second preset duration, the anti-burn-in operation on the terminal includes reducing the display brightness of each third layer. In this solution, the screen of the navigation bar and the status bar is further protected, and the display brightness of the third layer is reduced as long as the display duration of the third layer exceeds the second preset time.

[0080] If the target layer includes the first layer and the third layer, when the display duration of the target layer is greater than or equal to the second preset duration, the display brightness of each first layer and each third layer is reduced. In this solution, when the display duration of one of the first layer or the third layer exceeds the second preset duration, the display brightness of all the first layers and the third layers is reduced.

[0081] It should be noted that when the display time of the target layer is greater than or equal to the second preset time for the first time, the display brightness of each target layer can be reduced according to the preset brightness reduction value; or, when the display time of the target layer is greater than or equal to the second preset time each time, the brightness can be reduced successively according to the preset brightness reduction value.

[0082] As an optional embodiment, a method for reducing the display brightness of a layer is that the terminal may modify the RGB value of the corresponding layer after rendering through SF. Specifically, a corresponding color transformation matrix may be set for the layer, and the reduced values ​​corresponding to R, G and B may be set in the color transformation matrix.

[0083] As an optional embodiment, a third preset duration may be set, the third preset duration being greater than the second preset duration, and when the display duration of the first layer or the third layer is greater than or equal to the third preset duration, the third layer is hidden. The third layer may be hidden by not rendering the third layer or not displaying the rendered third layer on the screen.

[0084] In the embodiment of the present application, by setting a second preset time that is greater than the first preset time, when the display time of the target layer is greater than or equal to the second preset time, the brightness of the corresponding layer is reduced, so that the content displayed on the screen produces a corresponding brightness change, which can reduce RGB excitation energy, extend the life of the light-emitting element, and effectively avoid the occurrence of display screen burn-in.

[0085] As an optional embodiment of the present application, when there is at least one second layer whose display duration is greater than or equal to the first preset duration in each of the first layers, performing an anti-burn-in operation on the electronic device includes: Determining a target type of the application, the target type being a first type or a second type; If the application is of the first type, the anti-burn-in operation includes: determining a target movement parameter, and rendering each of the first layers according to the target movement parameter, wherein the target movement parameter includes a target pixel offset and a target offset direction; If the application is of the second type, the anti-burn-in operation includes: reducing the display brightness of each of the first layers.

[0086] In the embodiment of the present application, different anti-burn-in operations on the terminal can be set for different types of applications.

[0087] The first type of application may be a social application for information interaction. When using such an application, users pay more attention to the messages on the screen, and the movement of the displayed content on the screen has little impact on the user. Therefore, for the second layer of the first type, the corresponding anti-burn-in operation may be the target pixel offset and the target offset direction to render each first layer.

[0088] The second type of application may be a gaming application for entertainment. Generally, users need to accurately click on the icon on the application to play the game, so the movement of the displayed content on the screen may affect the user's gaming experience. Therefore, for the second layer of the second type, the corresponding anti-burn-in operation may be to reduce the display brightness of each first layer.

[0089] In the embodiment of the present application, the layers are divided into at least two categories according to the type of application, and the corresponding anti-burn-in operation on the terminal is determined according to the type of application, so that the user's use is not affected during the anti-burn-in operation, thereby improving the user experience.

[0090] The present application provides an anti-screen burn-in device, which is applied to electronic devices such as Figure 6 As shown, the anti-screen burn-in device may include a determination module 601 and an execution module 602, wherein: The determination module 601 is used to determine the display duration of each first layer in the layer list according to a preset display refresh interval, where the first layer is a layer currently being displayed corresponding to an application program running on the electronic device; The execution module 602 is used to perform an anti-burn-in operation on the electronic device when there is at least one second layer whose display time is greater than or equal to the first preset time in each first layer.

[0091] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0092] An electronic device is provided in an embodiment of the present application, including a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the anti-burn-in method. Compared with the related art, it can achieve: the anti-burn-in method provided in the embodiment of the present application can determine the layer corresponding to the application displayed for a long time on the screen of the electronic device by determining the display time of each first layer in the layer list and pre-setting the first preset time, so that when there is an application displayed on the display screen for a long time, the anti-burn-in operation is performed on the electronic device, which can reduce screen loss and extend the service life of the screen.

[0093] In an alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0094] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0095] The bus 4002 may include a path for transmitting information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0096] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0097] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0098] Among them, electronic devices may include but are not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0099] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, it can be achieved that: the anti-burn-in method provided in the embodiment of the present application can determine the layer corresponding to the application displayed for a long time on the screen of the electronic device by determining the display time of each first layer in the layer list and presetting the first preset time, so that when there is an application displayed on the display screen for a long time, the anti-burn-in operation is performed on the electronic device, which can reduce screen loss and extend the service life of the screen.

[0100] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0101] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor. Compared with the prior art, it can be achieved that: the anti-burn-in method provided in the embodiment of the present application can determine the layer corresponding to the application displayed for a long time on the screen of the electronic device by determining the display time of each first layer in the layer list and presetting the first preset time, so that when there is an application displayed on the display screen for a long time, the anti-burn-in operation is performed on the electronic device, which can reduce screen loss and extend the service life of the screen.

[0102] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0103] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0104] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for preventing screen burn-in, characterized in that: The method is applied to an electronic device, comprising: Determining, according to a preset display refresh interval, a display duration of each first layer in the layer list, where the first layer is a layer currently being displayed corresponding to an application program running on the electronic device; When there is at least one second layer whose display duration is greater than or equal to the first preset duration in each of the first layers, an anti-burn-in operation is performed on the electronic device.

2. The method according to claim 1, characterized in that The layer list records the layer identifiers of the first layers and the corresponding creation times; The step of determining the display duration of each first layer in the layer list includes: For each of the first layers, the creation time of the first layer is determined according to the layer identifier of the first layer and the corresponding creation time, and the creation time is used as the display time of the first layer.

3. The method according to claim 1, characterized in that The method further comprises: For each of the second layers, record the cumulative number of times the second layer is displayed within the target time period, where the cumulative number is the number of times the display duration of the second layer is continuously greater than or equal to the first preset duration when the terminal display is refreshed within the target time period; When there is at least one second layer whose display time is greater than or equal to the first preset time in each of the first layers, performing an anti-burn-in operation on the terminal includes: Determine the accumulated times corresponding to each of the second layers; Determine a target cumulative number of times based on the cumulative number of times respectively corresponding to each of the second layers; According to the target cumulative number, determining a target pixel movement parameter corresponding to the target cumulative number, the target pixel movement parameter including a target pixel offset and a target offset direction; Rendering each of the first layers is performed according to the target pixel offset and the target offset direction.

4. The method according to claim 3, characterized in that: The step of determining the target pixel movement parameter corresponding to the target cumulative number of times according to the target cumulative number of times includes: Acquire a first mapping relationship, wherein the first mapping relationship includes a plurality of first cumulative times and a pixel movement parameter corresponding to each first cumulative time; According to the first mapping relationship, a target pixel movement parameter corresponding to the target cumulative number of times is determined.

5. The method according to claim 3, characterized in that: The rendering of each first layer according to the pixel offset and the offset direction includes: The first layers and the third layers are rendered according to the pixel offset and the offset direction, and the third layers are layers that are not displayed corresponding to the application program.

6. The method according to claim 5, characterized in that After rendering each of the first layers according to the pixel offset and the offset direction, the method further includes: Determining a display duration of each target layer, wherein the target layer includes at least one of each first layer and each third layer; For each of the target layers, if the display duration of the target layer is greater than or equal to a second preset duration, the display brightness of each of the target layers is reduced, and the second preset duration is greater than the first preset duration.

7. The method according to any one of claims 1 to 6, characterized in that: When there is at least one second layer whose display time is greater than or equal to the first preset time in each of the first layers, performing an anti-burn-in operation on the electronic device includes: Determining a target type of the application, the target type being a first type or a second type; If the application is of the first type, the anti-burn-in operation includes: determining a target movement parameter, and rendering each of the first layers according to the target movement parameter, wherein the target movement parameter includes a target pixel offset and a target offset direction; If the application is of the second type, the anti-burn-in operation includes: reducing the display brightness of each of the first layers.

8. An anti-screen burn-in device, characterized in that: The device is applied to electronic equipment, including: A determination module, which determines the display duration of each first layer in the layer list according to a preset display refresh interval, wherein the first layer is a layer being displayed corresponding to an application program running on the electronic device; The execution module performs an anti-burn-in operation on the electronic device when there is at least one second layer whose display time is greater than or equal to the first preset time in each of the first layers.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.