View display method and electronic equipment

By reading and decoding thumbnails in the same group on an electronic device, the problem of long display time and white blocks in the year view scene is solved, and faster thumbnail display and better User experience.

CN119441524APending Publication Date: 2025-02-14HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310980043.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the 1990s view scene, the number of pictures is large and the thumbnail refresh display is performed independently, resulting in too many reading and decoding operations, resulting in longer image display time, white blocks occur, affecting the user experience.

Method used

By reading and decoding the thumbnails in the same group at one time, the resource consumption of electronic devices is reduced, the reading and decoding speed of thumbnails is improved, the display time is shortened, and the white block phenomenon is avoided.

Benefits of technology

It effectively reduces resource consumption of electronic devices, improves the reading and decoding speed of thumbnails, shortens the display time of thumbnails, avoids white blocks, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441524A_ABST
    Figure CN119441524A_ABST
Patent Text Reader

Abstract

The invention discloses a view display method and electronic equipment. The method comprises the following steps: the electronic equipment receives an operation acting on a first interface, wherein the operation is used for displaying a thumbnail of a target picture; the electronic device obtains a first group corresponding to the target picture and obtains a spliced large picture corresponding to the first group according to the first group, and the spliced large picture comprises image features of thumbnails of the pictures belonging to the first group. And the electronic equipment obtains image features of the thumbnail of the target picture. And the electronic equipment displays the thumbnail of the target picture on the second interface according to the image features of the thumbnail of the target picture. Therefore, when the decoded thumbnails are read, the electronic equipment reads and decodes the thumbnails in the same group once, so that the resource consumption of the electronic equipment is effectively reduced, the reading and decoding speeds of the thumbnails on the electronic equipment are improved, the display time of the thumbnails is shortened, and the display efficiency of the thumbnails is improved. And the phenomenon that white blocks temporarily appear in the region before the thumbnail is displayed is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to a view display method and an electronic device. Background Art

[0002] With the rapid development of electronic devices, electronic devices may include gallery or album functions. The pictures in the gallery or album on the electronic device may be divided according to the time dimension, which may refer to year, month, and day. That is, the browsing scenes of the gallery on the electronic device may be divided into year view scene, month view scene, and day view scene. Users may browse picture thumbnails of different sizes and different orders of magnitude in different view scenes, so as to facilitate users to browse pictures taken or stored in different time periods in different time dimensions.

[0003] The current view display method is: taking the year view scenario as an example, when the user slides the year view interface displayed on the electronic device, the electronic device will refresh the thumbnails arranged in reverse chronological order. The refreshing process includes reading the thumbnail resources, decoding the images, drawing and rendering, and finally displaying the thumbnails one by one in the corresponding area of ​​the electronic device.

[0004] However, since there are many pictures in the year view scene, and the thumbnail refresh display is performed independently for each picture during the entire view display process, the number of operations such as reading picture resources and decoding pictures, which consume more electronic device resources, is too many, which makes the picture display time longer and causes white blocks to appear briefly in the area where the picture was previously displayed. In particular, when the user quickly slides the year view interface, a large number of white blocks will appear, which leads to a poor user experience. Summary of the invention

[0005] The view display method and electronic device provided in the embodiments of the present application shorten the display time of the thumbnail of the picture and avoid the phenomenon that a white block briefly appears in the area where the thumbnail of the picture is located before being displayed.

[0006] In order to achieve the above-mentioned purpose, the embodiment of the present application adopts the following technical solution.

[0007] In a first aspect, the present application provides a view display method, the execution subject of the method may be an electronic device, or a component located in the electronic device (for example, a chip, a chip system or a processor, etc.), and the following description is made by taking the execution subject being an electronic device as an example. The method may include: receiving a first operation acting on a first interface, the first operation being used to display a thumbnail of a first target image; obtaining a first group corresponding to the first target image; obtaining a first spliced ​​large image corresponding to the first group according to the first group, the first spliced ​​large image including image features of thumbnails of images belonging to the first group; obtaining image features of the thumbnail of the first target image; and displaying a thumbnail of the first target image on a second interface according to the image features of the thumbnail of the first target image.

[0008] In one example, the first interface can be understood as a picture display interface of a gallery application. The interface can be a display interface of a first view, and the first view can include any one of a day view, a month view, and a year view. Of course, the first view can also be other views, such as a half-month view, a half-year view, etc. This is not specifically limited in this application.

[0009] In one example, the first group may be pre-generated, and the first group is obtained by grouping the multiple images according to a first preset order and a first quantity, and the first preset order may be understood as a collection time order, an arrangement order, or a position order of the multiple images. The first quantity may be the number of thumbnails determined according to a display size of the first view thumbnail.

[0010] In one example, the first spliced ​​large image can be understood as a spliced ​​large image of image features of thumbnails of all images in the first group. That is, the thumbnails of all images in the first group are spliced ​​into the spliced ​​large image according to the order and size.

[0011] In the present application, when an electronic device reads the thumbnails of decoded pictures, the electronic device does not need to read and decode the thumbnails one by one, but reads and decodes the thumbnails in the same group once, effectively reducing the resource consumption of the electronic device. At the same time, the reading and decoding speed of the thumbnails on the electronic device is improved, so that the display time of the thumbnails is shortened, avoiding the phenomenon of white blocks briefly appearing in the area before the thumbnail is displayed.

[0012] In one design scheme, displaying a thumbnail of the first target image on the second interface is specifically: obtaining a first position on the second interface for displaying a thumbnail of the first target image; and displaying a thumbnail of the first target image according to the first position and image features of the thumbnail of the first target image.

[0013] In one example, the first position can be understood as a control on the first interface, and the control is used to display a picture or a thumbnail of a picture.

[0014] In some designs, before receiving the first operation on the first interface, the method further includes: grouping the first number of pictures to obtain the first group of pictures; obtaining thumbnails of the first group of pictures; and splicing the thumbnails of the first group of pictures to obtain the first spliced ​​large picture. The first number may be the number of thumbnails determined according to the display size of the first view thumbnail.

[0015] For example, taking the year view as an example, the corresponding area of ​​each thumbnail in the mosaic is [64*pos,0,64*pos+64,64], which corresponds to an area of ​​[left, top, right, bottom], which corresponds to the image features of the thumbnail. Among them, pos refers to the order of each thumbnail (also the order of the pictures in the first group), and the size of each thumbnail is 64*64 pixels.

[0016] In one design solution, grouping the first number of pictures includes grouping the first number of pictures according to a first view, where the first view includes a day view, a month view, or a year view.

[0017] In one design solution, the first operation is used to display a thumbnail of the first target image in the first view mode.

[0018] In one design scheme, the thumbnails of the pictures in the first group are stitched together to obtain the first stitched large picture, specifically: according to the time sorting of the pictures in the first group, the thumbnails of the pictures in the first group are stitched together into the first stitched large picture.

[0019] In some design schemes, the method of grouping the first number of pictures to obtain the pictures of the first group also includes: receiving a specified operation, and the specified operation includes at least one of the following: a screen off operation, a charging operation, a picture import operation, an operation of opening a gallery application, a triggering operation of displaying pictures in a first view in a gallery application for the first time, and a picture synchronization operation.

[0020] In one design scheme, grouping the first number of pictures to obtain the first group of pictures specifically includes: grouping the first number of pictures according to a preset period to obtain the first group of pictures.

[0021] In some designs, the method further includes: when a change in the number of pictures is detected, updating the first group and the first stitched large picture corresponding to the first group.

[0022] In one design, when a change in the number of pictures is detected, the first group is updated, specifically: when it is detected that the number of newly added pictures reaches a first threshold, the first group is updated; or, when it is detected that the number of deleted pictures reaches a second threshold, the first group is updated. In the present application, based on the request for picture changes in the gallery application, adjacent thumbnails displayed on the interface of the electronic device are grouped into the same group as much as possible, so as to flexibly adjust the spliced ​​large image. Subsequently, when the electronic device refreshes the displayed thumbnails, the electronic device can find the corresponding thumbnail on the updated spliced ​​large image, with high accuracy, thereby improving the user experience.

[0023] In some design schemes, before acquiring the first stitched large image corresponding to the first group according to the first group, it also includes: determining whether a first stitched large image of groups corresponding to the first group is stored in the electronic device.

[0024] In one design scheme, obtaining the first stitched large image corresponding to the first group according to the first group is specifically: according to the first group to which the first target image belongs, determining that the first stitched large image corresponding to the first group is stored in the memory; and obtaining the first stitched large image corresponding to the first group.

[0025] In one design scheme, the method of obtaining the first stitched large image corresponding to the first grouping according to the first grouping is specifically as follows: determining whether the second target image in the first grouping has sent a request to read the first stitched large image corresponding to the first grouping, the second target image being any image in the first grouping; if the second target image has sent a request to read the first stitched large image corresponding to the first grouping, obtaining the first stitched large image corresponding to the first grouping stored in the memory; if the second target image has not sent a request to read the first stitched large image corresponding to the first grouping, reading the first stitched large image according to the group identifier of the first group and storing it in the memory.

[0026] In one design scheme, the method of obtaining the first stitched large image corresponding to the first grouping according to the first grouping is specifically as follows: when the first stitched large image corresponding to the first grouping is not stored in the memory, determining whether the first stitched large image is in the processing process; if the first stitched large image is in the processing process, waiting for the processing of the first stitched large image to be completed and obtaining the first stitched large image; if the first stitched large image is not in the processing process, reading the first stitched large image according to the group identifier of the first group and storing it in the memory.

[0027] In one design scheme, a first stitched large image corresponding to the first group is obtained based on the first grouping, specifically: based on the group identifier of the first group to which the first target image belongs, and the order of the first target image in the group, image features of a thumbnail corresponding to the first target image are obtained in the first stitched large image corresponding to the group identifier.

[0028] In one design scheme, the thumbnail of the first target image is displayed according to the image features of the thumbnail of the first position and the first target image, specifically: the image features of the thumbnail of the first target image are rendered at the first position; the thumbnail of the first target image is displayed at the first position; when the number of the images has not changed, the first area of ​​the first interface displays a second stitched large image, and the second stitched large image is the same as the first stitched large image; when the number of the images increases, the first area of ​​the first interface displays a third stitched large image, and the third stitched large image includes the image features of some or all thumbnails in the first stitched large image and the image features of some or all thumbnails in the fourth stitched large image, and the fourth stitched large image is stitched together from the thumbnails of the newly added images; when the number of the images decreases, the first area of ​​the first interface displays a fifth stitched large image, and the fifth stitched large image is different from the first stitched large image.

[0029] In one design solution, the first interface is an interface of a gallery application or a file management application.

[0030] In a second aspect, the present application provides an electronic device, comprising: a receiving module, an acquisition module and a display module; wherein the receiving module is used to receive a first operation acting on a first interface, and the first operation is used to display a thumbnail of a first target image. The acquisition module is used to acquire a first group corresponding to the first target image. The acquisition module is used to acquire a first spliced ​​large image corresponding to the first group based on the first group, and the first spliced ​​large image includes image features of thumbnails of images belonging to the first group. The acquisition module is used to acquire image features of the thumbnail of the first target image. The display module is used to display the thumbnail of the first target image on the second interface based on the image features of the thumbnail of the first target image.

[0031] In one example, the first interface can be understood as a picture display interface of a gallery application. The interface can be a display interface of a first view, and the first view can include any one of a day view, a month view, and a year view. Of course, the first view can also be other views, such as a half-month view, a half-year view, etc. This is not specifically limited in this application.

[0032] In one example, the first group may be pre-generated, and the first group is obtained by grouping the multiple images according to a first preset order and a first quantity, and the first preset order may be understood as a collection time order, an arrangement order, or a position order of the multiple images. The first quantity may be the number of thumbnails determined according to a display size of the first view thumbnail.

