CN111290995B - Resource management method and device - Google Patents

Resource management method and device Download PDF

Info

Publication number
CN111290995B
CN111290995B CN201811496707.0A CN201811496707A CN111290995B CN 111290995 B CN111290995 B CN 111290995B CN 201811496707 A CN201811496707 A CN 201811496707A CN 111290995 B CN111290995 B CN 111290995B
Authority
CN
China
Prior art keywords
resource
receiving
resources
file
instruction
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.)
Active
Application number
CN201811496707.0A
Other languages
Chinese (zh)
Other versions
CN111290995A (en
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811496707.0A priority Critical patent/CN111290995B/en
Publication of CN111290995A publication Critical patent/CN111290995A/en
Application granted granted Critical
Publication of CN111290995B publication Critical patent/CN111290995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present disclosure discloses a resource management method, apparatus, electronic device, and computer-readable storage medium. The resource management method comprises the following steps: receiving a resource; allocating a resource ID for the resource; placing the resource into a resource management list; receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID; mapping the resource to a reference location in the reference instruction. The embodiment of the disclosure solves the technical problem of storage space waste caused by the fact that resources can only be copied when the resources are used in the prior art through the sharing management and the mapping of the resources.

Description

Resource management method and device
Technical Field
The present disclosure relates to the field of data management, and in particular, to a resource management method, apparatus, electronic device, and computer readable storage medium.
Background
With the development of computer technology, the application range of the intelligent terminal is widely improved, for example, the intelligent terminal can listen to music, play games, chat online, take photos and the like. For the photographing technology of the intelligent terminal, the photographing pixels reach more than ten millions of pixels, and the photographing technology has higher definition and is comparable to the photographing effect of a professional camera.
At present, when an intelligent terminal is adopted for photographing, not only can photographing effect of traditional functions be realized by using photographing software built in the factory, but also photographing effect with additional functions, such as APP with functions of dim light detection, a beauty camera, super pixels and the like, can be realized by downloading Application programs (APP for short) from a network side. Various special effects such as beauty, filters, large-eye thin faces, etc. can be formed by combining various basic resources.
At present, when various image special effects are produced, a file is generally pre-established aiming at the special effects, various resources required by the special effects are directly imported into the file for storage, and the resources are copied to a storage address where the file is located after the import, so that when the produced image special effects are more and more, the required storage resources are more and more, and if the same resources are used in a plurality of special effects, the import is required for a plurality of times, and the method is very inconvenient; in addition, if the resource used in the process of producing the special effect is deleted, the resource cannot be used in the process of continuously producing the resource, only the resource can be imported again, and the produced special effect cannot be seen, so that the production process of the special effect is complicated.
Disclosure of Invention
In a first aspect, an embodiment of the present disclosure provides a resource management method, including: receiving a resource; allocating a resource ID for the resource; placing the resource into a resource management list; receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID; mapping the resource to a reference location in the reference instruction.
Further, the receiving resource includes: receiving an import address of a resource; the resource is copied from the import address.
Further, the receiving resource includes: creating a resource; receiving an editing instruction for the resource; and receiving a saving instruction for the resource.
Further, the resource includes a resource packet, and the receiving the resource includes: and receiving a resource package, analyzing the resource package, and analyzing the resources included in the resource package.
Further, the allocating a resource ID to the resource includes: the resource ID is assigned to each resource in the resource package.
Further, after said mapping said resource to a reference location in said reference instruction, further comprising: receiving an instruction for editing the resource, and changing the attribute of the resource; and synchronizing the changed resources into the cells of the resource management list indicated by the resource ID.
Further, after synchronizing the changed resource into the cell of the resource management list indicated by the resource ID, the method further includes: mapping the changed resource to other reference positions referencing the resource.
Further, the placing the resource into a resource management list includes: creating cells in the resource management list; taking the resource ID as an index of the cell; and placing the resource into an address corresponding to the cell.
Further, after said mapping said resource to a reference location in said reference instruction, further comprising: and storing the resource as a first file, wherein the first file comprises a configuration file of the first file, and the configuration file of the first file comprises state information of the resource in the first file.
Further, after the resource is saved as the first file, the method further includes: receiving an instruction for importing a first file; reading a configuration file of the first file, and acquiring state information of the resource; and restoring the state of the resource according to the state information of the resource.
Further, the status information of the resource includes: one or more of an ID of the resource, a reference location of the resource, and an edit status of the resource.
Further, the mapping the resource to the reference position in the reference instruction includes: searching the resource in a resource management table based on the resource ID; and rendering the resource on the reference position according to the searched attribute of the resource.
In a second aspect, an embodiment of the present disclosure provides a resource management apparatus, including: the resource receiving module is used for receiving the resource; an ID allocation module, configured to allocate a resource ID for the resource; the resource placement module is used for placing the resources into a resource management list; the reference instruction receiving module is used for receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID; and the mapping module is used for mapping the resource to the reference position in the reference instruction.
Further, the resource receiving module further includes: the import address receiving module is used for receiving the import address of the resource; and the copying module is used for copying the resource from the import address.
Further, the resource receiving module further includes: the resource creation module is used for creating resources; the editing instruction receiving module is used for receiving an editing instruction for the resource; and the storage instruction receiving module is used for receiving the storage instruction of the resource.
Further, the resource includes a resource packet, and the resource receiving module is further configured to: and receiving a resource package, analyzing the resource package, and analyzing the resources included in the resource package.
Further, the ID allocation module is further configured to: the resource ID is assigned to each resource in the resource package.
Further, the resource placement module further includes: a cell creation module for creating cells in the resource management list; an index creating module, configured to use the resource ID as an index of the cell; and the resource placement sub-module is used for placing the resource into the address corresponding to the cell.
Further, the mapping module further includes: a resource searching module, configured to search the resource in a resource management table based on the resource ID; and the rendering module is used for rendering the resource on the reference position according to the searched attribute of the resource.
Further, the resource management device further includes: the resource attribute changing module is used for receiving an instruction for editing the resource and changing the attribute of the resource; and the synchronization module is used for synchronizing the changed resources into the cells of the resource management list indicated by the resource ID.
Further, the resource management device may further include: and the change mapping module is used for mapping the attribute of the resource change to all the reference positions referencing the resource.
Further, the resource management device further includes: the first file saving module is used for saving the resource as a first file, wherein the first file comprises a configuration file of the first file, and the configuration file of the first file comprises state information of the resource in the first file.
Further, the resource management device may further include: the first file import instruction receiving module is used for receiving an instruction for importing a first file; the configuration file reading module is used for reading the configuration file of the first file and acquiring the state information of the resource; and the recovery module is used for recovering the state of the resource according to the state information of the resource.
Further, the status information of the resource includes: one or more of an ID of the resource, a reference location of the resource, and an edit status of the resource.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; the method comprises the steps of,
A memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the resource management methods of the first aspect described above.
In a fourth aspect, embodiments of the present disclosure provide a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions for causing a computer to perform any one of the resource management methods of the first aspect.
The present disclosure discloses a resource management method, apparatus, electronic device, and computer-readable storage medium. The resource management method comprises the following steps: receiving a resource; allocating a resource ID for the resource; placing the resource into a resource management list; receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID; mapping the resource to a reference location in the reference instruction. The embodiment of the disclosure solves the technical problem of storage space waste caused by the fact that resources can only be copied when the resources are used in the prior art through the sharing management and the mapping of the resources.
The foregoing description is only an overview of the disclosed technology, and may be implemented in accordance with the disclosure of the present disclosure, so that the above-mentioned and other objects, features and advantages of the present disclosure can be more clearly understood, and the following detailed description of the preferred embodiments is given with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a first embodiment of a resource management method provided in an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a resource management list according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a process for resource referencing provided by an embodiment of the present disclosure;
fig. 4 is a flowchart of a second embodiment of a resource management method according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a process of reverse mapping of resources provided by an embodiment of the present disclosure;
Fig. 6 is a flowchart of a third embodiment of a resource management method provided by an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an embodiment one of a resource management device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a second embodiment of a resource management device according to an embodiment of the disclosure;
fig. 9 is a schematic structural diagram of a third embodiment of a resource management device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the disclosure by way of illustration, and only the components related to the disclosure are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
Fig. 1 is a flowchart of an embodiment of a resource management method according to an embodiment of the present disclosure, where the resource management method according to the embodiment may be implemented by a resource management device, and the resource management device may be implemented as software, or as a combination of software and hardware, and the resource management device may be integrally provided in a device in a resource management system, such as a resource management server or a resource management terminal device. As shown in fig. 1, the method comprises the steps of:
step S101, receiving resources;
in this embodiment, the resource may be a picture, a video, an audio, or other already-manufactured special effects, or the like, or may also be a special resource used in manufacturing special effects, such as a material, a texture, or the like, which will not be described herein, and any type of resource may be used as a resource in the present disclosure.
In one embodiment, the receiving resources include: receiving an import address of a resource; the resource is copied from the import address. The import address may be a local memory or a network address. Optionally, when the receiving resource is received from a local memory, designating a storage location of the resource, directly multiplexing the imported resource from the storage location, or designating a name of the resource, searching the resource from the local memory, and multiplexing the imported resource; optionally, when the received resource is received from a network address, a network storage address of the resource is specified, the resource is obtained from the network storage address, and the resource is imported.
In one embodiment, the receiving resources include: creating a resource; receiving an editing instruction for the resource; and receiving a saving instruction for the resource. In this embodiment, the user creates and edits the resource itself, and then saves the resource as the received resource. Typically, the resource may be a map, and the user may create a resource with a type of map, edit the size, position, color, etc. of the map, and save the resource as a resource after the editing is completed, so as to complete the process of receiving the resource, where the resource may be re-opened and edited continuously, which is not described herein again.
In one embodiment, the resource comprises a resource packet, and the receiving resource comprises: and receiving a resource package, analyzing the resource package, and analyzing the resources included in the resource package. Optionally, the resource package is a manufactured special effect package, the special effect package includes various resources used by the special effect, and similarly, the special effect package can be from a local or a network, when the special effect package is received, various resources contained in the special effect package are analyzed, and the various resources are imported into a system.
It should be understood that, in this disclosure, a resource is a generic term of a minimum unit of data managed by a system, typically if a resource packet is stored as an integral body that is not resolvable or separable, it is also a resource, and if a resource packet can be resolved into a plurality of resources, it can be divided into a plurality of resources to be managed, which is not described herein.
Step S102: allocating a resource ID for the resource;
in this embodiment, after receiving the resource, a globally unique resource ID is assigned to the resource, which can uniquely identify a resource. The resource ID may be a 2-ary string, which may include a type bit, for recording the type of the resource, for example, a picture may use 001, a video may use 010, an audio may use 011, etc., and a sequence number bit, for sequentially numbering the resources, for example, a resource ID of resource No. 1 in the picture resource is 0010001, a resource ID of resource No. 2 in the picture resource is 0010010, etc., and the numbering rules of the resource IDs of other types of resources are similar. It will be appreciated that the numbering convention described above may also be a direct sequence numbering, without distinguishing between resource types.
In one embodiment, in step S101, a resource package is received and parsed, and resources included in the resource package are parsed. At this time, the resource package includes one or more resources, and after analyzing the resources in the resource package and the types of the resources, each resource is allocated with a resource ID.
It should be noted that, the resource may be repeatedly imported, there may be three processing methods at this time, where the first processing method is optional is to judge whether the same resource exists in the system when the resource is imported, and if so, the resource is not imported any more; an optional second processing method is that when the resources are imported, whether the same resources exist in the system or not is not judged, and a new resource ID is directly allocated; the optional third processing method is to judge whether the same resource exists in the system when the resource is imported, if so, pop up a prompt message to prompt the user to select to use the original resource in the system or allocate a new resource ID.
It should be understood that the above numbering rule of the resource ID is merely exemplary, and does not limit the disclosure, and any numbering rule may be applied to the disclosure as long as it can uniquely identify a resource, and is not repeated herein.
In one embodiment, because the resource ID is a string recognized by the system, it is inconvenient for the user to use, and the resource may be edited with a display name that is convenient for the user to use. Such as the picture editor numbered 0010001, which displays the name "big eyes" by which the user can find the picture directly, the display names can be in one-to-one correspondence with the resource IDs.
Step S103: placing the resource into a resource management list;
in this embodiment, the resources are managed using a resource management list, and the resources assigned with the resource IDs are sequentially placed in the resource management list.
In one embodiment, the resource ID includes a type bit and a sequence number bit, at which time a resource management list may be created for each type of resource, the list including a list header including the type bit, after which the resource to which the resource ID is assigned is sequentially saved in the resource management list. As shown in fig. 2, which is an example of the resource management list, the list 201 shown in fig. 2 is used for storing the resource with the picture type with the type bit 001, and the list 201 includes a type header 203 for indicating that the type of the stored resource is a picture; the same list 202 is used to hold video assets with type bits 010, and the list 202 includes a type header 204 to indicate that the type of asset it holds is video. Such list organization forms can reduce the time to find resources due to the hierarchical form used, facilitating the search.
In another embodiment, the resources can be sequentially placed in the resource management list without distinguishing types, so that the list organization form is simpler, and the occupied space of the resource management list can be effectively saved when the resources are fewer.
In one embodiment, the placing the resource into a resource management list includes: creating cells in the resource management list; using the resource ID as an index for the cell; and placing the resource into an address corresponding to the cell. In this embodiment, the resource management list may be dynamic, when the system generates a new resource ID, a new cell is created in the resource management list, and the resource ID is associated with the cell, and optionally, the resource ID may be used as an index of the cell, and the resource corresponding to the resource ID is placed in the address corresponding to the cell. Optionally, the unit cell may be a section of memory address, and the resource is placed in a memory space corresponding to the memory address. When using the resource, it is preferred to determine the resource ID of the resource, obtain the address of the memory by the resource ID, and then read the resource from the memory address.
Step S104: receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID;
in this embodiment, when a user starts to use a resource, the resource is used by way of reference, and a specific user may select a resource from the resource management list and put it in a location in the display device, and this operation by the user will generate a reference instruction including the resource ID of the referenced resource and the location to which the resource is referenced. Alternatively, when the user creates a map, a picture resource needs to be used, at which time it selects a resource in the resource management list, and the selection at this time triggers a reference instruction, and the system receives the reference instruction of the resource.
In one embodiment, the reference instruction may include only the resource ID, and when the user selects the resource corresponding to the resource ID, the resource may be referenced to a default position, and then the position of the resource is adjusted according to a further instruction of the user, which is not described herein.
Step S105: mapping the resource to a reference location in the reference instruction.
In this embodiment, the resource is mapped to a reference location in the reference instruction. The reference instruction may include only the resource ID, where the resource is mapped to a default location.
In one embodiment, said mapping said resource to a reference location in said reference instruction comprises: searching the resource in a resource management table based on the resource ID; and rendering the resource on the reference position according to the searched attribute of the resource. Optionally, if the resource is a texture map, the texture map is searched in a resource management table according to a resource ID of the texture map, and an attribute of the texture map is obtained from a memory address of a cell corresponding to the resource management ID, and typically, the texture map may be converted into a corresponding UV map, and the texture map is rendered onto the reference position by the UV map. It will be appreciated that the above mapping procedure is by way of example only, and that various mapping means may be used to map the resources to reference locations, whereby the consumption of additional memory space by direct copying of the resources is avoided. As shown in fig. 3, 301 is an operation interface, into which the selected resources are mapped, 302 and 303 are two resource management lists, and 3 resources are mapped in the operation interface, wherein resource 304 and resource 305 are from resource management list 302, and resource 306 is from resource management list 303, 304, 305 and 306 together form an effect. At this time, each resource in the effect is not copied into the storage space corresponding to the effect, but mapped onto the operation interface, and only when the effect is determined to be stored as an effect package, the resource in the effect is copied into the file in which the effect package is located.
The present disclosure discloses a resource management method, apparatus, electronic device, and computer-readable storage medium. The resource management method comprises the following steps: receiving a resource; allocating a resource ID for the resource; placing the resource into a resource management list; receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID; mapping the resource to a reference location in the reference instruction. The embodiment of the disclosure solves the technical problem of storage space waste caused by the fact that resources can only be copied when the resources are used in the prior art through the sharing management and the mapping of the resources.
Fig. 4 is a flowchart of a second embodiment of a resource management method according to the present disclosure, where the resource management method according to the present embodiment may be implemented by a resource management device, and the resource management device may be implemented as software, or as a combination of software and hardware, and the resource management device may be integrally provided in a device in a resource management system, such as a resource management server or a resource management terminal device. As shown in fig. 4, the method comprises the steps of:
after step S105 in the first embodiment, further includes:
Step S401: receiving an instruction for editing the resource, and changing the attribute of the resource;
step S402: synchronizing the changed resource to a cell of a resource management list indicated by the resource ID;
further, after step S104, the method may further include:
and step S403, mapping the changed attribute of the resource to all the reference positions referencing the resource.
In this embodiment, after the resource is mapped to the reference position, the resource may be further edited, and at this time, according to the received editing instruction, the attribute of the resource, such as the size, color, proportion, and the like of the picture, is changed; when the attribute of the resource is changed, the changed attribute is synchronized into the unit cell of the resource, such as editing a picture, and the color of the picture is changed, at this time, the color is synchronized into the resource in the resource management list corresponding to the ID of the resource according to the ID of the resource, that is, the attribute of the original resource is reversely changed through editing the mapped resource. After the properties of the original resource are changed, the changed properties of the resource are mapped to all reference locations referencing the resource. By the technical scheme in the embodiment, the resources in the unfinished resource package can be conveniently modified, and the same resource only needs to be modified once, so that the trouble caused by multiple modifications is avoided. As shown in fig. 5, 501 and 508 are two operation interfaces in the system, in which the resource ID 0100100 in the resource management list 503 is mapped, at this time, if the resource 506 in 501 is scaled, the scaled attribute is reversely transferred into the original resource in the resource management list, and the original resource changes the size of the resource 507 in 508 by mapping, so as to achieve the effect of changing one mapped resource to synchronize all mapped resources.
Fig. 6 is a flowchart of a third embodiment of a resource management method according to an embodiment of the present disclosure, where the resource management method according to the embodiment may be implemented by a resource management device, and the resource management device may be implemented as software, or as a combination of software and hardware, and the resource management device may be integrally provided in a device in a resource management system, such as a resource management server or a resource management terminal device. As shown in fig. 6, the method includes the steps of:
after step S105 in the first embodiment, further includes:
step S601: the resource is saved as a first file, the first file comprises a configuration file of the first file, and the configuration file of the first file comprises state information of the resource in the first file;
further, after the step S601, the method may further include:
step S602: receiving an instruction for importing a first file;
step S603, reading a configuration file of the first file and obtaining state information of the resource;
step S604: and restoring the state of the resource according to the state information of the resource.
In this embodiment, after mapping the resource to the reference location in the reference instruction, the resource at the reference location is saved as a first file, taking fig. 3 as an example, that is, the resources 304, 305, and 306 in the operation interface 301 are saved as a first file, where the first file includes a configuration file of the first file, and the configuration file of the first file includes state information of the resource in the first file, where in this embodiment, the state information of the resource includes: one or more of an ID of the resource, a reference location of the resource, and an edit status of the resource. And then, when the user opens the first file, the system receives an instruction for importing the first file, acquires the state information of the resource according to the configuration file in the first file, and restores the state of the resource according to the state information of the resource. It can be seen that the first file does not include the resource itself, so that the size of the saved file can be greatly reduced. When a user imports the first file, reading the ID of the resource in the configuration file, acquiring the storage position of the resource ID through the resource ID, then reading the reference position of the resource, mapping the resource to the reference position, and simultaneously, the configuration file can also comprise the editing state of the resource, wherein the editing state can comprise the current state and the historical state of the resource, the historical state can record the editing process of the resource, the user can conveniently trace back the previous editing, the editing state can also comprise the resource used once when editing the special effect, such as using one resource when the user makes the special effect, and then deleting the resource, the using record can be saved in the configuration file. In one embodiment, the configuration file may be implemented as a tree structure, and when the state of the resource is restored, the state of the resource is restored directly by traversing each node of the tree structure. According to the technical scheme, a user can modify and edit the special effects continuously, and the excessive storage space is not occupied.
Fig. 7 is a schematic structural diagram of a first embodiment of a resource management device according to an embodiment of the present disclosure, as shown in fig. 7, the device 700 includes: a resource receiving module 701, an ID allocating module 702, a resource placing module 703, a reference instruction receiving module 704, and a mapping module 705. Wherein, the liquid crystal display device comprises a liquid crystal display device,
a resource receiving module 701, configured to receive a resource;
an ID allocation module 702, configured to allocate a resource ID to the resource;
a resource placement module 703, configured to place the resource into a resource management list;
a reference instruction receiving module 704, configured to receive a reference instruction of a resource, where the reference instruction includes the resource ID;
and the mapping module 705 is configured to map the resource to a reference position in the reference instruction.
Further, the resource receiving module 701 further includes:
the import address receiving module is used for receiving the import address of the resource;
and the copying module is used for copying the resource from the import address.
Further, the resource receiving module 701 further includes:
the resource creation module is used for creating resources;
the editing instruction receiving module is used for receiving an editing instruction for the resource;
and the storage instruction receiving module is used for receiving the storage instruction of the resource.
Further, the resource includes a resource packet, and the resource receiving module 701 is further configured to: and receiving a resource package, analyzing the resource package, and analyzing the resources included in the resource package.
Further, the ID allocation module 702 is further configured to: the resource ID is assigned to each resource in the resource package.
Further, the resource placement module 703 further includes:
a cell creation module for creating cells in the resource management list;
an index creating module, configured to use the resource ID as an index of the cell;
and the resource placement sub-module is used for placing the resource into the address corresponding to the cell.
Further, the mapping module 705 further includes:
a resource searching module, configured to search the resource in a resource management table based on the resource ID;
and the rendering module is used for rendering the resource on the reference position according to the searched attribute of the resource.
The apparatus shown in fig. 7 may perform the method of the embodiment shown in fig. 1, and reference is made to the relevant description of the embodiment shown in fig. 1 for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution refer to the description in the embodiment shown in fig. 1, and are not repeated here.
Fig. 8 is a schematic structural diagram of a second embodiment of a resource management device according to an embodiment of the present disclosure, and as shown in fig. 8, the device 800 includes, in addition to the resource management device 700 in the first embodiment: a resource attribute change module 801 and a synchronization module 802. Wherein, the liquid crystal display device comprises a liquid crystal display device,
a resource attribute changing module 801, configured to receive an instruction for editing the resource, and change an attribute of the resource;
a synchronization module 802, configured to synchronize the changed resource to a cell of the resource management list indicated by the resource ID.
Further, the resource management device 800 may further include:
a change mapping module 803 is configured to map the attribute of the resource change to all reference positions that reference the resource.
The apparatus shown in fig. 8 may perform the method of the embodiment shown in fig. 4, and reference is made to the relevant description of the embodiment shown in fig. 4 for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiment shown in fig. 4, and are not described herein.
Fig. 9 is a schematic structural diagram of a third embodiment of a resource management device according to an embodiment of the present disclosure, and as shown in fig. 9, the device 900 includes, in addition to the resource management device 700 in the first embodiment: the first file save module 901. Wherein, the liquid crystal display device comprises a liquid crystal display device,
The first file saving module 901 is configured to save the resource as a first file, where the first file includes a configuration file of the first file, and the configuration file of the first file includes status information of the resource in the first file.
Further, the apparatus 900 may further include:
a first file import instruction receiving module 902, configured to receive an instruction for importing a first file;
a configuration file reading module 903, configured to read a configuration file of the first file, and obtain status information of the resource;
and the recovery module 904 is configured to recover the state of the resource according to the state information of the resource.
Further, the status information of the resource includes: one or more of an ID of the resource, a reference location of the resource, and an edit status of the resource.
The apparatus shown in fig. 9 may perform the method of the embodiment shown in fig. 6, and reference is made to the relevant description of the embodiment shown in fig. 6 for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiment shown in fig. 6, and are not described herein.
Referring now to fig. 10, a schematic diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
In general, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, and the like; an output device 1007 including, for example, a Liquid Crystal Display (LCD), speaker, vibrator, etc.; storage 1008 including, for example, magnetic tape, hard disk, etc.; and communication means 1009. The communication means 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange data. While fig. 10 shows an electronic device 1000 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. The above-described functions defined in the method of the embodiment of the present disclosure are performed when the computer program is executed by the processing device 1001.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by the node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (14)

1. A method of resource management, comprising:
receiving resources, wherein the resources are used for making image special effects;
allocating a resource ID for the resource;
placing the resource into a resource management list;
Receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID;
mapping the resource to a reference position in the reference instruction;
receiving an instruction for editing the resource, and changing the attribute of the resource;
and synchronizing the changed resources into the cells of the resource management list indicated by the resource ID.
2. The resource management method as claimed in claim 1, wherein said receiving the resource comprises:
receiving an import address of a resource;
the resource is copied from the import address.
3. The resource management method as claimed in claim 1, wherein said receiving the resource comprises:
creating a resource;
receiving an editing instruction for the resource;
and receiving a saving instruction for the resource.
4. The resource management method of claim 1, wherein the resources comprise resource packages, and the receiving resources comprises:
and receiving a resource package, analyzing the resource package, and analyzing the resources included in the resource package.
5. The resource management method as claimed in claim 4, wherein said assigning a resource ID to said resource comprises:
the resource ID is assigned to each resource in the resource package.
6. The resource management method as claimed in claim 1, further comprising, after synchronizing the changed resource into a cell of a resource management list indicated by the resource ID:
mapping the changed resource to other reference positions referencing the resource.
7. The resource management method as in claim 1, wherein said placing said resource into a resource management list comprises:
creating cells in the resource management list;
taking the resource ID as an index of the cell;
and placing the resource into an address corresponding to the cell.
8. The resource management method of claim 1, further comprising, after said mapping said resource onto a reference location in said reference instruction:
and storing the resource as a first file, wherein the first file comprises a configuration file of the first file, and the configuration file of the first file comprises state information of the resource in the first file.
9. The resource management method of claim 8, further comprising, after saving the resource as the first file:
receiving an instruction for importing a first file;
Reading a configuration file of the first file, and acquiring state information of the resource;
and restoring the state of the resource according to the state information of the resource.
10. The resource management method as claimed in claim 8, wherein the status information of the resource includes: the ID of the resource, the reference location of the resource, and the edit status of the resource, the edit status including a current status and a historical status.
11. The resource management method of claim 1, wherein said mapping said resource to a reference location in said reference instruction comprises:
searching the resource in a resource management table based on the resource ID;
and rendering the resource on the reference position according to the searched attribute of the resource.
12. A resource management apparatus, comprising:
the resource receiving module is used for receiving resources, and the resources are used for making the image special effects;
an ID allocation module, configured to allocate a resource ID for the resource;
the resource placement module is used for placing the resources into a resource management list;
the reference instruction receiving module is used for receiving a reference instruction of a resource, wherein the reference instruction comprises the resource ID;
The mapping module is used for mapping the resource to a reference position in the reference instruction;
the resource attribute changing module is used for receiving an instruction for editing the resource and changing the attribute of the resource;
and the synchronization module is used for synchronizing the changed resources into the cells of the resource management list indicated by the resource ID.
13. An electronic device, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor, when executed, implements the resource management method according to any of claims 1-11.
14. A computer readable storage medium storing non-transitory computer readable instructions which, when executed by a computer, cause the computer to perform the resource management method of any of claims 1-11.
CN201811496707.0A 2018-12-07 2018-12-07 Resource management method and device Active CN111290995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811496707.0A CN111290995B (en) 2018-12-07 2018-12-07 Resource management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811496707.0A CN111290995B (en) 2018-12-07 2018-12-07 Resource management method and device

Publications (2)

Publication Number Publication Date
CN111290995A CN111290995A (en) 2020-06-16
CN111290995B true CN111290995B (en) 2023-08-25

Family

ID=71022050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811496707.0A Active CN111290995B (en) 2018-12-07 2018-12-07 Resource management method and device

Country Status (1)

Country Link
CN (1) CN111290995B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102027493A (en) * 2008-05-15 2011-04-20 阿尔卡特朗讯 Method and device for resource management, and recording medium for said method
CN102693127A (en) * 2011-02-15 2012-09-26 微软公司 Data-driven schema for describing and executing management tasks in a graphical user interface
CN103309677A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Built-in resource management method, device and terminal
CN104268091A (en) * 2014-09-19 2015-01-07 深圳市心讯网络科技有限公司 File storage method and file modification method
CN107180052A (en) * 2016-03-11 2017-09-19 福建福昕软件开发股份有限公司 One kind provides document updating method trusty
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN108287758A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of application resource management method, application method and device
US10055529B1 (en) * 2016-09-30 2018-08-21 Cadence Design Systems, Inc. Methods, systems, and computer program product for implementing a floorplan with virtual hierarchies and figure groups for an electronic design
CN108830782A (en) * 2018-05-29 2018-11-16 北京字节跳动网络技术有限公司 Image processing method, device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2487390A (en) * 2011-01-19 2012-07-25 Canon Kk Managing access to copies of resources
US9390055B2 (en) * 2012-07-17 2016-07-12 Coho Data, Inc. Systems, methods and devices for integrating end-host and network resources in distributed memory
US10025760B2 (en) * 2013-01-25 2018-07-17 Ebay Inc. Mapping page states to URLs
US9529552B2 (en) * 2014-01-14 2016-12-27 International Business Machines Corporation Storage resource pack management

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102027493A (en) * 2008-05-15 2011-04-20 阿尔卡特朗讯 Method and device for resource management, and recording medium for said method
CN102693127A (en) * 2011-02-15 2012-09-26 微软公司 Data-driven schema for describing and executing management tasks in a graphical user interface
CN103309677A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Built-in resource management method, device and terminal
CN104268091A (en) * 2014-09-19 2015-01-07 深圳市心讯网络科技有限公司 File storage method and file modification method
CN107180052A (en) * 2016-03-11 2017-09-19 福建福昕软件开发股份有限公司 One kind provides document updating method trusty
US10055529B1 (en) * 2016-09-30 2018-08-21 Cadence Design Systems, Inc. Methods, systems, and computer program product for implementing a floorplan with virtual hierarchies and figure groups for an electronic design
CN108287758A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of application resource management method, application method and device
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN108830782A (en) * 2018-05-29 2018-11-16 北京字节跳动网络技术有限公司 Image processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111290995A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN109408685B (en) Thinking guide graph display method and device
CN110442330A (en) List element conversion method, device, electronic equipment and storage medium
CN109491742B (en) Page table rendering method and device
CN111599022A (en) House display method and device and electronic equipment
CN111309228A (en) Multimedia processing method and device and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN110070592B (en) Generation method and device of special effect package and hardware device
CN114021016A (en) Data recommendation method, device, equipment and storage medium
CN113391811B (en) Function compiling method, function compiling device, electronic equipment and computer readable storage medium
CN111290995B (en) Resource management method and device
CN110134905B (en) Page update display method, device, equipment and storage medium
CN113628097A (en) Image special effect configuration method, image recognition method, image special effect configuration device and electronic equipment
CN112492399A (en) Information display method and device and electronic equipment
CN112965713B (en) Development method, device, equipment and storage medium of visual editor
CN110568976B (en) Method, device, equipment and storage medium for controlling application display
CN111641690B (en) Session message processing method and device and electronic equipment
CN110290517B (en) Digital media wireless wifi communication point reading system and method
CN111199519B (en) Method and device for generating special effect package
CN111488495A (en) Information processing method and device
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN112035256A (en) Resource allocation method, device, electronic equipment and medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN116450104A (en) Style determination method, style determination device, style determination apparatus, style determination program product, and storage medium
CN110618772A (en) View adding method, device, equipment and storage medium
CN112911388B (en) Efficient editable video special effect output method and device 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
GR01 Patent grant
GR01 Patent grant