Resource processing method, device, electronic equipment and computer storage medium

By displaying multiple frame images of the first resource on the display page in the self-media shooting application and loading any frame images of adjacent resources, the problem of high resource occupancy and improving processing efficiency.

CN114647510BActive Publication Date: 2025-04-08BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210272751.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2025-04-08
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In the self-media shooting application, loading a large number of animation images will lead to high memory consumption of resources, affecting user experience and processing efficiency.

Method used

The multi-frame image corresponding to the first resource is displayed on the display page, and any frame image of the second resource adjacent to the first resource is loaded. In response to the switching operation of the second resource, the multi-frame image of the second resource is loaded at the end of the resource switching.

Benefits of technology

In this way, multiple frame images of the second resource are avoided, thereby reducing the memory occupied by resources and improving the efficiency of resource processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114647510B_ABST
    Figure CN114647510B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a resource processing method, device, electronic device and computer storage medium. Among them, multiple frames of images corresponding to a first resource are displayed on a display page, and any frame of image of a second resource adjacent to the first resource is loaded; in response to a switching operation for the second resource, any frame of image corresponding to the second resource is displayed during the resource switching operation; the end of the resource switching operation is detected, and multiple frames of images corresponding to the second resource are loaded to display multiple frames of images corresponding to the second resource. In this embodiment, by displaying multiple frames of images corresponding to each resource on a display page and retaining any frame of image of other resources adjacent to the resource, the problem of high memory usage by resources can be solved.
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 resource processing technology, and in particular, to a resource processing method, device, electronic device, and computer storage medium. Background Art

[0002] In current self-media shooting applications, there are often scenes that require loading a large number of dynamic images. For example, in the scene where a dynamic sticker pop-up window is selected, the shooting resources provided include multiple rows and columns of materials (such as Figure 1 As shown, category A includes 12 materials), and each material is a dynamic image in webp or gif format.

[0003] The current resource processing method is usually to load all materials into the memory so that users do not need to wait when using them. However, such a solution will cause the problem of high memory usage. Summary of the invention

[0004] The embodiments of the present application provide a resource processing method, device, electronic device and computer storage medium, which can solve the problem of high memory usage by resources.

[0005] In a first aspect, an embodiment of the present application provides a resource processing method, including:

[0006] Displaying multiple frames of images corresponding to the first resource on the display page, and loading any frame of image of the second resource adjacent to the first resource;

[0007] In response to the second resource switching operation, during the resource switching operation execution, displaying any frame image corresponding to the second resource;

[0008] The resource switching operation is detected to be finished, and the multiple frames of images corresponding to the second resource are loaded to display the multiple frames of images corresponding to the second resource.

[0009] Optionally, the loading any frame image of a second resource adjacent to the first resource includes:

[0010] Any frame image of the second resource that is adjacent to the first resource and has not been switched for display is loaded, any frame image of the second resource that has been switched for display is retained, and the remaining frame images are deleted.

[0011] Optionally, after detecting that the resource switching operation is finished and loading the multiple frames of images corresponding to the second resource to display the multiple frames of images corresponding to the second resource, the method further includes:

[0012] Any frame image of the first resource is retained, and the remaining frame images are deleted.

[0013] Optionally, displaying multiple frames of images corresponding to the first resource on the display page and loading any frame of image of the second resource adjacent to the first resource includes:

[0014] Decoding each frame of the image corresponding to the first resource and storing it in a memory;

[0015] Decoding any frame of image corresponding to the second resource and storing it in a memory;

[0016] Retrieve multiple frames of images corresponding to the first resource and any frame of image corresponding to the second resource from the memory, display the multiple frames of images corresponding to the first resource in the display interface, and load any frame of image of the second resource.

[0017] Optionally, it also includes:

[0018] determining a third resource that is not adjacent to the first resource;

[0019] All frame images of the third resource are deleted.

[0020] Optionally, displaying the multiple frames of images corresponding to the first resource on the display page includes:

[0021] A first display area is provided in a display interface, and a plurality of frames of images corresponding to a first resource are displayed in the first display area.

[0022] Optionally, the first display area is located at the lower part of the display page.

[0023] Optionally, the resource may include a dynamic image, or a set of dynamic images; any frame image may include the first frame image.

[0024] In a second aspect, an embodiment of the present application provides a resource processing device, including:

[0025] A display module, used for displaying multiple frames of images corresponding to the first resource on a display page;

[0026] A processing module, used for loading any frame image of a second resource adjacent to the first resource;