[0033] In one example, the first spliced ​​large image can be understood as a spliced ​​large image of image features of thumbnails of all images in the first group. That is, the thumbnails of all images in the first group are spliced ​​into the spliced ​​large image according to the order and size.

[0034] In the present application, when an electronic device reads the thumbnails of decoded pictures, the electronic device does not need to read and decode the thumbnails one by one, but reads and decodes the thumbnails in the same group once, effectively reducing the resource consumption of the electronic device. At the same time, the reading and decoding speed of the thumbnails on the electronic device is improved, so that the display time of the thumbnails is shortened, avoiding the phenomenon of white blocks briefly appearing in the area before the thumbnail is displayed.

[0035] In one design, the acquisition module is used to acquire a first position for displaying a thumbnail of the first target image on the second interface, and the display module is used to display the thumbnail of the first target image according to the first position and an image feature of the thumbnail of the first target image.

[0036] In one design solution, the electronic device further includes: a grouping module and a splicing module, wherein the grouping module is used to group the first number of pictures to obtain the first group of pictures. The acquisition module is used to obtain thumbnails of the first group of pictures. The splicing module is used to splice the thumbnails of the first group of pictures to obtain the first spliced ​​large picture.

[0037] In one design solution, the grouping module is used to group the first number of pictures according to a first view, where the first view includes a day view, a month view, or a year view.

[0038] In one design solution, the first operation is used to display a thumbnail of the first target image in the first view mode.

[0039] In one design solution, the stitching module is used to stitch thumbnails of the pictures in the first group into the first stitched large picture according to the time sorting of the pictures in the first group.

[0040] In one design scheme, the receiving module is used to: receive specified operations, and the specified operations include at least one of the following: screen off operation, charging operation, picture import operation, opening gallery application operation, triggering operation of displaying pictures in the first view in the gallery application for the first time, and picture synchronization operation.

[0041] In one design scheme, the grouping module is used to: group the first number of pictures according to a preset period to obtain pictures in the first group.

[0042] In one design scheme, the electronic device also includes: an updating module, wherein the updating module is used to update the first group and the first spliced ​​large image corresponding to the first group when a change in the number of images is detected.

[0043] In one design, the updating module is used to: update the first grouping when it is detected that the number of newly added pictures reaches a first threshold; or update the first grouping when it is detected that the number of deleted pictures reaches a second threshold.

[0044] In one design, the electronic device further includes: a determination module, wherein the determination module is used to determine that a first stitched large image of a group corresponding to the first group is stored in the electronic device. In the present application, according to the request for change of the image in the gallery application, adjacent thumbnails displayed on the interface of the electronic device are grouped into the same group as much as possible, so as to flexibly adjust the stitched large image. Subsequently, when the electronic device refreshes the displayed thumbnails, the electronic device can find the corresponding thumbnail on the updated stitched large image, with high accuracy, thereby improving the user experience.

[0045] In one design scheme, the acquisition module is used to: determine, based on the first group to which the first target image belongs, whether the first spliced ​​large image corresponding to the first group is stored in the memory; and acquire the first spliced ​​large image corresponding to the first group.

[0046] In one design scheme, the acquisition module is used to: determine whether the second target image in the first group has sent a request to read the first spliced ​​large image corresponding to the first group, and the second target image is any image in the first group; if the second target image has sent a request to read the first spliced ​​large image corresponding to the first group, then obtain the first spliced ​​large image corresponding to the first group stored in the memory; if the second target image has not sent a request to read the first spliced ​​large image corresponding to the first group, then read the first spliced ​​large image according to the group identifier of the first group and store it in the memory.

[0047] In one design, the acquisition module is used to: when the first spliced ​​large image corresponding to the first group is not stored in the memory, determine whether the first spliced ​​large image is in the process of being processed. If the first spliced ​​large image is in the process of being processed, wait for the first spliced ​​large image to be processed and acquire the first spliced ​​large image. If the first spliced ​​large image is not in the process of being processed, read the first spliced ​​large image according to the group identifier of the first group and store it in the memory.

[0048] In one design scheme, the acquisition module is used to: acquire image features of a thumbnail corresponding to the first target image in a first spliced ​​large image corresponding to the group identifier based on the group identifier of the first group to which the first target image belongs and the order of the first target image in the group.

[0049] In one design scheme, the display module is used to: render the image features of the thumbnail of the first target image at the first position; display the thumbnail of the first target image at the first position; when the number of the images has not changed, the first area of ​​the first interface displays a second stitched large image, and the second stitched large image is the same as the first stitched large image; when the number of the images increases, the first area of ​​the first interface displays a third stitched large image, and the third stitched large image includes the image features of some or all of the thumbnails in the first stitched large image and the image features of some or all of the thumbnails in the fourth stitched large image, and the fourth stitched large image is stitched together from the thumbnails of the newly added images; when the number of the images decreases, the first area of ​​the first interface displays a fifth stitched large image, and the fifth stitched large image is different from the first stitched large image.

[0050] In one design solution, the first interface is an interface of a gallery application or a file management application.

[0051] In a third aspect, the present application provides an electronic device, comprising: one or more processors; and a memory, wherein the memory stores a code; when the code is executed by the processor, the electronic device executes the method described in the first aspect.

[0052] In a fourth aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect.

[0053] Among them, the specific implementation methods and corresponding technical effects of each of the second to fourth aspects mentioned above can refer to the specific implementation methods and technical effects of the first aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1A schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0058] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0059] Figure 6 A flowchart of a view display method provided in an embodiment of the present application;

[0060] Figure 7-1 A flowchart of a view display method provided in an embodiment of the present application;

[0061] Figure 7-2 A schematic diagram of a flow chart of a method for updating a large spliced ​​image provided in an embodiment of the present application;

[0062] Figure 7-3 A schematic diagram of updating a spliced ​​large image provided in an embodiment of the present application;

[0063] Figure 7-4 A schematic diagram of a flow chart of a method for updating a large spliced ​​image provided in an embodiment of the present application;

[0064] Figure 7-5 A schematic diagram of updating a spliced ​​large image provided in an embodiment of the present application;

[0065] Figure 7-6 A schematic diagram of updating a spliced ​​large image provided in an embodiment of the present application;

[0066] Figure 8-1 A flowchart of a view display method provided in an embodiment of the present application;

[0067] Figure 8-2 A flowchart of a view display method provided in an embodiment of the present application;

[0068] Figure 8-3 A flowchart of a view display method provided in an embodiment of the present application;

[0069] Fig. 9 A schematic diagram of the correspondence between a gallery interface and a large mosaic image in an application scenario of a view display method provided in an embodiment of the present application;

[0070] Fig.10 A schematic diagram of the correspondence between a gallery interface and a large mosaic image in an application scenario of a view display method provided in an embodiment of the present application;

[0071] Fig.11 A schematic diagram of the correspondence between a gallery interface and a large mosaic image in an application scenario of a view display method provided in an embodiment of the present application;

[0072] Fig.12 A schematic diagram of the correspondence between a gallery interface and a large mosaic image in an application scenario of a view display method provided in an embodiment of the present application;

[0073] Fig.13 A schematic diagram of the correspondence between a gallery interface and a large mosaic image in an application scenario of a view display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The electronic device may include a gallery or album function. The pictures in the gallery or album on the electronic device may be divided according to the time dimension, which may refer to year, month, and day. That is, the browsing scenes of the gallery on the electronic device may be divided into a year view scene, a month view scene, and a day view scene. The user may browse thumbnails of different sizes and different orders of magnitude in different view scenes, so as to facilitate the user to browse pictures taken or stored in different time periods in different time dimensions.

[0075] Specifically, Figure 1 A schematic diagram of an interface of an electronic device is provided. Figure 1 As shown, the electronic device 100 displays Figure 1 The interface 101 shown in FIG. 1 includes an icon 102 of a gallery application. When a user clicks the icon 102, the display interface of the electronic device 100 jumps to Figure 2 The interface 103 shown in the figure includes multiple pictures, which are divided according to the time dimension of date. When the user slides two fingers along the arrow on the interface 103, in response to the user operation, the electronic device 100 reads the thumbnails of the pictures one by one in time sequence, and decodes the thumbnails to obtain the image features of the thumbnails. After that, the electronic device 100 draws and renders the image features of the thumbnails, and then displays the following image: Figure 3 The interface 104 shown. A blank area 105 and some thumbnails 106 are displayed in the display area of ​​2020 on the interface 104. Similarly, when the user presses Figure 3 The control 107 shown is along the arrow or Arrow When sliding, in response to the user operation, the electronic device 100 repeatedly performs the above operations of reading, decoding, drawing and rendering each thumbnail 106, and the interface of the electronic device 100 may still display a blank area 105, such as Figure 3 The picture shown shows blank area within the display area for 2019.

[0076] In summary, since there are many thumbnails in the year view scene, and the thumbnails are refreshed and displayed independently during the entire view display process, the number of operations such as reading thumbnail resources and decoding thumbnails, which consume more electronic device resources, is too many, which makes the thumbnail display time longer and causes white blocks to appear briefly in the area where the thumbnail was previously displayed. In particular, when the user quickly slides the year view interface, a large number of white blocks will appear, which leads to a poor user experience.

[0077] In order to solve the above problem, an embodiment of the present application provides a view display method, which is applied to an electronic device, and the electronic device determines the first number of thumbnails displayed in the first view according to the display size of the thumbnail in the first view. The electronic device groups the first number of pictures on the electronic device in reverse chronological order to obtain a first group. The electronic device determines the thumbnails of each picture in the first group in the first view. The electronic device splices all thumbnails in the first group into a spliced ​​large image. The grouping information of the first group may include the identifier of the first group, the position and identifier of each picture in the first group in the group, and the spliced ​​large image includes the group identifier and the image features of each thumbnail in the first group on the spliced ​​large image. When a first operation of the user on the first interface of the gallery application on the electronic device is received, the first operation is used to trigger the display of the first view on the first interface. In response to the first operation, the electronic device determines the first display area corresponding to the first view, and the first display area includes a first position for displaying the thumbnail of the target picture. The electronic device reads the first group corresponding to the target picture and the spliced ​​large image of the first group according to the grouping information. The electronic device decodes the spliced ​​large image and finds the image features of the target thumbnail corresponding to the target picture on the spliced ​​large image. The electronic device displays the target thumbnail at the first position of the first display area according to the image features of the target thumbnail. It can be seen that the difference between the present application and the existing view display method is that when reading and decoding thumbnails, the electronic device does not need to read and decode thumbnails one by one, but reads and decodes thumbnails in the same group once, which effectively reduces the resource consumption of the electronic device. At the same time, it improves the reading and decoding speed of thumbnails on the electronic device, shortens the display time of thumbnails, and avoids the phenomenon of white blocks briefly appearing in the area where the thumbnail is displayed.

[0078] Exemplarily, using the above example, when the user's two fingers are in Figure 2When sliding along the arrow on the interface 103 shown, in response to the user operation, the operation is used to trigger the display of the year view on the interface 104. The electronic device 100 reads the spliced ​​large image corresponding to the first group to which the target image belongs, and decodes the image features of the thumbnail in the spliced ​​large image. After that, the electronic device 100 draws and renders the image features of the thumbnail of the target image. Usually, the drawing and rendering takes a while. After the drawing and rendering are completed, the electronic device 100 displays the following Figure 4 The interface 104 shown displays thumbnails of all pictures in the year view on the interface 104. Since the electronic device 100 reads and decodes the thumbnails in the same group once, the reading and decoding speed of the thumbnails on the electronic device is improved, so that the display time of the thumbnails is shortened, so that all the thumbnails on the interface 104 are displayed without the phenomenon of white blocks.

[0079] Figure 5 is a structural block diagram of the electronic device 100.

