Boot animation playback method, device, vehicle and storage medium

By preloading and mapping the startup animation data in the vehicle's system-on-chip SOC, starting the animation player with priority, and loading animation data from the memory and storage respectively, the problem of startup animation playback time lag is solved, and the effect of synchronization with the welcome lights is achieved. , which improves the user experience.

CN114840261BActive Publication Date: 2024-10-18CHINA FAW CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210472877.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-10-18
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the vehicle's welcome mode, the playback time of the startup animation lags behind the lighting time of the welcome lights, resulting in poor user experience. This is mainly due to the long time it takes for the animation player to load the startup animation video frames.

Method used

By loading the first animation data of the boot animation from the storage to the memory when executing the boot loader, and mapping the storage information to the virtual file system when initializing the file system, the animation player is started first and the first animation data is loaded from the memory. and play, and then load the second animation data from the memory and play it, avoiding directly loading all data from the memory to shorten the startup time.

Benefits of technology

Improved the speed at which the animation player loads startup animation data, synchronized the playback time of the startup animation with the lighting time of the welcome lights, and improved the linkage effect between the welcome animation and lights.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840261B_ABST
    Figure CN114840261B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, vehicle and storage medium for playing a boot animation, the method comprising: when executing a boot loader, loading the first animation data of the boot animation from the storage to the internal memory through the boot loader to obtain storage information of the first animation data in the internal memory; when initializing the file system, mapping the storage information to the memory file system of the virtual file system; when starting the application, giving priority to starting the animation player; using the animation player to load the first animation data from the internal memory according to the storage information mapped in the memory file system and play it, and using the animation player to load the second animation data of the boot animation from the storage and play it. The embodiment of the present invention loads the first animation data into the internal memory through the boot loader to obtain storage information, and uses the animation player to load the first animation data and the second animation data and play them, thereby improving the loading speed of the animation player in loading the boot animation data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to vehicle control technology, and in particular to a startup animation playing method, device, vehicle and storage medium. Background Art

[0002] Generally, high-end cars are equipped with a welcome mode. In the welcome mode, when the driver approaches the vehicle, the vehicle's welcome lights light up, and the boot animation plays at the same time as the welcome lights light up.

[0003] At present, in the welcome mode, the welcome lights are mainly controlled by the vehicle's body control system MCU, and the vehicle's system-on-chip SOC controls the animation player to play the startup animation.

[0004] Since the startup time of the body control system MCU is shorter than that of the system on chip SOC, and the animation player takes a long time to load a large number of video frames of the startup animation, it takes a long time for the animation player to load a large number of video frames of the startup animation, causing the playback time of the startup animation to lag behind the lighting time of the welcome light, giving users a poor user experience. Summary of the invention

[0005] The embodiments of the present invention provide a startup animation playback method, device, vehicle and storage medium, which improve the loading speed of an animation player to load startup animation data.

[0006] In a first aspect, an embodiment of the present invention provides a boot animation playback method, which is applied to a system on chip (SOC) of a vehicle, wherein the system on chip is connected to a storage device and a memory, and the system on chip includes an animation player, and the method includes:

[0007] When executing the boot loader, first animation data of the boot animation is loaded from the storage to the internal memory through the boot loader, and storage information of the first animation data in the internal memory is obtained;

[0008] When initializing the file system, mapping the storage information to the memory file system of the virtual file system;

[0009] When starting the application, the animation player is started first;

[0010] The first animation data is loaded from the memory and played according to the storage information mapped in the memory file system by using the animation player, and the second animation data of the boot animation is loaded from the storage and played by using the animation player.

[0011] In a second aspect, an embodiment of the present invention provides a boot animation playback device, which is applied to a system on chip (SOC) of a vehicle, wherein the system on chip is connected to a memory and a memory, and the system on chip includes an animation player, and the device includes:

[0012] A storage information acquisition module, used for loading the first animation data of the boot animation from the storage to the internal memory through the boot loader when executing the boot loader, and obtaining the storage information of the first animation data in the internal memory;

[0013] A storage information mapping module, used for mapping the storage information to the memory file system of the virtual file system when initializing the file system;

[0014] An animation player startup module, used to start the animation player first when starting the application program;

[0015] An animation data playback module is used to use the animation player to load and play the first animation data from the memory according to the storage information mapped in the memory file system, and to use the animation player to load and play the second animation data of the boot animation from the storage.