[0027] The display module is further configured to, in response to the second resource switching operation, display any frame image corresponding to the second resource during the resource switching operation execution process;

[0028] The processing module is further used to detect the end of the resource switching operation, load the multiple frames of images corresponding to the second resource, and display the multiple frames of images corresponding to the second resource.

[0029] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the resource processing method described in the first aspect above.

[0030] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program, which, when executed by a computer, implements the resource processing method described in the first aspect above.

[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a processor of a computer, enables the processor of the computer to execute the resource processing method as described in the first aspect above.

[0032] In the technical solution provided in the embodiment of the present application, multiple frames of images corresponding to a first resource are displayed on a display page, and any frame of image of a second resource adjacent to the first resource is loaded; in response to a switching operation for the second resource, any frame of image corresponding to the second resource is displayed during the execution of the resource switching operation; the end of the resource switching operation is detected, and multiple frames of images corresponding to the second resource are loaded to display the multiple frames of images corresponding to the second resource, which can reduce the memory occupied by resources and improve resource processing efficiency.

[0033] Specifically, in the embodiment of the present application, by displaying multiple frames of images corresponding to the first resource on the display page and loading any frame of image of the second resource adjacent to the first resource, it is possible to avoid loading multiple frames of image of the second resource adjacent to the first resource, thereby causing the problem of high resource memory usage, and it is also possible to avoid loading again during display, thereby causing low resource processing efficiency, by loading any frame of image of the second resource adjacent to the first resource. These aspects or other aspects of the present application will be more concise and easy to understand in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 A schematic diagram of the effect of a resource display method in the prior art;

[0036] Figure 2 A schematic diagram of the effect of a resource display method in the prior art;

[0037] Figure 3 A flowchart of a resource processing method provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of the effect of a resource display method provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of another resource display method provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of another resource display method provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of another resource display method provided in an embodiment of the present application;

[0042] Figure 8 A flowchart of another resource processing method provided in an embodiment of the present application;

[0043] Fig. 9 A schematic diagram of another resource display method provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of the structure of a resource processing device provided in an embodiment of the present application;

[0045] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0047] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0048] Before introducing the resource processing method provided in the embodiment of the present application, a brief introduction is given to the relevant concepts and research background involved in the present application:

[0049] (1) Related concepts

[0050] Frame refers to: a single image in the smallest unit of image animation, which is equivalent to each frame on a film. A frame is a still picture, and continuous frames form an animation, such as a TV image. Frames are also commonly referred to as frame numbers. Simply put, it is the number of frames of an image transmitted in 1 second. It can also be understood as how many times a graphics processor can refresh per second, usually expressed in frames per second (fps). Each frame is a still image, and displaying frames quickly and continuously creates the illusion of motion. A high frame rate can produce smoother and more realistic animations. The more fps, the smoother the displayed motion will be.

[0051] (2) Research background

[0052] Research has found that the current resource processing methods are usually the following two options:

[0053] The first method is to load and display all frames of the resource of the next page when the user switches pages. However, this solution needs to wait for all frames of the resource to be loaded and displayed during display, resulting in poor user experience and poor resource processing efficiency.

[0054] The second type: Take the resource including a dynamic image as an example, Figure 2 As shown, all frame images of the adjacent resources (resource A and resource C) of resource B of the current page are preloaded. When the user switches pages and the resources displayed on the current page have not completely moved out of the display screen, all frame images of the adjacent resources can be seen (in order to reflect the difference between all frame images and any frame image, all frame images are represented in gif format). Therefore, for a better user experience, this solution needs to preload all frame images of at least 3 pages of resources (such as resources A-resource C) in the memory of the terminal device (such as: mobile phone, computer, etc.). However, when all frame images of all resources are loaded into the memory, a higher memory will be occupied, which can easily cause the program to use too much memory and crash.

[0055] In order to solve the problems existing in the two resource processing schemes, an embodiment of the present application provides a resource processing method, which can solve the problem of low resource processing efficiency and high memory usage of resources by displaying multiple frame images corresponding to each resource on a display page and retaining only any frame image of other resources adjacent to the resource.

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0057] Figure 3 A flowchart of a resource processing method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method includes:

[0058] 101. Display multiple frames of images corresponding to a first resource on a display page, and load any frame of image of a second resource adjacent to the first resource.

[0059] In this step, the first resource may include a dynamic image, or a set of dynamic images; the second resource may also include a dynamic image, or a set of dynamic images. Figure 1 For example, the first resource may include category A (all materials included in category A) or any material in category A.