[0080] like Figure 5 As shown, the electronic device 100 may include a processor 210, a memory 220, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, a wireless communication module 250, a sensor module 260, a button 270, a display screen 280, and a camera 290, etc. The sensor module 260 may include a pressure sensor 260A, a touch sensor 260B, etc.

[0081] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0082] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0083] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0084] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0085] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device. While the charging management module 240 is charging the battery 242, it may also power the electronic device through the power management module 241.

[0086] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the memory 220, the display screen 280, and the wireless communication module 250. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0087] The wireless communication function of the electronic device can be implemented through the antenna 1, the wireless communication module 250, the modem processor and the baseband processor.

[0088] Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0089] The wireless communication module 250 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 250 can be one or more devices integrating at least one communication processing module. The wireless communication module 250 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 250 can also receive the signal to be sent from the processor 210, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1.

[0090] The electronic device implements the display function through a GPU, a display screen 280, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 280 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.

[0091] The display screen 280 is used to display images, videos, etc. The display screen 280 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 280, where N is a positive integer greater than 1.

[0092] The electronic device can realize the shooting function through an ISP, a video codec, a GPU, a display screen 280, and an application processor.

[0093] The ISP is used to process the data fed back by the camera 290. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 290.

[0094] The camera 290 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB (RGB represents the three colors red, green, and blue), YUV ("Y" represents brightness (Luminance or Luma), that is, the grayscale value, and "U" and "V" represent chrominance (Chrominance or Chroma)) format. In some embodiments, the electronic device may include 1 or N cameras 290, where N is a positive integer greater than 1.

[0095] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0096] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0097] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0098] The memory 220 can be used to store computer executable program codes, which include instructions. The memory 220 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 220, and / or instructions stored in a memory provided in the processor.

[0099] The pressure sensor 260A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 260A can be set on the display screen 280. There are many types of pressure sensors 260A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 260A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 280, the electronic device detects the touch operation intensity according to the pressure sensor 260A. The electronic device can also calculate the touch position according to the detection signal of the pressure sensor 260A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0100] The touch sensor 260B is also called a "touch control device". The touch sensor 260B can be set on the display screen 280, and the touch sensor 260B and the display screen 280 form a touch screen, also called a "touch control screen". The touch sensor 260B is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 280. In other embodiments, the touch sensor 260B can also be set on the surface of the electronic device, which is different from the position of the display screen 280.

[0101] The key 270 includes a power key, a volume key, etc. The key 270 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.

[0102] Of course, the electronic device may also include other functional units, which are not limited in the embodiments of the present application.

[0103] The electronic device 100 is an electronic device with an image display function. Illustratively, the electronic device 100 may be a mobile phone, a tablet computer (Pad), a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a virtual reality (VR) device, etc.

[0104] A method for displaying a view provided in an embodiment of the present application is applied to Figure 5 The electronic device shown, the method can be described in detail in the following stages:

[0105] The first stage is the preparation stage.

[0106] Figure 6 and Figure 7-1 A flowchart of a view display method provided in an embodiment of the present application is shown as follows: Figure 6 and Figure 7-1 As shown, the method may include: S700, S710, S720, S730 and S740 (some of which are optional). For details of S700, S710, S720, S730 and S740, please refer to the description of the following embodiments. Specifically, it may be:

[0107] S700: The electronic device groups a plurality of pictures of a gallery application to obtain a first group.

[0108] After the camera of the electronic device captures multiple pictures, the information of these pictures is stored in the memory space of the electronic device. In addition, these pictures can be displayed on the interface of the gallery application according to the first view. Among them, the first view can include a day view, a month view or a year view. For example, in the day view scenario, these pictures can be arranged in the order of the time of acquisition and displayed in a Figure 2 However, in the month view or year view scenario, since a large number of pictures need to be displayed on the interface, thumbnails of these pictures need to be displayed on the interface of the gallery application. Therefore, the electronic device needs to group multiple pictures of the gallery application according to different view scenarios. Specifically, the grouping method is as follows:

[0109] In a specific implementation, the electronic device determines a first number of thumbnails displayed in the first view according to a display size of the thumbnails in the first view, and the electronic device groups the first number of pictures on the electronic device according to a first preset order to obtain a first group.

[0110] Among them, the thumbnail can be understood as a cropped or reduced image of the image. The thumbnail in the first view can be understood as a cropped or reduced image of the image in the first view. That is to say, the thumbnails of the same image are different in different view scenarios. For example, the size of the image can be 4096*3072 pixels, then in the month view scenario, the size of the thumbnail of the image can be 128*128 pixels, and in the year view scenario, the size of the thumbnail of the image can be 64*64 pixels.

[0111] In one example, the number of thumbnails that can be displayed by the electronic device in different view scenarios is different. For example, in the month view scenario, the number of 128*128 pixel thumbnails displayed by the electronic device can be 80. Correspondingly, the number of pictures is also 80. In the year view scenario, the number of 64*64 pixel thumbnails displayed by the electronic device can be 100. Correspondingly, the number of pictures is also 100. In the present application, the first view is the year view, and the first number is 100 as an example for explanation.

[0112] The first preset order may include a collection time order, a position order, an arrangement order, etc. In the present application, a detailed description is given by taking the first preset order of reverse time order as an example.

[0113] In specific implementation, the specific setting value of the first number can be selected according to actual needs. For example, for the month view scene, the electronic device can select 80 thumbnails of multiple 128*128 pixel thumbnails in reverse chronological order and group them into the first group. For the year view scene, the electronic device can select 100 thumbnails of multiple 64*64 pixel thumbnails in reverse chronological order and group them into the first group.

[0114] In a specific implementation, Figure 6 As shown, S700 may specifically be: ① The electronic device receives an operation on the electronic device, which operation may include a user triggering a screen-off operation, or a user performing a secondary triggering operation of first browsing a thumbnail under a first view on an interface of a gallery application. ② When the electronic device receives an operation on the electronic device, a grouping module in the gallery application of the electronic device may first group multiple pictures according to a first preset order and a first quantity to obtain a first group.

[0115] S710: The electronic device determines thumbnails of all pictures in the first group.

[0116] In some examples, the timing of thumbnail generation may include the following situations: Scenario 1: During the process of capturing a picture with the camera, a thumbnail of the picture can be generated, and the information of the picture and its thumbnail can be stored in a storage space. Scenario 2: In the foreground, the generation of a thumbnail of a picture can be triggered by a user operation. Exemplarily, when a user triggers a screen-off operation, or a user performs a secondary trigger operation of browsing the thumbnails under the first view for the first time on the interface of the gallery application, the electronic device determines the thumbnails of all pictures in the first group. Scenario 3: In the background, the electronic device automatically generates thumbnails of the picture. Exemplarily, when the electronic device is charging, or the electronic device automatically performs a thumbnail generation operation, or the electronic device periodically performs a thumbnail generation operation, or when the synchronization of pictures to the electronic device on the cloud side is completed, the electronic device determines the thumbnails of all pictures in the first group.

[0117] Among them, the electronic device determines the thumbnail of the picture, and the specific implementation can be: in a specific implementable manner, the electronic device can scale and / or crop a picture of 4096*3072 pixels to obtain a thumbnail of 64*64 pixels. In another specific implementable manner, the electronic device scales and / or crops a picture of 4096*3072 pixels to obtain a thumbnail of 128*128 pixels. Furthermore, in order to obtain a thumbnail of smaller size, the electronic device can crop the existing thumbnail to obtain a smaller thumbnail. For example, the electronic device can scale or crop a thumbnail of 128*128 pixels to obtain a thumbnail of 64*64 pixels. In this way, existing resources can be fully utilized and efficiency can be effectively improved.

[0118] In a specific implementation, Figure 6 As shown, S710 may specifically be: ③ The thumbnail generation module in the gallery application of the electronic device may generate corresponding thumbnails for all the pictures in the first group. Exemplarily, the electronic device may scale and / or crop the picture of 4096*3072 pixels to obtain a thumbnail of 64*64 pixels.

[0119] S720: The electronic device records group information of the first group.

[0120] In some examples, after the electronic device groups multiple pictures, the electronic device obtains grouping information, which may include an identifier of each group, a picture acquisition time of each group, a first quantity, and an identifier of each picture. Of course, the grouping information may also include a view scene identifier and an identifier of a thumbnail corresponding to each picture. Exemplarily, if the view scene is a month view scene, the identifier of the month view scene may be a month thumbnail grouping key, and correspondingly, the identifier of the thumbnail corresponding to the target picture may be a month thumbnail grouping key_moon_thumbnail 1. If the view scene is a year view scene, the identifier of the year view scene may be a year thumbnail grouping key, and correspondingly, the identifier of the thumbnail corresponding to the target picture may be a year thumbnail grouping key_year_thumbnail 1.

[0121] Afterwards, the electronic device records the above grouping information. Exemplarily, the grouping information stored in the local storage space of the electronic device may be recorded as shown in Table 1, as shown in Table 1:

[0122] Table 1

[0123] Group_key(string) Year(int) Thumbs_count(int) "Group 1" 2019 100 …… …… ……

[0124] In Table 1, the field Group_key indicates the identifier of the group, the field Year indicates the time, and the field Thumbs_count indicates the first quantity.

[0125] Of course, after the electronic device obtains the grouping information, the electronic device can also obtain the picture corresponding to the target picture, and the picture information may include the identification of the target picture, the size of the target picture, the acquisition time of the target picture, the identification of the group to which the target picture belongs, the identification of the thumbnail of the target picture, and the order of the target picture in the group. Afterwards, the electronic device records the above picture information. Exemplarily, the picture information stored in the local storage space of the electronic device can be recorded as shown in Table 2, as shown in Table 2:

[0126] Table 2

[0127] Picture key(string) Group_key(string) Year(int) group by(int) thumbnail key(string) "Picture 1" "Group 1" 201901 01 "thumbnail 1" …… …… …… …… ……

[0128] In Table 2, the field Picture key indicates the identification of the picture, the field Group_key indicates the identification of the group, the field Year indicates the time, the field group by indicates the sorting of the pictures within the group, and the field thumbnail Key indicates the identification of the thumbnail. Of course, the field thumbnail Key can also include the field thumbnail_moon_key and the field thumbnail_year_key. Among them, the field thumbnail_moon_key indicates the identification of the monthly thumbnail. The field thumbnail_year_key indicates the identification of the year thumbnail.

[0129] After the electronic device obtains the image groups, the electronic device can Figure 1 Alternatively, the electronic device may encode the thumbnails of each group as a whole, and then store the encoded thumbnail groups in the storage space. Later, when the electronic device reads the thumbnail of the target image, the electronic device can read the group where the target thumbnail is located according to the group identifier, and the target thumbnail can be read. That is, the electronic device can read the corresponding group of the target thumbnail as a whole, and can read the thumbnails of multiple target images at one time, effectively preventing the thumbnails from being read one by one, and reducing the resource consumption of the electronic device. For details, please refer to the subsequent related description, which will not be repeated here.

[0130] In order to further improve the refresh display rate of thumbnails and reduce the occurrence of white blocks. After the electronic device obtains the picture grouping, the electronic device can splice all the thumbnails in the group to obtain a spliced ​​large image. The spliced ​​large image may contain the image features of each thumbnail. Subsequently, when the electronic device displays the image features of the target thumbnail, it can be obtained by reading and decoding the spliced ​​large image containing the image features of the target thumbnail. That is, the electronic device can read and decode the spliced ​​large image corresponding to the target thumbnail, can read multiple thumbnails at a time, and can decode multiple thumbnails into the memory space at a time, effectively preventing the reading of thumbnails one by one and decoding of thumbnails one by one, and reducing the resource consumption of the electronic device. Among them, the generation of the spliced ​​large image is as described in S730, as follows:

[0131] S730: The electronic device splices the thumbnails of all the pictures in the group according to a second preset order to obtain a spliced ​​large picture.

