A method, device and terminal equipment for processing svga format data
Patent Information
- Application Number
- CN202211429897.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2042-11-14
AI Technical Summary
[0002]Svga格式数据通常运用于动画制作,现有的播放器在播放Svga格式数据时,会有多个相同的资源同时播放,由于重复加载本地资源文件到内存中,占用了大量的系统资源,导致内存占用较高,容易导致程序崩溃,进而导致Svga格式数据的播放并不流畅
[0046]This invention provides a method for processing SVG format data. By performing a caching judgment on SVG file data and obtaining cached data, caching technology avoids the repeated loading of SVG file data during use. The method also determines the playback mode and rendering mode of the cached data. When playback or rendering stops, it checks whether the cached data or its corresponding playback data needs resource reclamation. This allows for resource reclamation when SVG file data playback is not needed, avoiding excessive system memory consumption. This enables more efficient system memory processing of SVG file data and improves the smoothness of SVG format data playback. Through the application of this invention, the resource consumption problem that occurs when processing SVG format data in terminal devices can be improved. By using caching technology and dynamic resource reclamation technology, the burden on system memory is greatly reduced, and the efficiency of device terminals in processing SVG format files is improved.
Smart Images

Figure CN115908103B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical data processing, and more particularly to a method, apparatus, and terminal device for processing SVGA format data. Background Technology
[0002] SVGA format data is commonly used in animation production. When existing players play SVGA format data, multiple identical resources are played simultaneously. Because local resource files are repeatedly loaded into memory, a large amount of system resources are consumed, resulting in high memory usage, which can easily cause program crashes and make the playback of SVGA format data not smooth.
[0003] Therefore, there is an urgent need for a processing strategy for SVGA format data to solve the problem of low playback smoothness of current SVGA format data. Summary of the Invention
[0004] This invention provides a method, apparatus, and terminal device for processing SVGA format data to improve the playback smoothness of SVGA format data.
[0005] To address the aforementioned problems, one embodiment of the present invention provides a method for improving the smoothness of SVGA format data playback, comprising:
[0006] Obtain SVGA file data, perform cache determination on the SVGA file data, and obtain cached data;
[0007] The cached data is then used to determine the playback mode and rendering mode.
[0008] When the playback mode is "Start Playback" and the rendering mode is "Start Rendering", the cached data is compressed to obtain playback data, the playback data is rendered to obtain rendering data, and the rendering data is sent to the player so that the player can display according to the rendering data.
[0009] When the playback mode is stopped, a judgment is made on the reclamation of cached data. If the time exceeds the first reclamation time threshold, the cached data is reclaimed.
[0010] When the rendering mode is stopped, the playback data and cached data are reclaimed. If the time exceeds the second reclamation time threshold, the playback data and cached data are reclaimed.
[0011] As an improvement to the above solution, after sending the rendering data to the player so that the player can display according to the rendering data, the method further includes:
[0012] The interface of the player is hidden;
[0013] When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled.
[0014] No resource reclamation operation will be performed if the interface is not detected as hidden;
[0015] If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
[0016] As an improvement to the above solution, the step of performing a cache determination on the SVGa file data to obtain cached data specifically involves:
[0017] Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path;
[0018] When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list.
[0019] If the determination result is that the data is already cached, the cached data corresponding to the SVGA file data is extracted from the cache list.
[0020] As an improvement to the above solution, the step of cleaning the parsed data to obtain cached data specifically involves:
[0021] The parsed data is validated to identify invalid data.
[0022] Invalid data is filtered out from the parsed data to obtain cached data.
[0023] As an improvement to the above solution, the step of performing data compression on the cached data to obtain playback data specifically involves: obtaining the display resolution of the device, adjusting the image frame resolution of the cached data to the display resolution, and obtaining playback data.
[0024] Accordingly, one embodiment of the present invention also provides an apparatus for processing SVGA format data, including: a data acquisition module, a data judgment module, a first judgment result module, a second judgment result module, and a third judgment result module;
[0025] The data acquisition module is used to acquire SVGA file data, perform cache judgment on the SVGA file data, and obtain cached data;
[0026] The data judgment module is used to judge the playback mode and rendering mode of the cached data;
[0027] The first judgment result module is used to perform data compression on the cached data to obtain playback data when the playback mode is start playback and the rendering mode is start rendering, to render the playback data to obtain rendering data, and to send the rendering data to the player so that the player can display according to the rendering data.
[0028] The second judgment result module is used to judge the recycling of cached data when the playback mode is stopped, and to reclaim the cached data when the unused time of the cached data exceeds the first recycling time threshold.
[0029] The third judgment result module is used to judge the recycling of playback data and cached data when the rendering mode is stopped rendering. When the unused time of cached data and playback data exceeds the second recycling time threshold, the playback data and cached data are recycled.
[0030] As an improvement to the above solution, after sending the rendering data to the player so that the player can display according to the rendering data, the method further includes:
[0031] The interface of the player is hidden;
[0032] When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled.
[0033] No resource reclamation operation will be performed if the interface is not detected as hidden;
[0034] If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
[0035] As an improvement to the above solution, the step of performing a cache determination on the SVGa file data to obtain cached data specifically involves:
[0036] Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path;
[0037] When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list.
[0038] If the determination result is that the data is already cached, the cached data corresponding to the SVGA file data is extracted from the cache list.
[0039] As an improvement to the above solution, the step of cleaning the parsed data to obtain cached data specifically involves:
[0040] The parsed data is validated to identify invalid data.
[0041] Invalid data is filtered out from the parsed data to obtain cached data.
[0042] As an improvement to the above solution, the step of performing data compression on the cached data to obtain playback data specifically involves: obtaining the display resolution of the device, adjusting the image frame resolution of the cached data to the display resolution, and obtaining playback data.
[0043] Accordingly, one embodiment of the present invention also provides a computer terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement a method for processing SVGA format data as described in the present invention.
[0044] Accordingly, one embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a method for processing SVGA format data as described in the present invention.
[0045] As can be seen from the above, the present invention has the following beneficial effects:
[0046] This invention provides a method for processing SVG format data. By performing a caching judgment on SVG file data and obtaining cached data, caching technology avoids the repeated loading of SVG file data during use. The method also determines the playback mode and rendering mode of the cached data. When playback or rendering stops, it checks whether the cached data or its corresponding playback data needs resource reclamation. This allows for resource reclamation when SVG file data playback is not needed, avoiding excessive system memory consumption. This enables more efficient system memory processing of SVG file data and improves the smoothness of SVG format data playback. Through the application of this invention, the resource consumption problem that occurs when processing SVG format data in terminal devices can be improved. By using caching technology and dynamic resource reclamation technology, the burden on system memory is greatly reduced, and the efficiency of device terminals in processing SVG format files is improved. Attached Figure Description
[0047] Figure 1 This is a flowchart illustrating a method for processing SVGA format data according to an embodiment of the present invention.
[0048] Figure 2 This is a schematic diagram of the structure of an SVGA format data processing device provided in an embodiment of the present invention;
[0049] Figure 3 This is a schematic diagram of a terminal device structure provided in an embodiment of the present invention. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] Example 1
[0052] See Figure 1 , Figure 1 This is a flowchart illustrating a method for processing SVGA format data according to an embodiment of the present invention, as shown below. Figure 1 As shown, this embodiment includes steps 101 to 105, and the specific steps are as follows:
[0053] Step 101: Obtain SVGA file data, perform cache judgment on the SVGA file data, and obtain cached data.
[0054] In this embodiment, the SVGA file data is cached to obtain cached data, specifically as follows:
[0055] Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path;
[0056] When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list.
[0057] If the determination result is that the data is already cached, the cached data corresponding to the SVGA file data is extracted from the cache list.
[0058] The step of cleaning the parsed data to obtain cached data specifically involves:
[0059] The parsed data is validated to identify invalid data.
[0060] Invalid data is filtered out from the parsed data to obtain cached data.
[0061] In this embodiment, the step of cleaning the parsed data to obtain cached data specifically involves:
[0062] The parsed data is validated to identify invalid data.
[0063] Invalid data is filtered out from the parsed data to obtain cached data.
[0064] In one specific embodiment, the invalid data includes: image data with width and height equal to invalid thresholds, completely transparent data, invalid data in the visual layout, and audio data.
[0065] Step 102: Determine the playback mode and rendering mode of the cached data.
[0066] In this embodiment, it is determined whether the cached data is in a certain playback mode and a certain rendering mode.
[0067] Step 103: When the playback mode is "Start Playback" and the rendering mode is "Start Rendering", perform a data compression operation on the cached data to obtain playback data, render the playback data to obtain rendering data, and send the rendering data to the player so that the player can display according to the rendering data.
[0068] In this embodiment, after sending the rendering data to the player so that the player can display the data, the method further includes:
[0069] The interface of the player is hidden;
[0070] When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled.
[0071] No resource reclamation operation will be performed if the interface is not detected as hidden;
[0072] If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
[0073] In this embodiment, performing data compression on the cached data to obtain playback data specifically involves: obtaining the device's display resolution, adjusting the image frame resolution of the cached data to the display resolution, and obtaining playback data.
[0074] In one specific embodiment, the cached data is adjusted according to the current display resolution. For example, when the resolution of the cached data image frame is 1920×1080 and the display resolution is 1080×720, the cached data image frame is adjusted from 1920×1080 to 1920×1080.
[0075] Step 104: When the playback mode is stopped, perform a recycling judgment on the cached data. If the unused time of the cached data exceeds the first recycling time threshold, recycle the cached data.
[0076] Step 105: When the rendering mode is stopped, perform a recycling judgment on the playback data and cached data. When the unused time of the cached data and playback data exceeds the second recycling time threshold, recycle the playback data and cached data.
[0077] In one specific embodiment, the first recovery time threshold, the second recovery time threshold, and the third recovery time threshold are determined according to the user's needs. If the sensitivity is high, the threshold is small; if the sensitivity is low, the threshold is large.
[0078] In one specific embodiment, the processing flow for cached data is as follows:
[0079] Step 401: Determine the playback mode of the cached data: if the playback mode is "start playback", proceed to step 402; if the playback mode is "stop playback", proceed to step 405.
[0080] Step 402: Compress the cached data, adjust the resolution of the cached data image frames to the display resolution, and then proceed to step 403.
[0081] Step 403: Determine the rendering mode of the playback data: if the rendering mode is "Start Rendering", proceed to step 404; if the rendering mode is "Stop Rendering", proceed to step 405.
[0082] Step 404: Check if the player interface is hidden: If the interface is not hidden, keep the file storage state; if the interface is hidden, proceed to step 405.
[0083] Step 405: If the data is cached data and the unused time is greater than or equal to the first recycling time threshold, then the cached data is recycled; if the data is both cached data and playback data and the unused time is greater than or equal to the second recycling time threshold, then the cached data and playback data are recycled; if the data is a combination of cached data, playback data, and rendering data and the unused time is greater than or equal to the third recycling time threshold, then the cached data, playback data, and rendering data are recycled.
[0084] This embodiment uses caching to determine whether SVGA file data needs to be cached, thus avoiding repeated loading of SVGA file data during use. It also determines the playback and rendering modes of the cached data, and checks whether the cached data or its corresponding playback data needs to be reclaimed when playback or rendering stops. This allows for resource reclamation when SVGA file data playback is not needed, avoiding excessive system memory usage and enabling more efficient processing of SVGA file data, thereby improving the smoothness of SVGA format data playback. This embodiment avoids repeated loading of SVGA files through caching, resulting in low device memory usage. By identifying different application scenarios and determining whether to reclaim cached, playback, or rendering data, it achieves dynamic resource compression, reducing CPU and GPU resource usage and improving playback smoothness.
[0085] Example 2
[0086] See Figure 2 , Figure 2 This is a schematic diagram of the structure of an SVGA format data processing device according to an embodiment of the present invention, including: a data acquisition module 201, a data judgment module 202, a first judgment result module 203, a second judgment result module 204, and a third judgment result module 205;
[0087] The data acquisition module 201 is used to acquire SVG file data, perform cache judgment on the SVG file data, and obtain cached data.
[0088] The data judgment module 202 is used to judge the playback mode and rendering mode of the cached data.
[0089] The first judgment result module 203 is used to perform data compression operation on the cached data to obtain playback data when the playback mode is start playback and the rendering mode is start rendering, to render the playback data to obtain rendering data, and to send the rendering data to the player so that the player can display according to the rendering data.
[0090] The second judgment result module 204 is used to judge the recycling of cached data when the playback mode is stopped, and to recycle the cached data when the unused time of the cached data exceeds the first recycling time threshold.
[0091] The third judgment result module 205 is used to judge the recycling of playback data and cached data when the rendering mode is stopped rendering, and to recycle the playback data and cached data when the unused time of cached data and playback data exceeds the second recycling time threshold.
[0092] As an improvement to the above solution, after sending the rendering data to the player so that the player can display according to the rendering data, the method further includes:
[0093] The interface of the player is hidden;
[0094] When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled.
[0095] No resource reclamation operation will be performed if the interface is not detected as hidden;
[0096] If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
[0097] As an improvement to the above solution, the step of performing a cache determination on the SVGa file data to obtain cached data specifically involves:
[0098] Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path;
[0099] When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list.
[0100] If the determination result is that the data is already cached, the cached data corresponding to the SVGA file data is extracted from the cache list.
[0101] As an improvement to the above solution, the step of cleaning the parsed data to obtain cached data specifically involves:
[0102] The parsed data is validated to identify invalid data.
[0103] Invalid data is filtered out from the parsed data to obtain cached data.
[0104] As an improvement to the above solution, the step of performing data compression on the cached data to obtain playback data specifically involves: obtaining the display resolution of the device, adjusting the image frame resolution of the cached data to the display resolution, and obtaining playback data.
[0105] This embodiment acquires cached SVG file data through a data acquisition module and determines the playback mode and rendering mode of the cached data through a data judgment module. In the first judgment result module, the cached data is compressed and rendered to obtain rendered data, enabling the player to display the data. In the second judgment result module, when the playback mode is stopped and the unused time of the cached data exceeds a first recycling time threshold, the cached data is reclaimed. In the third judgment result module, when the playback mode is stopped and the unused time of both the cached and playback data exceeds a second recycling time threshold, both cached and playback data are reclaimed. This embodiment improves the resource consumption problem that occurs when processing SVG format data on terminal devices. Through caching and dynamic resource reclamation technologies, it significantly reduces the burden on system memory and improves the efficiency of the device terminal in processing SVG format files.
[0106] Example 3
[0107] See Figure 3 , Figure 3 This is a schematic diagram of the terminal device structure provided in an embodiment of the present invention.
[0108] One terminal device in this embodiment includes: a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program, it implements the steps of the various SVGA format data processing methods described above in this embodiment, for example... Figure 1 All steps of the method for processing SVG format data shown. Alternatively, when the processor executes the computer program, it implements the functions of each module in the above-described device embodiments, for example: Figure 2 All modules of the SVGA format data processing device shown.
[0109] In addition, embodiments of the present invention also provide a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the SVGA format data processing method as described in any of the above embodiments.
[0110] Those skilled in the art will understand that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the diagram, or combine certain components, or different components. For example, the terminal device may also include input / output devices, network access devices, buses, etc.
[0111] The processor 301 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. The processor 301 is the control center of the terminal device, connecting various parts of the terminal device through various interfaces and lines.
[0112] The memory 302 can be used to store the computer programs and / or modules. The processor 301 implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0113] Wherein, if the modules / units integrated in the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0114] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0115] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for processing SVGA format data, characterized in that, include: Obtain SVGA file data, perform cache determination on the SVGA file data, and obtain cached data; The cached data is then used to determine the playback mode and rendering mode. When the playback mode is "Start Playback" and the rendering mode is "Start Rendering", the cached data is compressed to obtain playback data, the playback data is rendered to obtain rendering data, and the rendering data is sent to the player so that the player can display according to the rendering data. When the playback mode is stopped, a judgment is made on the recycling of cached data. If the unused time of the cached data exceeds the first recycling time threshold, the cached data is reclaimed as a resource. When the rendering mode is stopped, a recycling judgment is made on the playback data and cached data. When the unused time of the cached data and playback data exceeds the second recycling time threshold, the playback data and cached data are reclaimed. Specifically, the step of performing a cache check on the SVGa file data to obtain cached data involves: Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path; When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list. If the determination result is that the data is already cached, extract the cached data corresponding to the SVGA file data from the cache list. Specifically, the step of cleaning the parsed data to obtain cached data involves: The parsed data is validated to identify invalid data. Invalid data is filtered out from the parsed data to obtain cached data.
2. The method for processing SVGA format data according to claim 1, characterized in that, After sending the rendering data to the player so that the player can display the data, the method further includes: The interface of the player is hidden; When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled. No resource reclamation operation will be performed if the interface is not detected as hidden; If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
3. The method for processing SVGA format data according to claim 1, characterized in that, The step of performing data compression on the cached data to obtain playback data specifically involves: obtaining the display resolution of the device, adjusting the image frame resolution of the cached data to the display resolution, and obtaining playback data.
4. A device for processing SVGA format data, characterized in that, include: The system comprises a data acquisition module, a data judgment module, a first judgment result module, a second judgment result module, and a third judgment result module. The data acquisition module is used to acquire SVGA file data, perform cache judgment on the SVGA file data, and obtain cached data; The data judgment module is used to judge the playback mode and rendering mode of the cached data; The first judgment result module is used to perform data compression on the cached data to obtain playback data when the playback mode is start playback and the rendering mode is start rendering, to render the playback data to obtain rendering data, and to send the rendering data to the player so that the player can display according to the rendering data. The second judgment result module is used to judge the recycling of cached data when the playback mode is stopped, and to reclaim the cached data when the unused time of the cached data exceeds the first recycling time threshold. The third judgment result module is used to judge the recycling of playback data and cached data when the rendering mode is stopped rendering, and to recycle the playback data and cached data when the unused time of cached data and playback data exceeds the second recycling time threshold. Specifically, the step of performing a cache check on the SVGa file data to obtain cached data involves: Obtain the storage path of the SVGA file data, and perform a cache determination on the SVGA file data based on the storage path; When the determination result is that the SVGA file data is not cached, the data is decompressed to obtain decompressed data. The decompressed data is parsed using the SVGA standard protocol to obtain parsed data. The parsed data is cleaned to obtain cached data. The cached data is cached in the cache list, and the cached data corresponding to the SVGA file data is extracted from the cache list. If the determination result is that the data is already cached, extract the cached data corresponding to the SVGA file data from the cache list. Specifically, the step of cleaning the parsed data to obtain cached data involves: The parsed data is validated to identify invalid data. Invalid data is filtered out from the parsed data to obtain cached data.
5. The SVGA format data processing apparatus according to claim 4, characterized in that, After sending the rendering data to the player so that the player can display the data, the method further includes: The interface of the player is hidden; When the interface is found to be hidden and the rendering data, playback data, and cached data have not been used for a period of time greater than or equal to the third recycling time threshold, the rendering data, playback data, and cached data are recycled. No resource reclamation operation will be performed if the interface is not detected as hidden; If the time during which the interface is hidden and the rendering data, playback data, and cached data have not been used is less than the third recycling time threshold, no resource recycling operation will be performed.
6. A computer terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a method for processing SVGA format data as described in any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform a method for processing SVGA format data as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Page rendering processing method, device and equipment and readable storage medium
CN111177601A
Memory management method and apparatus, and electronic device and computer-readable storage medium
WO2022089452A1