[0016] In a third aspect, an embodiment of the present invention further provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a boot animation playback method as described in any one of the embodiments of the present invention is implemented.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a boot animation playback method as described in any one of the embodiments of the present invention.

[0018] In the embodiment of the present invention, when executing the boot loader, the first animation data of the boot animation is loaded from the storage to the memory through the boot loader, and the storage information of the first animation data in the memory is obtained; when initializing the file system, the storage information is mapped to the memory file system of the virtual file system; when starting the application, the animation player is started first; the first animation data is loaded from the memory according to the storage information mapped in the memory file system and played, and the second animation data of the boot animation is loaded from the memory and played by the animation player. That is, in the embodiment of the present invention, the first animation data can be loaded into the memory in advance by the boot loader to obtain the storage information, and then the first animation data is loaded from the memory according to the storage information and the second animation data is loaded from the memory and played by the animation player that is started first, so as to avoid the problem that the boot loader directly loads all the boot animation data from the memory, which takes a long time, shorten the startup time of the animation player, and then improve the loading speed of the animation player loading the boot animation data, so that the playback time of the boot animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 It is a flowchart of a boot animation playing method provided by an embodiment of the present invention;

[0021] Figure 2 is a system schematic diagram of a vehicle provided by an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of a boot animation playback method provided by an embodiment of the present invention;

[0023] Figure 4 is another flowchart of the boot animation playback method provided by an embodiment of the present invention;

[0024] Figure 5 It is a structural schematic diagram of a boot animation playback device provided by an embodiment of the present invention;

[0025] Figure 6 It is a structural schematic diagram of a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0027] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0032] In the following embodiments, each embodiment provides both optional features and examples. The various features recorded in the embodiments can be combined to form multiple optional solutions. Each numbered embodiment should not be regarded as only one technical solution.

[0033] At present, in the welcome mode of the vehicle, the welcome light in the welcome mode is mainly controlled by the vehicle's body control system (Motor Control Unit, MCU), and the vehicle's system-on-a-chip (System-on-a-chip, SOC) controls the playback of the boot animation in the welcome mode.

[0034] The system-on-chip SOC controls the playback of the boot animation in the welcome mode. First, the system-on-chip SOC needs to be started. The startup process of the system-on-chip SOC may include: boot loader, kernel loading, file system initialization, and application initialization. The boot loader can be understood as the first piece of software code executed after the hardware reset of the system-on-chip SOC; the boot loader is mainly used to initialize the operating environment of the central processing unit (CPU), some hardware, and load the kernel, and give the right to use the CPU to the operating system kernel for continued execution. After the kernel is loaded into the memory, the program code can continue to initialize the operating system, detect hardware, and drive hardware. After the relevant processing of the kernel space is completed, it can start to transfer to the user space to initialize the file system. After completing the boot loader, kernel, and initializing the file system, the execution environment of the application is already fully available, and finally the application process can be initialized and run.

[0035] The application includes software for playing the boot animation. The video frames of the boot animation played by the boot animation playing software are generally located in the system's memory space. When the boot animation playing software plays the boot animation, it needs to load and play the video frames of the boot animation from the memory space. However, due to the large amount of data in the video frames of the boot animation, it takes a long time for the boot animation playing software to load a large number of boot animation video frames. Therefore, under the premise that the startup time of the vehicle control system MCU is shorter than the system on chip SOC, the playback time of the boot animation will inevitably lag behind the lighting time of the welcome light; in addition, since the priority of the application process of the boot animation playing software in the welcome mode is not the highest, it will also cause the boot animation playing software to load a large number of boot animation video frames. Take a long time, so that the boot animation and the welcome light cannot present a better linkage effect.

[0036] The embodiment of the present invention solves the problem that it takes a long time for the playback software of the boot animation to load a large number of video frames of the boot animation. Since the speed at which the playback software of the boot animation loads the video frames of the boot animation from the memory is faster than the speed at which the video frames of the boot animation are loaded from the storage, the video frames of the boot animation can be divided into two parts: the video frames of the first few frames of the boot animation and the video frames of the remaining boot animation except the video frames of the first few frames of the boot animation; the video frames of the first few frames of the boot animation can be preloaded into the memory, and the storage information of the video frames of the first few frames of the boot animation in the memory can be mapped to a virtual file system (Virtual File System) System, VFS); the remaining video frames of the boot animation can be stored in the memory; in addition, the application process of the boot animation playback software can be set as the system priority startup process, so that the boot animation playback software that is started first can load the first few frames of the boot animation video frames from the memory more quickly according to the storage information and play them, and load the remaining video frames of the boot animation from the memory and play them at the same time, which can shorten the startup time of the boot animation playback software and achieve the purpose of reducing the loading time of the boot animation playback software for loading a large number of boot animation video frames, so that the playback time of the boot animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the boot animation and the welcome light.

