Image display method and apparatus

CN119449978BActive Publication Date: 2026-07-24HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2023-08-04
Publication Date
2026-07-24

Smart Images

  • Figure CN119449978B_ABST
    Figure CN119449978B_ABST
Patent Text Reader

Abstract

The application discloses an image display method and device, relates to the technical field of equipment, and can determine the display strategy of an image according to the width, height and resolution of the image, and improves the display effect of the image on the equipment. In the scheme, during playing of multiple images, after obtaining an image to be displayed, the device can determine whether the image meets preset conditions according to screen information of the device and attribute information of the image. In a case where it is determined that the image meets the preset conditions, the device can display the image alone. In a case where it is determined that the image does not meet the preset conditions, the device can display the image in combination with other images that do not meet the preset conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of device technology, and in particular to an image display method and device. Background Technology

[0002] With the rapid development of multimedia and internet technologies, a massive increase in images is overwhelming modern life. Various devices capable of displaying images are emerging, such as mobile phones, tablets, monitors, and large-screen devices (like smart screens and televisions).

[0003] However, images include both portrait and landscape images. For portrait images, when displayed on a large-screen landscape device, there will be a large amount of redundant areas on the screen, such as a black background, resulting in poor image display. Furthermore, even with a large display area, the presence of such redundant areas significantly reduces the user's large-screen browsing experience and diminishes the appeal of the large screen, thus impacting the product's perceived value. Summary of the Invention

[0004] This application provides an image display method and device. The device can determine whether to combine and present images based on two dimensions: the width, height, and resolution of the image. This reduces redundant areas displayed on the device screen, improves the display effect of the image on the device, and ensures the user's browsing experience.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] A first aspect provides an image display method applicable to a device. In this method, when the device is playing multiple images, after acquiring an image to be displayed, it can display the image individually if, based on the device's screen information and the image's width, height, and resolution, the image meets preset conditions. If the image does not meet the preset conditions, it is combined with other images that do not meet the preset conditions for display. These other images are all images in the multiple images except for the initial image.

[0007] In this context, "single image display" can be understood as the device displaying only one image on its entire screen. This application does not limit the method by which the device displays a single image; for example, it could be by maintaining the original aspect ratio while enlarging the single image to the maximum size that the screen can display; or it could be by adding a template decoration to the image before displaying it.

[0008] Combined display can be understood as displaying more than one image on the entire screen of a device. This application does not limit the way the device combines and displays images. For example, it can be to display at least two images simultaneously while maintaining the original aspect ratio of each image (such as side by side from left to right, or side by side from top to bottom, or a four-grid display); or it can be to implement a jigsaw puzzle display based on a jigsaw puzzle template.

[0009] The solution provided in the first aspect above allows the device to determine whether its width, height, and resolution meet preset conditions before displaying each image, based on the device's screen information, when enabling the playback of multiple images. This analysis determines whether the image is suitable for individual display. If the device accurately analyzes the image's width, height, and resolution to determine if it is suitable for individual display, it can display that image directly. Conversely, if the analysis determines that the image is unsuitable for individual display, the device can combine it with other images that are also unsuitable, ensuring the user can view the image while fully utilizing the device's display area and reducing redundant areas on the screen. For large-screen devices, this combination display method highlights the advantages of large screens, significantly increasing their appeal to users. It demonstrates differentiated image processing, displaying images suitable for individual display individually and combining images unsuitable for individual display.

[0010] In one possible implementation, the device's screen information includes the device's screen state and screen resolution. Optionally, the device's screen state may include a landscape mode (screen width greater than height) and a portrait mode (screen height greater than width).

[0011] In one possible implementation, the device determines that an image meets preset conditions by matching the width and height information of an image with the screen state of the device, and at the same time, matching the resolution of the image with the screen resolution of the device.

[0012] It's understandable that when the image's dimensions and height match the device's screen settings, there won't be a large amount of redundant area on the screen when the image is displayed directly. If the image also has a high resolution (e.g., higher than or equal to the screen resolution), it will be clear when displayed directly on the screen without affecting the user's browsing experience. Therefore, during image playback, the device can analyze whether an image is suitable for direct display on its screen by determining whether its dimensions and resolution match the device's screen. This allows the device to directly display such well-fitting and clear images on the screen.

[0013] In one possible implementation, the device determines that an image does not meet a preset condition by stating that the width and height information of an image does not match the device's screen state.

[0014] It's understandable that when the width and height information of an image doesn't match the device's screen settings, displaying that image alone would result in a large amount of redundant space on the screen. Therefore, during image playback, the device can analyze whether an image is suitable for displaying alone by determining whether its width and height information matches the device's screen settings. The device can then combine such images, which are unsuitable for display alone due to mismatched dimensions and heights, with other images that are also unsuitable for display alone.

[0015] In one possible implementation, the device could determine that an image does not meet a preset condition by stating that the resolution of an image does not match the resolution of the device's screen.

[0016] It's understandable that if an image has a low resolution, such as significantly lower than the device's screen resolution, it will appear blurry when displayed directly on the screen, negatively impacting the user's browsing experience. Therefore, during image playback, the device can analyze whether an image can be clearly displayed independently by determining if its resolution matches the device's screen resolution. This allows the device to combine images unsuitable for standalone display with other images that are also unsuitable for standalone display.

[0017] Optionally, during image playback, if an image to be presented does not meet either of the two preset conditions mentioned above, or if neither preset condition is met, the device can trigger the device to combine the image with other images for presentation. In this way, the device can combine and present not only images whose dimensions do not match the screen, but also blurry images (even if the image's dimensions match the device's screen).

[0018] In one possible implementation, the resolution of the aforementioned image matches the device's screen resolution, which can be: the resolution of the image is greater than or equal to a first resolution. Conversely, the resolution of the aforementioned image does not match the device's screen resolution, which can be: the resolution of the image is less than the first resolution.

[0019] It's understandable that when an image's resolution is greater than or equal to a first resolution, it can be considered to have a high resolution, and when the screen displays the image directly on its own, it's less likely to experience image blurring. Therefore, the device can confirm that an image with a resolution greater than or equal to the first resolution matches its own screen resolution.

[0020] Optionally, the device can further determine whether the width and height information of the high-resolution image matches its own screen state. If they match, the device can determine that the high-resolution image meets preset conditions, and thus the device can present such a clear, width-and-height adapted image separately.

[0021] It's understandable that when an image's resolution is lower than the first resolution, it can be considered low-resolution, and displaying it alone on the screen can easily result in a blurry image. Therefore, the device can confirm that an image with a resolution lower than the first resolution is incompatible with its own screen resolution. Consequently, it can determine that this low-resolution image (i.e., a blurry image) does not meet the preset conditions. Thus, the device can combine such low-resolution images (i.e., blurry images) with other images that are not suitable for display alone.

[0022] Optionally, the first resolution can be the minimum resolution set to provide a better viewing experience when the image is displayed on the device. It can be set by the user, pre-configured in the device, or automatically adapted based on the device's screen resolution information.

[0023] In one possible implementation, when the device is in landscape mode, if the width and height information of the aforementioned image matches the screen state, then: based on the width and height information of an image, the image is determined to be a landscape image. If the width and height information of the aforementioned image does not match the screen state, then: based on the width and height information of an image, the image is determined to be a portrait image.

[0024] It's understandable that a horizontal image, with a width greater than its height, is compatible with devices in landscape mode (where the screen width is greater than the screen height). When this horizontal image is displayed directly on the screen, there isn't a large amount of redundant area. Therefore, for devices in landscape mode, the device can confirm that the width and height information of the horizontal image matches its own screen orientation.

[0025] Optionally, the device can further determine whether the resolution of the landscape image matches the screen resolution. If they match, the device can determine that the landscape image meets preset conditions, and thus the device can present this type of clear landscape image separately.

[0026] It's understandable that vertical images, with a height greater than their width, are not compatible with landscape-oriented devices. When a vertical image is displayed alone on the screen, there will be a large amount of redundant area. Therefore, for landscape-oriented devices, the device can confirm that the height and width information of vertical images do not match its screen orientation. Consequently, it can determine that the vertical image does not meet preset conditions. Thus, the device can combine and display these vertical images.

[0027] Optionally, the image display method of this application may further include: determining whether an image is a landscape image based on its width and height information; if so, determining that the width and height information of the image matches the landscape state of the device; if not, determining that the width and height information of the image does not match the landscape state of the device. Thus, during image playback, the device in landscape mode can determine whether the width information of an image matches its own landscape state by judging whether the image to be displayed is a landscape 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 this application may also include: determining whether an image is a portrait 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 landscape state of the device; if not, determining that the width and height information of the image matches the landscape state of the device.

[0029] In one possible implementation, when the device is in portrait mode, if the width and height information of the aforementioned image matches the screen state, then: based on the width and height information of an image, the image is determined to be a portrait image. If the width and height information of the aforementioned image does not match the screen state, then: based on the width and height information of an image, the image is determined to be a landscape image.

[0030] It's understandable that a vertical image, with a height greater than its width, is compatible with devices in portrait mode (where the screen height is greater than the screen width). When the screen directly displays this vertical image alone, there won't be a large amount of redundant area on the screen. Therefore, for devices in portrait mode, the device can confirm that the width and height information of vertical images matches its own screen state.

[0031] Optionally, the device can further determine whether the resolution of the vertical image matches the screen resolution. If they match, the device can determine that the vertical image meets preset conditions, and thus the device can present this type of clear vertical image separately.

[0032] It's understandable that horizontal images, with a width greater than their height, are not compatible with portrait-oriented devices. When displayed alone, these horizontal images would result in a large amount of redundant space on the screen. Therefore, for portrait-oriented devices, the device can determine that the width and height information of horizontal images does not match its screen orientation. Consequently, it can conclude that the horizontal image does not meet preset conditions. Thus, the device can combine and display these horizontal images.

[0033] Optionally, the image display method of this application may further include: determining whether an image is a portrait image based on its width and height information; if so, determining that the width and height information of the image matches the portrait mode of the device; if not, determining that the width and height information of the image does not match the portrait mode of the device. Thus, during image playback, a device in portrait mode can determine whether the width information of an image matches its own portrait mode by judging whether the image to be displayed is a portrait image.

[0034] Of course, the judgment condition can also be set from the perspective of screen state mismatch. The image display method of this application may also include: determining whether an image is a landscape 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 portrait state of the device. If not, determining that the width and height information of the image matches the portrait state of the device.

[0035] Optionally, the devices can be divided into devices with a fixed placement posture (such as a smart screen mounted on a wall) and devices with a non-fixed placement posture (such as a portrait-oriented mobile phone that can be placed vertically or rotated 90° to be placed horizontally).