[0060] For example, Figure 4 As shown, multiple frames of images corresponding to a dynamic image B are displayed in the display page 1, and any frame of another dynamic image A and a dynamic image C adjacent to the dynamic image B are loaded. Figure 5 As shown, multiple frames of images corresponding to a set B of dynamic images (i.e., category B, wherein category B includes 10 materials) are displayed on display page 1, and any frame image of another set A of dynamic images (i.e., category A, wherein category A includes at least 12 materials) adjacent to the set B of dynamic images and a set C of dynamic images (i.e., category C, wherein category C includes at least 12 materials) are loaded.

[0061] Optionally, the loading method may be to decode each frame of the image corresponding to the first resource and store it in a memory, so that when the resource is displayed on the display page, it can be called from the memory.

[0062] In an embodiment of the present application, by displaying multiple frames of images corresponding to a first resource on a display page and loading any frame of image of a second resource adjacent to the first resource, it is possible to avoid loading multiple frames of images of the second resource adjacent to the first resource, thereby causing a problem of high resource memory occupation, and it is also possible to avoid the problem of low resource processing efficiency caused by re-loading during display by loading any frame of image of the second resource adjacent to the first resource.

[0063] 102. In response to the second resource switching operation, during the resource switching operation, display any frame image corresponding to the second resource.

[0064] In this step, the switching operation for the second resource may include a page switching operation or the like for switching the first resource to display related operations of the second resource.

[0065] The page switching operation includes but is not limited to: sliding left or right, sliding up or down. The embodiment of the present application mainly takes sliding left or right as an example, but is not limited to implementing resource switching only through this operation mode.

[0066] The resource switching operation may include an operation of switching resources displayed on the display page.

[0067] In the embodiment of the present application, taking a resource including a dynamic image as an example, when the current display page displays multiple frames of a first resource (such as dynamic image B), the user initiates a left sliding gesture in the display page to initiate a switching operation for the second resource (such as dynamic image C), such as Figure 6 As shown, during the resource switching operation (ie, when the current display page does not completely display the second resource), only any frame image corresponding to the second resource (such as dynamic image C) is displayed.

[0068] 103. Detecting that the resource switching operation is finished, loading a plurality of frames of images corresponding to the second resource, and displaying the plurality of frames of images corresponding to the second resource.

[0069] In this step, detecting that the resource switching operation is finished can be understood as the resources displayed in the display page have been switched.

[0070] In the embodiment of the present application, taking a resource including a dynamic image as an example, Figure 7 As shown, when the resource switching operation ends (i.e., when the current display page has completely displayed the second resource (dynamic image C)), multiple frames of images corresponding to the second resource (dynamic image C) are loaded to display the multiple frames of images corresponding to the second resource, so that the display state of the second resource is converted from any frame image to multiple frame images. In practical applications, this is equivalent to converting the display state of the second resource from a static image to a dynamic image.

[0071] Furthermore, since dynamic image C is the resource displayed on the current display page, that is, the first resource, and the originally displayed first resource (dynamic image B) has been switched, and dynamic image B and dynamic image C are adjacent resources, any frame image of dynamic image B is retained and the remaining frame images are deleted.

[0072] Figure 8A flowchart of another resource processing method provided in an embodiment of the present application, such as Figure 8 As shown, the method includes:

[0073] 201. Display multiple frames of images corresponding to a first resource on a display page, and load any frame of image of a second resource adjacent to the first resource.

[0074] In this step, the resource may also be referred to as material, including a dynamic image, or a collection of dynamic images; the any frame image may include any frame image among multiple frame images, for example, may include the first frame image.

[0075] In the embodiment of the present application, optionally, step 201 may specifically include:

[0076] 2011. Decode each frame of the image corresponding to the first resource and store it in a memory.

[0077] In this step, the resource may be generated by a client, etc. Therefore, when the resource is uploaded to the server, the resource may be encoded to avoid resource leakage. Therefore, after the server obtains each frame of the image corresponding to the first resource, it needs to decode and store it in the memory of the terminal device. The terminal device may include but is not limited to: mobile phones, computers, etc.

[0078] 2012. Decode any frame image corresponding to the second resource and store it into a memory.

[0079] 2013. Retrieve multiple frames of images corresponding to the first resource and any frame of image corresponding to the second resource from the memory, display the multiple frames of images corresponding to the first resource in the display interface, and load any frame of image of the second resource.