[0132] After the electronic device groups multiple pictures on the electronic device, the electronic device may splice thumbnails corresponding to the pictures in the group under the following triggering timings. Specifically:

[0133] Trigger timing one: when the electronic device receives an operation on the electronic device.

[0134] In one example, when a user triggers the screen-off operation, or the electronic device is charging, or a gallery application is opened, the electronic device groups the pictures in the timeline album, generates thumbnails for all the pictures in the group, and then splices the thumbnails.

[0135] Trigger timing two: when the electronic device receives a trigger operation for displaying the first view on the interface for the first time.

[0136] In another example, when the electronic device first receives a trigger operation to display a first view on the interface, the electronic device groups pictures in the timeline album, generates thumbnails for all pictures in the group, and then splices the thumbnails.

[0137] Triggering opportunity three: when the electronic device automatically generates multiple thumbnails.

[0138] In another example, when the electronic device automatically performs a thumbnail generation operation, or the electronic device periodically performs a thumbnail generation operation, or when synchronization of pictures to the electronic device is completed on the cloud side, the electronic device splices the thumbnails generated by all the pictures in the group.

[0139] Furthermore, the electronic device may stitch together the image features of all thumbnails in the thumbnail group into a stitched large image according to a second preset order. The second preset order may be understood as the order of the images in the group, or the position order of the thumbnails of the images. That is, the electronic device stitches together the image features of all thumbnails in the group into a stitched large image according to the second preset order.

[0140] In one example, the electronic device can stitch the image features of all thumbnails in the thumbnail group into a stitched large image according to a second preset order, which can be: For example, the electronic device can stitch the image features of multiple rows of thumbnails, or stitch the image features of a row of thumbnails. Specifically, if the image features of a row of thumbnails are stitched, then the position order of each thumbnail is the stitching order. The corresponding area of ​​each thumbnail in the stitched large image is [64*pos,0,64*pos+64,64], which corresponds to an area of ​​[left, top, right, bottom] respectively, and the area corresponds to the image feature of the thumbnail. Subsequently, the electronic device searches for the image features in the stitched large image through the field posInGroup in the main table gallery_media of the picture information, and can directly read the corresponding area [64*pos,0,64*pos+64,64] of the stitched large image, which corresponds to the image features of an area of ​​[left, top, right, bottom]. If the image features of multiple rows of thumbnails are stitched together, such as n columns (10 columns), then the corresponding area of ​​each thumbnail in the stitched large image is [(posInGroup%n)*64, (posInGroup / n)*64, (posInGroup%n)*64+64, (posInGroup / n)*64+64], which corresponds to the image features of the thumbnails. Subsequently, the electronic device searches for the image features corresponding to the area [(posInGroup%n)*64, (posInGroup / n)*64, (posInGroup%n)*64+64, (posInGroup / n)*64+64] in the stitched large image through the posInGroup field in the picture information main table gallery_media.

[0141] Afterwards, the electronic device stores the spliced ​​large image in the memory space, and the identifier of the spliced ​​large image is the identifier of the thumbnail group, which is consistent with the identifier of the picture group corresponding to the spliced ​​large image. The identifier of the spliced ​​large image is included in the group information and / or the picture information.

[0142] Exemplarily, after the electronic device obtains the spliced ​​large image, the grouping information table in the local storage space of the electronic device also changes accordingly. The grouping information may also include the position (or order) of the thumbnails corresponding to each image in the spliced ​​large image. For example, the grouping information stored in the storage space of the electronic device may be recorded in Table 3, which corresponds to Table 1 above, as shown in Table 3:

[0143] Table 3

[0144]

[0145] In Table 2, the field Group_key indicates the identifier of the group, the field Year indicates the time, the field Thumbs_count indicates the first quantity, and the field Kv_count indicates the thumbnail writing kv count.

[0146] In a specific implementation, Figure 6 As shown, S730 may specifically be: after the grouping module in the gallery application obtains the thumbnail group, ④ the splicing module in the gallery application of the electronic device may splice the thumbnails generated by all the pictures in the first group into a spliced ​​large picture. Then, ⑤ the writing module in the gallery application writes the information of the spliced ​​large picture into the storage space.

[0147] In a specific implementation manner, SS730 may be implemented as follows:

[0148] Assume that the electronic device has a main table 4 of picture information in the storage space, which corresponds to the above table 2. Specifically, table 4 may be:

[0149] Table 4

[0150]

[0151] The stitching process of stitching large pictures can be specifically as follows: Exemplarily, taking the first browsing of the year view as an example, when the electronic device receives the operation of triggering the display of the year view on the interface for the first time, the electronic device downsamples, scales or crops the pictures in the first group, and the electronic device generates thumbnails of all pictures in the first group and writes them into the storage space KvDB, which is a database in the storage space for storing thumbnail data. The electronic device queries the group identifier Group_key from the gallery_media table containing all information fields of the picture according to the picture path. The electronic device reads the thumbnail write count Kv_count in the group from Thumbs_group shown in Table 3 according to the group identifier Group_key. If Kv_count is 0, it means that the picture is the first thumbnail written to Kv after the grouping, then the electronic device traverses the number of thumbnails that have been written to Kv in the group and accumulates them to Kv_count. If Kv_count is not 0, the electronic device directly adds 1 to Kv_count. The electronic device determines whether Kv_count is less than the number of thumbnails Thumbs_count recorded in the group. If yes, the electronic device accumulates 1 in Kv_count and writes it back to the Thumbs_group table. If not, the electronic device queries the scaled or cropped year view thumbnails corresponding to all pictures in the group from the query group in gallery_media. If the year thumbnails corresponding to all pictures exist, the electronic device splices the grouped large pictures, that is, splices the large pictures. After the splicing is completed, the electronic device writes the position of the thumbnail splicing to the Year_thumbs_pos_in_group of the gallery_media table, where pos defaults to 1 at the beginning, indicating that the thumbnails are not spliced. Of course, the process of splicing large pictures is not limited to the first browsing of the year view, it can also be the first browsing of the month view or the day view, which is not listed one by one in the embodiments of the present application. For example, when browsing the day view for the first time, the electronic device can also further generate a year thumbnail of 64*64 pixels based on the day thumbnail of 256*256 pixels.

[0152] After the electronic device obtains the stitched large image, when the electronic device receives a year view refresh request, the electronic device can obtain a thumbnail from the corresponding stitched large image according to the request, and display the thumbnail on the interface of the gallery application. For details, please refer to the subsequent related description, which will not be repeated here.

[0153] In this application, by splicing the thumbnails in the thumbnail group into a spliced ​​large image, the spliced ​​large image corresponds to the control that carries the image features of the thumbnails on the decoding of the gallery application. In this way, the image features of the spliced ​​large image can be directly bound to the control in the corresponding area of ​​the interface, reducing the number of thumbnails uploaded to the GPU and reducing the load of the rendering thread. Alternatively, thumbnails can be cut out from the spliced ​​large image according to the controls on the interface, and the cutting of thumbnails from the spliced ​​large image is completed in the memory. Compared with decoding each thumbnail individually, the decoding performance is significantly improved, and the speed of thumbnail refresh display is greatly improved, achieving the purpose of significantly reducing or even eliminating white blocks.

[0154] In some embodiments, the pictures in the gallery application of the electronic device are updated at any time. When the pictures in the gallery application change, the above thumbnail grouping will also change accordingly. As described in S740, specifically as follows:

[0155] S740: When the pictures in the gallery application are changed, the electronic device updates the grouping and stitching of the large picture.

[0156] In one example, if Figure 7-2 As shown, S740 can be specifically implemented as follows: S741, when a new picture is added to the gallery application, the electronic device determines whether the number of the new pictures reaches a first threshold. If the number of the new pictures reaches the first threshold, then S742, the electronic device groups the new pictures and generates a corresponding new spliced ​​large picture. If the number of the new pictures does not reach the first threshold, then S743, the electronic device does not group the new pictures and keeps the original spliced ​​large picture. For example, Figure 7-3 As shown, a new picture is added to the gallery application of the electronic device 100. Before adding the new picture, the electronic device 100 has a group corresponding to the existing pictures. Figure 7-3 After adding pictures, the electronic device 100 determines that the number of new pictures reaches a first threshold, and the acquisition time of these new pictures is continuous. Then, the electronic device 100 groups the new pictures into a group and obtains the corresponding new pictures. Figure 1 .

[0157] In another example, Figure 7-4 As shown, S740 can be specifically implemented as follows: S744, when deleting pictures in the gallery application, the electronic device determines whether the number of deleted pictures reaches a second threshold.

[0158] S745: If the number of deleted pictures reaches a second threshold, the electronic device dissolves the original spliced ​​large picture.

[0159] More specifically, in some embodiments, when the number of deleted pictures reaches the second threshold, it is further determined whether these deleted pictures are pictures with continuous acquisition time. For example, when these deleted pictures are pictures with continuous acquisition time, the electronic device dissolves the existing grouping and regroups the pictures on the electronic device. Correspondingly, the above-mentioned spliced ​​large picture also needs to be re-spliced. When these deleted pictures are pictures with discontinuous acquisition time, the electronic device maintains the existing grouping and maintains the original spliced ​​large picture.

[0160] S746: If the number of deleted pictures does not reach the second threshold, the electronic device maintains the existing grouping and the original spliced ​​large picture.

[0161] For example, Figure 7-5 As shown, a small portion of the pictures are deleted from the gallery application of the electronic device 100. That is, when the number of deleted pictures does not reach the second threshold, the electronic device keeps the existing grouping and the existing spliced ​​large picture. The spliced ​​large picture contains invalid image features, such as Figure 7-5 Image features in the region shown in grayscale.

[0162] For example, Figure 7-6 As shown, most of the pictures are deleted from the gallery application of the electronic device 100. That is, when the number of deleted pictures reaches the second threshold, the electronic device dissolves the existing grouping and regroups the pictures on the electronic device. Correspondingly, the spliced ​​large picture corresponding to the group is also dissolved.

[0163] In this application, according to the change request of the picture in the gallery application, the adjacent thumbnails displayed on the interface of the electronic device are grouped into the same group as much as possible, so as to flexibly adjust the spliced ​​large picture. Later, when the electronic device refreshes the displayed thumbnails, the electronic device can find the corresponding thumbnail on the updated spliced ​​large picture, with high accuracy, improving the user experience.

[0164] The second stage is the application stage.

[0165] Figure 8-1 A flowchart of a view display method provided in an embodiment of the present application is shown as follows: Figure 8-1 As shown, the execution subject of the method may be an electronic device. The method may include S801, S802, S803, S804 and S805 (some of which are optional). For details of S801, S802, S803, S804 and S805, please refer to the description of the following embodiments. Specifically, it may be:

[0166] S801. An electronic device receives a first operation on a first interface, where the first operation is used to display a thumbnail of a first target image.

[0167] In an example, S801 may specifically be: the electronic device receives a first operation on a first interface of a gallery application, where the first operation is used to trigger display of a thumbnail of a first target image in a first view on the first interface.

[0168] The first operation may include a sliding operation, a pressing operation, a clicking operation, and a two-finger zooming operation. The sliding operation may include a single-finger sliding operation or a multi-finger sliding operation. Figure 2 The sliding operation along the arrow on the interface 103 is shown.

[0169] The first view may include a month view or a year view. Of course, the first view is not limited to the above list, and the present application embodiment does not make specific limitations. In the present application embodiment, the first view is taken as an example of a year view.

[0170] S802: The electronic device obtains a first group corresponding to the first target picture.

[0171] In an example, S802 may specifically be: in response to the first operation, the electronic device determines a first display area corresponding to the first view, where the first display area includes a first position for displaying a thumbnail of the target image.

