Image display method and device, storage medium and chip
By switching the image display mode when receiving the screenshot instructions, switching from the first display mode to the second display mode for screenshot, the problem of insufficient brightness of HDR image screenshots is solved, and the brightness and user experience of the screenshot image are improved.
Patent Information
- Application Number
- CN202410186421.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2025-08-19
AI Technical Summary
In the prior art, the screenshot image of the HDR image has a low brightness, resulting in a decrease in user experience.
Upon receiving the screenshot instruction, the image display mode is switched from the first display mode to the second display mode, and the brightness range in the second display mode is smaller than the first display mode, and the screenshot is performed to increase the brightness.
Improves the overall brightness of the screenshot image and improves the user experience.
Smart Images

Figure CN120508233A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to an image display method, device, storage medium, and chip. Background Art
[0002] Currently, the image formats on the market include SDR (Standard Dynamic Range) format SDR images, but the display effect of SDR images is poor, so the Ultra HDR (High Dynamic Range) function has been derived. The HDR function is used to convert SDR images into HDR images. HDR images encode additional information based on SDR images, which can display better display effects on the terminal.
[0003] However, when the user triggers the screenshot function of the terminal to take a screenshot of the HDR image, the display brightness of the captured screenshot image is low and the image is dark, resulting in a reduced user experience. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides an image display method, device, storage medium and chip.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an image display method, comprising:
[0006] When a target image is displayed and a screenshot instruction is received, controlling the display mode of the target image to switch from a first display mode to a second display mode; the brightness range of the target image in the first display mode is greater than the brightness range of the target image in the second display mode;
[0007] A screenshot is taken of the target image to obtain a screenshot image.
[0008] Optionally, when the target image is displayed and a screenshot instruction is received, controlling the display mode of the target image to switch from the first display mode to the second display mode includes:
[0009] When the first service displays the target image and the second service issues the screenshot instruction, the first service is controlled to switch from the first display mode to the second display mode.
[0010] Optionally, when the first service displays the target image and the second service issues the screenshot instruction, controlling the first service to switch from the first display mode to the second display mode includes:
[0011] In a case where the first service displays the target image and the second service issues the screenshot instruction, sending the screenshot instruction to the first service;
[0012] Switching from the first display mode to the second display mode is performed by the first service.
[0013] Optionally, after the first service displays the target image and before the second service issues the screenshot instruction, the method further includes:
[0014] The second service is notified of a first indicator that the first service is in the first display mode.
[0015] Optionally, notifying the second service of the first identifier that the first service is in the first display mode includes:
[0016] receiving a first identifier sent by the first service;
[0017] Updating the identifier of the first service to the first identifier in the monitoring interface;
[0018] A first notification message is sent to the second service through the display management service, where the first notification message is used to indicate that there is an update in the identification information in the monitoring interface.
[0019] Optionally, when the first service displays the target image and the second service issues the screenshot instruction, sending the screenshot instruction to the first service includes:
[0020] receiving a second identifier sent by the second service, where the second identifier indicates that the second service has issued the screenshot instruction;
[0021] Updating the identifier of the second service to the second identifier in the monitoring interface;
[0022] A second notification message is sent to the first service through the display management service, where the second notification message is used to indicate that there is an update in the identification information in the monitoring interface.
[0023] Optionally, taking a screenshot of the target image to obtain a screenshot image includes:
[0024] The target image is captured for a first preset duration to obtain the captured image; wherein the first preset duration is greater than the duration of switching from the first display mode to the second display mode.
[0025] Optionally, taking a screenshot of the target image to obtain a screenshot image includes:
[0026] Sending the switching feedback sent by the first service to the second service, wherein the switching feedback includes information that the first service successfully switches from the first display mode to the second display mode;
[0027] The target image is captured by the second service to obtain the captured image.
[0028] Optionally, the method further includes:
[0029] When a screenshot end instruction is received, the mode of displaying the target image is controlled to switch from the second display mode to the first display mode.
[0030] Optionally, upon receiving the screenshot end indication, controlling the display mode of the target image to switch from the second display mode to the first display mode includes:
[0031] Upon receiving the screenshot end instruction, sending the screenshot end instruction to the first service;
[0032] Switching from the second display mode to the first display mode is performed by the first service.
[0033] Optionally, the first display mode is HDR mode, and the second display mode is SDR mode.
[0034] According to a second aspect of an embodiment of the present disclosure, there is provided an image display device, including:
[0035] a switching module configured to, when a target image is displayed and a screenshot instruction is received, control a mode of displaying the target image to switch from a first display mode to a second display mode; wherein a brightness range of the target image in the first display mode is greater than a brightness range of the target image in the second display mode;
[0036] The screenshot module is configured to take a screenshot of the target image to obtain a screenshot image.
[0037] According to a third aspect of the embodiments of the present disclosure, there is provided an image display device, including:
[0038] processor;
[0039] a memory for storing processor-executable instructions;
[0040] Wherein, the processor is configured to:
[0041] Execute the steps of the image display method provided in the first aspect of the embodiment of the present disclosure.
[0042] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image display method provided in the first aspect of the present disclosure are implemented.
[0043] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, comprising a processor and an interface; the processor is used to read instructions to execute the steps of the image display method provided in the first aspect of the present disclosure.
[0044] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0045] When the target image is determined to be in the first display mode, the target image in the first display mode is switched to the second display mode. Therefore, the terminal takes a screenshot of the target image in the second display mode to obtain a screenshot image. The display brightness of both the main area and the edge area of the screenshot image are in the second display mode. Since the display brightness of the screenshot image in the second display mode is greater than that in the first display mode when the terminal takes the screenshot, the display brightness of the screenshot image is improved, thereby enhancing the user experience.
[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0048] Figure 1 The figure is a flowchart of an image display method according to an exemplary embodiment.
[0049] Figure 2 is a schematic diagram showing a target image according to an exemplary embodiment.
[0050] Figure 3 The present invention is a flowchart showing steps for triggering screenshot in an HDR scene according to an exemplary embodiment.
[0051] Figure 4 The present invention is a flowchart showing steps for triggering screenshot in an HDR scene according to an exemplary embodiment.
[0052] Figure 5 The figure is a schematic diagram showing various service registration service tokens according to an exemplary embodiment.
[0053] Figure 6 The figure is a logic diagram showing an image display method according to an exemplary embodiment.
[0054] Figure 7 is a block diagram showing an image display device according to an exemplary embodiment.
[0055] Figure 8 is a block diagram showing an image display device according to an exemplary embodiment. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0057] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.
[0058] For related technologies, see Figure 2 and Figure 3 As shown, the image captured by the terminal includes a main area and an edge area. The main area is the area where the captured image is displayed, and the edge area is the non-image area. The non-image area is usually filled with white in the terminal.
[0059] In the current image display, when the image is in SDR mode, the brightness of the main area and edge area of the image is slightly lower, so the HDR function can be used to process the image, so that the image can be switched from SDR mode to HDR mode. In HDR mode, the brightness of the edge area and main area of the image are significantly increased.
[0060] However, when the backlight brightness of the terminal is relatively high, that is, when the user adjusts the brightness bar of the terminal to a larger value, the edge area may be overexposed due to various factors such as the edge area being white, the terminal backlight brightness being relatively high, and the edge area being brighter after HDR processing. The overexposure of the edge area may irritate the user's eyes, resulting in a poor user experience.
[0061] Based on this, color mapping (tonemapping) can be performed on the edge area to dim the brightness of the edge area to below the brightness of the SDR mode. When the brightness of the edge area is reduced to below the brightness of the SDR mode, the brightness of the edge area becomes significantly darker, thereby reducing the stimulation of the edge area to the human eye.
[0062] However, when the user triggers the screenshot function on the terminal, the edge areas of the image will be captured at a very low brightness, lower than the brightness of the SDR mode. For the main area of the image, the screenshot function will default the main area in HDR mode to the main area in SDR mode. As a result, the brightness of the edge areas captured by the screenshot function is lower than the brightness of the SDR mode, while the brightness of the main area is the brightness of the SDR mode, resulting in the brightness of the entire image appearing dark and gray.
[0063] Based on this, the present disclosure proposes an image display method. Figure 1 is a flow chart showing an image display method according to an exemplary embodiment. Figure 1 As shown, the image display method is used in a terminal and includes the following steps.
[0064] In step S11 , when a target image is displayed and a screenshot instruction is received, the display mode of the target image is controlled to switch from a first display mode to a second display mode.
[0065] The target image is the image currently displayed on the display interface of the terminal; the screenshot instruction is an instruction for instructing to take a screenshot of the target image. The instruction can be screenshot information used to instruct the terminal to take a screenshot, such as an identifier, based on which the terminal can determine that the user has issued a screenshot instruction; it can also be an instruction that is clearly used to instruct the terminal to take a screenshot.
[0066] The display mode of the target image includes a first display mode and a second display mode. The brightness range of the first display mode is greater than the brightness range of the second display mode.
[0067] For example, the second display mode can be SDR mode. The image in SDR mode is a standard dynamic range image used to display content such as TV programs, movies, and online videos. The image in SDR mode has a fixed contrast range and color range, which means that the image in SDR mode is subject to a certain range of limitations in terms of actual brightness and color.
[0068] For example, the first display mode may be an HDR mode. Compared to images in SDR mode, images in HDR mode have a wider brightness range and richer color details. The process of processing images in SDR mode in HDR mode includes: for devices that support the HDR function, these devices can perform color correction (Gainmap) on the image in SDR mode to obtain a gain image; and then superimpose the gain image on the image in SDR mode to obtain an image in HDR mode. For devices that do not support the HDR function, these devices will skip color correction and directly use the image in SDR mode as the output image.
[0069] Among them, color correction can adjust the hue, saturation and brightness of the image, help adjust the color and brightness distribution in the image, make the bright areas in the image brighter, the dark areas darker, and the colors more vivid or softer, thereby improving the visual effect of the image.
[0070] When the terminal's display interface displays a target image in the first display mode and it is determined that the user has triggered the screenshot function, after determining that the screenshot function is used to capture the target image, the captured screenshot image will be darker. In order to improve the overall display brightness of the screenshot image, the mode in which the target image is displayed will be controlled to switch from the first display mode to the second display mode. In the second display mode, the screenshot function will consider both the main area and the edge area of the target image to be at the display brightness in the second display mode. The display brightness of the edge area of the target image in the second display mode is brighter than the display brightness of the edge area of the target image in the first display mode when the screenshot is taken, so the display brightness of the target image is improved.
[0071] For example, if the first display mode is HDR mode and the second display mode is SDR mode, before adopting this solution, when the terminal takes a screenshot, the brightness of the edge area of the target image captured will be lower than the display brightness of the SDR mode, and the brightness of the main area of the target image captured will be the display brightness of the SDR mode; after adopting this solution, the display brightness of the edge area and the main area of the target image captured when the terminal takes a screenshot will both be the display brightness of the SDR mode.
[0072] Overall, although the display brightness of the main area when the terminal takes a screenshot according to this solution is the same as the display brightness of the main area when the screenshot is taken before this solution is adopted, the display brightness of the edge area after the terminal takes a screenshot according to this solution is brighter than the display brightness of the edge area when the screenshot is not taken according to this solution, so the display brightness of the screenshot image obtained by taking a screenshot in this disclosure is improved.
[0073] In step S12, a screenshot is taken of the target image to obtain a screenshot image.
[0074] When the target image is in the second display mode, a screenshot of the target image may be taken, thereby obtaining a screenshot image in the second display mode.
[0075] For example, see Figure 4 As shown, taking the first display mode being HDR mode and the second display mode being SDR mode as an example, when the target image is in HDR mode and the screenshot function is triggered, the HDR mode can be turned off and switched to SDR mode, thereby taking a screenshot of the target image in SDR mode, rather than taking a screenshot of the target image in HDR mode, to obtain a screenshot image with normal colors.
[0076] It is understandable that if the target image displayed by the terminal is in the second display mode, when the terminal takes a screenshot of the target image, it is not necessary to switch the second image in the second display mode.
[0077] Through the above technical solution, if a screenshot is taken of the target image in the first display mode, the brightness of the main area of the screenshot image obtained by the screenshot will be the display brightness in the second display mode, and the brightness of the edge area of the screenshot image will be lower than the display brightness in the second display mode.
[0078] Therefore, when the present disclosure determines that the target image is in the first display mode, it switches the target image in the first display mode to the second display mode, thereby taking a screenshot of the target image in the second display mode to obtain a screenshot image. The display brightness of the main area and edge areas of the screenshot image are both in the second display mode, thereby improving the display brightness of the screenshot image and enhancing the user experience.
[0079] The following describes a specific embodiment involved in the above step S11, which is used to explain how to control various services in the terminal to achieve switching from the first display mode to the second display mode.
[0080] When the first service displays the target image and the second service issues the screenshot instruction, the first service may be controlled to switch from the first display mode to the second display mode.
[0081] The first service and the second service are two different services in the terminal. For example, the first service can be an album service, which is used to display images taken by the terminal; the second service can be a screenshot service and a screen recording service. The screenshot service is used to capture the display interface of the terminal to generate screenshots, and the screen recording service is used to record the display interface of the terminal to generate videos.
[0082] Taking the first service being the album service and the second service being the screenshot service as an example, when the album service displays the target image and the screenshot service issues a screenshot instruction, the display mode of the album service can be controlled to switch from the first display mode to the second display mode.
[0083] In a feasible implementation, when the first service displays the target image and the second service issues the screenshot instruction, the screenshot instruction may be sent to the first service; and the first display mode may be switched to the second display mode through the first service.
[0084] For example, taking the case where the first service is an album service and the second service is a screenshot service, when the album service displays the target image and the screenshot service issues a screenshot instruction, the screenshot instruction is sent to the album service; the display mode of the target image is switched from the first display mode to the second display mode through the album service.
[0085] The first service sending the screenshot instruction to the first service includes: notifying the second service of a first identifier that the first service is in the first display mode, so that the second service can determine that the first service is in the first display mode based on the first identifier.
[0086] For example, you can first receive the first identifier sent by the first service; update the identifier of the first service to the first identifier in the listening interface; send a first notification message to the second service through the display management service, and the first notification message is used to indicate that there is an update to the identifier information in the listening interface.
[0087] See also Figure 5 As shown, the terminal is configured with a first service, a second service, a display management module (DisplayManager), a display management service (DisplayManagerService) and a rendering process (SurfaceFlinger).
[0088] The first and second services send their service tokens to the display management module. The display management module sends the service tokens of each service to the display management service. The display management service then creates a callback list and records the service tokens of each service. For example, if the first service is a photo album service and the second service includes a screenshot service and a screen recording service, the callback list may record the service tokens of the photo album service as 111, the screenshot service as 222, and the screen recording service as 333.
[0089] The display management module exposes an underlying listening interface (HdrInfo). The service identifiers of the first and second services are sent to the display management module via the listening interface. This listening interface bridges the gap between application services and underlying services. Both applications and underlying services can access the listening interface to implement message exchange. The listening interface can record the service status of each service.
[0090] For example, when the first service is displaying a target image in the first display mode, the first service identifier will be updated in the monitoring interface to the first identifier, indicating that the first service is in the first display mode; when the first service is displaying the target image in the second display mode, the first service identifier will be updated in the monitoring interface to the third identifier, indicating that the first service is in the second display mode. For another example, when the second service issues a screenshot instruction, the second service identifier will be updated in the monitoring interface to the second identifier, indicating that the second service has issued the screenshot instruction; when the second service issues a screenshot end instruction, the second service identifier will be updated in the monitoring interface to the fourth identifier, indicating that the second service has ended the screenshot.
[0091] The rendering process is used to update the identifiers of each service in the listening interface and send the updated notification message to each service. As the coordination center of the terminal, the rendering process coordinates the execution timing of each service to ensure that the second service will only take a screenshot of the target image after the first service has switched from the first display mode to the second display mode.
[0092] For example, the first service is the photo album service, the second service is the screenshot service, the first display mode is the HDR mode, and the second display mode is the SDR mode. Figure 6 As shown, when the album service displays the target image, if the album service sets the display mode to HDR mode, the first identifier (HDR identifier) that the album service is in HDR mode will be sent to the rendering process through the buffer, and the rendering process will update the identifier of the album service to the first identifier in the listening interface; at the same time, the rendering process will notify the display management service to traverse the callback list, and filter out the service token of the screenshot service according to the service tokens of each service in the callback list; then, based on the service token of the screenshot service, the first notification message that the identifier of the album service has been updated is sent to the screenshot service; after receiving the first notification message, the screenshot service determines that the identifier information in the listening interface has been updated, and then detects the identifier of the album service in the listening interface. If it is confirmed that the identifier in the album service in the listening interface has been updated to the first identifier, it can be determined that the display mode of the album service is HDR mode.
[0093] Similarly, if the second service is a screen recording service, the above method is also used to let the screen recording service know that the display mode of the album service is HDR mode.
[0094] By notifying the second service of the first identifier that the first service is in the first display mode through the first service, the second service can write the second identifier in the scenario where the first service is in the first display mode, that is, the second service interacts with the underlying service in the scenario where the first service is in the first display mode, rather than writing the second identifier in any scenario, thereby avoiding too complicated calculations. For example, taking the first service as an album service, the second service as a screenshot service, and the first identifier as an HDR identifier as an example, notifying the screenshot service of the HDR identifier through the album service can allow the screenshot indication and the screenshot end indication issued by the screenshot service to be issued in the HDR scenario, rather than in other scenarios such as the SDR scenario, so that the screenshot service interacts with the underlying rendering process when the album service is in HDR mode, avoiding the problem of complex calculations.
[0095] The above process describes the process of updating the identifier of the first service in the listening interface. The following process will describe the process of updating the identifier of the second service in the listening interface, which includes: receiving the second identifier sent by the second service, the second identifier indicating that the second service issues the screenshot indication; updating the identifier of the second service to the second identifier in the listening interface; sending a second notification message to the first service through the display management service, the second notification message is used to indicate that there is an update to the identification information in the listening interface.
[0096] For example, the first service is the photo album service, the second service is the screenshot service, the first display mode is the HDR mode, and the second display mode is the SDR mode. Figure 6 As shown, when the screenshot service issues a screenshot indication, it sends the second identifier of the screenshot service issuing the screenshot indication to the rendering process through the buffer; the rendering process updates the identifier of the screenshot service in the listening interface to the second identifier; at the same time, the rendering process notifies the display management service to traverse the callback list, and filters out the service token of the album service according to the service tokens of each service in the callback list; then, based on the service token of the album service, a second notification message that the identifier of the screenshot service has been updated is sent to the album service; after receiving the second notification message, the album service determines that there is an update to the identifier information in the listening interface, and then detects the identifier of the screenshot service in the listening interface. If it is confirmed that the identifier of the screenshot service in the listening interface has been updated to the second identifier, it can be determined that the screenshot service has issued a screenshot indication, and then the album service can determine that the screenshot service wants to start the screenshot function, and the album service can switch from HDR mode to SDR mode, and then the screenshot service starts to take screenshots of the target image in SDR mode.
[0097] By notifying the first service of the second identifier of the second service, the first service can be informed that the second service has issued a screenshot instruction, so the display mode of the first service can be switched from the first display mode to the second display mode, so that the second service can take a screenshot of the target image in the second display mode.
[0098] After the second service finishes taking the screenshot, the second service will issue a screenshot completion indication. When the rendering process receives the screenshot completion indication, it will control the mode of displaying the target image to switch from the second display mode back to the first display mode.
[0099] For example, when the screenshot end instruction is received, the screenshot end instruction is sent to the first service; and the second display mode is switched to the first display mode through the first service.
[0100] See also Figure 6 As shown, the first service is the photo album service, the second service is the screenshot service, the first display mode is the HDR mode, and the second display mode is the SDR mode. Figure 6 As shown, when the screenshot service issues a screenshot end indication, it will send the fourth identifier of the screenshot end indication to the rendering process through the buffer; the rendering process updates the identifier of the screenshot service to the fourth identifier in the listening interface; at the same time, the rendering process notifies the display management service to traverse the callback list, and filters out the service token of the album service according to the service tokens of each service in the callback list; then, based on the service token of the album service, the third notification message indicating that the identifier of the screenshot service has been updated is sent to the album service; after receiving the third notification message, the album service determines that the identifier information in the listening interface has been updated, and then detects the identifier of the screenshot service in the listening interface. If it is confirmed that the service identifier of the screenshot service in the listening interface has been updated to the fourth identifier, it can be determined that the screenshot service has issued a screenshot end indication, then the album service can determine that the screenshot is over, and the album service can switch from SDR mode to HDR mode.
[0101] By controlling the setting of the first service to switch from the second display mode to the first display mode when the second service finishes taking screenshots, since the display effect of the target image in the first display mode is better than that in the second display mode when the second service does not take screenshots, the target image will be switched from the second display mode back to the first display mode, thereby giving the target image a better display effect.
[0102] In some cases, see Figure 6As shown, the album service first sends the first identifier that it is in HDR mode to the rendering process, and the rendering process sends a first notification message to the screenshot service through the display management service; if the screenshot service issues a screenshot instruction, the screenshot service will send a second identifier to the rendering process; the rendering process sends a second notification message to the album service through the display management service; when the album service determines that the screenshot has started, it will turn off the HDR mode and switch to SDR mode.
[0103] When the screenshot service issues an indication that screenshot capture is complete, the screenshot service will send a fourth identifier to the rendering process; the rendering process will send a third notification message to the album service through the display management service; when the album service determines that screenshot capture is complete, it will turn off the SDR mode and switch to HDR mode.
[0104] The following describes the screenshot timing of the second service, ensuring that the screenshot time of the second service is after the first service switches from the first display mode to the second display mode, and ensuring that the target image captured by the second service is the target image in the second display mode. There are two solutions:
[0105] In a first solution, a screenshot of the target image is taken for a first preset duration to obtain the screenshot image; wherein the first preset duration is greater than the duration of switching from the first display mode to the second display mode.
[0106] The first preset duration is the screenshot duration of the second service.
[0107] For example, the second service starts screenshot at 0ms and ends screenshot at 50ms; since the first service obtains the screenshot start indication after the screenshot start time, it can be assumed that the start time of the switch from the first display mode to the second display mode of the first service is 10ms, and the switch end time is 30ms. During this process, the screenshot duration of the second service is 50ms, and the duration of the first service switching display mode is 20ms, so the screenshot duration of the second service is greater than the duration of the first service switching display mode, and the screenshot end time of the second service, 50ms, is after the switching end time of the first service, 30ms, so the target image captured by the second service is the image after the mode switch is completed, that is, the target image is the image in the second display mode.
[0108] The second solution is to send the switching feedback sent by the first service to the second service; the switching feedback includes information that the first service successfully switches from the first display mode to the second display mode; and the target image is captured by the second service to obtain the captured image.
[0109] After receiving the switching feedback, the second service can take a screenshot of the target image.
[0110] For example, see Figure 6 As shown, taking the example that the first service is the album service and the second service is the screenshot service, after the album service receives the screenshot start instruction from the screenshot service, it will first switch from the first display mode to the second display mode; the album service will then send the switching feedback to the rendering process; the rendering process will send the switching feedback to the screenshot service through the display management service. The screenshot service confirms that the album service has successfully switched from the first display mode to the second display mode based on the switching feedback, and can immediately start taking screenshots of the target image.
[0111] Through the above technical solution, no matter whether the second service takes a screenshot of the target image within the first preset time or the second service takes a screenshot after receiving the switching feedback, it can be ensured that the screenshot timing of the second service is after the timing when the first service switches from the first display mode to the second display mode, so that the target image captured by the second service is in the second display mode, and the captured screenshot image will be brighter, thereby improving the user experience.
[0112] Figure 7 FIG. 1 is a block diagram of an image display device according to an exemplary embodiment. Figure 7 The image display device 700 includes: a switching module 710 and a screenshot module 720.
[0113] The switching module 710 is configured to, when a target image is displayed and a screenshot instruction is received, control the mode of displaying the target image to switch from a first display mode to a second display mode; the brightness range of the target image in the first display mode is greater than the brightness range of the target image in the second display mode;
[0114] The screenshot module 720 is configured to take a screenshot of the target image to obtain a screenshot image.
[0115] Optionally, the switching module 710 includes:
[0116] The switching submodule is configured to control the first service to switch from the first display mode to the second display mode when the first service displays the target image and the second service issues the screenshot instruction.
[0117] Optionally, the first switching submodule includes:
[0118] a first sending submodule, configured to, when the first service displays the target image and the second service issues the screenshot instruction, send the screenshot instruction to the first service;
[0119] The second switching submodule is configured to switch from the first display mode to the second display mode through the first service.
[0120] Optionally, the image display device 700 includes:
[0121] The notification module is configured to notify the second service of a first indicator that the first service is in the first display mode.
[0122] Optionally, the notification module includes:
[0123] A first receiving submodule is configured to receive a first identifier sent by the first service;
[0124] A first updating submodule is configured to update the identifier of the first service to the first identifier in the monitoring interface;
[0125] The first notification submodule is configured to send a first notification message to the second service through the display management service, where the first notification message is used to indicate that there is an update in the identification information in the monitoring interface.
[0126] Optionally, the first sending submodule includes:
[0127] A second receiving submodule is configured to receive a second identifier sent by the second service, where the second identifier indicates that the second service has issued the screenshot instruction;
[0128] A second updating submodule is configured to update the identifier of the second service to the second identifier in the monitoring interface;
[0129] The second notification submodule is configured to send a second notification message to the first service through the display management service, where the second notification message is used to indicate that the identification information in the monitoring interface is updated.
[0130] Optionally, the screenshot module 720 includes:
[0131] The first screenshot submodule is configured to take a screenshot of the target image for a first preset duration to obtain the screenshot image; wherein the first preset duration is greater than the duration of switching from the first display mode to the second display mode.
[0132] Optionally, the screenshot module 720 includes:
[0133] A second sending submodule is configured to send the switching feedback sent by the first service to the second service; the switching feedback includes information that the first service successfully switches from the first display mode to the second display mode;
[0134] The second screenshot submodule is configured to take a screenshot of the target image through the second service to obtain the screenshot image.
[0135] Optionally, the switching module 710 is further configured to control the mode of displaying the target image to switch from the second display mode to the first display mode when a screenshot end indication is received.
[0136] Optionally, the switching module 710 includes:
[0137] A third sending submodule is configured to send a screenshot end indication to the first service when receiving the screenshot end indication;
[0138] The third switching submodule is configured to switch from the second display mode to the first display mode through the first service.
[0139] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0140] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the image display method provided by the present disclosure when the program instructions are executed by a processor.
[0141] Figure 8 FIG1 is a block diagram of an apparatus 800 for image display according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0142] Reference Figure 8 , the apparatus 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .
[0143] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
[0144] The memory 804 is configured to store various types of data to support the operations of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0145] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 800.
[0146] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0147] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0148] The input / output interface 812 provides an interface between the processing component 802 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0149] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect changes in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and temperature changes of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0150] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0151] In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned image display method.
[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions. The instructions can be executed by the processor 820 of the apparatus 800 to perform the above-described image display method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0153] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-on-chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned image display method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned image display method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned image display method.
[0154] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and has a code portion for executing the above-mentioned image display method when executed by the programmable device.
[0155] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0156] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image display method, characterized in that: include: When a target image is displayed and a screenshot instruction is received, controlling a display mode of the target image to switch from a first display mode to a second display mode; The brightness range of the target image in the first display mode is greater than the brightness range of the target image in the second display mode; A screenshot is taken of the target image to obtain a screenshot image.
2. The method according to claim 1, characterized in that When the target image is displayed and a screenshot instruction is received, controlling the display mode of the target image to switch from the first display mode to the second display mode includes: When the first service displays the target image and the second service issues the screenshot instruction, the first service is controlled to switch from the first display mode to the second display mode.
3. The method according to claim 2, characterized in that When the first service displays the target image and the second service issues the screenshot instruction, controlling the first service to switch from the first display mode to the second display mode includes: In a case where the first service displays the target image and the second service issues the screenshot instruction, sending the screenshot instruction to the first service; Switching from the first display mode to the second display mode is performed by the first service.
4. The method according to claim 2 or 3, characterized in that After the first service displays the target image and before the second service issues the screenshot instruction, the method further includes: The second service is notified of a first indicator that the first service is in the first display mode.
5. The method according to claim 4, characterized in that The notifying the second service of the first indicator that the first service is in the first display mode includes: receiving a first identifier sent by the first service; Updating the identifier of the first service to the first identifier in the monitoring interface; A first notification message is sent to the second service through the display management service, where the first notification message is used to indicate that there is an update in the identification information in the monitoring interface.
6. The method according to claim 3, characterized in that When the first service displays the target image and the second service issues the screenshot instruction, sending the screenshot instruction to the first service includes: receiving a second identifier sent by the second service, where the second identifier indicates that the second service has issued the screenshot instruction; Updating the identifier of the second service to the second identifier in the monitoring interface; A second notification message is sent to the first service through the display management service, where the second notification message is used to indicate that there is an update in the identification information in the monitoring interface.
7. The method according to claim 1, characterized in that Taking a screenshot of the target image to obtain a screenshot image includes: The target image is captured for a first preset duration to obtain the captured image; wherein the first preset duration is greater than the duration of switching from the first display mode to the second display mode.
8. The method according to claim 2, characterized in that Taking a screenshot of the target image to obtain a screenshot image includes: Sending the switching feedback sent by the first service to the second service, wherein the switching feedback includes information that the first service successfully switches from the first display mode to the second display mode; The target image is captured by the second service to obtain the captured image.
9. The method according to claim 1, characterized in that The method further comprises: When a screenshot end instruction is received, the mode of displaying the target image is controlled to switch from the second display mode to the first display mode.
10. The method according to claim 9, characterized in that The controlling the mode of displaying the target image from the second display mode to the first display mode when the screenshot end instruction is received includes: Upon receiving the screenshot end instruction, sending the screenshot end instruction to the first service; Switching from the second display mode to the first display mode is performed by the first service.
11. The method according to any one of claims 1 to 10, characterized in that The first display mode is an HDR mode, and the second display mode is an SDR mode.
12. An image display device, characterized in that: include: a switching module configured to, when a target image is displayed and a screenshot instruction is received, control a mode of displaying the target image to switch from a first display mode to a second display mode; wherein a brightness range of the target image in the first display mode is greater than a brightness range of the target image in the second display mode; The screenshot module is configured to take a screenshot of the target image to obtain a screenshot image.
13. An image display device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.
15. A chip, characterized in that: The method comprises a processor and an interface; the processor is used to read instructions to execute the method according to any one of claims 1 to 11.