[0036] In one possible implementation, for devices with a fixed placement posture, their screen state is typically fixed. For example, a smart screen mounted on a wall typically has a width greater than its height, and its screen state is fixed as a landscape orientation. Optionally, for devices with a fixed placement posture, the image display method of this application further includes: acquiring device information; determining the device's screen type and screen resolution based on the device information, wherein the screen type is a landscape screen or a portrait screen; and determining the device's screen state based on the screen type. Thus, the device can read the device attribute information (such as screen width and height) inherent to the device used to display images to identify the device's screen resolution and whether the device's screen is a landscape or portrait type. Since the device's placement posture is fixed, the device can directly determine its screen state based on the screen type.

[0037] Optionally, the device can automatically identify whether it is a device with a fixed placement posture based on its built-in device attribute information. Optionally, the user can also directly input the screen status of the device used to display images to specify the device's screen status.

[0038] In one possible implementation, 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-oriented mobile phone, when placed vertically, the screen state of the portrait-oriented phone is portrait mode, but when placed horizontally, the screen state of the portrait-oriented phone is actually landscape mode. Therefore, the device can determine the screen state by combining the screen type and the device's placement posture. That is, the image display method of this application also includes: obtaining device information; determining the screen type and screen resolution of the device based on the device information, wherein the screen type is a landscape screen or a portrait screen; and determining the screen state of the device based on the screen type and the device's placement posture. In this way, after identifying the screen type of the device based on device attribute information (such as screen width and height), the device can accurately determine its current screen state by detecting the current placement posture of the device.

[0039] Optionally, when the device screen type is landscape, its screen state is landscape when the device is normally placed horizontally, but its screen state is portrait when rotated to a specified angle, such as 90° and placed vertically. Similarly, when the device screen type is portrait, its screen state is portrait when the device is normally placed vertically, but its screen state is landscape when rotated to a specified angle, such as 90° and placed horizontally.

[0040] In one possible implementation, if the device determines that an image does not meet a preset condition, it combines that image with other images that do not meet the preset condition for display. This can include: caching the image to a cache space when it is determined that an image does not meet the preset condition, wherein the cache space is used to cache images from multiple images that do not meet the preset condition; when the number of images in the cache space reaches a first value, the images in the cache space are combined for display. Thus, during image playback, if 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 presentation alone. At this time, the device can add the image to the cache pool and not display it until the number of images in the cache pool reaches a certain value, at which point the image is combined with other images added to the cache pool for presentation.

[0041] It's understandable that when an image meets the preset conditions, the device can directly display that image as a single unit without adding it to the cache pool to wait for combination with other images. This reflects the differentiated processing of images with different width, height, and resolution information: images suitable for direct display are displayed separately, while those unsuitable for direct display are added to the cache pool to wait for combination.

[0042] Optionally, the first quantity can be the number of combined images determined to provide a better viewing experience when displayed on the device, for example, it can be 3 or 2. It can be set by the user, pre-configured in the device, or automatically adapted based on the device's attribute information (such as the device's screen width and height information).

[0043] In one possible implementation, if an image to be displayed does not meet the preset conditions, after caching the image to be displayed to the cache space, the device can detect the number of images already cached in the current cache space. When the number of images in the cache space has not reached a first number, the device can temporarily refrain from performing the combined display operation. Thus, during image playback, each time the device acquires an image to be displayed, it determines whether the image meets the preset conditions. Based on the determination result and the number of images in the current cache space, it decides whether to display the image directly alone, add it to the cache pool and combine it for display if the number of cached images is sufficient, or add it to the cache pool and wait for combination display if the number of cached images is insufficient. Based on the aforementioned three operations, regardless of which operation the device decides to perform, the device can then continue to acquire the next image to be displayed and repeat the above determination process.

[0044] It is understandable that if the number of images in the cache space is insufficient, and the next image acquired by the device still does not meet the preset conditions, the device can also add the next image to the cache space. If the number of images in the cache space is sufficient at this time, reaching the first number, the device can combine and present the first number of images in the cache space.

[0045] In one possible implementation, after the device combines and renders a first number of images from the cache space, the device can clear the first number of cached images from the cache space. It can be understood that at this point, the images in the cache space have been cleared, and new images that do not meet the preset conditions can continue to be cached.

[0046] In one possible implementation, after adding the current image to be displayed to the cache space, the device can immediately proceed to determine whether the next image to be displayed meets the preset conditions without first checking the number of images in the cache space. This process continues until all images have been checked, at which point the device checks whether the number of images in the cache space has reached a predetermined number. If so, the images in the cache space can be combined and displayed according to a preset combination strategy. This preset combination strategy could involve dividing the images in the cache space into multiple groups, with each group containing no more than the predetermined number of images. The device can then combine and display the images from each group separately.

[0047] In one possible implementation, during the playback of multiple images, the image display method of this application further 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 an 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 read all the images to be played, it cannot obtain the image to be displayed. In this scenario, after reading all the images to be played, the device will not immediately stop playing the images. Instead, it will first check whether the image buffer is empty and whether there are any undisplayed images in the buffer. Only after displaying all the undisplayed images in the buffer will the image playback end.

[0049] It's understandable that when the number of cached images in the cache space reaches a certain threshold, the device will combine and display those images, and then clear the cache space after displaying them. Therefore, when the device has finished reading multiple images to be played, if it confirms that there are still images cached in the current cache space, it can assume that the number of cached images has not yet reached the threshold, causing those cached images to remain in the cache pool without being displayed. At this point, the device can display all the undisplayed images in the cache space. Furthermore, if only one image is cached in the cache space, the device can directly display that image alone. If more than one image is cached in the cache space, the device can combine and display these cached images.

[0050] Optionally, after displaying a single image cached in the cache space, the device can 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 buffer space are empty at this time, the device can assume that all images have been played and displayed, and can directly end the image playback process.

[0052] In one scenario, the device might be temporarily unable to retrieve an image to be displayed due to network latency or other reasons. In this case, the device can first check if there are any undisplayed images cached in the cache space. If so, the device can render the cached images first (displaying a single cached image individually, or displaying multiple cached images together) to avoid playback stuttering and affecting the user's browsing experience.

[0053] In one possible implementation, when the cached image includes an image with appropriate dimensions but low resolution, the device will not directly display the image alone simply because its dimensions fit the screen. Instead, it will scale the image proportionally, maintaining its original aspect ratio while scaling it to a size with sufficient resolution for clear display. The device will then combine this scaled image with other images in the cached space for display. Thus, for images with appropriate dimensions but low resolution, the device can appropriately scale the image proportionally when combining it with other images, ensuring that the scaled image is displayed clearly and completely on the screen, while also being reasonably combined with other images.

[0054] It is understandable that when the device has finished reading multiple images to be played, if the cache space only has one image with appropriate width and height but low resolution, the device will still present it separately, but it can scale it proportionally to a certain size and have a certain resolution before displaying it separately.

[0055] In one possible implementation, during the playback of multiple images, retrieving the image to be displayed from the multiple images includes: retrieving at least one image set to be played, which comprises multiple images; and during the playback of at least one image set, retrieving one image from the at least one image set as the aforementioned image to be displayed, according to a preset reading rule. Thus, when the device needs to play multiple images from one or more image sets, it can determine whether each image meets a preset condition according to a certain rule (such as the original arrangement of the image set), and if it does, display the image directly as a single image; otherwise, add the image to the cache space. If the currently added image can bring the number of images in the cache space to a first number, the device can directly combine and present the images in the cache space. This ensures that the image display rule and the image reading rule within the image set are kept as consistent as possible.

[0056] In one possible implementation, if the playback type of the at least one image set is loop playback, then after reading the last image in at least one image set, the device can continue to read an image from the beginning of the at least one image set as the image to be displayed, according to a preset reading rule. In this way, during the loop playback of multiple images, the device can also decide whether to combine or display the images individually based on the width, height, and resolution of the images.

[0057] For example, when a device is looping through multiple images from image set 1 and image set 2, after reading the last image in image set 1, the device can continue reading images from image set 2, and after reading the last image in image set 2, it can start reading images from image set 1 again from the beginning, and so on. It's understandable that if the buffer already contains one or more images when the device rereads images from image set 1, the combined images displayed may change during subsequent playback.

[0058] Secondly, 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 of the first aspect and its possible implementations. This 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-described function. As an example, the image display device may include an acquisition unit and a display unit, etc. The acquisition unit can be used to acquire one image to be displayed during the playback of multiple images; the display unit can be used to display the image individually if, based on the device's screen information and the width, height, and resolution of the image, it is determined that the image meets preset conditions; the display unit can also be used to combine the image with other images that do not meet the preset conditions for display if it is determined that the image does not meet the preset conditions, wherein the other images are images other than the image in the multiple images.

[0059] In one possible implementation, the device's screen information includes the device's screen state and screen resolution. The device's screen state can include landscape mode (screen width greater than height) and portrait mode (screen height greater than width).

[0060] An image meeting the preset conditions includes: the image's width and height information matching the device's screen settings, and the image's resolution matching the device's screen resolution. An image not meeting the preset conditions includes: the image's width and height information not matching the device's screen settings, and / or, the image's resolution not matching the device's screen resolution.

[0061] In one possible implementation, the resolution of the aforementioned image matches the screen resolution of the device, which can be: the resolution of the image is greater than or equal to a first resolution. Conversely, the resolution of the aforementioned image does not match the screen resolution of the device, which can be: the resolution of the image is less than the first resolution.

[0062] Optionally, the image display device further includes a resolution determination unit, configured to determine whether the resolution of an image is greater than or equal to a 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 can be the minimum resolution set to provide a better viewing experience when the image is displayed on the device. It can be set by the user, pre-configured in the device, or automatically adapted based on the device's screen resolution information.

[0064] In one possible implementation, when the device screen is in landscape mode, matching the width and height information of the aforementioned image with the screen mode includes: determining an image as a landscape image based on the width and height information of the image. If the width and height information of the aforementioned image does not match the screen mode, it includes: determining an image as a portrait image based on the width and height information of the image.

[0065] Optionally, the image display device further includes: a landscape image determination unit, configured to determine whether an image is a landscape image based on its width and height information; if so, to determine that the width and height information of the image matches the landscape state of the device; if not, to determine that the width and height information of the image does not match the landscape state of the device.

[0066] Optionally, the image display device further includes: a portrait image determination unit, used to determine whether an image is a portrait image based on its width and height information; if so, to determine that the width and height information of an image does not match the landscape orientation of the device; if not, to determine that the width and height information of an image matches the landscape orientation of the device.

[0067] In one possible implementation, if the device screen is in portrait mode, and the width and height information of the aforementioned image matches the screen mode, then the image is determined to be a portrait image based on its width and height information. If the width and height information of the aforementioned image does not match the screen mode, then the image is determined to be a landscape image based on its width and height information.