[0172] In a specific implementation method, combining Figure 6 As shown, S802 may specifically be: ⑥ In response to the first operation, the electronic device determines a first display area corresponding to the first view, the first display area including a first position for displaying a thumbnail of the target image. At the same time, the electronic device sends a thumbnail refresh request to a reading module of the gallery application, and the request may carry grouping information corresponding to the target image.

[0173] S803: The electronic device obtains a first stitched large image corresponding to the first group according to the first group, where the first stitched large image includes image features of thumbnails of pictures belonging to the first group.

[0174] In one example, S803 may specifically be: the electronic device reads a first stitched large image corresponding to the first group according to the grouping information of the first group to which the target image belongs, the first group being obtained by pre-grouping multiple images in a first preset order and a first quantity in a first viewing scene; the first stitched large image contains image features of thumbnails of all images in the first group.

[0175] The first preset order and the first quantity can be found in the related description in the above-mentioned first stage, which will not be repeated here.

[0176] In some examples, the grouping information may include an identifier of each group, a picture acquisition time of each group, a first quantity, and an identifier of each picture. Of course, the grouping information may also include a view scene identifier and an identifier of a thumbnail corresponding to each picture. Of course, the grouping information may also include other information, which is not specifically limited in the embodiments of the present application.

[0177] In some examples, the information of the picture may include: picture identification, picture size, picture acquisition time, identification of the group to which the picture belongs, identification of the picture thumbnail, order of the picture in the group, etc. Of course, the information of the picture may also include other information, which is not specifically limited in the embodiments of the present application.

[0178] Exemplarily, using the above Table 4, it is assumed that the identifier of the target picture is Picture 1. The electronic device finds the identifier Group 1 of the first group in gallery_media shown in Table 4 according to the identifier Picture 1 of the target picture. The electronic device finds the identifier Group 1 of the first spliced ​​large picture according to the identifier Group 1 of the first group. The electronic device reads the first spliced ​​large picture from the storage space according to the identifier Group 1 of the first spliced ​​large picture.

[0179] In a specific implementation method, combining Figure 6 As shown, S803 may specifically be: ⑦ The reading module in the gallery application of the electronic device reads the information of the spliced ​​large image corresponding to the target image from the storage space according to the identifier of the first group, such as the identifier of the first spliced ​​large image. The reading module of the electronic device reads the first spliced ​​large image from the storage space according to the identifier of the first spliced ​​large image. ⑧ After the reading module reads the spliced ​​large image corresponding to the target image, the reading module sends the information of the spliced ​​large image to the decoding module of the electronic device.

[0180] S804: The electronic device obtains image features of the thumbnail of the first target image.

[0181] In an example, S804 may specifically be: the electronic device decodes the first spliced ​​large image to obtain image features of a thumbnail of the target image.

[0182] Exemplarily, following the above Table 4, the electronic device reads the first spliced ​​large image and decodes the first spliced ​​large image into the memory space, thereby obtaining the image features of the thumbnails of all the pictures in the first group in the first spliced ​​large image.

[0183] In a specific implementation method, combining Figure 6 As shown, S804 may specifically be: ⑨ The decoding module of the electronic device decodes the spliced ​​large image corresponding to the target image read by the reading module to obtain image features of each thumbnail included in the spliced ​​large image corresponding to the target image.

[0184] S805: The electronic device displays a thumbnail of the first target picture on a second interface according to image features of the thumbnail of the first target picture.

[0185] In an example, S805 may specifically be: the electronic device acquires a first position for displaying a thumbnail of the first target image on the second interface, and displays the thumbnail of the first target image at the first position according to the first position and image features of the thumbnail of the first target image.

[0186] Exemplarily, using the above Table 4, the electronic device obtains the image features of the thumbnail of the target picture Picture 1 in the area corresponding to the position on the first spliced ​​large picture according to the identifier Group 1 of the first spliced ​​large picture and the position of the year thumbnail splicing under the field Year_thumbs_pos_in_group. Afterwards, the electronic device binds the image features of the thumbnail of the target picture Picture 1 to the first position, and performs rendering and display operations. Finally, the thumbnail of the target picture is displayed at the first position.

[0187] In a specific implementation method, combining Figure 6 As shown, S805 may specifically be: ⑩ The drawing module of the electronic device extracts the image features of the thumbnail in the area corresponding to the position of the target image in the first group (that is, the position of the thumbnail corresponding to the target image in the spliced ​​large image) on the spliced ​​large image. The drawing module establishes a corresponding relationship between the image features of the thumbnail of the target image and the first position. The rendering module of the GPU renders the image features of the thumbnail of the target image at the first position and displays it through the display screen 280 .

[0188] It can be seen that the difference between the present application and the existing view display method is that, when reading and decoding thumbnails, the electronic device does not need to read and decode the thumbnails one by one, but reads and decodes the thumbnails in the same group once, which effectively reduces the resource consumption of the electronic device. At the same time, it improves the reading and decoding speed of thumbnails on the electronic device, shortens the display time of the thumbnails, and avoids the phenomenon of white blocks briefly appearing in the area where the thumbnail is displayed.

[0189] Figure 8-2 A flowchart of a view display method provided in an embodiment of the present application is shown as follows: Figure 8-2As shown, the execution subject of the method may be an electronic device. The method may include S800, S810, S820, S830, S840 and S850 (some of which are optional). For details of S800, S810, S820, S830, S840 and S850, please refer to the description of the following embodiments. Specifically, it may be:

[0190] S800: The electronic device starts a gallery application and displays interface 1 of the gallery application.

[0191] In one example, if Figure 1 As shown, the user clicks on the interface 101 of the electronic device 100 to display the icon 102 of the gallery application. In response to the user's click operation, the electronic device 100 starts the gallery application. The display interface of the electronic device 100 jumps to Figure 2 The interface 103 (ie, interface one) shown includes a plurality of pictures.

[0192] S810. The electronic device receives an operation 1 on an interface 1 of a gallery application, where the operation 1 is used to trigger display of a first view on an interface 2.

[0193] The first view may include a month view or a year view. Of course, the first view is not limited to the above list, and the embodiment of the present application does not make any specific limitation.

[0194] The operation one may include a sliding operation, a pressing operation, a clicking operation, and a two-finger zooming operation. The sliding operation may include a single-finger sliding operation or a multi-finger sliding operation. For example, the operation one may include two fingers of the user sliding on the screen. Figure 2 The sliding operation along the arrow on the interface 103 is shown.

[0195] That is, the operation is used to switch the view scene, for example, Figure 2 As shown, when the user slides along the arrow once on interface 103, it means that the interface of the gallery application displays the month view. On this basis, when the user slides along the arrow once again on interface 103, it means that the interface display of the gallery application switches from the month view to the year view.

[0196] Of course, this operation is not limited to switching view scenes, but can also be used to browse views. Figure 4 As shown, when the user Figure 4 When the control 107 is pressed on the year view interface shown in FIG. 1 and the arrow “↑” or “↓” is slid, the interface 104 of the electronic device 100 sequentially displays views of each year. Alternatively, the user can Figure 4The year view interface shown is operated on the interface, for example, the user can slide along the arrow "↑" or arrow "↓" on the interface. In response to the user operation, the interface 104 of the electronic device 100 sequentially displays views of each year. Of course, there may be other situations, which are not specifically limited in the embodiment of the present application.

[0197] S820. In response to operation 1, the electronic device determines a first display area corresponding to the first view, where the first display area includes a first position for displaying a thumbnail of a target image.

[0198] In one example, the thumbnail of the target image can be understood as the thumbnail of the target image in the first group under the first view. That is, for the same image, the thumbnail corresponding to the image is different in different views. For example, in the month view scenario, the target image corresponds to a thumbnail of 265*265 pixels; in the year view scenario, the target image corresponds to a thumbnail of 64*64 pixels.

[0199] In one example, the layout, size, dimensions and other information of the first display area are pre-set. The first display area may include multiple first positions, each of which corresponds to the position of a thumbnail. It can be understood that the first display area is control one, the first position can be understood as control two, and the control one is composed of multiple control twos. Each control two can be bound to the image feature of a thumbnail. Of course, the first display area is different in different views. For example, in the year view scenario, the first display area can be composed of 5 rows and 16 columns. That is to say, the display area of ​​the first interface can display 80 thumbnails.

[0200] In one achievable manner, S820 may include: S821 and S822. Among them, S821 and S822 may be specifically implemented as: S821, the electronic device pre-stores the correspondence between each view and the operation information. When the electronic device receives operation one, the electronic device may determine the first view corresponding to operation one according to the operation information of operation one and the correspondence between each view and the operation information. S822, the electronic device pre-stores the correspondence between each view and the display area. After the electronic device determines the first view, the electronic device may determine the first display area corresponding to the first view.

[0201] In a specific implementation method, combining Figure 6 As shown, S820 may specifically be: ⑥ In response to operation 1, the electronic device determines a first display area corresponding to the first view, the first display area including a first position for displaying a thumbnail of the target image. At the same time, the electronic device sends a thumbnail refresh request to a reading module of the gallery application, and the request may carry grouping information corresponding to the target image.

[0202] S830: The electronic device reads the spliced ​​large image corresponding to the first group to which the target image belongs according to the group information corresponding to the target image, so as to obtain image features of the thumbnail of the target image, where the spliced ​​large image includes the image features of the thumbnail of the target image.

[0203] As described in the first stage, the thumbnails of multiple pictures in the gallery application of the electronic device are grouped, and the grouping information and / or picture information are recorded. The grouping information may include at least one of the following: group identification, view scene identification, picture acquisition time in each group, number of thumbnails corresponding to the view scene, identification of each picture, etc. The picture information may include at least one of the following: target picture identification, target picture size, target picture acquisition time, identification of the group to which the target picture belongs, identification of the thumbnail of the target picture, and the order of the target picture in the group. Based on this, the electronic device can determine the target picture that needs to be refreshed and displayed at the first position and the identification of the group to which the target picture belongs according to the first position; the electronic device then obtains the image features of the thumbnail corresponding to the target picture on the spliced ​​large picture corresponding to the group identification according to the identification of the group and the order of the target picture in the group, that is, obtains the image features of the thumbnail of the target picture corresponding to the first position.

[0204] In this way, the electronic device can read the spliced ​​large image corresponding to the group where the target image is located, that is, read the group corresponding to the target image as a whole, and can read thumbnails of multiple images at one time, effectively preventing the reading of thumbnails one by one and reducing the resource consumption of the electronic device.

[0205] In a specific implementation method, combining Figure 6 As shown, S830 may specifically be: ⑦ The reading module in the gallery application of the electronic device reads the information of the spliced ​​large image corresponding to the target image from the storage space according to the identification of the group.

[0206] In a specific implementation, Figure 8-2 As shown, S830 may include: S831, S832, S833, S834, S835 and S836 (some of which are optional). Among them, S831, S832, S833, S834, S835 and S836 may specifically include:

[0207] In some examples, the target image may be a newly added image on the electronic device, and the image does not participate in the operation described in the first stage. Therefore, the target image may not have a corresponding group or a corresponding spliced ​​large image. Therefore, the electronic device needs to determine whether the target image has a corresponding spliced ​​large image, which is specifically implemented as S831, as follows:

[0208] S831, the electronic device determines whether there is a spliced ​​large image corresponding to the target image. If there is a spliced ​​large image corresponding to the target image, S832 is executed; if there is no spliced ​​large image corresponding to the target image, the target image in the database is read and decoded, and rendering and display operations are performed.

[0209] Specifically, the electronic device can determine whether there is a group identifier corresponding to the first group to which the target image belongs, based on the target image and the grouping information stored in the storage space. When the electronic device does not find the group identifier corresponding to the target image, the electronic device determines that there is no group corresponding to the target image. When the electronic device finds the group identifier corresponding to the target image, the electronic device determines that there is a group corresponding to the target image. The electronic device determines whether there is a spliced ​​large image corresponding to the first group to which the target image belongs based on the group identifier corresponding to the target image; when the electronic device does not find the spliced ​​large image corresponding to the first group, the electronic device determines that there is no spliced ​​large image corresponding to the target image. When the electronic device finds the spliced ​​large image corresponding to the first group, the electronic device determines that there is a spliced ​​large image corresponding to the target image.