[0080] In an embodiment of the present application, optionally, a specific method of displaying multiple frames of images corresponding to the first resource on a display page may include: providing a first display area in a display interface, and displaying multiple frames of images corresponding to the first resource in the first display area.

[0081] The first display area is located at the lower part of the display page.

[0082] In an embodiment of the present application, optionally, in the process of loading any frame image of the second resource adjacent to the first resource, it is necessary to determine whether the second resource is a resource that has been switched and displayed. If the second resource is a display that has not been switched, any frame image of the second resource that is adjacent to the first resource and has not been switched and displayed is loaded; if the second resource is a resource that has been switched and displayed, any frame image of the second resource that has been switched and displayed is retained, and the remaining frame images are deleted.

[0083] 202. Determine a third resource that is not adjacent to the first resource, and delete all frame images of the third resource.

[0084] In this step, the third resource may include a dynamic image, or a collection of dynamic images.

[0085] In the present application embodiment, for example, Fig. 9 As described above, dynamic image D is a third resource that is not adjacent to dynamic image B (first resource). In order to further reduce the memory occupied by the resources, all frame images of the third resource can be deleted, and after the third resource becomes an adjacent resource (such as when dynamic image C is the first resource, dynamic image D is the adjacent resource of dynamic image C), any frame image of the third resource can be loaded.

[0086] 203. In response to the second resource switching operation, during the resource switching operation, display any frame image corresponding to the second resource.

[0087] In the embodiment of the present application, the execution process of step 203 can refer to the above-mentioned step 102, and the embodiment of the present application will not be repeated here.

[0088] 204. Detecting that the resource switching operation is finished, loading a plurality of frames of images corresponding to the second resource, and displaying the plurality of frames of images corresponding to the second resource.

[0089] In the embodiment of the present application, the execution process of step 203 can refer to the above-mentioned step 102, and the embodiment of the present application will not be repeated here.

[0090] 205. Keep any frame image of the first resource, and delete the remaining frame images.

[0091] In an embodiment of the present application, after the resource switching operation is completed, the display page displays multiple frame images corresponding to the second resource. At this time, the first resource has become an adjacent resource of the second resource. In order to solve the problem of high memory occupied by resources, it is necessary to retain any frame image of the first resource and delete the remaining frame images.

[0092] Fig.10 A schematic diagram of a resource processing device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the device comprises:

[0093] A display module 31, configured to display multiple frames of images corresponding to the first resource on a display page;

[0094] A processing module 32, configured to load any frame image of a second resource adjacent to the first resource;

[0095] The display module 31 is further configured to, in response to the second resource switching operation, display any frame image corresponding to the second resource during the resource switching operation execution process;

[0096] The processing module 32 is further configured to detect the end of the resource switching operation, load the multiple frames of images corresponding to the second resource, and display the multiple frames of images corresponding to the second resource.

[0097] In the embodiment of the present application, optionally, the processing module 32 of the device is specifically used to load any frame image of the second resource that is adjacent to the first resource and has not been switched for display, retain any frame image of the second resource that has been switched for display, and delete the remaining frame images.

[0098] In the embodiment of the present application, optionally, the processing module 32 of the device is specifically configured to retain any frame image of the first resource and delete the remaining frame images.

[0099] In the embodiment of the present application, optionally, the processing module 32 of the device is further configured to decode each frame of the image corresponding to the first resource and store it in the memory; decode any frame of the image corresponding to the second resource and store it in the memory;

[0100] The display module 31 is also used to retrieve multiple frames of images corresponding to the first resource and any frame of image corresponding to the second resource from the memory, and display the multiple frames of images corresponding to the first resource in the display interface, and load any frame of image of the second resource.

[0101] In the embodiment of the present application, optionally, the device also includes: a determination module 33.

[0102] The determination module 33 is used to determine a third resource that is not adjacent to the first resource;

[0103] The processing module 32 is further configured to delete all frame images of the third resource.

[0104] In the embodiment of the present application, optionally, the display module 31 of the device is specifically used to provide a first display area in the display interface, and display multiple frames of images corresponding to the first resource in the first display area.

[0105] In the embodiment of the present application, optionally, the first display area is located at the lower part of the display page.

[0106] In the embodiment of the present application, optionally, the resource may include a dynamic image, or a collection of dynamic images; any frame image may include the first frame image.

[0107] Fig.10 The resource processing device can execute Figure 8The implementation principle and technical effect of the resource processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the resource processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0108] In one possible design, Fig.10 The resource processing device of the embodiment shown can be implemented as an electronic device. In actual applications, Fig.11 As shown in , the electronic device may include a storage component 801 and a processing component 802;

