A presentation loading method and device
By adopting nonlinear multi-level data structures and loading thumbnails step by step in presentation loading, the problem of excessive memory usage in the prior art is solved, and a smoother and higher performance demonstration effect is achieved.
Patent Information
- Application Number
- CN202111528878.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-12-15
AI Technical Summary
The existing presentation loading method results in excessive memory usage, affecting the fluency of the presentation process.
Using a nonlinear multi-level data structure, loading the topic resources at each level step by step, and traversing all sub-topics subordinate to the topic, obtaining thumbnails of their resources, and realizing on-demand loading and release.
It effectively reduces the number of resource loading and memory usage, improves loading speed and display performance fluency, and achieves better demonstration effects.
Smart Images

Figure CN114153618B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data loading, and in particular to a presentation loading method and device. Background Art
[0002] In scenarios such as on-site presentations, remote presentations, and video conferences, presentations are required. The fluency of the presentation has a great impact on the presentation effect, and the presentation effect is mainly affected by the complexity of the presentation itself and the loading and presentation methods of the software running the presentation. The current presentation loading method generally loads the entire presentation into the memory. This method will cause the presentation process to occupy too much memory and the presentation process will not be smooth enough when the presentation content is large and complex. Summary of the invention
[0003] In order to solve the above technical problems, the first aspect of the present invention provides a presentation loading method, the method comprising:
[0004] S10: Read the data structure of the presentation;
[0005] S20: loading the resources of each level of themes step by step, and traversing all sub-themes belonging to the theme at the same time, and obtaining thumbnails of all its sub-theme resources;
[0006] S30: After all levels of topics are loaded, return to the main topic.
[0007] Preferably, the data structure of the presentation is a non-linear multi-level structure.
[0008] Preferably, in step S20, when loading into each level of theme, if the content of the sub-theme subordinate to the theme changes, the thumbnail of the resource is re-acquired.
[0009] Preferably, after each level of theme is loaded, the content resources corresponding to the theme are cleared.
[0010] Preferably, when returning to the main theme, all sub-theme content resources are cleared, leaving only thumbnail displays.
[0011] A second aspect of the present invention provides a presentation loading device, the device comprising:
[0012] Reading module, reads the data structure of the presentation;
[0013] The loading module loads the resources of each level of themes step by step, and at the same time traverses all the sub-themes belonging to the theme to obtain the thumbnails of all its sub-theme resources;
[0014] Return to the module. After all levels of topics are loaded, return to the main topic
[0015] A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed in the processor to implement the above method.
[0016] A fourth aspect of the present invention provides a storage medium storing a computer program, wherein the computer program can implement any of the above methods when executed in a processor.
[0017] The advantages and positive effects of the present invention are as follows: The present invention is based on a new presentation file structure organization form, which realizes on-demand loading and on-demand release during the presentation process, and achieves the optimal effect of memory and CPU. Through the scheme of the present invention, a smoother and higher-performance presentation can be achieved, and a better presentation effect can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of a presentation loading method according to an embodiment of the present invention is shown;
[0019] Figure 2 A schematic diagram showing the structure of a presentation document according to an embodiment of the present invention is shown;
[0020] Figure 3 A program diagram showing a data structure for reading a presentation document according to an embodiment of the present invention;
[0021] Figure 4 A schematic structural diagram of a presentation loading device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that in the description of the present invention, unless otherwise clearly specified and limited, the term "storage medium" can be various media that can store computer programs, such as ROM, RAM, magnetic disk or optical disk. The term "processor" can be a chip or circuit with data processing function, such as CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array), MCU (Microcontroller Unit), PLC (Programmable Logic Controller) and CPU (Central Processing Unit). The term "electronic device" can be any device with data processing function and storage function, which can generally include fixed terminals and mobile terminals. Fixed terminals such as desktop computers. Mobile terminals such as mobile phones, PADs and mobile robots. In addition, the technical features involved in the different embodiments of the present invention described later can be combined with each other as long as they do not conflict with each other.
[0023] Figure 1 A flow chart of a presentation loading method according to an embodiment of the present invention is shown. Figure 1 As shown, the animation generation method includes the following steps.
[0024] S10: Read the data structure of the presentation.
[0025] In the embodiment of the present invention, the data structure of the presentation is a non-linear multi-level structure, specifically a tree structure. Figure 2 A schematic diagram showing the structure of a presentation document according to an embodiment of the present invention is shown. Figure 2 As shown, the presentation includes a general theme, a first-level sub-theme subordinate to the general theme, a second-level sub-theme subordinate to the first-level sub-theme, ..., an N-th level sub-theme subordinate to the N-1-th level sub-theme.
[0026] In this step, the file structure of the presentation is read, wherein the file structure includes resources such as the data structure and pictures of the presentation. Figure 3 A program diagram showing a data structure for reading a presentation document according to an embodiment of the present invention is shown as follows: Figure 3 As shown, in the embodiment of the present invention, the data structure, pictures and other resources of the presentation are loaded separately.
[0027] The data structure of the presentation includes the overall theme and the associations between the first-level sub-themes to the Nth-level sub-themes.
[0028] The parent-child relationship (i.e., the overall-specific relationship) between the overall theme and sub-themes at all levels is specified based on the parent relationship. If parent is empty, it means that the theme is the overall theme. If parent is "1", it means that the subject is a sub-theme and is subordinate to the overall theme, which is the first-level sub-theme, and so on.
[0029] S20: Loading the theme resources of each level step by step, and traversing all the sub-themes belonging to the theme at the same time, and obtaining thumbnails of all its sub-theme resources.
[0030] In this step, when loading for the first time, only the resources of the main theme are loaded, that is, the theme whose parent is empty; at the same time, all the first-level sub-themes subordinate to the main theme, that is, all sub-themes whose parent is the main theme, are traversed to obtain thumbnails of the resources of all first-level sub-themes to assist in the display of the main theme.
[0031] When loading to a certain sub-topic, the content resources of the sub-topic are loaded, and thumbnails of all sub-topics belonging to the sub-topic begin to be displayed; and the same process is applied to sub-topics at other levels.
[0032] Among them, when loading into a certain topic, if the content of the sub-topics belonging to the topic changes, the thumbnail of the resource is re-acquired.
[0033] After a topic is loaded, the content resources corresponding to the topic are cleared.
[0034] The embodiment of the present invention can effectively reduce the number of resources to be loaded, reduce the usage of memory and CPU, and improve the loading speed and display performance fluency by loading thumbnails instead of sub-theme resource content.
[0035] S30: After the loading of each level of themes is completed, return to the main theme, and all sub-theme content resources are cleared, leaving only thumbnail display.
[0036] Figure 4 A schematic diagram of the structure of a presentation loading device according to an embodiment of the present invention is shown. Figure 4 As shown, the device comprises:
[0037] Reading module, reads the data structure of the presentation;
[0038] The loading module loads the resources of each level of themes step by step, and at the same time traverses all the sub-themes belonging to the theme to obtain the thumbnails of all its sub-theme resources;
[0039] Return to the module. After all levels of topics are loaded, return to the main topic.
[0040] When you return to the main topic, all sub-topic content resources are cleared, leaving only thumbnail displays.
[0041] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the computer program is executed in the processor to implement any of the above methods.
[0042] An embodiment of the present invention further provides a storage medium storing a computer program, wherein the computer program can be executed in a processor to implement any of the above methods.
[0043] It should be noted that any of the methods provided in the above embodiments are within the protection scope of the present invention, and any use or storage of these methods is prohibited without permission.
[0044] The embodiments of the present invention are described in detail above, but the contents described are only preferred embodiments of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of this patent.
Claims
1. A presentation loading method, characterized in that: The method comprises: S10: Reading the data structure of the presentation; the data structure of the presentation is a non-linear multi-level structure; the data structure of the presentation includes the relationship between the main theme and the first-level sub-themes to the Nth-level sub-themes; the parent-child relationship between the main theme and the sub-themes at each level is specified according to the parent relationship; S20: Load the resources of each level of themes step by step, and traverse all the sub-themes subordinate to the theme at the same time to obtain thumbnails of all its sub-theme resources; when loading to each level of the theme, if the content of the sub-theme subordinate to the theme changes, re-obtain the thumbnail of the resource; after each level of the theme is loaded, the content resources corresponding to the theme are cleared; when loading to a certain sub-theme, load the content resources of the sub-theme, and start displaying the thumbnails of all the sub-themes subordinate to the sub-theme; S30: After all themes at all levels are loaded, return to the main theme; when returning to the main theme, all sub-theme content resources are cleared, leaving only thumbnail display.
2. A presentation loading device, characterized in that: The device comprises: A reading module reads the data structure of the presentation; the data structure of the presentation is a non-linear multi-level structure; the data structure of the presentation includes the association relationship between the main theme and the first-level sub-themes to the Nth-level sub-themes; the parent-child relationship between the main theme and the sub-themes at each level is specified according to the parent relationship; The loading module loads the resources of each level of themes step by step, and traverses all the sub-themes subordinate to the theme at the same time to obtain the thumbnails of all its sub-theme resources; when loading to each level of the theme, if the content of the sub-theme subordinate to the theme changes, the thumbnail of the resource is obtained again; after each level of the theme is loaded, the content resources corresponding to the theme are cleared; when loading to a sub-theme, the content resources of the sub-theme are loaded, and the thumbnails of all the sub-themes subordinate to the sub-theme are displayed at the same time; Return module, after all levels of topics are loaded, return to the main topic; when returning to the main topic, all sub-topic content resources are cleared, leaving only thumbnail display.
3. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is executed in the processor to implement the method of claim 1.
4. A storage medium, characterized in that: A computer program is stored, which is executed in a processor to implement the method of claim 1.
Citation Information
Patent Citations
Tree structure building method and device
CN106033470A