[0210] In some examples, in order to avoid redundant operations and make full use of the decoded data in the memory space to improve efficiency. The electronic device needs to further determine whether the spliced ​​large image corresponding to the target image is read or decoded in the memory space. If the electronic device determines that the spliced ​​large image corresponding to the target image is read or decoded in the memory space, the electronic device can directly obtain the image features of the thumbnail corresponding to the target image on the spliced ​​large image. In this way, redundant operations are effectively avoided and the decoded data in the memory space is fully utilized. Therefore, the electronic device needs to further determine whether the spliced ​​large image corresponding to the target image is read or decoded in the memory space. The specific implementation is as follows:

[0211] S832, the electronic device determines whether the spliced ​​large image corresponding to the target image is read or decoded in the memory space. If the spliced ​​large image corresponding to the target image is not read or decoded in the memory space, execute S833; if the spliced ​​large image corresponding to the target image is read or decoded in the memory space, execute S836.

[0212] In a specific implementable manner, the electronic device searches for information about whether there is a spliced ​​large image corresponding to the target image in the memory space. Exemplarily, the electronic device can access whether there are image features of thumbnails contained in the spliced ​​large image in the memory space. If so, the electronic device can determine that the spliced ​​large image corresponding to the target image is read or decoded in the memory space. Otherwise, the electronic device determines that the spliced ​​large image corresponding to the target image is not read or decoded in the memory space. Of course, in the embodiments of the present application, it is not limited to the above enumeration, and they are not listed one by one here.

[0213] In a specific implementation method, combining Figure 6 As shown, S832 may specifically be:⑧ After the reading module reads the spliced ​​large image corresponding to the target image, the reading module sends information of the spliced ​​large image to the decoding module of the electronic device.

[0214] Similarly, in some examples, in order to avoid redundant operations and improve efficiency. The electronic device needs to further determine whether the spliced ​​large image corresponding to the target image is being read or decoded. If the spliced ​​large image corresponding to the target image is being read or decoded, just wait for the spliced ​​large image to be read or decoded, and there is no need to read or decode the spliced ​​large image corresponding to the target image, which effectively avoids redundant operations and improves efficiency. Therefore, the electronic device needs to further determine whether the spliced ​​large image corresponding to the target image is being read or decoded, and the specific implementation is as follows:

[0215] S833: The electronic device determines whether the spliced ​​large image corresponding to the target image is being read or decoded. If the spliced ​​large image corresponding to the target image is being read or decoded, S834 is executed; if the spliced ​​large image corresponding to the target image is not being read or decoded, S835 is executed.

[0216] That is, whether the electronic device is requesting to read and decode other thumbnails in the spliced ​​large image corresponding to the target image. In other words, whether the electronic device is requesting to read and decode the spliced ​​large image corresponding to the target image for the first time according to the target image.

[0217] S834: The electronic device waits for the mosaic image corresponding to the target image to be decoded.

[0218] S835. The electronic device reads and decodes the spliced ​​large image corresponding to the target image into a memory space.

[0219] In a specific implementation method, combining Figure 6 As shown, S835 may specifically be: ⑨ The decoding module of the electronic device decodes the spliced ​​large image corresponding to the target image read by the reading module to obtain image features of each thumbnail included in the spliced ​​large image corresponding to the target image.

[0220] S836. The position of the thumbnail corresponding to the electronic device target image on the stitched large image, and obtaining image features of the thumbnail in the area corresponding to the position on the stitched large image.

[0221] In one specific implementation, S836 can be implemented as follows: the electronic device can directly obtain the image features of the thumbnail of the target image in the memory space according to the target image. In another specific implementation, S836 can be implemented as follows: the electronic device extracts the image features of the thumbnail in the corresponding area of ​​the corresponding position of the spliced ​​large image according to the position (or order) of the target image in the first group. Among them, the generation of the spliced ​​large image and its related description refer to the related description in the first stage, which will not be repeated here.

[0222] Exemplarily, the electronic device searches for the image features in the spliced ​​large image through the field posInGroup in the main table gallery_media of the picture information of the target picture as shown in Table 4, and can directly read the image features of the corresponding area [64*pos,0,64*pos+64,64] of the spliced ​​large image, where pos is the order of the target picture. Similarly, the electronic device searches for the image features in the spliced ​​large image through the field posInGroup in the main table gallery_media of the picture information of other pictures in the first group, and can directly read the image features corresponding to the area [(posInGroup%n)*64,(posInGroup / n)*64,(posInGroup%n)*64+64,(posInGroup / n)*64+64] of the spliced ​​large image. In this way, the electronic device can obtain the image features of the thumbnails of each picture in the memory space.

[0223] In a specific implementation method, combining Figure 6 As shown, S836 may specifically be: ⑩ The drawing module of the electronic device extracts the image features of the thumbnail in the area corresponding to the position of the target image in the first group (that is, the position of the thumbnail corresponding to the target image in the spliced ​​large image) on the spliced ​​large image.

[0224] In the present application, the position of the thumbnail corresponding to the target image on the stitched large image is determined, and the image features of the thumbnail in the area corresponding to the position on the stitched large image are extracted. The extraction of the thumbnail on the stitched large image is completed in the memory, which significantly improves the decoding performance and greatly improves the speed of thumbnail refresh display compared to decoding each thumbnail individually, thereby achieving the purpose of substantially reducing or even eliminating white blocks.

[0225] In another specific implementation, compared to the above Figure 8-2 The difference between the implementations shown is that after the electronic device executes S831, it also executes S837, S838 and S839. That is, S830 may include: S831, S837, S838 and S839 (some of which are optional). Specifically, S837, S838 and S839 may include:

[0226] In S831, the electronic device determines whether there is a spliced ​​large image corresponding to the target image. If the electronic device has a spliced ​​large image corresponding to the target image. The electronic device needs to further determine whether the spliced ​​large image has been requested for decoding by other images in the group. In this way, when the images in the same group are refreshed and displayed, the spliced ​​large image is requested for decoding. After that, other images in the group do not need to request decoding, eliminating the operation of requesting a large number of the same spliced ​​large image in the same group. For a detailed description, see S837, S838 and S839, specifically:

[0227] S837: When the electronic device determines that there is a spliced ​​large image corresponding to the target image, the electronic device reads grouping information corresponding to the spliced ​​large image.

[0228] That is, the electronic device reads the group identifier of the first group to which the target image belongs. The electronic device can determine the information of the spliced ​​large image corresponding to the group identifier according to the group identifier. For example, the information of the spliced ​​large image may include whether the spliced ​​large image is decoded, the image identifier of the spliced ​​large image requested to be decoded, etc.

[0229] S838: The electronic device determines whether a thumbnail decoding request has been issued for the pictures in the first group corresponding to the spliced ​​large picture. If a thumbnail decoding request has not been issued for the pictures in the first group, S839 is executed.

[0230] That is, the electronic device determines whether other pictures in the first group have sent a request to read the first spliced ​​large picture corresponding to the first group. If other pictures have sent a request to read the first spliced ​​large picture corresponding to the first group, the first spliced ​​large picture corresponding to the first group stored in the memory is obtained.

[0231] S839, the electronic device reads and decodes the spliced ​​large image corresponding to the target image into the memory space.

[0232] That is, if other pictures do not send a request to read the first spliced ​​large picture corresponding to the first group, the first spliced ​​large picture is read according to the group identifier of the first group and stored in the memory.

[0233] Based on the implementation step of S830 above, the electronic device can obtain the image features of the thumbnails corresponding to the multiple pictures. Afterwards, the view display method provided in the embodiment of the present application may also include: S840, the electronic device binds the multiple positions in the first display area to the image features of the corresponding thumbnails. In a specific implementation method, Figure 6 As shown, S840 may specifically be: ⑩ The drawing module binds the image features of the thumbnail of the target image to the first position. S850. The electronic device renders the image features of the corresponding thumbnails at these positions and displays these thumbnails. In a specific implementation method, Figure 6As shown, S850 may specifically be: The rendering module of the GPU renders the image features of the thumbnail of the target image at the first position and displays it through the display screen 280. In this way, the electronic device can obtain the following display effect:

[0234] Display effect 1: The electronic device directly binds the image features and positions of the thumbnail, and renders and displays them. Specifically:

[0235] S840 may be specifically implemented as follows: the electronic device binds the image feature of the thumbnail corresponding to the target image to the first position.

[0236] In layman's terms, the electronic device draws the image features of the thumbnail corresponding to the target image at the first position of the first display area.

[0237] In a specific implementation method, combining Figure 6 As shown, S840 may specifically be: ⑩ The drawing module binds the image features of the thumbnail of the target image to the first position.

[0238] S850 may be specifically implemented as follows: the electronic device renders the image features of the thumbnail of the target image bound at the first position, and displays the thumbnail of the target image at the first position of the first display area.

[0239] That is, the electronic device renders the image features of the thumbnail of the target image bound at the first position to obtain the thumbnail of the target image, and displays it at the first position of the first display area.

[0240] For example, Fig. 9 As shown, electronic equipment is spliced ​​from large Figure 1 The image features of the thumbnail W are extracted, and the extracted image features of the thumbnail W are bound to the position 1 of the interface 104 of the gallery application of the electronic device, and are rendered and displayed, so as to obtain the following Fig. 9 The thumbnail W is displayed on the interface shown. Similarly, electronic devices can be spliced ​​from large Figure 1 The image features of the thumbnail S are extracted, and the extracted image features of the thumbnail S are bound to the position 2 of the interface 104 of the gallery application of the electronic device, and rendered and displayed, so as to obtain the following Fig. 9 The thumbnail S is displayed on the interface shown. Similarly, electronic devices can be spliced ​​from large Figure 1 The image features of the thumbnail R are extracted, and the extracted image features of the thumbnail R are bound to the position 3 of the interface 104 of the gallery application of the electronic device, and rendered and displayed, so as to obtain the following Fig. 9 Thumbnail R is displayed on the interface shown.

[0241] In a specific implementation method, combining Figure 6As shown, S851 may specifically be: The rendering module of the GPU renders the image features of the thumbnail of the target image at the first position and displays it through the display screen 280 .

[0242] In an embodiment of the present application, by binding the image features of the thumbnail corresponding to the target image to the first position, rendering and displaying them, the image features of each thumbnail extracted from the spliced ​​large image are rendered and displayed in the first display area, thereby achieving the purpose of significantly reducing or even eliminating white blocks.

[0243] Display effect 2: the electronic device binds the image features of the thumbnail on the corresponding spliced ​​large image in the first group to which the target image belongs to the first display area as a whole, and renders and displays the image. Specifically:

[0244] S840 may be specifically implemented as follows: the electronic device determines image features of each thumbnail on the spliced ​​large image corresponding to the first group to which the target image belongs.

[0245] Specifically, the electronic device determines the image features of each thumbnail on the spliced ​​large image according to the spliced ​​large image corresponding to the target image, which includes the image features of the thumbnail of the target image.

[0246] S850 can be specifically implemented as follows: the electronic device binds the image features of each thumbnail on the spliced ​​large image to area one of the first display area in sequence, and renders the image features of each thumbnail on area one to display each thumbnail on area one.

[0247] For example, when the positions of the spliced ​​large image and the image in the group are consistent, Fig.10 As shown, the electronic equipment will be spliced ​​into a large Figure 2 The image features of all thumbnails N1-N64 are moved to the interface 104 of the gallery application of the electronic device, and rendered and displayed, and the following is obtained: Fig.10 The illustrated interface displays thumbnails N1 to N64 of an area.

