CN-121982991-A - Display method and device, electronic equipment, storage medium and program product
Abstract
The disclosure relates to a display method, a display device, electronic equipment, a storage medium and a program product, wherein the display method comprises the steps of obtaining a background layer and a content layer of a picture to be displayed, wherein the change frequency of the background layer in a picture sequence related to the picture to be displayed is smaller than the change frequency of the content layer in the picture sequence, determining the image brightness of the content layer based on pixel values of pixel points in the content layer, adjusting the image brightness of the background layer based on the image brightness of the content layer, synthesizing the synthesized display picture based on the content layer and the background layer with the adjusted image brightness, and reducing the screen burning phenomenon of the electronic equipment.
Inventors
- LIU YANG
Assignees
- 北京小米移动软件有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20241029
Claims (11)
- 1. A display method, comprising: Obtaining a background layer and a content layer of a picture to be displayed, wherein the change frequency of the background layer in a picture sequence related to the picture to be displayed is smaller than the change frequency of the content layer in the picture sequence; determining the image brightness of the content layer based on the pixel value of each pixel point in the content layer; Adjusting the image brightness of the background layer based on the image brightness of the content layer; And synthesizing based on the content layer and the background layer with the adjusted image brightness, and obtaining and displaying a synthesized display picture.
- 2. The method according to claim 1, wherein the method further comprises: Acquiring screen brightness of the picture to be displayed; the adjusting the image brightness of the background layer based on the image brightness of the content layer comprises: and adjusting the image brightness of the background layer based on the screen brightness and the image brightness of the content layer.
- 3. The method of claim 2, wherein adjusting the image brightness of the background layer based on the screen brightness and the image brightness of the content layer comprises: determining display brightness of the content layer based on the screen brightness and the image brightness of the content layer; and adjusting the image brightness of the background layer based on the screen brightness and the display brightness of the content layer.
- 4. A method according to claim 3, wherein said determining a display luminance of said content layer based on said screen luminance contribution based on said screen luminance and an image luminance of said content layer comprises: Carrying out normalization processing on the image brightness of the content layer to obtain normalized image brightness of the content layer; Determining normalized display brightness of the content layer based on a first preset mapping relation and normalized image brightness of the content layer, wherein the first preset mapping relation comprises a first corresponding relation between the normalized display brightness and the normalized image brightness; And determining the product of the normalized display brightness of the content layer and the screen brightness as the display brightness of the content layer.
- 5. The method of claim 3, wherein adjusting the image brightness of the background layer based on the screen brightness and the display brightness of the content layer comprises: determining the display brightness of the background layer based on the display brightness of the content layer and a preset contrast weight value; determining the ratio of the display brightness of the background layer to the screen brightness as the normalized display brightness of the background layer; determining normalized image brightness of the background layer based on a second preset mapping relation and normalized display brightness of the background layer, wherein the second preset mapping relation comprises a second corresponding relation between the normalized display brightness and the normalized image brightness; and carrying out inverse normalization processing on the normalized image brightness of the background layer to obtain the image brightness of the background layer.
- 6. The method according to claim 1, wherein the synthesizing based on the content layer and the background layer with the adjusted image brightness to obtain and display a synthesized display picture comprises: Respectively carrying out image post-processing on the content image layer and the background image layer with the adjusted image brightness to obtain a post-processed content image layer and a post-processed background image layer; And synthesizing the post-processed content layer and the post-processed background layer to obtain and display the synthesized display picture.
- 7. The method according to any one of claims 1 to 6, wherein the background layer is a layer in which a toolbar and/or a status bar of the picture to be displayed is located, and the content layer is a layer in which an acquired image is located.
- 8. A display device, comprising: The display device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is configured to acquire a background layer and a content layer of a picture to be displayed, and the change frequency of the background layer in a picture sequence related to the picture to be displayed is smaller than the change frequency of the content layer in the picture sequence; a first determining module configured to determine an image brightness of the content layer based on pixel values of each pixel point in the content layer; A first adjustment module configured to adjust an image brightness of the background layer based on the image brightness of the content layer; and the synthesis module is configured to synthesize the content image layer and the background image layer with the adjusted image brightness to obtain and display a synthesized display picture.
- 9. An electronic device, the electronic device comprising at least: A processor; A memory for storing processor-executable instructions; wherein the processor is configured to perform the display method of any one of claims 1 to 7.
- 10. A non-transitory computer readable storage medium storing a computer program or instructions, characterized in that the computer program or instructions in the storage medium, when executed by a processor, implement the steps of the display method of any one of claims 1 to 7.
- 11. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the display method of any one of claims 1 to 7.
Description
Display method and device, electronic equipment, storage medium and program product Technical Field The disclosure relates to the field of display technologies, and in particular, to a display method and device, an electronic device, a storage medium, and a program product. Background With rapid development of electronic devices, an Organic Light-Emitting Diode (OLED) display screen has advantages of higher brightness, better saturation, thinner screen, and flexibility compared with a Liquid crystal display screen (Liquid CRYSTAL DISPLAY, LCD), so that the OLED display screen has gradually replaced the LCD display screen. Each pixel point of the OLED display screen is composed of a plurality of luminous organisms, and the luminous organisms emit light under the drive of an electric field so that the OLED display screen emits light to display. However, when the OLED display screen of the electronic device displays the same image frame for a long time, since the lifetime of each light-emitting organism is limited, after the light-emitting organisms age, a play frame ghost (burn-in) is easily generated, which further results in a shorter lifetime of the OLED screen and a reduced user experience. How to provide an effective screen burn preventing scheme is one of the technical problems to be solved at present. Disclosure of Invention In order to overcome the problems in the related art, the present disclosure provides a display method and apparatus, an electronic device, a storage medium, and a program product, which can reduce the burn-in phenomenon of the electronic device. According to a first aspect of an embodiment of the present disclosure, there is provided a display method, including: Obtaining a background layer and a content layer of a picture to be displayed, wherein the change frequency of the background layer in a picture sequence related to the picture to be displayed is smaller than the change frequency of the content layer in the picture sequence; determining the image brightness of the content layer based on the pixel value of each pixel point in the content layer; Adjusting the image brightness of the background layer based on the image brightness of the content layer; And synthesizing based on the content layer and the background layer with the adjusted image brightness, and obtaining and displaying a synthesized display picture. In some embodiments, the method further comprises: Acquiring screen brightness of the picture to be displayed; the adjusting the image brightness of the background layer based on the image brightness of the content layer comprises: and adjusting the image brightness of the background layer based on the screen brightness and the image brightness of the content layer. In some embodiments, the adjusting the image brightness of the background layer based on the screen brightness and the image brightness of the content layer includes: determining display brightness of the content layer based on the screen brightness and the image brightness of the content layer; and adjusting the image brightness of the background layer based on the screen brightness and the display brightness of the content layer. In some embodiments, the determining the display brightness of the content layer based on the screen brightness and the image brightness of the content layer comprises: Carrying out normalization processing on the image brightness of the content layer to obtain normalized image brightness of the content layer; Determining normalized display brightness of the content layer based on a first preset mapping relation and normalized image brightness of the content layer, wherein the first preset mapping relation comprises a first corresponding relation between the normalized display brightness and the normalized image brightness; And determining the product of the normalized display brightness of the content layer and the screen brightness as the display brightness of the content layer. In some embodiments, the adjusting the image brightness of the background layer based on the screen brightness and the display brightness of the content layer includes: determining the display brightness of the background layer based on the display brightness of the content layer and a preset contrast weight value; determining the ratio of the display brightness of the background layer to the screen brightness as the normalized display brightness of the background layer; determining normalized image brightness of the background layer based on a second preset mapping relation and normalized display brightness of the background layer, wherein the second preset mapping relation comprises a second corresponding relation between the normalized display brightness and the normalized image brightness; and carrying out inverse normalization processing on the normalized image brightness of the background layer to obtain the image brightness of the background layer. In some embodiments, the synthesizing based on