CN114401012A - Resource processing method, device, equipment and medium - Google Patents

Resource processing method, device, equipment and medium Download PDF

Info

Publication number
CN114401012A
CN114401012A CN202111624745.1A CN202111624745A CN114401012A CN 114401012 A CN114401012 A CN 114401012A CN 202111624745 A CN202111624745 A CN 202111624745A CN 114401012 A CN114401012 A CN 114401012A
Authority
CN
China
Prior art keywords
resource
packet
resources
compressed packet
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111624745.1A
Other languages
Chinese (zh)
Inventor
王天博
林信全
王波
蒋品
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Beijing Guangqiyuan Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Guangqiyuan Digital Technology Co ltd filed Critical Beijing Guangqiyuan Digital Technology Co ltd
Priority to CN202111624745.1A priority Critical patent/CN114401012A/en
Publication of CN114401012A publication Critical patent/CN114401012A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Abstract

The embodiment of the specification discloses a resource processing method, a device, equipment and a medium, wherein the resource processing method comprises the following steps: determining resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet; establishing a corresponding relation between the AB packet and the compressed packet so as to enable: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.

Description

Resource processing method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource processing method, apparatus, device, and medium.
Background
In the prior art, resources can be packaged in order to facilitate the propagation and use of the resources. The AssetBundle (hereinafter referred to as AB packet) is a commonly used resource packaging method, but the AB packet cannot be reversely exported and secondarily edited.
In view of the above, a more efficient resource handling scheme is needed.
Disclosure of Invention
Embodiments of the present specification provide a resource processing method, apparatus, device, and medium, so as to solve a technical problem of how to perform resource processing more efficiently.
In order to solve the above technical problem, the embodiments of the present specification provide the following technical solutions:
an embodiment of the present specification provides a resource processing method, including:
determining resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet;
establishing a corresponding relation between the AB packet and the compressed packet so as to enable:
after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
Optionally, the resource to be packaged includes a target resource and a resource associated with the target resource;
determining resources to be packaged, and packaging the resources to be packaged into a compressed package, wherein the method comprises the following steps:
establishing a resource list, wherein the resource list stores the storage path and the resource identifier of the resource file of the target resource, and the resource list also stores the storage path and the resource identifier of the resource file of the associated resource;
and acquiring resource files of the target resource and the associated resource, and packaging the resource files of the target resource and the associated resource, the cache files corresponding to the resource identifiers of the target resource and the associated resource, and the resource list into a compressed packet.
Optionally, obtaining the resource in the compressed packet to edit the resource, includes:
decompressing the compressed packet to obtain a resource list in the compressed packet and a cache file corresponding to the resource identifier;
for any target resource, moving the resource file of the target resource obtained by decompression to a storage path of the resource file of the target resource stored in the resource list; for any associated resource, moving the resource file of the associated resource obtained by decompression to a storage path of the resource file of the associated resource, which is stored in the resource list; and for any resource identifier, moving the cache file corresponding to the resource identifier obtained by decompression to the storage path of the resource file of the resource corresponding to the resource identifier so as to edit the resource.
Optionally, the method further includes: and encrypting the compressed packet.
Optionally, the method further includes: and sending the AB packet and the compressed packet to a server so that the server sends the AB packet or the compressed packet to each terminal.
Optionally, the method further includes:
if a resource display request of the terminal is obtained, the AB packet is sent to the terminal;
or the like, or, alternatively,
and if the resource editing request of the terminal is acquired, sending the compressed packet to the terminal.
Optionally, the method further includes:
after editing the resources, determining the resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet;
establishing a corresponding relation between the AB packet and the compressed packet so as to enable:
after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
An embodiment of the present specification provides a resource processing apparatus, including:
the packaging module is used for determining resources to be packaged and packaging the resources to be packaged into an AB packet and a compressed packet;
the application module is used for establishing a corresponding relation between the AB packet and the compressed packet so as to enable: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
An embodiment of the present specification provides a resource processing apparatus, including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the resource handling method described above.
The present specification provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for processing resources is implemented.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
according to the technical scheme, the resources to be packaged are packaged into the AB bag and the compression bag, the AB bag can be used for displaying the resources, the compression bag can be used for editing the resources, and the resource processing efficiency and diversity are improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments of the present specification or the prior art will be briefly described below. It should be apparent that the drawings described below are only some of the drawings to which the embodiments described in the present specification may relate, and that other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic diagram of an execution main body of a resource processing method in the first embodiment of the present specification.
Fig. 2 is a flowchart illustrating a resource processing method in the first embodiment of the present specification.
Fig. 3 is a schematic structural diagram of a resource processing apparatus in a second embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings of the embodiments of the present specification. It is to be understood that the embodiments described herein are only some embodiments of the application and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
In the prior art, resources can be packaged in order to facilitate the propagation and use of the resources. The AssetBundle (hereinafter referred to as AB packet) is a commonly used resource packaging method, but the AB packet cannot be reversely exported and secondarily edited.
A first embodiment (hereinafter referred to as "embodiment one") of this specification provides a resource processing method, and an execution main body of the embodiment one may be a terminal (including but not limited to a mobile phone, a computer, a pad, a television) or a server or an operating system or an application program or a resource processing platform or a resource processing system, and the like, that is, the execution main body may be various and may be set, used, or changed as needed. In addition, a third party application may assist the execution principal in executing embodiment one. For example, as shown in fig. 1, the resource processing method in the first embodiment may be executed by a server, and an application program (corresponding to the server) may be installed on a terminal (held by a user), and data transmission may be performed between the terminal or the application program and the server, and data collection or input or output or page or information processing may be performed by the terminal or the application program, so as to assist the server in executing the resource processing method in the first embodiment.
As shown in fig. 2, a resource processing method according to a first embodiment includes:
s101: determining resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet;
the execution agent of embodiment one may determine the resource to be packaged. The resource to be packaged can be a data visualization resource or a three-dimensional scene resource, and the resource to be packaged includes, but is not limited to, a model file, a material file, a map file, and the like.
For example, a user may select an object (the object may be regarded as a resource combination) in a three-dimensional scene, and the implementation subject of embodiment one uses a resource intersecting with the selected object or a resource used for building the selected object as a resource to be packaged.
For another example, when the entity is selected as a 3D content authoring and operating platform, the execution subject of the first embodiment may call an API built in Unity using the C # code, find a resource intersecting the selected object or a resource used for building the selected object, and use the resource as a resource to be packaged.
After determining the resource to be packaged, the execution main body of the first embodiment may package the resource to be packaged into an AB packet and a compressed packet.
In an embodiment one, the resources to be packaged may include a target resource and associated resources of the target resource (the associated resources of the target resource are hereinafter referred to as "associated resources"), for example, the execution subject in embodiment one may use resources used for constructing the selected object as the target resources, and use resources that intersect with the selected object as associated resources of the target resources.
The following describes how to pack the resources to be packed into an AB packet and a compressed packet:
one, compression bag (e.g. Zip bag)
In the first embodiment, determining resources to be packed, and packing the resources to be packed into a compressed packet may include:
s1011: establishing a resource list, wherein the resource list stores a storage path of a resource file of the target resource and a resource identifier of the target resource, and the resource list also stores a storage path of a resource file of the associated resource and a resource identifier of the associated resource;
the resource identifier may be a GUID, and the GUID is a unique resource ID generated by the unit for each resource and may be used as the resource identifier. The execution subject of the first embodiment may create a json file, store a resource list in the json file, and store the json file in a root directory (for example, Assets root directory of unity).
S1013: and acquiring resource files of the target resource and the associated resource, and packaging the resource files of the target resource and the associated resource, the cache files corresponding to the resource identifiers of the target resource and the associated resource, and the resource list into a compressed packet.
According to a storage path of a resource file of any target resource in the resource list, the execution subject of the first embodiment may obtain the resource file of the target resource; according to the storage path of the resource file of any associated resource in the resource list, the execution subject of the first embodiment may obtain the resource file of the associated resource.
According to the resource identifier of any target resource in the resource list, the execution subject of the first embodiment may determine a cache file corresponding to the resource identifier of the target resource; according to the resource identifier of any associated resource in the resource list, the execution subject in the first embodiment may determine the cache file corresponding to the resource identifier of the associated resource.
In an embodiment, the cache file corresponding to the resource identifier may be a meta file (the meta file is the cache file where the GUID is located). The meta file name is in the form of "resource name + suffix + meta suffix". For any resource (including but not limited to a target resource or an associated resource, the same applies below), the resource identifier of the resource is the name of the resource in the corresponding meta file name. Generally, the cache file corresponding to the resource identifier of any resource is stored in the same path as the resource file of the resource.
The execution subject of the first embodiment may pack the resource file of the target resource and the associated resource, the cache file corresponding to the resource identifier of the target resource and the associated resource, and the resource list into the compressed packet. The execution main body in the first embodiment may call a compression method in an icsharp code. Alternatively, the execution main body in the first embodiment may pack the resource file of the target resource and the associated resource, the cache file corresponding to the resource identifier of the target resource and the associated resource, and the resource list into the compressed packet in other manners, which is not limited in the first embodiment.
The execution subject of the first embodiment may encrypt the compressed packet obtained by packaging (for example, set a password for the compressed packet), so as to improve the security of the compressed packet. The execution subject of the first embodiment may set an output path (storage path) of the compressed packet, so that the encrypted compressed packet is stored in the output path.
Bag II and AB
The execution body of embodiment one may pack the resources to be packed into the AB packet. The execution main body of the first embodiment may call an AB packet packing API of unity, and pack the resource to be packed into an AB packet.
The execution body of the first embodiment may set an output path of the AB packet, and store the AB packet to the output path.
And for the same batch of resources to be packaged, the AB packet packaged by the batch of resources to be packaged and the compressed packet have the same output path.
S103: (execution subject) establishes correspondence of the AB packet and the compressed packet so that: after the terminal acquires the AB packet, when a resource display condition is triggered, the resource is displayed through the AB packet; or after the terminal acquires the compressed packet and when the resource editing condition is triggered, acquiring the resource in the compressed packet so as to edit the resource.
For the same batch of resources to be packaged, the execution main body in the first embodiment may establish a corresponding relationship between the AB packet and the compressed packet, which are formed by packaging the batch of resources to be packaged.
After the resources to be packed are packed into the AB packet and the compressed packet, the resources to be packed are referred to as packed resources below.
The terminal (the execution subject of the first embodiment may also be the terminal, the same applies below) may set the resource display condition. The resource display condition may be that the user performs a resource display request operation on the terminal, where the resource display request operation includes, but is not limited to, the user clicking a predetermined button on a terminal page or pressing a predetermined key of the terminal or making a predetermined voice to the terminal. After triggering a resource display condition (that is, a user performs a resource display operation on the terminal), the terminal may send a resource display request to the execution main body of the first embodiment, and the execution main body of the first embodiment sends the AB packet to the terminal according to the resource display request. The user can select the resource to be displayed through the terminal, the terminal includes the resource to be displayed in the resource display request, and the execution main body of the first embodiment sends the AB packet including the resource to be displayed to the terminal.
Alternatively, the first and second electrodes may be,
the terminal can set the resource edit condition. The resource editing condition may be that the user performs a resource editing request operation on the terminal, where the resource editing request operation includes, but is not limited to, the user clicking a predetermined button on a terminal page or a predetermined key of the terminal or the user sending a predetermined voice to the terminal. After triggering a resource editing condition (that is, a user performs a resource editing operation on a terminal), the terminal may send a resource editing request to the execution main body of the first embodiment, and the execution main body of the first embodiment sends the compressed packet to the terminal according to the resource editing request. The user can select the resource to be edited through the terminal, the terminal includes the resource to be edited in the resource editing request, and the execution main body of the first embodiment transmits the compressed packet including the resource to be edited to the terminal.
In addition, the execution subject of embodiment one may send the AB packet and the compressed packet to the server, so that the server stores the AB packet and the compressed packet. For the same batch of resources to be packaged, the server can establish the corresponding relation between the AB packet and the compressed packet formed by packaging the batch of resources to be packaged. Generally, for the same batch of resources to be packaged, the storage paths of the AB packet and the compressed packet packaged by the batch of resources to be packaged on the server are the same.
Each terminal can send a resource display request to the server as above, and the server sends the AB packet to each terminal according to the resource display request. The user can select the resource to be displayed through the terminal, the terminal includes the resource to be displayed in the resource display request, and the server sends the AB packet including the resource to be displayed to the terminal. Alternatively, each terminal may send a resource editing request to the server as described above, and the server may send the compressed packet to each terminal according to the resource editing request. The user can select the resource to be edited through the terminal, the terminal includes the resource to be edited in the resource editing request, and the server transmits the compressed packet including the resource to be edited to the terminal.
After the terminal acquires the AB packet, the resources in the AB packet can be displayed through the AB packet according to user operation. For example, resources within the AB package are exposed by the WebGL approach. Since the resources in the AB package may be resources for constructing an object, the object constructed by the resources in the AB package may be directly displayed when the resources in the AB package are displayed.
Alternatively, the first and second electrodes may be,
after the terminal acquires the compressed packet, the resource in the compressed packet can be acquired according to the user operation, so that the resource acquired by the compressed packet can be edited. The acquiring of the resource in the compressed packet to edit the resource acquired by the compressed packet may include:
s1031: decompressing the compressed packet to obtain a resource list in the compressed packet and a cache file corresponding to the resource identifier;
decompressing the compressed packet may include: the compressed intra-package files are decompressed to a root directory (e.g., the Assets root directory of unity). Wherein the decompression method in the icsharp code. Alternatively, the compressed packet may be decompressed in other manners, and the embodiment is not limited thereto.
As described above, the resource list is packed into the compressed packet, so that after the compressed packet is decompressed, the resource list in the compressed packet, that is, the decompressed resource list, can be obtained.
As described above, the cache file corresponding to the resource identifier (of the target resource and the associated resource) is packed into the compressed packet, so that after the compressed packet is decompressed, the cache file corresponding to the resource identifier in the compressed packet can be obtained, that is, the cache file corresponding to the decompressed resource identifier is obtained.
S1033: for any target resource, moving the resource file of the target resource obtained by decompression to a storage path of the resource file of the target resource stored in the resource list; for any associated resource, moving the resource file of the associated resource obtained by decompression to a storage path of the resource file of the associated resource, which is stored in the resource list; and for any resource identifier, moving the cache file corresponding to the resource identifier obtained by decompression to the storage path of the resource file of the resource corresponding to the resource identifier so as to edit the resource.
Since the decompressed resource list stores the storage path of the resource file of the compressed target resource, the decompressed resource file of the target resource is moved to the "storage path of the resource file of the target resource" stored in the resource list (decompressed) for any target resource.
Since the decompressed resource list stores the storage path of the compressed resource file of the associated resource, the decompressed resource file of the associated resource is moved to the "storage path of the resource file of the associated resource" stored in the resource list (decompressed) for any associated resource.
And for any resource identifier in the (decompressed) resource list, moving the cache file corresponding to the decompressed resource identifier to the storage path of the resource file of the resource corresponding to the resource identifier. Moving a cache file corresponding to the resource identifier of any target resource in the resource list to a storage path of the resource file of the target resource; and for the resource identifier of any associated resource in the resource list, moving the cache file corresponding to the resource identifier of the associated resource to the storage path of the resource file of the associated resource. For any resource identifier, an API of unity can be called through the resource identifier, and the decompressed cache file corresponding to the resource identifier is moved to the storage path of the resource file of the resource corresponding to the resource identifier.
Through the above operation, the decompressed file is restored to the storage position before compression, so that the resource can be edited (including but not limited to editing the resource by unity), that is, the decompressed resource file can be edited.
In the first embodiment, after the terminal edits the resource, the terminal may send the edited resource to the execution main body of the first embodiment, and the execution main body of the first embodiment may re-execute the above steps, that is, determine the resource to be packaged, and package the resource to be packaged into the AB packet and the compressed packet; establishing a corresponding relation between the AB packet and the compressed packet so as to enable: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources. The operations are repeated continuously, so that the AB packet and the compressed packet are obtained by packaging each time, and the requirements of resource display and resource editing are met.
Or after the terminal edits the resources, the terminal can execute the steps again, namely determining the resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet; establishing a corresponding relation between the AB packet and the compressed packet so as to enable: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources. The operations are repeated continuously, so that the AB packet and the compressed packet are obtained by packaging each time, and the requirements of resource display and resource editing are met. In this way, the terminal may also be used as the execution subject of the first embodiment, so that the execution subject of the first embodiment may be changed or expanded, that is, the execution subject of the first embodiment is not limited to one device.
In the first embodiment, each time a resource needs to be packaged, the resource to be packaged is packaged into the AB package and the compression package, the AB package can be used for resource display, and the compression package can be used for resource editing, so that the resource display processing and the resource editing processing can be performed, and the resource processing efficiency and diversity are improved.
As shown in fig. 3, a second embodiment of the present disclosure provides a resource processing apparatus corresponding to the resource processing method in the first embodiment, including:
a packing module 202, configured to determine resources to be packed, and pack the resources to be packed into an AB packet and a compressed packet;
the application module 204 is configured to establish a corresponding relationship between the AB packet and the compressed packet, so that: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
Optionally, the resource to be packaged includes a target resource and a resource associated with the target resource;
determining resources to be packaged, and packaging the resources to be packaged into a compressed package, wherein the method comprises the following steps:
establishing a resource list, wherein the resource list stores the storage path and the resource identifier of the resource file of the target resource, and the resource list also stores the storage path and the resource identifier of the resource file of the associated resource;
and acquiring resource files of the target resource and the associated resource, and packaging the resource files of the target resource and the associated resource, the cache files corresponding to the resource identifiers of the target resource and the associated resource, and the resource list into a compressed packet.
Optionally, obtaining the resource in the compressed packet to edit the resource, includes:
decompressing the compressed packet to obtain a resource list in the compressed packet and a cache file corresponding to the resource identifier;
for any target resource, moving the resource file of the target resource obtained by decompression to a storage path of the resource file of the target resource stored in the resource list; for any associated resource, moving the resource file of the associated resource obtained by decompression to a storage path of the resource file of the associated resource, which is stored in the resource list; and for any resource identifier, moving the cache file corresponding to the resource identifier obtained by decompression to the storage path of the resource file of the resource corresponding to the resource identifier so as to edit the resource.
Optionally, the packing module 202 is further configured to encrypt the compressed packet.
Optionally, the apparatus further comprises:
and the sharing module is used for sending the AB packet and the compressed packet to a server so that the server sends the AB packet or the compressed packet to each terminal.
Optionally, the application module 204 is configured to send the AB packet to the terminal if the resource display request of the terminal is obtained; or if the resource editing request of the terminal is acquired, the compressed packet is sent to the terminal.
Optionally, after editing the resource, the packaging module 202 determines the resource to be packaged, and packages the resource to be packaged into an AB packet and a compressed packet;
the application module 204 establishes a correspondence between the AB packet and the compressed packet, such that: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
A third embodiment of the present specification provides a resource processing apparatus including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the resource handling method of embodiment one.
A fourth embodiment of the present specification provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the resource processing method of the first embodiment.
The above embodiments may be used in combination, and the modules having the same name between different embodiments or within the same embodiment may be the same or different modules.
While certain embodiments of the present disclosure have been described above, other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily have to be in the particular order shown or in sequential order to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, device, and non-volatile computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the description of the method embodiments.
The apparatus, the device, the nonvolatile computer readable storage medium, and the method provided in the embodiments of the present specification correspond to each other, and therefore, the apparatus, the device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of resource processing, comprising:
determining resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet;
establishing a corresponding relation between the AB packet and the compressed packet so as to enable:
after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
2. The method of claim 1, wherein the resources to be packaged comprise a target resource and an associated resource of the target resource;
determining resources to be packaged, and packaging the resources to be packaged into a compressed package, wherein the method comprises the following steps:
establishing a resource list, wherein the resource list stores the storage path and the resource identifier of the resource file of the target resource, and the resource list also stores the storage path and the resource identifier of the resource file of the associated resource;
and acquiring resource files of the target resource and the associated resource, and packaging the resource files of the target resource and the associated resource, the cache files corresponding to the resource identifiers of the target resource and the associated resource, and the resource list into a compressed packet.
3. The method of claim 2, obtaining the resource within the compressed package for editing the resource, comprising:
decompressing the compressed packet to obtain a resource list in the compressed packet and a cache file corresponding to the resource identifier;
for any target resource, moving the resource file of the target resource obtained by decompression to a storage path of the resource file of the target resource stored in the resource list; for any associated resource, moving the resource file of the associated resource obtained by decompression to a storage path of the resource file of the associated resource, which is stored in the resource list; and for any resource identifier, moving the cache file corresponding to the resource identifier obtained by decompression to the storage path of the resource file of the resource corresponding to the resource identifier so as to edit the resource.
4. The method of claim 1, further comprising:
and encrypting the compressed packet.
5. The method of claim 1, further comprising:
and sending the AB packet and the compressed packet to a server so that the server sends the AB packet or the compressed packet to each terminal.
6. The method of claim 1, further comprising:
if a resource display request of the terminal is obtained, the AB packet is sent to the terminal;
or the like, or, alternatively,
and if the resource editing request of the terminal is acquired, sending the compressed packet to the terminal.
7. The method of any of claims 1 to 6, further comprising:
after editing the resources, determining the resources to be packaged, and packaging the resources to be packaged into an AB packet and a compressed packet;
establishing a corresponding relation between the AB packet and the compressed packet so as to enable:
after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
8. A resource processing apparatus comprising:
the packaging module is used for determining resources to be packaged and packaging the resources to be packaged into an AB packet and a compressed packet;
the application module is used for establishing a corresponding relation between the AB packet and the compressed packet so as to enable: after the terminal acquires the AB packet, displaying the resources through the AB packet; or after the terminal acquires the compressed packet, acquiring the resources in the compressed packet so as to edit the resources.
9. A resource processing apparatus comprising:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the resource handling method of any of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the resource processing method of any one of claims 1 to 7.
CN202111624745.1A 2021-12-28 2021-12-28 Resource processing method, device, equipment and medium Pending CN114401012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111624745.1A CN114401012A (en) 2021-12-28 2021-12-28 Resource processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111624745.1A CN114401012A (en) 2021-12-28 2021-12-28 Resource processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114401012A true CN114401012A (en) 2022-04-26