[0037] The following describes a boot animation playback method provided by an embodiment of the present invention. Figure 1 The present invention is a flowchart of a boot animation playback method provided by an embodiment of the present invention. The method can be applied to a system-on-chip (SOC) of a vehicle and can be executed by a boot animation playback device provided by an embodiment of the present invention. The device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in a vehicle. Figure 2 is a system schematic diagram of a vehicle provided by an embodiment of the present invention, such as Figure 2 As shown, the vehicle 2 may include a system on chip 21 and a body control system 26; the system on chip 21 may be connected to a graphics processor 22, a display screen 23, a memory 24 and a storage 25, the system on chip 21 may include an animation player 211 and a display interface 212, the graphics processor 22 may be used to process the first animation data, the display screen 23 may be used to play the boot animation, the memory 24 may be used to store the first animation data, the storage 25 may be used to store the second animation data, the animation player 211 may be used to load the animation data, and the display interface 212 may be used to transmit the animation data; the body control system 26 may be used to control the welcome light in the welcome mode. The following embodiments will be described by taking the device integrated in a vehicle as an example, referring to Figure 1 , the method may specifically include the following steps:

[0038] Step 101, when executing the boot loader, first animation data of the boot animation is loaded from the storage to the internal memory through the boot loader to obtain storage information of the first animation data in the internal memory.

[0039] The first animation data can be understood as a preset number of frames of boot animation video frame data, wherein the preset number can be understood as a specific value, which can be 30; for example, the first animation data can be 30 frames of boot animation video frame data; the storage information can be understood as the storage information of the first animation data in the memory, which can include the data size and data address of the first animation data. The memory can be understood as a memory component that stores programs and various data information, which can include a hard disk or a disk. The disk can be an embedded multimedia card (EMMC). EMMC is mainly aimed at the embedded memory standard specifications of products such as mobile phones or tablets. A controller is integrated in the package to provide a standard interface and manage flash memory; the memory is an important component of the computer, which can be used to temporarily store the calculation data in the CPU, as well as the data exchanged with external memory such as a hard disk, and is a bridge for external memory to communicate with the CPU; the memory can be a random access memory (RAM). RAM is an internal memory that directly exchanges data with the CPU. RAM can be read and written at any time (except when refreshed), and the speed is very fast. It is usually used as a temporary data storage medium for operating systems or other running programs.

[0040] Specifically, after the vehicle is powered on, the boot loader can initialize the CPU's operating environment, some hardware, and load the kernel, and hand over the use of the CPU to the operating system kernel for continued execution; after the kernel is loaded into the memory, the program code can continue to initialize the operating system, detect hardware, and drive hardware. Figure 3 is a schematic diagram of a boot animation playback method provided by an embodiment of the present invention. Figure 3 As shown, in the process of loading the kernel by executing the boot loader program, that is, in the process of mirroring the kernel file in the memory from the memory to the memory through the boot loader program, the first animation data of the boot animation and the operating system kernel can be mirrored from the memory to the memory through the boot loader program to obtain the storage information of the first animation data in the memory.

[0041] For example, a boot loader can be executed by the vehicle's system-on-chip SOC. When the system-on-chip SOC executes the boot loader, 30 frames of boot animation video frame data and the operating system kernel are mirrored from the EMMC to the RAM through the boot loader. The storage information of the 30 frames of boot animation video frame data in the RAM can be obtained. The storage information may include the data size N and data address M of the 30 frames of boot animation video frame data.

[0042] Step 102: When initializing the file system, the storage information is mapped to the memory file system of the virtual file system.

[0043] Specifically, Figure 3 As shown, after the first animation data of the boot animation and the operating system kernel are mirrored from the storage to the memory through the boot loader, it can be transferred to the user space after the work in the kernel space is completed to initialize the file system. At this time, the storage information of the first animation data can be mapped to the memory file system of the VFS.

