Image display method and device
By deciding whether to combine and present the image based on the width and height and resolution information of the image on the large-screen device, the problem of redundant areas of vertical images on the large-screen device is solved, which improves the user's browsing experience and the attractiveness of the device.
Patent Information
- Application Number
- CN202310983047.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-08-04
AI Technical Summary
When displaying vertical images on large-screen devices, there are a large number of redundant areas, which reduces the user's browsing experience and affects the value of the product in the user's mind.
By judging the width and height of the image and resolution information, it is determined whether to combine the images to present them, reducing redundant areas and improving the display effect.
It effectively reduces the redundant area displayed on the device screen, improves the image display effect, ensures the user's browsing experience, and enhances the attractiveness of large-screen devices.
Smart Images

Figure CN119449978A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of device technology, and in particular, to an image display method and device. Background Art
[0002] With the rapid development of multimedia and Internet technologies, the massive growth of images is greatly filling the lives of modern people. Various devices that can display images are emerging in an endless stream, such as mobile phones, tablets, monitors, large-screen devices (such as smart screens, TVs), etc.
[0003] However, images include vertical images and horizontal images. For vertical images, when they are presented on a horizontal large-screen device, there will be a large amount of redundant areas on the screen, such as a black background, and the image display effect will be poor. Moreover, for large-screen devices, which already have a large display area, there will still be a large amount of redundant areas, which will greatly reduce the user's large-screen browsing experience and reduce the attractiveness of the large screen to users, thereby affecting the value of the product in the minds of users. Summary of the invention
[0004] The present application provides an image display method and device, which can decide whether to combine and present images based on the width, height and resolution of the images. This reduces the redundant area displayed on the device screen, improves the display effect of the image on the device, and ensures the user's browsing experience.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] A first aspect provides an image display method, which can be applied to a device. In the method, when the device is playing multiple images, after obtaining an image to be displayed, the device can display the image as a single image if it is determined that the image meets a preset condition based on the device's screen information and the width, height, and resolution of the image. If it is determined that the image does not meet the preset condition, the image is displayed in combination with other images that do not meet the preset condition, where the other images are images other than the image in the multiple images.
[0007] The single image display can be understood as the number of images displayed on the entire screen of the device is only one. This application does not limit the way in which the device displays a single image. For example, it can be to enlarge the single image to the maximum size that the screen can display while maintaining the original aspect ratio; or it can be to add template decoration to the image and then display it.
[0008] Combined display can be understood as more than one image being displayed on the entire screen of the device. This application does not limit the way in which the device displays images in combination. For example, at least two images may be displayed simultaneously while maintaining the original aspect ratio of each image (such as in parallel from left to right, or in parallel from top to bottom, or in a four-square grid display); or puzzle display may be implemented based on a puzzle template.
[0009] In the solution provided in the first aspect above, when the device turns on the playback function of multiple images, before presenting each of the multiple images, it can first determine whether the image width and height information and resolution information meet the preset conditions according to the screen information of the device, so as to analyze whether the image is suitable for direct presentation alone. In this way, when the device accurately analyzes that the image is suitable for direct presentation alone on the screen of the device through the two dimensions of image width and height information and resolution information, the device can directly present the image alone. On the contrary, if it is accurately analyzed that the image is not suitable for direct presentation alone, the device can also present it together with other images that are also not suitable for direct presentation, which not only ensures that the user can view the image, but also makes full use of the display area of the device and reduces the redundant area displayed on the device screen. And for large-screen devices, this combined presentation method can reflect the advantages of large-screen display and greatly enhance the attractiveness of large-screen devices to users. It reflects the differentiated processing of different images, that is, the images suitable for direct presentation alone are displayed individually, and the images not suitable for direct presentation alone are displayed in combination.
[0010] In a possible implementation, the screen information of the device includes the screen state and screen resolution of the device. Optionally, the screen state of the device may include a horizontal screen state (the width of the screen is greater than the height) and a vertical screen state (the height of the screen is greater than the width).
[0011] In a possible implementation, the device determines that an image meets the preset condition in the following manner: width and height information of an image matches the screen state of the device, and the resolution of the image matches the screen resolution of the device.
[0012] It can be understood that when the width and height information of the image matches the screen state of the device, there will not be a large amount of redundant area on the screen when the screen directly presents the image alone. If the resolution of this image is relatively high (such as higher than or equal to the screen resolution), the image will be clearer when presented directly on the screen alone, and will not affect the user's browsing experience. Therefore, during the image playback process, the device can analyze whether the image is suitable for direct presentation on the screen alone by judging whether the width and height information and resolution of an image to be presented match the screen of the device. As a result, such width and height-adapted and clear images are directly presented directly on the screen alone.
[0013] In a possible implementation, the device determines that an image does not meet the preset condition in the following manner: width and height information of an image does not match the screen state of the device.
[0014] It is understandable that when the width and height information of an image does not match the screen state of the device, a large amount of redundant area will exist on the screen when the image is directly presented alone. Therefore, during the image playback process, the device can analyze whether the image is suitable for direct presentation alone by judging whether the width and height information of an image to be presented matches the screen state of the device, so that the device can present such images that are not suitable for separate presentation due to the mismatch of width and height in combination with other images that are not suitable for separate presentation.
[0015] In a possible implementation, the device may determine that an image does not meet a preset condition in that: a resolution of the image does not match a screen resolution of the device.
[0016] It is understandable that when the resolution of an image is relatively low, such as much lower than the screen resolution of the device, the image will be blurry when directly presented on the screen, which will affect the user's browsing experience. Therefore, during the image playback process, the device can also determine whether the resolution of an image to be presented matches the screen resolution of the device to analyze whether the image can be presented directly and clearly, so that the device can present such images that are not suitable for separate presentation due to blurriness in combination with other images that are not suitable for separate presentation.
[0017] Optionally, when the device is playing an image, if an image to be presented does not meet any of the two preset conditions, or if both preset conditions are not met, the device can be triggered to combine the image with other images for presentation. In this way, the device can not only combine and present images whose width and height do not match the screen, but also combine and present blurred images (even if the width and height of the image match the screen state of the device).
[0018] In a possible implementation, the resolution of the image matches the screen resolution of the device, which may be: the resolution of the image is greater than or equal to the first resolution. The resolution of the image does not match the screen resolution of the device, which may be: the resolution of the image is less than the first resolution.
[0019] It can be understood that when the resolution of the image is greater than or equal to the first resolution, the resolution of the image can be considered to be high, and when the screen directly presents the image alone, the image blur problem is not likely to occur. Therefore, the device can confirm that the image greater than or equal to the first resolution matches its own screen resolution.
[0020] Optionally, the device may further determine whether the width and height information of the high-resolution image matches its own screen state. If so, the device may determine that the high-resolution image meets the preset conditions, so that the device can present such clear width and height-adapted images separately.
[0021] It can be understood that when the resolution of the image is less than the first resolution, it can be considered that the resolution of the image is low, and when the screen directly presents the image alone, the image is prone to blur. Therefore, the device can confirm that the image with a resolution less than the first resolution does not match its own screen resolution. It can then be determined that the low-resolution image (i.e., blurred image) does not meet the preset conditions. Therefore, the device can combine such low-resolution images (i.e., blurred images) with other images that are not suitable for separate presentation for presentation.
[0022] Optionally, the first resolution may be a minimum resolution designed to provide a better viewing experience when the image is displayed on the device, which may be set by the user, pre-configured in the device, or automatically adapted according to screen resolution information of the device.
[0023] In a possible implementation, when the device is in a horizontal screen state, the width and height information of the above-mentioned one image matches the screen state, and the image is determined to be a horizontal image based on the width and height information of the image. If the width and height information of the above-mentioned one image does not match the screen state, the image is determined to be a vertical image based on the width and height information of the image.
[0024] It can be understood that the image width of a horizontal image is greater than the image height, which is adapted to a device in a horizontal screen state (the screen width is greater than the screen height). When the screen directly presents the horizontal image alone, there will not be a large amount of redundant area on the screen. Therefore, for a device in a horizontal screen state, the device can confirm that the width and height information of the horizontal image matches its own screen state.
[0025] Optionally, the device may further determine whether the resolution of the horizontal image matches the screen resolution. If so, the device may determine that the horizontal image meets a preset condition, so that the device may present such a clear horizontal image separately.
[0026] It can be understood that the image height of a vertical image is greater than the image width, and it is not suitable for a device in a horizontal screen state. When the screen directly presents the horizontal image alone, there will be a large amount of redundant area on the screen. Therefore, for a device in a horizontal screen state, the device can confirm that the width and height information of the vertical image does not match its own screen state. It can then be determined that the vertical image does not meet the preset conditions. Therefore, the device can combine and present the vertical images.
[0027] Optionally, the image display method of the present application may further include: judging whether an image is a horizontal image based on the width and height information of an image; if so, determining that the width and height information of the image matches the horizontal screen state of the device. If not, determining that the width and height information of the image does not match the horizontal screen state of the device. In this way, during the image playback process, a device in the horizontal screen state can judge whether the width information of an image matches its own horizontal screen state by judging whether an image to be presented is a horizontal image.
[0028] Of course, the judgment condition can also be set from the perspective of screen state mismatch. For example, the image display method of the present application can also include: judging whether an image is a vertical image based on the width and height information of an image; if so, determining that the width and height information of the image does not match the horizontal screen state of the device; if not, determining that the width and height information of the image matches the horizontal screen state of the device.
[0029] In a possible implementation, when the device is in a portrait state, the width and height information of the image matches the screen state, and the image is determined to be a portrait image based on the width and height information of the image. If the width and height information of the image does not match the screen state, the image is determined to be a landscape image based on the width and height information of the image.
[0030] It can be understood that the image height of a vertical image is greater than the image width, which is adapted to a device in a vertical screen state (the screen height is greater than the screen width). When the screen directly presents the vertical image alone, there will not be a large amount of redundant area on the screen. Therefore, for a device in a vertical screen state, the device can confirm that the width and height information of the vertical image matches its own screen state.
[0031] Optionally, the device may further determine whether the resolution of the vertical image matches the screen resolution. If so, the device may determine that the vertical image meets a preset condition, so that the device may present such a clear vertical image separately.
[0032] It can be understood that the image width of a horizontal image is greater than the image height, and it is not suitable for a device in a vertical screen state. When the screen directly presents the horizontal image alone, there will be a large amount of redundant area on the screen. Therefore, for a device in a vertical screen state, the device can confirm that the width and height information of the horizontal image does not match its own screen state. It can then be determined that the horizontal image does not meet the preset conditions. Therefore, the device can combine and present the horizontal image.
[0033] Optionally, the image display method of the present application may further include: judging whether an image is a vertical image according to the width and height information of an image; if so, determining that the width and height information of the image matches the vertical screen state of the device; if not, determining that the width and height information of the image does not match the vertical screen state of the device. In this way, during the image playback process, the device in the vertical screen state can judge whether the width information of an image matches its own vertical screen state by judging whether an image to be presented is a vertical image.
[0034] Of course, the judgment condition can also be set from the perspective of screen state mismatch. The image display method of the present application can also include: judging whether an image is a horizontal image according to the width and height information of an image; if so, determining that the width and height information of the image does not match the vertical screen state of the device. If not, determining that the width and height information of the image matches the vertical screen state of the device.
[0035] Optionally, the devices can be divided into devices with fixed placement posture (such as a smart screen hung on a wall) and devices with non-fixed placement posture (such as a vertical screen mobile phone that can be placed vertically normally or rotated 90° to be placed horizontally).
[0036] In one possible implementation, for devices with a fixed placement posture, the screen state is usually fixed. For example, the screen width of a smart screen hung on a wall is usually greater than the height, and the screen state is fixed to a horizontal screen state. Optionally, for devices with a fixed placement posture, the image display method of the present application also includes: obtaining device information of the device, determining the screen type and screen resolution of the device based on the device information, and the screen type is a horizontal screen or a vertical screen; determining the screen state of the device based on the screen type. In this way, the device can read the device attribute information (such as screen width and height) of the device used to display images to identify the screen resolution of the device, and whether the screen of the device is a horizontal screen or a vertical screen. Since the placement posture of the device is fixed, the device can directly determine its screen state based on the screen type.
[0037] Optionally, the device can automatically identify whether the device is a device with a fixed placement posture based on the device attribute information of the device. Optionally, the user can also directly input the screen state of the device for displaying images to the device to specify the screen state of the device.
[0038] In a possible implementation, for devices with non-fixed placement postures, different placement postures will also affect the determination of the screen state. For example, for a portrait-screen mobile phone, the screen state of the portrait-screen mobile phone is a portrait state when it is placed vertically, but the screen state of the portrait-screen mobile phone is essentially a landscape state when it is placed horizontally. Therefore, the device can determine the screen state in combination with the screen type and the device placement posture. That is, the image display method of the present application also includes: obtaining device information of the device; determining the screen type and screen resolution of the device based on the device information, and whether the screen type is a landscape screen or a portrait screen; determining the screen state of the device based on the screen type and the placement posture of the device. In this way, after the device identifies the screen type of the device based on the device attribute information (such as screen width and height), it can accurately determine the screen state of the device by detecting the current placement posture of the device.
[0039] Optionally, when the device screen type is a landscape screen, when the device is normally placed in landscape, its screen state is landscape, but when it is rotated to a specified angle such as 90° and placed vertically, its screen state is portrait. Similarly, when the device screen type is a portrait screen, when the device is normally placed in portrait, its screen state is portrait, but when it is rotated to a specified angle such as 90° and placed horizontally, its screen state is landscape.
[0040] In a possible implementation, when the device determines that an image does not meet a preset condition, the device combines and displays an image with other images that do not meet the preset condition, which may include: when it is determined that an image does not meet the preset condition, caching the image into a cache space, wherein the cache space is used to cache images that do not meet the preset condition among multiple images; when the number of images in the cache space reaches a first number, combining and displaying the images in the cache space. In this way, during the image playback process, when the device determines that an image to be presented does not meet the preset condition, it can determine that the image to be presented is not suitable for separate presentation. At this time, the device can add the image to the cache pool and not display it temporarily until the number of images in the cache pool reaches a certain value, and then combine and present the image with other images added to the cache pool.
[0041] It can be understood that when an image to be presented meets the preset conditions, the device can directly present the image alone without adding it to the buffer pool to wait for combined presentation with other images. This reflects the differentiated processing of images with different width, height and resolution information, that is, images suitable for direct presentation are displayed separately, and images not suitable for direct presentation are added to the buffer pool to wait for combined presentation.
[0042] Optionally, the first number may be the number of combined images formulated for a better viewing experience when displayed on a device, for example, 3 or 2. It may be set by a user, pre-configured in a device, or automatically adapted according to device attribute information of the device (such as screen width and height information of the device).
[0043] In a possible implementation, if an image to be presented does not meet the preset conditions, then after caching the image to be presented into the cache space, the device can detect the number of images cached in the current cache space. When the number of images in the cache space does not reach the first number, the device can temporarily not perform the combined display operation. In this way, during the image playback process, each time the device obtains an image to be displayed, it will determine whether the image meets the preset conditions, so as to determine whether to directly present it separately, or to add it to the cache pool and perform combined display due to the sufficient number of cached images, or to add it to the cache pool and wait for combined display due to the insufficient number of cached images. Based on the above three operations, no matter which operation the device determines to perform, the device can continue to obtain the next image to be displayed and repeat the above judgment process.
[0044] It is understood that when the number of images in the cache space is insufficient, if the next image acquired by the device still does not meet the preset condition, the device may also add the next image to the cache space. If the number of images in the cache space is sufficient, that is, reaches the first number, the device may combine and present the first number of images in the cache space.
[0045] In a possible implementation, after the device combines and presents the first number of images in the cache space, the device may clear the first number of images cached in the cache space. It is understandable that at this time, the images in the cache space have been cleared, and new images that do not meet the preset condition may continue to be cached.
[0046] In a possible implementation, after the device adds a current image to be displayed to the cache space, it may not detect the number of images in the cache space first, but directly continue to determine whether the next image to be displayed meets the preset conditions, until all images are determined, and then detect whether the number of images in the cache space reaches the first number. If so, the number of images in the cache space can be combined and displayed according to a preset combination strategy. The preset combination strategy can be to divide the images in the cache space into multiple groups, and the number of images in each group is not greater than the first number. The device can combine and display the images of each group separately.
[0047] In a possible implementation, when the device is playing multiple images, the image display method of the present application also includes: when an image to be displayed cannot be obtained, if at least two images are cached in the cache space, the images in the cache space are combined and displayed; if one image is cached in the cache space, the image in the cache space is displayed as a single image.
[0048] In one scenario, when the device has finished reading multiple images to be played, the device cannot obtain an image to be displayed. In this scenario, when the device has finished reading multiple images to be played, it will not immediately end the playback of the images, but will first confirm whether the images in the cache space are empty and whether there are still cached images that have not been displayed. After the images that have not been displayed in the cache space are displayed, the playback of the images will be ended.
[0049] It can be understood that when the images cached in the cache space reach the first number, the device will display the first number of images in the cache space in combination, and clear the cache space after the combination display. Therefore, when the device finishes reading multiple images to be broadcast, if it is confirmed that there are still images cached in the current cache space, it can be considered that the number of currently cached images has not reached the first number, resulting in the cached images not being displayed in the cache pool. At this time, the device can display the images that are not displayed in the cache space. And if there is only one image cached in the cache space, the device can directly display this image alone. If there is more than one image cached in the cache space, the device can display these images cached in the cache space in combination.
[0050] Optionally, after the device displays a single image cached in the cache space, the device may clear the cached images in the cache space.
[0051] Optionally, when the device has finished reading multiple images to be played, if the cached images in the cache space are empty at this time, the device may consider that the multiple images have been played and displayed, and the image playback process may be directly ended at this time.
[0052] In one scenario, the device may be unable to obtain an image to be displayed temporarily due to network delay or other reasons. At this time, the device may also first confirm whether there are any undisplayed images cached in the cache space. If so, the device may first present the cached image (display a single image if one is cached, and display a combination of images if more than one is cached) to avoid playback freezes during image playback, which affects the user's browsing experience.
[0053] In a possible implementation, when the images in the cache space include images with appropriate width and height but low resolution, the device will not directly display the image alone because the width and height of the image fit the screen. Instead, the image is scaled geometrically to maintain the original aspect ratio while scaling the image to a certain size so that it has sufficient resolution to be clearly presented. The device then combines the scaled image with other images in the cache space for display. In this way, for an image with appropriate width and height but low resolution, the device can appropriately scale the image geometrically when combining it with other images for presentation, so that the scaled image can be fully and clearly displayed on the screen, and can also be reasonably combined with other images for display.
[0054] It is understandable that when the device has read multiple images to be broadcast, if the cache space only has one image with appropriate width and height but low resolution, the device will present it separately, but it can be scaled proportionally to a certain size and resolution before displaying it separately.
[0055] In a possible implementation, in the process of playing multiple images, an image to be displayed is obtained from the multiple images, including: obtaining at least one image set to be played, the at least one image set including multiple images; in the process of playing at least one image set, reading an image in the at least one image set as the aforementioned image to be displayed according to a preset reading rule. In this way, when the device needs to play multiple images in one or more image sets, it can judge whether the images meet the preset conditions one by one according to a certain rule (such as the original arrangement rule of the image set), and directly display the image as a single image if it meets the conditions, and add the image to the cache space if it does not meet the conditions. If the currently added image can make the number of images in the cache space reach the first number, the device can directly combine and present the images in the cache space. Thereby, the image display rule in the image set is kept consistent with the image reading rule as much as possible.
[0056] In a possible implementation, if the playback type of the at least one image set is loop playback, after reading the last image in the at least one image set, the device may continue to read an image in the at least one image set from the beginning as an image to be displayed according to a preset reading rule. In this way, during the loop playback of multiple images, the device may also decide whether to present the images in combination or individually according to the two dimensions of width, height and resolution of the images.
[0057] For example, when the device is playing multiple images in image set 1 and image set 2 in a loop, after the device reads the last image in image set 1, the device can continue to read images in image set 2, and after reading the last image in image set 2, read images in image set 1 again from the beginning, and repeat this process. It can be understood that if the cache space has cached one or more images when the device re-reads images in image set 1, the combined displayed images may change during the subsequent playback process.
[0058] In a second aspect, an image display device is provided, which can be applied to a device, and has the function of implementing the device behavior in any of the methods in the first aspect and the possible implementation methods of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. In an example, the image display device may include: an acquisition unit and a display unit, etc. Among them, the acquisition unit can be used to acquire an image to be displayed during the process of playing multiple images; the display unit can be used to display the image as a single image when it is determined that the image meets the preset conditions based on the screen information of the device and the width, height information and resolution of the image; the display unit can also be used to display the image in combination with other images that do not meet the preset conditions when it is determined that the image does not meet the preset conditions, and the other images are images other than the image in the multiple images.
[0059] In a possible implementation, the screen information of the device includes the screen state and screen resolution of the device. The screen state of the device may include a horizontal screen state (the width of the screen is greater than the height) and a vertical screen state (the height of the screen is greater than the width).
[0060] The above-mentioned one image satisfies the preset condition, including: the width and height information of the one image matches the screen state of the device, and the resolution of the one image matches the screen resolution of the device. The above-mentioned one image does not satisfy the preset condition, including: the width and height information of the one image does not match the screen state of the device, and / or the resolution of the one image does not match the screen resolution of the device.
[0061] In a possible implementation, the resolution of the image matches the screen resolution of the device, which may be: the resolution of the image is greater than or equal to the first resolution. The resolution of the image does not match the screen resolution of the device, which may be: the resolution of the image is less than the first resolution.
[0062] Optionally, the image display device further comprises: a resolution determination unit, configured to determine whether the resolution of an image is greater than or equal to the first resolution; if so, determine that the resolution of the image matches the screen resolution of the device; if not, determine that the resolution of the image does not match the screen resolution of the device.
[0063] Optionally, the first resolution may be a minimum resolution designed to provide a better viewing experience when the image is displayed on the device, which may be set by the user, pre-configured in the device, or automatically adapted according to screen resolution information of the device.
[0064] In a possible implementation, the screen state of the device is a horizontal screen state, and the width and height information of the image matches the screen state, including: based on the width and height information of the image, the image is determined to be a horizontal image. The width and height information of the image does not match the screen state, including: based on the width and height information of the image, the image is determined to be a vertical image.
[0065] Optionally, the image display device further comprises: a horizontal image judging unit, configured to judge whether an image is a horizontal image according to width and height information of an image; if so, determining that the width and height information of an image matches the horizontal screen state of the device; if not, determining that the width and height information of an image does not match the horizontal screen state of the device.
[0066] Optionally, the image display device further comprises: a vertical image judging unit, configured to judge whether an image is a vertical image according to width and height information of an image; if so, determining that the width and height information of an image does not match the horizontal screen state of the device; if not, determining that the width and height information of an image matches the horizontal screen state of the device.
[0067] In a possible implementation, the screen state of the device is a portrait state, and the width and height information of the above-mentioned one image matches the screen state, and the image is determined to be a portrait image based on the width and height information of the image. The width and height information of the above-mentioned one image does not match the screen state, and the image is determined to be a landscape image based on the width and height information of the image.
[0068] Optionally, the image display device further includes: a vertical image judgment unit, configured to judge whether an image is a vertical image according to width and height information of an image; if so, determining that the width and height information of an image matches the vertical screen state of the device; if not, determining that the width and height information of an image does not match the vertical screen state of the device.
[0069] Optionally, the image display device further comprises: a horizontal image judging unit, configured to judge whether an image is a horizontal image according to width and height information of an image; if so, determining that the width and height information of an image does not match the vertical screen state of the device; if not, determining that the width and height information of an image matches the vertical screen state of the device.
[0070] Optionally, the devices can be divided into devices with fixed placement posture (such as a smart screen hung on a wall) and devices with non-fixed placement posture (such as a vertical screen mobile phone that can be placed vertically normally or rotated 90° to be placed horizontally).
[0071] In a possible implementation, for devices with non-fixed placement postures, different placement postures will also affect the determination of the screen status. Therefore, the above-mentioned image display device also includes: a screen recognition unit, which is used to obtain device information of the device; determine the screen type and screen resolution of the device according to the device information, and the screen type is a horizontal screen or a vertical screen; determine the screen status of the device according to the screen type and the placement posture of the device.
[0072] In a possible implementation, for a device with a fixed placement posture, its screen state is usually fixed. The above-mentioned screen recognition unit can also be used to obtain device information of the device, determine the screen type and screen resolution of the device according to the device information, and the screen type is a horizontal screen or a vertical screen; and determine the screen state of the device according to the screen type.
[0073] In a possible implementation, the image display device further includes: a cache unit, configured to cache an image in a cache space when it is determined that an image does not meet a preset condition, wherein the cache space is used to cache images that do not meet the preset condition among multiple images. The display unit is further configured to combine and display the images in the cache space when the number of images in the cache space reaches a first number.
[0074] In a possible implementation, the first number is preconfigured in the device; or, the first number is determined according to width and height information of the screen of the device.
[0075] In a possible implementation, the above-mentioned display unit is also used for, when an image to be displayed cannot be obtained, if at least two images are cached in the cache space, combining and displaying the images in the cache space; if one image is cached in the cache space, displaying the image in the cache space as a single image.
[0076] In a possible implementation manner, the cache unit is further configured to clear the images in the cache space after the images in the cache space are combined and displayed.
[0077] In a possible implementation manner, the cache unit is further configured to clear the images in the cache space after displaying a single image cached in the cache space.
[0078] In a possible implementation, the acquisition unit is further used to: acquire at least one image set to be played, the at least one image set including multiple images; and in the process of playing at least one image set, read an image in the at least one image set as an image to be displayed according to a preset reading rule.
[0079] In a possible implementation, the acquisition unit is further used to: if the playback type of at least one image set is loop playback, after reading the last image in at least one image set, continue to re-read an image in at least one image set as an image to be displayed according to a preset reading rule.
[0080] In a third aspect, a device is provided, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store program codes, the program codes including instructions, and when the one or more processors execute the instructions, the device executes the image display method in any possible implementation of the first aspect.
[0081] In a fourth aspect, a chip system is provided, which is applied to a device. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of the device and send the signal to the processor, where the signal includes an instruction stored in the memory. When the processor executes the instruction, the device executes the image display method of the first aspect and any possible design thereof.
[0082] In a fifth aspect, a readable storage medium is provided, which includes instructions. When the instructions are executed on a device, the device executes an image display method as in the first aspect and any possible design thereof.
[0083] In a sixth aspect, a program product is provided, which, when executed on a device, enables the device to execute the image display method of the first aspect and any possible design thereof.
[0084] It can be understood that the beneficial effects that can be achieved by the above-mentioned device of the second aspect, the equipment of the third aspect, the chip system of the fourth aspect, the readable storage medium of the fifth aspect, and the program product of the sixth aspect can be referred to the beneficial effects of the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1A user interface schematic diagram provided for related technologies;
[0086] Figure 2 A schematic diagram of the hardware structure of a device provided in an embodiment of the present application;
[0087] Figure 3 A schematic diagram of the software structure of a device provided in an embodiment of the present application;
[0088] Figure 4 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;
[0089] Figure 5 Schematic diagram of the user interface provided in the embodiment of the present application Figure 1 ;
[0090] Figure 6 Schematic diagram of the user interface provided in the embodiment of the present application Figure 2 ;
[0091] Figure 7 A schematic diagram of width and height information of a screen and an image provided in an embodiment of the present application;
[0092] Figure 8 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;
[0093] Fig. 9 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;
[0094] Fig.10 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;
[0095] Fig.11 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;
[0096] Fig.12 Schematic diagram of the user interface provided in the embodiment of the present application Figure 3 ;
[0097] Fig.13 Schematic diagram of the user interface provided in the embodiment of the present application Figure 4 ;
[0098] Fig.14 A module block diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0099] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0100] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0101] In the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0102] Some optional features in the embodiments of the present application may be implemented independently in some scenarios without relying on other features to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in some scenarios as needed.
[0103] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In each embodiment of this application, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0104] At present, various camera devices produce a lot of horizontal (width greater than height) and vertical (height greater than width) photos, with high and low resolutions. When the user's album is displayed on a large-screen device with a horizontal screen (such as a smart screen), the large-screen device usually displays the horizontal and vertical photos directly, or matches the preset display template (such as a four-grid grid, a nine-grid grid, etc.) for display.
[0105] However, when vertical images and blurred photos are displayed on a horizontal screen, the following problems will occur:
[0106] First, when displaying vertical photos on large horizontal screen devices, there is a lot of unused area. Figure 1 As shown in (a) in the figure, black border areas appear on the left and right sides of the vertical image (ie, the screen does not display any content or displays a background mask).
[0107] Second, even if you force the vertical photo to fill the entire screen, the vertical image ratio will be distorted, or the upper and lower ends of the vertical photo will need to be cut off, and only part of the content can be displayed on a large horizontal screen device. Figure 1 As shown in (b), by cutting off the upper and lower ends of the vertical image, the vertical image can be enlarged to cover the entire screen.
[0108] Third, for blurred photos, when playing in full screen on a large horizontal screen device, the display will be blurred. Figure 1 As shown in (c) in the figure, even if the photo is in horizontal orientation, it will be blurred on a large-screen device with horizontal orientation. This will greatly affect the browsing experience for users who have high requirements for clarity.
[0109] Fourth, when displaying horizontal or vertical photos by matching preset display templates, not only do you need to pre-set a large number of templates, but you also need to exhaustively search for templates based on the number of pictures and then match the templates, which is highly dependent on the effect of the templates. For photo types that are not covered by the templates, the aforementioned display problems (i.e., blurriness and the presence of a large number of unused areas) cannot be solved. These problems greatly affect the viewing and browsing experience of users.
[0110] In addition to large-screen devices with horizontal screens, there are also devices with vertical screens (such as mobile phones with vertical screens) used to display images. When the user's photo album is displayed on a vertical screen device, horizontal images and blurred photos will also be displayed on the vertical screen, which will cause the above problems. For example, Figure 1 As shown in (d) in the figure, when a horizontal photo is displayed on a vertical screen mobile phone, black borders appear on the upper and lower sides of the horizontal photo. Figure 1 As shown in (e), by cutting off the left and right ends of the horizontal image, the horizontal image can be enlarged to cover the entire screen. Figure 1 As shown in (f), even if the photo is vertical, it will be blurred on a vertical screen mobile phone. Even if the horizontal and vertical photos are displayed by matching the preset display template, it will be overly dependent on the effect of the template, and the above-mentioned display problem cannot be solved for the photo types not covered by the template.
[0111] In order to solve the above problems, the embodiments of the present application provide an image display method and device, which can adaptively display images according to the two dimensions of width, height and resolution of the image. In this way, the present application can improve the display effect of blurred photos and vertical images on large-screen devices with horizontal screens, and can also improve the display effect of blurred photos and horizontal images on vertical screen devices, reduce the dependence of the display effect on the image resolution and width and height adaptation, and can also reduce the redundant area displayed on the device screen, ensuring the user browsing experience. There is no need to pre-set a large number of templates, nor is there a need to exhaustively enumerate templates according to the number of pictures and then match the templates, which avoids the problem of being unable to improve the display effect due to image types not covered by the templates.
[0112] The device in the embodiment of the present application can be a horizontal screen device with a screen width greater than the screen height, or a vertical screen device with a screen height greater than the screen width. The embodiment of the present application does not impose any special restrictions on the specific form of the device. For example, the device in the embodiment of the present application can be a smart screen, a smart projector, a car machine (such as a car computer), a mobile phone (vertical screen mobile phone, folding screen mobile phone, etc.), a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, and other devices including a display screen.
[0113] See also Figure 2 , Figure 2 A schematic diagram of the structure of a device 100 provided in an embodiment of the present application is shown. Optionally, the device 100 may be a horizontal screen device, such as a smart screen, or a vertical screen device, such as a vertical screen mobile phone.
[0114] like Figure 2 As shown, the device 100 includes a processor 101, a memory 102, a display screen 103, etc.
[0115] The processor 101 includes one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0116] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0117] The processor 101 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
[0118] In the embodiment of the present application, the memory may include a buffer area for temporarily storing the images to be displayed. Optionally, the buffer area can store at most a first number of images to be displayed.
[0119] The display screen 103 is used to display images, videos, etc. In the embodiment of the present application, the display screen 103 can be used to display one image to be displayed in full screen, or it can be used to display multiple images to be displayed in combination.
[0120] The memory 102 can be used to store executable program code, which includes instructions. The memory 102 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a display image function, etc.), etc. The data storage area can store data created during the use of the device 100 (such as images to be displayed, etc.). In addition, the memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 101 executes various functional applications and data processing of the device 100 by running instructions stored in the memory 102 and / or instructions stored in a memory provided in the processor 101.
[0121] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the device 100. In other embodiments, the device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware. For example, the device 100 may also include a camera, a touch sensor, a gyroscope sensor, an acceleration sensor, etc.
[0122] The camera is used to capture a static image or a video. In some embodiments, the device 100 may include 1 or N cameras, where N is a positive integer greater than 1. Optionally, the device 100 may use an image captured by the camera as an image to be displayed.
[0123] The gyroscope sensor can be used to determine the motion posture of the device 100. In some embodiments, the angular velocity of the device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The acceleration sensor can detect the magnitude of the acceleration of the device 100 in various directions (generally three axes). When the device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the device and is applied to applications such as horizontal and vertical screen switching. In an embodiment of the present application, the device 100 can detect the placement posture of the device 100 through a gyroscope sensor and / or an acceleration sensor to determine whether the device is in normal placement or rotated at a certain angle before placement.
[0124] The software system of the device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the layered architecture as an example to exemplify the software structure of the device 100.
[0125] Figure 31 is a software structure diagram of the device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system library, and the kernel layer. The application layer can include a series of application packages.
[0126] like Figure 3 As shown, the application package may include applications (application, APP) such as camera, gallery, calendar, Bluetooth, music, video, and desktop launcher (Launcher). For the convenience of description, the application is referred to as application below. The application on the device can be a native application or a third-party application, which is not limited in the embodiments of the present application.
[0127] In the embodiment of the present application, the application package may also include a screen saver application for turning on and off the screen saver function of the device. If the user turns on the screen saver function of the device through the screen saver application, the device may automatically turn on the playback function of multiple screen saver images when the display screen of the device is in the off screen display state or the lock screen display state. The screen saver image may refer to an image displayed on the display interface of the device in order to protect the user's privacy after the user has not operated the device for a period of time.
[0128] Optionally, the screen saver application may include an image display module for executing the image display method of the embodiment of the present application. The image display module may include hardware and / or software modules corresponding to each function in the image display method. As an example, the image display module may include an acquisition unit and a display unit.
[0129] Among them, the acquisition unit can be used to acquire an image to be displayed during the process of the device playing multiple images; the display unit can be used to display the image as a single image when it is determined that the image meets the preset conditions based on the screen information of the device and the width, height information and resolution of the image; the display unit can also be used to display the image in combination with other images that do not meet the preset conditions when it is determined that the image does not meet the preset conditions, and the other images are images other than the image in the multiple images.
[0130] Optionally, the image display module may further include a cache unit for caching an image into a cache space when it is determined that an image does not meet a preset condition. The above display unit may also be used to combine and display the images in the cache space when the number of images in the cache space reaches a first number.
[0131] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0132] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.
[0133] Among them, the window manager is used to manage window programs. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, browsing history, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a video icon may include a view for displaying text and a view for displaying pictures. The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar. For example, the notification manager is used to notify that image transmission is complete, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, or a notification that appears on the screen in the form of a dialog window.
[0134] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0135] Optionally, the image display module may be deployed in a system library instead of in an application layer. That is, the system library may include an image display function module among the multiple function modules for executing the image display method of the embodiment of the present application.
[0136] Optionally, the above-mentioned image display module can also be deployed in the application framework layer. That is, the application framework layer can include an image display service, which includes hardware and / or software modules corresponding to various functions in the image display method of the embodiment of the present application. It can be understood that the present application does not limit the deployment method of the image display module in the software architecture of the device.
[0137] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple commonly used audio and video formats, as well as static image files. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
[0138] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, input / output device drivers (such as touch screens), device nodes, camera drivers, audio drivers, and sensor drivers.
[0139] Understandably, Figure 3 The layers in the software structure shown and the components included in each layer do not constitute a specific limitation on the device 100. In other embodiments of the present application, the device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
[0140] The methods in the following embodiments can all be implemented in the device 100 having the above hardware structure and software structure.
[0141] Figure 4 FIG. 1 is a flow chart of an image display method provided by an embodiment of the present application. The image display method can be applied to the aforementioned device. Figure 4 As shown, the image display method provided in the embodiment of the present application may include:
[0142] S410: The device obtains an image to be displayed.
[0143] In the embodiment of the present application, when the device turns on the playback function of multiple images, the device can play and display the multiple images one by one. In the process of playing multiple images, the device directly displays each image to be played and displayed as it obtains an image to be played and displayed in the related art. In the embodiment of the present application, the device executes the image display method provided by the present application as it obtains each image to be played and displayed.
[0144] First, when the device is playing multiple images, the device can obtain an image to be displayed from the multiple images. Among them, the multiple images can be images saved on the device. The saved image can be an image taken by the user through the camera on the device, or it can be an image obtained by the device through downloading (network download or APP download), copying, etc. This application does not limit the source of the multiple images. For example, the multiple images can also be images in the web page when the user browses the web on the device, or images received by the device from other devices.
[0145] Optionally, the multiple images are images in a photo album of the device. As a method, the multiple images can be images selected by the user in the photo album of the device.
[0146] Optionally, the device may display the images in the album in the form of groups (e.g., folders). As one approach, the device's album includes at least one image group. Each image group may include at least one image. When the device detects that the user instructs to play one or more image groups, the device may use the images in the one or more image groups instructed to play by the user as the multiple images to be played.
[0147] In one scenario, taking a vertical screen mobile phone as an example, when the mobile phone detects that the user clicks Figure 5 After clicking the album icon 501 shown in (a) of FIG. 1 , the mobile phone opens the album and displays the following Figure 5 The interface shown in (b) in FIG. 1 includes multiple image groups. When the mobile phone detects that the user clicks Figure 5 After the operation of the camera group 502 shown in (b) of FIG. 1 , the mobile phone may display the following Figure 5 The interface shown in (c) in FIG. 5 includes thumbnails of all images in camera group 502. When the mobile phone detects that the user clicks Figure 5 After the function control 503 shown in (c) is operated, the mobile phone may display the following Figure 5 The function menu shown in (d) in the figure may include an adaptive play option 504, which is used to trigger the device to play the images in the current camera group 502. After the mobile phone detects that the user clicks on the adaptive play option 504, the mobile phone can start the play function of all images in the camera group 502, read one image in the camera group 502 in a certain order as an image to be displayed, and play and display it. Figure 5 (e) and Figure 5 As shown in (f) in FIG. 1 , the mobile phone enters the image playback page and automatically switches and plays all images in camera group 502 one by one, that is, after playing one image, the next image is played immediately. Optionally, the mobile phone can switch and play one image every preset time.
[0148] It is understandable that after the current mobile phone opens the function of playing multiple images, each time an image to be displayed is obtained, the image to be displayed is usually displayed directly as a single image. When the single image displayed is a horizontal image, a large number of redundant display areas are likely to appear. Figure 5 (e) and Figure 5 When a single image is displayed as a blurred image, there is a problem of blurred display, such as Figure 1 As shown in (f) in .
[0149] Optionally, the multiple images are images in the photo album of other devices, that is, the images in the photo album of other devices can be shared to the device and played and displayed by the device.
[0150] In one scenario, taking a large-screen horizontal smart screen as an example, images in a mobile phone album can be shared to the smart screen for playback and display. Figure 6 As shown in (a), when the smart screen 601 and the mobile phone 602 have both activated the near field communication (NFC) function, when the user needs to share the images in the album on the mobile phone 602 to the smart screen, the user can turn on the sharing function on the mobile phone, select at least one image to be shared or select the image group to be shared, and send it to the smart screen that is connected to the mobile phone. In this way, the smart screen can obtain at least one image or an image in the image group shared by the mobile phone. The connection between the mobile phone and the smart screen can be established through Bluetooth, or the user can touch the mobile phone 602 with the remote control 603 of the smart screen 601, or directly touch the smart screen 601 to quickly establish a connection.
[0151] Alternatively, if Figure 6 As shown in (a) in the figure, when the user needs to share an image in the album on the mobile phone 602 with the smart screen, the smart screen 601 can also display a prompt to prompt the user to use NFC for wireless connection, such as "Please turn on the NFC of your mobile phone and touch the remote control", so that the user can understand how to establish a connection between the mobile phone and the smart screen. After the mobile phone 602 touches the remote control 603, the mobile phone 602 can establish a connection with the smart screen 601 based on the data transmitted by NFC during the touch, so that the mobile phone 602 and the smart screen 601 can exchange information through the established connection. For example, Figure 6 As shown in (b) in FIG. 1 , the smart screen 601 can obtain the album content selected by the user to be shared on the mobile phone 602 through the established connection and display it. Thus, the user can directly operate the shared album content on the smart screen.
[0152] When the user performs a playback operation on one or more image groups (such as a camera group) on the smart screen, the smart screen can start the playback function of the images in the one or more image groups, that is, read one image in the one or more image groups at a time in a certain order as an image to be displayed, and play and display it, such as Figure 6 As shown in (c) in the figure. It can be understood that in the current smart screen, when playing multiple images, each image to be played and displayed is usually displayed directly. When displaying a vertical image, a large number of redundant display areas are likely to appear, such as Figure 1When a blurred image is displayed, there is a problem of blurred display, such as Figure 1 As shown in (c) in .
[0153] Optionally, the mobile phone and the smart screen can also log in to the same account. For example, the smart screen can display a QR code for logging in to the account, and the user can scan the QR code displayed on the smart screen with the mobile phone to authorize the login of the mobile phone account. After the user successfully authorizes the login, the user can directly browse the album content on the mobile phone through the smart screen. For example, after the smart screen detects the user's playback operation on the camera group in the album content, the smart screen can automatically play all images in the camera group.
[0154] In one scenario, the device enables the playback function of multiple images, or the device enables the playback function of multiple wallpapers. For example, when a user activates the dynamic wallpaper function on the device, if the display screen of the device is in a preset state, the device needs to display the wallpaper, and the playback function of multiple wallpapers can be enabled accordingly. The preset state may be an always on display (AOD) state, a lock screen display state, or a desktop display state. The wallpaper may refer to the display background of the display interface of the device.
[0155] In one scenario, the device starts the playback function of multiple images, or the device starts the screen saver function. When the user starts the screen saver function on the device, if the display screen of the device is in the off screen display state or the lock screen display state, the device needs to display the screen saver image, and the playback function of multiple screen saver images can be turned on. Among them, the screen saver image can refer to the image displayed on the display interface of the device after the user does not operate the device for a period of time in order to protect the user's privacy.
[0156] Optionally, to meet the personalized needs of users, users can customize the wallpaper or screen saver image of the device. When the user selects multiple images or at least one image in the image set on the device, sets them as wallpaper or screen saver images, and successfully applies the settings, the device can automatically turn on the playback function of multiple wallpapers or screen saver images when displaying the wallpaper or screen saver image. That is, from the multiple images or at least one image set selected by the user when setting the wallpaper, an image is read in a certain order as a wallpaper or screen saver image to be displayed, and played and displayed. It can be understood that the above-mentioned method of obtaining multiple images by the device is only an example, and the present application does not limit the method of obtaining multiple images, which may also be other methods.
[0157] S420: When it is determined that an image meets a preset condition based on the screen information of the device and the width, height and resolution of the image, the device displays the image as a single image.
[0158] In the embodiment of the present application, after the device acquires an image to be displayed, when the image needs to be presented on the device, the device may first determine the attribute information of the image to determine whether the attribute information of the image meets a preset condition. The preset condition may be a condition that an image is suitable for being displayed alone on the device screen.
[0159] The attribute information of an image may include the width, height and resolution of the image. The width and height information may be used to analyze whether there is a large amount of redundant area when an image is displayed on a device. The resolution may be used to analyze whether there is a problem of blurring when an image is displayed on a device.
[0160] The width and height information may refer to the size of the image, which can determine whether the overall shape of the image is vertical or horizontal.
[0161] Optionally, the width and height information may include a width value W and a height value H. The units of the width and height may be length units, such as centimeters, decimeters, meters, etc., or may be the number of pixels. Taking the number of pixels as an example, if the width value W of an image is 720 and the height value H is 480, it means that each row of the image includes 800 pixels and each column includes 600 pixels.
[0162] Optionally, the aspect ratio information may also include an aspect ratio, that is, a ratio between a width value W and a height value H, such as 4:3, 9:16, etc.
[0163] Resolution refers to the amount of data stored in an image (i.e., the number of pixels), which determines the fineness of the image. Generally, the higher the resolution of an image, the more pixels it contains, and the clearer the image. If the image does not contain enough data (low resolution), and the image is enlarged to a larger size for viewing, the image will appear quite rough and blurry.
[0164] As a way, the resolution can be expressed by the number of pixels in each direction, which can be expressed in the form of "horizontal number of pixels × vertical number of pixels" in the picture. For example, the resolution information of the image can be: 720×480, 480×640, 352×288, 240×320, 176×144, 96×28, etc. It can be understood that in this representation, the resolution of the image can also correspond to the size of the image, that is, the horizontal number of pixels is the width value W of the image, and the vertical number of pixels is the height value H of the image.
[0165] As another way, the resolution may also be expressed by pixels per inch (PPI) or pixels per centimeter (PPC).
[0166] As another way, the resolution can also be expressed by the number of pixels per row in the horizontal direction. For example, nK resolutions such as 2K resolution, 3K resolution, 4K resolution, and 8K resolution are used to indicate that the number of horizontal pixels is close to n times 1024 or close to nK.
[0167] It is understood that the embodiment of the present application does not limit the representation method of the width and height information and the resolution. For example, the resolution can also be represented by the size of the image in MB.
[0168] In the present application embodiment, Figure 7 As shown in (a) in the figure, when the user looks directly at the screen of the device, the side of the screen parallel to the user's eyes is called the wide side of the device, and the size of the wide side is the width of the screen. The side of the screen perpendicular to the wide side is called the high side of the device, and the size of the high side is the height of the screen.
[0169] Similarly, if Figure 7 As shown in (b) in the figure, when a user looks directly at an image, the side of an image that is parallel to the user's eyes is called the wide side of the image, and the size of the wide side is the width of the image. The side of an image that is perpendicular to the wide side is called the high side of the image, and the size of the high side is the height of the image.
[0170] In the embodiment of the present application, the device can determine whether an image meets the preset conditions based on its own screen information and the width, height and resolution of the image. If so, the device can consider that the image is suitable for direct presentation alone. At this time, the device can display the image as a single image.
[0171] The single image display can be understood as the number of images displayed on the entire screen of the device is only one. This application does not limit the way in which the device displays a single image. For example, it can be to enlarge the single image to the maximum size that the screen can display while maintaining the original aspect ratio; or it can be to add template decoration to the image and then display it.
[0172] The preset conditions satisfied by an image may be set by a user, pre-configured in a device, or automatically adapted according to the screen size, screen resolution, or usage scenario of the device.
[0173] Optionally, the device may determine whether the width and height information and the resolution of an image satisfy respective corresponding conditions to determine whether the image satisfies a preset condition.
[0174] The device may determine whether the width and height information of an image to be displayed meets a first preset condition. The first preset condition may refer to the width and height condition of an image when it can cover the entire screen area or cannot approximately cover the entire screen area (i.e., there is a small black border area around the image) when the image is displayed on the device.
[0175] It can be understood that for different screens (such as horizontal screens or vertical screens), the image width and height conditions when the image can fill the entire screen area or cannot approximately fill the entire screen area (that is, there is a small black border area around the image) are also different. Therefore, the device can reasonably set the first preset condition based on its own screen information.
[0176] For example, for a large-screen device with a horizontal screen, the first preset condition may be that the overall shape of an image to be displayed is a horizontal shape (horizontal image), or the width value of an image to be displayed is greater than the height value. Since the image is in a horizontal shape and is adapted to the large-screen device with a horizontal screen, the image can fill or nearly fill the entire screen area when displayed on the large-screen device with a horizontal screen.
[0177] The device may also determine whether the resolution of an image to be displayed satisfies a second preset condition. The second preset condition may refer to an image resolution condition when the image to be displayed can be clearly displayed when displayed on the device.
[0178] For example, the second preset condition may be that the resolution of an image to be displayed is greater than or equal to the screen resolution of the device. Since the screen resolution is met, the image to be displayed can achieve the optimal screen display effect when displayed on the device, and there will be no problem of blurred display.
[0179] It is understandable that for different screens (such as horizontal screens or vertical screens), the image resolution conditions when the image can be clearly displayed are also different. Therefore, the device can reasonably set the second preset condition according to its own screen information.
[0180] In the embodiment of the present application, when the attribute information of an image to be displayed satisfies the above two preset conditions at the same time, it can be considered that the image is suitable for single presentation in terms of both width, height and resolution, and when it is presented on the screen of the device, there will be neither a large amount of redundant areas nor display blur. At this time, the device can be triggered to directly display the image separately.
[0181] In some scenarios, the device may successively judge the width, height and resolution information of an image to be displayed based on the above preset conditions. When the information judged first meets the corresponding preset conditions, the device may continue to judge the subsequent information to determine whether the image meets the preset conditions, thereby determining whether the image can be directly displayed alone.
[0182] Optionally, when the information determined later does not satisfy the corresponding preset condition, the device may deem that the image to be displayed is not suitable for separate presentation, that is, it is confirmed that the image does not satisfy the preset condition.
[0183] In some scenarios, the device may also simultaneously determine the preset conditions for the width and height information and the resolution information of an image to be displayed. It is understood that the embodiment of the present application does not limit the determination order of the preset conditions for the width and height information and the resolution information of an image to be displayed.
[0184] In one scenario, when the resolution information is expressed in the form of "horizontal number of pixels × vertical number of pixels", the device can directly obtain the resolution information of an image to be displayed, and determine whether the width and height information of the image to be displayed meets the first preset condition only through the resolution information, and determine whether the resolution information of the image to be displayed meets the second preset condition.
[0185] For example, for a large-screen device with a horizontal screen, taking the first preset condition that the width value of an image to be displayed is greater than the height value, and the second preset condition that the resolution of an image to be displayed is greater than or equal to 720×480 as an example, if the resolution information of an image to be displayed obtained by the device is 1080×720, the device can analyze the image width value 1080 based on the resolution information to be greater than the image height value 720, and the image resolution 1080×720=777600 is greater than 720×480=345600. Thus, the device can determine that the width and height of the image to be displayed meet the first preset condition, and the resolution meets the second preset condition. At this time, the device can confirm that the image is suitable for single presentation, that is, directly display the image to be displayed as a single image.
[0186] S430: When it is determined that an image does not meet the preset condition, the device combines the image with other images that do not meet the preset condition for display, where the other images are images other than the image in the plurality of images.
[0187] In the embodiment of the present application, when the device determines that an image to be displayed does not meet the preset condition, it can be considered that the image is not suitable for presentation alone. The device can display the image in combination with other images that do not meet the preset condition.
[0188] The combined display of images can be understood as the number of images displayed on the entire screen of the device being more than one, which can achieve the effect of displaying multiple images on the screen of the device at the same time. This presentation effect is different from the effect of presenting a single image on the screen in full screen.
[0189] In the embodiment of the present application, the device can determine whether the consistent image meets the preset conditions based on its own screen information and the width, height and resolution of an image. If not, the device can consider that the image is not suitable for direct presentation alone. At this time, the device can display the image in combination with other images that do not meet the preset conditions.
[0190] Optionally, the device may determine whether at least one of the width, height and resolution of an image does not meet the corresponding preset condition. If so, the device may consider that the image to be displayed is not suitable for direct presentation alone. At this time, the device may display the image in combination with other images that do not meet the preset condition.
[0191] The device may determine whether the width and height information of an image to be displayed meets the first preset condition, and determine whether the resolution of an image to be displayed meets the second preset condition.
[0192] When the attribute information of an image to be displayed does not meet any of the above two preset conditions, it can trigger the device to display the image to be displayed in combination with other images that do not meet the preset conditions. That is, when the width and height information of an image to be displayed does not meet the above first preset condition, and / or the resolution of an image to be displayed does not meet the above second preset condition, it can be confirmed that the image does not meet the preset conditions and is not suitable for single presentation.
[0193] It can be understood that when the width and height information of an image to be displayed does not meet the first preset condition, it can be considered that the width and height of the image are not compatible with the screen of the device, and when the image is displayed on the screen of the device, there will be a large amount of redundant area. Therefore, the device determines that the image is not suitable for presentation alone, and can display it in combination with other images that do not meet the preset conditions.
[0194] It can be understood that when the resolution of an image to be displayed does not meet the second preset condition, it can be considered that the resolution of the image is not compatible with the screen of the device, and when the image is displayed on the screen of the device, there will be a problem of image blur, affecting the browsing experience of the user. Therefore, the device determines that the image is not suitable for presentation alone, and can display it in combination with other images that do not meet the preset conditions.
[0195] In some scenarios, when the device successively performs the above preset condition judgment on the width and height information and resolution information of an image to be displayed, when the information judged in advance does not meet the corresponding preset condition, the device can directly confirm that the image to be displayed is not suitable for single presentation and does not meet the preset condition. The device can combine the image to be displayed with other images that do not meet the preset condition for display without performing the subsequent information judgment. On the contrary, when the information judged in advance meets the corresponding preset condition, the device continues to perform the subsequent judgment to determine whether the image meets the preset condition, so as to determine whether to present it alone or to present it in combination with other images that do not meet the condition.
[0196] Optionally, when the information judged later does not meet the corresponding preset conditions, the device may consider that the image to be displayed is not suitable for presentation alone, that is, it can be confirmed that the image to be displayed does not meet the preset conditions and needs to be presented in combination with other images that do not meet the conditions.
[0197] Optionally, when the information determined later also meets the corresponding preset conditions, the device may consider that the image to be displayed is suitable for direct presentation alone in terms of both width, height and resolution, that is, there will be neither a large amount of redundant display area nor display blur. Therefore, the device may directly display the image to be displayed as a single image.
[0198] For example, after acquiring an image to be displayed, the device may first determine whether the width and height information of the image to be displayed meets the first preset condition. If not, the device directly determines that the image to be displayed does not meet the preset condition and needs to be displayed in combination with other images. If it does, the device continues to determine whether the resolution information of the image to be displayed meets the second preset condition. If not, the device directly determines that the image to be displayed does not meet the preset condition and needs to be displayed in combination with other images. If it also meets, the device directly determines that the image to be displayed meets the preset condition, and the device can directly display the image alone.
[0199] For another example, after acquiring an image to be displayed, the device may first determine whether the resolution information of the image to be displayed meets the second preset condition. If not, the device directly determines that the image to be displayed does not meet the preset condition and needs to be displayed in combination with other images. If satisfied, the device continues to determine whether the width and height information of the image to be displayed meets the first preset condition. If not, the device directly determines that the image to be displayed does not meet the preset condition and needs to be displayed in combination with other images. If satisfied, the device can directly determine that the image to be displayed meets the preset condition, and the device can directly display the image alone.
[0200] In this way, before presenting an image, the device can adaptively display a high-resolution image with a suitable width and height directly as a single image, and display images with incompatible width and height or low resolution in combination.
[0201] Optionally, when the device detects that multiple images need to be played, or when the device detects that the user selects to play an image in a certain image group, the device can prompt the user through a prompt box whether to turn on the adaptive image playback function. If the user agrees to turn on the adaptive image playback function, the device can execute the image display method provided by this application, and determine whether the image is presented alone or in combination with other images based on the two dimensions of image width and height information and resolution information.
[0202] In the image display method provided by the embodiment of the present application, when the device turns on the playback function of multiple images, before presenting each of the multiple images, it can first determine whether the image width and height information and resolution information meet the preset conditions according to the screen information of the device, so as to analyze whether the image is suitable for direct presentation alone. In this way, when the device accurately analyzes that the image is suitable for direct presentation alone on the screen of the device through the two dimensions of image width and height information and resolution information, the device can directly present the image alone. On the contrary, if it is accurately analyzed that the image is not suitable for direct presentation alone, the device can also present it in combination with other images that are also not suitable for direct presentation, which not only ensures that the user can view the image, but also makes full use of the display area of the device and reduces the redundant area displayed on the device screen. And for large-screen devices, this combined presentation method can reflect the advantages of large-screen display and greatly enhance the attractiveness of large-screen devices to users. It reflects the differentiated processing of different images, that is, the images suitable for direct presentation alone are displayed individually, and the images not suitable for direct presentation alone are displayed in combination.
[0203] Figure 8 FIG. 1 is a flow chart of another image display method provided by an embodiment of the present application. The image display method can be applied to the aforementioned device. Figure 8 As shown, the image display method provided in the embodiment of the present application may include:
[0204] S810: The device obtains at least one image set to be played, where the at least one image set includes multiple images.
[0205] The at least one image set to be played may be a group of images selected by the user to be played and displayed by the device, which may be a certain group of images in an album or all images in an album. The album here may be the device's own album or an album of another device for sharing on the device for display.
[0206] S820: The device reads an image in at least one image set as an image to be displayed according to a preset reading rule, and executes the following judgment logic for each image in at least one image set, wherein the judgment logic may include S830 to S890.
[0207] The preset reading rule may be to read the images in sequence according to the original arrangement rules of the multiple images in at least one image set, such as arrangement by time, arrangement by size, arrangement by name, etc. It may also be to read the images in sequence according to the arrangement rules set by the user.
[0208] According to the preset reading rules, each image read by the device can be used as the above-mentioned image to be displayed, and the device determines whether it can be displayed directly or in combination.
[0209] In the embodiment of the present application, the device can comprehensively determine whether the current image to be displayed can be displayed directly or in combination with other images based on the width and height information and resolution information of the image to be displayed.
[0210] The present application does not limit the order of judging the two dimensions of width and height information and resolution information. Here, taking the judgment of the width and height information dimension first and then the judgment of the resolution information dimension as an example, the scheme provided in the embodiment of the present application is explained.
[0211] After the device reads an image from at least one image set as the image to be displayed, the device may perform the following determination steps:
[0212] S830: The device determines whether the width and height information of an image to be displayed meets the first preset condition, and if so, executes S840. If not, executes S860.
[0213] Optionally, the first preset condition may be that width and height information of an image to be displayed matches a screen state of the device, wherein the screen state is a horizontal screen state or a vertical screen state.
[0214] In the embodiment of the present application, when the screen state of the device is in the horizontal state, if the user views the content displayed on the device, then based on the user's perspective, the screen width of the device is greater than the screen height of the device, such as Figure 7 When the device screen is in portrait mode, if the user views the content displayed on the device, then based on the user's perspective, the device screen height is greater than the screen width, as shown in (a). Figure 5 As shown in (d) in .
[0215] It is understandable that Figure 7 (a) and Figure 5 As shown in (d) in the figure, when the width and height information of the image do not match the screen status of the device, there will be a large amount of redundant area on the screen when the image is directly presented alone. Therefore, the device can analyze whether the image is suitable for direct presentation alone by determining whether the width and height information of the image to be displayed matches the screen status of the device.
[0216] In the embodiment of the present application, when the width and height information of an image to be displayed does not match the screen state of the device, the device can confirm that the width and height information of an image to be displayed does not meet the first preset condition. At this time, the device may consider that the width and height of the image are not suitable for separate presentation, so the device may add such images due to incompatible width and height to the cache pool and not display them temporarily.
[0217] In some scenarios, when the device's screen state is in landscape mode, the device may determine that the width and height information of an image to be displayed does not match the device's screen state when it recognizes that an image to be displayed is a portrait image. A portrait image may refer to an image whose height is greater than its width. At this time, if the device in landscape mode forcibly displays the image to be displayed as a single image, a large amount of redundant area will exist on the screen. Figure 1 As shown in (a) in FIG. 5 , when a device in landscape mode displays a vertical image, there are a large number of black border areas on the left and right sides of the vertical image.
[0218] Therefore, in the embodiment of the present application, when the device in the landscape state recognizes that an image to be displayed is a portrait image, it can be considered that the width and height information of the image to be displayed does not match the screen state of the device. The device can confirm that the width and height information of the image to be displayed does not meet the first preset condition. At this time, the device can execute S860, that is, add the image to be displayed to the cache pool and temporarily not display it.
[0219] On the contrary, when the device in landscape mode recognizes that an image to be displayed is not a vertical image (i.e., a horizontal image), it can be considered that the width and height information of the image to be displayed matches the screen state of the device, and the device can confirm that the width and height information of the image to be displayed meets the first preset condition. At this time, the device can execute S840, that is, the device continues to determine whether the resolution information of the image to be displayed meets the second preset condition.
[0220] Optionally, the device may determine whether an image to be displayed is a vertical image based on the width and height information of the image to be displayed. If it is a vertical image, it is determined that the width and height information of the image to be displayed does not match the horizontal screen state of the device. If it is not a vertical image (i.e., a horizontal image), it is determined that the width and height information of the image to be displayed matches the horizontal screen state of the device.
[0221] It is understandable that the height of a vertical image is greater than its width, and it is not suitable for a device in landscape mode. Therefore, for a device in landscape mode, the device can add vertical images that are not suitable for direct presentation to a cache pool and not display them temporarily.
[0222] As a method, the device can determine whether the image to be displayed is a vertical image by determining whether the height value H of the image to be displayed is greater than the width value W. In this way, when the device detects that the height value H of the image to be displayed is greater than the width value W, it can be determined that the image to be displayed is a vertical image.
[0223] As another way, the device can also determine whether the image to be displayed is a vertical image by determining whether the aspect ratio of the image to be displayed is less than a preset value (such as 1). In this way, when the device detects that the aspect ratio of the image to be displayed is less than the preset value, it can be determined that the image to be displayed is a vertical image.
[0224] As another way, the device can also determine whether an image to be displayed is a vertical image by determining whether the aspect ratio of the image to be displayed matches the preset aspect ratio, such as whether the aspect ratio of the image to be displayed is consistent with the preset aspect ratio, or whether they are close (the ratio difference is less than the preset value). In this way, when the device detects that the aspect ratio of the image to be displayed matches the preset aspect ratio, it can be determined that the image to be displayed is a vertical image. The preset aspect ratio here can be a common aspect ratio of vertical images, such as 9:16, or a common aspect ratio of vertical screens, which can be pre-configured in the device.
[0225] It can be understood that the device in the landscape state above uses the standard of a portrait image to identify whether the width and height information of an image to be displayed matches the screen state of the device. In some scenarios, the device in the landscape state can also use the standard of a horizontal image to identify whether the width and height information of an image to be displayed matches the screen state of the device.
[0226] For example, when the device recognizes that an image to be displayed is a horizontal image, it can determine that the width and height information of the image to be displayed matches the horizontal screen state of the device; when it recognizes that the image to be displayed is not a horizontal image, it can determine that the width and height information of the image to be displayed does not match the horizontal screen state of the device. Among them, a horizontal image may refer to an image whose image width is greater than the image height. It can be understood that images that are not horizontal are most likely not compatible with devices in a horizontal screen state. Therefore, for devices in a horizontal screen state, the device can add non-horizontal images that are not suitable for direct presentation alone to the cache pool and temporarily not display them.
[0227] It can be understood that the above judgment principles are all executed when the screen state of the device is in the horizontal screen state. For devices in the vertical screen state, the above judgment principles can be converted accordingly based on the same principle. The following is a specific description using a device in the vertical screen state as an example.
[0228] In some scenarios, when the device's screen state is in portrait mode, the device may determine that the width and height information of the image to be displayed does not match the device's screen state when it recognizes that the image to be displayed is a landscape image. It is understandable that for landscape images to be displayed, if a device in portrait mode forcibly displays the image to be displayed in full screen, there will be a large amount of redundant area on the screen. Figure 1As shown in (d) in FIG. 5 , when a device in portrait mode displays a landscape image, there are a large number of black border areas on the upper and lower sides of the landscape image.
[0229] Therefore, in the embodiment of the present application, when the device in the portrait state recognizes that the image to be displayed is a landscape image, it can be considered that the width and height information of the image to be displayed does not match the screen state of the device. The device can confirm that the width and height information of the image to be displayed meets the first preset condition. At this time, the device can execute S860, that is, add the image to be displayed to the cache pool and temporarily not display it.
[0230] On the contrary, when the device in the portrait state recognizes that the image to be displayed is not a horizontal image (i.e., a vertical image), it can be considered that the width and height information of the image to be displayed matches the screen state of the device. The device can confirm that the width and height information of the image to be displayed meets the first preset condition. At this time, the device can execute S840, that is, the device continues to determine whether the resolution information of the image to be displayed meets the second preset condition.
[0231] Optionally, the device may determine whether the image to be displayed is a horizontal image based on the width and height information of the image to be displayed. If it is a horizontal image, it is determined that the width and height information of the image to be displayed does not match the vertical screen state of the device. If it is not a horizontal image, it is determined that the width and height information of the image to be displayed matches the vertical screen state of the device.
[0232] It is understandable that the width of a horizontal image is greater than its height, and it is not suitable for a device in portrait mode. Therefore, for a device in portrait mode, the device can add horizontal images that are not suitable for direct presentation to a cache pool and not display them temporarily.
[0233] As one way, the device can determine that an image to be displayed is a horizontal image when it detects that the width value W of an image to be displayed is greater than the height value H. As another way, the device can determine that an image to be displayed is a horizontal image when it detects that the aspect ratio of an image to be displayed is greater than a preset value (such as 1). As yet another way, the device can determine that an image to be displayed is a horizontal image when it detects that the aspect ratio of an image to be displayed matches a preset aspect ratio. The preset aspect ratio here can be a common aspect ratio of horizontal images, such as 4:3, 16:9, etc., or it can be a common aspect ratio of a horizontal screen, which can be pre-configured in the device.
[0234] Similarly, the device in the portrait state above uses the standard of horizontal images to identify whether the width and height information of an image to be displayed matches the screen state of the device. In some scenarios, the device in the portrait state can also use the standard of vertical images to identify whether the width and height information of an image to be displayed matches the screen state of the device. For example, when the device identifies that an image to be displayed is a vertical image, it determines that the width and height information of the image to be displayed matches the vertical state of the device; when it identifies that the image to be displayed is not a vertical image, it determines that the width and height information of the image to be displayed does not match the vertical state of the device. It can be understood that images that are not vertical are most likely not compatible with devices in the portrait state. Therefore, for devices in the portrait state, the device can add non-vertical images that are not suitable for direct presentation alone to the cache pool and not display them for the time being.
[0235] It can be understood that the above judgment logic needs to know the screen state of the device, and the screen state of the device can be fixed or variable.
[0236] In some scenarios, devices can be divided into devices with fixed placement posture (such as a smart screen hung on the wall) and devices with non-fixed placement posture (such as a portrait-screen mobile phone that can be placed vertically normally or rotated 90° to be placed horizontally).
[0237] For devices with fixed placement postures, their screen states are usually fixed. For example, the screen width of a smart screen hung on a wall is usually greater than its height, and its screen state is fixed to the horizontal state. For devices with non-fixed placement postures, the different placement postures will also affect the determination of the screen state. For example, for a portrait-screen mobile phone, the screen state of the portrait-screen mobile phone is the portrait state when it is placed vertically, but the screen state of the portrait-screen mobile phone is actually the horizontal state when it is placed horizontally. Therefore, for devices with non-fixed placement postures, the screen state can be determined in combination with the screen type and the device placement posture.
[0238] Optionally, for a device with a fixed placement posture, the device may determine the screen state through its own device information.
[0239] As an example, the device can obtain its own device information, such as whether it can be rotated, the width and height information of the screen, the resolution information of the screen, etc. The device can then determine the default screen type of the device based on the device information, and can also determine the screen resolution of the device based on the device information. Among them, the default screen type is a default landscape screen or a default portrait screen. The default landscape screen means that in the default usage scenario of the device (normal usage scenario), the width of the screen is greater than the height of the screen. The default portrait screen means that in the default usage scenario of the device (normal usage scenario), the height of the screen is greater than the width of the screen.
[0240] When the default screen type of the device is a landscape screen, the device can determine that its screen state is a landscape screen state. When the default screen type of the device is a portrait screen, the device can determine that its screen state is a portrait screen state. In this way, the device can read the device attribute information (such as screen width and height) of the device used to display images to identify whether the device screen is a landscape screen or a portrait screen. And because the placement posture of the device is fixed, the device can directly determine its screen state based on the screen type.
[0241] Optionally, for a device with a non-fixed placement posture, the device may first determine the default screen type through its own device information, and then determine the screen state when the user actually uses the device based on the device placement posture.
[0242] In one scenario, after the device determines through device information that the default screen type of the device is a portrait screen, when the device is placed normally in portrait orientation, the device can confirm that its current screen state is in portrait orientation. If the device detects that it is rotated to a specified angle such as 90° and placed horizontally, the device can confirm that its current screen state is in landscape orientation. For example, when a portrait screen mobile phone is placed vertically, the screen is in portrait orientation, and when it is placed horizontally, the screen is in landscape orientation.
[0243] In one scenario, after the device determines that the default screen type of the device is a landscape screen through device information, when the device is normally placed in landscape mode, the device can confirm that its current screen state is a landscape state. If the device detects that it is rotated to a specified angle, such as 90° to be placed vertically, the device can confirm that its current screen state is a portrait state.
[0244] In addition, for foldable screen mobile phones, the device can also determine through device information that the default screen type of the device is a foldable screen. When the device detects that the screen is folded, it can confirm that its current screen state is a portrait state. If the device detects that the screen is unfolded, it can confirm that its current screen state is a landscape state.
[0245] S840: The device determines whether the resolution information of an image to be displayed meets the second preset condition. If yes, execute S850. If no, execute S860.
[0246] Optionally, the second preset condition may be that the resolution information of the image to be displayed matches the screen resolution of the device. The screen resolution refers to the physical resolution of the screen itself. As a way, it can be expressed in the form of "horizontal number of pixels × vertical number of pixels". For example, a screen resolution of 800×600 means that 800 pixels can be displayed horizontally in each row and 600 pixels can be displayed vertically in each column on the screen. As another way, it can also be expressed in nK resolutions such as 2K resolution, 3K resolution, 4K resolution, and 8K resolution.
[0247] It can be understood that the device can analyze whether an image is suitable for direct presentation alone by determining whether the resolution information of an image to be displayed matches the screen resolution of the device.
[0248] In the embodiment of the present application, when the resolution of an image to be displayed does not match the screen resolution of the device, the device can confirm that the resolution information of the image to be displayed does not meet the second preset condition. At this time, the device may consider that the resolution of the image is not suitable for separate presentation, so the device may add such images that are blurred on the screen due to low resolution to the cache pool and not display them temporarily.
[0249] In some scenarios, the device may obtain the screen resolution of the device, so as to determine that the resolution information of the image to be displayed does not match the screen resolution of the device when it is identified that the resolution information of the image to be displayed is smaller than the screen resolution. In this way, the device can confirm that the resolution information of the image to be displayed does not meet the second preset condition when it is detected that the resolution information of the image to be displayed is smaller than the screen resolution. And S860 can be executed, that is, the image to be displayed is added to the cache pool and is not displayed temporarily.
[0250] On the contrary, when the device recognizes that the resolution information of an image to be displayed is greater than or equal to the screen resolution, it can be considered that the resolution information of the image to be displayed matches the screen resolution of the device. At this time, the device can determine that the resolution information of the image to be displayed meets the second preset condition, the image to be displayed does not need to be presented in combination, and the resolution of the image to be displayed is high enough, and its direct full-screen display on the screen can meet the user's viewing experience. Therefore, at this time, the device can execute S850, that is, the device directly displays the image to be displayed as a single image.
[0251] In some scenarios, the device may also determine that the resolution information of an image to be displayed does not match the screen resolution of the device when it is recognized that the resolution information of an image to be displayed is less than the first resolution. The first resolution may be the lowest resolution set to ensure a good viewing experience when the image is displayed on the device. The first resolution may be pre-configured in the device. It may be set by the user. It may also be automatically adapted according to the screen resolution of the device. For example, when the screen resolution of the device is 2K resolution, the first resolution may be 1K resolution, so that images with a resolution lower than 1K resolution can be combined and presented.
[0252] In this way, when the device detects that the resolution information of an image to be displayed is less than the first resolution, it can confirm that the resolution information of the image to be displayed does not meet the second preset condition, and can execute S860, that is, add the image to be displayed to the cache pool and temporarily not display it.
[0253] On the contrary, when the device recognizes that the resolution information of an image to be displayed is greater than or equal to the first resolution, it can be considered that the resolution information of the image to be displayed matches the screen resolution of the device. At this time, the device can determine that the resolution information of the image to be displayed meets the second preset condition, the images to be displayed do not need to be presented in combination, and the resolution of the image to be displayed is high enough, and its direct full-screen display on the screen can meet the user's viewing experience. Therefore, at this time, the device can execute S850, that is, the device directly displays the image to be displayed as a single image.
[0254] It can be understood that if the width and height information of an image to be displayed meets the first preset condition, and the resolution information of an image to be displayed also meets the second preset condition, it can be considered that the image to be displayed is suitable for direct presentation alone, whether in terms of width and height or resolution, that is, there will be neither a large number of redundant display areas nor a problem of blurred display. The image to be displayed does not need to be presented in combination. Therefore, the device can directly display the image to be displayed in full screen.
[0255] S850: The device displays an image to be displayed as a single image.
[0256] In the embodiment of the present application, after the device displays a single image to be displayed that meets the above preset conditions, the device may return to execute S820, that is, the device reads the next image in the at least one image set as an image to be displayed, and executes the above judgment logic for the next image.
[0257] S860: The device caches an image to be displayed in a cache space.
[0258] In the embodiment of the present application, after the device caches an image to be displayed whose width and height information does not satisfy the first preset condition and / or whose resolution does not satisfy the second preset condition into the cache space, the number of images cached in the cache space may be determined, and the determination may include:
[0259] S870: The device determines whether the number of images in the cache space reaches the first number. If yes, S880 is executed. If no, the device returns to execute S820, that is, the device reads the next image in the at least one image set as an image to be displayed. The above judgment logic is also executed for the next image.
[0260] Optionally, the first number may be the number of combined images formulated to provide a better viewing experience when displayed on a device. It may be the maximum number of images that the device can display simultaneously while ensuring the viewing experience of each image, for example, 3. It may be set by the user, may be pre-configured in the device, or may be automatically adapted according to device attribute information of the device (such as the screen size of the device).
[0261] It is understandable that, since different devices have different screen sizes and screen resolutions, and different usage scenarios, different first quantities and preset conditions need to be set for different devices.
[0262] In the embodiment of the present application, the device can detect the number of images to be displayed cached in the cache space to determine whether the number of images to be displayed cached has reached a first number, and when it is determined that the number of images to be displayed cached has reached the first number, the cached images to be displayed are combined for display.
[0263] Optionally, when the device detects that the number of images to be displayed in the cache space does not reach the first number, the device may continue to obtain the next image to be displayed and repeat the above judgment process. In this way, when the number of images in the cache space is insufficient, the device may continue to judge whether the width, height and resolution information of the next image meet the above preset conditions. If at least one of the information is not satisfied, the next image may also be added to the cache space.
[0264] In one scenario, each time the device caches an image to be displayed into the cache space, it detects the number of images to be displayed that have been cached in the current cache space to determine whether the first number of images are currently cached. If it is determined that the first number of images are currently cached, the device can combine and display these cached images to be displayed.
[0265] As an example, for a large-screen device with a horizontal screen, take the first number as 3, the first preset condition as that the width of the horizontal picture or image is greater than the height, and the second preset condition as that the image resolution is greater than or equal to the screen resolution.
[0266] like Fig. 9As shown, if the device obtains an image A to be displayed and determines that the width and height information of the image A to be displayed meets the first preset condition, but the resolution information of the image A to be displayed does not meet the second preset condition, the device can cache the image A to be displayed into the cache space. At this time, the device can detect the number of images in the current cache space. If the cache space previously cached only one image B to be displayed, then after the device caches the image A to be displayed into the cache space, the device can detect that the number of images to be displayed in the cache space has not reached 3, and the device can continue to obtain the next image to be displayed, such as an image C to be displayed.
[0267] like Fig.10 As shown, if the device determines that the width and height information of an image C to be displayed does not meet the first preset condition, the device can directly cache the image C to be displayed into the cache space without continuing to determine the resolution information. At this time, the device can detect the number of images in the current cache space. Since the cache space previously cached an image B to be displayed and an image A to be displayed, after the device caches the image C to be displayed into the cache space, the device can detect that the number of images to be displayed in the cache space has reached 3. At this time, the device can combine and display the cached image B to be displayed, the image A to be displayed, and the image C to be displayed.
[0268] Optionally, when the device displays the cached image B to be displayed, the image A to be displayed, and the image C to be displayed in combination, the original display order (i.e., the order in which they are added to the cache pool) may be retained. Fig.10 As shown, the device can display the first image B to be displayed on the left side of the screen, display the second image A to be displayed in the middle of the screen, and display the last image C to be displayed on the right side of the screen.
[0269] Optionally, when the device displays the cached image B to be displayed, the image A to be displayed, and the image C to be displayed in combination, the original display sequence may be changed to give priority to ensuring a better image combination display effect. For example, the device may display the image A to be displayed on the left side of the screen, the image B to be displayed in the middle of the screen, and the image C to be displayed on the right side of the screen.
[0270] It can be understood that, for the above-mentioned image A to be displayed, although it can be determined according to its width and height information that the image A to be displayed is a horizontal image (horizontal shape) and is adapted to a large-screen device with a horizontal screen, due to its relatively low resolution, if the device directly displays the image A to be displayed on the screen alone, the image A to be displayed will be enlarged to a larger size to cover the entire screen or nearly cover the entire screen. At this time, the low-resolution image A to be displayed will appear quite rough and blurred, such as Figure 1 Therefore, in the embodiment of the present application, for such low-resolution images that are blurred, the device can scale the image to a suitable size by combining it with other images for display, thereby ensuring a certain clarity of the image, improving the display effect of such blurred images, and ensuring the user's viewing experience.
[0271] It can be understood that since an image B to be displayed, an image A to be displayed and an image C to be displayed cached in the cache space have been sent to the screen for display, the device can now clear the images to be displayed cached in the cache space and continue to cache new images that do not meet the above preset conditions.
[0272] Optionally, if the device determines that the width and height information of an image C to be displayed meets the first preset condition, and the resolution information of an image C to be displayed also meets the second preset condition, the device may consider that the image C to be displayed is suitable for direct presentation alone in terms of both width and height dimensions and resolution dimensions, that is, there will be neither a large amount of redundant display area nor a display blur problem. Therefore, the device may directly display the image C to be displayed in full screen.
[0273] In one scenario, the device may also detect the number of images to be displayed that have been cached in the current cache space at intervals of a preset duration. If it is determined that a first number of images have been cached, the device may combine and display these cached images to be displayed. Optionally, if it is determined that the number of images to be displayed that are currently cached exceeds the first number, the device may also combine and display these images to be displayed that are currently cached according to a preset combination strategy. The preset combination strategy may be to divide the cached images to be displayed into multiple groups, with the number of images in each group not exceeding the first number. The device may combine and display the images of each group separately. If it is determined that the number of cached images to be displayed does not reach the first number, the device may wait for the next preset duration and determine the number of images in the cache space again.
[0274] In one scenario, after the device adds the current image to be displayed to the cache space, it may not detect the number of images in the cache space first, but directly continue to determine whether the next image meets the preset conditions until all images have been determined, and then detect whether the number of images in the cache space has reached the first number. If it is determined that the first number of images has been cached, the device may combine and display these cached images to be displayed. If it is determined that the number of cached images to be displayed exceeds the first number, the device may divide these cached images to be displayed into multiple groups, and the number of images in each group is not greater than the first number. The device may combine and display the images of each group separately.
[0275] If after all images have been judged, the device detects that the number of cached images to be displayed has not yet reached the first number, then when the device has cached at least two images to be displayed in the cache space, the images to be displayed are still displayed in a combined display manner. When the device has only cached one image to be displayed in the cache space, the device may display the image to be displayed as a single image. For example, the device may display the image to be displayed as a single image on the left side of the screen, or display the image to be displayed as a single image on the middle side of the screen.
[0276] In this way, before presenting the image, the device can adaptively display the high-resolution horizontal image directly in full screen, and display the vertical image or the low-resolution horizontal image in combination.
[0277] S880. The device combines and displays the images in the cache space.
[0278] In some scenarios, when the device combines and displays the images to be displayed in the cache space, if the images in the cache space include images with appropriate width and height but low resolution (such as Figure 8 When an image A) is to be displayed as shown, the device will not directly display the image alone because the width and height of the image are adapted to the screen. Instead, the image is scaled geometrically to maintain the original aspect ratio while scaling the image to a certain size so that it has sufficient resolution to be clearly displayed. The device then combines the scaled image with other images in the cache space for display. In this way, for an image with appropriate width and height but low resolution, the device can appropriately scale the image geometrically when combining it with other images for presentation, so that the scaled image can be fully and clearly displayed on the screen, and can also be reasonably combined with other images for display.
[0279] It is understandable that in the prior art, for images with appropriate width and height, the device usually directly enlarges them to full screen display without considering the resolution of the image. In the embodiment of the present application, for images with appropriate width and height but inappropriate resolution, the device directly adds them to the cache space to wait for combination with other images for display. And when combined with other images for display, the device can adaptively scale the size of the image reasonably to ensure that the image has a certain clarity and avoid the problem of blurred display.
[0280] S890: The device clears the images in the cache space.
[0281] In some scenarios, when the device has finished reading multiple images in at least one image set, the device can determine whether there are any undisplayed images to be displayed in the cache space. If so, the device can combine and display these remaining undisplayed images to be displayed. Although the number of images to be displayed in the cache space may not reach the first number at this time, the device can still combine and display these images to be displayed. It should be noted that if there is only one image to be displayed in the cache space at this time, the device can directly present this image alone.
[0282] Although the device will also present it separately, it can be scaled proportionally to a certain size and a certain resolution before displaying it separately.
[0283] In one scenario, if the playback type of the at least one image set is loop playback, after reading the last image in the at least one image set, the device may continue to read an image in the at least one image set from the beginning as an image to be displayed according to the preset reading rule. In this way, during the loop playback of multiple images, the device may also decide whether to present the images in combination or individually according to the two dimensions of the width, height and resolution of the images.
[0284] For example, when the device is playing multiple images in image set 1 and image set 2 in a loop, after the device reads the last image in image set 1, the device can continue to read images in image set 2, and after reading the last image in image set 2, read images in image set 1 again from the beginning, and repeat this process. It can be understood that if the cache space has cached one or more images when the device re-reads images in image set 1, the combined displayed images may change during the subsequent playback process.
[0285] In the image display method provided by the embodiment of the present application, before presenting the image, the device can first determine whether the image width and height information and resolution information meet the preset conditions according to the screen information of the device, so as to analyze whether the image is suitable for direct presentation alone. If the corresponding preset conditions are met, the device can present the image alone. If there is at least one information that does not meet the corresponding preset conditions, the device can add the image to the cache pool and not display it temporarily until the number of images in the cache pool reaches a certain value, and then the image is combined and presented with other images added to the cache pool. In this way, when the device accurately analyzes that the image is not suitable for direct presentation alone through the two dimensions of image width and height information and resolution information, it can be combined and presented with other images that are also not suitable for direct presentation, which not only ensures that the user can view the image, but also makes full use of the display area of the device and reduces the redundant area displayed on the device screen. And for large-screen devices, this combined presentation method can reflect the advantages of large-screen display and greatly enhance the attractiveness of large-screen devices to users. It reflects the differentiated processing of different images, that is, the images suitable for direct presentation alone are displayed individually, and the images not suitable for direct presentation alone are displayed in combination.
[0286] The following will take a large-screen device in landscape mode as an example for detailed description.
[0287] See also Fig.11 When the device needs to play multiple pictures, it can read the pictures in the order of the picture list. Each time a picture is read, the device can determine whether the picture is a horizontal image. If it is not a horizontal image (i.e., a vertical image), the device can add the picture to the cache space to wait for combination display with other pictures. After the device adds the picture to the cache space, it can determine whether the number of pictures in the cache space reaches the first number. If it reaches the first number, the device can combine the cached pictures for display. For example, Fig.12 As shown, when a first number, such as 3 vertical images, are cached in the cache space, the device can combine and display the 3 vertical images on the screen. After the device combines and displays the cached images, it can clear the cache space and continue to read the next image in sequence to perform the above judgment. If the number of images in the cache space does not reach the first number, the device can continue to read the next image in sequence to perform the above judgment.
[0288] If the device determines that the image is a horizontal image (i.e., a vertical image), the device may continue to determine whether the resolution of the image is greater than the first resolution. If so, it means that the image is suitable for full-screen presentation in terms of width, height, and resolution. Therefore, the device may Fig.13The picture is displayed as a single image, that is, the original aspect ratio is retained and enlarged to the maximum display size to fill or nearly fill the entire screen. Then the next image is read in sequence to perform the above judgment.
[0289] If the resolution of the image is less than the first resolution, it means that direct full-screen display will result in blurry display, so the device can add the image to the cache space to wait for combination display with other images. After the device adds the image to the cache space, it can determine whether the number of images in the cache space reaches the first number. If it reaches the first number, the device can combine the cached images for display. Then, the cache space is cleared and the next image is read in sequence to perform the above determination.
[0290] It can be understood that if the device can read the next image in sequence, it means that the picture list has not been read completely, and the device can repeat the above process. If the device cannot read the next image in sequence, it means that the picture list has been read completely. At this time, the device can determine whether the cache space is empty. If it is empty, it means that multiple pictures have been played, and the device can end the playback process. If it is not empty, it means that there are still undisplayed pictures, and these pictures are not horizontal images larger than the first resolution. Therefore, these pictures are not suitable for full-screen display alone. At this time, the device can still combine and display these undisplayed pictures. After the device combines and displays these pictures, it can clear the cache space. At this time, the cache space is empty, and the device can end the display process.
[0291] Among them, if there are more than one undisplayed pictures remaining in the cache space, the device can combine and display the remaining pictures. If there is only one undisplayed picture remaining in the cache space, since it cannot be combined with other pictures for display, the device can also display the picture alone. Optionally, if the picture is a horizontal image with a resolution smaller than the first resolution, the device can first scale the picture to a certain size while maintaining the original width-to-height ratio of the picture so that it has sufficient resolution to be clearly presented. Then display the proportionally scaled image alone. In this way, the device can clearly present low-resolution pictures separately, improving the user's browsing experience.
[0292] It is understandable that the above is to set the preset condition based on the condition that the image to be displayed is suitable for being displayed in full screen on the device screen alone. In some scenarios, the preset condition may also be set based on the condition that the image to be displayed is not suitable for being displayed in full screen on the device screen alone.
[0293] As an example, the device may determine whether the width and height information of an image to be displayed meets the third preset condition, and determine whether the resolution information of an image to be displayed meets the fourth preset condition. When the width and height information of an image to be displayed does not meet the third preset condition and the resolution information of an image to be displayed does not meet the fourth preset condition, the device may directly display the image to be displayed as a single image. When the width and height information of an image to be displayed meets the third preset condition, and / or the resolution information of an image to be displayed meets the fourth preset condition, the device caches the image to be displayed in the cache space.
[0294] Among them, the third preset condition may refer to the image width and height condition when an image to be displayed cannot cover the entire screen area or cannot approximately cover the entire screen area (that is, there is a small black border area around the image) when it is displayed on the device. For example, the third preset condition may be that the width and height information of an image to be displayed does not match the screen state of the device. Taking a device in a horizontal screen state as an example, the device may consider that the width and height information of an image to be displayed does not match the screen state of the device when it recognizes that an image to be displayed is a vertical image. That is, it is confirmed that the width and height information of an image to be displayed meets the third preset condition.
[0295] The fourth preset condition may refer to an image resolution condition when an image to be displayed cannot be clearly displayed when displayed on the device. For example, the fourth preset condition may be that the resolution information of the image to be displayed does not match the screen resolution of the device. As an example, when the device recognizes that the resolution information of the image to be displayed is less than the first resolution, it may determine that the resolution information of the image to be displayed does not match the screen resolution of the device, that is, confirm that the resolution information of the image to be displayed meets the fourth preset condition.
[0296] The embodiments of the present application do not limit the setting of the preset conditions, and they can be reasonably set according to the actual application scenario.
[0297] It is understandable that, in order to implement the above functions, the device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and software. Whether a function is executed in the form of hardware or software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0298] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0299] As an example, Fig.14 As shown, the device 1400 may include an acquisition unit 1401, a determination unit 1402, a cache unit 1403 and a display unit 1404. Among them;
[0300] Acquisition unit 1401: used to acquire the image to be displayed. Determination unit 1402: used to determine whether the width, height and resolution information of the image to be displayed meet the corresponding preset conditions, so as to determine whether the image to be displayed can be directly displayed as a single image or added to the cache pool. Cache unit 1403: used to manage the cache space (cache pool), which can be used to receive the image added by the determination unit 1402. Display unit 1404: used to display the final image, which can be used to directly display the image as a single image, or to display multiple images in combination.
[0301] Optionally, the cache unit 1403 may also be used to determine whether the number of images in the cache space reaches a threshold, and to provide the display unit 1404 with a combined image resource.
[0302] Optionally, the determination unit 1402 may also be used to detect whether the number of images in the cache space reaches a threshold, and to instruct the cache unit 1403 to provide the display unit 1404 with a combined image resource.
[0303] Optionally, when the software system of device 1400 adopts Figure 3 In the software architecture block diagram shown, the acquisition unit 1401, the determination unit 1402, the cache unit 1403 and the display unit 1404 can be deployed in the screen saver application in the application layer. Therefore, when the device 1400 turns on the screen saver function, the image display method provided by the embodiment of the present application can be executed during the playback of multiple screen saver images, so as to adaptively display the high-resolution and width-and-height-matched screen saver images directly as a single image, and display the width-and-height-matched or low-resolution screen saver images in combination.
[0304] Optionally, when the multiple functional modules of the system library in the software system of the device 1400 include an image display functional module, the above-mentioned acquisition unit 1401, determination unit 1402, cache unit 1403 and display unit 1404 can also be deployed in the image display functional module in the system library.
[0305] Optionally, when the application framework layer in the software system of the device 1400 provides an image display service, the acquisition unit 1401, the determination unit 1402, the cache unit 1403 and the display unit 1404 can also be deployed in the image display service in the application framework layer. This application does not limit the deployment method of the acquisition unit 1401, the determination unit 1402, the cache unit 1403 and the display unit 1404 in the software architecture of the device.
[0306] An embodiment of the present application also provides a device, including a screen (or display screen), a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the device implements each function or step performed by the device in the above-mentioned method embodiments.
[0307] The present application also provides an image display device, which can be applied to the above-mentioned device. The device is used to perform each function or step performed by the device in the above-mentioned method embodiment.
[0308] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. The interface circuit can read the instruction stored in the memory and send the instruction to the processor. When the instruction is executed by the processor, the device can perform the various functions or steps performed by the device in the above method embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0309] An embodiment of the present application also provides a readable storage medium, which includes instructions. When the instructions are executed on the above-mentioned device, the device executes each function or step executed by the device in the above-mentioned method embodiment.
[0310] The embodiment of the present application also provides a program product. When the program product is run on a device, the device is enabled to perform each function or step performed by the device in the above method embodiment.
[0311] Among them, the equipment, image display device, readable storage medium, program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0312] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. An image display method, characterized in that: Applied to a device, the method comprises: In the process of playing a plurality of images, obtaining an image to be displayed from the plurality of images; If it is determined that the image meets a preset condition according to the screen information of the device and the width, height and resolution of the image, display the image as a single image; When it is determined that the one image does not satisfy the preset condition, the one image is displayed in combination with other images that do not satisfy the preset condition, where the other images are images other than the one image among the multiple images.
2. The method according to claim 1, characterized in that The screen information includes a screen state and a screen resolution, the screen state includes a horizontal screen state or a vertical screen state, and determining that the image meets a preset condition according to the screen information of the device and the width, height information and resolution of the image includes: When the width and height information of the one image matches the screen state, and the resolution of the one image matches the screen resolution, determining that the one image meets a preset condition; The determining that the one image does not meet the preset condition includes: When the width and height information of the one image does not match the screen state, and / or the resolution of the one image does not match the screen resolution, it is determined that the one image does not meet the preset condition.
3. The method according to claim 2, characterized in that When the screen state is the horizontal screen state, the width and height information of the image matches the screen state, including: Based on the width and height information of the one image, the one image is determined to be a horizontal image; The width and height information of the image does not match the screen state, including: Based on the width and height information of the image, the image is determined to be a vertical image; or, When the screen state is the vertical screen state, the width and height information of the image matches the screen state, including: Based on the width and height information of the one image, the one image is determined to be a vertical image; The width and height information of the image does not match the screen state, including: Based on the width and height information of the one image, the one image is determined to be a horizontal image.
4. The method according to claim 2 or 3, characterized in that: The resolution of the one image matches the screen resolution, including: The resolution of the one image is greater than or equal to the first resolution; The resolution of the one image does not match the screen resolution, including: The resolution of the one image is smaller than the first resolution; The first resolution is pre-configured in the device, or the first resolution is determined according to the screen resolution.
5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: Obtaining device information of the device; Determine, according to the device information, a screen type and a screen resolution of the device, wherein the screen type is a horizontal screen or a vertical screen; The screen state of the device is determined according to the screen type and the placement posture of the device.
6. The method according to any one of claims 1 to 5, characterized in that: When it is determined that the one image does not satisfy the preset condition, displaying the one image in combination with other images that do not satisfy the preset condition includes: If it is determined that the one image does not satisfy the preset condition, cache the one image in a cache space, wherein the cache space is used to cache images that do not satisfy the preset condition among the multiple images; When the number of images in the cache space reaches a first number, the images in the cache space are combined and displayed.
7. The method according to claim 6, characterized in that The method further comprises: When an image to be displayed cannot be obtained, if at least two images are cached in the cache space, the images in the cache space are combined and displayed; If there is one image cached in the cache space, the image in the cache space is displayed as a single image.
8. The method according to claim 6 or 7, characterized in that: After combining and displaying the images in the cache space, the method further includes: Clear the image in the cache space.
9. The method according to any one of claims 1 to 8, characterized in that: In the process of playing a plurality of images, obtaining an image to be displayed from the plurality of images comprises: Acquire at least one image set to be played, wherein the at least one image set includes a plurality of images; During the process of playing the at least one image set, an image in the at least one image set is read as an image to be displayed according to a preset reading rule.
10. The method according to claim 9, characterized in that The method further comprises: If the playback type of the at least one image set is loop playback, after reading the last image in the at least one image set, continue to re-read an image in the at least one image set as an image to be displayed according to the preset reading rule.
11. A device, characterized in that: The device comprises a memory and one or more processors; the memory is used to store a program, and when the processor executes the program, the device executes the method according to any one of claims 1 to 10.
12. A readable storage medium, characterized in that: The device comprises a program, and when the program is run on a device, the device is caused to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method for selecting images based on continuous shooting and electronic device
CN112425156A
Image display method, electronic equipment and storage medium
CN114911546A
Display device and method for receiving screen projection content
CN115550701A
Electronic device for adaptively displaying image, and operation method of the electronic device
US20230162321A1
Display device, method for receiving screen projection content, and screen projection method
WO2022193475A1