[0068] Optionally, the image display device further includes: a portrait image determination unit, used to determine whether an image is a portrait image based on its width and height information; if so, to determine that the width and height information of an image matches the portrait screen state of the device; if not, to determine that the width and height information of an image does not match the portrait screen state of the device.

[0069] Optionally, the image display device further includes: a landscape image determination unit, configured to determine whether an image is a landscape image based on its width and height information; if so, to determine that the width and height information of an image does not match the portrait mode of the device; if not, to determine that the width and height information of an image matches the portrait mode of the device.

[0070] Optionally, the devices can be divided into devices with a fixed placement posture (such as a smart screen mounted on a wall) and devices with a non-fixed placement posture (such as a portrait-oriented mobile phone that can be placed vertically or rotated 90° to be placed horizontally).

[0071] In one possible implementation, for devices with non-fixed placement postures, different placement postures will also affect the determination of the screen state. Therefore, the above-mentioned image display device further includes: a screen recognition unit, used to acquire device information of the device; determine the screen type and screen resolution of the device based on the device information, wherein the screen type is a landscape screen or a portrait screen; and determine the screen state of the device based on the screen type and the placement posture of the device.

[0072] In one possible implementation, for a device with a fixed placement posture, its screen state is usually fixed. The screen recognition unit described above can also be used to acquire device information, determine the device's screen type and screen resolution based on the device information (screen type is landscape or portrait), and determine the device's screen state based on the screen type.

[0073] In one possible implementation, the image display device further includes a cache unit, configured to cache an image to 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 from a plurality of images that do not meet the preset condition. 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 one possible implementation, the first quantity is pre-configured in the device; or, the first quantity is determined based on the screen width and height information of the device.

[0075] In one possible implementation, the display unit is further configured to, when an image to be displayed cannot be obtained, combine and display the images in the cache space if at least two images are cached in the cache space; and display the images in the cache space individually if only one image is cached in the cache space.

[0076] In one possible implementation, the aforementioned cache unit is further configured to clear the images in the cache space after combining and displaying the images in the cache space.

[0077] In one possible implementation, the aforementioned caching unit is further configured to display a single image cached in the cache space and then clear the image from the cache space.

[0078] In one possible implementation, the acquisition unit is further configured to: acquire at least one image set to be played, the at least one image set including multiple images; and, during the playback of at least one image set, read one image from the at least one image set as an image to be displayed according to a preset reading rule.

[0079] In one possible implementation, the acquisition unit is further configured to: if the playback type of at least one image set is loop playback, then after reading the last image in at least one image set, continue to read an image from at least one image set as an image to be displayed according to a preset reading rule.

[0080] Thirdly, 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 code, the program code including instructions, which, when executed by the one or more processors, cause the device to perform the image display method in any possible implementation of the first aspect described above.

[0081] Fourthly, 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 circuits and processors are interconnected via lines. The interface circuits are used to receive signals from the device's memory and send the signals to the processors, the signals including instructions stored in the memory. When the processor executes the instructions, the device performs an image display method as described in the first aspect and any of its possible design embodiments.

[0082] Fifthly, a readable storage medium is provided, the readable storage medium including instructions that, when executed on a device, cause the device to perform an image display method as described in the first aspect and any of its possible design schemes.

[0083] Sixthly, a program product is provided that, when the program product is run on a device, causes the device to perform an image display method as described in the first aspect and any possible design thereof.

[0084] Understandably, the beneficial effects that can be achieved by the apparatus of the second aspect, the device 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 provided above can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description

[0085] Figure 1A user interface diagram provided for related technologies;

[0086] Figure 2 This is a schematic diagram of the hardware structure of a device provided in an embodiment of this application;

[0087] Figure 3 This is a schematic diagram of the software structure of a device provided in an embodiment of this application;

[0088] Figure 4 A flowchart illustrating an image display method provided in an embodiment of this application;

[0089] Figure 5 User interface illustration provided for embodiments of this application Figure 1 ;

[0090] Figure 6 User interface illustration provided for embodiments of this application Figure 2 ;

[0091] Figure 7 A schematic diagram illustrating the width and height information of a screen and an image as provided in an embodiment of this application;

[0092] Figure 8 A flowchart illustrating an image display method provided in an embodiment of this application;

[0093] Figure 9 A flowchart illustrating an image display method provided in an embodiment of this application;

[0094] Figure 10 A flowchart illustrating an image display method provided in an embodiment of this application;

[0095] Figure 11 A flowchart illustrating an image display method provided in an embodiment of this application;

[0096] Figure 12 User interface illustration provided for embodiments of this application Figure 3 ;

[0097] Figure 13 User interface illustration provided for embodiments of this application Figure 4 ;

[0098] Figure 14 This is a module block diagram of a device provided in an embodiment of this application. Detailed Implementation

[0099] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.

[0100] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.

[0101] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.

[0102] Some optional features in the embodiments of this application can be implemented independently without relying on other features in certain scenarios to solve the corresponding technical problems and achieve the corresponding effects. In other scenarios, they can be combined with other features according to needs.

[0103] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0104] Currently, various photography devices produce many horizontal (width greater than height) and vertical (height greater than width) photos with varying resolutions. When a user's photo album is displayed on a large-screen device (such as a smart screen), the device typically displays the horizontal and vertical photos directly or matches them to a preset display template (such as a four-grid or nine-grid layout).

[0105] However, portrait images and blurry photos encounter the following problems when displayed in landscape mode:

[0106] First, displaying portrait photos on a large, horizontal screen device results in a large amount of unused space. For example, ... Figure 1 As shown in (a), black borders appear on the left and right sides of the vertical image (i.e., the screen does not display any content or displays a background mask).

[0107] Secondly, even if a vertical photo is forced to fill the entire screen, it will distort the aspect ratio of the image, or the top and bottom edges of the photo will need to be heavily cropped, resulting in only a portion of the content being displayed on a large-screen horizontal device. For example, ... Figure 1 As shown in (b), by cutting off the top and bottom of the vertical image, the vertical image can be enlarged to fill the entire screen.

[0108] Thirdly, for blurry photos, there will be a display blurring issue when playing them in full-screen mode on large-screen devices in landscape orientation. For example, ... Figure 1 As shown in (c), even landscape photos, when they are blurry, will still appear blurry on large-screen devices with landscape orientation, which greatly affects the browsing experience for users who require high clarity.

[0109] Fourth, when displaying horizontal or vertical photos by matching preset display templates, not only is it necessary to pre-set a large number of templates, but it is also necessary to exhaustively search for templates based on the number of images and then match them. This makes it highly dependent on the effectiveness of the templates, and it cannot solve the aforementioned display problems (i.e., blurriness and a large number of unused areas) for photo types not covered by the templates. These problems all greatly affect the user's viewing experience.

[0110] Because devices used to display images include not only large-screen landscape devices but also portrait devices (such as portrait-oriented mobile phones), the aforementioned problems also occur when a user's photo album is displayed on a portrait-oriented device, and when landscape images and blurry photos are displayed on a portrait screen. For example, as... Figure 1 As shown in (d), when displaying a landscape photo on a portrait-oriented phone, black borders appear on the top and bottom edges of the landscape image. For example, as... Figure 1 As shown in (e), by cutting off the left and right edges of the horizontal image, it can be enlarged to fill the entire screen. For example, as... Figure 1 As shown in (f), even portrait photos, if they are blurry, will still appear blurry on portrait-oriented phones. Even if the display of horizontal and portrait photos is achieved by matching preset display templates, it will rely too heavily on the templates and will not solve the aforementioned display problems for photo types not covered by the templates.

[0111] To address the aforementioned issues, embodiments of this application provide an image display method and device capable of adaptively displaying images based on both their width / height and resolution. This improves the display of blurry photos and portrait images on large-screen horizontal devices, as well as on portrait devices, reducing the dependence of display quality on image resolution and width / height adaptation. It also minimizes redundant areas displayed on the device screen, ensuring a better user browsing experience. Furthermore, it eliminates the need for pre-setting numerous templates or exhaustively searching and matching templates based on the number of images, avoiding the problem of unimproved display effects for image types not covered by existing templates.

[0112] The device in this application embodiment can be a landscape-type device with a screen width greater than its screen height, or a portrait-type device with a screen height greater than its screen width. This application embodiment does not impose any special limitations on the specific form of the device. Exemplarily, the device in this application embodiment can be a smart screen, smart projector, in-vehicle system (such as a car computer), mobile phone (portrait screen phone, foldable screen phone, etc.), tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, and other devices including a display screen.

[0113] Please see Figure 2 , Figure 2 A schematic diagram of the structure of a device 100 provided in an embodiment of this application is shown. Optionally, the device 100 can be a landscape-type device, such as a smart screen, or a portrait-type device, such as a portrait-type mobile phone.

[0114] like Figure 2 As shown, device 100 includes processor 101, memory 102, display screen 103, etc.

[0115] The processor 101 includes one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (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). These different processing units can be independent devices or integrated into one or more processors.

[0116] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0117] The processor 101 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. This memory can store instructions or data that the processor 101 has just used or that are used repeatedly. If the processor 101 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.

[0118] In this embodiment, the memory may include a buffer area for temporarily storing images to be displayed. Optionally, the buffer area may store a maximum of a first number of images to be displayed.

[0119] The display screen 103 is used to display images, videos, etc. In this embodiment, the display screen 103 can be used to display a single image to be displayed in full screen, or it can display multiple images to be displayed in combination.

[0120] Memory 102 can be used to store executable program code, including instructions. Memory 102 may include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as image display functions), etc. The data storage area may store data created during the use of device 100 (such as images to be displayed), etc. In addition, memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 101 executes various functional applications and data processing of device 100 by running instructions stored in memory 102 and / or instructions stored in memory disposed in processor 101.

[0121] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on device 100. In other embodiments, device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, device 100 may also include a camera, a touch sensor, a gyroscope sensor, an accelerometer, etc.

[0122] The camera is used to capture still images or videos. In some embodiments, the device 100 may include one or N cameras, where N is a positive integer greater than 1. Optionally, the device 100 may use images captured by the cameras as images to be displayed.

[0123] A gyroscope sensor can be used to determine the motion posture of device 100. In some embodiments, the angular velocity of device 100 about three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. An accelerometer can detect the magnitude of the acceleration of device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when device 100 is stationary. It can also be used to identify device posture, applied to applications such as landscape / portrait screen switching. In the embodiments of this application, device 100 can detect its placement posture through the gyroscope sensor and / or accelerometer to determine whether the device is in normal placement or has been rotated at a certain angle before placement.

[0124] The software system of device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture as an example to illustrate the software structure of device 100.

[0125] Figure 3This is a software architecture block diagram of the device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the software system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system library, and the kernel layer. The application layer may include a series of application packages.

[0126] like Figure 3 As shown, the application package may include applications (APPs) such as camera, gallery, calendar, Bluetooth, music, video, and launcher. For ease of description, applications will be referred to as apps below. Apps on the device can be native apps or third-party apps, and this application embodiment is not limited thereto.

