CN114546966A - Animation file generation method and device, electronic equipment and storage medium - Google Patents

Animation file generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114546966A
CN114546966A CN202210111983.0A CN202210111983A CN114546966A CN 114546966 A CN114546966 A CN 114546966A CN 202210111983 A CN202210111983 A CN 202210111983A CN 114546966 A CN114546966 A CN 114546966A
Authority
CN
China
Prior art keywords
animation
picture
file
binary
target
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
CN202210111983.0A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210111983.0A priority Critical patent/CN114546966A/en
Publication of CN114546966A publication Critical patent/CN114546966A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure relates to the technical field of computers, in particular to the field of video processing, and provides an animation file generation method and device, electronic equipment and a storage medium. The specific implementation scheme is as follows: calling an animation configuration file and an animation picture set corresponding to the animation configuration file; converting each animation picture in the animation picture set into a binary stream file; and fusing the binary stream file of each animation picture into an animation configuration file to obtain a target animation file. The single target animation file is convenient for unified management of resources, and when animation needs to be played, the target animation file can be obtained in a network loading mode; moreover, the animation picture set is fused into the animation configuration file after being converted into the binary stream file, so that the data volume of the target animation file is small, and the target animation file does not occupy excessive storage space when being stored locally.

Description

Animation file generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly to the field of video processing, which can be used in scenes such as animation.
Background
Existing animation files typically include an animation configuration file and its corresponding picture set. In one case, the animation configuration file and the corresponding picture set are both built in a resource folder of the application program, which can cause the data volume of the application program packet to be overlarge and occupy more local storage space; in another case, the picture set may be built into a resource folder of the application, and the animation profile is loaded through a network when in use, but this is not conducive to the unified management of the animation profile and the picture set.
Disclosure of Invention
The disclosure provides an animation file generation method and device, electronic equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an animation file generation method, including:
calling an animation configuration file and an animation picture set corresponding to the animation configuration file;
converting each animation picture in the animation picture set into a binary stream file;
and fusing the binary stream file of each animation picture into an animation configuration file to obtain a target animation file.
According to a second aspect of the present disclosure, there is provided an animation file generation apparatus including:
the file calling module is used for calling an animation configuration file and an animation picture set corresponding to the animation configuration file;
the picture conversion module is used for converting each animation picture in the animation picture set into a binary stream file;
and the file fusion module is used for fusing the binary stream file of each animation picture to the animation configuration file to obtain a target animation file.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein 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 animation file generation method described above.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the animation file generation method described above.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the animation file generation method described above.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the technical scheme, the animation picture set can be fused into the animation configuration file to obtain a single target animation file, and the corresponding animation can be played based on the target animation file. The single target animation file is convenient for unified management of resources, and when animation needs to be played, the target animation file can be obtained in a network loading mode; moreover, the animation picture set is fused into the animation configuration file after being converted into the binary stream file, so that the data volume of the target animation file is small, and the target animation file does not occupy excessive storage space when being stored locally.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a hardware system diagram illustrating an application scenario of an animation file generation method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart diagram illustrating an animation file generation method according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram of an animation file generation apparatus provided by an embodiment of the present disclosure;
fig. 4 shows a second schematic diagram of an animation file generation apparatus provided in the embodiment of the present disclosure;
FIG. 5 shows a schematic block diagram of an example electronic device that may be used to implement the animation file generation method provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Existing animation files typically include an animation configuration file and its corresponding picture set. In one case, the animation configuration file and the corresponding picture set are both built in a resource folder of the application program, which can cause the data volume of the application program packet to be overlarge and occupy more local storage space; in another case, the picture set may be built into a resource folder of the application, and the animation profile is loaded through a network when in use, but this is not conducive to the unified management of the animation profile and the picture set.
The animation file generation method, device, electronic device and storage medium provided by the embodiments of the present disclosure aim to solve at least one of the above technical problems in the prior art.
Fig. 1 is a schematic diagram of a hardware system of an application scenario of an animation file generation method according to an embodiment of the present disclosure, where as shown in fig. 1, the hardware system includes a first device, a second device, and a server, and the first device and the second device may be respectively in communication connection with the server. The first device may generate a single target animation file based on the animation configuration file and the set of animation pictures, and may then upload the target animation file to the server; the second device may download the target animation file from the server, and may play the corresponding animation based on a single target animation file. Optionally, the second device loads the target animation file through a lottiee network loading framework, so as to play the corresponding animation. Lottie is an iOS, Android and real Native-oriented animation library of an Airbnb open source, can analyze animations derived by Adobe After Effects, can enable a Native App to use the animations as static materials, and perfectly achieves animation Effects.
Fig. 2 shows a schematic flowchart of an animation file generation method provided by an embodiment of the present disclosure, and as shown in fig. 2, the method mainly includes the following steps:
s210: and calling the animation configuration file and the animation picture set corresponding to the animation configuration file.
In the embodiment of the disclosure, the animation picture set includes a plurality of animation pictures, each animation picture is a frame picture in a set of animations, and the animation configuration file is used for indicating display parameters of each animation picture in the animation picture set. It will be appreciated that a set of animations can be played based on the animation profile and the set of animation pictures.
It should be noted that the animation designer may generate the animation configuration file and the animation picture set through a graphic video processing system (such as Adobe After Effects). For example, an animation designer can design an animation project with picture dependency through the graphic video processing system, and then the animation project with the picture dependency is converted into an animation configuration file in a json format of the picture dependency through a built-in plug-in of the graphic video processing system, and then the animation configuration file and an animation picture set can be exported from the graphic video processing system. Optionally, the animation profile may include information such as frame rate, start key frame, end key frame, video width, video height, animation name, 3d identification, picture information set, and layer set of the animation.
Optionally, before step S210, the embodiment of the present disclosure may receive an animation configuration file and an animation picture set corresponding to the animation configuration file, and then store the animation configuration file and the animation picture set to a preset storage location according to a mapping relationship between the animation configuration file and each animation picture in the animation picture set. Taking the first device as an example, which is the execution subject of the embodiment of the present disclosure, after the animation designer derives the animation configuration file and the animation picture set from the graphic video processing system, the animation configuration file and the animation picture set may be sent to the first device; or after the animation designer exports the animation configuration file and the animation picture set from the graphic video processing system, the animation configuration file and the animation picture set are uploaded to a specified database, and the first device can download the animation configuration file and the animation picture set in the database. It is to be understood that the first device may receive the animation configuration file and the animation picture set through other ways, such as downloading the animation configuration file and the animation picture set in a storage device (e.g., a usb disk), and the disclosure does not limit the way the first device receives the animation configuration file and the animation picture set. The animation configuration file can indicate the path of each animation picture in the animation picture set, the animation configuration file and the animation picture set are stored according to the mapping relation of the animation configuration file and each animation picture, and the first device can ensure that each animation picture is accurately positioned through the animation configuration file.
S220: and converting each animation picture in the animation picture set into a binary stream file.
In the disclosed embodiment, a binary stream file has a plurality of binary codes recorded therein, each of which can represent a pixel value of one pixel in an animation picture. That is, a binary stream file of an animation picture may be generated based on pixel values of pixels in the animation picture.
S230: and fusing the binary stream file of each animation picture into an animation configuration file to obtain a target animation file.
In the embodiment of the present disclosure, the content contained in the binary stream file may be added to the animation profile, and the animation profile after adding the content of the binary stream file may be defined as the target animation file. As described above, a plurality of binary codes are recorded in the binary stream file, so that the binary codes in the binary stream file can be added to the animation configuration file to obtain the target animation file. Here, each binary code may represent a pixel value of one pixel in the animation picture, and the corresponding animation picture may be regenerated based on the binary code, so that the corresponding animation may be played based on only the target animation file without an animation picture set.
According to the animation file generation method provided by the embodiment of the disclosure, the animation picture set can be fused into the animation configuration file to obtain a single target animation file, and the corresponding animation can be played based on the target animation file. The single target animation file is convenient for unified management of resources, and when animation needs to be played, the target animation file can be obtained in a network loading mode; moreover, the animation picture set is fused into the animation configuration file after being converted into the binary stream file, so that the data volume of the target animation file is small, and the target animation file does not occupy excessive storage space when being stored locally.
Optionally, the animation configuration file includes a picture information set corresponding to each animation picture in the animation picture set. When the binary stream file of each animation picture is fused to the animation configuration file, the image information set corresponding to each animation picture can be determined from the animation configuration file, the binary stream file of each animation picture is fused to the corresponding image information set, and then the target animation file can be obtained. And fusing the binary stream file of each animation picture into the picture information set corresponding to the animation picture, so that the attribution of the binary stream file can be clearly determined in the target animation file, and the animation picture which can be displayed by the content of the binary stream file can be timely obtained. Specifically, the embodiment of the present disclosure may add binary codes in the binary stream file of each animation picture to the picture information set corresponding to the animation picture, thereby obtaining a target animation file.
In the embodiment of the present disclosure, the picture information set of an animation picture includes a unique identifier of the picture, a width of the picture, a height of the picture, a path of the picture, a picture name, and a pre-synthesis layer of the animation picture, wherein the path of the picture points to the picture name.
Two methods for fusing the binary stream file of the animation picture to the corresponding picture information set provided by the embodiment of the disclosure are described below.
Optionally, when the binary stream file of each animation picture is fused into the corresponding picture information set, the binary encoding string in the binary stream file of each animation picture may be obtained, and the binary encoding string of each animation picture is used as the picture name information in the picture information set corresponding to the animation picture, so that a target animation file may be obtained. It should be noted that, each binary code in the binary stream file of the animation picture may be combined to obtain a binary code string; and taking the binary coding string as the value of the picture name, thereby realizing that the binary coding string of the animation picture is taken as the picture name information in the picture information set corresponding to the animation picture. It can be understood that after the binary encoding string of each animation picture is used as the picture name information in the picture information set corresponding to the animation picture, the target animation file can be obtained.
In order to further compress the data size of the target animation file, the embodiments of the present disclosure may convert the binary encoding string of each animation picture into a character encoding string, and then use the character encoding string of each animation picture as picture name information in a picture information set corresponding to the animation picture, thereby obtaining the target animation file. Here, after each binary code in the binary code string is converted into a corresponding character code, the character code string can be obtained. The character Code may be ASCII Code, ASCII (American Standard Code for Information exchange Code) is a latin alphabet based computer Code system that is primarily intended for displaying modern english, while its extended version extends American Standard Code, which may partly support other western european languages and is equivalent to international Standard ISO/IEC 646.
Optionally, when the binary stream file of each animation picture is fused into the corresponding picture information set, the binary encoding string in the binary stream file of each animation picture may be obtained, the binary encoding string of each animation picture is added to the picture information set corresponding to the animation picture, then the picture path information in each picture information set is modified to point to the binary encoding string in the picture information set, and then a target animation file may be obtained. It should be noted that, each binary code in the binary stream file of the animation picture may be combined to obtain a binary code string, the binary code string is added to the picture information set corresponding to the animation picture as new information, and then the picture path information is modified to make the picture path point to the newly added binary code string, so that when the picture information set is read, the binary code string may be read through the picture path.
In order to further compress the data size of the target animation file, the embodiment of the disclosure may convert the binary encoding string of each animation picture into a character encoding string, and then modify the picture path information in each picture information set to point to the character encoding string in the picture information set, so as to obtain the target animation file. Here, after each binary code in the binary code string is converted into a corresponding character code, the character code string can be obtained. The character Code may be ASCII Code, ASCII (American Standard Code for Information exchange Code) is a latin alphabet based computer Code system that is primarily intended for displaying modern english, while its extended version extends American Standard Code, which may partly support other western european languages and is equivalent to international Standard ISO/IEC 646.
Based on the same principle as the animation file generation method, the embodiment of the present disclosure further provides an animation file generation apparatus, fig. 3 shows one schematic diagram of the animation file generation apparatus provided by the embodiment of the present disclosure, and fig. 4 shows a second schematic diagram of the animation file generation apparatus provided by the embodiment of the present disclosure. As shown in fig. 3, the animation file generating apparatus 300 includes a file retrieving module 310, a picture converting module 320, and a file fusing module 330.
The file retrieving module 310 is configured to retrieve an animation configuration file and an animation picture set corresponding to the animation configuration file.
The picture conversion module 320 is used for converting each animation picture in the animation picture set into a binary stream file.
The file fusion module 330 is configured to fuse the binary stream file of each animation picture to an animation configuration file to obtain a target animation file.
The animation file generation device provided by the embodiment of the disclosure can fuse the animation picture set into the animation configuration file to obtain a single target animation file, and can play the corresponding animation based on the target animation file. The single target animation file is convenient for unified management of resources, and when animation needs to be played, the target animation file can be obtained in a network loading mode; moreover, the animation picture set is fused into the animation configuration file after being converted into the binary stream file, so that the data volume of the target animation file is small, and the target animation file does not occupy excessive storage space when being stored locally.
In the embodiment of the present disclosure, as shown in fig. 4, the animation file generating apparatus 300 further includes a file obtaining module 340 on the basis of including a file retrieving module 310, a picture converting module 320, and a file fusing module 330, and the file obtaining module 340 is further configured to:
receiving an animation configuration file and an animation picture set corresponding to the animation configuration file;
and storing the animation configuration file and the animation picture set to a preset storage position according to the mapping relation between the animation configuration file and each animation picture in the animation picture set.
In the embodiment of the present disclosure, the animation configuration file includes a picture information set corresponding to each animation picture in the animation picture set.
In this embodiment of the disclosure, the file fusing module 330, when being configured to fuse the binary stream file of each animation picture to the animation configuration file to obtain the target animation file, is specifically configured to:
determining a picture information set corresponding to each animation picture from the animation configuration file;
and fusing the binary stream file of each animation picture into a corresponding picture information set to obtain a target animation file.
In this embodiment of the present disclosure, the file fusing module 330, when being configured to fuse the binary stream file of each animation picture into the corresponding picture information set to obtain the target animation file, is specifically configured to:
acquiring a binary coding string in a binary stream file of each animation picture;
and taking the binary coding string of each animation picture as picture name information in a picture information set corresponding to the animation picture to obtain a target animation file.
In this embodiment of the present disclosure, the file fusion module 330 is specifically configured to, when the binary encoding string of each animation picture is used as picture name information in a picture information set corresponding to the animation picture to obtain a target animation file:
converting the binary coding string of each animation picture into a character coding string;
and taking the character coding string of each animation picture as picture name information in a picture information set corresponding to the animation picture to obtain a target animation file.
In this embodiment of the present disclosure, the file fusing module 330, when being configured to fuse the binary stream file of each animation picture into the corresponding picture information set to obtain the target animation file, is specifically configured to:
acquiring a binary coding string in a binary stream file of each animation picture;
adding the binary coding string of each animation picture into a picture information set corresponding to the animation picture;
and modifying the picture path information in each picture information set into a binary coding string pointing to the picture information set to obtain a target animation file.
In this embodiment of the present disclosure, the file fusion module 330 is specifically configured to, when being configured to modify the picture path information in each picture information set to point to the binary encoding string in the picture information set, obtain the target animation file:
converting the binary coding string of each animation picture into a character coding string;
and modifying the picture path information in each picture information set into character coding strings pointing to the picture information sets to obtain a target animation file.
It can be understood that the above modules of the animation file generation device in the embodiment of the present disclosure have functions of implementing the corresponding steps of the animation file generation method described above. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the animation file generation device, reference may be made to the corresponding description of the animation file generation method, which is not described herein again.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the animation file generation method. For example, in some embodiments, the animation file generation method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the animation file generation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the animation file generation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. An animation file generation method, comprising:
calling an animation configuration file and an animation picture set corresponding to the animation configuration file;
converting each animation picture in the animation picture set into a binary stream file;
and fusing the binary stream file of each animation picture to the animation configuration file to obtain a target animation file.
2. The method of claim 1, further comprising, prior to the invoking of the animation profile, the set of animation pictures to which the animation profile corresponds:
receiving an animation configuration file and an animation picture set corresponding to the animation configuration file;
and storing the animation configuration file and the animation picture set to a preset storage position according to the mapping relation between the animation configuration file and each animation picture in the animation picture set.
3. The method of claim 1, the animation profile comprising a set of picture information corresponding to each animation picture in the set of animation pictures;
fusing the binary stream file of each animation picture to the animation configuration file to obtain a target animation file, wherein the target animation file comprises:
determining the picture information set corresponding to each animation picture from the animation configuration file;
and fusing the binary stream file of each animation picture into the corresponding picture information set to obtain a target animation file.
4. The method of claim 3, wherein said fusing the binary stream file of each of the animation pictures into the corresponding picture information set to obtain a target animation file comprises:
acquiring a binary coding string in the binary stream file of each animation picture;
and taking the binary coding string of each animation picture as picture name information in the picture information set corresponding to the animation picture to obtain a target animation file.
5. The method of claim 4, wherein the obtaining the target animation file by using the binary encoding string of each animation picture as the picture name information in the picture information set corresponding to the animation picture comprises:
converting the binary coding string of each animation picture into a character coding string;
and taking the character coding string of each animation picture as picture name information in the picture information set corresponding to the animation picture to obtain a target animation file.
6. The method according to claim 3, wherein said fusing the binary stream file of each said animation picture into the corresponding said picture information set to obtain a target animation file, comprises:
acquiring a binary coding string in the binary stream file of each animation picture;
adding the binary coding string of each animation picture into the picture information set corresponding to the animation picture;
and modifying the picture path information in each picture information set into the binary coding strings pointing to the picture information set to obtain a target animation file.
7. The method of claim 6, wherein the modifying the picture path information in each of the picture information sets to point to the binary encoding string in the picture information set to obtain the target animation file comprises:
converting the binary coding string of each animation picture into a character coding string;
and modifying the picture path information in each picture information set into the character coding strings pointing to the picture information set to obtain a target animation file.
8. An animation file generation apparatus comprising:
the file calling module is used for calling an animation configuration file and an animation picture set corresponding to the animation configuration file;
the picture conversion module is used for converting each animation picture in the animation picture set into a binary stream file;
and the file fusion module is used for fusing the binary stream file of each animation picture to the animation configuration file to obtain a target animation file.
9. The apparatus of claim 8, further comprising a file acquisition module, the file acquisition module further to:
receiving an animation configuration file and an animation picture set corresponding to the animation configuration file;
and storing the animation configuration file and the animation picture set to a preset storage position according to the mapping relation between the animation configuration file and each animation picture in the animation picture set.
10. The apparatus of claim 8, the animation profile comprising a set of picture information corresponding to each animation picture in the set of animation pictures;
the file fusion module is configured to fuse the binary stream file of each animation picture to the animation configuration file to obtain a target animation file, and is specifically configured to:
determining the picture information set corresponding to each animation picture from the animation configuration file;
and fusing the binary stream file of each animation picture into the corresponding picture information set to obtain a target animation file.
11. The apparatus according to claim 10, wherein the file fusing module, when being configured to fuse the binary stream file of each of the animation pictures into the corresponding picture information set to obtain the target animation file, is specifically configured to:
acquiring a binary coding string in the binary stream file of each animation picture;
and taking the binary coding string of each animation picture as picture name information in the picture information set corresponding to the animation picture to obtain a target animation file.
12. The apparatus according to claim 11, wherein the file fusion module, when being configured to obtain the target animation file by using the binary encoding string of each animation picture as picture name information in the picture information set corresponding to the animation picture, is specifically configured to:
converting the binary coding string of each animation picture into a character coding string;
and taking the character coding string of each animation picture as picture name information in the picture information set corresponding to the animation picture to obtain a target animation file.
13. The apparatus according to claim 10, wherein the file fusing module, when being configured to fuse the binary stream file of each of the animation pictures into the corresponding picture information set to obtain the target animation file, is specifically configured to:
acquiring a binary coding string in the binary stream file of each animation picture;
adding the binary coding string of each animation picture into the picture information set corresponding to the animation picture;
and modifying the picture path information in each picture information set into the binary coding strings pointing to the picture information set to obtain a target animation file.
14. The apparatus according to claim 13, wherein the file fusion module, when configured to modify the picture path information in each picture information set to point to the binary encoding string in the picture information set, is specifically configured to:
converting the binary coding string of each animation picture into a character coding string;
and modifying the picture path information in each picture information set into the character coding strings pointing to the picture information set to obtain a target animation file.
15. An electronic device, comprising:
at least one processor; and
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 method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-7.
CN202210111983.0A 2022-01-29 2022-01-29 Animation file generation method and device, electronic equipment and storage medium Pending CN114546966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111983.0A CN114546966A (en) 2022-01-29 2022-01-29 Animation file generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111983.0A CN114546966A (en) 2022-01-29 2022-01-29 Animation file generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114546966A true CN114546966A (en) 2022-05-27

