Display method and electronic device
By generating compensation images and compensation sequence maps, the use of each pixel on the screen is balanced, solving the screen burn-in problem caused by all-day display and ensuring the consistency of display effect and user experience.
Patent Information
- Application Number
- CN202310475872.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-04-25
AI Technical Summary
The all-weather display function causes uneven aging of different pixels on the screen of electronic devices, resulting in screen burn-in and affecting the display effect.
By generating a compensation image and N frames of compensation sequence images, the usage of each pixel on the screen is balanced to prevent individual pixels from aging too much.
It effectively prevents screen burn-in caused by displaying the same image for a long time, while ensuring consistent display effects and user experience.
Smart Images

Figure CN118840955B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image display, and in particular to a display method and an electronic device. BACKGROUND
[0002] Always on display (AOD) is a function allowing an electronic device to display various types of information all day long, which supports the electronic device to display pictures, clock controls and the like even when the screen is off.
[0003] The AOD function requires the electronic device to display content for a long time, and the usage of different pixels on the screen is different according to different display content. For example, the pixels in a region are displayed at high brightness for a long time, and the aging degree of the pixels in this region is higher than that of other regions in the screen. The pixels in this region will appear to have insufficient display brightness, resulting in a burn-in mark in the aging region of the pixels in the screen when the electronic device displays other content. This phenomenon is called "burn-in". SUMMARY
[0004] The present application provides a display method and an electronic device to prevent the burn-in problem caused by the always on display function.
[0005] In a first aspect, the present application provides a display method, which can be executed by an electronic device. The method comprises:
[0006] The electronic device obtains an original image. The electronic device generates a compensation image according to the original image, and the brightness value of each pixel in the compensation image is related to the brightness value of the corresponding pixel in the original image. The electronic device generates N frames of compensation sequence images according to the original image and the compensation image, and displays the original image and the N frames of compensation sequence images according to a preset dynamic display parameter.
[0007] In the method, the electronic device can generate a compensation image according to an original image, and then generate N frames of compensation sequence images according to the original image and the compensation image. The electronic device displays the original image and the N frames of compensation sequence images, which can balance the use of each pixel in the screen for display, thereby preventing the burn-in problem caused by the high aging degree of individual pixels when the same image is displayed for a long time.
[0008] In one possible design, the generating of the compensation image according to the original image comprises: calculating the brightness value of each pixel in the compensation image according to the brightness value of each pixel in the original image and a preset brightness value; or calculating the brightness value of each pixel in the compensation image according to the brightness value of each pixel in the original image and the average brightness value of the original image; or calculating the brightness value of each pixel in the compensation image according to the brightness value of each pixel in the original image and the highest brightness value of the original image.
[0009] Through the design, the application provides multiple ways of generating a compensation image, and after the compensation image generated based on the above ways is superimposed with the original image, a white or gray image can be obtained, so that the compensation image can be used to compensate for the screen pixel brightness attenuation when the electronic device displays the original image.
[0010] In a possible design, the N-frame compensation sequence image includes a first compensation sequence image, a second compensation sequence image, a third compensation sequence image, and a fourth compensation sequence image; and the generating the N-frame compensation sequence image according to the original image and the compensation image includes: replacing the brightness value of a pixel unit at a first position in the original image with the brightness value of a pixel unit at the first position in the compensation image to obtain the first compensation sequence image, the first position being a pixel unit position with both the row sequence number and the column sequence number being odd; one pixel unit including Y adjacent pixels, Y being a positive integer; replacing the brightness value of a pixel unit at a second position in the original image with the brightness value of a pixel unit at the second position in the compensation image to obtain the second compensation sequence image, the second position being a pixel unit position with the row sequence number being even and the column sequence number being odd; replacing the brightness value of a pixel unit at a third position in the original image with the brightness value of a pixel unit at the third position in the compensation image to obtain the third compensation sequence image, the third position being a pixel unit position with both the row sequence number and the column sequence number being even; and replacing the brightness value of a pixel unit at a fourth position in the original image with the brightness value of a pixel unit at the fourth position in the compensation image to obtain the fourth compensation sequence image, the fourth position being a pixel unit position with the row sequence number being odd and the column sequence number being even.
[0011] Through the design, the electronic device can take a pixel unit as a processing unit, replace the brightness value of a pixel unit at an odd or even sequence number position in the original image with the brightness value of a pixel unit at a corresponding position in the compensation image, obtain four compensation sequence images, and display the compensation sequence images to achieve the effect of balancing the use of each pixel on the screen.
[0012] In a possible design, the generating the N-frame compensation sequence image according to the original image and the compensation image includes: replacing the brightness value of an i th row of pixel units in the original image with the brightness value of an i th row of pixel units in the compensation image to obtain an i th frame of compensation sequence image; i being a positive integer less than N, N being the total number of rows of pixel units in the original image; and one pixel unit including Y adjacent pixels, Y being a positive integer.
[0013] Through the design, the electronic device can take a pixel unit as a processing unit, replace the luminance value of each row of pixel units in the original image with the luminance value of the pixel unit at the corresponding position in the compensation image, and obtain N compensation images. In each compensation image, the luminance value of a row of pixel units is different from that of the original image. Therefore, the display effect of each frame of compensation image is not greatly different from that of the original image, thereby ensuring user experience. Meanwhile, the electronic device displays the N frames of compensation images obtained in the above manner, which can prevent screen burn caused by long-time display of a single image by each pixel in the screen.
[0014] In a possible design, the generating the N frames of compensation images according to the original image and the compensation image includes: replacing the luminance value of the i th column of pixel units in the original image with the luminance value of the i th column of pixel units in the compensation image to obtain the i th frame of compensation image; i is a positive integer less than N, and N is the total number of columns of pixels in the original image; one pixel unit includes Y adjacent pixels, and Y is a positive integer.
[0015] Through the design, the electronic device can take a pixel unit as a processing unit, replace the luminance value of each row of pixel units in the original image with the luminance value of the pixel unit at the corresponding position in the compensation image, and obtain N compensation images. In each compensation image, the luminance value of a row of pixel units is different from that of the original image. Therefore, the display effect of each frame of compensation image is not greatly different from that of the original image, thereby ensuring user experience. Meanwhile, the electronic device displays the N frames of compensation images obtained in the above manner, which can prevent screen burn caused by long-time display of a single image by each pixel in the screen.
[0016] In a possible design, the generating the compensation image according to the original image includes: performing preprocessing on the original image, and generating the compensation image according to the preprocessed original image.
[0017] In the preprocessing, at least one of the following is performed: determining a target region in the original image with a luminance greater than a set threshold, and reducing the luminance of the target region; reducing the luminance of the original image; dividing the original image into multiple regions, and adjusting the luminance of each region; and setting the size of the original image according to the size of a display region, so that the size of the original image after the setting is greater than the size of the display region.
[0018] Through the design, the electronic device can perform preprocessing on the original image. The risk of screen burn of the preprocessed original image is lower than that of the original image. Generating the compensation image based on the preprocessed original image can further ensure the anti-burn effect of the display method provided in the embodiments of the present application.
[0019] In a possible design, the displaying the original image and the N frames of compensation sequence according to the preset dynamic display parameter includes: calculating a total number of frames of the original image and the compensation sequence displayed in a preset time length according to the preset dynamic display parameter, calculating a number P of frames of the original image and a number Q of frames of the compensation sequence displayed in the preset time length according to a preset display ratio and the total number of frames; the P and the Q are positive integers; and displaying the original image and the N frames of compensation sequence in the preset time length as a dynamic effect cycle, displaying P frames of the original image and Q frames of the compensation sequence in each dynamic effect cycle; the Q frames of the compensation sequence belong to the N frames of compensation sequence.
[0020] Through the design, the electronic device can determine a dynamic effect cycle of displaying the original image and the N frames of compensation sequence according to the preset dynamic display parameter, and a number P of frames of the original image and a number Q of frames of the compensation sequence displayed in each dynamic effect cycle. The electronic device can display P frames of the original image and Q frames of the compensation sequence in one dynamic effect cycle, for example, P frames of the original image and Q frames of the compensation sequence displayed in one dynamic effect cycle can be arranged alternately, to ensure the display effect.
[0021] In a possible design, the Q is less than or equal to the N.
[0022] Through the design, the electronic device displays a group of display sequences in each dynamic effect cycle, and a group of display sequences can include P frames of the original image and Q frames of the compensation sequence. Displaying one group of display sequences (when Q is equal to N) or multiple groups of display sequences (when Q is less than N) can complete a round of display of the N frames of compensation sequence, to ensure the effect of balancing the screen usage degree.
[0023] Optionally, the Q can also be an integer greater than the N, and the electronic device can display the N frames of compensation sequence cyclically in a preset time length, which can also achieve the purpose of balancing the screen pixel display brightness.
[0024] In a possible design, after the number P of frames of the original image and the number Q of frames of the compensation sequence displayed in the preset time length are calculated according to the preset display ratio and the total number of frames, before the original image and the N frames of compensation sequence are displayed in the preset time length as a dynamic effect cycle, the method further includes: obtaining a screen temperature, determining a temperature coefficient according to the screen temperature; adjusting the preset display ratio according to the temperature coefficient, or adjusting the Q according to the temperature coefficient.
[0025] Through the design, the electronic device can determine a temperature coefficient according to the screen temperature, and adjust a preset display ratio according to the temperature coefficient, for example, when the temperature coefficient is high, the ratio of the display compensation sequence diagram can be increased. Or the electronic device can adjust the frame number of the display compensation sequence diagram within a preset time period according to the temperature coefficient, for example, when the temperature coefficient is high, the frame number of the display compensation sequence diagram within the preset time period can be increased. In this way, the influence of the screen temperature being too high on the aging of the screen pixels can be reduced.
[0026] In one possible design, the displaying the original image and the N compensation sequence diagrams according to the preset dynamic display parameter includes displaying the preprocessed original image and the N compensation sequence diagrams according to the preset dynamic display parameter.
[0027] Through the design, the electronic device can display the preprocessed original image and the N compensation sequence diagrams, further reducing the risk of screen burn-in.
[0028] In a second aspect, the present application provides an electronic device, which includes a plurality of function modules; the plurality of function modules interact to implement the method performed by the electronic device in the first aspect and each of the implementations thereof. The plurality of function modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of function modules can be combined or divided based on specific implementation.
[0029] In a third aspect, the present application provides an electronic device, which includes at least one processor and at least one memory, and the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor executes the method performed by the electronic device in the first aspect and each of the implementations thereof.
[0030] In a fourth aspect, the present application further provides a computer program product containing instructions, which, when executed on a computer, causes the computer to perform the method performed by the electronic device in any of the aspects and each of the implementations thereof.
[0031] In a fifth aspect, the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed on a computer, the computer program causes the computer to perform the method performed by the electronic device in any of the aspects and each of the implementations thereof.
[0032] In a sixth aspect, the present application further provides a chip for reading a computer program stored in a memory, and performing the method performed by the electronic device in any of the aspects and each of the implementations thereof.
[0033] Seventhly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by the electronic devices in any of the above aspects and embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description
[0034] Figure 1 A schematic diagram illustrating an all-weather display for an electronic device, provided as an embodiment of this application;
[0035] Figure 2 A schematic diagram illustrating a screen burn-in phenomenon provided in an embodiment of this application;
[0036] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0037] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of this application;
[0038] Figure 5 A flowchart illustrating a display method provided in an embodiment of this application;
[0039] Figure 6 A schematic diagram of an original image and a compensated image provided for an embodiment of this application;
[0040] Figure 7 A schematic diagram illustrating a pixel offset provided in an embodiment of this application;
[0041] Figure 8 A schematic diagram illustrating the first method for generating compensation sequence diagrams provided in this application embodiment;
[0042] Figure 9 A schematic diagram illustrating a second method for generating compensation sequence diagrams provided in this application embodiment;
[0043] Figure 10 A schematic diagram illustrating a third method for generating compensation sequence diagrams provided in this application embodiment;
[0044] Figure 11 A schematic diagram of a display sequence provided in an embodiment of this application;
[0045] Figure 12 A schematic diagram illustrating a display method provided in an embodiment of this application;
[0046] Figure 13 This is a schematic diagram of a mask display provided in an embodiment of this application. Detailed Implementation
[0047] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application with reference to the drawings. In the description of the embodiments of the present application, the terms "first", "second" are used only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features.
[0048] It should be understood that "at least one" in the embodiments of the present application means one or more, and "multiple" means two or more. The association relationship of "and / or" describing the associated objects means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b or c can mean a, b, c, a and b, a and c, b and c, or a, b and c, where a, b and c can be single or multiple.
[0049] Always on display (AOD) is a function that allows an electronic device to display various types of information at all times, which supports the electronic device to still display pictures, clock controls, etc. when the screen is off. For example, Figure 1 A schematic diagram of an electronic device always on display is provided in the embodiments of the present application. Referring to Figure 1 When the electronic device supporting the AOD function is off, it can still display wallpaper, clock controls, etc.
[0050] The display area of the screen of the electronic device is an array composed of pixels, and usually one pixel is composed of three sub-pixels of red, green and blue. The screen resolution can reflect the clarity of the image displayed on the screen, and the screen resolution refers to the number of pixels that the screen can display. For example, the screen resolution of 160*128 indicates that the number of horizontal pixels that the screen can display is 160, and the number of vertical pixels is 128. In the case of the same screen size, the higher the resolution, the finer the display effect.
[0051] The AOD function requires the electronic device to display content for a long time. Depending on the displayed content, the usage of different pixels on the screen is different. For example, if the pixels in a region are used for high-brightness display for a long time, the pixels in this region will age faster than the pixels in other regions on the screen. The pixels in this region will have insufficient display brightness, resulting in a burn-in mark on the pixels in the aging region on the screen when the electronic device displays other content. This phenomenon is called "burn-in". For example, Figure 2 A schematic diagram of a burn-in phenomenon is provided in an embodiment of the present application. It is assumed that Figure 1 The sleeve part of the character in the lock screen image shown is white. When the electronic device displays this picture on the screen for a long time, the pixel position corresponding to the white region in the picture may have a burn-in, as shown in Figure 2 The sleeve part of the character in the screen shown has a burn-in mark, and the screen still has this burn-in mark when displaying other content, affecting the display effect.
[0052] Based on the above problems, the present application provides a display method to prevent the burn-in problem caused by the all-weather display function. The method can be executed by an electronic device. In the display method provided in an embodiment of the present application, the electronic device generates a compensation image according to an original image after obtaining the original image. The electronic device generates N frames of compensation sequence images according to the original image and the compensation image, and displays the original image and the N frames of compensation sequence images according to a preset dynamic display parameter. Through the scheme, the electronic device can balance the use of each pixel in the screen for display, thereby preventing the burn-in problem caused by the high aging degree of individual pixels when displaying the same image for a long time.
[0053] The following describes an electronic device and embodiments for using such an electronic device. The electronic device in an embodiment of the present application can be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, etc. The specific type of the electronic device is not limited in the embodiments of the present application.
[0054] Figure 3 A structural schematic diagram of an electronic device 100 is provided in an embodiment of the present application. As shown in Figure 3As shown, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0055] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions. A memory can also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. Avoiding repeated access, reducing the waiting time of the processor 110, thus improving the efficiency of the system.
[0056] The USB interface 130 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. The charging management module 140 is configured to receive charging input from the charger. The power management module 141 is configured to connect the battery 142 and the charging management module 140. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.
[0057] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc. The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0058] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves to be radiated through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be arranged in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be arranged in the same device.
[0059] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0060] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidu navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0061] The display screen 194 is configured to display a display interface of an application, for example, a display page of an application installed on the electronic device 100, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0062] The camera 193 is configured to capture a still image or a video. An object generates an optical image through a lens and projects the optical image to a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts an optical signal into an electrical signal, and then transmits the electrical signal to an ISP to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, such as RGB, YUV, or the like. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.
[0063] The internal memory 121 can be configured to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, software codes of at least one application program, and the like. The data storage area can store data generated during use of the electronic device 100, such as captured images, recorded videos, and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory, such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
[0064] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are saved in the external memory card.
[0065] The electronic device 100 can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, the application processor, and the like. For example, music playing, recording, and the like.
[0066] The sensor module 180 can include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, and the like.
[0067] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194.
[0068] The touch sensor 180C is also referred to as a "touch panel". The touch sensor 180C can be disposed on the display screen 194, and the touch sensor 180C and the display screen 194 together form a touch screen, also referred to as a "touch screen". The touch sensor 180C is used to detect a touch operation acting on or near the touch sensor 180C. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0069] The keys 190 include a power key, a volume key, and the like. The keys 190 can be mechanical keys. They can also be touch keys. The electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, and the like) can correspond to different vibration feedback effects. The touch vibration feedback effect can also be customizable. The indicator 192 can be an indicator light and can be used to indicate a charging state, a power change, and can also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
[0070] It can be understood that, Figure 3The illustrated components do not constitute a specific limitation on the electronic device 100, and the electronic device can also include more or fewer components than those illustrated, or combine certain components, or split certain components, or different arrangement of components. In addition, Figure 3 The combination / connection relationship between the components in the electronic device 100 can also be adjusted and modified.
[0071] Figure 4 A software structure block diagram of an electronic device is provided in an embodiment of the present application. As shown in Figure 4 The software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the operating system is divided into four layers, from top to bottom, the application layer, the application framework layer (framework, FWK), the runtime and system library, and the kernel layer.
[0072] The application layer can include a series of application packages. As shown in Figure 4 The application layer can include a camera, a setting, a skin module, a user interface (UI), a third-party application, and the like. Among them, the third-party application can include a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, music, a video, a short message, and the like. In an embodiment of the present application, the application layer can include a target installation package of a target application requested by the electronic device to download from a server, and the function files and layout files in the target installation package are adapted to the electronic device.
[0073] The application framework layer provides an application programming interface (API) and a programming framework for the application of the application layer. The application framework layer can include some pre-defined functions. As shown in Figure 4 The application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
[0074] The window manager is used to manage the window program. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and intercept the screen, etc. The content provider is used to store and obtain data, and make the data accessible to the application. The data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phonebook, and the like.
[0075] The view system includes visual controls, such as controls that display text, controls that display pictures, and the like. The view system can be used to build an application. A display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon can include a view that displays text and a view that displays a picture.
[0076] The phone manager is used to provide communication functions of the electronic device. For example, management of call status (including call connection, call hang-up, and the like).
[0077] The resource manager provides various resources for an application, such as localized strings, icons, pictures, layout files, video files, and the like.
[0078] The notification manager enables an application to display notification information in a status bar, which can be used to convey a message of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify a download completion, a message reminder, and the like. The notification manager can also be a notification that appears in a system top status bar in a chart or a scroll bar text form, a notification of an application running in the background, and the like, and can also be a notification that appears on a screen in a dialog window form. For example, a text information is prompted in a status bar, a prompt sound is emitted, the electronic device is vibrated, a light flashes, and the like.
[0079] The runtime includes a core library and a virtual machine. The runtime is responsible for scheduling and management of the operating system.
[0080] The core library includes two parts: one part is a function function that the java language needs to call, and the other part is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java file of the application layer and the application framework layer into a binary file. The virtual machine is used to perform functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.
[0081] The system library can include a plurality of functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: OpenGL ES), a two-dimensional graphics engine (for example: SGL), an image processing library, and the like.
[0082] The surface manager is used to manage a display subsystem and provides fusion of 2D and 3D layers for a plurality of applications.
[0083] The media library supports playback and recording of a plurality of commonly used audio, video formats, and the like, and static image files. The media library can support a plurality of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, and the like.
[0084] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, composition, and layer processing.
[0085] The 2D graphics engine is a drawing engine for 2D drawing.
[0086] The kernel layer is a layer between hardware and software. The kernel layer at least includes display drivers, camera drivers, audio drivers, and sensor drivers.
[0087] The hardware layer can include various sensors, such as an acceleration sensor, a gyroscope sensor, and a touch sensor.
[0088] It should be noted that, Figure 3 and Figure 4 The structure shown in FIG. 1 is only an example of the electronic device provided by the embodiments of the present application, and cannot limit the electronic device provided by the embodiments of the present application in any way. In specific implementation, the electronic device can have more or fewer devices or modules than the structure shown in FIG. 1. Figure 3 or Figure 4 The structure shown in FIG. 1.
[0089] The display method provided by the embodiments of the present application is introduced below.
[0090] Figure 5 A flowchart of a display method provided by the embodiments of the present application. The method can be executed by an electronic device, which can have the structure shown in FIG. 1. Figure 3 and / or Figure 4 The structure shown in FIG. 1. Referring to Figure 5 , the method includes the following steps:
[0091] S501: The electronic device acquires an original image.
[0092] In the embodiments of the present application, the electronic device supports the AOD function, and when the user selects to turn on the AOD function, the electronic device can display the lock screen wallpaper all day long. That is, the lock screen wallpaper can be displayed in the on-screen and off-screen states of the electronic device. The user can set a custom image as the lock screen wallpaper, or can select a system preset image as the lock screen wallpaper. The electronic device can acquire the original image selected by the user as the lock screen wallpaper.
[0093] S502: The electronic device generates a compensation image according to the original image.
[0094] Optionally, the compensation image in the embodiments of the present application is an image for compensating for the screen pixel brightness attenuation when the electronic device displays the original image. The brightness value of each pixel in the compensation image is related to the brightness value of the corresponding pixel in the original image. After superimposing the original image and the compensation image, a white or gray image can be obtained. For example, Figure 6A schematic diagram of an original image and a compensation image is provided in an embodiment of the present application. Referring to Figure 6 For a region with high brightness in the original image (such as a white region in the original image shown in Figure 6 ), the brightness of the image at the same position in the compensation image is lower (such as a black region in the compensation image shown in Figure 6 ), and if the original image and the compensation image are superimposed, a white image can be obtained.
[0095] In an embodiment of the present application, the sum of the brightness value of a pixel in the compensation image and the brightness value of a pixel at the same position in the original image can be a preset value. The following describes several ways of generating a compensation image provided in an embodiment of the present application:
[0096] Method 1: The brightness value of each pixel in the compensation image is calculated according to the brightness value of each pixel in the original image and a preset brightness value.
[0097] In an alternative implementation, the electronic device can obtain the brightness value of a pixel in the original image, calculate the difference between the preset brightness value and the brightness value, and take the result of the calculation as the brightness value of a pixel at the same position in the compensation image. For example, taking the original image and the compensation image as both being in RGB format, the preset brightness value can be the maximum brightness value of a pixel (255, 255, 255), and the brightness value of the original image and the brightness value of the compensation image can satisfy the following formula:
[0098] RGB ’ i = RGB (255, 255, 255) - RGB i (r, g, b)
[0099] wherein RGB ’ i is the brightness value of the i th pixel in the compensation image, and RGB i (r, g, b) is the brightness value of the i th pixel in the original image.
[0100] Method 2: The brightness value of each pixel in the compensation image is calculated according to the brightness value of each pixel in the original image and the average brightness value of the original image.
[0101] In an alternative implementation, the electronic device can calculate the average brightness value of the original image, calculate the difference between the average brightness value and the brightness value of the original image, and take the result of the calculation as the brightness value of a pixel at the same position in the compensation image. For example, taking the original image and the compensation image as both being in RGB format, the brightness value of the original image and the brightness value of the compensation image can satisfy the following formula:
[0102] RGB ’ iRGB i (r,g,b)
[0103] RGB ’ i RGB i (r,g,b) is the brightness value of the i-th pixel in the original image.
[0104] Method 3: The brightness value of each pixel in the compensation image is calculated according to the brightness value of each pixel in the original image and the maximum brightness value of the original image.
[0105] In an optional implementation, the electronic device can determine the maximum brightness value of the original image, then calculate the difference between the maximum brightness value and the brightness value of the original image, and take the calculated result as the brightness value of the pixel at the same position in the compensation image. For example, taking the original image and the compensation image as both being in RGB format as an example, the brightness value of the original image and the brightness value of the compensation image can satisfy the following formula:
[0106] RGB ’ i RGB i (r,g,b)
[0107] RGB ’ i RGB i (r,g,b) is the brightness value of the i-th pixel in the original image.
[0108] It can be understood that the above three methods are three examples of generating a compensation image, and the compensation image can also be generated by other methods, which are not limited in the present application.
[0109] In some embodiments of the present application, the electronic device can preprocess the original image before generating the compensation image according to the original image, and then generate the compensation image according to the preprocessed original image. The present application provides the following preprocessing, and the electronic device can perform at least one of the following preprocessing:
[0110] 1. Reduce the brightness of part of the area in the original image.
[0111] Optionally, the electronic device can determine a target area in the original image whose brightness is greater than a preset brightness threshold, and reduce the brightness of the target area.
[0112] 2. Reduce the brightness of the original image.
[0113] Optionally, the electronic device can reduce the brightness of the original image as a whole.
[0114] 3. Divide the original image into multiple regions, and adjust the brightness of each region respectively.
[0115] Optionally, the electronic device can divide the original image into multiple regions, for example, each region after division can include a preset number of pixels. The electronic device can perform brightness adjustment on each region after division, for example, reduce the brightness of part of the region in the image of the region, or reduce the brightness of the region as a whole, etc.
[0116] 4. Pixel displacement.
[0117] Optionally, the electronic device can set the size of the original image to be larger than the size of the display area, so that the electronic device can displace the original image within the display area when displaying the original image, preventing screen burn caused by long-time display of the same content.
[0118] For example, Figure 7 A schematic diagram of pixel displacement provided by an embodiment of the present application. Referring to (a) in FIG. 1, Figure 7 The size of the original image is larger than the image size of the display area, for example, the length of the display area is 32 pixels smaller than the length of the original image, and the width of the display area is 32 pixels smaller than the width of the original image, that is, adding 16 pixels to each side of the display area can obtain the size of the original image. The electronic device can display different positions of the original image in the display area at different times. For example, referring to (b) in FIG. 1, Figure 7 The electronic device can display the original image in different states at different times, so as to balance the display of each pixel of the screen through pixel displacement.
[0119] Through the above design, the electronic device first pre-processes the original image, and the burn-in risk of the original image after pre-processing is lower than that of the original image. Generating a compensation image based on the pre-processed original image can further ensure the anti-burn-in effect of the display method provided by the embodiment of the present application.
[0120] S503: The electronic device generates N frames of compensation sequence images according to the original image and the compensation image.
[0121] In the embodiments of the present application, in order to ensure the display effect, the electronic device can generate N frames of compensation sequence images according to the original image and the compensation image. Each frame of compensation sequence image is generated by replacing the luminance values of a part of pixels in the original image with the luminance values of the pixels at the same positions in the compensation image. Thus, the display effect of each frame of compensation sequence image will not be greatly different from that of the original image, and the display brightness of the screen can be balanced by displaying multiple frames of compensation sequence images, thereby preventing different areas from being rapidly aged due to high brightness.
[0122] The following further introduces various ways of generating N frames of compensation sequence images according to the embodiments of the present application.
[0123] First, the pixel unit involved in the following ways of generating N frames of compensation sequence images is introduced. In the embodiments of the present application, the pixel unit is a pixel unit composed of multiple adjacent pixels. For example, one pixel unit can include Y pixels, and Y is a positive integer. The pixel unit in the embodiments of the present application can be in various shapes such as a rectangle, a triangle, a rhombus, etc. The electronic device can process the image by taking the pixel unit as a processing unit, for example, replacing the luminance values of a row of pixel units in the original image with the luminance values of a row of pixel units at the same positions in the compensation image, etc.
[0124] Method 1: Odd-even position replacement method
[0125] In an optional implementation, the electronic device can replace the luminance values of the pixel unit at the first position in the original image with the luminance values of the pixel unit at the first position in the compensation image to obtain a first compensation sequence image. Herein, the first position is a pixel unit position with both the row sequence number and the column sequence number being odd.
[0126] The electronic device can replace the luminance values of the pixel unit at the second position in the original image with the luminance values of the pixel unit at the second position in the compensation image to obtain a second compensation sequence image. Herein, the second position is a pixel unit position with the row sequence number being even and the column sequence number being odd.
[0127] The electronic device can replace the luminance values of the pixel unit at the third position in the original image with the luminance values of the pixel unit at the third position in the compensation image to obtain a third compensation sequence image. Herein, the third position is a pixel unit position with both the row sequence number and the column sequence number being even.
[0128] The electronic device can replace the luminance values of the pixel unit at the fourth position in the original image with the luminance values of the pixel unit at the fourth position in the compensation image to obtain a fourth compensation sequence image. Herein, the fourth position is a pixel unit position with the row sequence number being odd and the column sequence number being even.
[0129] That is, in this manner, the value of N is 4, and the electronic device can generate four frames of compensation sequence images, including a first compensation sequence image, a second compensation sequence image, a third compensation sequence image, and a fourth compensation sequence image.
[0130] For example, Figure 8 A schematic diagram of a first compensation sequence image generation manner provided by an embodiment of the present application is shown in FIG. 2. As shown in FIG. 2, the electronic device can replace the luminance value of a pixel unit at a first position in the original image with the luminance value of a pixel unit at the first position in the compensation image to obtain a first compensation sequence image. Figure 8 For ease of illustration, it is assumed that the original image is a full white image, and the compensation image is a full black image. The electronic device can replace the luminance value of a pixel unit at a first position in the original image with the luminance value of a pixel unit at the first position in the compensation image to obtain a first compensation sequence image; the electronic device can replace the luminance value of a pixel unit at a second position in the original image with the luminance value of a pixel unit at the second position in the compensation image to obtain a second compensation sequence image; the electronic device can replace the luminance value of a pixel unit at a third position in the original image with the luminance value of a pixel unit at the third position in the compensation image to obtain a third compensation sequence image; and the electronic device can replace the luminance value of a pixel unit at a fourth position in the original image with the luminance value of a pixel unit at the fourth position in the compensation image to obtain a fourth compensation sequence image.
[0131] Manner 2: row scanning manner
[0132] In an optional implementation, the electronic device can replace the luminance value of an i-th row of pixel units in the original image with the luminance value of an i-th row of pixel units in the compensation image to obtain an i-th frame of compensation sequence image; i is a positive integer less than N. In this manner, N is the total number of rows of pixel units in the original image.
[0133] The electronic device can perform the above-mentioned step N times to obtain N frames of compensation sequence images, and the luminance value of a row of pixel units in each frame of compensation sequence image is the luminance value of a pixel unit at the same position in the compensation image, and the luminance value of the remaining pixel units is the luminance value of a pixel unit at the same position in the original image.
[0134] Figure 9 A schematic diagram of a second compensation sequence image generation manner provided by an embodiment of the present application is shown in FIG. 3. As shown in FIG. 3, the electronic device can replace the luminance value of an i-th row of pixel units in the original image with the luminance value of an i-th row of pixel units in the compensation image to obtain an i-th frame of compensation sequence image; i is a positive integer less than N. Figure 9 For ease of illustration, it is assumed that the original image is a full white image, and the compensation image is a full black image. The electronic device can replace the luminance value of an i-th row of pixel units in the original image with the luminance value of an i-th row of pixel units in the compensation image to obtain an i-th frame of compensation sequence image; i is a positive integer less than N.
[0135] Manner 3: column scanning manner
[0136] In an optional implementation, the electronic device can replace the luminance value of an i-th column of pixel units in the original image with the luminance value of an i-th column of pixel units in the compensation image to obtain an i-th frame of compensation sequence image; i is a positive integer less than N. In this manner, N is the total number of columns of pixel units in the original image.
[0137] The electronic device performs the above steps N times, and N frames of compensation sequence images can be obtained. In each frame of the compensation sequence images, the luminance values of one column of pixel units are the luminance values of pixel units at the same positions in the compensation image, and the luminance values of the remaining pixel units are the luminance values of pixel units at the same positions in the original image.
[0138] Figure 10 A schematic diagram of a third way of generating a compensation sequence image provided by an embodiment of the present application is shown in FIG. 4. Referring to FIG. 4, the electronic device replaces the luminance values of N columns of pixel units in the original image with the luminance values of N columns of pixel units in the compensation image, and generates N frames of compensation sequence images. Figure 10 For ease of description, it is assumed that the original image is a full-white image, and the compensation image is a full-black image. The electronic device can replace the luminance values of N columns of pixel units in the original image with the luminance values of N columns of pixel units in the compensation image, and generates N frames of compensation images.
[0139] Optionally, in the above three ways, the electronic device replaces the luminance value of a pixel unit in the original image with the luminance value of a corresponding pixel unit in the compensation image, which can mean that the electronic device replaces the luminance value of each pixel included in the pixel unit in the original image with the luminance value of a corresponding pixel in the compensation image. For example, when a pixel unit includes four pixels, the electronic device can replace the luminance values of the four pixels in the original image with the luminance values of the corresponding pixels in the compensation image, respectively.
[0140] It can be understood that the above three ways are three examples of ways of generating N frames of compensation sequence images, and the compensation sequence images can also be generated in other ways, which are not limited in the present application.
[0141] S504: The electronic device displays the original image and the N frames of compensation sequence images according to the preset dynamic display parameter.
[0142] In an optional embodiment of the present application, the electronic device can calculate the total number of frames of images displayed in a preset time period according to the preset dynamic display parameter, and determine the number of frames of the original image displayed in the preset time period and the number of frames of the compensation sequence images displayed in the preset time period according to a preset ratio between the display time length of the original image and the display time length of the compensation sequence images. Optionally, the dynamic display parameter can include a dynamic effect curve, a preset time period, etc. The dynamic effect curve can be used to indicate the speed of switching image frames when the electronic device dynamically displays the original image and the multiple frames of compensation sequence images. The preset time period can be a dynamic effect period, and the electronic device can display the original image and the multiple frames of compensation sequence images in a dynamic effect period.
[0143] For example, in an embodiment of the present application, the electronic device determines that the number of frames of the original image displayed in a preset time period T is P, and the number of frames of the compensation sequence images displayed in the preset time period T is Q, where P and Q are both positive integers.
[0144] In an optional embodiment, the electronic device can combine the P-frame original image and the Q-frame compensation sequence to obtain a set of display sequences, in which the P-frame original image and the Q-frame original image can be arranged alternately. The electronic device can set a preset time length as a dynamic effect period, and display the multiple images in the display sequences in sequence within one dynamic effect period. Optionally, the electronic device can generate multiple sets of display sequences, and the Q-frame compensation sequence in each set of display sequences is part or all of the N-frame compensation sequences generated by the electronic device, that is, Q is a positive integer less than or equal to N. The electronic device displays one set of display sequences in each dynamic effect period, and displays one round of N-frame compensation sequences by displaying one set of display sequences (when Q is equal to N) or multiple sets of display sequences (when Q is less than N), so as to ensure the effect of balancing the screen usage degree.
[0145] For example, Figure 11 The schematic diagram of the display sequence provided by the embodiment of the present application is shown in FIG. 1. Referring to FIG. 1, Figure 11 For the convenience of description, it is assumed that the original image is a full white image, and the compensation image is a full black image. It is assumed that the electronic device generates 10-frame compensation sequences, and the electronic device determines to display 10-frame original images and 5-frame compensation sequences within a preset time length. The electronic device can generate two sets of display sequences. As shown in FIG. 2, Figure 11 each set of display sequences generated by the electronic device includes 10-frame original images and 5-frame compensation sequences, and the 10-frame original images and the 5-frame compensation sequences are arranged alternately, so that the display effect can be ensured when the electronic device displays the display sequences. After two preset time lengths, the electronic device can complete one round of display of the 10-frame compensation sequences, so that the brightness of each pixel of the screen is balanced.
[0146] In some other optional embodiments of the present application, Q can also be an integer greater than N. The electronic device can display the N-frame compensation sequences cyclically within a preset time length, and this method can also achieve the purpose of balancing the display brightness of each pixel of the screen, which will not be described herein again.
[0147] It should be noted that when the electronic device performs the pixel displacement preprocessing on the original image, the electronic device can adjust the position of the image within the display area when displaying the original image and the N-frame compensation sequences. For example, the display method of the image within the display area can be seen from FIG. 3, Figure 7 so as to balance the display by each pixel of the screen through pixel displacement.
[0148] Optionally, the electronic device can also display the preprocessed original image and the N-frame compensation sequences according to the dynamic display parameters. The specific implementation can be referred to the method of displaying the original image and the N-frame compensation sequences by the electronic device, and the repeated parts will not be described herein again.
[0149] In some embodiments of this application, considering that screen temperature can also increase the risk of screen burn-in, when calculating the number of frames of the compensation sequence diagram displayed within a preset time period, the electronic device can obtain the screen temperature and determine a temperature coefficient based on the screen temperature. For example, the temperature coefficient can satisfy the following formula:
[0150] Temperature coefficient = (current screen temperature - temperature threshold) / 10
[0151] Electronic devices can adjust the preset display ratio or the number of frames displayed in the compensation sequence within a preset duration based on the temperature coefficient. For example, when the temperature coefficient is 1, the electronic device can adjust the preset display ratio to make the duration of displaying the compensation image twice the original value, or the electronic device can adjust the number of frames displayed in the compensation sequence within a preset duration to twice the original value. In this way, the impact of excessively high screen temperature on screen pixel aging can be mitigated.
[0152] Optionally, when adjusting the preset display ratio based on the temperature coefficient, the electronic device can also adjust the preset duration. For example, when the temperature coefficient is 1, the electronic device can adjust the preset display ratio to double the duration of displaying the compensation image, and simultaneously increase the preset duration. In other words, increasing the duration of one motion effect cycle results in an increase in both the duration of displaying the original image and the duration of displaying the compensation image within that cycle, with the increase in the duration of displaying the compensation image being greater than the increase in the duration of displaying the original image. This method ensures dynamic display quality while increasing the duration of displaying the compensation image to mitigate the impact of excessively high temperatures on screen pixel aging.
[0153] This application also provides a display method. In this method, multiple images can be preset in the electronic device, and the user can select one image as the wallpaper. When the electronic device enables the AOD (Always-On Display) function, the electronic device can normally display different areas of the image at different times according to pre-configured display parameters. While normally displaying a portion of the image, the electronic device displays other areas of the image in grayscale.
[0154] For example, Figure 12 This is a schematic diagram illustrating a display method provided in an embodiment of this application. (Reference) Figure 12 In the diagram, the diagonally filled pattern represents grayscale display, while the white-filled pattern represents normal display. Electronic devices display different areas normally at different times, allowing users to see the sequential lighting of different areas when the image is displayed using this method. This method can evenly utilize all pixels on the screen, preventing screen burn-in.
[0155] In some embodiments of the present application, the electronic device can also display a "mask" on the wallpaper image set by the user when the AOD function is turned on. The mask can be a layer on the wallpaper layer. Figure 13 A schematic diagram of a mask display is provided in some embodiments of the present application. Referring to Figure 13 , the electronic device can display a mask on the wallpaper, the mask including a transparent region and a non-transparent region. The wallpaper can be displayed through the transparent region of the mask, and the non-transparent region of the mask can block the wallpaper. The electronic device can adjust the position of the transparent region, thereby displaying different regions of the wallpaper at different times, achieving balanced use of each pixel of the screen for display, and preventing screen burn-in.
[0156] Based on the above embodiments, the present application also provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact to achieve the functions performed by the electronic device in the methods described in the embodiments of the present application. For example, the steps performed by the electronic device in the embodiments shown in Figure 5 The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementation.
[0157] Based on the above embodiments, the present application also provides an electronic device, which includes at least one processor and at least one memory, the at least one memory storing computer program instructions, and the electronic device running, the at least one processor performing the functions performed by the electronic device in the methods described in the embodiments of the present application. For example, the steps performed by the electronic device in the embodiments shown in Figure 5
[0158] Based on the above embodiments, the present application also provides a computer program product containing instructions, which, when the computer program product is run on a computer, causes the computer to perform the methods described in the embodiments of the present application.
[0159] Based on the above embodiments, the present application also provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a computer, causes the computer to perform the methods described in the embodiments of the present application.
[0160] Based on the above embodiments, the present application also provides a chip for reading a computer program stored in a memory, implementing the methods described in the embodiments of the present application.
[0161] Based on the above embodiments, the present application provides a chip system, which comprises a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In a possible design, the chip system further comprises a memory for storing the necessary programs and data of the computer device. The chip system can be composed of a chip, or can include a chip and other discrete devices.
[0162] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage etc.) containing computer-usable program code.
[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows or blocks.
[0164] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction apparatus, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows or blocks.
[0165] These computer program instructions can also be loaded into a computer or other programmable data processing device, so that a series of operation steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that carries out the functions specified in one or more flows or blocks.
[0166] Obviously, many modifications and variations of the present application are possible in light of the above teachings. It is, therefore, to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A display method, characterized in that, Applied to electronic devices, the method includes: Obtain the original image; A compensation image is generated based on the original image, wherein the brightness value of each pixel in the compensation image is related to the brightness value of the corresponding pixel in the original image; N frames of compensation sequence diagrams are generated based on the original image and the compensation image; The original image and the N-frame compensation sequence diagram are displayed according to preset dynamic display parameters; The step of displaying the original image and the N-frame compensation sequence image according to preset dynamic display parameters includes: The total number of frames for displaying the original image and the compensated sequence image within a preset duration is calculated based on the preset dynamic display parameters. The number of frames P for displaying the original image and the number of frames Q for displaying the compensated sequence image within the preset duration are calculated based on the preset display ratio and the total number of frames. P and Q are positive integers. The original image and the N-frame compensation sequence diagram are displayed with the preset duration as the motion effect cycle. In each motion effect cycle, the P-frame original image and the Q-frame compensation sequence diagram are displayed; the Q-frame compensation sequence diagram belongs to the N-frame compensation sequence diagram.
2. The method as described in claim 1, characterized in that, The step of generating a compensated image based on the original image includes: The brightness value of each pixel in the compensated image is calculated based on the brightness value of each pixel in the original image and a preset brightness value; or The brightness value of each pixel in the compensated image is calculated based on the brightness value of each pixel in the original image and the average brightness value of the original image; or The brightness value of each pixel in the compensated image is calculated based on the brightness value of each pixel in the original image and the highest brightness value in the original image.
3. The method as described in claim 1 or 2, characterized in that, The N-frame compensation sequence map includes a first compensation sequence map, a second compensation sequence map, a third compensation sequence map, and a fourth compensation sequence map; generating the N-frame compensation sequence map based on the original image and the compensation image includes: The brightness value of the pixel unit at the first position in the original image is replaced with the brightness value of the pixel unit at the first position in the compensated image to obtain the first compensation sequence image. The first position is the position of the pixel unit where both the row number and column number are odd. A pixel unit includes Y adjacent pixels, where Y is a positive integer. The brightness value of the pixel unit at the second position in the original image is replaced with the brightness value of the pixel unit at the second position in the compensated image to obtain the second compensation sequence image. The second position is the position of the pixel unit with an even row number and an odd column number. The brightness value of the pixel unit at the third position in the original image is replaced with the brightness value of the pixel unit at the third position in the compensated image to obtain the third compensation sequence image. The third position is the pixel unit position where both the row number and column number are even. The brightness value of the pixel unit at the fourth position in the original image is replaced with the brightness value of the pixel unit at the fourth position in the compensated image to obtain the fourth compensation sequence image. The fourth position is the pixel unit position with an odd row number and an even column number.
4. The method as described in claim 1 or 2, characterized in that, The step of generating N frames of compensation sequence maps based on the original image and the compensation image includes: The brightness value of the pixel unit in the i-th row of the original image is replaced with the brightness value of the pixel unit in the i-th row of the compensated image to obtain the i-th frame compensation sequence image; i is a positive integer less than N, where N is the total number of rows of pixel units in the original image; a pixel unit includes Y adjacent pixels, where Y is a positive integer.
5. The method as described in claim 1 or 2, characterized in that, The step of generating N frames of compensation sequence maps based on the original image and the compensation image includes: The brightness value of the i-th column pixel unit in the original image is replaced with the brightness value of the i-th column pixel unit in the compensated image to obtain the i-th frame compensation sequence image; i is a positive integer less than N, where N is the total number of pixel columns in the original image; a pixel unit includes Y adjacent pixels, where Y is a positive integer.
6. The method as described in claim 1 or 2, characterized in that, The step of generating a compensated image based on the original image includes: The original image is preprocessed, and the compensation image is generated based on the preprocessed original image; The preprocessing includes at least one of the following: Identify target regions in the original image whose brightness exceeds a set threshold, and reduce the brightness of the target regions. Reduce the brightness of the original image; The original image is divided into multiple regions, and the brightness of each region is adjusted accordingly. The size of the original image is set according to the size of the display area, and the size of the original image after setting is larger than the size of the display area.
7. The method as described in claim 1, characterized in that, The Q is less than or equal to the N.
8. The method as described in claim 1 or 7, characterized in that, After calculating the number of frames P of the original image and the number of frames Q of the compensation sequence image to be displayed within a preset duration based on the preset display ratio and the total number of frames, and before displaying the original image and the N frames of compensation sequence image with the preset duration as the motion effect cycle, the method further includes: Obtain the screen temperature and determine the temperature coefficient based on the screen temperature; The preset display ratio is adjusted according to the temperature coefficient, or the Q is adjusted according to the temperature coefficient.
9. The method as described in claim 6, characterized in that, The step of displaying the original image and the N-frame compensated sequence image according to preset dynamic display parameters includes: The preprocessed original image and the N-frame compensation sequence diagram are displayed according to preset dynamic display parameters.
10. An electronic device, characterized in that, The method includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1-9.
11. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-9.
Citation Information
Patent Citations
Organic light emitting display device and driving method thereof
KR1020150025987A