[0127] In this embodiment, the application package may further include a screensaver application for enabling and disabling the device's screensaver function. If the user enables the device's screensaver function through the screensaver application, the device can automatically play multiple screensaver images when the device's display screen is in a screen-off or locked state. The screensaver images refer to images displayed on the device's display interface after the user has not operated the device for a period of time, in order to protect the user's privacy.

[0128] Optionally, the screensaver application may include an image display module for executing the image display method of the embodiments of this application. The image display module may include hardware and / or software modules corresponding to the various functions in the image display method. As an example, the image display module may include an acquisition unit and a display unit.

[0129] The acquisition unit can be used to acquire an image to be displayed during the playback of multiple images on the device; the display unit can be used to display the image as a single image if the image meets the preset conditions based on the screen information of the device and the width, height and resolution of the image; the display unit can also be used to combine the image with other images that do not meet the preset conditions if the image does not meet the preset conditions, wherein the other images are the images other than the image in the multiple images.

[0130] Optionally, the image display module may further include a caching unit, used to cache an image to a cache space when it is determined that an image does not meet preset conditions. The 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 quantity.

[0131] The application framework layer provides application programming interfaces (APIs) and a programming framework for 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, content provider, view system, resource manager, notification manager, etc.

[0133] The window manager manages window programs. The content provider stores and retrieves data, making it accessible to applications. Data can include videos, images, audio, browsing history, etc. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a video icon can include views for displaying text and views for displaying images. The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, video files, etc. The notification manager allows applications to display notifications in the status bar. For example, the notification manager is used to notify of image transfer completion, message alerts, etc. The notification manager can also display notifications as icons or scrollbar text in the system's top status bar, or as dialog windows on the screen.

[0134] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0135] Optionally, the image display module described above may not be deployed at the application layer, but rather in the system library. That is, the system library may include an image display module among its multiple functional modules, used to execute the image display method of the embodiments of this application.

[0136] Optionally, the image display module described above can also be deployed at the application framework layer. That is, the application framework layer may include an image display service, which includes hardware and / or software modules corresponding to the various functions in the image display method of the embodiments of this application. It is understood that this application does not limit the deployment method of the image display module in the software architecture of the device.

[0137] The Surface Manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The Media Library supports playback and recording of various common audio and video formats, as well as still image files. The 3D Graphics Processing Library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D Graphics Engine is the drawing engine for 2D drawing.

[0138] The kernel layer is the layer between hardware and software. It can contain display drivers, input / output device drivers (such as touchscreens), device nodes, camera drivers, audio drivers, and sensor drivers, among others.

[0139] Understandable Figure 3 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on device 100. In other embodiments of this application, device 100 may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.

[0140] The methods described in the following embodiments can all be implemented in the device 100 having the above-described hardware and software structures.

[0141] Figure 4 A schematic flowchart of an image display method according to an embodiment of this application is shown. This image display method can be applied to the aforementioned device. Figure 4 As shown, the image display method provided in this application embodiment may include:

[0142] S410, The device acquires an image to be displayed.

[0143] In this embodiment, when the device enables the playback function of multiple images, the device can play and display the multiple images one by one. Unlike related technologies where the device directly displays each image to be played upon acquisition, in this embodiment, the device executes the image display method provided in this application each time it acquires an image to be played.

[0144] First, during the playback of multiple images, the device can select one image to be displayed from these multiple images. These multiple images can be images stored on the device. Stored images can be images captured by the user through the device's camera, or images acquired by the device through downloading (via the internet or an app), copying, or other means. This application does not limit the source of the multiple images; for example, the multiple images can also be images from web pages viewed by the user on the device, or images received by the device from other devices.

[0145] Alternatively, the multiple images can be images from the device's photo album. Alternatively, the multiple images can be images selected by the user from the device's photo album.

[0146] Optionally, the device can display images in the album in a grouped manner (e.g., folders). In 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 a user instruction to play one or more image groups, it can display the images from the user-instructed image groups as the multiple images to be played.

[0147] In one scenario, taking a portrait-oriented mobile phone as an example, when the phone detects a user tap... Figure 5 After clicking the album icon 501 shown in (a) on the phone, the album will open on the phone and display the following: Figure 5 The interface shown in (b) includes multiple image groups. The phone detects a user tap... Figure 5 After the operation of camera group 502 as shown in (b) above, the mobile phone can display as follows: Figure 5 The interface shown in (c) includes thumbnails of all images in camera group 502. The phone detects a user tap... Figure 5 After operating the function control 503 shown in (c), the mobile phone can display the following: Figure 5 The function menu shown in (d) includes an adaptive playback option 504, which triggers the device to play images from the current camera group 502. After detecting a user's click on the adaptive playback option 504, the phone can initiate playback of all images in the camera group 502, sequentially reading one image from each group as the image to be displayed. Figure 5 (e) and Figure 5 As shown in (f), when the mobile phone enters the image playback page, it automatically switches between all images in camera group 502 one by one, that is, after playing one image, it immediately plays the next image. Optionally, the mobile phone can switch between playing one image at preset intervals.

[0148] It's understandable that current mobile phones, when enabling multi-image playback, typically display each image as it's acquired. However, when displaying landscape images, this can easily lead to a large amount of redundant display area. For example... Figure 5 (e) and Figure 5 As shown in (f) in the diagram. However, when a single image is displayed as a blurry image, there is a problem with the display being blurry, such as... Figure 1 As shown in (f) in the figure.

[0149] Optionally, multiple images can be from the photo albums of other devices. That is, images from the photo albums of other devices can be shared to the device and displayed on the device.

[0150] In one scenario, taking a large, landscape-oriented smart screen as an example, images from a phone's photo album can be shared and displayed on the smart screen. For example... Figure 6 As shown in (a), when both the smart screen 601 and the mobile phone 602 have enabled Near Field Communication (NFC) functionality, when a user needs to share images from the album on the mobile phone 602 to the smart screen, the user can open the sharing function on the mobile phone, select at least one image or a group of images to be shared, and send it to the smart screen that is connected to the mobile phone. The smart screen can then receive at least one image or an image group shared by the mobile phone. The connection between the mobile phone and the smart screen can be established via Bluetooth, or the user can tap the mobile phone 602 against the remote control 603 of the smart screen 601, or directly tap the mobile phone 602 against the smart screen 601 to quickly establish a connection.

[0151] Optionally, such as Figure 6 As shown in (a), when a user needs to share images from the album on their phone 602 to the smart screen, the smart screen 601 can also display a prompt to guide the user to use NFC for wireless connection, such as "Please turn on your phone's NFC and tap it against the remote control," making it easy for the user to understand how to establish a connection between the phone and the smart screen. After the phone 602 taps against the remote control 603, the phone 602 can establish a connection with the smart screen 601 based on the data transmitted via NFC during the tap, allowing the phone 602 and the smart screen 601 to exchange information through the established connection. For example, as shown in (a), Figure 6 As shown in (b), the smart screen 601 can obtain and display the album content that the user selects to share on the mobile phone 602 through the established connection. Thus, the user can directly operate the shared album content on the smart screen.

[0152] When a user performs a playback operation on one or more image groups (such as camera groups) on the smart screen, the smart screen can activate the playback function of the images in those groups. This means it reads one image from each group in a specific order and displays it as the final image. Figure 6 As shown in (c) above. It's understandable that in the current process of playing multiple images on a smart screen, each image to be played is typically displayed directly. However, when displaying a vertical image, this can easily lead to a large amount of redundant display area, such as... Figure 1As shown in (a) above. However, when displaying a blurry image, there is a problem with the display being blurry, such as... Figure 1 As shown in (c) in the figure.

[0153] Optionally, the mobile phone and smart screen can also log in to the same account. For example, the smart screen can display a QR code for account login, which users can scan with their mobile phones to authorize login. After successful authorization, users can directly browse the photo album content on their mobile phones through the smart screen. For example, after detecting a user's playback operation on the camera group in the photo album, the smart screen can automatically play all the images in the camera group.

[0154] In one scenario, a device may enable the playback of multiple images, or it may enable the playback of multiple wallpapers. For example, when a user activates the live wallpaper function on the device, if the device's display screen is in a preset state, the device needs to display wallpapers, and thus the playback of multiple wallpapers can be enabled. The preset state can be always-on display (AOD), lock screen, or desktop display. The wallpaper can refer to the background displayed on the device's screen.

[0155] In one scenario, a device may enable the playback of multiple images, or it may enable the screensaver function. When a user activates the screensaver function on a device whose display screen is in an always-on or locked state, the device needs to display the screensaver images. In this case, the function of playing multiple screensaver images can be enabled. The screensaver images refer to the images displayed on the device's screen after the user has not used the device for a period of time, in order to protect the user's privacy.

[0156] Optionally, to meet users' personalized needs, users can customize the device's wallpaper or screensaver image. When a user selects multiple images or at least one image from a set of images on the device, sets them as wallpaper or screensaver images, and successfully applies the setting, the device can automatically start the playback function of multiple wallpapers or screensaver images when displaying the wallpaper or screensaver image. That is, from the multiple images or at least one image from the set of images selected by the user when setting the wallpaper, one image is read in a certain order as the wallpaper or screensaver image to be displayed and played. It is understood that the above method of the device acquiring multiple images is only an example, and this application does not limit the method of acquiring multiple images; other methods may also be used.

[0157] S420. Based on the device's screen information and the width, height, and resolution of an image, if an image meets the preset conditions, the device will display the image as a single image.

[0158] In this embodiment, after the device acquires an image to be displayed, when it needs to present the image on the device, the device can first determine the attribute information of the image to see if the attribute information of the image meets preset conditions. These preset conditions may be conditions that make an image suitable for display alone on the device screen.

[0159] The attribute information of an image can include its width, height, and resolution. The width and height information can be used to analyze whether an image will have excessive redundant areas when displayed on a device. The resolution information can be used to analyze whether an image will have a blurry display when displayed on a device.

[0160] Among them, width and height information can 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 for width and height can be length units, such as centimeters, decimeters, meters, etc., or they can be the number of pixels. For example, a width value W of 720 and a height value H of 480 could mean that each row of the image contains 800 pixels and each column contains 600 pixels.

[0162] Optionally, the width and height information may also include the aspect ratio, which is the ratio between the width value W and the 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 image's level of detail. Generally, the higher the image resolution, the more pixels it contains, and the clearer the image. If an image contains insufficient data (low resolution) and is then enlarged for viewing, the image will appear quite coarse and blurry.

[0164] One way to represent resolution is by the number of pixels in each direction, which can be expressed as "horizontal pixels × vertical pixels" in the image. For example, image resolution information could be: 720×480, 480×640, 352×288, 240×320, 176×144, 96×28, etc. It can be understood that in this representation, the image resolution can also correspond to the image size, i.e., the horizontal pixel count is the image's width W, and the vertical pixel count is the image's height H.