[0044] Among them, VFS can be understood as a kernel software layer, an abstract layer above the specific file system, which can provide the user space with an interface for file system operations and allow different file systems to coexist. Therefore, different file systems can be used equally by upper-level applications after implementing VFS encapsulation.

[0045] For example, when the file system is initialized, the storage information (data size N and data address M) of 30 frames of boot animation video frame data in RAM can be mapped to the memory file system of VFS.

[0046] Step 103, when starting the application, the animation player is started first.

[0047] Among them, the application can be understood as a computer program that runs in user mode and can interact with the user.

[0048] Specifically, Figure 3 As shown, after the storage information of the first animation data is mapped to the memory file system of the VFS, the playback process of the animation player can be set as the system priority startup process during the initialization of the application, so that the animation player is started first when the application is started.

[0049] Step 104, using the animation player to load and play the first animation data from the memory according to the storage information mapped in the memory file system, and using the animation player to load and play the second animation data of the boot animation from the storage.

[0050] The second animation data may be understood as the remaining startup animation video frame data in the startup animation except the first animation data.

[0051] Specifically, the animation player can be used to load the first animation data from the memory according to the storage information mapped in the memory file system, and the first animation data can be sent to the graphics processing unit (GPU) for processing; after the GPU processing is completed, the first animation data is sent to the animation player for playback; and the system on chip SOC can use the animation player to load the second animation data of the boot animation from the memory, and play the second animation data through the animation player.

[0052] Among them, GPU can be understood as a microprocessor that specializes in image and graphics related computing.

[0053] For example, assuming that there are a total of 100 frames of video frame data for the startup animation, the first animation data may be the first 30 frames of startup animation video frame data, and the second animation data may be the remaining 70 frames of startup animation video frame data. The system on chip SOC may use the animation player to load the first 30 frames of startup animation video frame data from the RAM according to the storage information (data size N and data address M) mapped in the memory file system, and may send the 30 frames of startup animation video frame data to the GPU for processing; the GPU sends the processed 30 frames of startup animation video frame data to the animation player for playback; at the same time, the system on chip SOC may use the animation player to load the remaining 70 frames of startup animation video frame data from the EMMC, and play the remaining 70 frames of startup animation video frame data through the animation player.

[0054] In the embodiment of the present invention, when executing the boot loader, the first animation data of the boot animation is loaded from the storage to the memory through the boot loader, and the storage information of the first animation data in the memory is obtained; when initializing the file system, the storage information is mapped to the memory file system of the virtual file system; when starting the application, the animation player is started first; the first animation data is loaded from the memory according to the storage information mapped in the memory file system and played, and the second animation data of the boot animation is loaded from the memory and played by the animation player. That is, in the embodiment of the present invention, the first animation data can be loaded into the memory in advance by the boot loader to obtain the storage information, and then the first animation data is loaded from the memory according to the storage information and the second animation data is loaded from the memory and played by the animation player that is started first, so as to avoid the problem that the boot loader directly loads all the boot animation data from the memory, which takes a long time, shorten the startup time of the animation player, and then improve the loading speed of the animation player loading the boot animation data, so that the playback time of the boot animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light.

[0055] The following further describes the boot animation playback method provided by the embodiment of the present invention. Figure 4 FIG. 2 is another flow chart of the boot animation playback method provided by an embodiment of the present invention. Figure 4 As shown, the boot animation playing method of this embodiment may specifically include the following steps:

[0056] Step 401, when executing the boot loader, obtaining first intermediate animation data of the boot animation from the memory through the boot loader, the first intermediate animation data being obtained by compressing the first animation data.

[0057] The first intermediate animation data may be understood as a preset number of frames of startup animation video frame data compressed once, for example, may be 30 frames of startup animation video frame data compressed once.

[0058] Specifically, a compression algorithm may be used to compress the first animation data to obtain the first intermediate animation data.

[0059] For example, the boot animation video frame data is presented in the storage medium in a compressed texture format supported by the GPU, and different compressed texture formats need to be selected according to the GPU model. Since the ETC1 format is an open source and most commonly used compressed texture format, it can be compressed using the ETC1 compression algorithm. Therefore, the compressed texture format of the boot animation video frame data in the embodiment of the present invention can be the ETC1 format; further, the ETC1 compression algorithm can be used to compress 30 frames of boot animation video frame data to obtain 30 frames of boot animation video frame data that have been compressed once.