Family

ID=81229782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111624745.1A Pending CN114401012A (en) 2021-12-28 2021-12-28 Resource processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114401012A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840478A (en) * 2022-07-05 2022-08-02 山东捷瑞数字科技股份有限公司 Resource packet export optimization processing method based on three-dimensional engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840478A (en) * 2022-07-05 2022-08-02 山东捷瑞数字科技股份有限公司 Resource packet export optimization processing method based on three-dimensional engine

Similar Documents

Publication Publication Date Title
CN109213685B (en) Service logic test method and device
CN109062582B (en) Encryption method and device for application installation package
CN111831387B (en) Page processing method, device and equipment
CN107045438B (en) Application top view processing method, device and component
TW201935343A (en) File processing method, device, and equipment
CN107786630B (en) Web application package processing method, device and equipment
CN111540035B (en) Particle rendering method, device and equipment
CN107479868B (en) Interface loading method, device and equipment
CN107038058B (en) Code processing method and device
CN111241040B (en) Information acquisition method and device, electronic equipment and computer storage medium
CN114401012A (en) Resource processing method, device, equipment and medium
CN114115016A (en) Data processing method, device, equipment and medium
CN111459573B (en) Method and device for starting intelligent contract execution environment
CN107402749B (en) Method and device for realizing picture loading library
CN113377386B (en) Installation package installation method, device and equipment without decompression
CN111209062B (en) Information acquisition method, information acquisition device, electronic equipment and computer storage medium
CN114283268A (en) Three-dimensional model processing method, device, equipment and medium
CN113254823A (en) Webpage data processing method and device
CN112685494A (en) Data visualization method, device, equipment and medium
CN113176988B (en) Data recording method and device
CN112181798B (en) Data recording method and device
CN110955653A (en) Data page processing method, device, equipment and computer system
CN114500356B (en) Data cross transmission method, device and system
CN114816590A (en) Link information transmission method and device applied to multithreading
CN112925527B (en) Calling method, calling device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220712

Address after: 100190 Beijing Haidian District Zhichun Road 49 No. 3 West 309

Applicant after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 100102 Room 203, 14 and 19, floor 2, building 19, Wangjing Dongyuan seventh district, Chaoyang District, Beijing

Applicant before: Beijing Guangqiyuan Digital Technology Co.,Ltd.