[0165] Alternatively, the resolution can also be expressed in 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, 3K, 4K, and 8K 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 embodiments of this application do not limit the representation of width and height information and resolution. For example, resolution can also be represented by the size of the image in MB.

[0168] In the embodiments of this application, such as Figure 7 As shown in (a), when the user is looking directly at the device screen, the side of the screen parallel to the user's eyes is called the wide side of the device, and its size 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 its size is the height of the screen.

[0169] Similarly, such as Figure 7 As shown in (b), when a user looks directly at an image, the side of the 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 the 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 this embodiment, the device can determine whether an image meets preset conditions based on its own screen information and the width, height, and resolution of an image. If so, the device can consider the image suitable for direct display alone. In this case, the device can display the image as a single image.

[0171] In this context, "single image display" can be understood as the device displaying only one image on its entire screen. This application does not limit the method by which the device displays a single image; for example, it could be by maintaining the original aspect ratio while enlarging the single image to the maximum size that the screen can display; or it could be by adding a template decoration to the image before displaying it.

[0172] The preset conditions that an image must meet can be set by the user, pre-configured in the device, or automatically adapted according to the device's screen size, screen resolution, or usage scenario.

[0173] Optionally, the device can determine whether the width, height, and resolution of an image meet their respective conditions to determine whether the image meets the preset conditions.

[0174] The device can 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 image width and height conditions when an image is displayed on the device, such that it can fill the entire screen area or cannot approximately fill the entire screen area (i.e., there is a small black border area around the image).

[0175] It is understandable that the image width and height conditions will vary depending on the screen (such as landscape or portrait screen) when the image can fill the entire screen area or cannot approximately fill the entire screen area (i.e., there are fewer black borders around the image). Therefore, the device can reasonably set the first preset condition according to its own screen information.

[0176] For example, for a landscape-oriented large-screen device, the first preset condition could be that the overall shape of the image to be displayed is horizontal (landscape image), or that the width of the image to be displayed is greater than its height. Because the image is horizontal, it is compatible with landscape-oriented large-screen devices, so when the image is displayed on a landscape-oriented large-screen device, it can fill or nearly fill the entire screen area.

[0177] The device can also determine whether the resolution of an image to be displayed meets a second preset condition. This second preset condition can refer to the image resolution condition at which the image to be displayed can be clearly displayed on the device.

[0178] For example, the second preset condition could be that the resolution of the 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 display effect on the screen when displayed on the device, and there will be no problem of display blur.

[0179] It is understandable that the image resolution required for a clear image to be displayed varies for different screens (such as landscape or portrait screens). Therefore, the device can reasonably set the second preset condition based on its own screen information.

[0180] In this embodiment, when the attribute information of an image to be displayed simultaneously meets both of the above-mentioned preset conditions, it can be considered that the image is suitable for single-image presentation in terms of both width and height dimensions and resolution dimensions. When presented on the device screen, it will not have a large amount of redundant area, nor will it have a display blur problem. At this time, the device can be triggered to directly display the image alone.

[0181] In some scenarios, the device can sequentially judge the width, height and resolution information of an image to be displayed based on the aforementioned preset conditions. When the information judged first meets the corresponding preset conditions, the device can 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, if the information determined later does not meet the corresponding preset conditions, the device may consider that the image to be displayed is not suitable for presentation alone, and thus confirm that the image does not meet the preset conditions.

[0183] In some scenarios, the device can also simultaneously determine the width, height, and resolution information of an image to be displayed based on the aforementioned preset conditions. It is understood that the embodiments of this application do not limit the order in which the preset conditions for determining the width, height, and resolution information of an image to be displayed are determined.

[0184] In one scenario, when the resolution information is represented in the form of "horizontal pixels × vertical 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 based solely on 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 landscape orientation, taking the first preset condition that the width of the image to be displayed is greater than its height, and the second preset condition that the resolution of the image to be displayed is greater than or equal to 720×480 as an example, if the resolution information of the image to be displayed obtained by the device is 1080×720, then the device can analyze based on this resolution information that the width value of the image 1080 is greater than the height value of the image 720, and the image resolution 1080×720 = 777600 is greater than 720×480 = 345600. Therefore, 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 displaying alone, that is, directly display the image to be displayed as a single image.

[0186] S430. If an image does not meet the preset conditions, the device will combine the image with other images that do not meet the preset conditions for display. The other images are the images other than the image in the set.

[0187] In this embodiment, when the device determines that an image to be displayed does not meet preset conditions, it can be considered that the image is not suitable for presentation alone. The device can then combine an image with other images that do not meet the preset conditions for display.

[0188] In this context, combined image display can be understood as displaying more than one image on the device's screen simultaneously. This achieves the effect of displaying multiple images on the screen at the same time. This presentation effect differs from the existing effect of displaying a single image on the screen in full screen.

[0189] In this embodiment, the device can determine whether an image meets preset conditions based on its own screen information and the width, height, and resolution of an image. If the conditions are not met, the device can consider the image unsuitable for direct display alone. In this case, the device can combine the image with other images that do not meet the preset conditions for display.

[0190] Optionally, the device can determine whether at least one of the width, height, and resolution information of an image fails to meet the corresponding preset conditions. If so, the device can consider the image to be displayed unsuitable for direct presentation alone. In this case, the device can combine the image with other images that do not meet the preset conditions for display.

[0191] The device can determine whether the width and height information of an image to be displayed meets the first preset condition, and 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 either of the two preset conditions mentioned above, the device can be triggered to combine the image to be displayed 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 first preset condition, and / or the resolution of an image to be displayed does not meet the second preset condition, it can be confirmed that the image does not meet the preset conditions and is not suitable for displaying alone.

[0193] It is understandable that if the width and height information of an image to be displayed does not meet the first preset condition mentioned above, it can be considered that the width and height of the image are not compatible with the device's screen, and there will be a large amount of redundant area when the image is displayed on the device's screen. Therefore, the device determines that the image is not suitable for display alone and can combine it with other images that do not meet the preset conditions for display.

[0194] It is understandable that if the resolution of an image to be displayed does not meet the second preset condition mentioned above, it can be considered that the resolution of the image is incompatible with the device's screen. When the image is displayed on the device's screen, there will be a problem with image blurring, affecting the user's browsing experience. Therefore, the device determines that the image is not suitable for display alone and can combine it with other images that do not meet the preset conditions for display.

[0195] In some scenarios, when a device sequentially checks the width, height, and resolution of an image to be displayed against the aforementioned preset conditions, if the information checked earlier does not meet the corresponding preset conditions, the device can directly determine that the image to be displayed is not suitable for display alone and therefore does not meet the preset conditions. The device can then combine this image with other images that do not meet the preset conditions for display, without needing to perform subsequent checks. Conversely, if the information checked earlier meets the corresponding preset conditions, the device will then continue with subsequent checks to determine whether the image meets the preset conditions, thereby determining whether to display it alone or in combination with other images that do not meet the conditions.

[0196] Optionally, when the information determined 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, confirm that the image to be displayed does not meet the preset conditions and needs to be combined with other images that do not meet the conditions for presentation.

[0197] Optionally, when the information determined later also meets the corresponding preset conditions, the device can consider that the image to be displayed, in terms of both width and height dimensions and resolution dimensions, is suitable for direct presentation on its own, meaning there will be neither a large amount of redundant display area nor a problem of display blur. Therefore, the device can directly display the image to be displayed as a single image.

[0198] For example, after acquiring an image to be displayed, the device can first determine whether the width and height information of the image to be displayed meets a 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 combined with other images for display. If it meets the condition, the device continues to determine whether the resolution information of the image to be displayed meets a 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 combined with other images for display. If it also meets the condition, the device directly determines that the image to be displayed meets the preset condition, and the device can directly display the image as a single image.

[0199] For example, after acquiring an image to be displayed, the device can first determine whether the resolution information of the image meets a 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 combined with other images for display. If it meets the condition, the device continues to determine whether the width and height information of the image to be displayed meets a 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 combined with other images for display. If it meets the condition, the device can directly determine that the image to be displayed meets the preset condition and can directly display the image as a single image.

[0200] In this way, before displaying images, the device can adaptively display high-resolution images with matching width and height directly as a single image, and combine images with mismatched width and height or low resolution for display.

[0201] Optionally, when the device detects that multiple images need to be played, or when it detects that the user has selected to play images from a certain image group, the device can prompt the user through a prompt box whether to enable the adaptive image playback function. If the user agrees to enable the adaptive image playback function, the device can execute the image display method provided in this application to determine whether the image is presented alone or in combination with other images based on the image width and height information and resolution information.

[0202] The image display method provided in this application embodiment allows a device to determine whether its width, height, and resolution meet preset conditions before displaying each image, based on the device's screen information, when enabling playback of multiple images. This analysis determines whether the image is suitable for direct display alone. Thus, if the device accurately analyzes the image's width, height, and resolution to determine if it is suitable for direct display on the device's screen, it can display that image directly. Conversely, if the analysis determines that the image is unsuitable for direct display alone, the device can combine it with other images that are also unsuitable for direct display. This ensures the user can view the image while fully utilizing the device's display area and reducing redundant areas on the screen. For large-screen devices, this combined display method highlights the advantages of large-screen displays, significantly increasing the attractiveness of large-screen devices to users. It reflects differentiated processing of different images, displaying images suitable for direct display individually and combining images unsuitable for direct display.

[0203] Figure 8 A schematic flowchart of another image display method provided in an embodiment of this application is shown. This image display method can be applied to the aforementioned device. Figure 8 As shown, the image display method provided in this application embodiment may include:

[0204] S810, The device acquires at least one image set to be played, wherein the at least one image set includes multiple images.

[0205] The at least one set of images to be played can be a group of images selected by the user for display by the device. This group can be a specific image group in the album, or all the images in the album. The album can be the device's own album, or an album from another device used for sharing and display on the device.

[0206] S820: The device reads one image from at least one image set as the image to be displayed according to a preset reading rule. For each image in the at least one image set, the following judgment logic is executed. This judgment logic may include S830 to S890.

[0207] The preset reading rules can be based on the original arrangement of multiple images in at least one image set, such as by time, by size, or by name. Alternatively, they can be based on a user-defined arrangement rule.

[0208] According to the preset reading rules, each image read by the device can be used as one of the images to be displayed. The device then determines whether to display the image directly or to display the image in combination.

[0209] In this embodiment of the application, the device can comprehensively determine whether the image to be displayed can be displayed directly or combined with other images based on two dimensions: the width and height information and the resolution information of the image to be displayed.

[0210] This application does not limit the order in which the width and height information and the resolution information are judged. Here, we take the example of judging the width and height information first and then judging the resolution information as an example to illustrate the solution provided by the embodiments of this application.