Family

ID=81674318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111983.0A Pending CN114546966A (en) 2022-01-29 2022-01-29 Animation file generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114546966A (en)

Similar Documents

Publication Publication Date Title
CN107122398B (en) Data display chart generation method and system
CN113453073B (en) Image rendering method and device, electronic equipment and storage medium
CN113808231A (en) Information processing method and device, image rendering method and device, and electronic device
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN115237436A (en) Application deployment method and device, electronic equipment and readable storage medium
CN112634406A (en) Method, device, electronic equipment, storage medium and program product for generating picture
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN114356868A (en) Three-dimensional model file processing method and related equipment thereof
CN112862934B (en) Method, apparatus, device, medium, and product for processing animation
CN114546966A (en) Animation file generation method and device, electronic equipment and storage medium
CN115904240A (en) Data processing method and device, electronic equipment and storage medium
CN112540958B (en) File processing method, device, equipment and computer storage medium
CN113778412A (en) Data resource arranging method and device, computer equipment and readable storage medium
CN113836462A (en) Page description file generation method, device, equipment and storage medium
CN112528593A (en) Document processing method and device, electronic equipment and storage medium
CN113438428B (en) Method, apparatus, device and computer-readable storage medium for automated video generation
CN113361235B (en) HTML file generation method and device, electronic equipment and readable storage medium
CN114500505B (en) Text processing method and device and electronic equipment
CN113835893B (en) Data processing method, device, equipment, storage medium and program product
CN117407044A (en) Configuration method, device, equipment and medium of cross-terminal assembly
CN114579520A (en) Mirror image data processing method, mirror image data loading method and device
CN113190227A (en) Application program issuing and processing method, device, equipment and storage medium
CN117998165A (en) Video export method, device, equipment and storage medium
CN113254826A (en) Dump file processing method and device
CN116955740A (en) Document browsing method, device, equipment and storage medium

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