[0060] Step 402: compress the first intermediate animation data to obtain first target animation data.

[0061] The first target animation data may be understood as a preset number of frames of startup animation video frame data compressed twice, for example, may be 30 frames of startup animation video frame data compressed twice.

[0062] Specifically, the compression algorithm may be used again to compress the first intermediate animation data to obtain the first target animation data.

[0063] For example, the ETC1 format can support 0.5 bytes of compressed data per pixel. Taking a frame of original image with a resolution of 1920*720 and a format of RGB888 as an example, the data space occupied by the original image with a resolution of 1920*720 and a format of RGB888 before compression is 1920*720*3=4147200 bytes, and 1920*720*0.5=691200 bytes after compression. It can be seen that the amount of data compressed by the ETC1 algorithm is still relatively large. The amount of data of the 4-frame boot animation video frame data after one compression is about 2.6MB. Then, the amount of data compressed by the LZ4 algorithm is less than 1M in 980KB. 1M of data is very small for the kernel image and will not affect the speed of kernel loading. Therefore, the LZ4 compression algorithm can be used to compress the 30-frame boot animation video frame data compressed once to obtain the 30-frame boot animation video frame data compressed twice.

[0064] The LZ4 algorithm is a very fast lossless compression algorithm that scales with multi-core CPUs and also has an extremely fast decoder that typically reaches RAM speed limits on multi-core systems.

[0065] It should be noted that the compression algorithm used to compress the first intermediate animation data is not limited to the LZ4 compression algorithm, and there is no restriction on the specific compression algorithm. That is to say, the compression algorithm used to compress the first intermediate animation data can adopt other compression algorithms that can achieve the purpose of compressing the ETC1 format data so that the amount of compressed data does not affect the kernel loading speed.

[0066] Step 403: Load the first target animation data into the memory to obtain storage information.

[0067] Specifically, the boot loader can be executed by the vehicle's system-on-chip SOC. When the system-on-chip SOC executes the boot loader, the first target animation data and the operating system kernel can be mirrored from the storage to the memory through the boot loader, and the storage information of the first target animation data in the memory can be obtained.

[0068] For example, a boot loader can be executed by the vehicle's system-on-chip SOC. When the system-on-chip SOC executes the boot loader, the boot loader can mirror the twice-compressed 30-frame boot animation video frame data and the operating system kernel from the EMMC to the RAM, and the storage information of the first target animation data in the memory can be obtained.

[0069] In an embodiment of the present invention, first intermediate animation data of a boot animation is obtained from a memory through a boot loader, and the first intermediate animation data is obtained by compressing the first animation data; the first intermediate animation data is compressed to obtain first target animation data; the first target animation data is loaded into the memory to obtain storage information, thereby reducing the data volume of the first target animation data, and thereby improving the loading speed of loading the first target animation data into the memory.

[0070] Step 404: when initializing the file system, map the storage information to the memory file system of the virtual file system.

[0071] For example, when the file system is initialized, the storage information of 30 frames of boot animation video frame data compressed twice can be mapped to the memory file system of the VFS.

[0072] Step 405: Obtain the priority of each application.

[0073] Specifically, the priority of each application program may be acquired through the system on chip SOC.

[0074] Step 406: Start the animation player first according to the priority of each application.

[0075] Specifically, after obtaining the priority of each application, the system on chip SOC can set the playback process of the animation player as the system priority startup process through script settings during the process of initializing the application by the initialization script, so that the playback process of the animation player can be started first when the application is started.

[0076] In an embodiment of the present invention, the priority of each application can be obtained, and the animation player can be started first according to the priority of each application, thereby shortening the startup time of the animation player, avoiding the problem of the boot loader directly loading all startup animation data from the memory incurring a long time, and improving the startup animation playback speed.

[0077] Step 407: Use the animation player to load the first target animation data from the memory according to the storage information.

[0078] Specifically, the first target animation data may be loaded from the memory using the animation player according to the storage information of the first target animation data.

[0079] For example, the animation player may be used to load the 30-frame startup animation video frame data that has been compressed twice from the RAM according to the storage information of the 30-frame startup animation video frame data that has been compressed twice.

[0080] Step 408: Use an animation player to decode the first target animation data to obtain first animation data.

[0081] For example, an animation player may be used to decode the first target animation data to obtain 30 frames of startup animation video frame data.