[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 the image to be displayed meets the first preset condition. If yes, proceed to S840. If no, proceed to S860.

[0213] Optionally, the first preset condition can be that the width and height information of an image to be displayed matches the screen state of the device. The screen state can be either landscape or portrait mode.

[0214] In this embodiment of the application, when the device screen is in landscape mode, if the user views the content displayed on the device, then from the user's perspective, the device screen width is greater than the device screen height, such as... Figure 7 As shown in (a) above. When the device's screen is in portrait mode, if the user is viewing the content displayed on the device, then from the user's perspective, the device's screen height is greater than the screen width, such as... Figure 5 As shown in (d) in the figure.

[0215] Understandable, such as Figure 7 (a) and Figure 5 As shown in (d), when the width and height information of the image does not match the screen state of the device, there will be a large amount of redundant area on the screen if the image is displayed directly alone. Therefore, the device can analyze whether the image is suitable for direct display by judging whether the width and height information of the image to be displayed matches the screen state of the device.

[0216] In this embodiment, 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 the image to be displayed does not meet the first preset condition. At this time, the device can consider that the width and height of the image are not suitable for displaying alone, so the device can add such images with incompatible width and height to the cache pool and not display them temporarily.

[0217] In some scenarios, when a device's screen is in landscape mode, it can determine that the dimensions of an image to be displayed (which is portrait mode) do not match the screen's orientation. A portrait image can be defined as an image whose height is greater than its width. If a landscape-mode device were to forcibly display this image as a single unit, a large amount of redundant space would appear on the screen. For example... Figure 1 As shown in (a), when a device in landscape mode displays a portrait image, there are a large number of black border areas on the left and right sides of the portrait image.

[0218] Therefore, in this embodiment, when a device in landscape mode detects that an image to be displayed is a portrait image, it can assume 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 not display it temporarily.

[0219] Conversely, when a device in landscape mode detects that an image to be displayed is not a portrait image (i.e., a landscape image), it can assume 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.

[0220] Optionally, the device can determine whether an image to be displayed is a portrait image based on its width and height information. If it is a portrait image, it is determined that the width and height information of the image to be displayed does not match the device's landscape orientation. If it is not a portrait image (i.e., a landscape image), it is determined that the width and height information of the image to be displayed matches the device's landscape orientation.

[0221] It's understandable that portrait images are taller than they are wide, making them unsuitable for landscape-oriented devices. Therefore, for landscape-oriented devices, portrait images that are not suitable for direct display can be added to a cache pool and not displayed temporarily.

[0222] In one approach, the device can determine whether an image to be displayed is a portrait image by judging whether the height value H of the image to be displayed is greater than the width value W. Thus, when the device detects that the height value H of an image to be displayed is greater than the width value W, it can determine that the image to be displayed is a portrait image.

[0223] Alternatively, the device can determine whether an image to be displayed is a portrait image by judging 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 an image to be displayed is less than the preset value, it can determine that the image to be displayed is a portrait image.

[0224] Alternatively, the device can determine whether an image to be displayed is a portrait image by judging whether its aspect ratio matches a preset aspect ratio. For example, it can determine if the aspect ratio of the image to be displayed is identical to or close to the preset aspect ratio (the difference is less than the preset value). Thus, when the device detects that the aspect ratio of an image to be displayed matches the preset aspect ratio, it can determine that the image to be displayed is a portrait image. This preset aspect ratio can be a common aspect ratio for portrait images, such as 9:16, or a common aspect ratio for portrait screens, which can be pre-configured in the device.

[0225] It's understandable that the devices in landscape mode use the standard of portrait images to determine whether the width and height information of the image to be displayed matches the device's screen orientation. In some scenarios, devices in landscape mode can also use the standard of landscape images to determine whether the width and height information of the image to be displayed matches the device's screen orientation.

[0226] For example, when a device recognizes an image to be displayed as a landscape image, it determines that the width and height information of the image to be displayed matches the device's landscape orientation; conversely, if it recognizes an image to be displayed as a non-landscape image, it determines that the width and height information of the image to be displayed does not match the device's landscape orientation. Here, a landscape image can refer to an image whose width is greater than its height. It's understandable that images that are not landscape-oriented are likely not compatible with devices in landscape mode. Therefore, for devices in landscape mode, the device can add non-landscape images that are not suitable for direct display to a cache pool and not display them temporarily.

[0227] It is understood that the above judgment principles are applied when the device screen is in landscape mode. For devices in portrait mode, the same principles can be applied and the judgment principles can be adjusted accordingly. The following explanation will use a device in portrait mode as an example.

[0228] In some scenarios, when the device screen is in portrait mode, the device can determine that the width and height information of the image to be displayed does not match the device's screen orientation if it detects that the image to be displayed is landscape. It's understandable that if a landscape-oriented image is forcibly displayed full-screen on a portrait-oriented device, a large amount of redundant area will exist on the screen. For example... Figure 1As shown in (d), when a device in portrait mode displays a landscape image, there are a large number of black border areas on the top and bottom sides of the landscape image.

[0229] Therefore, in this embodiment, when a device in portrait mode detects that the image to be displayed is a landscape image, it can assume 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 not display it temporarily.

[0230] Conversely, when a device in portrait mode detects that the image to be displayed is not a horizontal image (i.e., a vertical image), it can assume 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 can determine whether the image to be displayed is a landscape image based on its width and height information. If it is a landscape image, it is determined that the width and height information of the image to be displayed does not match the device's portrait orientation. If it is not a landscape image, it is determined that the width and height information of the image to be displayed matches the device's portrait orientation.

[0232] It's understandable that landscape images are wider than they are tall, making them unsuitable for portrait-oriented devices. Therefore, for portrait-oriented devices, landscape images that are not suitable for direct display can be added to a cache pool and not displayed temporarily.

[0233] In one approach, the device can determine that an image to be displayed is a landscape image when it detects that the width value W of the image to be displayed is greater than the height value H. In another approach, the device can also determine that an image to be displayed is a landscape image when it detects that the aspect ratio of the image to be displayed is greater than a preset value (e.g., 1). Yet another approach, the device can also determine that an image to be displayed is a landscape image when it detects that the aspect ratio of the image to be displayed matches a preset aspect ratio. The preset aspect ratio can be a common aspect ratio for landscape images, such as 4:3 or 16:9, or it can be a common aspect ratio for landscape screens, which can be pre-configured in the device.

[0234] Similarly, the aforementioned portrait-oriented devices use the standard of horizontal images to determine whether the width and height information of the image to be displayed matches the device's screen orientation. In some scenarios, portrait-oriented devices can also use the standard of vertical images to determine whether the width and height information of the image to be displayed matches the device's screen orientation. For example, the device can determine that the width and height information of the image to be displayed matches the device's portrait orientation when it recognizes that the image to be displayed is a portrait image; and determine that the width and height information of the image to be displayed does not match the device's portrait orientation when it recognizes that the image to be displayed is not a portrait image. It can be understood that non-portrait images are likely not compatible with portrait-oriented devices. Therefore, for portrait-oriented devices, the device can add non-portrait images that are not suitable for direct display to a cache pool and not display them temporarily.

[0235] It is understandable that the above judgment logic requires knowledge of the device's screen state, which can be fixed or variable.

[0236] In some scenarios, devices can be divided into devices with fixed placement postures (such as smart screens mounted on the wall) and devices with non-fixed placement postures (such as portrait-oriented mobile phones that can be placed vertically or rotated 90° to be placed horizontally).

[0237] For devices with a fixed placement orientation, their screen state is usually fixed. For example, a smart screen mounted on a wall typically has a width greater than its height, and its screen state is fixed as landscape. However, for devices with a non-fixed placement orientation, the placement orientation also affects the determination of the screen state. For example, a portrait-oriented phone will have a portrait screen when placed vertically, but it will be in landscape mode when placed horizontally. Therefore, for devices with a non-fixed placement orientation, the screen state can be determined by combining the screen type and the device's placement orientation.

[0238] Alternatively, for devices with a fixed placement posture, the device can determine the screen status through its own device information.

[0239] As an example, a device can obtain its own device information, such as whether it can be rotated, the screen's width and height, and its resolution. The device can then determine its default screen type and resolution based on this information. The default screen type is either a default landscape orientation or a default portrait orientation. A default landscape orientation means that in the device's default usage scenario (normal usage scenario), the screen width is greater than the screen height. A default portrait orientation means that in the device's default usage scenario (normal usage scenario), the screen height is greater than the screen width.

[0240] When the device's default screen type is landscape, the device can determine that its screen state is landscape. When the device's default screen type is portrait, the device can determine that its screen state is portrait. Thus, the device can read its built-in device attribute information (such as screen width and height) used to display images to identify whether the device's screen is landscape or portrait. Furthermore, since the device's placement is fixed, the device can directly determine its screen state based on the screen type.

[0241] Optionally, for devices with non-fixed placement postures, the device can first determine the default screen type based on its own device information, and then determine the screen state when the user actually uses the device based on the device's placement posture.

[0242] In one scenario, once a device determines its default screen type is portrait mode based on its device information, it can confirm that its current screen state is portrait when the device is normally placed in portrait orientation. If the device detects that it has been rotated by a specified angle, such as 90°, to landscape orientation, it can confirm that its current screen state is landscape. For example, a portrait-oriented phone has a portrait screen when placed in portrait mode and a landscape screen when placed in landscape mode.

[0243] In one scenario, once a device determines its default screen type to be landscape mode based on its device information, it can confirm that its current screen state is landscape when the device is normally placed in landscape mode. If the device detects that it has been rotated by a specified angle, such as 90°, to be placed in portrait mode, it can confirm that its current screen state is portrait mode.

[0244] Furthermore, for foldable phones, the device can also determine its default screen type as foldable through device information. When the device detects that the screen is folded, it can confirm that its current screen state is portrait mode. If the device detects that the screen is unfolded, it can confirm that its current screen state is landscape mode.

[0245] S840: The device determines whether the resolution information of the image to be displayed meets the second preset condition. If yes, proceed to S850. If no, proceed to S860.

[0246] Optionally, the second preset condition can be that the resolution information of the image to be displayed matches the screen resolution of the device. Here, screen resolution refers to the physical resolution of the screen itself. One method is to express it as "horizontal pixels × vertical pixels." For example, an 800×600 screen resolution means that each row can display 800 pixels horizontally and each column can display 600 pixels vertically. Another method is to use nK resolutions such as 2K, 3K, 4K, and 8K.

[0247] It is understandable that the device can analyze whether an image is suitable for direct display by determining whether the resolution information of the image to be displayed matches the device's screen resolution.

[0248] In this embodiment, 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 can consider that the resolution of the image is not suitable for presentation alone, so the device can add such images that cause blurry screen display due to low resolution to the cache pool and not display them temporarily.

[0249] In some scenarios, the device can obtain the device's screen resolution. If it detects that the resolution of an image to be displayed is less than the screen resolution, it can determine that the resolution of the image to be displayed does not match the device's screen resolution. Thus, when the device detects that the resolution of an image to be displayed is less than the screen resolution, it can confirm that the resolution of the image to be displayed does not meet a second preset condition. It can then execute S860, which adds the image to the cache pool and does not display it temporarily.

[0250] Conversely, when the device detects that the resolution of an image to be displayed is greater than or equal to the screen resolution, it can assume that the resolution of the image to be displayed matches the device's screen resolution. At this point, the device can determine that the resolution of the image to be displayed meets the second preset condition: the image to be displayed does not need to be combined with other images, and its resolution is high enough that its direct full-screen display on the screen can satisfy the user's viewing experience. Therefore, 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 can also determine that the resolution of an image to be displayed does not match the device's screen resolution if it detects that the resolution of the image to be displayed is lower than a first resolution. The first resolution can be the minimum resolution set to ensure a good viewing experience when the image is displayed on the device. This first resolution can be pre-configured in the device. It can be set by the user, or it can automatically adapt to the device's screen resolution. For example, if the device's screen resolution is 2K, the first resolution can be 1K, thus enabling the combination and presentation of images with resolutions lower than 1K.

[0252] Thus, when the device detects that the resolution of an image to be displayed is less than the first resolution, it can confirm that the resolution of the image to be displayed does not meet the second preset condition. It can then execute S860, which adds the image to the cache pool and temporarily refrains from displaying it.

[0253] Conversely, when the device detects that the resolution information of an image to be displayed is greater than or equal to the first resolution, it can consider that the resolution information of the image to be displayed matches the device's screen resolution. 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 combined for presentation, and the resolution of the image to be displayed is high enough that its direct full-screen display on the screen can satisfy the user's viewing experience. Therefore, the device can execute S850 at this time, that is, the device directly displays the image to be displayed as a single image.

[0254] It is understandable 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, then the image to be displayed can be considered suitable for direct presentation on its own, regardless of either its width / height or resolution dimensions. This means there will be neither a large amount of redundant display area nor a problem of blurry display. The image to be displayed does not need to be combined for presentation. Therefore, the device can directly display the image to be displayed in full screen.

[0255] S850: The device displays a single image to be displayed.

[0256] In this embodiment, after the device displays a single image that meets the above-mentioned preset conditions, the device can return to execute S820, that is, the device reads at least one next image from the image set as the image to be displayed. The above-mentioned judgment logic is then executed for that next image.

[0257] S860: The device caches an image to be displayed to the cache space.

[0258] In this embodiment of the application, after the device caches an image to be displayed that does not meet the first preset condition in terms of width and height information, and / or does not meet the second preset condition in terms of resolution, into the cache space, it can determine the number of images cached in the cache space. This determination may include:

[0259] S870: The device determines whether the number of images in the buffer space has reached a first number. If yes, proceed to S880; otherwise, return to S820, meaning the device reads at least one next image from the image set as the image to be displayed. The same determination logic is then executed for that next image.

[0260] Optionally, the first quantity can be the number of combined images designed to provide a better viewing experience when displayed on the device. It can be the maximum number of images the device can display simultaneously while ensuring a good viewing experience for each image, for example, 3. It can be set by the user, pre-configured in the device, or automatically adapted based on the device's attributes (such as screen size).

[0261] It is understandable that different devices have different screen sizes and resolutions, as well as different usage scenarios, so different initial quantities and preset conditions need to be set for different devices.

[0262] In this embodiment, the device can detect the number of cached images to be displayed in the cache space to determine whether the number of cached images to be displayed has reached a first number. When it is determined that the number of cached images to be displayed has reached the first number, these cached images to be displayed are combined and displayed.

[0263] Optionally, when the device detects that the number of images to be displayed in the cache space has not reached the first number, the device can continue to acquire the next image to be displayed and repeat the above judgment process. Thus, when the number of images in the cache space is insufficient, the device can continue to determine whether the width, height, and resolution information of the next image meets the above preset conditions. If at least one piece of information is not met, the next image can 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 checks the number of images already cached in the current cache space to determine if the first number of images has been cached. If it is determined that the first number of images has been cached, the device can combine these cached images for display.

[0265] As an example, for a large-screen device with a landscape orientation, taking a first quantity of 3, a first preset condition that the width of the landscape image is greater than its height, and a second preset condition that the image resolution is greater than or equal to the screen resolution as an example.

[0266] like Figure 9As shown, if the device acquires an image A to be displayed and determines that the width and height information of the image A meets the first preset condition, but the resolution information of the image A does not meet the second preset condition, the device can cache the image A to be displayed to the cache space. At this time, the device can detect the number of images in the current cache space. If the cache space previously only cached an image B to be displayed, then after the device caches an image A to be displayed to the cache space, the device can detect that the number of images to be displayed in the cache space has not reached 3. At this time, the device can continue to acquire the next image to be displayed, such as an image C to be displayed.

[0267] like Figure 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 further determining 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 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, image A, and image C.

[0268] Optionally, when the device combines and displays a cached image B, an image A, and an image C, it can retain the original display order (i.e., the order in which they were added to the cache pool). For example, such as Figure 10 As shown, the device can display the first image B to be displayed on the left side of the screen, the second image A to be displayed in the middle of the screen, and the last image C to be displayed on the right side of the screen.

[0269] Optionally, when combining and displaying a cached image B, an image A, and an image C, the device can also change the original display order to prioritize the best image combination display effect. For example, the device can display an image A on the left side of the screen, an image B in the middle of the screen, and an image C on the right side of the screen.

[0270] It is understandable that, regarding the image A to be displayed, although its width and height information indicates that image A is a landscape image (horizontal shape), suitable for large-screen devices with landscape orientation, its resolution is relatively low. If the device displays image A directly on the screen, it will be enlarged to a large size to fill or nearly fill the entire screen. In this case, the low-resolution image A will appear quite grainy and blurry. Figure 1 As shown in (c) in the example. Therefore, in this embodiment of the application, for images that are blurred due to low resolution, the device can combine them with other images to scale the image to a suitable size, thereby ensuring a certain level of clarity and improving the display effect of such blurred images, thus guaranteeing the user's viewing experience.

[0271] It is understandable that since the images B, A, and C cached in the cache space have been sent to the screen for display, the device can clear the cached images 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, then the device can consider that the image C to be displayed is suitable for direct presentation alone, regardless of its width and height dimensions or its resolution dimensions. That is, there will be neither a large amount of redundant display area nor a problem of display blurring. Therefore, the device can directly display the image C to be displayed in full screen.

[0273] In one scenario, the device can also check the number of cached images to be displayed in the current cache space every preset time interval. If it is determined that a first number of images have been cached, the device can combine and display these cached images. Optionally, if it is determined that the number of cached images to be displayed exceeds the first number, the device can also combine and display these cached images according to a preset combination strategy. The preset combination strategy can be to divide the cached images to be displayed into multiple groups, with each group containing no more than a first number of images. The device can then combine and display the images from each group separately. If it is determined that the number of cached images to be displayed has not reached the first number, the device can wait for the next preset time interval and check the number of images in the cache space again.

[0274] In one scenario, after adding the current image to be displayed to the cache space, the device can either not immediately check the number of images in the cache space, but directly continue to determine whether the next image meets the preset conditions, until all images have been checked, and then check whether the number of images in the cache space has reached a first number. If it is determined that the first number of images has been cached, the device can combine and display these cached images to be displayed. If it is determined that the number of cached images to be displayed has exceeded the first number, the device can divide these currently cached images to be displayed into multiple groups, with each group containing no more than the first number of images. The device can then combine and display the images from each group separately.

[0275] If, after all images have been evaluated, the device detects that the number of cached images to be displayed has not yet reached the first threshold, then if the device has at least two images cached in the cache space, it will still display these images in a combined display manner. If the device has only one image cached in the cache space, it can display that image individually. For example, the device can display the image individually on the left side of the screen, or on the center side of the screen.

[0276] In this way, before displaying images, the device can adaptively display high-resolution landscape images directly in full screen, and combine portrait images or low-resolution landscape images for display.

[0277] S880: The device combines and displays images from the cache space.

[0278] In some scenarios, when a device combines images to be displayed from the cache space, if the images in the cache space include images with appropriate width and height but low resolution (such as...), the device may encounter issues. Figure 8 When displaying an image (A) as shown, the device does not directly display the image alone simply because its dimensions fit the screen. Instead, it scales the image proportionally to maintain its original aspect ratio while increasing its size to a sufficient resolution for clear display. The device then combines this scaled image with other images in its cache for display. Thus, for images with suitable dimensions but low resolution, the device can appropriately scale the image proportionally when combining it with other images, ensuring that the scaled image is displayed clearly and completely on the screen, while also being appropriately combined with other images.

[0279] It is understandable that in existing technologies, for images with appropriate dimensions, devices typically enlarge them directly to full-screen display without considering the image resolution. However, in this embodiment, for images with appropriate dimensions but inappropriate resolution, the device directly adds them to the cache space, waiting to be displayed in combination with other images. Furthermore, when displayed in combination with other images, the device can adaptively scale the image size appropriately to ensure a certain level of clarity and avoid blurry display issues.

[0280] S890, the device clears the images in the cache space.

[0281] In some scenarios, after a device has read multiple images from at least one image set, it can determine whether there are any undisplayed images remaining in the cache. If so, the device can combine and display these remaining undisplayed images. Although the number of images in the cache may not have reached the initial limit, the device can still combine and display these images. It should be noted that if there is only one image in the cache, the device can directly present that single image.

[0282] The device may display it separately, but it can scale it proportionally to a certain size and resolution before displaying it separately.

[0283] In one scenario, if the playback type of the aforementioned at least one image set is loop playback, after reading the last image in at least one image set, the device can continue to read from the beginning according to preset reading rules, rereading an image from the at least one image set as the image to be displayed. In this way, during the loop playback of multiple images, the device can also decide whether to combine or display the images individually based on the dimensions of the image's width, height, and resolution.

[0284] For example, when a device is looping through multiple images from image set 1 and image set 2, after reading the last image in image set 1, the device can continue reading images from image set 2, and after reading the last image in image set 2, it can start reading images from image set 1 again from the beginning, and so on. It's understandable that if the buffer already contains one or more images when the device rereads images from image set 1, the combined images displayed may change during subsequent playback.

[0285] The image display method provided in this application embodiment allows the device to determine whether the image's width, height, and resolution information meet preset conditions before displaying it, based on the device's screen information, to analyze whether the image is suitable for direct display alone. If all preset conditions are met, the device can display the image alone. If at least one of the preset conditions is not met, the device can add the image to a cache pool and not display it until the number of images in the cache pool reaches a certain value, at which point the image is combined with other images added to the cache pool for display. In this way, the device accurately analyzes whether an image is suitable for direct display alone based on its width, height, and resolution information, and can combine it with other images that are also unsuitable for direct display. This ensures that the user can view the image while fully utilizing the device's display area and reducing redundant areas on the screen. Furthermore, for large-screen devices, this combination display method highlights the advantages of large-screen displays, greatly enhancing the attractiveness of large-screen devices to users. It reflects differentiated processing of different images, displaying images suitable for direct display alone as individual images and combining images unsuitable for direct display alone.

[0286] The following explanation will take a large-screen device in landscape mode as an example.

[0287] Please see Figure 11 When the device needs to display multiple images, it can read the images according to the order of the image list. For each image read, the device can determine if it is a landscape image. If it is not a landscape image (i.e., a portrait image), the device can add the image to the cache space, waiting to be combined with other images for display. After adding the image to the cache space, the device can check if the number of images in the cache space has reached a certain threshold. If it has, the device can combine these cached images for display. For example, ... Figure 12 As shown, when the cache space contains a first number of images, such as three vertical images, the device can combine and display these three vertical images on the screen. After combining and displaying these cached images, the device can clear the cache space and continue reading the next image in sequence for the same judgment. If the number of images in the cache space has not reached the first number, the device can continue reading the next image in sequence for the same judgment.

[0288] If the device determines that the image is a landscape image (i.e., a portrait image), it can further determine whether the image's resolution is greater than the first resolution. If so, it means that the image is suitable for full-screen display in both width and height dimensions and resolution dimensions, therefore the device can... Figure 13The image is displayed as a single image, meaning it is enlarged to its maximum display size while retaining its original aspect ratio, to fill or nearly fill the entire screen. Then, the process continues by sequentially reading the next image and performing the same judgment.

[0289] If the image's resolution is lower than the first resolution, it means that displaying it directly in full screen will result in a blurry image. Therefore, the device can add the image to the cache space, waiting to combine it with other images for display. After adding the image to the cache space, the device can check if the number of images in the cache space has reached a certain threshold. If it has, the device can combine these cached images for display. Then, the cache space is cleared, and the device continues to read the next image in sequence for the same checks.

[0290] It's understandable that if the device can read the next image in sequence, it means the image list hasn't been completely read, and the device can repeat the above process. If the device cannot read the next image in sequence, it means the image list has been completely read. At this point, the device can check if the cache space is empty. If it is empty, it means multiple images have been played, and the device can end the playback process. If it's not empty, it means there are still undisplayed images, and these images are not horizontal images larger than the first resolution; therefore, these images are not suitable for individual full-screen display. In this case, the device can still combine and display these undisplayed images. After combining and displaying these images, the device can clear the cache space. At this point, the cache space is empty, and the device can end the display process.

[0291] If there are more than one undisplayed image remaining in the cache space, the device can combine and display these remaining images. If there is only one undisplayed image remaining in the cache space, since it cannot be combined with other images, the device can also display this image as a single image. Optionally, if the image is a landscape image smaller than the first resolution, the device can first scale the image to a certain size while maintaining its original aspect ratio, ensuring it has sufficient resolution for clear display. Then, the proportionally scaled image is displayed as a single image. In this way, the device can clearly present low-resolution images individually, improving the user's browsing experience.

[0292] It is understandable that the above preset conditions are based on the premise that the image to be displayed is suitable for displaying in full screen on the device screen. In some scenarios, preset conditions can also be set based on the premise that the image to be displayed is not suitable for displaying in full screen on the device screen.

[0293] As an example, the device can determine whether the width and height information of an image to be displayed meets a third preset condition, and whether the resolution information of an image to be displayed meets a 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 can directly display the image 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] The third preset condition can refer to the image's width and height conditions when an image to be displayed on the device cannot fill the entire screen area or cannot approximately fill the entire screen area (i.e., there are few black borders around the image). For example, the third preset condition could be that the width and height information of the image to be displayed does not match the device's screen orientation. Taking a landscape-oriented device as an example, the device could consider the width and height information of the image to be displayed to be mismatched with the device's screen orientation if it detects that the image to be displayed is a portrait-oriented image. That is, it would confirm that the width and height information of the image to be displayed meets the third preset condition.

