Image display method and device, equipment and medium
By sending image frames and screen brightness values on electronic devices during the same transmission cycle, the screen flash problem during HDR/XDR image display is solved, achieving a more stable display effect and avoiding lag problems.
Patent Information
- Application Number
- CN202510290476.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-04-25
AI Technical Summary
When displaying HDR/XDR images on electronic devices, there is a problem of flashing brightness or flashing black, resulting in unstable display effect.
By sending the image frame and screen brightness value in the same transmission cycle, the display screen displays the image frame at this screen brightness value to avoid screen flashing problems. The specific implementation method includes receiving image input, acquiring image frames and screen brightness values, and sending them to the display screen within a safe period, the security period is in a low-level period of the transmission cycle, and the time between the end time and the end time of the transmission cycle is greater than or equal to the preset time.
It effectively avoids the screen flashing problem of bright or black flashing, making the display effect more stable, and solves the lag performance problem introduced by delayed frames for brightness synchronization.
Smart Images

Figure CN119889207A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image display technology, and specifically relates to an image display method, device, equipment and medium. Background Art
[0002] With the development of image technology, in order to meet users' demand for image display effects, images such as high dynamic range (HDR) or extreme dynamic range (XDR) can be displayed on the display screen.
[0003] However, when displaying HDR / XDR image effects on electronic devices, screen flickering problems such as flashing highlights or flashing blacks are prone to occur. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an image display method, device, equipment and medium, which can complete the sending of image frames and screen brightness values in the same sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering of highlights or black flashes.
[0005] In a first aspect, an embodiment of the present application provides an image display method, the method comprising:
[0006] Receiving input of an image;
[0007] In response to the input, an image frame and a screen brightness value corresponding to the image are obtained;
[0008] When the moment when the image frame and the screen brightness value are acquired is in a safe period, the image frame and the screen brightness value are sent to the display screen so that the display screen displays the image frame according to the screen brightness value. The safe period is in a low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to the preset duration.
[0009] In a second aspect, an embodiment of the present application provides an image display device, the device comprising:
[0010] A receiving module, used for receiving an input of an image;
[0011] An acquisition module, used for acquiring an image frame and a screen brightness value corresponding to the image in response to an input;
[0012] A sending module is used to send the image frame and the screen brightness value to the display screen when the moment when the image frame and the screen brightness value are acquired is in a safe period, so that the display screen displays the image frame according to the screen brightness value, the safe period is in a low-level period of the sending cycle, and the duration between the end time of the safe period and the end time of the sending cycle is greater than or equal to a preset duration.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0017] In an embodiment of the present application, the safety period is in a low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to a preset duration. Therefore, if the moment when the image frame and the screen brightness value are acquired is within the safety period, the image frame and the screen brightness value can be sent within the sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering of highlights or black flashes. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic diagram showing an image effect according to an exemplary embodiment;
[0019] Figure 2 is a structural diagram of an electronic device according to an exemplary embodiment;
[0020] Figure 3 is one of schematic diagrams showing an image transmission according to an exemplary embodiment;
[0021] Figure 4 is a second schematic diagram of image transmission according to an exemplary embodiment;
[0022] Figure 5 is a third schematic diagram of image transmission according to an exemplary embodiment;
[0023] Figure 6 is a fourth schematic diagram of image transmission according to an exemplary embodiment;
[0024] Figure 7 is an architecture diagram of an electronic device according to an exemplary embodiment;
[0025] Figure 8 is a flow chart of an image display method according to an exemplary embodiment;
[0026] Fig. 9 A fifth schematic diagram of image transmission according to an exemplary embodiment;
[0027] Fig.10 A sixth schematic diagram of image transmission according to an exemplary embodiment;
[0028] Fig.11 A seventh schematic diagram of image transmission according to an exemplary embodiment;
[0029] Fig.12 An eighth schematic diagram of image transmission according to an exemplary embodiment;
[0030] Fig.13 is a structural block diagram of an image display device according to an exemplary embodiment;
[0031] Fig.14 is a structural block diagram of an electronic device according to an exemplary embodiment;
[0032] Fig.15 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0035] As mentioned in the background technology, with the development of image technology, in order to meet the user's demand for image display effects, images such as HDR / XDR can be displayed on a display screen.
[0036] Dynamic Range (DR) refers to the dynamic range of brightness and color gamut. Compared with Standard Dynamic Range (SDR) images, HDR images have brighter highlights and more detailed shadows, and the layering of the picture is more prominent, which can enhance the sense of reality and improve the visual effect. Figure 1 As shown, an HDR image is generally synthesized by an SDR image and a Gainmap (gain image).
[0037] Gainmap images are black and white images that record brightness information and store data that can restore the original high dynamic range brightness. Devices that support HDR display can combine SDR images with Gainmap images to render high dynamic range images for display on compatible displays. From SDR to HDR to XDR, display brightness and color gamut are greatly enhanced, which can better meet users' needs for visual experience and make the images users see on the display closer to reality.
[0038] In order to make the display screen have the ultimate brightness range display effect, the brightness of the display screen needs to be increased at the same time, but after increasing the screen display brightness, the brightness of the entire screen will be increased. When the graphics processing unit (GPU) synthesizes XDR images, it can only brighten the local area of the image highlight through the gainmap map, while other areas are darkened, including the user interface (UI) outside the image.
[0039] like Figure 2As shown, the electronic device 200 may include an application process (AP) main control chip 210 and a display module 220. The AP main control chip 210 may include a central processing unit (CPU) 211, a GPU 212, a display processing unit (DPU) 213, and a mobile industry processor transmission interface (MIPI TX) 214. The display module 220 may include a display driver chip (DDIC) 221, a dynamic random access memory (DRAM) 222, a mobile industry processor receiving interface (MIPI RX) 223, and a display panel (Panel) 224.
[0040] The process of displaying an image on the Panel 224 of the electronic device 200 may be as follows: the image is read and calculated by the CPU 211, drawn by the GPU 212, synthesized by the DPU 213, and then transmitted to the display module 220 via the MIPI TX 214. The frame data transmitted from the AP main control chip 210 to the display module 220 may be stored in the DRAM 222. The DDIC 221 may read data from the DRAM 222 and send a driving signal and data to the Panel 224 in the form of an electrical signal to control the pixel display and brightness value of the Panel 224.
[0041] The DRAM 222 in the display module 220 generally stores at most one frame of data. In order to prevent screen tearing during simultaneous reading and writing operations, the DDIC 221 will output a tearing effect signal (TE) to the AP main control chip 210 to control the timing of the AP main control chip 210 to send pictures. The TE signal is the hardware vertical synchronization (Vertical Synchronization, Vsync) signal of the AP main control chip 210. The AP main control chip 210 sends pictures according to the rhythm of the hardware Vsync signal. After the software triggers the DPU 213 to send pictures, the DPU 213 will not start sending pictures immediately. The hardware will wait until the rising edge of TE to start sending the first line of data, and the DDIC 221 starts to read data at the falling edge of TE and refreshes it to the Panel 224 from top to bottom. The high level of TE generally lasts for dozens of lines, that is, the reading is a period of time later than the writing. In this way, there will be no screen tearing caused by the speed of writing data to the DRAM 222 faster than the reading. When DDIC 221 refreshes to the last line, it will resend a TE to tell the AP main control chip 210 that the current frame has been refreshed and another frame of new data can be sent. When the AP main control chip 210 does not update the screen, that is, no new frame data is sent, DDIC 221 will refresh the last frame data stored in DRAM 222 to Panel 224. If the self-refresh frame rate of the display module 220 is 120Hz, then the TE signal is also 120Hz.
[0042] like Figure 3 As shown, after the DPU is triggered to send the image at the time corresponding to point 310 of the TE signal, the DPU starts to transmit the n-th frame image at the time corresponding to point 320, completes the transmission at the time corresponding to point 330, and starts to refresh the n-th frame image to the Panel at the time corresponding to point 340 of the TE signal. After the DPU is triggered to send the image at the time corresponding to point 350 of the TE signal, the DPU starts to transmit the n+1-th frame image at the time corresponding to point 360, completes the transmission at the time corresponding to point 370, and starts to refresh the n+1-th frame image to the Panel at the time corresponding to point 380 of the TE signal. When the AP main control chip has no screen update, that is, no new frame data is sent, the DDIC refreshes the n+1-th frame image last stored in the DRAM to the Panel.
[0043] The AP main control chip controls the brightness of the display module by sending a display interface (DSI) command prompt (command, CMD) to DDIC. After receiving the command, DDIC will not change the screen brightness immediately. Like frame data, the screen brightness is also effective on a frame basis. When self-refreshing each line of data, the brightness of each line is changed at the same time. The screen brightness starts to change at the first Vsync signal (TE falling edge) after receiving the brightness (brightness) CMD. When no CMD is sent to modify the brightness value, the panel maintains the last set brightness.
[0044] like Figure 4 As shown, after receiving the brightness CMD at the time corresponding to point 410, the panel starts to change the brightness at the time corresponding to the first falling edge 420 after point 410. After receiving the brightness CMD at the time corresponding to point 430, the panel starts to change the brightness at the time corresponding to the first falling edge 440 after point 430. When the brightness CMD is not sent, the panel maintains the last set brightness value.
[0045] Currently, when HDR / XDR image effects are displayed on electronic devices, they are generally gradually brightened to the XDR display effect. To achieve the XDR display effect immediately when clicking the image (instant single-frame brightening), the software needs to strictly control the screen brightness value and the XDR image frame (local brightening) to take effect in the same frame, otherwise there will be problems of flashing highlights or flashing black screen.
[0046] For example, when the performance is insufficient or the processed image data is complex, the GPU may need nearly one display cycle (close to the rising edge of the next TE signal) to draw the nth frame of XDR image. In this way, the time left for DPU processing is very short, and the trigger frame will be set after the falling edge of TE. In this way, the nth frame of XDR image will not take effect until the T+2th display cycle, and the brightness CMD is set before the falling edge of TE. The screen brightness value takes effect in the T+1th display cycle, that is, the screen brightness value takes effect one display cycle earlier. If you enter the XDR scene, the screen will be brightened first, and then return to normal in the next display cycle, that is, flashing highlights will appear. If you exit the XDR scene, the screen will be dimmed first, and then return to normal in the next display cycle, that is, flashing black will appear.
[0047] In addition, when the DPU is transmitting frame data via MIPI, it cannot send DSI CMD, such as Figure 5As shown, each transmission cycle can be divided into an action (vactive) interval and a blank (vblank) interval. Frame data is transmitted in the vactive interval, and frame data cannot be transmitted in the vblank interval. If no frame data is transmitted in the current cycle, DSI CMD can be sent in both the vactive interval and the vblank interval. If frame data is transmitted in the current cycle, DSICMD can only be sent in the vblank interval. Generally, when sliding or touching the screen, there is an animation that continuously sends images. Therefore, when sending brightnessCMD, if it is sent in a blocking manner, it will be stuck until the frame data is transmitted before it can be processed. For example, if the screen refresh rate is 120Hz, the frame time is only about 8.3ms, and the vblank interval is generally about 10% to 20% of the frame time, that is, there is only about 830us to 1660us to send DSI CMD and frame trigger commands (trigger frame). It is also easy for the screen brightness value and the XDR image frame to take effect in different frames, resulting in flashing highlights or flashing black.
[0048] like Figure 5 As shown, T represents the Tth display cycle, T+1 represents the T+1th display cycle, and T+2 represents the T+2th display cycle. Because the time for the GPU to draw the nth frame of the XDR image is close to the time of a sending cycle, the triggerframe is set when it exceeds the TE falling edge 510, so the nth frame of the XDR image will not take effect until the T+2th display cycle, and the brightness CMD is set at the time corresponding to the point 520 before the TE falling edge. Therefore, the screen brightness value takes effect in the T+1th display cycle, that is, the screen brightness value takes effect one cycle earlier. If you enter the XDR scene, the full screen will be brightened first, and then return to normal in the next cycle, that is, flashing highlights will appear. If you exit the XDR scene, the full screen will be dimmed first, and then return to normal in the next cycle, that is, flashing black will appear.
[0049] If you want to ensure that brightness CMD and trigger frame are set in the same cycle, the software needs to delay setting until the beginning of the next display cycle (TE falling edge), such as Figure 6As shown, vactive is the action interval, vblank is the blank interval, and each adjacent vactive interval and vblank interval constitute a sending cycle. T represents the Tth display cycle, T+1 represents the T+1th display cycle, T+2 represents the T+2th display cycle, a represents the time of sending DSI CMD, and b represents the time of sending the trigger frame of the nth frame image. Since there is no trigger frame in the first sending cycle, there will be no data transmission in the vactive interval of the N+1th sending cycle and no processing at the beginning of the next display cycle. Even if the GPU drawing times out, there is still a whole sending cycle (8.3ms for 120Hz) to send DSI CMD and trigger frame. Waiting until the beginning of the next display cycle to process can solve the screen flickering problem caused by the asynchrony between the screen brightness value and the frame data, but it will cause frame drops, discontinuous animations, and freezes.
[0050] In order to solve the above problems, the embodiments of the present application provide an image display method, apparatus, device and medium, the method comprising: receiving an input of an image; in response to the input, obtaining an image frame and a screen brightness value corresponding to the image; when the moment when the image frame and the screen brightness value are obtained is in a safe period, sending the image frame and the screen brightness value to a display screen, so that the display screen displays the image frame according to the screen brightness value, the safe period is in a low-level period of a sending cycle, and the duration between the end time of the safe period and the end time of the sending cycle is greater than or equal to a preset duration.
[0051] Therefore, the safety period is in the low-level period of the sending cycle, and the duration between the end of the safety period and the end of the sending cycle is greater than or equal to the preset duration. Therefore, if the moment when the image frame and the screen brightness value are obtained is in the safety period, the image frame and the screen brightness value can be sent in the sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering of highlight or black. In addition, the problem of stuttering performance introduced by delayed frame for brightness synchronization is solved.
[0052] The image display method, device, equipment and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0053] The image display method provided in the embodiment of the present application can be applied to application scenarios in which an electronic device is triggered to display an image.
[0054] The image display method provided in the embodiment of the present application may be executed by an electronic device. It should be noted that the above execution entity does not constitute a limitation on the present application.
[0055] like Figure 7 As shown, the software architecture of the electronic device 700 may include: a display framework 710 and a display driver 720 .
[0056] Combine the following Figure 7 The electronic device shown and Figure 8 , the image display method provided in the embodiment of the present application is described in detail.
[0057] Figure 8 The figure is a flowchart of an image display method according to an exemplary embodiment.
[0058] like Figure 8 As shown, the image display method may include the following steps:
[0059] Step 810, receiving an input of an image.
[0060] Here, the input may be an input that triggers display of the image.
[0061] Exemplarily, the image may be an HDR image or an XDR image.
[0062] When a user clicks on a thumbnail of an HDR image or an XDR image in an application, the electronic device can be triggered to display a large image of the HDR image or the XDR image.
[0063] This input can also be used to switch to display HDR images or XDR images in the album.
[0064] It should be noted that the input in the embodiment of the present application can be a click input, or a voice command input, or a specific gesture input, which can be determined according to actual use requirements, and the embodiment of the present application does not limit this. Among them, the specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
[0065] Step 820, in response to the input, obtaining an image frame and a screen brightness value corresponding to the image.
[0066] Here, the screen brightness value may be a screen brightness value that should be set when displaying the image frame.
[0067] The image frame may include the layer of the image, and may also include other layers, such as UI or wallpaper.
[0068] In some implementations, step 820 may include:
[0069] In response to the input, the image frame corresponding to the image and the screen brightness value are bound by the display framework to obtain image information;
[0070] The display driver receives the image information sent by the display framework.
[0071] Here, the image information may include a bound image frame and a screen brightness value.
[0072] Specifically, the display framework can decode the XDR image to obtain the SDR image and the Gainmap. The display framework can control the GPU to synthesize the SDR image and the Gainmap to output a locally brightened XDR image frame layer. If there are other layers, the display framework can also control the darkening of other layers at the same time. The display framework can also bind the processed image frame and the screen brightness value to be set to obtain image information, and transmit the image information to the display driver, so that the image frame and the screen brightness value can be transmitted to the display driver for processing in the same frame.
[0073] In this way, the image frame and the screen brightness value corresponding to the image are bound by the display framework and sent to the display driver, so that the synchronous transmission of the image frame and the screen brightness value can be achieved.
[0074] Step 830, when the moment when the image frame and the screen brightness value are acquired is in a safe period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0075] Theoretically, after the image frame and screen brightness value are obtained, they can be sent to the display screen. However, in order to avoid the problem of screen flickering, it is necessary to ensure that the image frame and screen brightness value are sent within the same sending cycle.
[0076] A single transmission cycle can be the period from one rising edge to the next rising edge of the TE signal. Each transmission cycle can include a safety period, which can be in the low level period of the transmission cycle, and the duration between the end time of the safety period and the end time of the transmission cycle can be greater than or equal to the preset duration. The preset duration can be set according to actual needs. The preset duration can be the shortest duration required for processing the trigger image frame refresh and screen brightness value setting.
[0077] If the image frame and the screen brightness value are sent in a safe period of a certain sending cycle, the sending of the image frame and the screen brightness value can be completed in the sending cycle. Therefore, if the image frame and the screen brightness value are obtained in a safe period, the image frame and the screen brightness value can be directly sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0078] In some implementations, before step 830, the method may further include:
[0079] The moment when the display driver receives the image information is determined as the moment when the image frame and the screen brightness value are acquired.
[0080] That is to say, the moment when the image frame and the screen brightness value are acquired may be the moment when the display driver receives the image information.
[0081] For example, Fig. 9 As shown, when the display driver receives an image frame with a screen brightness value synchronization mark, that is, image information, the current moment can be determined as the moment when the image frame and the screen brightness value are acquired.
[0082] In this way, the moment when the image frame and the screen brightness value are acquired can be determined more clearly, so as to accurately judge the time period of the moment.
[0083] In some implementations, step 830 may include:
[0084] When the image frame and the screen brightness value are acquired in a safe period, the display driver controls the DPU to send the image frame and the screen brightness value to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0085] For example, Fig. 9 As shown in FIG. 1 , when the display driver receives an image frame with a screen brightness value synchronization mark, it can first determine the position of the moment when the image frame and the screen brightness value are obtained in the current sending cycle, and define the period between the moment when the image frame and the screen brightness value are obtained and the start moment (TE rising edge) of the current sending cycle as T set , define the high level period of TE signal in the current sending cycle as T te_high , defines the shortest duration for processing trigger frame refresh and screen brightness setting, that is, the preset duration is T min , then the current sending cycle ends (before the rising edge of TE) before T min The time period is a non-safe period (that is, it cannot be guaranteed that the trigger refresh and the screen brightness value are set to be processed in the same cycle). This non-safe period is defined as T unsafe , and the falling edge of TE to T unsafe The period before is defined as the safe period T safe , then the total duration of a single sending cycle is T frame =T te_high +T safe +T unsafe .
[0086] For example, Fig. 9 As shown, if the moment when the image frame and screen brightness value are obtained is T safe During the period (i.e. T te_high <Tset <T te_high +T safe ), the display driver can directly control the DPU to send CMD to set the screen brightness value A and trigger the refresh of image frame n at the moment of obtaining the image frame and screen brightness value, that is, control the DPU to send CMD to set the screen brightness value A at time a, and control the DPU to trigger the refresh of image frame n at time b. In this way, it can be ensured that the screen brightness value A and image frame n take effect in the same frame at the next falling edge of the TE signal, and there will be no problem of screen flicker due to the screen brightness value and image frame being out of sync. At the same time, there is no delay in the frame being stuck to the next frame processing, which is the same as the normal refresh Figure 1 This will not introduce lag issues.
[0087] In this way, when the image frame and screen brightness value are obtained in a safe period, the display driver can control the DPU to accurately send the image frame and screen brightness value to the display screen at that moment, thereby avoiding the situation where the image frame and screen brightness value cannot be sent within the same sending cycle.
[0088] In some implementations, the low level period may further include a non-safe period, and the non-safe period may be a period in the low level period other than the safe period. The method may further include:
[0089] When the time is in a non-safe period, the image frame and the screen brightness value are sent to the display screen during the safe period of the next sending cycle, so that the display screen displays the image frame according to the screen brightness value.
[0090] Here, a single transmission cycle may include a high level period and a low level period of the TE signal. The low level period may include a safety period and a non-safety period.
[0091] If the moment when the image frame and screen brightness value are obtained is in a non-safe period, if the image frame and screen brightness value are sent starting from the current sending cycle, it cannot be guaranteed that the image frame and screen brightness value will be sent within the same sending cycle. Therefore, the sending of the image frame and screen brightness value can be postponed to the safe period of the next sending cycle.
[0092] In this way, by sending the image frames and screen brightness values to the display screen during the safe period of the next sending cycle when the moment when the image frames and screen brightness values are acquired is in a non-safe period, it is possible to avoid the problem that the image frames and screen brightness values cannot be sent within the same sending cycle, thereby avoiding the problem of screen flickering, such as flashing highlights or flashing black.
[0093] In some implementations, when the time is in a non-safe period, before sending the image frame and the screen brightness value to the display screen in a safe period of the next sending cycle so that the display screen displays the image frame according to the screen brightness value, the method may further include:
[0094] The moment when the display driver receives the image information is determined as the moment when the image frame and the screen brightness value are acquired.
[0095] In some implementations, when the time is in a non-safe period, sending the image frame and the screen brightness value to the display screen in the safe period of the next sending cycle so that the display screen displays the image frame according to the screen brightness value may include:
[0096] When the device is in a non-safe period at any time, the display driver controls the DPU to send the image frame and the screen brightness value to the display screen during the safe period of the next sending cycle, so that the display screen displays the image frame according to the screen brightness value.
[0097] In this way, when the image frame and screen brightness value are acquired in a non-safe period, the display driver can dynamically adjust the processing timing of the DPU and control the DPU to accurately send the image frame and screen brightness value to the display screen within the safe period of the next sending cycle, thereby avoiding the situation where the image frame and screen brightness value cannot be sent in the same sending cycle.
[0098] In some implementations, when the time is in a non-safe period, sending the image frame and the screen brightness value to the display screen in the safe period of the next sending cycle so that the display screen displays the image frame according to the screen brightness value may include:
[0099] When the time is in a non-safe period, determining a first duration based on the time, the non-safe period and a high level period of the next transmission cycle;
[0100] After delaying the first time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0101] Here, the first duration may be the duration that needs to be postponed when the moment is in a non-safe period. The first duration may be the duration between the moment and the end time of the high level period of the next sending cycle.
[0102] The display driver may control the DPU to send the image frame and the screen brightness value to the display screen after delaying the first period of time from the moment when the image frame and the screen brightness value are acquired.
[0103] For example, Fig.10 As shown, if the moment c at which the image frame and screen brightness value are obtained is at T unsafeDuring the period (i.e. T te_high +T safe <T set <T frame ), since the time c is too close to the end time of the current sending cycle, it is also unsafe, so the start of sending can be postponed from time c to after the next falling edge of the TE signal (that is, postponed to the safe period of the next sending cycle), and the first time length that needs to be postponed is T delay =T frame +T te_high -T set , after the first delay, the sending time starts at T safe During the time period, according to the start time after the first delay, control the DPU to send CMD to set the screen brightness value A and trigger the refresh of image frame n. That is, control the DPU to send CMD to set the screen brightness value A at time a, and control the DPU to trigger the refresh of image frame n at time b. This ensures that when the TE signal of the next frame falls, the screen brightness value A and image frame n take effect in the same frame. The refresh will be delayed by 1 frame, but there will be no screen flicker problem. Generally, time c is at T unsafe The probability of the time period is relatively low.
[0104] In this way, the first duration to be postponed can be accurately determined based on the time, non-safe period and high-level period of the next sending cycle, so that the image frame and screen brightness value can be accurately started to be sent within the safe period.
[0105] In some implementations, the sending cycle may further include a high level period, and the method may further include:
[0106] When the current is in a high level period, the image frame and the screen brightness value are sent to the display screen within a safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value.
[0107] Specifically, if the moment when the image frame and the screen brightness value are obtained is in a high level period, due to the short high level period, the image frame cannot usually be sent within the high level period, but the screen brightness value may be sent. Therefore, the falling edge of the TE signal at the end of the high level period will make the screen brightness value effective, while the image frame will not be effective, resulting in flashing high or black. Therefore, the sending of the image frame and the screen brightness value can be postponed to the safe period of the current sending cycle.
[0108] In this way, by sending the image frame and the screen brightness value to the display screen within the safe period of the current sending cycle when the moment when the image frame and the screen brightness value are acquired is in a high level period, it can be avoided that the image frame and the screen brightness value cannot be sent in the same sending cycle, thereby avoiding the problem of screen flickering such as flashing highlights or flashing black.
[0109] In some implementations, when the above-mentioned time is in a high level period, before sending the image frame and the screen brightness value to the display screen within the safe period of the sending cycle so that the display screen displays the image frame according to the screen brightness value, the method may further include:
[0110] The moment when the display driver receives the image information is determined as the moment when the image frame and the screen brightness value are acquired.
[0111] In some implementations, when the moment is in a high level period, sending the image frame and the screen brightness value to the display screen within a safe period of the sending cycle so that the display screen displays the image frame according to the screen brightness value may include:
[0112] When the current is in a high level period, during a safe period of the sending cycle, the display driver controls the DPU to send the image frame and the screen brightness value to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0113] In this way, the display driver can dynamically adjust the processing timing of the DPU when the image frame and screen brightness value are in a high-level period, and accurately control the DPU to send the image frame and screen brightness value to the display screen within the safe period of the current sending cycle, thereby avoiding the image frame and screen brightness value from being unable to be sent in the same sending cycle.
[0114] In some implementations, when the moment is in a high level period, the image frame and the screen brightness value are sent to the display screen within a safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value, including:
[0115] When the moment is in the high level period, determining a second duration based on the moment and the high level period;
[0116] After delaying the second time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0117] Here, the second duration may be the duration that needs to be postponed when the moment is in the high level period. The second duration may be the duration between the moment and the end moment of the high level period.
[0118] For example, Fig.11 As shown, if the moment c at which the image frame and screen brightness value are obtained is at T te_high During the period (i.e. 0 <T set <T te_high ), since the TE high level period is very short, it is also unsafe, so the start of transmission can be postponed to after the falling edge of the TE signal (postponed to T safeThe second time period to be postponed can be T delay =T te_high -T set , so that you can safe During the time period, control the DPU to send CMD to set the screen brightness value A and trigger the refresh of image frame n. That is, control the DPU to send CMD to set the screen brightness value A at time a, and control the DPU to trigger the refresh of image frame n at time b. This ensures that the screen brightness value A and image frame n take effect in the same frame when the TE signal of the next frame falls, and there will be no screen flickering or freeze problems.
[0119] In this way, the second duration can be accurately determined based on the moment when the image frame and the screen brightness value are acquired and the high-level period, so that the image frame and the screen brightness value can be accurately sent within the safe period.
[0120] In some implementations, sending the image frame and the screen brightness value to the display screen may include:
[0121] The two processors of the display driver trigger the sending of image frames and screen brightness values to the display in parallel.
[0122] Here, the processor may be a CPU. The display driver may have two CPUs, one of which may be used to trigger the sending of an image frame, and the other may be used to trigger the sending of a screen brightness value.
[0123] Specifically, through the above embodiment, although the time of starting to send the image frame and the screen brightness value can be controlled at T safe During the period, but T safe The time period is usually only a few milliseconds. If the screen brightness value CMD is sent first and then the refresh image frame is triggered, it is possible that the hardware processing sending CMD takes too long or the CPU scheduling is too slow. It is also possible that the sending of the screen brightness value CMD and the triggering of the refresh image frame are not in the same frame. The software processing of the DPU triggering the refresh image frame and setting the screen brightness value must be completed before the next rising edge of the TE signal, that is, the maximum processing time of the software is T reserve =T frame -T set ,like Fig.12 As shown, T safe is the safe period, T unsafe is a non-safe period, T set T is the period between the moment when the image frame and screen brightness value are obtained and the start moment of the current sending cycle (TE rising edge), te_high Use two threads to control the DPU to trigger the refresh of the image frame on CPU0 and to trigger the setting of the screen brightness value on CPU1. As long as the maximum processing time of one of the threads is less than the maximum processing time of the software, T reserve, it can be ensured that the image frame and screen brightness value are effective at the same time.
[0124] In this way, by introducing a parallel processing mechanism, the time for processing image frames and setting screen brightness values is shortened, further ensuring that the image frames and screen brightness values can take effect at the same time.
[0125] Therefore, the safety period is in the low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to the preset duration. Therefore, if the moment when the image frame and the screen brightness value are obtained is within the safety period, the image frame and the screen brightness value can be sent within the sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering such as flashing highlights or flashing black.
[0126] In the embodiment of the present application, after the image is decoded, the locally brightened image frame processed by the display framework is bound to the screen brightness value and transmitted to the display driver for processing. The display driver dynamically adjusts the timing of DPU image refresh and screen brightness value setting, so that the image frame and screen brightness value take effect in the same cycle. At the same time, multi-threaded parallel processing of image frames and screen brightness value setting is used to ensure brightness synchronization. Single frame instant brightening is achieved, ensuring that the screen brightness and the locally brightened image frame take effect in the same cycle, achieving the effect of XDR / HDR display instant switching, solving the problem of screen flicker, and solving the problem of stuttering performance introduced by delayed frame card for brightness synchronization.
[0127] The image display method provided in the embodiment of the present application can be executed by an image display device. In the embodiment of the present application, an image display device executing the image display method is taken as an example to illustrate the image display device provided in the embodiment of the present application.
[0128] Based on the same inventive concept, the present application also provides an image display device. Figure 4 The image display device provided in the embodiment of the present application is described in detail.
[0129] Fig.13 is a structural block diagram of an image display device according to an exemplary embodiment.
[0130] like Fig.13 As shown, the image display device 1300 may include:
[0131] The receiving module 1301 is used to receive an input of an image;
[0132] An acquisition module 1302 is used to acquire an image frame and a screen brightness value corresponding to the image in response to an input;
[0133] The sending module 1303 is used to send the image frame and the screen brightness value to the display screen when the moment when the image frame and the screen brightness value are acquired is in a safe period, so that the display screen displays the image frame according to the screen brightness value, the safe period is in a low-level period of the sending cycle, and the duration between the end time of the safe period and the end time of the sending cycle is greater than or equal to the preset duration.
[0134] The image display device 1300 is described in detail below, as follows:
[0135] In one embodiment, the low level period also includes a non-safe period, and the non-safe period is a period in the low level period except the safe period. The sending module 1303 can also be used for:
[0136] When the time is in a non-safe period, the image frame and the screen brightness value are sent to the display screen during the safe period of the next sending cycle, so that the display screen displays the image frame according to the screen brightness value.
[0137] In one embodiment, the sending module 1303 may include:
[0138] A first determination submodule, for determining a first duration based on the time, the non-safe period and the high level period of the next sending cycle when the time is in the non-safe period;
[0139] The first sending submodule is used to send the image frame and the screen brightness value to the display screen after delaying the first time length, so that the display screen displays the image frame according to the screen brightness value.
[0140] In one embodiment, the sending cycle also includes a high level period, and the sending module 1303 can also be used to:
[0141] When the current is in a high level period, the image frame and the screen brightness value are sent to the display screen within a safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value.
[0142] In one embodiment, the sending module 1303 may include:
[0143] A second determination submodule, configured to determine a second duration based on the time and the high level period when the time is in the high level period;
[0144] The second sending submodule is used to send the image frame and the screen brightness value to the display screen after delaying the second time period, so that the display screen displays the image frame according to the screen brightness value.
[0145] In one embodiment, the acquisition module 1302 may include:
[0146] A binding submodule, for binding an image frame corresponding to the image and a screen brightness value through a display framework in response to an input, to obtain image information;
[0147] The receiving submodule is used to receive image information sent by the display framework through the display driver.
[0148] In one embodiment, the image display device 1300 may further include:
[0149] A determination module is used to send the image frame and the screen brightness value to the display screen when the image frame and the screen brightness value are obtained in a safe period, so that before the display screen displays the image frame according to the screen brightness value, the moment when the display driver receives the image information is determined as the moment when the image frame and the screen brightness value are obtained.
[0150] In one embodiment, the sending module 1303 may include:
[0151] The third sending submodule is used to send the image frame and the screen brightness value to the display screen through the display driver control display processing unit DPU when the image frame and the screen brightness value are obtained in a safe period, so that the display screen displays the image frame according to the screen brightness value.
[0152] In one embodiment, the sending module 1303 may include:
[0153] The fourth sending submodule is used to control the DPU to send the image frame and the screen brightness value to the display screen through the display driver in the safe period of the next sending cycle when the moment is in the non-safe period, so that the display screen displays the image frame according to the screen brightness value.
[0154] In one embodiment, the sending module 1303 may include:
[0155] The fifth sending submodule is used to send the image frame and the screen brightness value to the display screen through the display driver control DPU within the safe period of the sending cycle when the moment is in the high level period, so that the display screen displays the image frame according to the screen brightness value.
[0156] In one embodiment, the sending module 1303 may include:
[0157] The sixth sending submodule is used to trigger the sending of image frames and screen brightness values to the display screen in parallel through two processors of the display driver.
[0158] Therefore, the safety period is in the low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to the preset duration. Therefore, if the moment when the image frame and the screen brightness value are obtained is within the safety period, the image frame and the screen brightness value can be sent within the sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering such as flashing highlights or flashing black.
[0159] The image display device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0160] The image display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0161] The image display device provided in the embodiment of the present application can achieve Figure 8-12 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0162] In some embodiments, Fig.14 As shown, an embodiment of the present application further provides an electronic device 1400, including a processor 1401 and a memory 1402, wherein the memory 1402 stores programs or instructions that can be executed on the processor 1401, and when the program or instructions are executed by the processor 1401, the various steps of the above-mentioned image display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0163] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0164] Fig.15 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0165] The electronic device 1500 includes but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510 and other components.
[0166] Those skilled in the art will appreciate that the electronic device 1500 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.15 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0167] The user input unit 1507 is used to receive input of an image;
[0168] Processor 1510, for obtaining an image frame and a screen brightness value corresponding to an image in response to an input;
[0169] When the moment when the image frame and the screen brightness value are acquired is in a safe period, the image frame and the screen brightness value are sent to the display screen so that the display screen displays the image frame according to the screen brightness value. The safe period is in a low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to the preset duration.
[0170] Therefore, the safety period is in the low-level period of the sending cycle, and the duration between the end time of the safety period and the end time of the sending cycle is greater than or equal to the preset duration. Therefore, if the moment when the image frame and the screen brightness value are obtained is within the safety period, the image frame and the screen brightness value can be sent within the sending cycle, so that the display screen can display the image frame with the screen brightness value, avoiding the problem of screen flickering such as flashing highlights or flashing black.
[0171] In some embodiments, the low-level period also includes a non-safe period, which is a period in the low-level period other than the safe period. The processor 1510 is also used to send the image frame and the screen brightness value to the display screen during the safe period of the next sending cycle when the processor is in the non-safe period at any time, so that the display screen displays the image frame according to the screen brightness value.
[0172] In this way, by sending the image frames and screen brightness values to the display screen during the safe period of the next sending cycle when the moment when the image frames and screen brightness values are acquired is in a non-safe period, it is possible to avoid the problem that the image frames and screen brightness values cannot be sent within the same sending cycle, thereby avoiding the problem of screen flickering, such as flashing highlights or flashing black.
[0173] In some embodiments, the processor 1510 is further configured to determine the first duration based on the time, the non-safety period, and the high level period of the next transmission cycle when the time is in the non-safety period;
[0174] After delaying the first time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0175] In this way, the first duration to be postponed can be accurately determined based on the time, non-safe period and high-level period of the next sending cycle, so that the image frame and screen brightness value can be accurately started to be sent within the safe period.
[0176] In some embodiments, the sending cycle also includes a high level period, and the processor 1510 is also used to send the image frame and the screen brightness value to the display screen within the safe period of the sending cycle when it is in the high level period at all times, so that the display screen displays the image frame according to the screen brightness value.
[0177] In this way, by sending the image frame and the screen brightness value to the display screen within the safe period of the current sending cycle when the moment when the image frame and the screen brightness value are acquired is in a high level period, it can be avoided that the image frame and the screen brightness value cannot be sent in the same sending cycle, thereby avoiding the problem of screen flickering such as flashing highlights or flashing black.
[0178] In some embodiments, the processor 1510 is further configured to determine the second duration based on the time and the high level period when the time is in the high level period;
[0179] After delaying the second time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
[0180] In this way, the second duration can be accurately determined based on the moment when the image frame and the screen brightness value are acquired and the high-level period, so that the image frame and the screen brightness value can be accurately sent within the safe period.
[0181] In some embodiments, the processor 1510 is further configured to, in response to an input, bind an image frame corresponding to the image and a screen brightness value through a display framework to obtain image information;
[0182] The display driver receives the image information sent by the display framework.
[0183] In this way, the image frame and the screen brightness value corresponding to the image are bound by the display framework and sent to the display driver, so that the synchronous transmission of the image frame and the screen brightness value can be achieved.
[0184] In some embodiments, processor 1510 is further used to send the image frame and the screen brightness value to the display screen when the image frame and the screen brightness value are acquired in a safe period, so that before the display screen displays the image frame according to the screen brightness value, the display driver receives the image information as the moment when the image frame and the screen brightness value are acquired.
[0185] In this way, the moment when the image frame and the screen brightness value are acquired can be determined more clearly, so as to accurately judge the time period of the moment.
[0186] In some embodiments, the processor 1510 is also used to control the display processing unit DPU to send the image frame and the screen brightness value to the display screen through the display driver when the image frame and the screen brightness value are acquired in a safe period, so that the display screen displays the image frame according to the screen brightness value.
[0187] In this way, when the image frame and screen brightness value are obtained in a safe period, the display driver can control the DPU to accurately send the image frame and screen brightness value to the display screen at that moment, thereby avoiding the situation where the image frame and screen brightness value cannot be sent within the same sending cycle.
[0188] In some embodiments, the processor 1510 is also used to control the DPU to send the image frame and the screen brightness value to the display screen through the display driver during the safe period of the next sending cycle when the device is in a non-safe period at any time, so that the display screen displays the image frame according to the screen brightness value.
[0189] In this way, when the image frame and screen brightness value are acquired in a non-safe period, the display driver can dynamically adjust the processing timing of the DPU and control the DPU to accurately send the image frame and screen brightness value to the display screen within the safe period of the next sending cycle, thereby avoiding the situation where the image frame and screen brightness value cannot be sent in the same sending cycle.
[0190] In some embodiments, when the moment is in a high level period, within a safe period of the sending cycle, the display driver controls the DPU to send the image frame and the screen brightness value to the display screen so that the display screen displays the image frame according to the screen brightness value.
[0191] In this way, the display driver can dynamically adjust the processing timing of the DPU when the image frame and screen brightness value are in a high-level period, and accurately control the DPU to send the image frame and screen brightness value to the display screen within the safe period of the current sending cycle, thereby avoiding the image frame and screen brightness value from being unable to be sent in the same sending cycle.
[0192] In some embodiments, processor 1510 is further configured to trigger sending image frames and screen brightness values to a display screen in parallel through two processors of a display driver.
[0193] In this way, by introducing a parallel processing mechanism, the time for processing image frames and setting screen brightness values is shortened, further ensuring that the image frames and screen brightness values can take effect at the same time.
[0194] It should be understood that in the embodiment of the present application, the input unit 1504 may include a graphics processor (Graphics Processing Unit, GPU) 15041 and a microphone 15042, and the graphics processor 15041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1506 may include a display panel 15061, and the display panel 15061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1507 includes a touch panel 15071 and at least one of other input devices 15072. The touch panel 15071 is also called a touch screen. The touch panel 15071 may include two parts: a touch detection device and a touch controller. Other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0195] The memory 1509 can be used to store software programs and various data. The memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1509 may include a volatile memory or a non-volatile memory, or the memory 1509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0196] The processor 1510 may include one or more processing units; in some embodiments, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1510.
[0197] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0198] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory, a random access memory, a magnetic disk or an optical disk.
[0199] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0200] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0201] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0202] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0203] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0204] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image display method, characterized in that: The method comprises: Receiving input of an image; In response to the input, acquiring an image frame and a screen brightness value corresponding to the image; In a case where the moment when the image frame and the screen brightness value are acquired is in a safe period, the image frame and the screen brightness value are sent to a display screen so that the display screen displays the image frame according to the screen brightness value, the safe period is in a low-level period of a sending cycle, and the duration between the end moment of the safe period and the end moment of the sending cycle is greater than or equal to a preset duration.
2. The method according to claim 1, characterized in that The low level period also includes a non-safe period, and the non-safe period is a period of the low level period other than the safe period, and the method further includes: In the case that the moment is in the non-safe period, the image frame and the screen brightness value are sent to the display screen in the safe period of the next sending cycle, so that the display screen displays the image frame according to the screen brightness value.
3. The method according to claim 2, characterized in that In the case where the moment is in the non-safe period, in the safe period of the next sending cycle, the image frame and the screen brightness value are sent to the display screen so that the display screen displays the image frame according to the screen brightness value, including: In the case where the moment is in the non-safe period, determining a first duration based on the moment, the non-safe period and the high level period of the next sending cycle; After delaying the first time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
4. The method according to claim 1, characterized in that: The sending cycle also includes a high level period, and the method also includes: When the moment is in the high level period, the image frame and the screen brightness value are sent to the display screen within the safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value.
5. The method according to claim 4, characterized in that When the moment is in the high level period, the image frame and the screen brightness value are sent to the display screen within the safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value, including: In the case where the moment is in the high level period, determining a second duration based on the moment and the high level period; After delaying the second time period, the image frame and the screen brightness value are sent to the display screen, so that the display screen displays the image frame according to the screen brightness value.
6. The method according to claim 1, characterized in that The step of obtaining, in response to the input, an image frame and a screen brightness value corresponding to the image, comprises: In response to the input, the image frame corresponding to the image and the screen brightness value are bound through the display framework to obtain image information; The image information sent by the display framework is received through a display driver.
7. The method according to claim 6, characterized in that In the case that the moment when the image frame and the screen brightness value are acquired is in a safe period, before sending the image frame and the screen brightness value to a display screen so that the display screen displays the image frame according to the screen brightness value, the method further includes: The moment when the display driver receives the image information is determined as the moment when the image frame and the screen brightness value are acquired.
8. The method according to claim 1, characterized in that In the case that the moment when the image frame and the screen brightness value are acquired is in a safe period, sending the image frame and the screen brightness value to a display screen so that the display screen displays the image frame according to the screen brightness value, comprises: When the moment when the image frame and the screen brightness value are acquired is in a safe period, the image frame and the screen brightness value are sent to the display screen through the display driver control display processing unit DPU, so that the display screen displays the image frame according to the screen brightness value.
9. The method according to claim 2, characterized in that: When the moment is in the non-safe period, sending the image frame and the screen brightness value to the display screen in the safe period of the next sending cycle so that the display screen displays the image frame according to the screen brightness value, including: When the moment is in the non-safe period, the image frame and the screen brightness value are sent to the display screen through the display driver control DPU within the safe period of the next sending cycle, so that the display screen displays the image frame according to the screen brightness value.
10. The method according to claim 4, characterized in that When the moment is in the high level period, the image frame and the screen brightness value are sent to the display screen within the safe period of the sending cycle, so that the display screen displays the image frame according to the screen brightness value, including: When the moment is in the high level period, within the safe period of the sending cycle, the image frame and the screen brightness value are sent to the display screen through the display driver control DPU, so that the display screen displays the image frame according to the screen brightness value.
11. The method according to any one of claims 1 to 10, characterized in that The sending the image frame and the screen brightness value to a display screen comprises: The image frame and the screen brightness value are triggered to be sent to the display screen in parallel through two processors of the display driver.
12. An image display device, characterized in that: include: A receiving module, used for receiving an input of an image; An acquisition module, configured to acquire an image frame and a screen brightness value corresponding to the image in response to the input; A sending module is used to send the image frame and the screen brightness value to a display screen when the moment when the image frame and the screen brightness value are acquired is in a safe period, so that the display screen displays the image frame according to the screen brightness value, the safe period is in a low-level period of the sending cycle, and the duration between the end time of the safe period and the end time of the sending cycle is greater than or equal to a preset duration.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the image display method according to any one of claims 1 to 11 are implemented.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the image display method according to any one of claims 1 to 11 are implemented.