[0082] Step 409: Send the first animation data to a graphics processor for processing.

[0083] Specifically, the first animation data may be sent to the GPU for processing using an animation player.

[0084] For example, an animation player may be used to send 30 frames of startup animation video frame data to a GPU for processing.

[0085] Step 410: Send the first animation data processed by the graphics processor to the display screen for playback.

[0086] Specifically, the first animation data processed by the graphics processor may be sent to the display screen through the display interface by using the animation player for playback.

[0087] For example, an animation player may be used to send 30 frames of startup animation video frame data processed by a GPU to a display screen through a display interface for playback.

[0088] In an embodiment of the present invention, an animation player can be used to load first animation data from a memory according to storage information; the first animation data can be sent to a graphics processor for processing; and the first animation data processed by the graphics processor can be sent to a display screen for playback. This can speed up the processing of the first animation data and shorten the playback time of the first animation data played through the display screen, so that the playback time of the startup animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light.

[0089] Step 411, when the first animation data is played to a specified data volume, the second animation data of the boot animation is loaded from the memory by using the animation player and played.

[0090] Among them, the specified data amount can be less than or equal to the total number of frames of the first animation data. When the specified data amount is less than the total number of frames of the first animation data, that is, the second animation data is loaded before the first animation data is finished playing, the purpose of pre-loading the second animation data can be achieved, avoiding the problem of lag when the animation player continues to play the second animation data after playing the first animation data.

[0091] Specifically, when the first animation data is played to a specified data volume through the animation player, the second animation data of the boot animation can be loaded from the memory by the animation player and played.

[0092] For example, the designated data amount may be 30. When 30 frames of startup animation video frame data are played to the 30th frame through the animation player, the remaining 70 frames of startup animation video frame data may be loaded from the EMMC using the animation player and played.

[0093] For example, assuming that the designated data amount is 20, when the 30-frame startup animation video frame data is played to the 20th frame through the animation player, the remaining 80-frame startup animation video frame data can be loaded from the EMMC using the animation player and played.

[0094] In an embodiment of the present invention, an animation player can be used to load and play the first animation data from the memory according to the storage information mapped in the memory file system. When the first animation data is played to a specified data amount, the animation player can be used to load and play the second animation data of the boot animation from the memory. This can achieve the purpose of pre-loading the second animation data and avoid the problem of a long time consumed by the boot loader directly loading all the boot animation data from the memory, thereby shortening the startup time of the animation player.

[0095] In an embodiment of the present invention, when executing a boot loader, the boot loader can obtain first intermediate animation data of a boot animation from a memory through the boot loader, the first intermediate animation data is obtained by compressing the first animation data, the first intermediate animation data is compressed to obtain first target animation data, the first target animation data is loaded into the memory to obtain storage information, when initializing the file system, the storage information is mapped to the memory file system of the virtual file system, the priority of each application is obtained, the animation player is started according to the priority of each application, the first target animation data is loaded from the memory according to the storage information by the animation player, the first target animation data is decoded by the animation player to obtain the first animation data, the first animation data is sent to a graphics processor for processing, the first animation data processed by the graphics processor is sent to a display screen for playback, and when the first animation data is played to a specified amount of data, the second animation data of the boot animation is loaded from the memory by the animation player and played. That is, in an embodiment of the present invention, the first target animation data can be obtained by compressing the first animation data, the boot loader pre-loads the first target animation data into the memory to obtain storage information, and then uses the animation player that is started with priority to load the first target animation data according to the storage information and decode to obtain the first animation data, and then plays the first animation data and loads the second animation data from the memory and plays it, thereby avoiding the problem of the boot loader directly loading all the startup animation data from the memory incurring a long time, shortening the startup time of the animation player, and thereby improving the loading speed of the animation player loading the startup animation data, so that the playback time of the startup animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light.

[0096] Figure 5 : is a schematic diagram of the structure of the boot animation playback device provided by the embodiment of the present invention, the device is applied to the system on chip SOC of the vehicle, the system on chip is connected to the storage and memory, the system on chip includes an animation player, and is suitable for executing the boot animation playback method provided by the embodiment of the present invention. Figure 5 As shown, the device may specifically include:

[0097] The storage information acquisition module 501 is used to load the first animation data of the boot animation from the storage to the internal memory through the boot loader when executing the boot loader, and obtain the storage information of the first animation data in the internal memory;