[0109] The storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 802 to implement Figure 8 The resource processing method described in the embodiment.

[0110] The processing component 802 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), refresh controllers, micro refresh controllers, microprocessors or other electronic components to perform the above method. Figure 8 The resource processing method described in the embodiment.

[0111] The storage component 801 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0112] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 8 The resource processing method of the illustrated embodiment.

[0113] The present application also provides a computer program product, which, when executed on a processor of a computer, enables the processor of the computer to execute the above-mentioned Figure 8 The resource processing method of the illustrated embodiment.

[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A resource processing method, characterized in that: include: Displaying multiple frames of images corresponding to the first resource on the display page, and loading any frame of image of the second resource adjacent to the first resource; In response to the second resource switching operation, during the resource switching operation execution, displaying any frame image corresponding to the second resource; detecting that the resource switching operation is finished, loading a plurality of frames of images corresponding to the second resource, so as to display the plurality of frames of images corresponding to the second resource; retaining any frame image of the first resource, and deleting the remaining frame images of the first resource; The loading of any frame image of a second resource adjacent to the first resource includes: Any frame image of the second resource that is adjacent to the first resource and has not been switched for display is loaded, any frame image of the second resource that has been switched for display is retained, and the remaining frame images are deleted.

2. The method according to claim 1, characterized in that: Displaying multiple frames of images corresponding to the first resource on the display page, and loading any frame of image of the second resource adjacent to the first resource, includes: Decoding each frame of the image corresponding to the first resource and storing it in a memory; Decoding any frame of image corresponding to the second resource and storing it in a memory; Retrieve multiple frames of images corresponding to the first resource and any frame of image corresponding to the second resource from the memory, display the multiple frames of images corresponding to the first resource in the display interface, and load any frame of image of the second resource.

3. The method according to claim 1, characterized in that Also includes: determining a third resource that is not adjacent to the first resource; Delete all frame images of the third resource.

4. The method according to claim 1, characterized in that The displaying of multiple frames of images corresponding to the first resource on the display page includes: A first display area is provided in a display interface, and a plurality of frames of images corresponding to a first resource are displayed in the first display area.

5. The method according to claim 4, characterized in that The first display area is located at the lower part of the display page.

6. The method according to any one of claims 1 to 5, characterized in that: The resource may include a dynamic image, or a set of dynamic images; any frame image may include the first frame image.

7. A resource processing device, characterized in that: include: A display module, used for displaying multiple frames of images corresponding to the first resource on a display page; A processing module, used for loading any frame image of a second resource adjacent to the first resource; The display module is further configured to, in response to the second resource switching operation, display any frame image corresponding to the second resource during the resource switching operation execution process; The processing module is further used to detect the end of the resource switching operation, load the multiple frames of images corresponding to the second resource, and display the multiple frames of images corresponding to the second resource; The processing module is specifically used to load any frame image of the second resource that is adjacent to the first resource and has not been switched for display, retain any frame image of the second resource that has been switched for display, and delete the remaining frame images; The processing module is specifically used to retain any frame image of the first resource and delete the remaining frame images in the first resource.

8. The device according to claim 7, characterized in that The processing module is further used to decode each frame of the image corresponding to the first resource and store it in the memory; decode any frame of the image corresponding to the second resource and store it in the memory; The display module is also used to retrieve multiple frames of images corresponding to the first resource and any frame of image corresponding to the second resource from the memory, and display the multiple frames of images corresponding to the first resource in the display interface, and load any frame of image of the second resource.

9. The device according to claim 7, characterized in that Also includes: The determination module is used to determine a third resource that is not adjacent to the first resource; The processing module is also used to delete all frame images of the third resource.

10. The device according to claim 7, characterized in that The display module is specifically configured to provide a first display area in a display interface, and display multiple frames of images corresponding to a first resource in the first display area.

11. The device according to claim 10, characterized in that The first display area is located at the lower part of the display page.

12. The device according to any one of claims 7 to 11, characterized in that: The resource may include a dynamic image, or a set of dynamic images; any frame image may include the first frame image.

13. An electronic device, characterized in that: It comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the resource processing method as described in any one of claims 1-6.

14. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed, the resource processing method according to any one of claims 1 to 6 is implemented.

15. A computer program product, characterized in that When it runs on a processor of a computer, the processor of the computer is enabled to execute the resource processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Program switching realization method, device and equipment and computer program product

    CN105828176A

  • Video playing switching method, electronic equipment and computer storage medium

    CN112911389A