[0295] The fourth preset condition can refer to the image resolution condition when an image to be displayed cannot be clearly displayed on the device. For example, the fourth preset condition could be that the resolution information of the image to be displayed does not match the screen resolution of the device. As an example, the device can determine that the resolution information of the image to be displayed does not match the screen resolution of the device when it detects that the resolution information of the image to be displayed is less than the first resolution, that is, it confirms that the resolution information of the image to be displayed meets the fourth preset condition.

[0296] This application does not limit the setting of preset conditions; they can be set reasonably according to the actual application scenario.

[0297] It is understood that, in order to achieve the above-mentioned functions, the device includes hardware and / or software modules corresponding to the execution of each function. Based on the algorithmic steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and software. Whether a function is executed in a hardware or software-driven hardware manner 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 conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0298] This embodiment can divide the device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0299] As an example, such as Figure 14 As shown, device 1400 may include an acquisition unit 1401, a determination unit 1402, a cache unit 1403, and a display unit 1404. Wherein;

[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 displayed directly 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 display the image directly as a single image, or to combine multiple images for display.

[0301] Optionally, the cache unit 1403 can also be used to determine whether the number of images in the cache space has reached a threshold, and also to provide combined image resources to the display unit 1404.

[0302] Optionally, the determining unit 1402 can also be used to detect whether the number of images in the cache space has reached a threshold, and can also be used to instruct the cache unit 1403 to provide combined image resources to the display unit 1404.

[0303] Optionally, when the software system of device 1400 adopts such Figure 3 In the software architecture block diagram shown, the aforementioned acquisition unit 1401, determination unit 1402, caching unit 1403, and display unit 1404 can be deployed in the screen saver application within the application layer. Thus, when the screen saver function is enabled on device 1400, the image display method provided in this application embodiment can be executed during the playback of multiple screen saver images to adaptively display high-resolution screen saver images with appropriate width and height directly as a single image, while combining and displaying screen saver images with inappropriate width and height or low resolution.

[0304] Optionally, when the system library of the software system of device 1400 includes an image display function 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 function module of the system library.

[0305] Optionally, when the application framework layer of the software system of device 1400 provides image display services, the aforementioned acquisition unit 1401, determination unit 1402, caching unit 1403, and display unit 1404 can also be deployed within the image display services of the application framework layer. This application does not limit the deployment method of the aforementioned acquisition unit 1401, determination unit 1402, caching unit 1403, and display unit 1404 in the software architecture of the device.

[0306] This 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 performs the various functions or steps described in the above method embodiments.

[0307] This application also provides an image display device, which can be applied to the aforementioned device. This device is used to perform various functions or steps performed by the device in the above method embodiments.

[0308] This application also provides a chip system including at least one processor and at least one interface circuit. The processor and the interface circuit are interconnected via lines. The interface circuit can read instructions stored in a memory and send the instructions to the processor. When the processor executes the instructions, it can cause the device to perform various functions or steps performed by the device in the above method embodiments. Of course, the chip system may also include other discrete devices, and this application does not specifically limit this.

[0309] This application also provides a readable storage medium including instructions that, when executed on the device, cause the device to perform various functions or steps performed by the device in the above method embodiments.

[0310] This application also provides a program product that, when run on a device, causes the device to perform various functions or steps performed by the device in the above method embodiments.

[0311] In this embodiment, the device, image display apparatus, readable storage medium, program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0312] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An image display method, characterized in that, Applied to a device, the method includes: During the playback of multiple images, one image to be displayed is selected from the multiple images; If the image meets the preset conditions based on the screen information of the device and the width, height and resolution of the image, the image will be displayed as a single image. If it is determined that an image does not meet the preset condition, the image is combined with other images that do not meet the preset condition for display. The other images are the images other than the image in the plurality of images. The combined display means that at least two different images to be displayed are displayed on the screen.