[0098] The storage information mapping module 502 is used to map the storage information to the memory file system of the virtual file system when initializing the file system;

[0099] Animation player starting module 503, used for starting the animation player first when starting the application program;

[0100] The animation data playing module 504 is used to use the animation player to load and play the first animation data from the memory according to the storage information mapped in the memory file system, and to use the animation player to load and play the second animation data of the boot animation from the storage.

[0101] Optionally, when executing the boot loader, the storage information acquisition module 501 loads the first animation data of the boot animation from the storage to the internal memory through the boot loader, and obtains the storage information of the first animation data in the internal memory, including:

[0102] Acquire, by the boot loader, first intermediate animation data of the boot animation from the memory, where the first intermediate animation data is obtained by compressing the first animation data;

[0103] compressing the first intermediate animation data to obtain first target animation data;

[0104] The first target animation data is loaded into the memory to obtain the storage information.

[0105] Optionally, the animation data playing module 504 uses the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and plays the first animation data, including:

[0106] Using the animation player to load the first target animation data from the memory according to the storage information;

[0107] Decoding the first target animation data using the animation player to obtain the first animation data;

[0108] The first animation data is played using the animation player.

[0109] Optionally, the system on chip is also connected to a graphics processor GPU and a display screen;

[0110] The animation data playing module 504 uses the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and plays the first animation data, including:

[0111] Using the animation player to load the first animation data from the memory according to the storage information;

[0112] Sending the first animation data to the graphics processor for processing;

[0113] The first animation data processed by the graphics processor is sent to the display screen for playing.

[0114] Optionally, the animation player starting module 503 starts the animation player first when starting the application, including:

[0115] Get the priority of each application;

[0116] The animation player is started first according to the priority of each application program.

[0117] Optionally, the animation data playing module 504 is specifically used for:

[0118] The using of the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play the first animation data;

[0119] When the first animation data is played to a specified data amount, the second animation data of the boot animation is loaded from the memory by the animation player and played.

[0120] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0121] The device of the embodiment of the present invention loads the first animation data of the boot animation from the storage to the memory through the boot loader when executing the boot loader, and obtains the storage information of the first animation data in the memory; when initializing the file system, the storage information is mapped to the memory file system of the virtual file system; when starting the application, the animation player is started first; the first animation data is loaded from the memory according to the storage information mapped in the memory file system and played, and the second animation data of the boot animation is loaded from the memory and played by the animation player. That is, in the embodiment of the present invention, the first animation data can be loaded into the memory in advance by the boot loader to obtain the storage information, and then the first animation data is loaded from the memory according to the storage information and the second animation data is loaded from the memory and played by the animation player that is started first, thereby avoiding the problem that the boot loader directly loads all the boot animation data from the memory, which takes a long time, shortens the startup time of the animation player, and further improves the loading speed of the animation player loading the boot animation data, so that the playback time of the boot animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light.

[0122] An embodiment of the present invention further provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the boot animation playback method provided in any of the above embodiments is implemented.

[0123] The embodiment of the present invention further provides a vehicle, the vehicle comprising: Figure 2 The body control system 26 shown and the system on chip 21 for implementing the boot animation playing method provided by any of the above embodiments when executing the program.

[0124] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the boot animation playback method provided by any of the above embodiments is implemented.

[0125] Reference below Figure 6 , which shows a schematic diagram of the structure of a vehicle 600 suitable for implementing the embodiment of the present invention. The vehicle in the embodiment of the present invention may include, but is 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), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The vehicle shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0126] like Figure 6 As shown, the vehicle 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the vehicle 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0127] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the vehicle 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6The vehicle 600 is shown with various devices, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.

[0128] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a non-transient computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present invention are executed. It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more conductors, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be set in a processor, for example, it may be described as: a processor includes a storage information acquisition module, a storage information mapping module, an animation player startup module, and an animation data playback module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0131] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: when executing the boot loader, the first animation data of the boot animation is loaded from the storage to the memory through the boot loader, and the storage information of the first animation data in the memory is obtained; when initializing the file system, the storage information is mapped to the memory file system of the virtual file system; when starting the application, the animation player is started first; the first animation data is loaded from the memory according to the storage information mapped in the memory file system by the animation player and played, and the second animation data of the boot animation is loaded from the storage by the animation player and played.