[0248] In a specific implementation method, combining Figure 6 As shown, S850 may specifically be: ⑩ The drawing module sequentially binds the image features of each thumbnail on the spliced ​​large image to area 1 of the first display area. The rendering module of the GPU renders the image features of each thumbnail in area 1 and displays them through the display screen 280 .

[0249] In this application, the electronic device draws the image features of each thumbnail on the spliced ​​large image corresponding to the first group to which the target image belongs in area 1 as a whole, and renders the image features of these thumbnails once, eliminating the need for a large number of requests for the same spliced ​​large image from the same group, while saving the cost of extracting and returning thumbnails one by one on the spliced ​​large image, and reducing the load on the interface thread. The white blocks are further greatly reduced or even eliminated, and the load on the electronic device is further reduced, solving problems such as freeze, heat, and fast power consumption.

[0250] Display effect three: the electronic device binds the image features of some thumbnails in the spliced ​​large image corresponding to the first group to which the target image belongs to the first display area, and renders and displays the first display area. Specifically:

[0251] S840 may be specifically implemented as follows: the electronic device determines image features of each thumbnail on the spliced ​​large image corresponding to the first group to which the target image belongs.

[0252] Please refer to the above S840 for details, which will not be repeated in the embodiments of this application.

[0253] S850 can be specifically implemented as follows: the electronic device binds the image features of each thumbnail in area one of the spliced ​​large image to area one of the first display area, binds the image features of each thumbnail in area two of the spliced ​​large image to area two of the first display area, and renders the image features of each thumbnail in area one and area two to display each thumbnail in area one and area two.

[0254] For example, Fig.11 As shown, the electronic equipment will be spliced ​​into a large Figure 3 The image features of all thumbnails P1-P32 in the first zone and all thumbnails M1-M32 in the second zone are moved to the interface 104 of the gallery application of the electronic device, and are rendered and displayed, so as to obtain the following Fig.11 The interface shown displays thumbnails P1-P32 of an area and thumbnails M1-M32 of an area.

[0255] In a specific implementation method, combining Figure 6 As shown, S850 may specifically be: ⑩ The drawing module binds the image features of each thumbnail in area 1 of the spliced ​​large image to area 1 of the first display area, and binds the image features of each thumbnail in area 2 of the spliced ​​large image to area 2 of the first display area. The rendering module of the GPU renders the image features of each thumbnail in area 1 and area 2, and displays them through the display screen 280 .

[0256] In this application, the electronic device moves the image features of the thumbnails in some areas of the spliced ​​large image corresponding to the target thumbnail group as a whole, which can adapt to the scene where some pictures are deleted. In this way, the thumbnails corresponding to the pictures that are not deleted in the spliced ​​large image can be moved as a whole to the corresponding area on the interface for display, so that the thumbnails of adjacent pictures can be displayed on the interface of the electronic device as much as possible, and the operation of requesting a large number of spliced ​​large images in the same group is omitted, and the white blocks are greatly reduced or even eliminated. In addition, the load of the electronic device is further reduced, and the problems of freezing, heating and fast power consumption are solved.

[0257] In some examples, when an image feature of a thumbnail on the spliced ​​large image is invalid, the electronic device can skip the image feature of the thumbnail. Specifically, S850 can be implemented as follows: the electronic device detects the validity of each image in the first group. When it is detected that the first image in the first group is deleted, the electronic device can determine that the first image is invalid. At this time, the electronic device arranges the image features other than the image feature of the thumbnail corresponding to the first image on the spliced ​​large image in sequence and binds them to the first display area.

[0258] For example, Fig.12 As shown, the electronic device detects the splicing Figure 3 The image feature of the thumbnail P10 in the middle area is invalid. Figure 3 The thumbnails P1-P9 and thumbnails P11-P32 in the middle area are arranged in order on area 1, and are rendered and displayed. Figure 3 The image features of all thumbnails M1-M32 in the middle area are moved to area 2, and rendered and displayed, as shown below: Fig.12 The interface shown displays thumbnails P1-P9 and P11-P32 of an area and thumbnails M1-M32 of an area.

[0259] In this application, when a certain image fails, the electronic device can skip the image features of the thumbnail of the failed image when moving the image features on the spliced ​​large image as a whole, so as to display the thumbnails of adjacent images on the interface of the electronic device as much as possible, and at the same time save the operation of requesting a large number of spliced ​​large images in the same group, greatly reducing white blocks or even eliminating white blocks. In addition, the load of the electronic device is further reduced, solving problems such as freezing, heating and fast power consumption.

[0260] Display effect 4: the electronic device creates a second stitched large image for rendering and display, and then renders and displays the image on the first stitched large image. Figure 8-3 As shown, specifically:

[0261] S860. The electronic device creates a large image for rendering and display according to the arrangement of the thumbnails on the gallery application interface.

[0262] In other words, the electronic device creates a second spliced ​​large image according to the arrangement order of the thumbnails in the first group on the first display area, and the second spliced ​​large image is a large image for rendering and display.

[0263] That is to say, on the interface of the gallery application, a second stitched large image is created according to the arrangement order of the images in the first group and the display area of ​​the thumbnails of the images in the first group.

[0264] S870: The electronic device draws the image features of the thumbnail corresponding to the target image on the large stitched image according to the position of the thumbnail corresponding to the target image on the large stitched image.

[0265] In other words, the electronic device directly draws the image features of each thumbnail in the corresponding area on the first large spliced ​​image on the second large spliced ​​image.

[0266] That is, the electronic device binds the image features in the corresponding areas of each thumbnail on the first large mosaic image to the corresponding areas on the second large mosaic image. The electronic device transmits the second large mosaic image to the GPU for rendering and displays it on the display screen.

[0267] For example, Fig.13 As shown, the electronic device creates a large mosaic on the interface 105 of the gallery application. Figure 4 After that, the electronic equipment will be spliced ​​into a large Figure 5 The image features of each thumbnail on the image are moved to the spliced ​​image. Figure 4 Afterwards, the electronic device Figure 4 The image and its features are passed to the GPU for rendering and displayed on the display.

[0268] In this application, the UI thread is further optimized, eliminating the need for a large number of requests for the same stitched large image from the same group. At the same time, the area returned from the thumbnails is stitched into a large image for rendering and display, and the stitched large image area is directly drawn on the large image for rendering and display, eliminating the overhead of stitching and returning. This reduces the load on the UI thread.

[0269] Unless otherwise specified or there is no logical conflict, the terms and / or descriptions between the various embodiments of the present application are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0270] Combined with the above Figures 1 to 13 The view display method provided by the embodiment of the present application is described in detail. Figure 5 It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and will not be repeated here for the sake of brevity.

[0271] An electronic device provided in an embodiment of the application includes: a receiving module, an acquisition module and a display module; wherein:

[0272] The receiving module is used to receive a first operation on the first interface, where the first operation is used to display a thumbnail of the first target image. Exemplarily, the receiving module may execute the above step S801. The receiving module may be Figure 5 The sensor module 260 shown in FIG.

[0273] The acquisition module is used to acquire the first group corresponding to the first target image. The acquisition module is used to acquire the first spliced ​​large image corresponding to the first group according to the first group, and the first spliced ​​large image includes the image features of the thumbnails of the images belonging to the first group. The acquisition module is used to acquire the image features of the thumbnails of the first target image. Exemplarily, the acquisition module can execute the above steps S802-S804. The acquisition module can be Figure 5 The processor 210 shown in .

[0274] The display module is used to display the thumbnail of the first target image on the second interface according to the image features of the thumbnail of the first target image. For example, the display module can execute the above step S805. The display module can be Figure 5 Display screen 280 shown in .

[0275] In one embodiment, the acquisition module is used to acquire a first position for displaying a thumbnail of the first target image on the second interface. The display module is used to display the thumbnail of the first target image according to the first position and an image feature of the thumbnail of the first target image.

[0276] In one embodiment, the electronic device further includes: a grouping module and a splicing module, wherein the grouping module is used to group the first number of pictures to obtain pictures of a first group. The acquiring module is used to acquire thumbnails of the pictures of the first group. The splicing module is used to splice the thumbnails of the pictures of the first group to obtain a first spliced ​​large picture.

[0277] In one embodiment, the grouping module is used to group a first number of pictures according to a first view, where the first view includes a day view, a month view, or a year view.

[0278] In one embodiment, the first operation is used to display a thumbnail of the first target image in a first viewing mode.

[0279] In one embodiment, the splicing module is used to splice thumbnails of the pictures in the first group into a first spliced ​​large picture according to the time order of the pictures in the first group.

[0280] In one embodiment, the receiving module is used to: receive a specified operation, the specified operation including at least one of the following: a screen off operation, a charging operation, a picture import operation, an opening operation of a gallery application, a trigger operation of displaying a picture in a first view in a gallery application for the first time, and a picture synchronization operation.

[0281] In one embodiment, the grouping module is used to: group a first number of pictures according to a preset period to obtain pictures in a first group.

[0282] In one embodiment, the electronic device further includes: an updating module, wherein the updating module is used to update the first group and the first spliced ​​large image corresponding to the first group when a change in the number of images is detected.

[0283] In one embodiment, the updating module is used to: update the first group when it is detected that the number of newly added pictures reaches a first threshold; or update the first group when it is detected that the number of deleted pictures reaches a second threshold.

[0284] In one embodiment, the electronic device further includes: a determination module, wherein the determination module is used to determine that a first spliced ​​large image of the group corresponding to the first group is stored in the electronic device.

[0285] In one embodiment, the acquisition module is used to: determine, based on the first group to which the first target image belongs, that a first spliced ​​large image corresponding to the first group is stored in the memory; and acquire the first spliced ​​large image corresponding to the first group.

[0286] In one embodiment, the acquisition module is used to: determine whether the second target image in the first group has sent a request to read the first spliced ​​large image corresponding to the first group; if the second target image has sent a request to read the first spliced ​​large image corresponding to the first group, then obtain the first spliced ​​large image corresponding to the first group stored in the memory; if the second target image has not sent a request to read the first spliced ​​large image corresponding to the first group, then read the first spliced ​​large image according to the group identifier of the first group and store it in the memory.

[0287] In one embodiment, the acquisition module is used to: when the first spliced ​​large image corresponding to the first group is not stored in the memory, determine whether the first spliced ​​large image is in the processing process. If the first spliced ​​large image is in the processing process, wait for the first spliced ​​large image to be processed and acquire the first spliced ​​large image. If the first spliced ​​large image is not in the processing process, read the first spliced ​​large image according to the group identifier of the first group and store it in the memory.

[0288] In one embodiment, the acquisition module is used to: acquire image features of a thumbnail corresponding to the first target image in a first spliced ​​large image corresponding to the group identifier based on the group identifier of the first group to which the first target image belongs and the order of the first target image in the group.

[0289] In one embodiment, the display module is used to: render image features of a thumbnail of a first target image at a first position; display a thumbnail of the first target image at a first position; when the number of images has not changed, the first area of ​​the first interface displays a second stitched large image, which is the same as the first stitched large image; when the number of images increases, the first area of ​​the first interface displays a third stitched large image, which is composed of the first stitched large image and the fourth stitched large image, which is formed by stitching together the thumbnails of the newly added images; when the number of images decreases, the first area of ​​the first interface displays a fifth stitched large image, which is different from the first stitched large image.

[0290] In one embodiment, the first interface is an interface of a gallery application or a file management application.

[0291] In the present application, when an electronic device reads the thumbnails of decoded pictures, the electronic device does not need to read and decode the thumbnails one by one, but reads and decodes the thumbnails in the same group once, effectively reducing the resource consumption of the electronic device. At the same time, the reading and decoding speed of the thumbnails on the electronic device is improved, so that the display time of the thumbnails is shortened, avoiding the phenomenon of white blocks briefly appearing in the area before the thumbnail is displayed.