2. The method according to claim 1, characterized in that, The screen information includes screen status and screen resolution. The screen status includes landscape or portrait mode. Determining that an image meets preset conditions based on the device's screen information, the width, height, and resolution of the image includes: When the width and height information of an image matches the screen state, and the resolution of the image matches the screen resolution, it is determined that the image meets the preset conditions. The determination that an image does not meet the preset conditions includes: If the width and height information of an image does not match the screen state, and / or the resolution of an image does not match the screen resolution, it is determined that the image does not meet the preset conditions.

3. The method according to claim 2, characterized in that, When the screen state is landscape mode, 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 landscape image; The mismatch between the width and height information of an image and the screen state includes: 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 portrait mode, 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 vertical image; The mismatch between the width and height information of an image and the screen state includes: Based on the width and height information of the image, the image is determined to be a landscape image.

4. The method according to claim 2 or 3, characterized in that, The resolution of the image is matched with the screen resolution, including: The resolution of the image is greater than or equal to the first resolution; The resolution of an image does not match the screen resolution, including: The resolution of one of the images is less than the first resolution; The first resolution is pre-configured in the device, or the first resolution is determined based on the screen resolution.

5. The method according to claim 2 or 3, characterized in that, The method further includes: Obtain the device information of the device; Based on the device information, determine the screen type and screen resolution of the device, wherein the screen type is a landscape screen or a portrait screen; The screen state of the device is determined based on the screen type and the device's placement orientation.

6. The method according to any one of claims 1-3, characterized in that, The step of combining and displaying an image with other images that do not meet the preset conditions when it is determined that an image does not meet the preset conditions includes: If it is determined that an image does not meet the preset condition, the image is cached in the cache space, wherein the cache space is used to cache images among the plurality of images that do not meet the preset condition; 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 includes: If an image to be displayed cannot be obtained, and if at least two images are cached in the cache space, the images in the cache space will be combined and displayed. If the cache space contains an image, then the image in the cache space will be displayed as a single image.

8. The method according to claim 6, characterized in that, After combining and displaying the images in the cache space, the method further includes: Clear the images in the cache space.

9. The method according to any one of claims 1-3, characterized in that, The step of retrieving a single image to be displayed from among multiple images during playback includes: Obtain at least one image set to be played, wherein the at least one image set includes multiple images; During the playback of the at least one image set, an image from 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 includes: If the playback type of the at least one image set is loop playback, then after reading the last image in the at least one image set, the preset reading rules are followed to reread an image in the at least one image set as an image to be displayed.

11. A display device, characterized in that, The device includes a memory and one or more processors; the memory is used to store a program, and when the processor executes the program, the device performs the method as described in any one of claims 1-10.

12. A readable storage medium, characterized in that, Includes a program that, when run on a device, causes the device to perform the method as described in any one of claims 1-10.