[0132] According to the technical solution of the embodiment of the present invention, when executing the boot loader, the first animation data of the boot animation is loaded from the storage to the memory through the boot loader, and the storage information of the first animation data in the memory is obtained; when initializing the file system, the storage information is mapped to the memory file system of the virtual file system; when starting the application, the animation player is started first; the first animation data is loaded from the memory according to the storage information mapped in the memory file system and played, and the second animation data of the boot animation is loaded from the memory and played by the animation player. That is, in the embodiment of the present invention, the first animation data can be loaded into the memory in advance by the boot loader to obtain the storage information, and then the first animation data is loaded from the memory according to the storage information and the second animation data is loaded from the memory and played by the animation player that is started first, so as to avoid the problem that the boot loader directly loads all the boot animation data from the memory, which takes a long time, shorten the startup time of the animation player, and then improve the loading speed of the animation player loading the boot animation data, so that the playback time of the boot animation is synchronized with the lighting time of the welcome light, thereby presenting a better linkage effect of the welcome animation and the welcome light.

[0133] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for playing a startup animation, characterized in that: A system on chip (SOC) applied to a vehicle, wherein the system on chip is connected to a memory and a storage device, and includes an animation player, and the method includes: When executing the boot loader, first animation data of the boot animation is loaded from the storage to the internal memory through the boot loader, and storage information of the first animation data in the internal memory is obtained; When initializing the file system, mapping the storage information to the memory file system of the virtual file system; When starting the application, the animation player is started first; The first animation data is loaded from the memory and played by the animation player according to the storage information mapped in the memory file system, and the second animation data of the boot animation is loaded from the storage and played by the animation player; wherein the second animation data is the remaining boot animation video frame data in the boot animation except the first animation data; The step of using the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and playing the first animation data, and using the animation player to load the second animation data of the boot animation from the storage and playing the second animation data, includes: The using of the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play the first animation data; When the first animation data is played to a specified data amount, the second animation data of the boot animation is loaded from the memory by the animation player and played.

2. The method according to claim 1, characterized in that: The step of loading the first animation data of the boot animation from the storage to the internal memory through the boot loader to obtain storage information of the first animation data in the internal memory includes: Acquire, by the boot loader, first intermediate animation data of the boot animation from the memory, where the first intermediate animation data is obtained by compressing the first animation data; compressing the first intermediate animation data to obtain first target animation data; The first target animation data is loaded into the memory to obtain the storage information.

3. The method according to claim 2, characterized in that The using the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play the first animation data includes: Using the animation player to load the first target animation data from the memory according to the storage information; Decoding the first target animation data using the animation player to obtain the first animation data; The first animation data is played using the animation player.

4. The method according to claim 1, characterized in that The system on chip is also connected to a graphics processor GPU and a display screen, and the using of the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play the first animation data includes: Using the animation player to load the first animation data from the memory according to the storage information; Sending the first animation data to the graphics processor for processing; The first animation data processed by the graphics processor is sent to the display screen for playing.

5. The method according to claim 1, characterized in that The step of preferentially starting the animation player comprises: Get the priority of each application; The animation player is started first according to the priority of each application program.

6. A boot animation playback device, characterized in that: A system on chip (SOC) applied to a vehicle, wherein the system on chip is connected to a memory and a storage device, and includes an animation player. The device includes: A storage information acquisition module, used for loading the first animation data of the boot animation from the storage to the internal memory through the boot loader when executing the boot loader, and obtaining the storage information of the first animation data in the internal memory; A storage information mapping module, used for mapping the storage information to the memory file system of the virtual file system when initializing the file system; An animation player startup module, used to start the animation player first when starting the application program; An animation data playback module, used to use the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play it, and use the animation player to load the second animation data of the boot animation from the storage and play it; wherein the second animation data is the remaining boot animation video frame data in the boot animation except the first animation data; Wherein, the animation data playing module is specifically used for: The using of the animation player to load the first animation data from the memory according to the storage information mapped in the memory file system and play the first animation data; When the first animation data is played to a specified data amount, the second animation data of the boot animation is loaded from the memory by the animation player and played.

7. A vehicle comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the boot animation playing method as described in any one of claims 1 to 5 is implemented.

8. A vehicle, characterized in that: The vehicle includes a body control system MCU and a system on chip for executing the startup animation playback method as described in any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the boot animation playing method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method for quickly displaying startup animation by full liquid crystal instrument

    CN110738975A