[0292] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0293] An embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute any of the above methods.

[0294] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the above methods.

[0295] An embodiment of the present application also provides a chip, which includes a processor and an interface circuit, the interface circuit is coupled to the processor, the processor is used to run a computer program or instruction to implement the above method, and the interface circuit is used to communicate with other modules outside the chip.

[0296] All or part of any features or steps in the embodiments of the present application can be freely combined, and the combined technical solutions are also within the scope of the present application.

[0297] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0298] In the description of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0299] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0300] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0301] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0302] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0303] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0304] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A view display method, characterized in that: The method comprises: Receiving a first operation on a first interface, wherein the first operation is used to display a thumbnail of a first target image; Obtaining a first group corresponding to the first target image; Acquire a first stitched large image corresponding to the first group according to the first group, where the first stitched large image includes image features of thumbnails of pictures belonging to the first group; Obtaining image features of a thumbnail of the first target image; According to the image features of the thumbnail of the first target image, the thumbnail of the first target image is displayed on the second interface.

2. The method according to claim 1, characterized in that The step of displaying a thumbnail of the first target image on the second interface includes: Acquire a first position of a thumbnail of the first target image on the second interface for displaying the first target image; The thumbnail of the first target picture is displayed according to the first position and the image feature of the thumbnail of the first target picture.

3. The method according to claim 1 or 2, characterized in that: Before receiving the first operation acting on the first interface, the method further includes: Grouping a first number of pictures to obtain pictures in the first group; Obtain thumbnails of the pictures in the first group; The thumbnails of the pictures in the first group are spliced ​​together to obtain the first spliced ​​large picture.

4. The method according to claim 3, characterized in that The grouping the first number of pictures comprises: The first number of pictures are grouped according to a first view, where the first view includes a day view, a month view, or a year view.

5. The method according to claim 4, characterized in that The first operation is used to display a thumbnail of the first target image in the first view mode.

6. The method according to any one of claims 3 to 5, characterized in that: The step of stitching the thumbnails of the pictures in the first group to obtain the first stitched large picture includes: According to the time order of the pictures in the first group, the thumbnails of the pictures in the first group are spliced ​​into the first spliced ​​large picture.

7. The method according to any one of claims 3 to 6, characterized in that: Before grouping the first number of pictures to obtain the pictures in the first group, the method further includes: Receive a specified operation, wherein the specified operation includes at least one of the following: a screen off operation, a charging operation, a picture import operation, an operation of opening a gallery application, a trigger operation of displaying a picture in a first view in a gallery application for the first time, and a picture synchronization operation.

8. The method according to any one of claims 3 to 6, characterized in that: The step of grouping the first number of pictures to obtain the first group of pictures includes: The first number of pictures are grouped according to a preset period to obtain pictures in the first group.

9. The method according to any one of claims 1 to 8, characterized in that Also includes: When a change in the number of pictures is detected, the first group and the first stitched large picture corresponding to the first group are updated.

10. The method according to claim 9, characterized in that When it is detected that the number of pictures changes, updating the first grouping includes: When it is detected that the number of newly added pictures reaches a first threshold, the first group is updated; or when it is detected that the number of deleted pictures reaches a second threshold, the first group is updated.

11. The method according to any one of claims 1 to 10, characterized in that Before obtaining the first stitched large image corresponding to the first group according to the first group, the method further includes: It is determined that a first spliced ​​large image of the group corresponding to the first group is stored in the electronic device.

12. The method according to any one of claims 1 to 11, characterized in that The obtaining, according to the first grouping, a first stitched large image corresponding to the first grouping includes: According to the first group to which the first target image belongs, determining that the first stitched large image corresponding to the first group is stored in the memory; Obtain a first stitched large image corresponding to the first group.

13. The method according to any one of claims 1 to 11, characterized in that The obtaining, according to the first grouping, a first stitched large image corresponding to the first grouping includes: Determine whether a second target picture in the first group has sent a request to read the first stitched large picture corresponding to the first group, the second target picture being any picture in the first group; If the second target image sends a request to read the first spliced ​​large image corresponding to the first group, then obtain the first spliced ​​large image corresponding to the first group stored in the memory; If the second target image does not send a request to read the first spliced ​​large image corresponding to the first group, the first spliced ​​large image is read according to the group identifier of the first group and stored in the memory.

14. The method according to claims 1-11, characterized in that The obtaining, according to the first grouping, a first stitched large image corresponding to the first grouping includes: When the first spliced ​​large image corresponding to the first group is not stored in the memory, determining whether the first spliced ​​large image is in the processing process; If the first stitched large image is in the process of being processed, waiting for the first stitched large image to be processed and then obtaining the first stitched large image; If the first spliced ​​large image is not in the processing process, the first spliced ​​large image is read according to the group identifier of the first group and stored in the memory.

15. The method according to any one of claims 1 to 11, characterized in that Acquiring a first stitched large image corresponding to the first group according to the first group includes: According to the group identifier of the first group to which the first target image belongs and the order of the first target image in the group, image features of the thumbnail corresponding to the first target image are obtained in the first spliced ​​large image corresponding to the group identifier.

16. The method according to any one of claims 2 to 15, characterized in that The step of displaying the thumbnail of the first target picture according to the first position and the image feature of the thumbnail of the first target picture includes: Rendering image features of a thumbnail of the first target image at the first position; A thumbnail of the first target image is displayed at the first position.

17. The method according to any one of claims 2 to 15, characterized in that When the number of the pictures does not change, the first area of ​​the first interface displays a second stitched large picture, and the second stitched large picture is the same as the first stitched large picture; When the number of the pictures increases, the first area of ​​the first interface displays a third stitched large picture, the third stitched large picture includes image features of some or all thumbnails in the first stitched large picture and image features of some or all thumbnails in the fourth stitched large picture, and the fourth stitched large picture is stitched together from thumbnails of the newly added pictures; When the number of the pictures decreases, the first area of ​​the first interface displays a fifth spliced ​​large picture, and the fifth spliced ​​large picture is different from the first spliced ​​large picture.

18. The method according to any one of claims 1 to 16, characterized in that The first interface is an interface of a gallery application or a file management application.

19. An electronic device, characterized in that: The electronic device comprises: a receiving module, an acquisition module and a display module; wherein, The receiving module is used to receive a first operation acting on the first interface, where the first operation is used to display a thumbnail of a first target image; The acquisition module is used to acquire a first group corresponding to the first target image; The acquisition module is used to acquire a first stitched large image corresponding to the first group according to the first group, wherein the first stitched large image includes image features of thumbnails of pictures belonging to the first group; The acquisition module is used to acquire image features of the thumbnail of the first target image; The display module is used to display the thumbnail of the first target picture on the second interface according to the image features of the thumbnail of the first target picture.

20. The electronic device according to claim 19, characterized in that: The acquisition module is used to acquire a first position of a thumbnail of the first target image displayed on the second interface; The display module is used to display a thumbnail of the first target picture according to the first position and the image feature of the thumbnail of the first target picture.

21. The electronic device according to claim 19 or 20, characterized in that: Also includes: Grouping module and splicing module, where The grouping module is used to group a first number of pictures to obtain pictures in the first group; The acquisition module is used to acquire thumbnails of the pictures in the first group; The splicing module is used to splice the thumbnails of the pictures in the first group to obtain the first spliced ​​large picture.

22. The electronic device according to claim 21, characterized in that: The grouping module is used for: The first number of pictures are grouped according to a first view, where the first view includes a day view, a month view, or a year view.

23. The electronic device according to claim 22, characterized in that: The first operation is used to display a thumbnail of the first target image in the first view mode.

24. The electronic device according to any one of claims 21 to 23, characterized in that: The splicing module is used for: According to the time order of the pictures in the first group, the thumbnails of the pictures in the first group are spliced ​​into the first spliced ​​large picture.

25. The electronic device according to any one of claims 21 to 24, characterized in that: The receiving module is used for: Receive a specified operation, wherein the specified operation includes at least one of the following: a screen off operation, a charging operation, a picture import operation, an operation of opening a gallery application, a trigger operation of displaying a picture in a first view in a gallery application for the first time, and a picture synchronization operation.

26. The electronic device according to any one of claims 21 to 24, characterized in that: The grouping module is used for: The first number of pictures are grouped according to a preset period to obtain pictures in the first group.

27. The electronic device according to any one of claims 19 to 26, characterized in that: Also includes: Update module, where The updating module is used to update the first group and the first spliced ​​large image corresponding to the first group when a change in the number of images is detected.

28. The electronic device according to claim 27, characterized in that: The update module is used to: When it is detected that the number of newly added pictures reaches a first threshold, the first group is updated; or when it is detected that the number of deleted pictures reaches a second threshold, the first group is updated.

29. The electronic device according to any one of claims 19 to 28, characterized in that: Also includes: Determine the module, where The determination module is used to determine whether a first spliced ​​large image of the group corresponding to the first group is stored in the electronic device.

30. The electronic device according to any one of claims 19 to 29, characterized in that: The acquisition module is used for: According to the first group to which the first target image belongs, determining that the first stitched large image corresponding to the first group is stored in the memory; Obtain a first stitched large image corresponding to the first group.

31. The electronic device according to any one of claims 19 to 29, characterized in that: The acquisition module is used for: Determine whether a second target picture in the first group has sent a request to read the first stitched large picture corresponding to the first group, the second target picture being any picture in the first group; If the second target image sends a request to read the first spliced ​​large image corresponding to the first group, then obtain the first spliced ​​large image corresponding to the first group stored in the memory; If the second target image does not send a request to read the first spliced ​​large image corresponding to the first group, the first spliced ​​large image is read according to the group identifier of the first group and stored in the memory.

32. The electronic device according to claims 19-29, characterized in that: The acquisition module is used for: When the first spliced ​​large image corresponding to the first group is not stored in the memory, determining whether the first spliced ​​large image is in the processing process; If the first stitched large image is in the process of being processed, waiting for the first stitched large image to be processed and then obtaining the first stitched large image; If the first spliced ​​large image is not in the processing process, the first spliced ​​large image is read according to the group identifier of the first group and stored in the memory.

33. The electronic device according to any one of claims 19 to 29, characterized in that: The acquisition module is used for: According to the group identifier of the first group to which the first target image belongs and the order of the first target image in the group, image features of the thumbnail corresponding to the first target image are obtained in the first spliced ​​large image corresponding to the group identifier.

34. The electronic device according to any one of claims 20 to 33, characterized in that: The display module is used for: Rendering image features of a thumbnail of the first target image at the first position; Displaying a thumbnail of the first target image at the first position; When the number of the pictures does not change, the first area of ​​the first interface displays a second stitched large picture, and the second stitched large picture is the same as the first stitched large picture.

35. The electronic device according to any one of claims 20 to 33, characterized in that: The display module is used for: When the number of the pictures increases, the first area of ​​the first interface displays a third stitched large picture, the third stitched large picture includes image features of some or all thumbnails in the first stitched large picture and image features of some or all thumbnails in the fourth stitched large picture, and the fourth stitched large picture is stitched together from thumbnails of the newly added pictures; When the number of the pictures decreases, the first area of ​​the first interface displays a fifth spliced ​​large picture, and the fifth spliced ​​large picture is different from the first spliced ​​large picture.

36. The electronic device according to any one of claims 19 to 35, characterized in that: The first interface is an interface of a gallery application or a file management application.

37. An electronic device, characterized in that: The electronic device comprises: one or more processors; and a memory, wherein codes are stored in the memory; when the codes are executed by the processor, the electronic device executes the method according to any one of claims 1 to 18.

38. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 18.

Citation Information

Cited By

  • View display method, and electronic device

    EP4730156A1

  • View display method, and electronic device

    WO2025025794A1